65U8HAU β V0000.06.29X.P0813 (extension X.P0813)
- Model:
65U8HAU(Australian U8H Mini-LED series;Hisense_GetSerialType()=65U8H, internal boardHisense_GetModelName()=65E83GAVT; international VIDAA U6 siblings on the same MTK9900 platform are sold as65U8HQin EU/UK and65U8Hin MEA/ZA/APAC, whereas the North American65U8Hships with Google TV rather than VIDAA) - Firmware:
V0000.06.29X.P0813(extensionX.P0813viaHisense_GetFirmWareVersion()) - SoC:
MTK9900(MediaTek MT9900, 64-bit ARMaarch64viaHisense_GetChipSetName()and UA) - Region:
AU(Hisense_GetRegion()=EM_C,Hisense_GetCountryCode()=AUS, SSDPregion=0) - VIDAA OS:
U06.29(viaHisense_GetOSVersion()) - Transport Protocol:
3160 - Browser:
Chrome/88.0.4324.182(Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36), launched asTV Browser(appId: "16",storeType: 100,url: "url16") - Reported by: @MewX
Applies to the
65U8HAU(65E83GAVT) runningV0000.06.29X.P0813(transport_protocol=3160). See EVIDENCE.md for the measured claim ledger and MODDING.md for the in-browserWebSDK_*/Hisense_Get*JS bridge surface and launcher details.
Summary of Status & Outcomes
- Phase 0 β SSDP & Network Fingerprint (
CONFIRMED live): - UPnP/DLNAMediaRendererdescriptor responds on:18400/MediaServer/rendererdevicedesc.xml. -modelDescriptionreportstransport_protocol=3160,region=0,platform=1,voice=2,brand=his,vidaa_support=1, plusmac,macWifi, andmacEthernet(12 lowercase hex chars without colons). - RemoteNow MQTT over TLS is open on TCP36669. - Phase 1 β RemoteNow MQTT Pairing & Control (
CONFIRMED live): - Client certificate extracted fromres/El.p12(2565 bytes) insidecom.universal.remote.multiv1.09.05.001.0 (CN=VidaaAppAndroidV01, valid 2024β2034). No APK modification, re-signing, or phone installation is needed βres/El.p12is read directly from the APK ZIP archive. - MAC format requirement: Passing the unformatted 12-hex-charactermacWififrom SSDP is rejected at MQTTCONNECTwithrc=133(Client Identifier not valid). FormattingTV_MACas uppercase colon-separated (XX:XX:XX:XX:XX:XX) is required. - Profile selection: WithTV_MAC="XX:XX:XX:XX:XX:XX",modernandmiddleprofiles fail withrc=135(Not authorized), whereas thestandardprofile (his$<ts>+STANDARD_SALT) connects cleanly withrc=0. - Token issuance & post-pairing actions: Submitting the 4-digit PIN toui_service/actions/authenticationcodereturns{"result": 1, "info": ""}, andplatform_service/data/tokenissuanceissues a 2-dayaccesstokenand 30-dayrefreshtoken. - Why priorV0000.06.29X.P0813reports saw "silent actions": Actions (gettvstate,sourcelist,applist,launchapp) are ignored on the initial pairing connection (which logged in with the temporary dynamic pairing password). Reconnecting a fresh MQTT session withusername=_usernameandpassword=accesstoken(asserver/vidaa_server.pydoes) unlocks full two-way MQTT responses:state: live input/app state (sourceswitch,app)sourcelist: 7 sources (TV,VIDAA tv,HDMI1βHDMI4with custom display names andis_signal/has_signalflags,AV)applist: 45 installed apps (storeTypeinteger98/99/100, includingappId: "16"TV Browser)launchapp: verified launchingTV Browserremotely over MQTT without a physical browser shortcut on the remote.
- Phase 2 β In-Browser Hardware Identity & JS Bridge Surface (
CONFIRMED live): - Openinghttp://<server>:8765/inTV Browserrenders the 1080p HiDPI canvas launcher and connects to/ws. - In-browserHisense_Get*calls confirm:Hisense_GetFirmWareVersion():"V0000.06.29X.P0813"Hisense_GetChipSetName():"MTK9900"Hisense_GetOSVersion():"U06.29"Hisense_GetModelName():"65E83GAVT"Hisense_GetRegion():"EM_C"Hisense_GetCountryCode():"AUS"Hisense_GetBrand():"Hisense"- VIDAA U6
WebSDK_*bridge support added tolauncher/:launcher/index.html,launcher/index-dom.html,launcher/recon.html,launcher/hookcheck.html, andlauncher/hookinstall.htmlnow detectWebSDK_createFileRequest(BRIDGE.websdk) alongsideHiUtils_createRequest(VIDAA U7/U9) andHisense_installApp(legacy). OnV0000.06.29X.P0813(U06.29), the browser exposes the VIDAA U6WebSDK_*+ Opera OMI bridge (WebSDK_createFileRequest,WebSDK_createLibRequest,WebSDK_hiSecurity,WebSDK_hiSignVerify,WebSDK_getParam,WebSDK_setParam,opera_omi,omi_platform,Hisense_LoginWithVIDAA, and 66Hisense_Get*/Hisense_Set*functions β full list in MODDING.md).
- Phase 3 β Security & Root-Surface Verification (
CONFIRMED live): -identity_gate(/file/*and/hiSecurity/*vs/tvapi/*):http://localhost:9009is served by the U6 C++ UI service (content-type: text/json\r\n). It enforces a server-sidevidaahub.comOrigingate on bothPOST /file/*andPOST /hiSecurity/*(returning200 OKwith an empty body""to LAN HTTP origins), while leavingGET /tvapi/initialDataandPOST /tvapi/deviceCodeungated from any origin. -file_bridge_traversal,file_bridge_write&euladpp_untar: Gated from LAN HTTP origins (WebSDK_createFileRequest("fileRead", ...)on../etc/shells,../proc/version,../APPS/euladpp/current/versionInfo.json, and../APPS/euladpp/eulaDpp.tar.gzall return""; 4 mode bases0..3instead of0..7). -devtools_forge& LAN TCP port filter:POST http://localhost:9009/tvapi/deviceCodereturns the unmasked 6-digit hexdeviceCodefrom any origin and TCP port9226is unfiltered on the LAN (errno=111 ECONNREFUSED, whereas ports9222β9224,2222,2323, and8008are firewall-dropped witherrno=11), butWebSDK_hiSecurity("getDebugPort", "{}")(POST /hiSecurity/getDebugPort) is also blocked by thelocalhost:9009origin gate (""). Consequently, playbook root chains from a plain LAN HTTP origin areblocked-at-origin-gate.
Step-by-Step Walkthrough
Step 1: Extract the 2024 Client Certificate from the APK
You do not need to decompile, recompile, re-sign, or install the APK on a phone. Android .apk files are standard ZIP archives, and res/El.p12 (2565 bytes) inside com.universal.remote.multi_1.09.05.001.0 can be extracted directly on Linux/WSL:
mkdir -p server/keys
unzip -p com.universal.remote.multi_1.09.05.001.0.apk res/El.p12 > server/keys/El.p12
# OpenSSL 3.x requires -legacy; OpenSSL 1.1.1 (e.g. Ubuntu 20.04) rejects -legacy and runs without it:
openssl pkcs12 -in server/keys/El.p12 \
-passin pass:186e990688070325a1c4b0ce275d2388 \
-clcerts -nokeys -out server/keys/vidaa_cert.pem
openssl pkcs12 -in server/keys/El.p12 \
-passin pass:186e990688070325a1c4b0ce275d2388 \
-nocerts -nodes -out server/keys/vidaa_key.pem
rm -f server/keys/El.p12
chmod 600 server/keys/vidaa_key.pem
Verify the subject matches CN = VidaaAppAndroidV01:
openssl x509 -in server/keys/vidaa_cert.pem -noout -subject -issuer -dates
Step 2: Discover the TV via SSDP (Phase 0)
Send an SSDP M-SEARCH (ST: ssdp:all) to 239.255.255.250:1900 and fetch http://<tv-ip>:18400/MediaServer/rendererdevicedesc.xml:
<modelDescription>#CAP#
mac=<redacted>
macWifi=<redacted>
macEthernet=<redacted>
ip=<tv-ip>
region=0
transport_protocol=3160
platform=1
voice=2
brand=his
vidaa_support=1
</modelDescription>
Step 3: Pair Over MQTT (36669) Using Colon-Formatted TV_MAC & standard Profile
server/pair.py now automatically normalizes a 12-character SSDP macWifi into uppercase colon-separated format (XX:XX:XX:XX:XX:XX) when the broker returns rc=133 (Client Identifier not valid):
TV_MAC="<macWifi>" ./server/venv/bin/python server/pair.py <tv-ip>
TV_MAC Format |
Profile | MQTT CONNACK (paho-mqtt v2) |
Meaning |
|---|---|---|---|
xxxxxxxxxxxx (no colons) |
modern / middle / standard / legacy |
rc=133 |
Client Identifier not valid (pair.py auto-retries with XX:XX:XX:XX:XX:XX) |
XX:XX:XX:XX:XX:XX (uppercase + colons) |
modern / middle / legacy |
rc=135 |
Not authorized |
XX:XX:XX:XX:XX:XX (uppercase + colons) |
standard |
rc=0 |
Session established |
Step 4: Run vidaa_server.py and Open the TV Browser
Once server/keys/tokens.json is written:
./server/venv/bin/python server/vidaa_server.py <tv-ip> 8765
To open the built-in browser on the TV over MQTT (useful when no browser icon is pinned on the home screen), call the /api/browser endpoint added to server/vidaa_server.py:
curl "http://localhost:8765/api/browser"
Under the hood, /api/browser publishes launchapp with the TV Browser entry from applist:
{
"appId": "16",
"name": "TV Browser",
"url": "url16",
"storeType": 100
}
Practical Tips & Traps Learned During This Process
- The 30-second PIN dialog timeout vs. AI chat latency:
- On
V0000.06.29X.P0813, the TV closes the 4-digit PIN popup after ~30 seconds and pushesui_service/data/authenticationcodeclose. Any PIN submitted after that push fails with{"result": 100, "info": "illegal authNum!!"}. - Relaying the PIN through a multi-turn AI chat interface (~25β35 seconds round-trip) consistently loses the race againstauthenticationcodeclose. - Solution: Serve a minimal local HTML page onhttp://localhost:8799/with a "1. Trigger PIN on TV" button and a "2. Submit PIN" input box. Triggering and submitting directly from the browser completes in <5 seconds and succeeds on the first try. - Repeated PIN code screen loop ("switching between code screen and browser continuously"):
- Root cause 1 (uncompleted
vidaa_app_connect): Ifvidaa_app_connect({"connect_result": 0}) is published a second time for an already-pairedclient_idwithout completing the new PIN, the TV'sui_serviceresets thatclient_idinto an unauthenticated state even though MQTTCONNECTwithaccesstokenstill succeeds (rc=0). Every subsequentui_service/actions/gettvstatecall then triggersui_service/data/authenticationand pops a new 4-digit code overlay on the TV. - Root cause 2 (watcher_looppolling when disabled): Inserver/vidaa_server.py,watcher_loop()previously polledgettvstateevery 3 seconds andsourcelistevery 9 seconds even when"watcher": {"enabled": false}inserver/config.json. Combined with Root Cause 1, this popped a fresh PIN screen every 3 seconds and stole focus fromTV Browser. - Fix applied inserver/vidaa_server.py: Gatedwatcher_loop()polling behindif w.get("enabled", True) and self.connected.is_set():so no backgroundgettvstate/sourcelistMQTT actions are sent whilewatcher.enabledisfalse. - TRAP β Never sendauthenticationcodeclosewithout a validated PIN (result: 1), and never callWebSDK_createFileRequest("fileWrite", ...)from a non-vidaahub.comorigin or withmode: 6:- Publishing
ui_service/actions/authenticationcodecloseto forcibly dismiss an unverified PIN popup hides the visual dialog onV0000.06.29X.P0813without releasing the modal input grab inhisenseUI, leaving the physical TV remote (D-pad / OK / Back) unresponsive until a power-cycle or dedicated system/app button press. Always let an unwanted PIN dialog time out naturally (~30s) or complete the 4-digit PIN. - Similarly, on
V0000.06.29X.P0813,http://localhost:9009/file/*(WebSDK_createFileRequest) is served by the U6 UI service (content-type: text/json\r\n), enforces a server-sidevidaahub.comOrigincheck, and only defines 4 mode bases (0..3, not0..7). CallingWebSDK_createFileRequest("fileWrite", ...)from a raw LAN IP origin or passing an unstringified object ([object Object]) / out-of-boundsmode: 6wedges the U6 UI/input handler after a few seconds and freezes the TV remote controller.fileBridgeCall()inlauncher/index.htmlnow skipsWebSDK_createFileRequestwheneverlocation.hostnamedoes not containvidaahub.com.
- Publishing
- Reference-TV
server/config.jsondefaults (DOOMshortcut &onlyfilter): - The repository's defaultserver/config.jsonships with an"only"filter for the reference TV and a"DOOM"shortcut pointing tohttp://127.0.0.1:8770/doom(which only exists on a rooted TV running the on-TV Go bridge). - Further,launcher/index.htmlcaches the firsthellopayload inlocalStorage(alvidaa_cache_v1). After removing theDOOMshortcut and"only"filter inserver/config.json, refresh the page inTV Browserso the live WebSockethellooverwriteslocalStorage. - Always reconnect with
accesstokenaftertokenissuance: - Do not reuse the pairing MQTT connection to testgettvstate,sourcelist, orapplist. Disconnect after receivingtokenissuanceand reconnect usingusername=_usernameandpassword=accesstoken. - Topic subscription quirk on
transport_protocol=3160: - Subscribing to/remoteapp/mobile/<client_id>/platform_service/data/gettokenreturnsReasonCode(Suback, 'Unspecified error'), whereas/remoteapp/mobile/<client_id>/platform_service/data/tokenissuancereturnsGranted QoS 0and delivers the tokens whenplatform_service/<client_id>/data/gettokenis published. - WSL2 + Windows Host Networking Traps:
- PowerShell
stdinhang: Invokingpowershell.exefrom WSL2 without-NonInteractiveand< /dev/nullcan hang indefinitely waiting forstdinEOF. - SSDP multicast routing: WSL2 NAT (172.24.x.x/20) does not bridge multicast UDP (239.255.255.250:1900) to the physical Wi-Fi LAN. BindSystem.Net.Sockets.UdpClientexplicitly to the Windows host's LAN IP (192.168.x.x) viapowershell.exe -NoProfile -NonInteractive -Command '...' < /dev/null, then fetch the resulting HTTPLocationURL directly from WSL2. - Exposingvidaa_server.py(8765) from WSL2 to the TV: Forward port8765from Windows to the WSL2 IP and allow it in Windows Firewall:powershell netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=8765 connectaddress=<wsl-ip> connectport=8765 New-NetFirewallRule -DisplayName "alvidaa WSL 8765" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 8765 - Python 3.8 Compatibility:
-
pathlib.Path.is_relative_to()requires Python 3.9+. On Ubuntu 20.04 (Python 3.8), useDOCS.resolve() in path.parents(fixed inscripts/gen-exploits.py), and avoid backslashes inside{...}expressions in f-strings (SyntaxErrorprior to Python 3.12).