FORUMS
Remove All Ads from XDA

P10 Firmware on the Mate 9, Android O, and other recent experiments

2,335 posts
Thanks Meter: 1,571
 
By duraaraa, Senior Member on 6th April 2017, 03:55 AM
Post Reply Email Thread
Over the past month, although I haven't been able to post to XDA, I've gotten a lot of interesting information which I think can be discussed here. I'd also like to report the results of some experiments.

1. Flashing P10 firmware to the Mate 9
Surprisingly, it is possible to flash P10 firmware to the Mate 9, and it boots. A Mate 9 can even be rebranded as a P10. Unfortunately, there is something different about the Wifi driver, and Wifi does not work. It seems the mobile radios, bluetooth, etc. do work, though. I wasn't able to test this very thoroughly, and I don't recommend anyone else does, as it's impossible to recover it even with offline firmware, but it would be possible in the future for someone to build a ROM based on P10 firmware, I'm pretty sure.

2. Android O
Huawei has an internal Android O build for the Mate 9. This build comes pre-rooted for Huawei's internal development use, which opens up the option of rebranding without ever unlocking the bootloader, and doing other such tricks. Apart from looking at it and seeing the Android O features, the build is pretty useless as a daily driver. Things like the play store can't be installed easily. The recovery which comes with the build has broken Wifi, and I needed to use a HiSuite exploit to get it to restore to previous versions.

With both of the above mentioned firmwares, the recovery system is different. The TWRP which we currently have for the Mate 9 does not work. Rebuilding the recovery image with the tools available also does not work. Something's different about the way the recovery image is made, but I can't figure out what it is. So it's not possible to have TWRP yet in either of these environments, which makes them much less useful.

Even more interestingly, the P10 recovery images which do not work when flashed to a Mate 9 running EMUI 7.0, do work if the Mate 9 is running Android O build, or if it's running the P10 roms.

It's very easy to tell which environment it's in, as the EMUI 5.0 Recovery has a light blue theme, while the Android O / P10 builds, and so on have a dark blue theme.

It should also be possible to flash Mate 9 ROMs on the P10, which would let P10 users access TWRP (but they would lose Wifi in eRecovery, making it very, very hard to revert to P10 ROM)

--What from here?--

Eventually, these updates will be released for the Mate 9, and we'll need to rebuild TWRP. A nice side effect is, if we build a working TWRP for the P10, it will also work with future Mate 9 builds. I'm hoping that the next internal EMUI 5.1/Android O build will have Wifi working in eRecovery to make it possible to do more research on this with an easier recovery method.

For the sake of research, I will upload and link to the recovery img from the Android O build. Feel free to poke around with it! Note that just flashing this to your Mate 9 running EMUI 5.0, it will not work. Hopefully TWRP based off of this can be made. I've tried and have not been successful building something which will boot, despite it being easy for EMUI 5.0-based recovery.

Link for Boot, Recovery, Recovery2 from EMUI 5.1 / Android O build for MHA-AL00:
https://drive.google.com/file/d/0B6o...ew?usp=sharing
The Following 14 Users Say Thank You to duraaraa For This Useful Post: [ View ] Gift duraaraa Ad-Free
 
 
6th April 2017, 09:33 AM |#2  
Governa's Avatar
Senior Member
Portugal
Thanks Meter: 169
 
More
Hey buddy, welcome back.

Sent from my MHA-L29 using XDA Labs
The Following 3 Users Say Thank You to Governa For This Useful Post: [ View ] Gift Governa Ad-Free
6th April 2017, 09:39 AM |#3  
albertobom's Avatar
Senior Member
Flag Esquinzo
Thanks Meter: 704
 
Donate to Me
More
That's good news. Let's see what our great minds can do with this.
I am glad to see you here @duraraa.
All the best,
AB
The Following 2 Users Say Thank You to albertobom For This Useful Post: [ View ] Gift albertobom Ad-Free
6th April 2017, 10:12 AM |#4  
aknotts415's Avatar
Senior Member
Thanks Meter: 404
 
More
Quote:
Originally Posted by duraaraa

Over the past month, although I haven't been able to post to XDA, I've gotten a lot of interesting information which I think can be discussed here. I'd also like to report the results of some experiments.

1. Flashing P10 firmware to the Mate 9
Surprisingly, it is possible to flash P10 firmware to the Mate 9, and it boots. A Mate 9 can even be rebranded as a P10. Unfortunately, there is something different about the Wifi driver, and Wifi does not work. It seems the mobile radios, bluetooth, etc. do work, though. I wasn't able to test this very thoroughly, and I don't recommend anyone else does, as it's impossible to recover it even with offline firmware, but it would be possible in the future for someone to build a ROM based on P10 firmware, I'm pretty sure.

2. Android O
Huawei has an internal Android O build for the Mate 9. This build comes pre-rooted for Huawei's internal development use, which opens up the option of rebranding without ever unlocking the bootloader, and doing other such tricks. Apart from looking at it and seeing the Android O features, the build is pretty useless as a daily driver. Things like the play store can't be installed easily. The recovery which comes with the build has broken Wifi, and I needed to use a HiSuite exploit to get it to restore to previous versions.

With both of the above mentioned firmwares, the recovery system is different. The TWRP which we currently have for the Mate 9 does not work. Rebuilding the recovery image with the tools available also does not work. Something's different about the way the recovery image is made, but I can't figure out what it is. So it's not possible to have TWRP yet in either of these environments, which makes them much less useful.

Even more interestingly, the P10 recovery images which do not work when flashed to a Mate 9 running EMUI 7.0, do work if the Mate 9 is running Android O build, or if it's running the P10 roms.

It's very easy to tell which environment it's in, as the EMUI 5.0 Recovery has a light blue theme, while the Android O / P10 builds, and so on have a dark blue theme.

It should also be possible to flash Mate 9 ROMs on the P10, which would let P10 users access TWRP (but they would lose Wifi in eRecovery, making it very, very hard to revert to P10 ROM)

--What from here?--

Eventually, these updates will be released for the Mate 9, and we'll need to rebuild TWRP. A nice side effect is, if we build a working TWRP for the P10, it will also work with future Mate 9 builds. I'm hoping that the next internal EMUI 5.1/Android O build will have Wifi working in eRecovery to make it possible to do more research on this with an easier recovery method.

For the sake of research, I will upload and link to the recovery img from the Android O build. Feel free to poke around with it! Note that just flashing this to your Mate 9 running EMUI 5.0, it will not work. Hopefully TWRP based off of this can be made. I've tried and have not been successful building something which will boot, despite it being easy for EMUI 5.0-based recovery.

Link for Boot, Recovery, Recovery2 from EMUI 5.1 / Android O build for MHA-AL00:
https://drive.google.com/file/d/0B6o...ew?usp=sharing

Welcome back 🙂
The Following 2 Users Say Thank You to aknotts415 For This Useful Post: [ View ] Gift aknotts415 Ad-Free
6th April 2017, 04:22 PM |#5  
Member
Thanks Meter: 18
 
More
mate 9 will never come with emui 5.1 even with official Android O update.... but it will come with enhanced features and will stay on 5.0 version as it's ...
6th April 2017, 04:50 PM |#6  
albertobom's Avatar
Senior Member
Flag Esquinzo
Thanks Meter: 704
 
Donate to Me
More
Quote:
Originally Posted by Nilezcode

mate 9 will never come with emui 5.1 even with official Android O update.... but it will come with enhanced features and will stay on 5.0 version as it's ...

Source of this information?
6th April 2017, 05:19 PM |#7  
MishaalRahman's Avatar
Editor in Chief
Thanks Meter: 1,535
 
More
What new features did you notice in the Android O build?
6th April 2017, 05:41 PM |#8  
OP Senior Member
Flag 東京☆Улаанбаатар☆Los Angeles
Thanks Meter: 1,571
 
Donate to Me
More
Quote:
Originally Posted by Nilezcode

mate 9 will never come with emui 5.1 even with official Android O update.... but it will come with enhanced features and will stay on 5.0 version as it's ...

No, it'll be 5.1. It already is.
5.1
6th April 2017, 05:43 PM |#9  
OP Senior Member
Flag 東京☆Улаанбаатар☆Los Angeles
Thanks Meter: 1,571
 
Donate to Me
More
Quote:
Originally Posted by MishaalRahman

What new features did you notice in the Android O build?

The only thing I noticed was a new files app, and some new developer options. I'm pretty sure it's just targeted for Android O development, and not for bringing any new features. It's missing all languages except Chinese and English, for example, it's missing a System Update app, eRecovery doesn't work, very incomplete.

Still, interesting, and I'm not an expert with what's new with Android to the point where I know what to look for, so if there's something I should be looking for, let me know.
6th April 2017, 05:56 PM |#10  
MishaalRahman's Avatar
Editor in Chief
Thanks Meter: 1,535
 
More
Quote:
Originally Posted by duraaraa

The only thing I noticed was a new files app, and some new developer options. I'm pretty sure it's just targeted for Android O development, and not for bringing any new features. It's missing all languages except Chinese and English, for example, it's missing a System Update app, eRecovery doesn't work, very incomplete.

Still, interesting, and I'm not an expert with what's new with Android to the point where I know what to look for, so if there's something I should be looking for, let me know.

Can you look for Android O specific features to see if they work, such as Picture in Picture? If you know how to use ADB, enter an ADB shell, then open up the YouTube app and start a video.

While the video is paused type:

input keyevent 171

This would be definitive proof that this is indeed Android O. We can try other stuff too.
7th April 2017, 01:08 AM |#11  
Senior Member
Flag London
Thanks Meter: 393
 
More
Any built in apps from P10 that can be installed on the Mate 9? Is there an apk list?
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