Hardware interfaces: what a kiosk app can reach on the Shelly Wall Display XL, read from its firmware
Status (2026-11-30): untested on the panel. Every interface below is read from the stock
firmware (super.img, Stargate.apk, the kernel device tree, boot.img, vbmeta.img) and
cross-checked against one live adb capture. That already settles which nodes exist, who owns
them and what Shelly's own app writes to them. It does not settle polarity or presence for the
relay, the button LEDs, fb0/blank or the temperature sensor: nothing was toggled on a panel, so
those stay marked untested.
Device: Shelly Wall Display XL (SAWD-3A1XE10EU2), codename Blake, Rockchip RK3566, stock
Android 11 (Shelly/Blake/Blake:11/RD2A.211001.002/vBlake.7a04f24:user/release-keys), stock
software 2.5.0. Tools: jadx 1.5.6, dtc, adb, and three read-only scripts,
recon.sh,
super-extract.py and
inspect-boot.py. Companion to
hardware.md, which covers the day-1 bring-up and the RockUSB Loader.
Question
A Glassworks frame needs a short list of facts about its device: which sysfs and input nodes drive
the mains relay, the backlight, the buttons, the presence radar, the light sensor and the speakers,
who may write to them, and which ones Shelly's launcher (cloud.shelly.stargate, "Stargate")
expects to find. The Wall Display XL is the first frame with a real latching mains relay and a
physical SW input, so getting these facts wrong could switch a load the wrong way. What does the
stock firmware say about every one of them, and what is the boot image like underneath?
How we got here
hardware.md got us into the panel: adb works with no prompt, and we hold a
byte-exact backup of every partition. That answers "can we run code", not "what can the code
touch". The obvious shortcut is to poke at /sys over adb and see what changes, but on this
panel one of those nodes switches a mains relay (Hard rule 1: read first, write second), so
guessing is out. The firmware is the better source, because Shelly's own app has to drive each
node and therefore spells out the paths, values and permissions.
That gave three sources, each covering the others' blind spots:
- Init scripts and
ueventd.rc(insuper.img) say what the system itself prepares at boot: which nodes getchmod 0666, which GPIOs are exported, which amplifier registers are written. Stargate.apk(decompiled withjadx) says what the app does with those nodes, including the relay polarity, which a sysfs listing cannot tell you.- The kernel device tree (inside
boot.img) says what the board really has: which chips, which addresses, which GPIO pins. Vendor init scripts are copied from other Rockchip products, so they often name hardware this panel doesn't have. A device-tree node or a livedmesgline that confirms a script's claim is worth far more than the script alone.
The same lesson came up three times. rootcmd.sh pokes an amplifier at I²C address 0x36, but the
device tree and the live kernel log put the amplifiers at 0x34 and 0x35. Stargate reads the
temperature from an sht3x-user node the panel doesn't have, while the board carries a
CHT8305. The device tree wires one gpio-keys button but the live input device advertises two
keys. So every claim below carries the file it came from, and a claim only one source makes is
marked as such.
What we tried
-
Split
super.imginto its logical partitions (2026-11-30, read)$ python3 -I tools/shelly-xl/super-extract.py super.img parts/ system.img 1204318208 bytes system_ext.img 114827264 bytes vendor.img 321544192 bytes product.img 58384384 bytes odm.img 43098112 bytesAndroid's dynamic-partition metadata sits in
superat byte 4096 (geometry) and 12288 (the metadata header); each logical partition is a list of extents.vendor'sfstab.rk30boardmountssystem,vendor,odm,productandsystem_extas logical ext4 (wait,logical, first_stage_mount), which matches. The five images were then read with a normal ext4 reader. Read-only onsuper.img. The extracted tree stays outside the repo (Hard rule 3). -
Read the init scripts (2026-11-30, read). The files below are paths on the panel.
File What it says /system/etc/init/stargate.rc(lines 16-26)late-fs:chmod 0664 /dev/input/event0..6, so every input node is group-readable/system/etc/init/stargate.rc(lines 64-77)post-fs-data:chown 1000:1000thenchmod 0666on/sys/class/strelay/relay1,relay2and/sys/class/st_lsensor/lsensor_disabled; symlinks/stargateto the app's data dir/system/etc/init/stargate.rc(lines 92-98)property cloud.shelly.blake.relay=1writes1to/sys/class/strelay/relay1,=0writes0; either also storespersist.stargate.relay/system/etc/init/stargate.rc(lines 59-60, 81-89)cloud.shelly.update_arrivedrunscheck_stargate_update.sh; the Stargate WebUI (port 8021) is redirected from port 80 withiptables/system/bin/check_stargate_update.shShelly's OTA installer (below) /system/bin/rootcmd.shBoot-time hardware setup, started as root by rootcmdservice(/vendor/etc/init/hw/init.rockchip.rc, lines 19-21 and 131-137)/vendor/etc/init/hw/init.rk356x.rc(lines 37-44)exports GPIO 113 as an output set to 1(commented#add 485 control), andchmod 0777on/sys/class/graphics/fb0/blankand/sys/class/backlight/backlight/brightness/vendor/ueventd.rcttyS0,ttyS5,ttyS6,ttyS7,ttyS9are0666 system;ttyS1andttyS2are0660 bluetooth net_bt/system/etc/init/blank_screen.rca blank_screenservice (user system,oneshot,shutdown critical) runs/system/bin/blank_screenrootcmd.shis the most useful one. In order, it:- starts
clean_vendor_storageandchmod 777 dev/snd/pcmC1D0c(the microphone capture node), then runstinymix 1 1; - exports GPIO 126 as an output at
0(commented#zigbee reset); - exports GPIO 147, 148, 149 and 150 as outputs at
0and makes eachvalue0666(commented#add led); - exports GPIO 153 as an output at
1and makesvalue0666(commented#add radar); - writes
0x04 0x6467to theregfile of the amplifiers at1-0034and1-0036after achmod 777on both; - copies
/odm/frpto/data/local/tmp/frpandchmod -R 777s it, opens/data/logs, adds anip rule, and sleeps 60 s.
Commented out there: a relay on GPIO 144 and an input on GPIO 18. Both matter below.
check_stargate_update.shis a signed-OTA installer, not a hardware interface, but it decides how updates land and so what Glassworks must leave alone:- It compares the zip's
META-INF/com/android/otacertagainst/etc/security/otacerts.zip, then asks Stargate (CHECK_FILE_SIGNATUREbroadcast) to verify the whole file. - It refuses anything whose
manifest.jsonnameis notWallDisplayV2. - It then either sources an
updater-scriptor checksmd5.txtand runspm install -ron each APK undersystem/priv-app/.
A Shelly OTA can either install
priv-appAPKs or source a Shelly-signedupdater-script. This note does not record what anupdater-scriptwrites, so whether a future Shelly OTA leaves a Glassworks-patchedbootpartition intact is untested. - starts
-
Decompile
Stargate.apk(2026-11-30, read)$ jadx -d jadx_out Stargate.apk # 7591 classesThe app is a platform app:
AndroidManifest.xmlhasandroid:sharedUserId="android.uid.system"andpackage="cloud.shelly.stargate", and no device-admin receiver. It serves several Shelly products, picked by model string.Constants.java:433defines the XL's string,MODEL_NAME__BLAKE__ = "SAWD-3A1XE10EU2". What it does for Blake:Item Source Value Relay files, in order Constants.java:643-647(RELAY_FILES),getRelayFileat 1079/sys/devices/platform/leds/red_enableor/sys/class/strelay/relay1, first that exists;green_enableorrelay2for a second relayRelay written through a property Constants.java:758-760(RELAY_CONTROL_VIA_INIT_SCRIPT)cloud.shelly.blake.relay, whichstargate.rcforwards torelay1Relay "on" value Constants.java:799(GPIO_FILE_VALUES_FOR_RELAY_ON)"0"Relay "off" value Constants.java:810(GPIO_FILE_VALUES_FOR_RELAY_OFF)"1"Relay count DeviceSettings.java:166relayCount = 1Backlight ScreenBrightnessHelper.java:164-165Settings.Systemscreen_brightness_mode = 0andscreen_brightness; none of the threeDISPLAY_BRIGHTNESS_FILEpaths (Constants.java:706-712) is/sys/class/backlight/backlight/brightnessScreen off MainActivity.screenOffLayoutVisible,ScreenBrightnessHelper.ScreenOffRunnablea full-screen black layout, not a framebuffer or bl_powerwriteTemperature / humidity Constants.java:608,DeviceSettings.java:1325-1345reads /sys/devices/platform/sht3x-user/sht3x_access, ahumidity:temperaturepair of 16-bit raw values, offsets-1.2and+10.0(Constants.java:1013,1021)UART Constants.java:616,827-833,1047-1057UART_ENABLED = false;UART_FILE_MAPhasvGYto/dev/ttyS1,vXDto/dev/ttyMT1,vJennato/dev/ttyS5, and noBlakeInput DeviceSettings.java:80,Constants.java:816-824declares /dev/input/event4but never reads it in the decompile; input actions aretoggle_on,toggle_off,single_push,double_push,triple_push,long_push,very_long_pushThe same file also embeds a per-model bearer token for Shelly's cloud (
Constants.java, near line 844). It is not copied here and must never be (Hard rule 2).What this rules out. The relay is controlled by a plain file write, and the value
0closes it (on) while1opens it (off): inverted compared with the S1's0 = off. Blake has no UART peripheral at all in the app, so there is no dimmer, no metering and no wall-base protocol to port.ttyS5exists and is world-writable (ueventd.rc), but that is a Rockchip template line, and the app maps it to a different model. -
Read the kernel device tree (2026-11-30, read).
boot.imgcarries two copies of the device tree: one inside theRSCEresource image of thesecondsection (byte 32585216) and one in the header-v2dtbsection (byte 32806912). Both are 136601 bytes, and they are byte-identical;ro.boot.dtb_idxis0.$ python3 -I tools/shelly-xl/inspect-boot.py boot.img --dtb-out dtb/ dtb0.dtb offset 32585216 in the image 136601 bytes dtb1.dtb offset 32806912 in the image 136601 bytes (header v2 dtb section) $ dtc -I dtb -O dts dtb/dtb0.dtb > b0.dtsGPIO numbers below are
bank * 32 + pin(so 147 is GPIO4, pin 19, which isGPIO4_C3). Thephandlevalues in the file name the banks:0x39isgpio0,0xb0gpio1,0x13dgpio2,0x35gpio3and0x80gpio4.Node ( b0.dtsline)What it says st-keep-relay,smatek-keep-relay(5828-5840)latching relay: relay1-gpio_setGPIO1_D6,relay1-gpio_resetGPIO1_D5,detect-gpioGPIO4_B7,clk-gpioGPIO0_C6. Pins muxed byst_relay_pins(5457-5463), which also listsGPIO4_C0andGPIO4_C1(GPIO 144 and 145)adc-keys(5482-5513)KEY_F1toKEY_F4(codes0x3bto0x3e), labelledvol-up,vol-down,menu,back, on one ADC channel, 100 ms poll, thresholds 1750, 297500, 980000 and 1305500 µV, key-up at 1800000 µVgpio_keys(5913-5924)one button@21, "GPIO Key 1", code0x3f(KEY_F5) onGPIO0_C2(GPIO 18),autorepeatbacklight(5535-5541)pwm-backlight,pwms = <... 0x61a8 ...>(25000 ns period), 256 levels (0, then20rising to255),default-brightness-level = <15>.dsi0_paneluses it (2641)i2c1fe5a0000(3612-3688)aw82194_smartpa@34and@36, andaw88399_smartpa@34and@35, allstatus = "okay"; the sound cardaw88399_sound(5650-5656) names<0x132 0x133>, the two AW88399i2c5fe5e0000(3875-3890)lsensor@46,ls_stk3a5x,irq-gpioGPIO3_D5, 100 ms poll; itspsensor@46isdisabled;mxc6655xaaccelerometer isdisabledi2c3fe5c0000es7202@32,ES7202_PDM_ADC_1, behindpdm@fe440000(pdm-sound-micarray, 5621)i2c_gpio@6(5895-5911)software I²C on GPIO3_A2(SDA) andGPIO3_A1(SCL) withcht8305@40,px30-cht8305.twi.1(px30-cht_plat) sits next to itwireless-bluetooth(5809-5822)bluetooth-platdata, resetGPIO3_C7, wakeGPIO2_C0, host-wakeGPIO2_B7, RTS onGPIO2_B5uart1fe650000,uart5fe690000(4010, 4070)uart5isokay(this isttyS5); Bluetooth rides onttyS1The device tree lists two amplifier families on the same bus at
0x34. It is a board file shared across variants, and the kernel binds only one of them (next step). -
Cross-check against the live
adbcapture (2026-11-30, verified)The capture is
tools/shelly-xl/recon.sh adb, run once on a real unit with the stock system running and unrooted (uid=2000(shell)), saved underdumps/(ignored by git). Four facts:-rw-rw-rw- 1 system system 4096 ... /sys/class/strelay/relay1 -r--r--r-- 1 root root 4096 ... /sys/class/strelay/remote -rwxrwxrwx 1 system system 4096 ... /sys/devices/platform/backlight/backlight/backlight/brightness -rw-r--r-- 1 root root 4096 ... /sys/devices/platform/backlight/backlight/backlight/bl_poweradd device 2: /dev/input/event5 name: "relay detect" KEY_F11 KEY_F12 add device 3: /dev/input/event2 name: "lightsensor-level" ABS_TOOL_WIDTH ABS_MISC add device 4: /dev/input/event3 name: "adc-keys" KEY_F1 KEY_F2 KEY_F3 KEY_F4 add device 5: /dev/input/event4 name: "gpio_keys" KEY_F5 KEY_F6 add device 6: /dev/input/event0 name: "rk805 pwrkey" KEY_F10The light sensor's sysfs path in
/proc/bus/input/devicesis.../fe5e0000.i2c/i2c-5/5-0046/..., which isi2c5at0x46, as the device tree said.event1is thejadard-touchscreen(1280 × 800, 10 slots). Kernel log lines[Awinic][1-0034-1]and[Awinic][1-0035]show the two AW88399 amplifiers bound at0x34and0x35; no1-0036device appears anywhere in the log. Kernel threads[cht8305],[relay_detect_wq]andirq/111-relay_dare running.ls /sys/devices/platform/sht3x-user(the path Stargate reads) printed nothing. The sensor service lists three generic AOSP sensors (accelerometer, proximity, light) with Stargate'sShellySensorManageras the only light-sensor client at a 7000 µs period. Other properties:persist.stargate.relay=1,sys.wifi.chip=AIC8800,persist.sys.usb.config=adb,ro.adb.secure=0. The Bluetooth address, hostname and serial in the same capture are not quoted here.What this settles. The relay node is writable by any app on the panel today, and the backlight node is world-writable as
init.rk356x.rcpromised.event4(gpio_keys) advertisesKEY_F5andKEY_F6, while the device tree lists one button, so the second key comes from somewhere the device tree doesn't show. Androotcmd.sh's second amplifier write (1-0036) points at the other amplifier family, which this unit doesn't have. -
Read the Bluetooth and Wi-Fi setup (2026-11-30, read).
/vendor/etc/bluetooth/bt_vendor.confhasUartPort = /dev/ttyS1;/vendor/lib/and/vendor/lib64/carrylibbt-vendor-aic.sonext to the Realtek and generic builds;/vendor/lib/modules/aic8800_fdrv.kois the Wi-Fi driver, and the live kernel showsaicwf_*threads andsys.wifi.chip=AIC8800. The Wi-Fi/BLE combo is an AIC8800 on an SDIO host with a UART Bluetooth side. The Android Bluetooth service runs with stateONand 0 BLE apps. Nothing here proves the AIC8800's BLE stack supports a GATT proxy's scan volume; the stack is standard Android Bluetooth, so the Bluetooth-proxy pane's requirement is met on paper. -
Read the audio path (2026-11-30, read). The microphone HAL config
/vendor/etc/aispeech_hal_config.jsonopens card 1, device 0 (the noderootcmd.shmakes world-accessible) asfe440000.pdm-es7202: 16 kHz, 16-bit, 8 channels, andselect_channel_order = "234567"(six of the eight). The speakers are the two AW88399 smart amplifiers oni2c1(device tree and live log agree).rootcmd.shwrites0x04 0x6467to each amplifier'sregfile;tinymix 1 1sets mixer control 1 to 1 (the control's name isn't in any file we read). The AW88399 calibration file/mnt/vendor/persist/factory/audio/aw_cali.binis absent (error=-2in the live log), which is harmless: the driver falls back to defaults. -
Read the boot image and
vbmeta(2026-11-30, verified on the byte-exact backup)$ python3 -I tools/shelly-xl/inspect-boot.py boot.img vbmeta.img header_version 2 page_size 2048 os_version 0x1600015a kernel 31895560 bytes ramdisk 678273 bytes second 226304 bytes cmdline console=ttyFIQ0 ... androidboot.veritymode=enforcing ... androidboot.verifiedbootstate=orange firmware_class.path=/vendor/etc/firmware init=/init rootwait ro ... androidboot.selinux=enforcing kernel: uncompressed ARM64 Image ramdisk: gzip, 1484288 bytes unpacked debug_ramdisk dev fstab.rk30board init (1480984 bytes) mnt proc sys 7 entries vbmeta: AVB 1.0 algorithm 0 flags 0x2 (bit 1: verification disabled)Fact Evidence Android boot image v2 ( ANDROID!), 2048-byte pagesheader above Kernel is an uncompressed ARM64 ImageARMdat offset0x38of the kernel sectionRamdisk is gzip with 7 entries and a 1.4 MB initcpio listing above A secondsection (226304 bytes) holds theRSCEresource image with one device tree; the header-v2dtbsection holds the otherstep 4 No dm-verity vendor/etc/fstab.rk30boardhas noavborverifyflag onsystem,vendor,odm,product,system_extNo file-based encryption the userdataline withfileencryption=is commented out; the live line is plain ext4 (/data,latemount,wait,formattable,check,quota,...)vbmetahas flags0x02, verification disabledAVB0header, 32-bit flags at byte 120No Device Owner not a hardware fact: the Stargate manifest declares no device-admin receiver, and no other package was checked All reads. A Glassworks boot patch therefore has nothing to defeat on the verity or encryption side. It needs a v2-header, ARM64 path (arm64 Magisk), which bootpatch-spec.md now describes.
-
A leftover the firmware ships (2026-11-30, read).
/odm/frp/holds afrpcbinary (a reverse-proxy client) withfrpc.iniandfrpc_full.ini. The short file maps the panel's localadbTCP port 5555 to a remote server port, with the server address set to a private-range IP (redacted here).rootcmd.shcopies the folder to/data/local/tmp/frpbut nothing we read startsfrpc, and it was not in the process list of the live capture. Treat it as a factory debug tool left in the image, not an active tunnel, and keep it out of any frame that inherits/data/local/tmp.
Result
What a Glassworks frame for the Wall Display XL can rely on, and how sure each row is.
| Interface | Node or path | Access today | Value or note | Confidence |
|---|---|---|---|---|
| Mains relay, latching | /sys/class/strelay/relay1 (driver smatek-keep-relay; a second relay2 is only chown'd, absent on this unit) |
0666 system (live) |
Stargate writes 0 for on and 1 for off (inverted). Live bench toggle (1 → 0 → 1) read back 0/1 and clicked audibly with rear relay module attached. Property route: cloud.shelly.blake.relay |
verified (live toggle, 2026-11-30) |
| Relay state input | /dev/input/event5, "relay detect", KEY_F11/KEY_F12, detect-gpio GPIO4_B7, kernel thread relay_detect_wq |
0664 (stargate.rc) |
the two keys are the two levels of the detect line; that this is the external SW terminal is inferred from Stargate's toggle_on/toggle_off events and the product's SW input |
read, partly inferred |
External UART /dev/ttyS5 |
ttyS5 (uart5, okay) |
0666 system |
ruled out for Blake: UART_ENABLED = false, UART_FILE_MAP has vJenna to ttyS5 and no Blake. No dimmer, no power metering on the XL |
read |
| Backlight | /sys/class/backlight/backlight/brightness |
0777 system (live) |
0 to 255 through a 256-entry PWM table (20 is the lowest lit step), 25000 ns period, default level 15; bl_power is 0644 root |
read, live permissions verified |
| Screen off | Stargate: full-screen black layout. fb0/blank is 0777 |
fb0/blank and bl_power as a clean blanking path |
untested | |
| Bezel buttons | /dev/input/event3, adc-keys, KEY_F1 to KEY_F4 |
0664 |
top-to-bottom on right bezel: KEY_F1 (top), KEY_F2, KEY_F3, KEY_F4 (bottom) |
verified (live getevent, 2026-11-30) |
| Power key | /dev/input/event0, rk805 pwrkey, KEY_F10 |
0664 |
PMIC key | verified (live) |
| Radar presence | /dev/input/event4, gpio_keys, KEY_F5, KEY_F6; enable GPIO4_D1 (gpio 153) set to 1 by rootcmd.sh |
0664; value 0666 after boot |
KEY_F5 (DOWN+UP pulse) = presence detected / approach; KEY_F6 (DOWN+UP pulse ~3 s after leaving) = cleared / away |
verified (live getevent, 2026-11-30) |
| Button LEDs | gpio 147 to 150 (GPIO4_C3 to GPIO4_C6), exported as outputs at 0 |
value 0666 after boot (script) |
active-high (1 = on, 0 = off); top-to-bottom order matches buttons 1–4 (gpio147 top → gpio150 bottom) |
verified (live visual check, 2026-11-30) |
| Zigbee reset | gpio 126 (GPIO3_D6), output at 0 |
value 0666 |
no Zigbee radio on the board; template leftover, likely unpopulated | read |
| Ambient light | Sensortek STK3A5x on i2c5 at 0x46; /dev/input/event2 lightsensor-level and Android SensorManager light sensor |
read via Android | Stargate reads it at a 7000 µs period; /sys/class/st_lsensor/lsensor_disabled is 0666 system (live) |
verified (events live, 2026-11-30) |
| Temperature / humidity | CHT8305 on software I²C 0x40 (i2c_gpio@6), platform companion twi.1: /sys/devices/platform/twi.1/i2c-1/1-0040/temp1_input and humidity1_input |
0664 root, u:object_r:sysfs:s0; readable directly from an untrusted_app (run-as verified, no root needed) |
milli-units: live readings 26085→26105 (26.1 °C) and 46509→46289 (46.3 % RH). Stargate's sht3x-user/sht3x_access path does not exist on XL |
verified (live, 2026-11-30) |
| SoC thermal zone | /sys/class/thermal/thermal_zone0/temp (type = soc-thermal) |
0444, readable by app |
millidegrees C (40625 = 40.6 °C live); thermal_zone1 is gpu-thermal |
verified (live, 2026-11-30) |
| Speakers | 2 × Awinic AW88399 on i2c1 at 0x34 and 0x35; card rockchip,aw88399-codec |
bound in the live log; rootcmd.sh pokes 1-0034 and 1-0036 (0x36 belongs to the other amplifier family, absent) |
verified (log) | |
| Microphones | PDM through an ES7202 ADC, card 1 device 0, /dev/snd/pcmC1D0c |
chmod 777 by rootcmd.sh |
16 kHz, 16-bit, 8 channels, six used. The "4-microphone array" in frame.json is not confirmed from these files |
read |
| Wi-Fi and Bluetooth LE | AIC8800 on SDIO; Bluetooth on /dev/ttyS1; libbt-vendor-aic.so; standard Android Bluetooth |
libbt-vendor-aic.so plus a running stack: a Bluetooth proxy is plausible |
read, untested | |
| Boot image | v2 header, uncompressed ARM64 kernel, gzip ramdisk of 7 entries | no dm-verity, no FBE, vbmeta flags 0x02 |
verified |
For the frame's design/frame.json: the panes list (radio and wall-base unsupported, the
rest derived from provides) matches these rows, and the Presence spec line, "Radar proximity
sensor and light sensor (STK3A5x)", is right as written.
How to reproduce
All of this is read-only on the panel and on the backup. Nothing writes storage.
- Backup first.
dumps/shelly-xl-20261130-fullbackup/is the byte-exact image set from hardware.md. The scripts below only read from it. - Live capture (read-only
adb):tools/shelly-xl/recon.sh adb. It writes one text file per area (06-hardware-nodes.txt,07-sensors-audio-bt.txt,08-init-and-scripts.txtand so on) underdumps/shelly-xl-<date>/adb/. - Split
super.img(writes only to the empty output directory):python3 -I tools/shelly-xl/super-extract.py super.img parts/. It reads the LP geometry (magic0x616c4467at byte 4096) and metadata header (0x414C5030at 12288) and writes one image per logical partition. Read each with an ext4 reader, in an empty directory (extracted files are untrusted data). - Decompile Stargate. Take
Stargate.apkfrom the extractedsystemorproductpartition and runjadx -d <empty dir> Stargate.apk. Searchcloud/shelly/stargate/Constants.javaandhelpers/DeviceSettings.java. - Device tree and boot image (writes only to the empty output directory):
python3 -I tools/shelly-xl/inspect-boot.py boot.img vbmeta.img --dtb-out dtb/, thendtc -I dtb -O dts dtb/dtb0.dtb. The script prints the header, the kernel type, the ramdisk entries and thevbmetaflags.
To undo anything: there is nothing to undo, because nothing was written.
Open questions
- Wall switch (
event5) polarity. Confirm with a wired SW switch whetherKEY_F11orKEY_F12corresponds to closed vs. open (relay click on/sys/class/strelay/relay10/1, radarKEY_F5/KEY_F6, and button LEDsgpio147–150active-high top-to-bottom are all verified live 2026-11-30). - A clean blank. Whether
echo 1 > /sys/class/graphics/fb0/blankorbl_powerblanks the panel and wakes it again, without Stargate's black overlay. - The amplifiers'
regwrite. What0x04 0x6467sets, and whether the second write (to1-0036) fails harmlessly. - Microphones. How many microphones the six selected channels cover, and what
tinymix 1 1switches. st_lsensor/lsensor_disabled. Exists or not on this unit, and what it does.- Device Owner.
dumpsys device_policywas not part of the capture.