Skip to content

Commit

Permalink
Merge pull request #23 from throwaway96/rooting-update-20240217
Browse files Browse the repository at this point in the history
Update rooting and overlay pages
  • Loading branch information
throwaway96 authored Feb 19, 2024
2 parents c007ced + adf96af commit 7bd2fd7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
11 changes: 8 additions & 3 deletions content/pages/hacking/overlays.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Most of webOS filesystem is read-only. All read-only partitions are stored as
on Android devices.

In order to apply system config-level changes on read-only partitions we need
to apply these in runtime.
to apply these at runtime.

## Replacing files/whole directories
A simple method of replacing/modifying single files is using `mount --bind`,
Expand All @@ -29,8 +29,8 @@ mount --bind /tmp/my-example-directory /etc/ssl/certs
An example of an app that uses this method is [custom screensaver](https://github.com/webosbrew/custom-screensaver/blob/main/assets/apply.sh).

## Adding files to an existing directory
If one needs to add a file into a directory `overlayfs` may be used. Little
example here will add an additional service to SSAP server:
If one needs to create a file that doesn't already exist, `overlayfs` may be used. The little
example here will add an additional service to the SSAP server:

```sh
# Create config overrides directory on writable partition
Expand All @@ -48,6 +48,11 @@ mount -t overlay overlay -olowerdir=/usr/palm/services/com.webos.service.seconds
pkill -9 -f ss.apiadapter ; pkill -9 -f ss.gateway
```

See the Linux kernel
[Overlay Filesystem documentation](https://docs.kernel.org/filesystems/overlayfs.html)
for more information. Note that `overlayfs` is not available on webOS 1, as the
kernel is too old.

## Making a whole directory writable
It is possible to make a whole directory writable by creating a writable
overlay. This is generally discouraged for homebrew use, since underlying files
Expand Down
7 changes: 4 additions & 3 deletions content/pages/rooting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ Using [dev-manager-desktop](https://github.com/webosbrew/dev-manager-desktop) ma

## I Want Root Anyway!

As of November 2023, LG has released multiple patches for the vulnerbilities we found.
As of February 2024, LG has released multiple patches for the vulnerabilities we found.
Depending on the firmware and model, there are multiple approaches to rooting a webOS TV.

- [RootMy.TV](https://rootmy.tv/) - For webOS 3.4 and up, but very likely patched
- [crashd](https://gist.github.com/throwaway96/e811b0f7cc2a705a5a476a8dfa45e09f) - For webOS 4.0 and up; partially patched, but workarounds available
- [RootMy.TV](https://rootmy.tv/) - For webOS 3.4 and up, but very likely patched (read the [README](https://github.com/RootMyTV/RootMyTV.github.io?tab=readme-ov-file#readme) first!)
- [crashd](https://gist.github.com/throwaway96/e811b0f7cc2a705a5a476a8dfa45e09f) - For webOS 4.0 and up; patches being rolled out
- [WTA](https://gist.github.com/throwaway96/b171240ef59d7f5fd6fb48fc6dfd2941) - For webOS 5 and up; patches being rolled out
- [DEBUG via
NVM](https://gist.github.com/throwaway96/827ff726981cc2cbc46a22a2ad7337a1) - Works on all webOS versions prior to 4.0 (plus NetCast/GP) but requires opening up the TV (no permanent hardware modifications)
- GetMeIn - May work on webOS up to 3.4 on certain models, but don't use the original binary from the XDA thread

0 comments on commit 7bd2fd7

Please sign in to comment.