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

Search This thread

duraaraa

Senior Member
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/0B6ox6M5Lb2JYRVZSNnB1YmpNX1E/view?usp=sharing
 
Last edited:

aknotts415

Senior Member
May 6, 2014
1,315
411
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/0B6ox6M5Lb2JYRVZSNnB1YmpNX1E/view?usp=sharing
Welcome back ?
 

duraaraa

Senior Member
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.
C8OICezUwAA2s5v.jpg
 

duraaraa

Senior Member
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.
 
Last edited:

MishaalRahman

Retired Editor in Chief
Nov 2, 2015
1,045
2,153
www.xda-developers.com
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.
 

Willyman

Senior Member
Aug 26, 2015
414
162
I seemed to remember reading in reviews of the P10 that the camera hardware is the same as our Mate 9/pro, but with upgraded software. Is this something you can verify based on the firmwares you have? When can we Mate 9 users expect this upgrade?

Cheers!
 

duraaraa

Senior Member
I seemed to remember reading in reviews of the P10 that the camera hardware is the same as our Mate 9/pro, but with upgraded software. Is this something you can verify based on the firmwares you have? When can we Mate 9 users expect this upgrade?

Cheers!

Sorry, can't verify one way or the other. Although I did get P10 software running on the Mate 9, I didn't get the Camera app.
 
  • Like
Reactions: Willyman

Paz9

Senior Member
Jan 3, 2011
2,728
792
Google Pixel 8 Pro
glad to see you here
ive also found that TWRP breaks the phone when you try to recover some partitions (/product i think)
hopefully things can change in the future, the partitions are a pain in the rear to play with

ive also read huawei wont name emui 5.1 on the mate 9 but will have the exact same features when upgraded (and will have the same 5.0 version)
 

duraaraa

Senior Member
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.

I finally got a chance to try this. It worked.
tDxT0Yg.jpg
 

duraaraa

Senior Member
Judging by your screenshot, you also got the Play Store and Wifi working, correct?

Wifi always worked on Android O, since it's for the Mate 9. It doesn't work when running P10, P10 Plus, or other newer EMUI 5.1 phones' builds on the Mate 9. The issue seems to be the kernel.

I sideloaded google services and managed to get play store working, yes.
 
  • Like
Reactions: MishaalRahman

MishaalRahman

Retired Editor in Chief
Nov 2, 2015
1,045
2,153
www.xda-developers.com
Many are doubting that this is actually Android O. Can you show a screen recording of picture-in-picture mode being started from the YouTube app?

1) Start a screen recording

2) Open up YouTube

3) Start a video

4) Send the input keyevent 171 ADB command

5) End recording

That should put any doubt to rest.
 

duraaraa

Senior Member
Many are doubting that this is actually Android O. Can you show a screen recording of picture-in-picture mode being started from the YouTube app?

1) Start a screen recording

2) Open up YouTube

3) Start a video

4) Send the input keyevent 171 ADB command

5) End recording

That should put any doubt to rest.

Perhaps next time I install it, I will. The picture in the previous post is the result of sending keyevent 171 ADB command while running a youtube video. The video continues to run regardless of what you do with the phone, but I couldn't find a way to close it.

Who, exactly, is doubting that it's Android O?
 
  • Like
Reactions: Sammath

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    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/0B6ox6M5Lb2JYRVZSNnB1YmpNX1E/view?usp=sharing
    6
    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.

    I finally got a chance to try this. It worked.
    tDxT0Yg.jpg
    3
    Hey buddy, welcome back. :good:

    Sent from my MHA-L29 using XDA Labs
    2
    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
    2
    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/0B6ox6M5Lb2JYRVZSNnB1YmpNX1E/view?usp=sharing
    Welcome back ?