yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] arclove:
4. PART 4 : INSTALL ANDROID TV LAUNCHER (LEANBACK), LEANBACK KEYBOARD AND REMOVE CHINESE APPS ONLY​

A. Automatic Tool :

Requirement :

- Connect MIBOX and PC with USB cable

- Install full ADB Driver and turn ON ADB Debugging.

Feature :

- Install Android TV Launcher (Leanback Launcher), Leanback Keyboard, remove Chinese Apps.

Automatic Tool :

https://www.androidfilehost.com/?fid=745425885120697217

Guide :

1. Unrar (Do not unrar to the folder with the special symbol name like "C:\3$\Mibox or C:\Mi & Box"... )

2. Connect between MIBOX and PC with USB cable then run Debloater.MiBox.cmd Drinking beer to waiting for finish

.................still edit...............................
[Android Stick & Console AMLogic based Computers] arclove:
5. PART 5 : CUSTOMIZE BUILD.PROP​

1. Prevent Google Play update to mobile version automatically :

Open file Build.prop and repair code :

ro.product.name=once
ro.product.device=once
ro.product.board=once

2. Play 4K Video :

ro.product.model=SHIELD Android TV
ro.product.brand=NVIDIA
ro.product.manufacturer=NVIDIA

3. Change locale :

Replace
ro.product.locale=zh-CN
with (Ex for Vietnamese)
ro.product.locale.language=vi
ro.product.locale.region=VN

4. Change GMT time :

Ex : GMT +7
persist.sys.timezone=Asia/Bangkok

.................still edit...............................
[Android Stick & Console AMLogic based Computers] nonblizz@yandex.ru:
Thanks for your guide. Its working as Leanback Android TV! Few questions:

1 how can i install missing ssl certs?

2 why i cant connect throgh chrome cast?

3 why play market often breaks install with 429 error or hangs on "Downloading"?

4 seems wifi unstable connection? anyone else?

5 a lot of artifacts on screen, anyone else?

upd: seems we need to change mac adresses on wifi and bluetooth. how to do it?
[Android Stick & Console AMLogic based Computers] arash220:
I did follow the instructions & some of the commands in cmd files were not working & i had to run the manually, it was almost successful but there is only one problem.

I get lots of google services stopeed error, how can i fix it?!
[Android Stick & Console AMLogic based Computers] arclove:
I only cast from Youtube mobile to Youtube TV. It is OK

You can use other GAPPS :

https://drive.google.com/open?id=0ByrA2TGpTsDadkNPWF9UeGVvbVE

My APK Folder

https://drive.google.com/open?id=0ByrA2TGpTsDaS3FqcHdJSDJTSEk

Example code for your own customize

-----------DOWNGRADE TO FIRMWARE 145 IS NEEDED---------------------------
-----------Unlock Bootloader-------------------

adb root
adb disable-verity
adb reboot

-----Copy apps to system-----------------------
----- Install apk fisrt then------------------------------

adb shell su
mount -o remount,rw /dev/block/system
cd /system/vendor/app
cd /data/app
ls
cp -R /data/app/com.google.android.leanbacklauncher-1 /system/priv-app
cp -R /data/app/com.google.android.leanback.ime-1 /system/priv-app
cp -R /data/app/org.liskovsoft.androidtv.rukeyboard-1 /system/priv-app
cp -R /data/app/com.google.android.apps.mediashell-1 /system/priv-app
cp -R /data/app/com.google.android.gms-1 /system/priv-app
cp -R /data/app/com.google.android.gsf-1 /system/priv-app
cp -R /data/app/com.google.android.onetimeinitializer-1 /system/priv-app
cp -R /data/app/com.ttxapps.wifiadb-1 /system/priv-app
cp -R /data/app/com.ravikwow.startsettings-1 /system/priv-app

rm -R com.google.android.leanbacklauncher-1
rm -R com.google.android.leanback.ime-1
rm -R com.google.android.apps.mediashell-1
rm -R com.google.android.gms-1
rm -R com.google.android.gsf-1
rm -R com.google.android.onetimeinitializer-1
rm -R com.ttxapps.wifiadb-1
rm -R com.ravikwow.startsettings-1

-----------Replace Build.prop----------------------

Copy file build.prop to ADB folder and type :

adb push build.prop /data/local/tmp
adb shell su
mount -o remount,rw /dev/block/system
cp /data/local/tmp/build.prop /system
chmod 644 /system/build.prop
reboot

------------Remove Chinese apps----------------------

cd /system/vendor/app
rm -r DlnaTVService
rm -r MiTVAssistantManual
rm -r DeviceReport
rm -r MiTvGameCenter
rm -r MiTVDownload
rm -r MiTvGameCenter_T6
rm -r MiTVPay
rm -r MiTVPayment
rm -r MiTVShop
rm -r MiTVUpgrade
rm -r NameService
rm -r PushService
rm -r PhotoSlideShow
rm -r SearchCenter
rm -r SmartHome
rm -r TVPushService
rm -r AirkanTVService
rm -r AppUpgrade
rm -r BaiduCloud
rm -r CloudAlbum
rm -r cm-sdk-release
rm -r duokantv
rm -r jiajia-jianshenfang_T6
rm -r MiBoxLockScreen
rm -r MiGallery
rm -r MiGameCenterSDKService
rm -r MiMusic2
rm -r Mipay
rm -r MiTVAdvertise
rm -r MiTVAppStore
rm -r MiTVCommentService
rm -r SmartHomeTV
rm -r MiTVDesktop
rm -r MiTVService
rm -r MiTVStat
rm -r mitvmediaplayer
rm -r MiTVMultiCast
rm -r BaiduInput
rm -r MiTVPinyinIME
rm -r MiTVMediaExplorer
rm -r MiTVMediaExplorerDaemon
cd /system/app
rm -r TWeather
rm -r TVCalendar
cd /system/priv-app
rm -r TVManager

I use this GAPPS and some time had force close but after that it OK.

Hope some one can find the best GAPPS for our MIBOX 3S
[Android Stick & Console AMLogic based Computers] arclove:
One member told that because of locale permission . Try this ADB code :

pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
[Android Stick & Console AMLogic based Computers] long-d:
does not know code..

should this not start with adb??
[Android Stick & Console AMLogic based Computers] Jareq_pl:
Wout2426 was yours usb stick formated in fat32? It's necessary.
[Android Stick & Console AMLogic based Computers] ianjamm:
Hi, same situation as Wout2426 here, I've been trying to downgrade firmware to 145 but after flashing it refuses to boot. I have tried multipled times with differents usb drives with no luck. The flashing process starts and ends with no problem, but after rebooting it gets stuck on the boot screen. It seems that my hardware doesn't allow to downgrade to userdebug version, is that possible?
[Android Stick & Console AMLogic based Computers] nonblizz@yandex.ru:
Seems like a hardware bug. I have a lot of screen artifacts on pictures and icons and background images, unstable wifi (mb 5Ghz should be stable, couldnt check it) so u got broken flash memory inside ur device.
[Android Stick & Console AMLogic based Computers] Elzom:
Yeah, you must fill in the following:

adb shell pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION

adb shell pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION

This helped for me, haven't had any error messages since.

The only thing that doesn't seem to work for me is Netflix. Constantly getting an error when i want to start a movie. Error code "tvq-pm-100". Is it because of the location?
[Android Stick & Console AMLogic based Computers] Lits33:
There is a update of the gapps of 16/01/2017 on original vietnam forum.
[Android Stick & Console AMLogic based Computers] arclove:
just update for permission and host file
[Android Stick & Console AMLogic based Computers] Lits33:
Anyone have a problem with play video on Netflix or Beig Connect, I can't play video on it. The errror is: tvq-pm-100. Anyone with that trouble ?

I've talk with the Netflix service and they told there is a incompatibility with the Netflix Aplication and the device, they will update the aplication to run perfect on xiaomi mi box
[Android Stick & Console AMLogic based Computers] Bubbasmiles:
Step one

Hello arclove! Thank you for the work you put in the tutorial!

In part 1 step 1 it says:

"a. Process 1 : Go to Setting >About > Factory data reset > Keep installed apps chose Delete > Reset > Reset and waiting Mibox 3S restart"

how do I do this exactly? (can I change the language to english somehow?) Unfortunately I can't read one single word chinese. Could you describe where the settings are located?

Greets

Bubba
[Android Stick & Console AMLogic based Computers] arclove:
Hi Bubba

Sorry i do not save the picture so can not show you hand by hand but you can use google translate on your mobile phone and translate via camera from Chinese to your language.

I remember it is on the first Menu > Row 3, Icon 2.

I think you can by pass this Step
[Android Stick & Console AMLogic based Computers] jsbxrcknrll:
I'm not able to downgrade since my box doesn't seem to respond to any button combination when I plug it in to start the downgrade. I believe it only opens some sort of recovery menu when pressing home when I plug it in. That menu only allows to wipe and reboot. But the combo home+menu or OK+back dont make the downgrade to start. Please advise
[Android Stick & Console AMLogic based Computers] tombatossals:
Hi, first of all I would check that you have a FAT32 formatted usb device, and that you copied there the two main files of the update (xiaomi_udpate and update-queenchristina.zip). After that, you must power off the mi box, insert the usb drive and power it on again while pressing the home and options buttons of the remote. You must wait 20 seconds (more or less) keeping them pressed, and this doesn't always works at the first attempt. If it didn't work, power it off, wait 20 seconds, and power it on again. Eventually you will see that the flash process starts and the unit will reboot when it finishes.

I'm more or less in the same situation, I was able to flash the downgrade firmware 145, but after flashing it the unit gets stuck in the boot logo. :P Hope you can downgrade, I have tried for hours and haven't been able to success in the step 1 of this tutorial.
[Android Stick & Console AMLogic based Computers] jsbxrcknrll:
Thanks. I'll give it a try with the 20 seconds rule. The rest is OK. formatted in FAT32 and the 2 files there. To be honest, I'm giving this a try but my main goal is to install FreeElec (Kodi), since there's no Full HD Netflix in this box. LibreElec will make this work much better as a mediacenter that this android version could ever do.

I'll give it another spin. Thanks
[Android Stick & Console AMLogic based Computers] Love4Taylor:
"there was a problem connecting to MiBox 3S" when i use youtube app
[Android Stick & Console AMLogic based Computers] tombatossals:
Mmm if you have been able to access the recovery menu you might have a problem with your USB, because the access method is the same for the recovery that for the USB flashing process. I would double check that the usb is in FAT32 (not NTFS) and that the two files are in the root folder.

LibreElec sounds fantastic, because this hardware is really powerful to run Kodi smoothly, I will try it if I finally accomplish to root the device (I suppose that the bootloader must be changed to install LibreElec?)
[Android Stick & Console AMLogic based Computers] jsbxrcknrll:
Everything is in place, FAT32 and both files. I wonder whether the problem is with the usb stick itself. Maybe is defective. Regarding LibreElec, I havent seen anywhere that root is needed. I dont think they are assuming all the S905 devices are already rooted.

Unfortunately, in the manuals they are using devices with a reset button to achieve the same thing we do with the buttons to start the downgrade. I dont think the mi box 3s has this reset button. The target do is to run LE directly from the pen. And also may be moved to internal nand afterwards. It works with S905 and S905x

Please check:

(https) forum.libreelec.tv/thread-1172.html
[Android Stick & Console AMLogic based Computers] jsbxrcknrll:
One thing that bothers me is whether i should have the box translated to English prior to proceed with these instructions. I have been able to downgrade and upgrade, but I'm not sure how to follow the instructions to activate ADB and such.

Right now I'm in 1.5.4 after downgrade and usb is working. At what point will I translate the system language to English?
[Android Stick & Console AMLogic based Computers] komosko:
I have the same problem as you.

Do you have a solution?

I downgrade to 145, then update to newest, then turn usb debugging on, command adb device see the device correctly, but after adb disable-verity it comes "disable-verity only works for userdebug builds".

Could anyone help? Thanks.

UPD: and after i downgraded it to 145, in settings when i check for update, i have a message that it's the newest version. So i can't update firmware online.

UPD!!: For me the solution was to download the newest version from vietnam forum after 145 version.
[Android Stick & Console AMLogic based Computers] tombatossals:
Putting the interface in english is a little tricky. First of all, I downloaded the file "Settings 1.0.zip" from this page:

http en.miui.com/thread-391907-1-1.html

Inside the zip you will find an apk that you can install browsing your usb drive from the device (from the media player app, for example). Before allowing you install from unknown sources, it will browse you to the page were you must enable "install from unknown sources". Everything is in chinese but is really easy, there's a question "Yes" "no", you must press the button opposite to the default selection.

After installing settings.apk, this app will let you put everything in english. Open it, find the icon with the world globe, and selecting the first option ther will show you the english language. After that almost all internationalized string will be in english.

Hope you accomplish it.

By the way, have you been able to downgrade? Have you used the MiBOX3S_queenchristina_r145.rar files? I'm shocked that everyone of you have been able to downgrade and I can't. I flash the device and after the reboot it gets stuck. After that, my only option is enter the recovery and restore the default firmware (1.5.1).
[Android Stick & Console AMLogic based Computers] jsbxrcknrll:
I had already seen that manual and I was starting to believe that it would have been the best idea to change the language before starting. I'll proceed with it. Thanks

Yes. I Have performed the downgrade and upgrade with the queenchristina files. No issues
[Android Stick & Console AMLogic based Computers] jsbxrcknrll:
I'm connecting the box to the PC but I dont see the adb folder. Where is it? I left ADB Debugging on before I unplugged the box. Maybe it is the adbFastBoot folder in my C:\ Drive?

EDIT: I have been able to finish. I still have to edit the build.prop, which I'm not sure how's done yet. Also, I have problems with Google services and I still have to find my way with the launcher. I have some apks in my download folder but I couldn't find a way to access it. I had to download it from Google Play in order to do install.
[Android Stick & Console AMLogic based Computers] komosko:
Is there a solution of what to do with unstable wifi after getting root, leanback and gapps?
[Android Stick & Console AMLogic based Computers] jsbxrcknrll:
I manage to hide (not actually solve the problem) all error messages from Google play. I've been watching the tennis for 5 hours with Kodi without interruption. No Wi-Fi issues for me. But I haven't been able to launch a single Netflix title. I always get the error "we're having trouble playing this title right now". Is it possible that somewhere in the device the location is set to China or something like that?
[Android Stick & Console AMLogic based Computers] Bertus_:
I have exactluy the same problem, also with Wuaki app (here trailers are working but films are failing).

Also my mobile detects as a google cast device but when it try to connect to cast something, I get that the connection was closed, any idea?
[Android Stick & Console AMLogic based Computers] somhix:
Hi, I've followed instructions on vietnamite forum to install 16/01 version and I'm very pleased so far. I'm still figuring out how to solve some things that don't work or I don't know how to make them work. Follows my list. If anyone can help me in any of the following points I will be very pleased:

- I'm unable to use the cast function, neither from my xiaomi phone, nor from google chrome with cast plugin.

- Amazon prime video support with option to login my amazon.es account (xda forum with apks seems to have been deleted). I tried an apk that only allowed me to sign in into amazon.com buy my prime account is from another country.

- I cannot access my shared samba network from the stock media explorer app (no problem from es file explorer or kodi).

- Remote control is supposed to have voice control? I couldn't figure it out how to use it.

- Remote control is supposed to have control movement like wii remote? I might have imagined that, but not sure if that's true.

- Some games require a gamepad to play. Any bluetooth gamepad will do the job?

Well that was all for now ;)

Cheers,

Jordi
[Android Stick & Console AMLogic based Computers] Tombv:
I have the same Netflix error, anyone got a clue?
[Android Stick & Console AMLogic based Computers] arash220:
Thank you so much, it worked! So Happy!
[Android Stick & Console AMLogic based Computers] jsbxrcknrll:
How do we do this or edit the build.prop or whatever code we need to input?
[Android Stick & Console AMLogic based Computers] -pól-:
Does Google Cast work with this method? Specifically I want to be able to cast from Plex and from Youtube on my PC and android phone.
[Android Stick & Console AMLogic based Computers] Love4Taylor:
Google Cast dont work, it always say "have a problem", but chrome on PC can cast a video from youtube. I dont know why
[Android Stick & Console AMLogic based Computers] hacker001:
[MENTION=7170589]Love4Taylor[/MENTION]

how to cast youtube from PC because i can't cast it from phone, please advice me Thanks
[Android Stick & Console AMLogic based Computers] Love4Taylor:
Just use the cast button on YouTube page

But YouTube APP say "There was a problem connecting to MiBOX3S"
[Android Stick & Console AMLogic based Computers] hacker001:
So, can you cast anything except youtube like cast desktop or cast tab from pc ? [MENTION=7170589]Love4Taylor[/MENTION]
[Android Stick & Console AMLogic based Computers] Oraclehara:
Hi, I can't seems to get this step working. When I plug in the USB, I can only see the Mibox3s and internal storage and there's no ADB folder to be found. I couldn't get to the "Open command windows here". Did I miss out any important steps?
[Android Stick & Console AMLogic based Computers] somhix:
The ADB folder is not in the Mibox3s. Should be in your PC where you have unzipped the zip file you've downloaded.

To get to the command window you can run the cmd program and after that go to the folder ADB with the dos command cd (cd \path\to\ADB\folder) (I'm not on a windows machine so I cannot guide you step by step, but you can find how to do it in google).
[Android Stick & Console AMLogic based Computers] gaertnerpoetschke:
Gapps 16/01/2017

Can somebody post a link for download? Thanks
[Android Stick & Console AMLogic based Computers] Tombv:
Would like to have that as well.
[Android Stick & Console AMLogic based Computers] tombatossals:
Hi, I suppose you're refering to this file:

https://www.androidfilehost.com/?fid=529152257862695822

They posted it in the Facebook group some days ago, this is the group URL:

https://www.facebook.com/groups/MiBox.VN/
[Android Stick & Console AMLogic based Computers] arclove:
Already updated in my post part 3
[Android Stick & Console AMLogic based Computers] keto70:
Hi, I have the same netflix error. Actually the only DRM streaming service which is working is Google Play Film.

It seems to be a DRM problem since I got a similar behavior with the italian timvision streaming app.

Does anyone has suggestions?
[Android Stick & Console AMLogic based Computers] Stegue:
Hello,

Thank you very much for this tutorial :good:

I also have a problem with NETFLIX (v3.3.2 1530). Read error, code: tvq-pb-103 (2.10.0.2104)

I contacted NETFLIX and was offered to install this version (v3.1.2 1142):

https://help.netflix.com/en/node/24776

This version works but there are 2 problems:

- The picture is not beautiful

- The application does not work properly with the remote control.

:(

Stegue (France)
[Android Stick & Console AMLogic based Computers] al2_cf:
ayuda

Hola, para hacer el paso 2

no encuentro el archivo para descargar ayuda :(

2.PART 2 : UNLOCK BOOTLOADER (NEEDED)

Step 1 : Turn on ADB Debugging

a. Go to Setting> Account & Security > ADB Debugging > Turn ON

b. If ADB Debugging do not display in Account & Security, go to Setting > About>Model>Push OK 7 times. After that do follow (a)

Step 2 : Unlock Bootloader

1. Connect between MIBOX and PC with USB cable (Two male terminal)

2. On the PC, go to ADB folder "Shift"+"right mouse" and "Open command windows here"

3. On CMD windows type :

Code:

adb root

adb disable-verity

adb reboot

Step 3: After restart, go to PART 3 OR PART 4 (Chose PART 3 or PART 4 only)
[Android Stick & Console AMLogic based Computers] bigtalker:
You still don't understand the difference between mdz-16-ab (official AndroidTV version) and MDZ-19-AA which is Chinese domestic product Mi Box 3S.

They behave quite differently with this script.

Please stop posting this crap until you know these are 2 distinctly different devices.
[Android Stick & Console AMLogic based Computers] al2_cf:
Help me

Hola, el archivo para el paso 2 de donde lo descargo no encuentro el Link, o como lo consigo.:(:(

help me
[Android Stick & Console AMLogic based Computers] Oraclehara:
How to proceed?

Hi guys,

I'm quite stuck in this step. Where can I find this file? Please advise.

Thanks.
[Android Stick & Console AMLogic based Computers] Stegue:
Hello,

Question may be silly. If I reset the MiBOX3S device, I will find the interface in Chinese as before ?

Stegue (France)
[Android Stick & Console AMLogic based Computers] vishnurao:
is this the full steps ?
[Android Stick & Console AMLogic based Computers] Tombv:
Netflix will contact me within two hours, so I'll see if they give me some better solution..
[Android Stick & Console AMLogic based Computers] mibox3s:
problem PART 3

Hi,

I got to Part 2 with no problems, but in Part 3 when I installed "install-Gapps", mibox3s was restarted after installing some apps. After the reboot the mibox screen was suspended and the installation program was still pending to install "fix-permission" file. The installation failed. The mibox3s is left hung, does not start and I dont know to do. Please help.
[Android Stick & Console AMLogic based Computers] vishnurao:
help

Does any one have complete steps, to remove the chinese launcher, install the android launcher and to enable all the features that comes with mi box 3s international version ?
[Android Stick & Console AMLogic based Computers] Stegue:
.

And the recovery mode ?
[Android Stick & Console AMLogic based Computers] Oraclehara:
Those are the complete steps. I managed to setup my MiBox3s successfully. The only issue that I have is that it's not clear on how can I edit the build.prop file.
[Android Stick & Console AMLogic based Computers] North101:
I got casting working by downloading these 2 files:

https://raw.githubusercontent.com/a...e_atv/master/atv/lib/libcast_shell_android.so

https://raw.githubusercontent.com/a...ogle_atv/master/atv/app/AndroidMediaShell.apk

and installing them to my Mi Box 3s via:

adb root
adb remount && adb push libcast_shell_android.so /system/lib/ && adb shell chmod 0644 /system/lib/libcast_shell_android.so
adb remount && adb push AndroidMediaShell.apk /system/priv-app/ && adb shell chmod 0644 /system/priv-app/AndroidMediaShell.apk
adb shell reboot

Casting doesn't work in my browser, but works from my phone. Netflix doesn't work because netflix doesn't work at all, by Youtube worked fine.
[Android Stick & Console AMLogic based Computers] vishnurao:
hey how do I Install full driver ADB ?
[Android Stick & Console AMLogic based Computers] mibox3s:
Yes I could recover the device. But I couldnt complete de steps. Because after automatic rebooting, the device failed the root request, and the installation was not completed. :confused: :(