The content in this blog post is for educational purposes only. Use the content as per the regulations.
In this blog post we'll see how we can setup root access and remap remote buttons on Onn. 4k Streaming Box
.
We will use following steps to setup Onn. 4k Streaming box
. All the scripts mentioned in this post can be found on my Github repo -> Onn. 4k Streaming Box Rooting and Remote Button Remapping
Configure the Onn. 4k streaming device normally to setup remote and the initial Google signin.
Go to Settings -> Device Preferences -> About -> Build
and press Build
option 7 times and you should see pop-up message as "You are a developer". After enabling Developer option go to Settings -> Device Preferences -> Developer Options
and enable USB debugging
.
This should trigger a pop-up to allow USB debugging when the Onn. 4k streaming box is connected to a Linux system. Select always allow debugging option for the Linux system.
To unlock boot loader use Unblock-Bootloader.sh script. When executed Unlock-Bootloader.sh
script, the script will perform following actions:
Unlock the bootloader with adb commands
adb reboot bootloader
fastboot devices
fastboot flashing unlock
fastboot reboot
Now the boot loader is unlocked repeat steps 1 and 2 to setup the Onn. 4k streaming box again. We'll work on getting root access next.
Use the Set-Root.sh script. When script is executed it will perform following actions:
08fa86ced3da6c50aafe8395fce27fe9
boot.img
and Magisk.apk
to Onn. 4k streaming box via adb push
To build a custom boot.img file and get root perform following steps on Onn. 4k streaming box:
Play Store
/sdcard/Downloads/
Magisk.apk
Install
button next to Magisk heading
/sdcard/Download/boot.img
in Method
-> Select and Patch a File
menu
LET'S GO
buttonNow we have the patched boot.img
file stored in /sdcard/Download/magisk_patched_*****.img
; we'll use it in our next step to obtain root access on Onn. 4k streaming box.
Use the Get-Root.sh script. When script is executed it will perform following actions:
boot.img
file from Onn. 4k streaming boxadb pull /sdcard/Download/$(adb shell ls /sdcard/Download/ | grep magisk_patch) ./magisk-boot.img
adb reboot bootloader
fastboot flash boot magisk-boot.img
fastboot reboot
Next the script will print output to let you know if root access is possible or not.
Use Remap-Remote-Buttons.sh script to remap the remote buttons. When script is executed it will perform following actions:
onntvremap
folder in to /sdcard/Download
onntvremap
folder to /data/adb/modules/
directory as root userOnce the device comes back online. No button mapping will be present for the buttons like YouTube
, Netflix
, Disney+
, HBOMAX
. Install Button Mapper
application from Play Store
, grant superuser access to Button Mapper
and remap the buttons on the remote as per your liking.
Onn. 4k streaming box contains following pre-installed apps:
Run Remove-Bloatware.sh script to remove the pre-installed apps you do not need.
Use Install-Useful-Apk.sh to install the apps you like on your Android Tv. Here are some useful apps for the android TV:
I hope you found these thing helpful.
Enjoy~ :)
~ Amit Raut