Rooting TheFrame TV for Fun and Latency
My friend Gabe told me he had rooted his older Samsung TheFrame TV (Tizen 6.5) and was building his own apps for it. I thought, that’s a great idea. Unfortunately, his vulnerability did not work on my model and firmware, so I could not just reuse it.
I was already annoyed at my television.
Samsung went to the trouble of making the Frame look like a picture, then filled the interface behind that picture with a giant advert, sponsored recommendations and services I had never asked for (and its not like you can get a dumb TV anymore).

I wanted the adverts, optional tracking, Samsung TV Plus machinery and Remote PC components gone.
It felt like something I could just yeet into space from the settings, but sadly that option did not exist. Eventually, I had to root the whole TV just to get rid of it.
Getting one command to run
My TV is a QN55LS03FAFXZA running firmware T-PTMFAKUC-0090-1301.0, Tizen 9.0 and ARMv7. I enabled Developer Mode, set the Host PC address to my machine and restarted the TV. That exposed Samsung’s SDB service on TCP 26101, but its capability response reported intershell_support:disabled and sdbd_rootperm:disabled.
I got my first command to run through SDB’s application installer. It evaluated a crafted package filename, which let me run a small command substitution.
A .tpk is Tizen’s installable application package: a signed ZIP archive containing an app’s executable, resources and tizen-manifest.xml. SDB normally transfers that package to the TV and asks the package manager to install it. Mine did not need to be a valid app because the command ran while the installer was still handling its filename.
The simplest probe looked like this:
shell:0 appinstall tpk new2.tpk`printf${IFS}%s${IFS}L2Jpbi9zbGVlcCAy|base64${IFS}-d|bash`.tpkThe Base64 string decodes to /bin/sleep 2. ${IFS} puts the spaces back into a value being passed as a filename, and the backticks tell the shell to evaluate the decoded command. The installer thinks it is dealing with a strangely named .tpk; while expanding that name, it runs the command inside it.
SDB still answered with CNXN, CLSE, which looked like a rejection so I timed a harmless /bin/true control and the sleep request:
| Command embedded in filename | Elapsed time | SDB response |
|---|---|---|
/bin/true |
0.241 s | CNXN, CLSE |
/bin/sleep 2 |
4.115 s | CNXN, CLSE |
The /bin/true control returned immediately, while the two-second sleep took just over four seconds, showing that the installer ran it twice before closing the stream.
Before using a file as output, I asked SDB for its capabilities with the same small protocol client used by the installer:
from frame_debloat.sdb import request
result = request(
"192.168.1.50",
"capability:",
expected_model="QN55LS03FAFXZA",
timeout=10,
)
print(result["output"])The helper connects to TCP 26101, sends the SDB CNXN banner host::\0, then opens the capability:\0 service. The response included:
filesync_support:pushpull
sdk_toolpath:/home/owner/share/tmp/sdk_toolsThat told me exactly where SDB staged SDK files. Its sync: service accepted a LIST request for that directory, but trying to retrieve a file with RECV returned You cannot pull files from this path. I could see filenames, but not read their contents.
So I put the result in the filename instead. The next probe created an empty file named after the process identity:
stage=/home/owner/share/tmp/sdk_tools/frame-proof-a1b2c3
mkdir "$stage" &&
touch "$stage/uid_$(id -u)_gid_$(id -g)_user_$(id -un)_ctx_$(cat /proc/self/attr/current)"I sent LIST for /home/owner/share/tmp/sdk_tools/frame-proof-a1b2c3 and read the returned directory entry. The empty file’s name contained these values, normalised for readability:
uid=901(sdk) gid=901(sdk) context=SystemThe TV already contained Samsung components that could create a private mount namespace and invoke its signed-archive launcher. I generated a fresh 2,048-bit RSA key in memory on my machine, put one file named launch.sh into a gzip-compressed tar archive, signed the archive and verified the signature locally. I uploaded the archive, its signature and the public key. The private key never left memory or went to the TV.
Samsung’s /usr/sbin/sdbd-tarlauncher checks archive signatures against /usr/share/sdbd/public.pem. My helper created a private mount namespace, then bind-mounted the temporary public key over that path and a minimal passwd view over /etc/passwd inside that namespace.
The --to-command=/bin/sh argument is a tar feature. Instead of writing a regular file to disk, tar starts /bin/sh and sends that file’s contents to its standard input. My archive contained only launch.sh, so after the signature passed, the launcher started the shell as UID 0 and piped the script into it.
The action wrote a uniquely named identity marker and reported real and effective UID and GID 0. Then I removed the temporary files.
The result was a root command on this firmware, with no interactive shell or reboot persistence.
Getting a persistent shell
For long-lived access, I installed an OpenSSL service that exposes a root shell over mTLS on TCP port 26446. It listens only on the TV’s LAN address. My client pins the TV’s certificate, and the TV requires my client certificate. Each authenticated connection gets one shell; when it closes, systemd starts a new listener.
Starting the shell after a reboot
Tizen loads owner user units from /home/owner/.config/systemd/user. I installed frame-owner-loopback-root.service there. At boot it points Developer Host at 127.0.0.1, uses local SDB to replay the signed root archive, waits for port 26446, then restores Developer Host to my machine’s address.
The first version raced OpenSSL’s socket startup, so I changed it to start the root service without blocking and wait for the port in the helper.
I rebooted the TV through Tizen’s own power service. On the new boot, the owner unit completed successfully, the signed launcher exited 0, the mTLS listener returned on port 26446 and Developer Host switched back to my machine. Gallery was still selected, the persistent and live Home DLL paths pointed to the same inode through one read-only nosuid,nodev bind mount, and both Remote PC units stayed masked and inactive.
Disabling advertising, tracking, TV Plus and Remote PC
I disabled all of the following packages:
| Component | Application ID |
|---|---|
| Samsung Analytics | com.samsung.tizen.samsung-analytics |
| Automatic content recognition | com.samsung.tv.acr |
| Advertising agent | com.samsung.tv.adagent-service |
| Targeted advertising | com.samsung.tv.targeted-ad-service |
| Samsung TV Plus BMS | org.tizen.bms-service |
| Samsung TV Plus daemon | com.samsung.tv.slive-daemon |
| Remote PC | org.tizen.remotepc |
| PC on Screen | com.samsung.tv.coba.pconscreen |
| Workspace plugin | com.samsung.tv.workspace-plugin |
Disabling an application did not always stop its system service. The adagent/Pisa and TV Plus units already used ConditionPathExists=!/path, which tells systemd to start the service only when that path does not exist. So just touching a file at those locations was enough to keep them off without modifying Samsung’s unit files. Remote PC could return through its D-Bus trigger, so the boot action recreates runtime masks for both its service and bus unit.
Art Mode, SmartThings and the Samsung Store stayed enabled. I checked Art Mode and SmartThings afterward and both still worked normally.
Rebuilding Home
Since I already had root, I thought, why not improve the Home app while I was here?
I first patched CompHome.dll and CompTerra.dll. Nothing changed because the TV was loading the precompiled CompTerra.ni.dll instead. Patching that removed the advertising banner.
I then wrote a native NUI plugin called Frame.PageSurface. Samsung’s loader picks the highest TabMediaLayer version, so mine registers as version 22 above stock version 21. Art Mode, SmartThings and Samsung’s settings menu stay in place.
My first build drew the new page over Samsung’s TabMediaView. It looked right but was slower because both renderers were running. The replacement now hosts my page directly from PageViewBase, reads Samsung’s app and playback data, and uses Samsung’s own launch and resume actions.
Default puts the apps first. Gallery shows local artwork with its title, artist and museum, and rotates the picture every five minutes. Cinema uses the selected programme as the background. All three keep the app row visible.
I kept Samsung’s sidebar for settings, Art and SmartThings. Samsung reports it as closed before its animation has finished, so rebuilding my page immediately caused invisible icons and a stuck rail. The page now waits for the sidebar to stop moving, rebuilds while hidden, then takes focus. Samsung’s Gallery also drops Home focus while it opens, so the same watcher stays alive until control comes back. That fixed the black screen and dead remote.
Samsung later moved the Home plugin without changing the public firmware string. The root shell and my retained bundle survived, so I changed the loader path to:
/opt/usr/apps/com.samsung.tv.coba.edenview/shared/res/ViewPluginPageFrameSurface.dllNetflix also kept playing after I pressed Home. Samsung’s Account Consent overlay was replacing Netflix as the last focused application, so Home paused the overlay instead. I changed it to keep the first resumed app until that app has actually paused.
The current Default, Gallery and Cinema layouts. Click one for the full 1920×1080 screenshot.
Measuring cold renderer restart time
I benchmarked an earlier three-layout build on the same TV, firmware, boot and debloat state. I used two mirrored run orders, discarded one warmup per phase and kept sixteen cold renderer restarts for Stock Home and sixteen for Custom Home.
For each run, the harness confirmed that CSFS had stopped, launched Home through app_launcher, then stopped the clock when CSFS became the only opaque top-level window. It used monotonic /proc/uptime for the timing.
The custom page reached that point 575 ms sooner at the median: 2,265 ms instead of 2,840 ms. Its slowest measured run was also 690 ms faster.
Timing result (n=16 per condition) |
Stock Home | Custom Home | Difference |
|---|---|---|---|
| Median | 2,840 ms | 2,265 ms | 575 ms (20.2%) shorter |
| Slowest run | 3,100 ms | 2,410 ms | 690 ms (22.3%) shorter |
| Observed range | 2,240–3,100 ms | 2,160–2,410 ms | Not applicable |
Both complete blocks and all four adjacent mirrored pairs favoured Custom Home.
The installer and source code are here: AndrewMohawk/samsung-frame-debloat.
Now the television turns on to a painting, my apps and the programmes I was actually watching.
That is a much better television.
-AM