• 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

k0chiro

Member
Aug 27, 2021
8
2
what does this mean?
 

Attachments

  • Screenshot 2021-08-29 135654.png
    Screenshot 2021-08-29 135654.png
    45.5 KB · Views: 125
Last edited:

akshay.ku

Senior Member
May 28, 2013
126
10
banglore
Thank you so much @RealEngineer , finally got freedom for the JIO STB, it works like a charm on C200 device.
But after every reboot adb needs to be enabled by changing the value to 1, also I am not able to turn on install from unknown sources from the opensettings and also tried modifying the value under global and secure settings to 1 for the name"Non_market_apps", still no luck on installing apps within JIO STB, i am sideloading them, any other way to install from unknown sources?


Is there any possibility to install G-apps the TV version or the Pico version on this device?

I tried Magisk and it has no Ramdisk, it needs recovery.img to be patched.
if we can successfully install magisk the device can be rooted, next using an app like flashily the g-apps zip can be pushed and install. then the device can be fully android.

Correct me if its wrong, I was thinking in the above way.
I am looking to install Google duo for video calls and it needs G-apps, the app crashes when clicked on sign in.

other than the video calling, everything works pretty good.
i uninstalled the bloatware too and their updates incl. the store(hehe).

Thanks and regards
-Chandan
 
Last edited:

Otus9051

Member
Jun 3, 2021
45
14
http://localhost:9051
Thank you so much @RealEngineer , finally got freedom for the JIO STB, it works like a charm on C200 device.
but after every reboot adb needs to be enabled by changing the value to 1.

Is there any possibility to install G-apps the TV version or the Pico version on this device?

I tried Magisk and it has no Ramdisk, it needs recovery.img to be patched.
if we can successfully install magisk the device can be rooted, next using an app like flashily the g-apps zip can be pushed and install. then the device can be fully android.

Correct me if its wrong, I was thinking in the above way.
I am looking to install Google duo for video calls and it needs G-apps, the app crashes when clicked on sign in.
other than the video calling, everything works pretty good.
i uninstalled the bloatware too and their updates incl. the store(hehe).

Thanks and regards
-Chandan
What cable did you use tho? Give Amazon link please. Also does the STB work on other WiFi than JioFiber? You can try mobile data and hotspot.

Also I am trying to make an TWRP port. After it works then you can flash everything.
 

akshay.ku

Senior Member
May 28, 2013
126
10
banglore
What cable did you use tho? Give Amazon link please. Also does the STB work on other WiFi than JioFiber? You can try mobile data and hotspot.

Also I am trying to make an TWRP port. After it works then you can flash everything.
Wow!! Twrp port will be great. Thank you.

Cable I'm using is USB A to A, I had an old one lying in the house purchased from the nearby store. But while trying it did not work properly on the USB 3.0 port, then when connected to the normal port, it worked fine.

I have not tested the apps, I don't use much of the apps 😅, I want to make this jio as a video calling platform which is easier for my grand parents (senior citizens friendly) as Skype eneded support for TV's.

I will check and update this on the apps.
Also just to be on safer side with twrp, can we have a full system image backup so we can restore them easily in future.
 

Otus9051

Member
Jun 3, 2021
45
14
http://localhost:9051
Wow!! Twrp port will be great. Thank you.

Cable I'm using is USB A to A, I had an old one lying in the house purchased from the nearby store. But while trying it did not work properly on the USB 3.0 port, then when connected to the normal port, it worked fine.

I have not tested the apps, I don't use much of the apps 😅, I want to make this jio as a video calling platform which is easier for my grand parents (senior citizens friendly) as Skype eneded support for TV's.

I will check and update this on the apps.
Also just to be on safer side with twrp, can we have a full system image backup so we can restore them easily in future.
You can just use the OTA package and restore it...
 

shbhmmry

Member
Sep 4, 2021
6
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.
please keep the amlogic files the in C drive as libusb file is present in system files of windows
 

shbhmmry

Member
Sep 4, 2021
6
0
@RealEngineer I am facing an issue . i am getting this error while updating system files it never gets completed gets stuck at random percentage. My device is stuck at boot now.

C:\jiostb\Amlogic_Flash_Tool_v5.5.0\bin>update partition system system-aidan.img
file size is 0x37000000
AmlUsbTplCmd = download store system normal 0x37000000 rettemp = 1 buffer = download store system normal 0x37000000
AmlUsbReadStatus retusb = 1
Downloading....
Return buffer=
IOCTL_WRITE_MEDIA_Handler,value=1000,index=10,len=65536,ret=-116 error_msg=libusb0-dll:err [control_msg] sending control message failed, win error: The I/O operation has been aborted because of either a thread exit or an application request.


Write media command 13856 failed
AmlWriteMedia failed
[update]:Cost time 10Sec
[update]:Transfer size 0x3620000B(54MB)
ERR:write data to media failed
 
Last edited:

vipin786

Member
Aug 18, 2021
9
0
@RealEngineer I am facing an issue . i am getting this error while updating system files it never gets completed gets stuck at random percentage. My device is stuck at boot now.

C:\jiostb\Amlogic_Flash_Tool_v5.5.0\bin>update partition system system-aidan.img
file size is 0x37000000
AmlUsbTplCmd = download store system normal 0x37000000 rettemp = 1 buffer = download store system normal 0x37000000
AmlUsbReadStatus retusb = 1
Downloading....
Return buffer=
IOCTL_WRITE_MEDIA_Handler,value=1000,index=10,len=65536,ret=-116 error_msg=libusb0-dll:err [control_msg] sending control message failed, win error: The I/O operation has been aborted because of either a thread exit or an application request.


Write media command 13856 failed
AmlWriteMedia failed
[update]:Cost time 10Sec
[update]:Transfer size 0x3620000B(54MB)
ERR:write data to media failed
I too faced similar problem u need to repeat steps 5,7,8,9 again and again till img is loaded it will get stuck in between at different % thats normal dont worry it will complete, some points to take care of 1) use a good quality USB type A to A cable [ i made my own cable using old samsung micro usb cables :) ]2) Disable antivirus, most important have patience this thing works.
 

Chandra_Geek

Member
Mar 18, 2017
16
6
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?
 

shbhmmry

Member
Sep 4, 2021
6
0
I too faced similar problem u need to repeat steps 5,7,8,9 again and again till img is loaded it will get stuck in between at different % thats normal dont worry it will complete, some points to take care of 1) use a good quality USB type A to A cable [ i made my own cable using old samsung micro usb cables :) ]2) Disable antivirus, most important have patience this thing works.
Man you are lucky i have already followed the steps (5-9) for 20-25 :( times every time there is an error highest i reached was 65 % and the error occurred. Problem is i don't know what is causing the issue so that i can resolve it . i have used a new cable for this task from amazon (storite cable) but still the same issue plus my device is now stuck in boot loop so i can't even use it as old before. We can talk over screen sharing if you can help
 

vipin786

Member
Aug 18, 2021
9
0
Man you are lucky i have already followed the steps (5-9) for 20-25 :( times every time there is an error highest i reached was 65 % and the error occurred. Problem is i don't know what is causing the issue so that i can resolve it . i have used a new cable for this task from amazon (storite cable) but still the same issue plus my device is now stuck in boot loop so i can't even use it as old before. We can talk over screen sharing if you can help
I would like to help u but the maximum what i knew i already wrote i think @RealEngineer is the right person who will be able to help you, try and use only USB 2.0 port on settop box and connect other cable end to another USBports on PC this is one more thing what is did and dont worry i too was stuck in boot loop and got frustrated but ultimately everything started working after 3 days of trial and error one more thing just read comment from amazon for your cable may be this is the reason

Narender Reddy
3.0 out of 5 stars Not useful for data transfer and flashing firmware to evaluation boards etc
Reviewed in India on 24 September 2020
Verified Purchase
There is no shied or mesh surrounding the wires inside. So not useful at all for data transfer and especially for flashing or downloading firmware/software to development boards etc .
 

Chandra_Geek

Member
Mar 18, 2017
16
6
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.
 

k0chiro

Member
Aug 27, 2021
8
2
Thank you so much @RealEngineer , finally got freedom for the JIO STB, it works like a charm on C200 device.
But after every reboot adb needs to be enabled by changing the value to 1, also I am not able to turn on install from unknown sources from the opensettings and also tried modifying the value under global and secure settings to 1 for the name"Non_market_apps", still no luck on installing apps within JIO STB, i am sideloading them, any other way to install from unknown sources?


Is there any possibility to install G-apps the TV version or the Pico version on this device?

I tried Magisk and it has no Ramdisk, it needs recovery.img to be patched.
if we can successfully install magisk the device can be rooted, next using an app like flashily the g-apps zip can be pushed and install. then the device can be fully android.

Correct me if its wrong, I was thinking in the above way.
I am looking to install Google duo for video calls and it needs G-apps, the app crashes when clicked on sign in.

other than the video calling, everything works pretty good.
i uninstalled the bloatware too and their updates incl. the store(hehe).

Thanks and regards
-Chandan
I also forgot to do that so I reinstall aidan rom and then enable it and then installed jio rom xD
 

k0chiro

Member
Aug 27, 2021
8
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.
 

RealEngineer

Member
Jun 29, 2021
15
17
Thank you so much @RealEngineer , finally got freedom for the JIO STB, it works like a charm on C200 device.
But after every reboot adb needs to be enabled by changing the value to 1, also I am not able to turn on install from unknown sources from the opensettings and also tried modifying the value under global and secure settings to 1 for the name"Non_market_apps", still no luck on installing apps within JIO STB, i am sideloading them, any other way to install from unknown sources?


Is there any possibility to install G-apps the TV version or the Pico version on this device?

I tried Magisk and it has no Ramdisk, it needs recovery.img to be patched.
if we can successfully install magisk the device can be rooted, next using an app like flashily the g-apps zip can be pushed and install. then the device can be fully android.

Correct me if its wrong, I was thinking in the above way.
I am looking to install Google duo for video calls and it needs G-apps, the app crashes when clicked on sign in.

other than the video calling, everything works pretty good.
i uninstalled the bloatware too and their updates incl. the store(hehe).

Thanks and regards
-Chandan
Gapps has been made to work successfully by another developer, By modifying the system image, (Rom provided in telegram group). He also plans to release a stable version later.
 
  • Like
Reactions: vipin786

RealEngineer

Member
Jun 29, 2021
15
17
@RealEngineer I am facing an issue . i am getting this error while updating system files it never gets completed gets stuck at random percentage. My device is stuck at boot now.

C:\jiostb\Amlogic_Flash_Tool_v5.5.0\bin>update partition system system-aidan.img
file size is 0x37000000
AmlUsbTplCmd = download store system normal 0x37000000 rettemp = 1 buffer = download store system normal 0x37000000
AmlUsbReadStatus retusb = 1
Downloading....
Return buffer=
IOCTL_WRITE_MEDIA_Handler,value=1000,index=10,len=65536,ret=-116 error_msg=libusb0-dll:err [control_msg] sending control message failed, win error: The I/O operation has been aborted because of either a thread exit or an application request.


Write media command 13856 failed
AmlWriteMedia failed
[update]:Cost time 10Sec
[update]:Transfer size 0x3620000B(54MB)
ERR:write data to media failed
Solution mentioned here already

Additionally you can put the command
update "reset"
and then try following the process.
 
Last edited:
  • Like
Reactions: vipin786

RealEngineer

Member
Jun 29, 2021
15
17

Top Liked Posts

  • There are no posts matching your filters.
  • 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).