• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[JIO STB] Guide to Enable ADB and Sideload apps on the updated version of JIO STB

Search This thread

RealEngineer

Member
Jun 29, 2021
15
17
Disclaimer :- We are not responsible for any type of damage,we are not responsible for literally anything, follow this guide at your own risk. This is only for educational purposes.

We need help from a developer for porting twrp and making the mi box firmware stable for the Jio STB, Anyone willing to help can DM. Thanks.


Follow the guide till the last step(19th step) for proper results, Don't stop somewhere in the middle

You need a PC, a usb male to male cable,any safety pin or sim ejector pin, and of course JIO STB

1)Download amlogic tools 5.5.0(Amlogic Tools). Install worldcup driver using AMLogic driver installer.exe.

2)Download system-aidan.img (Thanks to aidan for it, I have extracted it from his mi box port rom)


Download system-aidan and system.img of c200/d200 Here

3)Download system.img of c200(if the model of your stb is c200),download d200 if the model of your stb is d200.

4)put the system-aidan.img in the amlogic tools/bin folder,put the system.img(Jio STB) also in the same folder.

5)Now disconnect the power plug of the box, and connect usb male to male cable from the box to the PC.

6)Open AMLBootloaderConsole.exe you will see a screen waiting for device.

7)press and hold the reset button of the box using a pin and simultaneously insert the power plug.

8)You should release the pin after connection is established(Windows will make a sound and you will also see a screen [email protected] in bootloader console).

9)Open a cmd in the bin folder of amlogic tools. (You can type the command 'update scan' to check if the device is connected or not.

10)Run the command

update partition system system-aidan.img

11)after it is success run,
update bulkcmd "setenv -f EnableSelinux permissive"

and next

update bulkcmd "saveenv"

12)now remove usb cable, power plug and start the box normally and then complete the setup and don't forget to select skip at WIFI selection(otherwise device may get stuck there).

You can now install apps using file browser app by connecting pendrive, you can skip 13,14,15,19 steps If you don't need adb. (Don't forget to give unknown sources permission to apps like aptoide tv,File explorer etc.)

***OPTIONAL SECTION***(FOR ADB)
13)Now ensure that both pc and box are connected to same wifi and get the ipv4 address of the box(you will find it in about page of settings).

14)Enable usb debugging and then connect to the box using adb by running the command

adb connect 192.xxx.xxx.xxx (the box's ipv4 address).

15)Install settings database editor app (SetEdit)
and give it write_secure_settings permission with adb.

ADB Command:-

adb shell pm grant io.github.muntashirakon.setedit android.permission.WRITE_SECURE_SETTINGS

***OPTIONAL SECTION END***


16)now turn off the stb and get back to that [email protected] that we got to using bootloader console in the start.(do the 5,6,7,8,9 steps again)

17)now run,

update partition system system.img
(this will install jio system again).

18)after it is success run,

update bulkcmd "setenv -f EnableSelinux permissive"

and next

update bulkcmd "saveenv"

now reboot and enjoy the apps.


***OPTIONAL SECTION***(FOR ADB)
19)Now you can see in global settings page of settings database editor app, the property adb_enabled is set to 0, make it 1 for enabling adb.
***OPTIONAL SECTION END***



TIP :- Uninstalling apps like rcu ota,tr069 client,jio remote care,jio settings and some other jio apps with ADB can prevent the box from updating/getting reset automatically in the future.

Uninstalling jio ads push app, jio stb launcher can remove the ads on the box and don't forget to install another launcher(ATV,Leanback etc.) before uninstalling the jio launcher.

Open settings app(This) can be used for opening the original android settings.


ADB commands to remove the jio apps (including jio settings ,jio launcher)

adb shell
pm uninstall -k --user 0 com.communitake.remotecontrolservice
pm uninstall -k --user 0 com.sdmc.factorymonitor (only for c200)
pm uninstall -k --user 0 com.sdmc.readedid (only for c200)
pm uninstall -k --user 0 com.iwedia.pvodupdateservice
pm uninstall -k --user 0 com.jio.stbremotecare.ril
pm uninstall -k --user 0 com.iwedia.updatercuotaservice
pm uninstall -k --user 0 com.jio.stbadservice
pm uninstall -k --user 0 com.rjil.jiostbsetting (This is jio settings,better to install open settings app before removing this)
pm uninstall -k --user 0 com.iwedia.ui.rjio.launcher.reliance (This is jio launcher,better to install other launcher app before removing this)
pm uninstall -k --user 0 com.rjil.jiostblogservice
pm uninstall -k --user 0 com.iwedia.fti.rjio.fti.reliance
pm uninstall -k --user 0 com.jio.stb.tifextn
pm uninstall -k --user 0 insight.tr069.client
pm uninstall -k --user 0 com.android.managedprovisioning
pm uninstall -k --user 0 com.iwedia.httpupdate


Note :- We don't use mi box firmware because it is not stable and has serious bugs like video's don't play.

We need help from a developer for porting twrp and making the mi box firmware stable for the Jio STB, Anyone willing to help can DM. Thanks.



Credits :-

Srikant(srikantnagar) for finding out that our jio box(both d200 and c200) supports treble, which is the reason for knowing mi box system.img works for our box.

Aidan(aidanmacgregor) for his mi box port to other amlogic boxes(Here).

Nishant Sharma(nishant6577) for his assistance with testing, debugging etc.

My part was finding the method to flash recovery, custom firmware and extracting the stock firmware of the box.
 
Last edited:

RealEngineer

Member
Jun 29, 2021
15
17
The command to enable unknown sources permission for an app with adb is,
adb shell appops set "package_name"(without quotes) REQUEST_INSTALL_PACKAGES allow

This way there is no need to get back to aidan for enabling unknown sources permission for an app

New Rom with a modified system image has been released by another developer in telegram group(Group).
The Dev also plans to give a further update with more improvements(No ETA).
Main features of the rom are Gapps and persistent adb(i.e no need to go to settings editor app to enable again).
 
Last edited:
  • Like
Reactions: k0chiro

Gband001

Member
Aug 10, 2021
7
0
Hi, the rom was replaced successfully on C200, thank you to all the members for this great tutorial/hack and your efforts.
The BLE remote also works but there is huge drop in performance, like YouTube takes forever to load video, I could only see the first frame of the video and then crash, all other general browsing in the OS is also slow. I wonder what might be causing it ???
 
Aug 10, 2021
6
3
it works perfectly fine for d200 v2 and now i can use adb as well as sideload any app if i want
All thanks to u and team
also i can disable jio update service to prevent updating of my box
thanks
 
  • Like
Reactions: RealEngineer

RealEngineer

Member
Jun 29, 2021
15
17
Hi, the rom was replaced successfully on C200, thank you to all the members for this great tutorial/hack and your efforts.
The BLE remote also works but there is huge drop in performance, like YouTube takes forever to load video, I could only see the first frame of the video and then crash, all other general browsing in the OS is also slow. I wonder what might be causing it ???
Follow the guide completely, you seem to be still using aidan's rom
 
  • Like
Reactions: Gband001

vipin786

Member
Aug 18, 2021
9
0
Getting libusb0.dll error have installed worldcup driver using AMLogic driver installer.exe. Downloaded libusb0.dll from net and copied to amlogic folder but it dosen`t work. Using win 10 ver 21h1 64bit. Please provide guide with images it will be helpful.
 

Attachments

  • usb.png
    usb.png
    196.9 KB · Views: 167

vipin786

Member
Aug 18, 2021
9
0
6)Open AMLBootloaderConsole.exe you will see a screen waiting for device and dll error continue with next step.

7)press and hold the reset button of the box using a pin and simultaneously insert the power plug.
u will hear sound from pc after about 10 sec then remove power from stb and repeat step 5,6,7,8,9... now dll error is gone but now ( update partition system system-aidan.img ) command downloading is suck in middle of process will update when is find a solution for this problem.
 

Attachments

  • Screenshot (138).png
    Screenshot (138).png
    327.1 KB · Views: 176

RealEngineer

Member
Jun 29, 2021
15
17
6)Open AMLBootloaderConsole.exe you will see a screen waiting for device and dll error continue with next step.

7)press and hold the reset button of the box using a pin and simultaneously insert the power plug.
u will hear sound from pc after about 10 sec then remove power from stb and repeat step 5,6,7,8,9... now dll error is gone but now ( update partition system system-aidan.img ) command downloading is suck in middle of process will update when is find a solution for this problem.
When it gets stuck,you need to select the cmd window and press enter. If it still gets stuck or if it fails then you need to remove and reconnect the usb and try flashing again. That is the only way. Everyone faces these errors, the solution is to just try again.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    check this screenshot. there is arrow. for me mobile sim ejector pin not work. so i use big size sefty pin
  • 9
    Disclaimer :- We are not responsible for any type of damage,we are not responsible for literally anything, follow this guide at your own risk. This is only for educational purposes.

    We need help from a developer for porting twrp and making the mi box firmware stable for the Jio STB, Anyone willing to help can DM. Thanks.


    Follow the guide till the last step(19th step) for proper results, Don't stop somewhere in the middle

    You need a PC, a usb male to male cable,any safety pin or sim ejector pin, and of course JIO STB

    1)Download amlogic tools 5.5.0(Amlogic Tools). Install worldcup driver using AMLogic driver installer.exe.

    2)Download system-aidan.img (Thanks to aidan for it, I have extracted it from his mi box port rom)


    Download system-aidan and system.img of c200/d200 Here

    3)Download system.img of c200(if the model of your stb is c200),download d200 if the model of your stb is d200.

    4)put the system-aidan.img in the amlogic tools/bin folder,put the system.img(Jio STB) also in the same folder.

    5)Now disconnect the power plug of the box, and connect usb male to male cable from the box to the PC.

    6)Open AMLBootloaderConsole.exe you will see a screen waiting for device.

    7)press and hold the reset button of the box using a pin and simultaneously insert the power plug.

    8)You should release the pin after connection is established(Windows will make a sound and you will also see a screen [email protected] in bootloader console).

    9)Open a cmd in the bin folder of amlogic tools. (You can type the command 'update scan' to check if the device is connected or not.

    10)Run the command

    update partition system system-aidan.img

    11)after it is success run,
    update bulkcmd "setenv -f EnableSelinux permissive"

    and next

    update bulkcmd "saveenv"

    12)now remove usb cable, power plug and start the box normally and then complete the setup and don't forget to select skip at WIFI selection(otherwise device may get stuck there).

    You can now install apps using file browser app by connecting pendrive, you can skip 13,14,15,19 steps If you don't need adb. (Don't forget to give unknown sources permission to apps like aptoide tv,File explorer etc.)

    ***OPTIONAL SECTION***(FOR ADB)
    13)Now ensure that both pc and box are connected to same wifi and get the ipv4 address of the box(you will find it in about page of settings).

    14)Enable usb debugging and then connect to the box using adb by running the command

    adb connect 192.xxx.xxx.xxx (the box's ipv4 address).

    15)Install settings database editor app (SetEdit)
    and give it write_secure_settings permission with adb.

    ADB Command:-

    adb shell pm grant io.github.muntashirakon.setedit android.permission.WRITE_SECURE_SETTINGS

    ***OPTIONAL SECTION END***


    16)now turn off the stb and get back to that [email protected] that we got to using bootloader console in the start.(do the 5,6,7,8,9 steps again)

    17)now run,

    update partition system system.img
    (this will install jio system again).

    18)after it is success run,

    update bulkcmd "setenv -f EnableSelinux permissive"

    and next

    update bulkcmd "saveenv"

    now reboot and enjoy the apps.


    ***OPTIONAL SECTION***(FOR ADB)
    19)Now you can see in global settings page of settings database editor app, the property adb_enabled is set to 0, make it 1 for enabling adb.
    ***OPTIONAL SECTION END***



    TIP :- Uninstalling apps like rcu ota,tr069 client,jio remote care,jio settings and some other jio apps with ADB can prevent the box from updating/getting reset automatically in the future.

    Uninstalling jio ads push app, jio stb launcher can remove the ads on the box and don't forget to install another launcher(ATV,Leanback etc.) before uninstalling the jio launcher.

    Open settings app(This) can be used for opening the original android settings.


    ADB commands to remove the jio apps (including jio settings ,jio launcher)

    adb shell
    pm uninstall -k --user 0 com.communitake.remotecontrolservice
    pm uninstall -k --user 0 com.sdmc.factorymonitor (only for c200)
    pm uninstall -k --user 0 com.sdmc.readedid (only for c200)
    pm uninstall -k --user 0 com.iwedia.pvodupdateservice
    pm uninstall -k --user 0 com.jio.stbremotecare.ril
    pm uninstall -k --user 0 com.iwedia.updatercuotaservice
    pm uninstall -k --user 0 com.jio.stbadservice
    pm uninstall -k --user 0 com.rjil.jiostbsetting (This is jio settings,better to install open settings app before removing this)
    pm uninstall -k --user 0 com.iwedia.ui.rjio.launcher.reliance (This is jio launcher,better to install other launcher app before removing this)
    pm uninstall -k --user 0 com.rjil.jiostblogservice
    pm uninstall -k --user 0 com.iwedia.fti.rjio.fti.reliance
    pm uninstall -k --user 0 com.jio.stb.tifextn
    pm uninstall -k --user 0 insight.tr069.client
    pm uninstall -k --user 0 com.android.managedprovisioning
    pm uninstall -k --user 0 com.iwedia.httpupdate


    Note :- We don't use mi box firmware because it is not stable and has serious bugs like video's don't play.

    We need help from a developer for porting twrp and making the mi box firmware stable for the Jio STB, Anyone willing to help can DM. Thanks.



    Credits :-

    Srikant(srikantnagar) for finding out that our jio box(both d200 and c200) supports treble, which is the reason for knowing mi box system.img works for our box.

    Aidan(aidanmacgregor) for his mi box port to other amlogic boxes(Here).

    Nishant Sharma(nishant6577) for his assistance with testing, debugging etc.

    My part was finding the method to flash recovery, custom firmware and extracting the stock firmware of the box.
    4
    Thanks a lot of this quick tutorial, the only reason I even ordered the STB is because of this post. I have a problem with the region / time. The time is wrong and i am unable the set date and time from settings as it is greyed out is there any solution for this?
    nvm i fixed it with adb command here is the command if anyone faces same issue:
    adb shell setprop persist.sys.timezone "Asia/Kolkata"
    This will set time to IST as well as other units such as Metric system.
    2

    akshay.ku

    k0chiro And others​

    Take a look at my post for gapps, persistent adb, and giving unknown sources permission with adb
    2
    Some tips - Disable apps like jio store so that it don't reinstall stupid shilpa app and only enable it to update apps once a while.
    Disable JioAds Push to avoid those loud startup ads
    Button Mapper is a handy app. It allow you to use those color buttons for something that you desire. I changed Tv button to youtube.

    Things to remember - Commands goes in "command prompt" and not Amlogic bootloader console and remember to allow unknown sources permission for aptoide, youtube next etc.

    I uninstalled almost all apps listed by OP except launcher and store but I still got update which didn't really change anything.
    1
    The command to enable unknown sources permission for an app with adb is,
    adb shell appops set "package_name"(without quotes) REQUEST_INSTALL_PACKAGES allow

    This way there is no need to get back to aidan for enabling unknown sources permission for an app

    New Rom with a modified system image has been released by another developer in telegram group(Group).
    The Dev also plans to give a further update with more improvements(No ETA).
    Main features of the rom are Gapps and persistent adb(i.e no need to go to settings editor app to enable again).