docs / models / 55S7NEVS / V0000.09.60X.Q0609 / findings

Userspace, services & runtime β€” 55S7NEVS

From the contributed bundle by possibly_matt (2026-11-05), adapted for this repo 2026-11-06 with the author's permission for the documentation. "FACTS" pointers below refer to the author's private working notes, which are not part of this repo. See the guide README for scope.

Evidence: the boot scripts (rootfs/etc/init.d/*, rootfs/etc/scripts/*), tvroot scripts (mnt_tvroot.tar.zst β†’ /usr/local/scripts/*), the shipped init config (usrlocal/scripts/init.rc), and the live process tree + iptables/netstat captured in meta/runtime.txt (process list quoted below).

Stage-by-stage startup (as shipped)

  1. sysvinit runlevel 3 (/sbin/init, ARM-32): si::sysinit:/etc/init.d/rcS, getty on ttyS0 (115200). No runlevel scripts otherwise β€” everything below is duct-taped into rcS.
  2. rcS: mounts /proc,/dev (tmpfs 200–300 MB per RAM), /dev/pts, /dev/shm per RAM, /var/crash (100 MB tmpfs); reads ota_upgrade_flag from /dev/his_facinfo (factory-backed raw byte β€” written by the OTA flow; deciding flag then branches OTA-boot vs normal boot); mount -a -v resolves fstab (sysfs/debugfs/pstore/pts,/run tmpfs).
  3. rcS.utopia.linux (normal boot) β€” orchestrates in parallel with ${CHIP_TYPE}=mixed (an MStar/MTK hybrid variant, the others being merak, fusion β€” those are used on different SoCs; module lists etc. live under /etc/init.d/<type>/): - init_fsck_partition.rc & β€” fsck in background on every rw ext4 partition (data/cache/persist/certificate/CUST/varlfs/servicedata/usrfs/optfs/apps/oad). Also builds /dev/block/by-name/<name> symlinks here. - init_early_insmod.rc & β†’ init_insmod.rc & β†’ init_post_insmod.rc & β€” staged insmod of the vendor kernel module set (mixed/). - init_selinux.rc β€” loads policy, then setenforce 0 (see boot doc). - init_udevd.rc + init_udevd_settle.rc β€” MStar udevd (/basic/bin/udevd -d). - init_mount.rc β€” per-slot splits (see boot doc) then mounts 10+ partitions; vendor persist rw, tvconfig ro, cert, customer. - mount_his.sh β€” mounts the Hisense-side "hidata" family (/hidata/{critical,factory,model,common}, /var/tvservice rw, /var/local rw, /serialdata ro, /APPS, /APPS2, /OAD, /oemdata, /logo, /mnt/tvroot erofs via avb_mount, /sysadapter erofs). Failing ext4 e2fsck+remount gets a /var/crash/*_crash_stack.txt breadcrumb. - init_kilby.rc β€” the main kickoff: start-kilby.sh (below). - start-deploy_tvconfig.sh β€” copies model configs onto big mounts, see later; mount_overlayfs.sh (no-op unless debug_version + preinit cmdline). - init_update_projectid.rc β€” reconcile /project_id with the mboot-supplied one. - init_tee_supplicant.rc β€” /application/tee-supplicant -d (OP-TEE). - init_rt_framework.rc β€” real-time service framework (merak-family SoCs). - init_svcmgr.rc β€” /application/gam/svcmgr (service manager, the vendor's Binder-analog "servicemanager" of mi_ipc). - init_midaemon.rc β€” /application/miaudproc + daemon_profile, /application/mi_daemon_sys.bin. - init_delay_mount.rc β€” mounts /3rd (ro over dm-verity via avb_mount)
    • /cache, mount_cusdata.sh.
    • Optionally mount_overlayfs.sh, init_voicesdk.rc, zram init. touch /tmp/vendor_all_ready is the barrier; the Kilby side waits on it.
  4. rc.local β€” tmp dir scaffolding (/dev/shm/shm_tmp/<app> with per-app uid/gid ownership β€” chrome, alexa, airplay, avahi, dplus, netflix, cobalt, vibra, factory_service …), then syslogaliases, kprop-driven.
  5. OEM facstart hook: at the bottom, source /usr/local/scripts/OEMfacstart.sh β†’ (quoting tvroot/usrlocal/scripts/OEMfacstart.sh) chains sub_deploy_scripts/setup_system.sh style OEM boot depending on SYS_ODM.
  6. customer card: getty on ttyS0 β†’ cli_login.sh (uses /etc/{0001-cli-login-aes.pem,0002-cli-login-sign-public.pem}, cli accepted in usr/bin/cli; suppors "serial check" mode).

Kilby β€” the real service framework

init_kilby.rc waits for /tmp/vendor_*_ready, then (kilbyKinit=1) /usr/local/scripts/start-kilby.sh, which:

Property API (kilby.sl2.* names are used end-to-end from vendor apps to the ota_upgrade binary β€” e.g. kilby.sl2.action.software.update.start.download/x, kilby.sl2.i32.software.update.download.progress/rw). Permission encoding is /r,/rw,/x suffix. Everything is dispatched via kcomd (kilby com daemon, /usr/local/bin/kcomd) β†’ under the hood there's one socket per grandname (var/run/kproperty_service).

The process tree as shipped (from meta/runtime.txt, minus our dropbear residue)

Notable factory processes, all started via kinit classes:

PID cluster User What
704/705/706 341/342/340 biz, chassis, sysmain β€” the 3 Kilby core services
707 345 mediamain -D
709 uid 351 syslogviewer
1188 UhisApm systemserver (main app-man hybrid)
1189 343 tvmain -D β€” DTV middleware main
1191 344 avmain -D β€” A/V pipeline
1235 β€” (kernel threads)
1439 root rcS.utopia.linux (asynchronous, still in-flight)
1646 loewe app_man -c /basic/am_config -input_fifo (concurrent app manager)
1833 voicesdk voicesdk_server
2753 UhisBrow browser (odin) + zoom's Chromium zenixservicework renderers (Chromium 111, the render stack this project studied)
2756 372 mosquitto_mosquitto β€” MQTT
2760 UhisOta ota_upgrade (see 30-update)
2764 UhisLog hi_logreport_service β€” telemetry!
2800 372 iot_service (matter)
2802 UhisDial dialserver (DIAL discovery)
2848/22533 UhisPhoe phoenix Γ—2: server (phoenix.server.js) + faas worker β€” the localhost:9009 bridge (MQTT broker on :10377, the "no auth" bridge)
2857 356 airplay_bridge
2881 385 capture (frame-buffer capture service)
2911 372 matter-tv-app (chip KVS at /var/local/iot/matter)
2914 386 avserver (AV service)
2917 384 karaoke
3168 340 wpa_supplicant
3278/3292 340 btmanager, btservice
3391 360 airplay demo
4111 UhisHam HamService (DLNA)
4188 340 dhcpcd (ip/pv6)
4285 amazon ignition (Amazon VSK, --launch-in-background)
4309 UhisYout youtube (cobalt container) preload
5641/6884 UhisAvs AlexaNativeAppService, voiceservice
6886 UhisDlna dlna_service

Uhis<Name> usernames are fictional/auditable only inside ps, resolved by uid via kireg data (var/local/kilby/kireg-kilby0.dat): those uids are 313-386-ish kilby subusers (UIDs are assigned out of band, not all in /etc/passwd β€” passwd only carries the stable set netflix/chrome/amazon/ alexa/…). Full passwd: root, system(100), chrome 1000, netflix 1001, tester 1002, sntpd 1003, log 1005, graphics 1006, bluetooth 1007, wifi 1008, net_mgr 1009, watchdog 1010, panel 1012, dhcpcd 1013, metrics 1014, mdns 1015, audio 1016, browser 1017, amazon 1018, vudu 1019, samba 1020, cobalt 1021, sraf 1022, rpc 1023, dash 1025, qjy 1026, hls 1027, cmpb 1028, alexa 1029, dcc 1030, netflix_cert 1031, qda 1032, svad 1033, airplay 1034, localking 1035, shell 2000, inet 3003, net_bt_stack 3008, mi 3010, utopia 3011, mtal 3012, fb 3013, cb 3014, event 3015, mali 3016, tee 3017, shm 3018, dialserver 3019, playready 3020.

secure_exec

Every Kilby service runs as /usr/local/bin/secure_exec <label> <full-path> [argv]. Per its own usage string it is not an integrity checker β€” it is a DAC shim: execvp after setting uid/gid/groups/caps for <label> (mapping resolved via libsecure-processid.so, match_process()); the label name is how ps shows UhisBrow/UhisPhoe/UhisOta etc. That's the whole mechanism β€” one root-owned launcher that demotes processes to the kilby sub-UIDs (313–386 range) at spawn time. libsecure-processid.so carries a dynamic_permission API so the labels can be granted/revoked at runtime.

The two big filesystem stores (VSM "VIDAA Software Manifest")

Network posture (as shipped, before our residue)

Crash/ANR plumbing