Hisense HE40E5600FFWTS β Root & Modding β Final Documentation
Publication note: this public tree does not ship the vendor binaries (
tvi_original.so,libtvsysinfo.so) or device-specific key material (authorized_keys, host-key fingerprint). Paths in the listings below are kept for documentation β recreate the artefacts from your own device.
One folder, two sections, no more searching.
TV: Hisense HE40E5600FFWTS, FW V0100.01.00A.N0410, LAN 192.0.2.94
Host: Linux, Python 3, arm-linux-gnueabihf-*; host IP in the example 192.0.2.150
Status: 2026-10-26 β root + Dropbear SSH (key-only) + PTY confirmed live; boot persistence installed (reboot test pending). SFTP optional (static OpenSSH sftp-server + patched Dropbear).
The three questions in 30 seconds
Which Linux?
Hisense/MediaTek Embedded Linux, not a standard distro:
- Linux 3.18.25, ARMv7 (Cortex-A53, NEON/VFPv4), MediaTek MT53xx/MT5863 class (mt53xx-emmc, mt5863_sa_768_linux)
- glibc 2.18, BusyBox 1.18.5, SysV init (inittab/rcS/rc.local), no systemd
- No /etc/os-release; firmware V0100.01.00A.N0410
- squashfs-ro: / (38.8 MB, 100 %), /3rd (141 MB, 100 %)
- ext4-rw: /3rd_rw (1.1 GB, 56 %), /data (1.9 GB), /perm (3.9 MB); /spdata ro
- No overlayfs β modding via rw partitions + mount --bind
Is there a package manager?
No. No apt, dpkg, opkg, ipkg, rpm, apk, yum, pacman; no /etc/opkg//var/lib/dpkg.
Consequence: build static ARM binaries/shell scripts and get them to /3rd_rw via File.download/SSH/base64/tar. No opkg install.
Where is the UI and how does it run?
TV UI = web UI in the hisenseUI browser (root, GLES):
/basic/autorun.sh (line 168)
β /3rd/opera4x/hisenseUI/start-UI.sh
β ./bin/hisenseUI --hw-gles --jsplugins-dir=/3rd/UI_jsplugins \
--disable-web-security ... -u /3rd_rw/UI/index.html
- UI:
/3rd_rw/UI/index.html(PIXI), UI processhisenseUI(e.g. PID 589), DevTools 9223 - Launcher/apps:
/3rd_rw/appdata/launcher/withpreset.txt(26 preinstalled tiles),Appinfo.json(user apps),deletedPresetApp.txt(hidden),data/Category*.xml,PicInfo.xml,res/ - LauncherService:
/3rd/launcherservice/bin/LauncherService(viastartLS.shfromdelayrun.sh) - Native apps / AM:
/basic/app_man -c /basic/am_config -s /basic/am_start.ini;dtv_svc,netflix,dialserver,samba,browser_base,securetime, β¦; control is:am,<app>,:<verb>=<val> - Web browser (not the TV UI):
hisense_browser(e.g. PID 1320),run-Browser.sh,--hw-dfb,--allow-file-access-from-files, DevTools 9224; the recon page runs here.
UI β browser: hisenseUI (TV UI) and hisense_browser (web browser) are separate processes with their own start scripts, renderers, JS plugins and debug ports.
Folder structure
<repo-root>/
βββ README.md # this file
βββ dead-ends.md # short list of dead ends
βββ SHA256SUMS
βββ root/ # SECTION 1: Root
β βββ ROOT-GUIDE.md # complete path (manual + scripts)
β βββ README.md # short index
β βββ tools/
β β βββ server.py # host: recon + /pub + /cmd + /recon + /dump
β β βββ recon.html # TV page (fileXHR/listDir/HiBrowser hook)
β β βββ live_cmd.txt # optional live channel (empty)
β β βββ pub/ # served files
β β βββ libtvsysinfo.so # final root payload
β β βββ dropbear/dropbearkey # static ARM Dropbear 2022.83
β β βββ dropbear-sftp # Dropbear with SFTPSERVER_PATH=/3rd_rw/sshd/sftp-server
β β βββ sftp-server # static OpenSSH-9.9p1-sftp-server
β β βββ authorized_keys # your public key
β β βββ start_sshd.sh # Dropbear + passwd/PTY bind mounts
β β βββ root_loop.sh # root command channel
β β βββ hamservice-wrapper.sh # boot hook
β β βββ deploy_sshd.sh # installation as root
β β βββ verify.sh / rollback.sh
β βββ scripts/
β β βββ host/
β β β βββ prepare_usb.sh # ext4/MBR stick + tvi symlink
β β β βββ start_http.sh # server on :9000
β β β βββ plant_payload.js # write payload through tvi
β β β βββ upload_to_appdata.js # Dropbear/deploy to appdata
β β β βββ run_root_cmd.js # root_cmd/root_out
β β β βββ build_payload.sh # reproduce payload
β β β βββ build_tvi_payload.py # builder (deterministic)
β β β βββ build_dropbear.sh # build Dropbear from sources/
β β β βββ build_sftp_server.sh # build static sftp-server
β β β βββ patch_dropbear_sftp.py # patch Dropbear SFTP path
β β β βββ install_sftp.sh # install/test SFTP and swap to 22
β β βββ tv/
β β βββ start_sshd.sh
β β βββ root_loop.sh
β β βββ hamservice-wrapper.sh
β β βββ deploy_sshd.sh
β β βββ verify.sh
β β βββ rollback.sh
β β βββ install_sftp_stage.sh # sftp-server + test Dropbear on 2222
β β βββ enable_sftp.sh # schedule the swap to 22
β β βββ swap_sftp.sh # perform the swap detached
β βββ artifacts/
β βββ tvi_original.so # original library (33.220 B)
β βββ keys/{authorized_keys,host-key-fingerprint.txt}
βββ modding/ # SECTION 2: Modding
β βββ README.md # modding index/TL;DR
β βββ 01-system-linux.md # Linux/SoC/userland/package manager/storage
β βββ 02-boot.md # boot, autorun, developer.sh, services
β βββ 03-ui.md # hisenseUI vs hisense_browser, UI data, AM
β βββ 04-modding.md # recipes: custom app/UI/services/bloat
β βββ 05-bloat.md # 26 preset apps, service matrix, disabling
β βββ 06-toolchain-deploy.md # build/deploy static ARM, SSH/PTY
β βββ 07-evidence-unknowns.md # evidence, status, known unknowns
β βββ templates/
β βββ developer.sh # earlier root boot hook
β βββ custom-app.json # Appinfo tile
β βββ hide-preset.json # deletedPresetApp.txt
β βββ custom-ui.html # minimal custom UI
β βββ start-UI-custom.sh # start-UI.sh with custom.html
β βββ README.md
βββ sources/
βββ dropbear-2022.83.tar.bz2 # offline build source
βββ openssh-9.9p1.tar.gz # offline build source for sftp-server
Replicate in 11 steps
# 1) Host: stick (DESTRUCTIVE)
sudo root/scripts/host/prepare_usb.sh /dev/sdX
# 2) Host: server
root/scripts/host/start_http.sh
# 3) TV: open http://<host-ip>:9000/recon.html
# 4) TV console: adjust USB dev, run plant_payload.js
# -> /3rd_rw/loglevel/lib/libtvsysinfo.so (33500 B, SHA 37b13fβ¦)
# 5) Reboot the TV
# 6) Verify root: /3rd_rw/root_proof.txt = ROOT_EXEC_TVI
# 7) TV console: upload_to_appdata.js
# 8) TV console: run_root_cmd.js (deploy_sshd.sh)
# 9) ssh root@192.0.2.94
#10) Rollback: /bin/sh /3rd_rw/appdata/rollback.sh
#11) SFTP optional: root/scripts/host/install_sftp.sh
# afterwards: sftp root@192.0.2.94
Complete: root/ROOT-GUIDE.md
Modding: modding/README.md
Dead ends: dead-ends.md
Integrity: sha256sum -c SHA256SUMS
What the root path does (brief)
- Browser is root:
hisense_browserUID/GID 0, fullCapEff, single process, no seccomp. - USB write primitive: dangling symlink
tvion ext4 βIsSubDentrybypass β new root-owned file. - Loader shadow:
libtvsysinfo.sois a directNEEDED;LD_LIBRARY_PATHindex 17 is/3rd_rw/loglevel/lib; the shadow library sits there. - DT_INIT payload: appended code at the end of the file, RX
p_filesz/memszextended,DT_INIT=0x81c4; unlink self, proof, fork/execroot_loop.sh, original init. - Root loop:
root_cmd.shβroot_out.txt. - SSH: Dropbear 2022.83 static, key-only,
/etc/passwdbind (root home/3rd_rw/sshd/home), devpts on/dev/shm/ptsβ bind/dev/pts(PTY),HamServicewrapper for boot persistence. - SFTP (optional): Dropbear has no sftp-server of its own; static OpenSSH-9.9p1-sftp-server + Dropbear with
SFTPSERVER_PATH=/3rd_rw/sshd/sftp-server. Installation tests port 2222, then swaps to 22; afterwardssftp root@β¦.
Security / ground rules
- No flash, no
.pkg, no bootloader. Rootfs//3rdare squashfs-ro; changes only in/3rd_rw,/data,/perm, bind mounts. - SSH is key-only root on the LAN. No password; protect the private key; do not expose it to the internet.
- SFTP is optional and root-equivalent. Key-only like SSH; installation first tests 2222, backup
/3rd_rw/sshd/dropbear.nosftp, rollback in the root guide. - The root loop is root-equivalent. Anyone who can write
root_cmd.sh(browser root) can run root commands. - Back up before UI/AM/launcher changes. Especially
/3rd_rw/UI/index.html,/3rd_rw/appdata/launcher/*,/basic/am_config/am_start.ini. - Keep SSH/root as a rescue path. A broken UI means a black screen; kill and restart
hisenseUIvia SSH/root loop, restore the page from backup. developer.shis an early root hook (beforems_service/UI/app_man/delayrun); errors there can affect boot/UI./3rd_rw/patch/opera4xis a full bind mount over/3rd/opera4x; only with a complete copy/symlink tree; for single files prefer a file bind mount viadeveloper.sh.- No secrets in the folder: no root hash, no private SSH key; only the public key + host fingerprint.
- Not everything is tested: root/SSH/PTY live; the modding recipes are derived from static/live data; status in
modding/07-evidence-unknowns.md.
Verification status (excerpt)
| Item | Status |
|---|---|
| Browser root / full CapEff | CONFIRMED live |
| USB ext4 symlink bypass | CONFIRMED live |
libtvsysinfo shadow / DT_INIT |
CONFIRMED live (ROOT_EXEC_TVI, self-unlink) |
| Root loop / command channel | CONFIRMED live (uid=0, root_out.txt) |
| Dropbear SSH / port 22 / pubkey root | CONFIRMED live |
| PTY / interactive shell | CONFIRMED live (pts/0) |
| SFTP (optional) | static sftp-server + patched Dropbear; installer tests 2222 before 22; TV test after install |
| HamService boot persistence | configured; reboot test in the root guide |
| Modding recipes / custom UI / bloat | UNVERIFIED (derived from static/live data, not all executed yet) |
Host key (SSH): <host-key-fingerprint>
Your key: <your-public-key> (fingerprint <host-key-fingerprint>)
Provenance
The earlier run archive (not part of this repository; in the old project) is
kept as evidence/history. You do not need it for replication or modding:
the original research folder contained the final state, binaries, scripts and
docs. The old experiments/dead ends are summarised briefly in dead-ends.md.