- JavaScript 46%
- TypeScript 31.6%
- Shell 21.8%
- HTML 0.6%
| app | ||
| img | ||
| services | ||
| .editorconfig | ||
| .enyoconfig | ||
| .gitignore | ||
| .gitmodules | ||
| babel.config.json | ||
| eslint.config.mjs | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| webpack.config.js | ||
Important
Caution
Warning
This apps can let you grain access to many features that locked behide access usb.
Some of those features may not be fully studied by others.
Therefore some of those might break your tv in some way.
You have been warned.
A Shity/Hacky luna call emulator that emulate access usb related luna call.
Webos Version
The emulator is tested to work in webos 4,6,24,25,26.
However debug.sh (one of the example script for build in patcher.sh) is known to be broken on webos 4 and older (maybe also 5?).
Compile
Run the following command to build it :
$ NPM_CONFIG_ALLOW_GIT=all npm i
$ npm run build
$ npm run package
Post-install
It use auto start as boot like how hbchannel do so.
(Unlike Downgr8 , It wont get kill or breing broken in newer webos.)
Therefore it requite some setup after install.
# /media/developer/apps/usr/palm/services/org.webosbrew.hbchannel.service/elevate-service moe.exkc.accessusb.service
# luna-send -f -n 1 'luna://moe.exkc.accessusb.service/registerActivity' '{}'
# Make sure those script are executable
# (Starting from version 02914ac91bfffc1f680a86ba690c720b54527ce7,scripts might not have executable permission in the pre build ipk due to new tooling breing used to package ipk)
# chmod +x /media/developer/apps/usr/palm/applications/moe.exkc.accessusb/scripts/examples/*.sh
# chmod +x /media/developer/apps/usr/palm/applications/moe.exkc.accessusb/scripts/patcher.sh
# reboot
Luna Call
luna://moe.exkc.accessusb.service/FUK/getStatus
This api emulate palm://com.webos.service.sm/accessusb/getStatus api call
luna://moe.exkc.accessusb.service/FUK/requestAuthentication
This api emulate luna://com.webos.service.sm/accessusb/requestAuthentication api call
Patching system binary
You can trick the part of the webos to think Access USB is plugged in by patching that part of webos to use the emulated luna api from this emulator Thereby graining access to many features that locked behide access usb.
Build-In Patcher
This come with a build-in patch and you can use it like so :
# /media/developer/apps/usr/palm/applications/moe.exkc.accessusb/scripts/patcher.sh path_to_binary
# killall binary_name
# comand_to_relaunch_that_binary
Example scripts
Important
Caution
Warning
See downgrade warning from https://github.com/throwaway96/downgr8 before downgrading.
However enabling debug mode is safe.
There are few example script that make use of patcher.sh :
debug.sh
This script is for enabling debug mode. It is made for webos 6+ (maybe webos 5+?).
Tested on : 6, 25, 26
This script is known to break on older webos (4 and older) due to older webos dont use LLS.
Useage :
# /media/developer/apps/usr/palm/applications/moe.exkc.accessusb/scripts/examples/debug.sh
Note
If you want to turn off debug mode then type this command
luna-send -n 1 -f 'luna://com.webos.service.lowlevelstorage/setData' '{"dbgroups":[{"dbid":"system","items":{"debugstatus":"RELEASE"}}]}'
expert.sh
This script is for turning debug mode on. It is made for webos 4+.
Tested on : 6, 24, 25, 26
The script would try to open the webos expert mode menu which look like that :
(or look like that if your are on webos 26)
Note
It is known to be error out if your dont have a fat32 usb stick that has a folder call
LG_DTV.(
LG_DTVhas to be in the root of the usb stick and it is for puting your epks.)
Note
If you see Expect mode 1 showing up then make sure you close it before typing yes to the
Would you like to open the expert mode now? (y/n/yes/no) :prompt.
Useage :
# /media/developer/apps/usr/palm/applications/moe.exkc.accessusb/scripts/examples/expert.sh
Other Patcher
You can use other patcher like the one from Downgr8 or sampatcher.py or ezinject.
Credit
Inspired by Downgr8 but based on hbchannel.
License
MIT



