docs / models / HE40E5600FFWTS / V0100.01.00A.N0410 / source

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 β‰  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)

  1. Browser is root: hisense_browser UID/GID 0, full CapEff, single process, no seccomp.
  2. USB write primitive: dangling symlink tvi on ext4 β†’ IsSubDentry bypass β†’ new root-owned file.
  3. Loader shadow: libtvsysinfo.so is a direct NEEDED; LD_LIBRARY_PATH index 17 is /3rd_rw/loglevel/lib; the shadow library sits there.
  4. DT_INIT payload: appended code at the end of the file, RX p_filesz/memsz extended, DT_INIT=0x81c4; unlink self, proof, fork/exec root_loop.sh, original init.
  5. Root loop: root_cmd.sh β†’ root_out.txt.
  6. SSH: Dropbear 2022.83 static, key-only, /etc/passwd bind (root home /3rd_rw/sshd/home), devpts on /dev/shm/pts β†’ bind /dev/pts (PTY), HamService wrapper for boot persistence.
  7. 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; afterwards sftp root@….

Security / ground rules


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.