Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

examples: add Next Start Pro 4K (SDT HPR314-Next, Realtek RTD1325), Google TV 14

sarpcore-bot94d0ea96ce44
diff --git a/examples/next-start-pro-4k/README.md b/examples/next-start-pro-4k/README.md
new file mode 100644
index 000000000..806659471
--- /dev/null
+++ b/examples/next-start-pro-4k/README.md
@@ -0,0 +1,49 @@
+# Next Start Pro 4K: notes
+
+Google TV 14 box sold in Turkey (Realtek RTD1325, 2 GB). Chain on the test unit: box → Samsung HW-Q990C soundbar
+(HDMI in) → Epson LS300 projector (HDMI ARC). The list and its header are in [`debloat.txt`](debloat.txt).
+
+## Dolby audio: stutter with passthrough, stereo without it
+
+The firmware decodes Dolby through Realtek's MS12 stack. Two Android settings and one hidden Realtek setting
+decide what reaches the soundbar.
+
+| Surround sound (`encoded_surround_output`) | MS12 preferred output | What the Q990C got |
+|---|---|---|
+| Always (`2`) | as shipped | Dolby Atmos, but the sound stutters about once a second in Stremio and Nuvio |
+| Never (`1`) | as shipped | No stutter, but 2-channel PCM ("stereo" on the soundbar) |
+| Never (`1`) | Dolby Digital Plus/Dolby Atmos | **No stutter, Dolby Atmos** |
+
+What the box logged in the stuttering case, while Stremio played an E-AC3 5.1 Atmos stream:
+
+- `dumpsys media.audio_flinger`: a `DIRECT` output thread in `AUDIO_FORMAT_E_AC3`, with
+ `Timestamp stats ... rate=0.618 jitterMs(... min=-56.8 max=55.2)`. After the fix the same stream shows
+ `rate=1.000 jitterMs(... min=-6.7 max=6.5)`.
+- `audio_hw_primary_v5.12.20ms: out_get_presentation_position 5432 out->mRefClock null`, about 260 times in
+ half a minute.
+- `AudioFlinger: pause because of UNDERRUN, framesReady = 110592, ... mFormat = 0xa000000`.
+- `ExoPlaybackException: MediaCodecAudioRenderer error ... audio/eac3 ... format_supported=YES`.
+
+The hidden pages are slices served by `com.realtek.slices` and shown by TV Settings' slice activity. They
+do not appear in the normal menus:
+
+```sh
+adb shell am start -n com.android.tv.settings/.slice.SliceActivity \
+ -d content://com.realtek.slices.sliceprovider/ms12 \
+ --es slice_uri content://com.realtek.slices.sliceprovider/ms12
+```
+
+`ms12` is "Preferred MS12 output": MAT, Dolby Digital Plus/Dolby Atmos, PCM, DD/AC3. Choose the second entry
+with the remote or `input keyevent DPAD_DOWN` then `DPAD_CENTER`; logcat confirms with
+`GetAudioMs12OutputMode ... mode=2`. The setting survived two reboots on the test unit.
+
+Other paths on the same provider, found in the APK's `RtkSlicesUtils`: `output` (HDMI output: Auto, Stereo
+LPCM 2Ch, S/PDIF bitstream), `hdmi_pcm` (HDMI PCM output: Stereo, Multichannel), `ddp`, `output_channel_config`,
+`audio`, `video`, `display`, `hdr`, `resolution`. Setting `hdmi_pcm` to Multichannel did not change the stereo
+report on the Q990C and did not survive a reboot, so the list does not rely on it.
+
+## Video
+
+The Epson LS300 is a 1080p projector that accepts 4K. The box's EDID shows modes up to 2160p60 with HDR10 and
+HLG through the soundbar, and with resolution on Automatic it picks 1080p59.94, the projector's preferred mode.
+Match content frame rate is on Always out of the box.
diff --git a/examples/next-start-pro-4k/debloat.txt b/examples/next-start-pro-4k/debloat.txt
new file mode 100644
index 000000000..52a62516a
--- /dev/null
+++ b/examples/next-start-pro-4k/debloat.txt
@@ -0,0 +1,89 @@
+# Next Start Pro 4K TV Box (SDT, product HPR314-Next, device RMQ, model UHD_Google_TV_STB), Turkey, streaming box
+# Realtek RTD1325, 2 GB RAM, 32 GB. Google TV on Android 14 (SDK 34), build UTT1.250214.001, firmware C1.0.8_20260520
+# Fingerprint: Next/HPR314-Next/RMQ:14/UTT1.250214.001/C1.0.8_20260520:user/release-keys
+#
+# Apply: TV_HOST=<box ip> tools/disable.sh examples/next-start-pro-4k/debloat.txt
+# Undo: TV_HOST=<box ip> tools/restore.sh examples/next-start-pro-4k/debloat.txt com.google.android.apps.tv.launcherx
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# A streaming box: no tuner and no HDMI-in, so leave live_tv_package empty in config.xml. Stock launcher:
+# com.google.android.apps.tv.launcherx. Tested with Projectivy Launcher (com.spocky.projengmenu) as Home, not
+# the repo launcher. Disabled on 21 October 2026, lived with since, rebooted several times.
+#
+# ADB: only Wireless debugging. Pair once (Developer options > Wireless debugging > Pair device with pairing
+# code), `adb pair <ip:pairport> <code>`, `adb connect <ip:port>`, then `adb tcpip 5555`. persist.adb.tcp.port
+# stays 5555, and port 5555 answered after later reboots. ro.adb.secure=1, so each computer is accepted on screen.
+#
+# Setup wizard (com.google.android.tungsten.setupwraith):
+# - With launcherx disabled and Projectivy as Home, setupwraith's RecoveryActivity took HOME and system_server
+# crashed in a loop (FATAL EXCEPTION IN SYSTEM PROCESS: android.display, positionChildAt ... is not a child),
+# as described in docs/TROUBLESHOOTING.md. Disabling setupwraith stopped it.
+# - The box then dropped off Wi-Fi: the network had been saved during setup, so it belonged to setupwraith.
+# Re-joining it in Settings fixed it (owner now android.uid.system). tools/disable.sh checks this for you.
+# - The Cast credentials provider lives in setupwraith here too (CastInfoProvider), yet casting YouTube from a
+# phone still worked four days and several reboots after disabling it, unlike on the Google TV Streamer list.
+#
+# AUDIO (Realtek Dolby MS12, soundbar over HDMI). See README.md in this folder for the logs.
+# - With Settings > Display & Sound > Advanced sound settings > Surround sound = Always
+# (settings global encoded_surround_output=2), ExoPlayer apps (Stremio, Nuvio) open a DIRECT E-AC3 track and
+# the sound stutters about once a second on a Samsung HW-Q990C. Never (=1) stops the stutter, but the
+# soundbar then reports 2-channel PCM.
+# - Fix: keep Surround sound on Never and set Realtek's hidden "Preferred MS12 output" page to
+# "Dolby Digital Plus/Dolby Atmos" (2nd entry; the list is MAT, DD+/Atmos, PCM, DD/AC3):
+# adb shell am start -n com.android.tv.settings/.slice.SliceActivity \
+# -d content://com.realtek.slices.sliceprovider/ms12 --es slice_uri content://com.realtek.slices.sliceprovider/ms12
+# adb shell input keyevent DPAD_DOWN; adb shell input keyevent DPAD_CENTER
+# logcat then reads `GetAudioMs12OutputMode ... mode=2`. It survives reboots (checked twice). Result: no
+# stutter and the Q990C shows Dolby Atmos for an E-AC3 Atmos stream in Stremio.
+# - The box ships with HDMI-CEC auto wake/standby off; left that way.
+#
+# Kept on purpose: com.dolby.android.audio.service, com.realtek.slices (hidden audio/video pages),
+# com.rtk.partnerinterface, every com.sdt.* service (front panel LED, global keys, remote pairing
+# com.sdt.mecoolrcupair, OTA com.sdt.ota, device info, customization, backup manager), com.oemservice,
+# com.google.android.tv.remote.service and com.google.android.tv.dfuservice (remote), Play Store and Play
+# Services, Gboard, the Assistant (com.google.android.katniss), Chromecast (com.google.android.apps.mediashell),
+# Netflix, YouTube, Prime Video.
+
+# Google telemetry and feedback
+com.google.android.feedback
+com.android.tv.feedbackconsent
+
+# Ad personalisation on device
+com.android.ondevicepersonalization.services
+com.android.federatedcompute.services
+
+# Google TV home screen and setup wizard (install a replacement launcher first)
+com.google.android.apps.tv.launcherx
+com.google.android.tungsten.setupwraith # see header: takes HOME and crash-loops otherwise; owns setup Wi-Fi
+com.google.android.apps.tv.dreamx # Google TV ambient screensaver with recommendations
+
+# Services a streaming box never uses
+com.android.printspooler
+com.android.cameraextensions
+com.android.healthconnect.controller
+com.android.health.connect.backuprestore
+com.android.dreams.basic
+com.android.dynsystem # Dynamic System Updates (developer GSI installer)
+com.android.hotspot2.osulogin # Passpoint sign-in
+com.android.nearby.halfsheet # Nearby pairing pop-up
+
+# Factory test apps
+com.oem.qa # BoxFactoryTest
+com.sdt.producttest
+
+# Preloaded apps (Next and partners)
+com.next.iptv # Next IPTV
+com.next.roket # Next Roket
+com.jettv.player # JetTV
+
+# Google apps, off by the owner's choice
+com.google.android.youtube.tvmusic
+com.google.android.play.games
+com.google.android.marvin.talkback
+com.google.android.tts # text-to-speech; no app here needed it
+
+# Added 25 October 2026 from other lists here, reboot-checked only, not yet lived with for days
+# com.android.adservices.api
+# com.google.android.partnersetup
+# android.autoinstalls.config.RTKSTBAndroid.device
+# com.google.android.syncadapters.calendar
diff --git a/examples/next-start-pro-4k/tv.json b/examples/next-start-pro-4k/tv.json
new file mode 100644
index 000000000..46073faed
--- /dev/null
+++ b/examples/next-start-pro-4k/tv.json
@@ -0,0 +1,6 @@
+{
+ "tv": "Next Start Pro 4K TV Box (SDT HPR314-Next, Realtek RTD1325), Turkey, streaming box",
+ "os": "Google TV 14",
+ "brand": "Next",
+ "notes": "Google feedback, on-device ad personalisation, Google TV home and ambient screensaver, setup wizard (took Home and crash-looped; owned the setup Wi-Fi), factory tests, Next IPTV, Roket and JetTV; Dolby service, Realtek and SDT services kept; **Dolby stutter fix**: Surround on Never plus Realtek's hidden MS12 output set to DD+/Atmos ([README](next-start-pro-4k/README.md)); Projectivy as Home; 2 GB; reboot-checked"
+}