Successfully able to boot Project Treble/AOSP rom

Search This thread

Si73

Senior Member
Nov 15, 2007
98
68
Suffolk
This is not a guide as such but more of direction to other peoples hard work and effort. I am not a developer, just an experimenter!

Main Credits - @MishaalRahman and @phhusson.

For me one of the main selling points of the Mediapad M5 was being Project Treble enabled. Being a big Nexus/Pixel fan I am not particularly fond of EMUI.
So after reading this detailed and clear guide by Mishaal Rahman http://www.xda-developers.com/flash-generic-system-image-project-treble-device/, I was able to successfully install an AOSP Generic System Image by phhusion http://forum.xda-developers.com/project-treble/trebleenabled-device-development/experimental-phh-treble-t3709659

My device - CMR-W09 (10.8" non pro wifi).

I flashed v17 with Gapps and SU and apart from an Android System error upon boot it seems to work ok. I have not had much time to play with it but so far Wifi, Bluetooth, sound, camera, fingerprint sensor, MTP and SD card appear to be working. I had issues with google play not downloading apps but worked after clearing data/cache on google play and google play services. Also have issues with superuser force closing.

For the nervous and unsure, you can easily return to stock Huawei firmware by flashing your devices stock system.img in fastboot.

Obviously bootloader needs to be unlocked see guide - https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275 by @Apo11on. You can use Apo11on's root guide to download your firmware to get your stock system.img.

OEM needs to be disabled in developer options.
It is best to factory reset via recovery mode and then boot straight into bootloader to keep FRP unlocked.

Do this at your own risk but please read all the available information and guides on XDA.

pphusion has made other Project Treble roms but I have yet to try them. Hopefully it would be nice if someone could fully develop Lineage for this device.
 

fargonaz

Senior Member
Apr 16, 2007
95
18
It's an A-only device.

I tried AOSP with GAPPS and SU but SuperSU shows the su binary as being occupied through several reboots. Getting the Lineage GSI now and will root with magisk.

Edit:
Blah... Lineage is not an option until we have twrp :/ (at least for me) No way to install GAPPS.

Edit:
SU works with phh's super user available from the play store.
 
Last edited:
  • Like
Reactions: equi_design

florian-m19

Senior Member
May 1, 2014
74
20
Yes i have the AOSP one now on my AL-09 and it works fine till now. Bugs : home Button not working but fingerprint works, supersu with the phhs one works. Bluetooth sometimes gives an error message. Battery drain is a little bit high. I installed the Huawei camera apk from treble forum and This works also good.
Another Bug is Apps sometimes force closing but Not often.
How is Lineage performing?
 

Varyak

Member
Jun 25, 2011
27
1
A little bit off topic, but how did you unlock the bootloader on the Wifi only version since the website for the code is offline for a few weeks now?

Thanks in advance.

Fantastic to see that Treble works.
 

fargonaz

Senior Member
Apr 16, 2007
95
18
On my AL09(ASOP with gapps and su) bluetooth never connects to any of my devices and fc on pairing.

Lineage was a non-starter, since I was unable to get gapps running. I was also getting a vendor mismatch toast. I'm back on the stock .125(C00), no working tether is infinitely more useable than no BT.

It was nice to be able to flash something that didn't brick it and was partially useable.
 
  • Like
Reactions: florian-m19

florian-m19

Senior Member
May 1, 2014
74
20
On my AL09(ASOP with gapps and su) bluetooth never connects to any of my devices and fc on pairing.

Lineage was a non-starter, since I was unable to get gapps running. I was also getting a vendor mismatch toast. I'm back on the stock .125(C00), no working tether is infinitely more useable than no BT.

It was nice to be able to flash something that didn't brick it and was partially useable.

I understand, Do you think it gets more stable for our device in the future?
 

Varyak

Member
Jun 25, 2011
27
1
Just installed it, attached a few screenshots. Haven't tested it a lot, but it boots.
 

Attachments

  • Screenshot_20180513-201212.png
    Screenshot_20180513-201212.png
    120.6 KB · Views: 1,023
  • Screenshot_20180513-201234.jpg
    Screenshot_20180513-201234.jpg
    120.9 KB · Views: 1,025
  • Screenshot_20180513-201238.jpg
    Screenshot_20180513-201238.jpg
    143.2 KB · Views: 1,012

florian-m19

Senior Member
May 1, 2014
74
20
Wie are Not joking, its real ??
 

Attachments

  • Screenshot_20180513-231615.jpg
    Screenshot_20180513-231615.jpg
    123.6 KB · Views: 1,355
  • Screenshot_20180513-231621.jpg
    Screenshot_20180513-231621.jpg
    124 KB · Views: 1,357
  • Screenshot_20180513-231636.png
    Screenshot_20180513-231636.png
    221.5 KB · Views: 1,361
  • Screenshot_20180513-231641.png
    Screenshot_20180513-231641.png
    165.2 KB · Views: 1,297
  • Screenshot_20180513-231644.png
    Screenshot_20180513-231644.png
    166.3 KB · Views: 1,289
  • Screenshot_20180513-231655.jpg
    Screenshot_20180513-231655.jpg
    203.8 KB · Views: 1,145

florian-m19

Senior Member
May 1, 2014
74
20
Delete, double post
 

Attachments

  • Screenshot_20180513-231615.jpg
    Screenshot_20180513-231615.jpg
    123.6 KB · Views: 565
  • Screenshot_20180513-231621.jpg
    Screenshot_20180513-231621.jpg
    124 KB · Views: 555
  • Screenshot_20180513-231636.png
    Screenshot_20180513-231636.png
    221.5 KB · Views: 543
  • Screenshot_20180513-231641.png
    Screenshot_20180513-231641.png
    165.2 KB · Views: 523
  • Screenshot_20180513-231644.png
    Screenshot_20180513-231644.png
    166.3 KB · Views: 505
  • Screenshot_20180513-231655.jpg
    Screenshot_20180513-231655.jpg
    203.8 KB · Views: 501

darren1

Senior Member
Oct 31, 2010
370
118
I will be getting my Mediapad M5 8.4 tomorrow and will be flashing the AOSP treble build straight away. Just a heads up a updated build has just been posted with some Huawei related fixes.
 

fargonaz

Senior Member
Apr 16, 2007
95
18
I flashed the new one with gapps and su, and for the sht-l09 there is no working bluetooth, so that's as far as I go. It will be nice when the BT is fixed for this device.
 

darren1

Senior Member
Oct 31, 2010
370
118
Works good with dirty flash, Home Button is working now and also Automatic Brightness, but battery draining is really high and it gets hot.

Have you tried changing the cpu governor? Is it set to something like interactive? I got my Mediapad today but I am waiting for the bootloader unlock code from Huawei.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    This is not a guide as such but more of direction to other peoples hard work and effort. I am not a developer, just an experimenter!

    Main Credits - @MishaalRahman and @phhusson.

    For me one of the main selling points of the Mediapad M5 was being Project Treble enabled. Being a big Nexus/Pixel fan I am not particularly fond of EMUI.
    So after reading this detailed and clear guide by Mishaal Rahman http://www.xda-developers.com/flash-generic-system-image-project-treble-device/, I was able to successfully install an AOSP Generic System Image by phhusion http://forum.xda-developers.com/project-treble/trebleenabled-device-development/experimental-phh-treble-t3709659

    My device - CMR-W09 (10.8" non pro wifi).

    I flashed v17 with Gapps and SU and apart from an Android System error upon boot it seems to work ok. I have not had much time to play with it but so far Wifi, Bluetooth, sound, camera, fingerprint sensor, MTP and SD card appear to be working. I had issues with google play not downloading apps but worked after clearing data/cache on google play and google play services. Also have issues with superuser force closing.

    For the nervous and unsure, you can easily return to stock Huawei firmware by flashing your devices stock system.img in fastboot.

    Obviously bootloader needs to be unlocked see guide - https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275 by @Apo11on. You can use Apo11on's root guide to download your firmware to get your stock system.img.

    OEM needs to be disabled in developer options.
    It is best to factory reset via recovery mode and then boot straight into bootloader to keep FRP unlocked.

    Do this at your own risk but please read all the available information and guides on XDA.

    pphusion has made other Project Treble roms but I have yet to try them. Hopefully it would be nice if someone could fully develop Lineage for this device.
    3
    I had the same problem. Have a look here

    https://github.com/phhusson/treble_experimentations/issues/37

    Im pretty sure wiping data in fastboot and then booting straight into recovery and letting it format data without booting in between is what fixed mine.
    2
    Wie are Not joking, its real ??
    2
    Can you give any more details? If you mean the thing with the dload folder and the update.app than its not working, because the file is too big.

    Press Volume Up for 3 secs after boot. then you need connect to wifi and will download latest version.
    1
    It's an A-only device.

    I tried AOSP with GAPPS and SU but SuperSU shows the su binary as being occupied through several reboots. Getting the Lineage GSI now and will root with magisk.

    Edit:
    Blah... Lineage is not an option until we have twrp :/ (at least for me) No way to install GAPPS.

    Edit:
    SU works with phh's super user available from the play store.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone