**Disclaimer:** This uses a USB exploit targeting 2019 Samsung Muse.M TVs. Flashing or running exploits on incompatible models/firmware carries a brick risk. Do this at your own risk and only on hardware you own.
# TL;DR / Results on QE65Q70RAT (T-MSMDEUC-1510.0)
* **Platform:** 2019 Muse.M / Tizen 5.0 (the repo officially lists `T-MSMDEUC-1500.9` and earlier, confirmed working on `1510.0`).
* **Performance:** Available RAM jumped to **\~933 MB** (out of 1.8 GB total), `reclaimd` thrashing is gone, and Smart Hub is noticeably snappier.
* **Apps Kept Working:** Apple TV, Amazon Prime Video, and AirPlay remain 100% functional.
* **Standby Power:** Leaving the root USB plugged in caused \~11W standby drain. Unplugging the USB restores **0W deep standby** while keeping all `pkgcmd` debloating persistent.
Nix na Debianie + Samsung TV USB Root
⚠️ READ THIS FIRST
samsung-tv-usb-root is an exploit granting root access over USB on selected 2019 Samsung TVs (Muse.M platform). Running it on an unsupported model or firmware may cause hangs, boot loops or a permanent brick. Use it only on hardware you own, and only after checking compatibility.
Step 1: Compatibility check (MOST IMPORTANT)
| Item | Value |
| Physically verified model | Samsung GQ65Q70RGTXZG |
| Related models | QE65Q60RATXXU, QE65Q70RATXXU, QE65Q80RATXXU, UE65RU8000UXXU |
| Platform | 2019 Muse.M |
| Firmware | T-MSMDEUC 1500.9 and older builds of the family: 1420.0, 1419.0, 1406.4, 1409.0, 1401.0, 1395.2 |
| Regional families | T-MSMAKUC, T-MSMUABC |
Where to look: Settings → Support → About this TV / Device information. If your version is not listed — stop here.
Step 2: Prerequisites (Debian)
- A Debian machine (or derivative: Ubuntu, Linux Mint), or an LXC container on Proxmox.
- Tools:
curl, git, xz-utils.
- USB flash drive, 2 GB minimum — it will be completely erased.
- An SSH key pair. If you have none:
ssh-keygen -t ed25519
Press Enter for the default path ~/.ssh/id_ed25519 and an empty passphrase.
sudo apt update && sudo apt install -y curl git xz-utils
Step 3: Installing Nix on Debian
Recommended: multi-user (daemon) installation.
sh <(curl -L https://nixos.org/nix/install) --daemon
Single-user alternative (no sudo, older method):
curl -L https://nixos.org/nix/install | sh
Load the environment (or reopen your terminal / log out and back in):
source ~/.nix-profile/etc/profile.d/nix.sh
nix --version
If you get nix: command not found after a --daemon install, try . /etc/profile.d/nix.sh or re-login — the profile is only picked up by a new login shell.
Step 4: Enable experimental features (required)
nix run needs nix-command and flakes, which are off by default. An “experimental feature … is disabled” error is expected.
Option 1 — permanently (recommended):
echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf
sudo systemctl restart nix-daemon
Without sudo / current user only:
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
Option 2 — one-off, via flag:
nix run . --extra-experimental-features "nix-command flakes" -- \
--exploit-profile tv \
--authorized-keys ~/.ssh/id_ed25519.pub \
--out out/tv-usb-root.img --force
Step 5: Get the project and build the USB image
git clone https://github.com/Luminger/samsung-tv-usb-root.git
cd samsung-tv-usb-root
nix run . -- \
--exploit-profile tv \
--authorized-keys ~/.ssh/id_ed25519.pub \
--out out/tv-usb-root.img --force
Output: out/tv-usb-root.img.
| Flag | Meaning |
--exploit-profile tv | TV profile (the basic choice) |
--authorized-keys FILE | your public SSH key installed on the TV |
--out PATH | where to write the image |
--force | overwrite an existing image file |
--beacon IP:4444 | optional reverse shell back to your machine |
--extra-authorized-keys FILE | an additional public key |
--research-kmem | loads a module exposing /dev/kmem for kernel research (off by default) |
Watch the dashes: some notes contain –force (en dash). The shell needs two plain ASCII hyphens: --force. Word processors silently substitute dashes and the command then fails.
Step 6: Writing the image to the USB drive
⚠️ Data-loss risk: target the correct device (/dev/sdX, no partition number — sdb, not sdb1), otherwise you overwrite your system disk. Identify it by size in lsblk.
Variant A — plain Linux / Debian:
lsblk
sudo dd if=out/tv-usb-root.img of=/dev/sdX bs=4M conv=fsync status=progress
sync
Then eject the drive safely.
Variant B — building inside a Proxmox LXC container:
A container (especially unprivileged) has no access to block devices, so you build inside the CT and write the image on the Proxmox host. Example for CTID 102 (a ZIP checkout is usually named samsung-tv-usb-root-main):
# 1) on the host: pull the image out of the container
pct pull 102 /home/dev/samsung-tv-usb-root-main/out/tv-usb-root.img /tmp/tv-usb-root.img && ls -lh /tmp/tv-usb-root.img
# 2) on the host: verify the device, then write (here: /dev/sdc)
lsblk
dd if=/tmp/tv-usb-root.img of=/dev/sdc bs=4M conv=fsync status=progress && sync
# 3) clean up and verify the partition layout
rm /tmp/tv-usb-root.img && lsblk -f /dev/sdc
Replace 102 with your CTID and /dev/sdc with your actual flash drive.
Step 7: Triggering the exploit on the TV
- Unplug the TV from mains for ~30 seconds (standby is not enough — memory must be cleared).
- Insert the prepared USB drive into the TV.
- Power the TV on.
- Wait 1–2 minutes: the TV mounts the crafted partition, triggers a buffer overflow in the exFAT driver, bypasses UEP (Samsung User-space Execution Prevention) and starts a Dropbear SSH server as root.
Step 8: Login and verification
Find the TV's IP under Settings → General → Network → Network Status, or in your router's client list.
ssh -i ~/.ssh/id_ed25519 root@TV_IP_ADDRESS
Confirm privileges:
id
whoami # expected: uid=0(root)
If the SSH handshake fails (old Dropbear):
ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa \
-i ~/.ssh/id_ed25519 root@TV_IP_ADDRESS
Lifecycle — behaviour across reboots
- Reboot-safe and idempotent: persistent files (Dropbear, authorized keys) live in
/opt on the TV's internal storage, not on the flash drive.
- On every boot with the drive inserted the script: mounts the second, safe partition → updates only files whose hashes changed → preserves host keys (no “new host key” warnings) → starts
dropbear-root.service.
- The flash drive is never modified by the TV, so it can be reused indefinitely.
Tizen OS — useful commands after login
Kernel and OS version:
uname -a && cat /etc/tizen-release 2>/dev/null || cat /etc/os-release
Disabling ACR (automatic content recognition / viewing telemetry):
systemctl mask --runtime --now acr.service acr.path org.tizen.acr-service-app.service
mask blocks the units from starting (stronger than disable); --now stops them immediately.
--runtime means the effect lasts until reboot (written to /run, not /etc). Persistence comes from the USB mechanism, not from writing to the rootfs.
- Check:
systemctl is-enabled acr.service · systemctl status acr.service
- Undo:
systemctl unmask --runtime --now acr.service acr.path org.tizen.acr-service-app.service
- Unit names come from the notes and may differ on other firmware:
systemctl list-units | grep -i acr
Troubleshooting
| Symptom | Fix |
| “experimental feature … is disabled” | Step 4: enable flakes permanently, or pass --extra-experimental-features |
nix: command not found | source ~/.nix-profile/etc/profile.d/nix.sh or re-login |
Path / permission error from nix run | Check pwd (project dir) and cat ~/.ssh/id_ed25519.pub |
| Unknown flag / odd parser error | En dashes – pasted instead of -- — retype the flags |
| SSH: connection refused | Wait the full 2 minutes, cold-boot the TV (30 s unplugged), verify IP, try another USB port |
| SSH: host key changed | ssh-keygen -R TV_IP — with a correct setup host keys are preserved |
| TV stuck in a boot loop | Remove the drive, cold boot; if it stays broken, the firmware was outside the supported list |
Safety rules
- Never cross-flash firmware from another region/model just to match the list — very high brick risk.
- The project ships no closed Samsung software, keys or memory dumps; everything is built from public analysis.
- Enable
--research-kmem only deliberately, for kernel research.
- Author's rule: “Use only on hardware you own.”
- Root SSH on your LAN means full control of the TV. Do not expose port 22 to the internet, and never share the private key.
##########################################################################################
Samsung Smart TV (Tizen 5.0): Performance Optimization, Ad Blocking & 0 W Standby Power Guide
Technical Reference · Samsung Smart TV · Tizen 5.0
End-to-end procedure for safe SSH (root) debloating, stage1.sh runtime masking, USB service-key operation for 0 W deep standby, and complete package rollback.
1. Objective & Measured Results
Samsung Smart TVs running Tizen 5.0 with 1.8 GB total RAM (1868 MB) frequently suffer from UI sluggishness driven by aggressive memory pressure (reclaimd) and numerous background daemons (ACR, Bixby/Voice, Ambient Mode, HbbTV, telemetry, and ad agents). Failing services can also get trapped in activating (auto-restart) crash loops.
| Metric | Initial Baseline | Post-Optimization State |
| Available RAM | Heavy pressure, active reclaimd on 1868 MB total RAM. | 933 MB available RAM (used: 898 MB, swap 219 / 934 MB). |
| Service Stability | Crash loops on adagentd and vdsystem-update-manager. | Zero activating restart loops; dotnet-init.service exits cleanly (status=0/SUCCESS). |
| Streaming Apps | Running alongside full telemetry and ad stack. | Apple TV, Prime Video, and AirPlay preserved and fully functional. |
| Standby Power | Approx. 11 W with the root USB drive left plugged in. | 0 W after unplugging USB — persistent pkgcmd disables remain active in internal flash. |
Core Safety Rule: Always disable system packages with pkgcmd -D --global and restore them with pkgcmd -A --global. Never use -u (permanent uninstall) on built-in packages. The --global flag is mandatory — omitting it prevents changes from persisting in /opt/dbspace/.pkgmgr_parser.db.
2. Core System Components & Preserved Streaming Apps
Always verify a process's package manifest before disabling it. On Tizen 5.0, internal binary names rarely match user-facing app names: aria-engine belongs to Apple TV, while the largest resident process, ignitionLaunch (203 MB), is Amazon Prime Video preloaded in the background via prelaunch.support=true.
| Process / RSS | Package / App ID (app_id) | Role & Recommendation |
ignitionLaunch (203 MB) | evKhCgZelL.AmazonIgnitionLauncher2 | Amazon Prime Video (prelaunched). Keep enabled if you use Prime Video. |
NRi6kdBYJ0.AirP (92 MB) | com.samsung.tv.airplay-app, com.samsung.tv.airplay-service | Apple AirPlay. Keep enabled if you cast from Apple devices. |
aria-engine (37 MB) | com.samsung.tv.aria-video, com.samsung.tv.aria-dummy, com.samsung.tv.aria-engine | Apple TV (prelaunched). Keep all three enabled if you use Apple TV. |
| (shared framework) | lib-ariafw-tv | Shared runtime for Apple TV, Prime Video, Apple Music, and AirPlay. Do not disable. |
DN_sung.tv.csfs, tv-viewer, wrt-loader, menu, enlightenment, dotnet-launcher, tvs-daemon, deviced | com.samsung.tizen.samsung-account, com.samsung.tv.store, org.tizen.pvod-appfw, com.samsung.tv.cms-service, boot-helper-dyboost-tv, boot-perfmon-tv, org.tizen.channel-search, com.samsung.tv.commonsearch, org.tizen.tts-engine-vd-noti | Tizen Core System (Smart Hub, TV tuner, settings menu, Samsung Account, App Store, channel tuning, PVOD video framework). Do not touch. |
3. Persistent Package Disabling (pkgcmd)
Running pkgcmd -D --global writes app_disable='true' directly into the TV's internal package database (/opt/dbspace/.pkgmgr_parser.db). These changes persist across cold reboots, power loss, and removal of the root USB drive.
Step 1: Disable Bloatware, Telemetry & Background Services
This loop disables HbbTV, Ambient Mode, the full Voice/Bixby stack (including CloudServerAgent), Ad Player, Samsung Analytics, CSFT customization profiling, Samsung TV Plus, Samsung Checkout billing, SmartThings IoT plugins, and the Continuity agent — while preserving Apple TV, Prime Video, and AirPlay:
for app in \
org.tizen.hbbtv \
org.tizen.hbbtv-service \
org.tizen.ambientapp \
com.samsung.tv.ambient-support \
com.samsung.tv.ambientfte \
org.tizen.voice-app \
org.tizen.voice-app-service \
org.tizen.voice-client \
org.tizen.stt-client \
com.samsung.tv.farfieldvoice \
com.samsung.tv.bixbycapsuleviewer \
com.samsung.tv.mybixby \
com.samsung.tv.voiceassistant-music \
com.samsung.tv.csa \
adplatform.ADPlayer \
com.samsung.tizen.samsung-analytics \
com.samsung.tv.csft-daemon \
com.samsung.tv.csft-serviceapp \
com.samsung.tv.tvplus \
com.samsung.tv.slive-daemon \
org.tizen.bms-service \
com.samsung.tv.billing-helper \
com.samsung.tv.iot-service-home-cctv \
com.samsung.tv.iot-service-notification \
com.samsung.tv.iot-service-vhome \
com.samsung.tv.mde-continuityagent
do
echo "Disabling: $app"
pkgcmd -D --global -t app -n "$app"
done
Broadcast TV / EPG Note: If you watch terrestrial or cable TV and the channel guide (EPG) stops populating, re-enable com.samsung.tv.slive-daemon and org.tizen.bms-service.
Step 2: Immediately Reclaim RAM Without Rebooting
pkill -f 'CloudServerAgent|csft-daemon|slive-provider|bms-service|billing-helper|tvplus|samsung-analytics|ADPlayer|stt-client|mde-continuityagent' 2>/dev/null || true
sleep 5
free -m
4. Smart Hub Bar Icons: Search & Notifications
System buttons on the left side of the Smart Hub bar are rendered directly by com.samsung.tv.csfs. Disabling only com.samsung.tv.searchall typically leaves behind an unresponsive magnifying-glass icon. The bar hooks into companion coba modules and the notification center packages.
Disable Modules & Reload Smart Hub Live
for app in \
com.samsung.tv.searchall \
com.samsung.tv.coba.search \
com.samsung.tv.coba.notification \
com.samsung.tv.notification-app \
com.samsung.tv.notification-serviceapp
do
echo "Disabling: $app"
pkgcmd -D --global -t app -n "$app"
done
pkill -f 'tv\.csfs|notification-app|notification-serviceapp' 2>/dev/null || true
Wait ~5 seconds and press Home on the remote to relaunch csfs. Do not disable com.samsung.tv.commonsearch (shared with the App Store) or org.tizen.channel-search (broadcast channel tuning).
Instant Rollback
If Smart Hub fails to render properly or leaves broken placeholders, run:
for app in com.samsung.tv.searchall com.samsung.tv.coba.search com.samsung.tv.coba.notification com.samsung.tv.notification-app com.samsung.tv.notification-serviceapp; do
pkgcmd -A --global -t app -n "$app"
done
pkill -f 'tv\.csfs'
5. Trapping adagentd & Runtime systemd Masks in stage1.sh
Even when adagentd.service is masked in systemd, Smart Hub (com.samsung.tv.csfs) spawns /usr/bin/adagentd directly via launchpad-process-pool as empADAgent, and attempting pkgcmd -D --global -t app -n empADAgent times out after 5 seconds with General error [-1].
The reliable workaround is bind-mounting /bin/true (or /usr/bin/true) over /usr/bin/adagentd in RAM alongside runtime systemd masks inside /opt/media/USBDriveA2/stage1.sh, cleanly rebuilt from the original stage1.bak.
Step 1: Generate the Updated stage1.sh
{ sed '$d' /opt/media/USBDriveA2/stage1.bak; cat <<'EOF'
systemctl mask --runtime --now \
acr.service acr.path org.tizen.acr-service-app.service \
adagentd.service \
vdsystem-update-manager.service \
org.tizen.voice-app.path org.tizen.voice-app.service \
com.samsung.tv.farfieldvoice.path com.samsung.tv.farfieldvoice.service \
org.tizen.ambientapp.service \
hbbtv-service.service >/dev/null 2>&1 || true
TRUE_BIN=""
for p in /bin/true /usr/bin/true; do
[ -x "$p" ] && TRUE_BIN="$p" && break
done
if [ -n "$TRUE_BIN" ] && [ -f /usr/bin/adagentd ]; then
grep -q ' /usr/bin/adagentd ' /proc/mounts || mount --bind "$TRUE_BIN" /usr/bin/adagentd >/dev/null 2>&1 || true
pkill -f '/usr/bin/adagentd' >/dev/null 2>&1 || true
fi
log "debloat masks and adagentd bind applied"
exit 0
EOF
} > /tmp/stage1.sh.new
Step 2: Syntax Check (Bypassing UEP) & Deploy to USB
sh -n < /tmp/stage1.sh.new && echo "SYNTAX OK"
cp /tmp/stage1.sh.new /opt/media/USBDriveA2/stage1.sh && rm -f /tmp/stage1.sh.new && sync
Step 3: Verify After a Cold Reboot
grep '/usr/bin/adagentd' /proc/mounts
ps -eo pid,rss,comm | grep -i '[a]dagent'
The first command should list the active bind-mount on /usr/bin/adagentd, and the second should return empty output even after opening Smart Hub. To revert live without rebooting, run umount /usr/bin/adagentd.
6. Standby Power (11 W → 0 W) & USB Service-Key Workflow
Diagnostic testing confirmed that leaving the root USB flash drive (/dev/sda2 mounted at /opt/media/USBDriveA2) plugged into the TV prevented deep standby and kept power draw at ~11 W. Unplugging the USB drive drops standby consumption to 0 W while keeping the fast, debloated system intact.
| Operating Mode | What Stays Active | What Is Inactive |
| Daily Mode (No USB) — 0 W | Every package disabled via pkgcmd -D --global (persisted in TV flash). Fast UI and 0 W standby. | SSH access (dropbear), runtime systemd masks, and the RAM bind-mount for adagentd. |
| Service Mode (USB In) — ~11 W | Full root SSH, runtime systemd masks (ACR, update-manager), and the /usr/bin/adagentd trap. | Deep 0 W standby does not engage while the USB drive remains connected. |
Recommended TV Menu Settings (for Daily Mode Without USB)
- Disable Auto Updates: Settings → Support → Software Update → Auto Update → Off. This is essential when running without the USB drive because
vdsystem-update-manager is no longer masked in RAM.
- Disable Network Standby: Settings → General → Network → Expert Settings → Power On with Mobile → Off (and IP Remote if present).
- Safe USB Removal: If
sync && umount /opt/media/USBDriveA2 hangs in kernel D state, detach cleanly with lazy unmount (umount -l /opt/media/USBDriveA2). Afterwards, check the FAT32 filesystem on a PC (e.g., Windows Drive Properties → Tools → Check) and keep an offline backup of stage1.sh and stage1.bak.
7. System Diagnostics & Verification
Whenever you make changes while booted with the USB service key, verify stability and RAM usage with:
systemctl list-units --all --no-legend --plain | grep ' activating '
systemctl status dotnet-init.service --no-pager | head -n 8
free -m
ps -eo pid,rss,comm --sort=-rss | head -n 15
grep -iE 'package=|appid=|label>|description>' /opt/share/packages/*KEYWORD*.xml 2>/dev/null | head -n 25
Optional Remaining Background Daemons (~98 MB combined): If DN_view-updater (~26 MB, Smart Hub tile previews), ifw-thing (~25 MB, SmartThings discovery), bms-service (~25 MB), or slive-provider- (~23 MB) still appear in the top 15, verify their exact app_id via sqlite3 before disabling. With over 900 MB of available RAM, trimming them further is optional.
8. Recovery & Rollback Cheat Sheet
Store the root USB drive as a dedicated service key. To restore an individual feature or return all packages to factory defaults:
- Insert the USB service key, perform a cold reboot (hold the remote's Power button until the Samsung logo appears), and connect via SSH.
- List all currently disabled packages:
sqlite3 /opt/dbspace/.pkgmgr_parser.db "select app_id from package_app_info where app_disable='true';"
- Re-enable a single package (replace
TARGET_APP_ID using the reference table below):pkgcmd -A --global -t app -n TARGET_APP_ID
- Or restore all disabled packages back to factory defaults at once:
for app in $(sqlite3 /opt/dbspace/.pkgmgr_parser.db "select app_id from package_app_info where app_disable='true';"); do
echo "Restoring: $app"
pkgcmd -A --global -t app -n "$app"
done
- Detach the USB mount, exit SSH, unplug the flash drive, and perform a cold reboot to return to 0 W standby:
umount -l /opt/media/USBDriveA2
exit
Master Package Reference by Function
| Feature / Group | Package Identifiers (app_id) |
| HbbTV | org.tizen.hbbtv, org.tizen.hbbtv-service |
| Ambient Mode | org.tizen.ambientapp, com.samsung.tv.ambient-support, com.samsung.tv.ambientfte |
| Voice & Bixby Stack | org.tizen.voice-app, org.tizen.voice-app-service, org.tizen.voice-client, org.tizen.stt-client, com.samsung.tv.farfieldvoice, com.samsung.tv.bixbycapsuleviewer, com.samsung.tv.mybixby, com.samsung.tv.voiceassistant-music, com.samsung.tv.csa |
| TV Plus & EPG Meta | com.samsung.tv.tvplus, com.samsung.tv.slive-daemon, org.tizen.bms-service |
| Smart Hub Search | com.samsung.tv.searchall, com.samsung.tv.coba.search |
| Notifications (Bell) | com.samsung.tv.coba.notification, com.samsung.tv.notification-app, com.samsung.tv.notification-serviceapp |
| Billing, IoT & Continuity | com.samsung.tv.billing-helper, com.samsung.tv.iot-service-home-cctv, com.samsung.tv.iot-service-notification, com.samsung.tv.iot-service-vhome, com.samsung.tv.mde-continuityagent |
| Ads & Telemetry | adplatform.ADPlayer, com.samsung.tizen.samsung-analytics, com.samsung.tv.csft-daemon, com.samsung.tv.csft-serviceapp |