FORUMS
Remove All Ads from XDA
H10 Turbo

Guide: Reverse-engineering Xiaomi OTA Updates to Find Unreleased Versions

2,315 posts
Thanks Meter: 1,562
 
By duraaraa, Senior Member on 20th October 2017, 06:27 AM
Post Reply Email Thread
This is something I've been looking into in order to find newer, older, and unreleased updates for the Mi Mix 2.
Ideally, I'd like to figure out a way to get Xiaomi's nightly builds, which go out to only beta testers. I think I'm close, but any help I can get would be awesome.

I currently have two methods. One of them is rather difficult, the other is rather easy. Let's start with the easy one.

Method 1: Example 1
http://update.miui.com/updates/mi-up...ron_global&b=X
This is a URL which asks for an update to the unreleased MIUI 9 7.9.21 global edition.


If you visit this URL, you get the following response:
Code:
{"UserLevel":9,"LatestVersion":{"type":"rom","device":"chiron_global","name":"XM-MIMIX2-GLOBAL 7.9.21","description":"MIUI\u5347\u7ea7","descriptionUrl":"http:\/\/update.miui.com\/updates\/updateinfo\/7.9.21\/chiron_global_0_7.9.21_4494ccfcc506caca9904efb74b489e0a.html","md5":"7f94ca393fae77c6171e6c7a551bea2e","filename":"miui_MIMIX2Global_7.9.21_7f94ca393f_7.1.zip","filesize":"1.6G","codebase":"7.1","version":"7.9.21","branch":"X"},"UpdateList":[{"type":"rom","device":"chiron_global","name":"XM-MIMIX2-GLOBAL 7.9.21","description":"","descriptionUrl":"http:\/\/update.miui.com\/updates\/updateinfo\/7.9.21\/chiron_global_0_7.9.21_4494ccfcc506caca9904efb74b489e0a.html","md5":"7f94ca393fae77c6171e6c7a551bea2e","filename":"miui_MIMIX2Global_7.9.21_7f94ca393f_7.1.zip","filesize":"1.6G","codebase":"7.1","version":"7.9.21","branch":"X"}],"IncrementalUpdateList":[],"MirrorList":["http:\/\/bigota.d.miui.com"],"Signup":{"version":"","total":"","rank":""},"AuthResult":0,"ForceUpdate":0
We can piece together looking at this that the update file can be downloaded at:
http://bigota.d.miui.com/7.9.21/miui...ca393f_7.1.zip

Method 1 Example 2
It was announced today that there was a new Chinese stable release pushed only to some phones called 8.5.7.0.NDECNEF. We can modify the parameters in the URL to get this:

http://update.miui.com/updates/mi-up...1&d=chiron&b=S

This returns the following:
Code:
{"UserLevel":9,"LatestVersion":[],"UpdateList":[{"type":"rom","device":"chiron","name":"XM-MIMIX2 V8.5.7.0.NDECNEF","description":"","descriptionUrl":"http:\/\/update.miui.com\/updates\/updateinfo\/V8.5.7.0.NDECNEF\/chiron_0_V8.5.7.0.NDECNEF_a9374e7e6aa4f38a22fd58aae29337ce.html","md5":"487f34ee14e84d0eb9ed280a059bcc65","filename":"miui_MIMIX2_V8.5.7.0.NDECNEF_487f34ee14_7.1.zip","filesize":"1.4G","codebase":"7.1","version":"V8.5.7.0.NDECNEF","branch":"F"}],"IncrementalUpdateList":[],"MirrorList":["http:\/\/bigota.d.miui.com"],"Signup":{"version":"","total":"","rank":""},"AuthResult":0,"ForceUpdate":0}
And that lets us know that the update can be found at:
http://bigota.d.miui.com/V8.5.7.0.ND...34ee14_7.1.zip

So now that we see that we have a way to query for downloads, let's look into some of the parameters.

At a minimum we need the following:

v=MIUI-V8.5.7.0.NDECNEF - This is the version with which you are querying.
c=7.1 - This is the build of Andoid. It's Android 7.1 so we put 7.1
d=chiron - This is the device. For Chinese Mix 2 firmwares it's chiron. For global it's chiron_global

You might also notice this:
b=S - S means stable. X means weekly. Actually, there is a whole list as follows, but not sure how accurate it is:
Code:
«S» — monthly build
«X» — weekly build
«D» — daily build
«E» — emegency build
«F» — stable build
«A» — experimental build
«I» — internal build
«T» — top secret build
«U» — unstable build
On top of this, there are more possible parameters. I will get around to these when talking about Method 2.

Right now, I can't access anything but weekly and stable builds, so there are not really any undiscovered/unannounced/internal builds that I've been able to find. But I think we are on the right track to being able to find them. I'm hoping that other people can continue looking using this information, and we'll see if we can find anything. Stay tuned while I update this post with Method 2, which is much more complex and much more likely to yield results.

If you want to keep my stomach full while I keep this research going, give the Donate button a click!
The Following 32 Users Say Thank You to duraaraa For This Useful Post: [ View ] Gift duraaraa Ad-Free
 
 
20th October 2017, 06:31 AM |#2  
OP Senior Member
Flag 東京☆Улаанбаатар☆Los Angeles
Thanks Meter: 1,562
 
Donate to Me
More
Reserved
The Following 19 Users Say Thank You to duraaraa For This Useful Post: [ View ] Gift duraaraa Ad-Free
22nd October 2017, 02:29 AM |#3  
punkmonkey1984's Avatar
Senior Member
Flag Bucheon 부천시
Thanks Meter: 611
 
More
Isn't this link (http://bigota.d.miui.com/7.9.21/miui...ca393f_7.1.zip) global miui 9?

I say because Chinese dev rom (miui 9) is the same miui version (7.9.19 which is a lower firmware number)
22nd October 2017, 08:31 AM |#4  
OP Senior Member
Flag 東京☆Улаанбаатар☆Los Angeles
Thanks Meter: 1,562
 
Donate to Me
More
Quote:
Originally Posted by punkmonkey1984

Isn't this link (http://bigota.d.miui.com/7.9.21/miui...ca393f_7.1.zip) global miui 9?

I say because Chinese dev rom (miui 9) is the same miui version (7.9.19 which is a lower firmware number)

Yes, that's global miui 9, but it's old. I'd like to find a newer one.
22nd October 2017, 01:05 PM |#5  
Senior Member
Thanks Meter: 92
 
More
Quote:
Originally Posted by duraaraa

Yes, that's global miui 9, but it's old. I'd like to find a newer one.

<snip>
22nd October 2017, 01:08 PM |#6  
OP Senior Member
Flag 東京☆Улаанбаатар☆Los Angeles
Thanks Meter: 1,562
 
Donate to Me
More
Quote:
Originally Posted by Caitlin550

<snip>

Before you snipped it.... it's from September 21, so it's a month old. :P
22nd October 2017, 01:29 PM |#7  
Senior Member
Thanks Meter: 92
 
More
Quote:
Originally Posted by duraaraa

Before you snipped it.... it's from September 21, so it's a month old. :P

I believe this is the global version? I know this is different to Xiaomi's global MIUI9 releases

https://sourceforge.net/projects/xia...1.zip/download
22nd October 2017, 02:14 PM |#8  
OP Senior Member
Flag 東京☆Улаанбаатар☆Los Angeles
Thanks Meter: 1,562
 
Donate to Me
More
Quote:
Originally Posted by Caitlin550

I believe this is the global version? I know this is different to Xiaomi's global MIUI9 releases

https://sourceforge.net/projects/xia...1.zip/download

It's a modified version of the Chinese ROM. It's not the official global ROM from Xiaomi.
22nd October 2017, 02:28 PM |#9  
Senior Member
Thanks Meter: 92
 
More
Quote:
Originally Posted by duraaraa

It's a modified version of the Chinese ROM. It's not the official global ROM from Xiaomi.

Ah okay
22nd October 2017, 03:30 PM |#10  
punkmonkey1984's Avatar
Senior Member
Flag Bucheon 부천시
Thanks Meter: 611
 
More
Quote:
Originally Posted by duraaraa

Yes, that's global miui 9, but it's old. I'd like to find a newer one.

Have you tried it? Does it work without issues?
Does it receive OTA updates to a newer one?
22nd October 2017, 03:35 PM |#11  
OP Senior Member
Flag 東京☆Улаанбаатар☆Los Angeles
Thanks Meter: 1,562
 
Donate to Me
More
Quote:
Originally Posted by punkmonkey1984

Have you tried it? Does it work without issues?
Does it receive OTA updates to a newer one?

Yes, I tried it. It works without issues. It does not receive any newer OTA right now. Hopefully soon.
The Following User Says Thank You to duraaraa For This Useful Post: [ View ] Gift duraaraa Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes