yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] jrs007:
[MENTION=4344517]unoaman[/MENTION] how do I do a full backup of the nand? ]

All mibox firmware in .img file :confused:
[Android Stick & Console AMLogic based Computers] Srikar_NBK:
Upgrade to Oreo failed

Hi, my Mi Box (MDZ-16-AB) accidentally got turned off during the Oreo upgrade and now refuses to start up. I'm able to access the recovery. Is there a way to get back to a Marshmellow build? I tried a bunch of builds from https://www.mediafire.com/folder/9k82rbe2nc0vw/MDZ-16-AB and none seem to worl. I renamed them to update.zip, put the appropriate xiaomi_update file and rebooted to bootloader mode, and everything errors out. No descriptive error is shown. Can someone please help?
[Android Stick & Console AMLogic based Computers] bigtalker:
Unless and until Xiaomi themselves decide to implement a process to regress from Oreo, there is no realistic chance to do so.

Your only path is to restore build 2174 Oreo using the standard recovery process.

There have been internal discussions by Xiaomi developers about making public a tool to enable roll back from Oreo but, as yet, there is no decision taken.
[Android Stick & Console AMLogic based Computers] claishem01:
[MENTION=4556670]hungphutho[/MENTION]

hi sir.

thank you for you guide on downgrading and creating backup of the bootloader.

i just want to know, if my box is in marshmallow build 650 can i flash and downgrade to marshmallow build 454 and then create backup of backup-256.img?will that work and won't lose the DRM? or should i just flash the upgrade Nougat 1028 as a safer option to preserve the DRM and create backup-256.img?

i hope you can help me answer this.

thank you very much.
[Android Stick & Console AMLogic based Computers] uplink.cu:
about backup-3_once.img

Hello, I have the same problem with netflix, and my serial number is 0123456789ABDEF after update to a new version of android.. any solution to the problem? I forgot make the backup of the kernel and boot-loader before upgrade and that's the reason way I cant return to normal functionality... thanks in advance.
[Android Stick & Console AMLogic based Computers] claishem01:
hi. so what was your os when you upgraded?MM or Nougat?
[Android Stick & Console AMLogic based Computers] DroidVPN:
I managed to return my mibox to the seller since it already has a problem in the first place.
[Android Stick & Console AMLogic based Computers] uplink.cu:
From MM to Noigat... now I running the last oficial update

Thanks.
[Android Stick & Console AMLogic based Computers] claishem01:
so from MM you upgraded to Nougat, and then you update from nougat to latest Oreo?
[Android Stick & Console AMLogic based Computers] uplink.cu:
I did the downgrade firt to the stock MM again, and then get the problem with the serial #.
[Android Stick & Console AMLogic based Computers] claishem01:
i see. so the drm is now lost.

but your box is still running and on Oreo os now?
[Android Stick & Console AMLogic based Computers] uplink.cu:
Yep. Is only netflix with problems because de serial number.

DRM lost.

Thanks.
[Android Stick & Console AMLogic based Computers] claishem01:
i wonder if there will still be a way, ever, to restore or replace the lost drm.

anyway, i am getting my mi box on the following days and my plan is to flash the Nougat 1028 update.zip from its stock MM 6.0. There will be no DRM lost problem with that right?
[Android Stick & Console AMLogic based Computers] bigtalker:
To answer your persistent morbid curiosity about DRM.......

The MiBox comes stock with a full range of DRM features. These features are stored in a hidden protected partition.

It requires extraordinary effort to access these hidden partitions. Such effort begins with flashing a userdebug firmware, such as Nougat beta build 1028.

If you wish to safeguard your valuable, essential DRM functionality, do not, under any circumstances, flash a userdebug firmware, EVER!!!!!

You sound like the typical naive, unsophisticated, careless user who is most inclined to do something stoopid. Please don't prove my characterization of your abilities by playing with fire. I guarantee your outcomes will be less than optimal.

Take my well reasoned advice and avoid flashing your device with a dangerous userdebug firmware build.

YOU HAVE BEEN WARNED!!!!

PS:IIRC, you mentioned in prior post that you have a TV that seems to be borderline DRM compliant. You should really make sure your screen has sufficient ability to mesh with the full set of DRM features of MiBox. Lack of proper DRM on your screen can magnify DRM issues, even if you do manage to corrupt DRM partition on MiBox,
[Android Stick & Console AMLogic based Computers] claishem01:
the instructions are simple and clear.

if you want to pull a copy and push it again in the system then use a userdebug enabled firmware.

i dont understand how flashing a userdebug enabled fw has to do with securing or losing the DRM, as long as you are not doing anything with the system.

it doesnt seem an extraordinary effort to me to access these hidden partitions by following the detailed instructions here.

if flashing a userdebug firmware and acccesing the system is already an extraordinary effort for you then i have been doing this extraordinary effort already for a long time.
[Android Stick & Console AMLogic based Computers] bigtalker:
Carry on, do as you choose. Just allow me to say, in advance, "I told you so!!"
[Android Stick & Console AMLogic based Computers] claishem01:
thank you sir. :good:
[Android Stick & Console AMLogic based Computers] claishem01:
flashed n1028.
[Android Stick & Console AMLogic based Computers] claishem01:
flashed n1028.

dd backup.

dd flashed mod bl

flashed mm454 (lost drm)

dd flashed backup (restored drm)

flashed mm1901.

wipe data/factory reset.

reboot.

done.

done with the extraordinary effort with the dangerous userdebug firmware build.
[Android Stick & Console AMLogic based Computers] Srikar_NBK:
Thanks. Any idea how I can restore to 2174? I'm not aware of the standard recovery process
[Android Stick & Console AMLogic based Computers] bigtalker:
There is a comprehensive bug-fix build 2179 that is available. Search Google for MiBox recovery steps

You can find build 2179 download instructions on xiaomi.eu forum
[Android Stick & Console AMLogic based Computers] hungphutho:
I will instruction you into tomorrow
[Android Stick & Console AMLogic based Computers] bigtalker:
Please be specific what actual hardware device this 'magic sauce' applies to. Xiaomi Model MDZ-AA-BB is the preferred description to avoid any confusion.
[Android Stick & Console AMLogic based Computers] venioni:
When you share the instructions for how downgrade to MM?
[Android Stick & Console AMLogic based Computers] VivaLaVent:
Please send the instructions, would be very grateful, thanks!
[Android Stick & Console AMLogic based Computers] bigtalker:
Still waiting for your instructions.............

Didn't think so, since such procedures will not allow Nougat to be reverted to a fully working MM.
[Android Stick & Console AMLogic based Computers] haovh_85:
I downgraded to 6.0.1 Ok. Everything works perfect :)
[Android Stick & Console AMLogic based Computers] bigtalker:
Details, please.....
[Android Stick & Console AMLogic based Computers] venioni:
I think the downgrade from nougat to MM is fake....why nobady not share the instructions for downgrade from nougat to marshmallow?
[Android Stick & Console AMLogic based Computers] haovh_85:
Please waiting for hungphutho making detail guide. It is true 100%.
[Android Stick & Console AMLogic based Computers] ma_c:
Could someone upload the "XIAOMIS3_FLASH_FILES_GLOBAL.zip" file again?

The link in the tutorial does not work (maintenance)

Thanks
[Android Stick & Console AMLogic based Computers] bigtalker:
Seems as though the major 'gotchas' for this downgrade process relate to important security and DRM features that affect running official Androidtv version of Netflix 'Ninja', successful chrome casting, and access to the the official AndroidTV Google Play Store.

run drminfo.apk and supply screenshot

show entire content of settings/system info with 2 screen shots

Your contention can be confirmed with these 2 pieces of information, do not need instructions on how you accomplished it, just looking for provable results.

I seriously consider that anyone claiming to have reverted from Nougat beta on Xiaomi MDZ-16-AB to a fully functional version of MM,

with all DRM features intact

, is either naive or misstating the facts as to DRM security.
[Android Stick & Console AMLogic based Computers] haovh_85:
I downgraded to MM drm fully working. Google cast and Netflix lic working well :)
[Android Stick & Console AMLogic based Computers] bigtalker:
Not to be persnickety but can you supply screen shots of drminfo results and entire settings/system info screen.

Without these visuals, you're just unaware or blowing smoke......
[Android Stick & Console AMLogic based Computers] bigtalker:
Thanks

Do you not have Netflix? That is a critical factor for customers in the west. Valid Netflix will have value under Netflix ESN.

Also, do you have an OTA update available under settings? Build 750 in antiquated and flawed.
[Android Stick & Console AMLogic based Computers] haovh_85:
Everything is ok. You can see drm detail. Update ota to build 1034 MM. Netflix works perfect.
[Android Stick & Console AMLogic based Computers] jlmcr87:
And where are the instructions to downgrade without losing DRM?
[Android Stick & Console AMLogic based Computers] haovh_85:
Waiting hungphutho making detail guide.
[Android Stick & Console AMLogic based Computers] bigtalker:
Seems as though you yourself have a better grasp of standard English than he does. Why don't you assist him with translating and a sanity check on the results.

I stand by with bated breath to see this ephemeral guide.
[Android Stick & Console AMLogic based Computers] VivaLaVent:
Even short instrunctions in his native language would be huge at this point
[Android Stick & Console AMLogic based Computers] unoaman:
He is still working on it.

http://daivietpda.com/2017/11/mdz-16-abhuong-dan-downgrade-from-nougat-7-0-to-6-0/
[Android Stick & Console AMLogic based Computers] hungphutho:
Hi . Instructions here

http://daivietpda.com/2017/11/mdz-16-abhuong-dan-downgrade-from-nougat-7-0-to-6-0/

Please use google translation
[Android Stick & Console AMLogic based Computers] Vihru:
Can i really do this for my mdz-16-ab international box?
[Android Stick & Console AMLogic based Computers] hungphutho:
Yes , mdz-16-ab international working ..
[Android Stick & Console AMLogic based Computers] Jonathan Araujo:
Is it possible to restore DRM from a third-party backup? Ex: if someone here wants to share a backup made in their box is it possible to restore the DRM in another box?
[Android Stick & Console AMLogic based Computers] Vihru:
thanks.. how to connect mi box with adb?

in recovery update with adb or what?

if i choose reboot bootloader, it loads android.

my computer didnt found it..
[Android Stick & Console AMLogic based Computers] FDPM:
That's worth a try.

And perhaps, if we could compare several backup.....
[Android Stick & Console AMLogic based Computers] Jonathan Araujo:
Let's see if anyone is willing to "lend" us some backup for such a test.
[Android Stick & Console AMLogic based Computers] FDPM:
I did a conversion from MDZ-19-AA to MDZ-16-AB following these instructions http://en.miui.com/thread-804634-1-1.html but I ended with the same DRM issue related to the serial number.

I suppose the rom3s.img image is the same.

Looking at it with an hex editor you can easly find a string "serialno=0123456789abcdef" that is exacly my new serial number
[Android Stick & Console AMLogic based Computers] Jonathan Araujo:
Have you succeeded in restoring your DRM?
[Android Stick & Console AMLogic based Computers] FDPM:
Not tried yet. I need more information. First of all i would like to see the proper serial number format... (as far as I know the serial number written on the box might be different from the one you an see in the system window)

Can anyone share a screenshot of the Info window?

Regards,
[Android Stick & Console AMLogic based Computers] nick2da:
tested it and it works perfekt, full drm features and widevine Level 1 :), thanks
[Android Stick & Console AMLogic based Computers] FDPM:
can you share what you exactly tested? did you changed the serial number with a hex editor in the img file?

Regards,

---------- Post added at 02:01 PM ---------- Previous post was at 01:52 PM ----------

Meanwhile i took a couple of other img files from http://miui.vn/forum/threads/cai-dat-firmware-global-cho-mi-box-3s-mdz-19-aa.50835/ (Part II and Part III).

Both shows serialno=0123456789ABCDEF around offset 00858249 (16-AB) and 008582E7 (19-AA), but if you search for "ro.boot.serialno" you will find a string ro.boot.serialno=0123456789ABCDEF in file 16-AB and ro.boot.serialno=13673580550996 in file 19-AA. This looks really like a system file...

I do not have a working MDZ-19-AA, but I suppose the serial number on this device is written in the build prop file and the serial number is a 14 digit number (not 16).
[Android Stick & Console AMLogic based Computers] jlmcr87:
Also worked for me. Reverted from nougat to marshmallow without losing DRM.:D
[Android Stick & Console AMLogic based Computers] FDPM:
Can you share a dump of your box?

Thx
[Android Stick & Console AMLogic based Computers] Vihru:
i suggest take own dump, because every box has different serialnumber. i also got it work ^^
[Android Stick & Console AMLogic based Computers] venioni:
Can someone help me to unbrick my tv box 3 internationl mdz-ab ? where can i found a system.img to flash with Almong burning tool?
[Android Stick & Console AMLogic based Computers] FDPM:
I know! The problem is that my device suffer from having lost serial number, so backing up a non working device is useless.... and I'm trying to find out where serial numbers are written. That's why I'm asking if someone is so kind to share a dump....
[Android Stick & Console AMLogic based Computers] Jonathan Araujo:
Hello friend, looking here in my stuff I found the box of my Mi Box and curiously I found behind something corresponding to "SN" I believe it is "serial number" picking up this number, including in the rom3s.img file through an exhaustive editor and restoring the file in box will the actual serial number not be restored?
[Android Stick & Console AMLogic based Computers] bigtalker:
Please define 'bricked'? Does your machine show light when power is applied?

No such .img file exists. Best you can do is flash an update.zip file using normal recovery method. You may need USB mouse depending on rom version currently installed on your machine.

Good luck..

---------- Post added at 12:23 AM ---------- Previous post was at 12:10 AM ----------

What exact Xiaomi box do you own? The technique under discussion pertains strictly to MDZ-16-AB.

The MDZ-19-AA never supported the official AndroidTV features found on the 16-AB and certainly is not capable to have any sort of DRM functionlity flashed to it. You may be able to use Leanback launcher and other cosmetic elements of AndroidTV but it will never perform with the full feature set of MDZ-16-AB in spite of their similar hardware characteristics.

DRM licenses cost money, official AndroidTV costs money, and the extensive testing of these features costs money. That accounts for the nearly $US 40 delta in cost between these models.
[Android Stick & Console AMLogic based Computers] jlmcr87:
No, will you share your mobile IMEI for example? Sorry....
[Android Stick & Console AMLogic based Computers] Vihru:
I dont think thats wise to share our boxes serial dumps for here.. Or that backup that includes it..
[Android Stick & Console AMLogic based Computers] FDPM:
MDZ-16-AB and MDZ-19-AA share exacly the same hardware. "Exacly" means same box, same board, same chipset, same memory..... If you read around you will find that you can convert 19-AA into 16-AB in the same way you downgrade 16-AB from 7 to 6, and you will get the same problem related to the serial number.

Now if someone wants to help those who didn't back-up their box and lost the serial number, it would be helpful to share a dump with the community and with those who are trying to find a solution for everybody with their (limited in my case) capabilities. Alternatively, pls analyze your dumps by yourself and share results.

If you prefer to complain about what and who, I wonder why you are reading a thread about doing upgrades and donwgrades that are not supported by Xiaomi and that you shouldn't have done.

Regards,

---------- Post added at 09:36 AM ---------- Previous post was at 09:18 AM ----------

two completely different things....
[Android Stick & Console AMLogic based Computers] venioni:
no light show not boot on recovery not do nothing but my pc can read my tv box, i try to flash th full system rom of mi box 3AA on my tv box 3AB with Almogic burning tool but always show error, can someone tell me how to unbrick my tv box 3AB?
[Android Stick & Console AMLogic based Computers] FDPM:
I think the Almogic burning tool is te right way, but the problem i where to find a proper image to burn. Sry, don't know how to help.

have you tried using rom3s.img? It should flash boot and create a partition if it works

Regards,
[Android Stick & Console AMLogic based Computers] venioni:
when i try to flash rom3s.img the burning tool say error parse burning iamage fail,only the full system image rom of mi tv box AA read ok but when i go to flash on my mi tv box 3 AB say error,i dont know what can i do....
[Android Stick & Console AMLogic based Computers] bigtalker:
Amlogic burning tool is never a possibility with mdz-16-ab. There is

no

.img file that has ever been made public for this device. Trying Amlogic burning tool is a dead end and will only result in continuing frustration.

Your only chance is to use normal recovery routine and flash an update.zip format file. You may need a usb mouse to navigate recovery menu.

Beyond restoring a valid update.zip file, you truly have a brick.

Do you know what build level is currently running on your box?
[Android Stick & Console AMLogic based Computers] FDPM:
I could work or it could brick the box.

I have tryed to backup the env partition, change the SN in there and write it back, but unfortunately the env partition seems not to be persistent.

I suppose the information is written in the boot partition, but not having the bootloader unlocked might be a problem.
[Android Stick & Console AMLogic based Computers] venioni:
The last build was the nougat 1028 but is totally bricked and not boot on recovery mode dont do nothing the only light who show is the back red light, how can i unbricked? or how can flash only the boot. img and recovery. img i try with Almogic burning tool but this tool needs full image for flash the tv box can someone knows any trick to flash boot. img or recovery. img with any tool?
[Android Stick & Console AMLogic based Computers] bigtalker:
Did your machine work properly after flash build 1028? Are you using the original power transformer that came from factory?

The only time I have seen this brick is from using a different power supply that does not match the 5.2V 2.0A unique spec for the Xiaomi box.

Using a M-M USB cable and connecting to laptop can supply some voltage and cause lights to appear. What happens when you disconnect USB and only connect using transformer?

If no lights appear, I would say your machine is truly dead with no chance to revive.

I think playing with beta firmware did not cause your machine to become bricked. Sounds like an unfortunate coincidence.

Forget Amlogic burning tool, it cannot resolve this situation, only built-in recovery routine can work.

Sorry to hear of your difficulty

---------- Post added at 12:22 PM ---------- Previous post was at 12:21 PM ----------
[Android Stick & Console AMLogic based Computers] venioni:
[MENTION=490167]bigtalker[/MENTION]
[Android Stick & Console AMLogic based Computers] FDPM:
Sorry mate, I did flash MiBOX3_USA_once_r454 at the end. This means that the recovery recognize the firmware of the 16-AB a the right software.... The difference between the two boxes is just software.

The box booted and updated online without a problem other than the serial number. And I'm confidend the DRM problem is just related to the serial number. DRM implementation is software again...

I'm now trying unpack the boot.img an see if there is anything useful in there.

Regards,
[Android Stick & Console AMLogic based Computers] ma_c:
I have the MDZ-16-AB model with the DRM/Serial Number problem. Is it possible to repair with a full firmware backup of the same model (MDZ-16-AB)?
[Android Stick & Console AMLogic based Computers] wasd-:
No they are not different things, each box has a unique S/N that it's like a license to pass the DRM.
[Android Stick & Console AMLogic based Computers] atleeit:
Returning back to Marshmellow, downgrading now will let you know result.
[Android Stick & Console AMLogic based Computers] atleeit:
The serial is 123456789ABCDEF ???? did someone mod this rom?
[Android Stick & Console AMLogic based Computers] atleeit:
If i'm correct then adb, reverse my backup image then re-flash version 7 1028 or 1035 should work. Bad thing is 1034 adb via usb doesn't work. Will get older version i wreckon.
[Android Stick & Console AMLogic based Computers] the face:
I have following problem with my ****ty Mi Box: After updating to the newest Nougat Beta, all DRM is completely gone. Serial Number is still there, but every app trying to access DRM crashes. Is there any way to reset the DRM with a working serial? Maybe with downgrading? Any help is appreciated :)
[Android Stick & Console AMLogic based Computers] unoaman:
Which newest Nougat Beta did you install??
[Android Stick & Console AMLogic based Computers] the face:
from 1035 to 1560

https://xiaomi.eu/community/threads...eta-download-source-build-1560-12-2017.42621/
[Android Stick & Console AMLogic based Computers] giga80:
I am also having the same issue and i lost my drm after updating to nougat i made a backup after loosing the drm but i think i still have the serial and the Netflix serial number

I really now hated this device also i was importing it because i don't have it in my country so my only way is to find a solution i downgraded it to marshmallow but i lost the serial and the Drm

Any solution¿????????¿????¿

---------- Post added at 09:42 AM ---------- Previous post was at 09:36 AM ----------

How did you fix it i saw the discussion between you and all idiot's in the xiaomi.eu forum and you have all the rights but please howhow did you fix this i lost my device as i said and i dont know what to do if you have a backup with a working drm and serial is ok please tell me
[Android Stick & Console AMLogic based Computers] the face:
Yes, use the downgrade guide (http://daivietpda.com/2017/11/mdz-16-abhuong-dan-downgrade-from-nougat-7-0-to-6-0/) to go back to MM. You need to google translate the page, download all necessary files and strictly follow the guide. The DRM is stored in the Bootloader/Kernel section which is protected and isn´t affected by the update. It worked for me, the most important part is to properly back up that partition. I did not find any other way to restore the DRM otherwise.

PS: Why do you think the DRM is gone? Did you run DRM Info and check?

PPS: I just re-read your post... you already tried to downgrade? The serial of the device is not supposed to be gone, after the downgrade it´s just replaced with 12345678ABCDEF or so, if it shows that, your backup was not successful or it didn´t restore properly. If your backup was not made properly and you already downgraded, you cannot restore theDRM in the box in any way at the moment as far as I know.