[S905x] Help with Mi Box (Android TV MDZ-16-AB) Bootloader Unlock And Root

Search This thread

andybz

Member
Jul 17, 2009
15
1
There is no way to unlock the bootloader on this device and probably never will be unless Xiaomi intentionally allows it.

Having said that, I've been surprised that I could boot an ARMBIAN image on my MDZ-16-AB. After messing up Android on it, I followed along with this thread: https://forum.xda-developers.com/an...omi-mi-box-3-mdz-16-ab-boot-log-uart-t3702010

I soldered my TTL adaptor to the pins on the board, and successfully booted an ARMBIAN 5.34 build. I have a Debian Stretch XFCE environment running on it right now. I'm wondering how and why this works though. I also tried some LibreELEC/CoreELEC builds, but had no success.
 
  • Like
Reactions: Giaurone

iakovl

Senior Member
Jun 1, 2010
1,292
79
34
Tibirias
www.iopanel.net
well, i ****ed up
used 4pda guide to MDZ-19-AA to global rom based on vientam forum

downgraded to MiBOX3S_queenchristina_r145, flashed segunda Rom and rebooted to recovery, once i tried to insert the DOK for flashing ONCE global it rebooted and now stuck on boot...
any ideas on how to force recovery mode? or unbrick it?
 

lonnieo

Member
Feb 26, 2010
20
1
Redmi Note 9 Pro
well, i ****ed up
used 4pda guide to MDZ-19-AA to global rom based on vientam forum

downgraded to MiBOX3S_queenchristina_r145, flashed segunda Rom and rebooted to recovery, once i tried to insert the DOK for flashing ONCE global it rebooted and now stuck on boot...
any ideas on how to force recovery mode? or unbrick it?

how did you downgraded to MiBOX3S_queenchristina_r145? from Oreo?
 
  • Like
Reactions: Giaurone

[xFv]

New member
Jan 24, 2018
1
0
this thread has been active over 2 years and peeps are still attempting to do the impossible

truly amazing....

Nothing is impossible, only improbable!
With that being said, I am sorta new to android TV boxes and I followed along to get superSu installed.

Now I was wondering a couple of things.
1: Can I delete the pre installed bloatware?
2: if yes, which if any should I not delete?

THANX
 

elliwigy

Retired Forum Moderator / Recognized Developer
XDA App Taskforce
[xFv said:
;78153957]Nothing is impossible, only improbable!
With that being said, I am sorta new to android TV boxes and I followed along to get superSu installed.

Now I was wondering a couple of things.
1: Can I delete the pre installed bloatware?
2: if yes, which if any should I not delete?

THANX

i recommend disabling at first.. this way if it messes something up you have somewhat a chance to re-enable it lol

im sure a lot could b removed but as u already seem aware removing the wrong stuff could cause you to start over from scratch
 

Aashim

Senior Member
Jan 9, 2015
347
60
Here comes the obvious question:

Will this work on a Mi Box 3 (MDZ-16-AB)?

Not sure

>Changelog (Partial):

>• Reading and writing via USB;

>• New settings menu interface;

>• Audio via USB;

>• Special access for apps, such as overlap;
Amazon Prime video as system app

>• New interface when pressing the volume button;

>• Screenshot while holding on / off button pressed;

>• Options to manually select audio formats, such as Dolby Digital plus and AAC
 

Attachments

  • ZhAwtQlr.jpg
    ZhAwtQlr.jpg
    154.4 KB · Views: 296
  • 32f4eba.jpg
    32f4eba.jpg
    109.3 KB · Views: 294

bigtalker

Senior Member
May 20, 2007
295
62
Here comes the obvious question:

Will this work on a Mi Box 3 (MDZ-16-AB)?


Sure but only if you figure out how to overcome the version check that is the first line of the update script!!!

In reality, no. Don't anticipate any more development work for this 3 year old piece of gear.

Learn to live with its last few remaining quirks or start shopping....
 
  • Like
Reactions: zyonee

zyonee

Senior Member
Nov 13, 2009
880
463
Stockholm
OnePlus 6
OnePlus 8
Sure but only if you figure out how to overcome the version check that is the first line of the update script!!!

In reality, no. Don't anticipate any more development work for this 3 year old piece of gear.

Learn to live with its last few remaining quirks or start shopping....

Pity. Seeing they have almost identical hardware, you'd think they Xiaomi could release the same update for the old box, should be a easy thing for them.
 

coffenat

Member
Mar 15, 2015
14
2
Instructions on how you did it. Thanks.
Have adb on on the device , and when you reboot
Have it plugged into a computer or like i did a rpi0 with Linux installed and adb obviously then make a udev rule that when you plug in the mi box it uses adb to
setenforce 0
It's been a good minute but to get the identifier use lsusb , for now I forget it but simple enough it's the ####:#### number if you need more info you can read man lsusb or the man page on udev
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Found the link for google's servers: android.googleapis.com/packages/ota/xiaomi_once_once/87cf61497f0f6c6ed49ff22bc9b8bd3d3167b9e5.zip
    and latest Android 6.0 r750 in case you want to revert: android.googleapis.com/packages/ota/xiaomi_once_once/4798e23749378f1bc5a7a072b2d9351a980abbfb.zip
    Happy Easter everyone!
    10
    I was able to get this rooted, but haven't been able to unlock the bootloader.
    1. Download MiBOX3S_USA_once_r454.zip from 4PDA.ru unrar it and put it on a USB stick.
    2. Turn on adb from the developer options, connect, and "adb reboot recovery"
    3. Unplug the USB cable and plug in the USB stick. Choose "Install from EXT">"From UDISK", and flash the update.
    4. Reboot it and plug the USB cable back in. Re-enable usb debugging (if your settings were cleared) then disable dm-verity by typing "adb root" then "adb disable-verity" and then "adb reboot"
    5. Once it reboots, you are now free to modify the system partition as you see fit by typing "adb root" then "adb remount". you are effectively 'rooted' at this point.

    I went further and manually installed SuperSU to enjoy some rooted app goodness, but to be honest, it was a pain.

    One thing I noticed is that the most recent OTA wipes your changes, so you may want to disable updates until I can come up with a more elegant solution:

    Code:
    adb root
    adb shell pm disable com.google.android.gms/.update.SystemUpdateService
    adb shell pm disable com.google.android.gms/.update.SystemUpdateService$ActiveReceiver
    adb shell pm disable com.google.android.gms/.update.SystemUpdateService$Receiver
    adb shell pm disable com.google.android.gms/.update.SystemUpdateService$SecretCodeReceiver
    adb shell pm disable com.google.android.gsf/.update.SystemUpdateActivity
    adb shell pm disable com.google.android.gsf/.update.SystemUpdatePanoActivity
    adb shell pm disable com.google.android.gsf/.update.SystemUpdateService
    adb shell pm disable com.google.android.gsf/.update.SystemUpdateService$Receiver
    adb shell pm disable com.google.android.gsf/.update.SystemUpdateService$SecretCodeReceiver

    ** edit **
    I have a bootloader unlock authorization for this device from xiaomi, but I can't seem to get it into either bootloader mode or EDL mode. Any help on this front would be appreciated.
    10
    supersu script

    The attached script will install supersu after following my previous guide.

    12/19/2016 -- updated script --

    The script represents the steps I manually took to install supersu, and should work, but is itself untested. You can open up the .bat file with notepad to see what's going on.

    Unzip the attached file on your desktop or somewhere, then double click InstallScript.bat

    IMPORTANT (As I've stated previously): Due to an issue with SElinux, make sure USB Debugging is ALWAYS ON prior to rebooting the box, otherwise you'll need to reinstall the firmware.

    If you hang after a reboot, do this:
    1. in your connected computer, in a shell, type "adb root"
    2. type "adb shell setenforce 0"
    This can only be done if usb debugging is set to ON prior to the reboot, otherwise you'll need to reinstall the firmware.
    8
    USA MDZ-16-AB updated supersu script

    I believe I've corrected to bootloop issue and submit an updated script.
    8
    this isn't related to root but here's the beta nougat update for those interested
    mega nz/#!xaZgBCrY!l65tcGGt9izhZ2k1HCtka6w3H5-3qXSmq_sBcZn6uy8