[Magisk] [EMUI 8.0] Root Honor View 10, Mate 10 (Pro) (Huawei Treble Devices)

14th February 2018 12:08 AM 80 Thanks
topjohnwu Recognized Developer / Recognized Contributor
Magisk has officially landed on the lovely Treble enabled Huawei devices! Props to Huawei reaching out and sent me a device for development
Instead of holding it off and wait till the next proper release, I decide to release it here so those willing to root their device can give it a try.

These Huawei Treble devices use an interesting setup: it no longer has a boot and recovery partition, but instead has a kernel partition, a ramdisk partition, and a recovery_ramdisk partition. Both boot and recovery share the same kernel, but with separate ramdisks on separate partitions. Since Magisk modifies the ramdisk in boot images, the patches will have to be applied to the ramdisk partition. This nature will very likely to also slightly change how custom recovery will be installed, my bet is similar to Pixel devices which ships with a full ramdisk image, and should be flashed to the recovery_ramdisk partition.
This build is only tested with Honor View 10, but it should work with Mate 10 and Mate 10 Pro in theory since these devices are very similar.

Enough of the rambling, let's get right into it!

Instructions
If your device have TWRP support, just directly flash it via TWRP. For devices without TWRP yet (currently all Huawei Treble devices), you can follow the instructions below:
  1. Install latest Magisk Manager from the Official Thread
  2. Go to Settings > Update Settings > Update Channel > Custom, and insert the following URL: https://goo.gl/jefZKH
  3. Follow the instructions of "Install Via Magisk Manager" in the main thread, but instead of providing the boot image (which these devices do NOT have), provide the stock ramdisk.img.
    If you are using EU View 10 with model BKL-L09, you can download the stock ramdisk.img I extracted from official OTAs in the attachments
    If you have stock ramdisk images for other devices, please share them and I'll add them to the OP.
    Make sure you are installing Magisk-v15.4(1541), which is only available through the custom channel you've set in step 2.
  4. Pull the patched image with adb pull /sdcard/MagiskManager/patched_boot.img, and flash the patched ramdisk via fastboot:
    fastboot flash ramdisk patched_boot.img
  5. Reboot and you shall have a properly rooted device passing SafetyNet, start playing with some Magisk modules!
Donation
https://www.paypal.me/topjohnwu
Attachments:
Magisk-v15.4(1541).zip 5.38 MB / 16698 downloads
huawei.txt 462 B / 98778 downloads
BKL-L09_ramdisk.img 16 MB / 7172 downloads
BLA-L29_ramdisk.img 16 MB / 3568 downloads
STF-L09_ramdisk.img 16 MB / 3214 downloads
VKY-L29_ramdisk.img 16 MB / 2338 downloads
14th February 2018 02:09 AM 0 Thanks
Rj_Param Member
Quote:
Originally Posted by topjohnwu

Magisk has officially landed on the lovely Treble enabled Huawei devices! Props to Huawei reaching out and sent me a device for development
Instead of holding it off and wait till the next proper release, I decide to release it here so those willing to root their device can give it a try.

These Huawei Treble devices use an interesting setup: it no longer has a boot and recovery partition, but instead has a kernel partition, a ramdisk partition, and a recovery_ramdisk partition. Both boot and recovery share the same kernel, but with separate ramdisks on separate partitions. Since Magisk modifies the ramdisk in boot images, the patches will have to be applied to the ramdisk partition. This nature will very likely to also slightly change how custom recovery will be installed, my bet is similar to Pixel devices which ships with a full ramdisk image, and should be flashed to the recovery_ramdisk partition.
This build is only tested with Honor View 10, but it should work with Mate 10 and Mate 10 Pro in theory since these devices are very similar.

Enough of the rambling, let's get right into it!

Instructions
If your device have TWRP support, just directly flash it via TWRP. For devices without TWRP yet (currently all Huawei Treble devices), you can follow the instructions below:

  1. Install latest Magisk Manager from the Official Thread
  2. Go to Settings > Update Settings > Update Channel > Custom, and insert the following URL: https://goo.gl/jefZKH
  3. Follow the instructions of "Install Via Magisk Manager" in the main thread, but instead of providing the boot image (which these devices do NOT have), provide the stock ramdisk.img.
    If you are using EU View 10 with model BKL-L09, you can download the stock ramdisk.img I extracted from official OTAs in the attachments
    If you have stock ramdisk images for other devices, please share them and I'll add them to the OP.
    Make sure you are installing Magisk-v15.4(1541), which is only available through the custom channel you've set in step 2.
  4. Pull the patched image with adb pull /sdcard/MagiskManager/patched_boot.img, and flash the patched ramdisk via fastboot:
    fastboot flash ramdisk patched_boot.img
  5. Reboot and you shall have a properly rooted device passing SafetyNet, start playing with some Magisk modules!
Donation
https://www.paypal.me/topjohnwu
Finally!! was waiting for this.... Thank You.

Sent from my BKL-L09 using Tapatalk
14th February 2018 02:35 AM 0 Thanks
v0ne Senior Member
Awesome mate. This also working with Huawei P10 plus running Treble V9. Thank you thank you
14th February 2018 02:43 AM 0 Thanks
CertifiedBlyndGuy Retired Forum Moderator / Inactive Recognized Developer
Nice! Great job
14th February 2018 02:52 AM 0 Thanks
eddie2020 Senior Member
We can do this follow instructions from completely stock bkl l09 C636? My 1st honor phone.. Not sure it have those locked boot loader like xiaomi or not..
14th February 2018 03:14 AM 0 Thanks
sanrockps Member
Hey man, Thanks a lot.. It's really nice to have magisk for v10.. I am kind of a noob.. Can u provide step by step instructions and Patched Img for Indian version BKL-09..

Thanks
14th February 2018 03:20 AM 0 Thanks
bhargavpa Junior Member
does this require an unlocked bootloader?
14th February 2018 03:45 AM 0 Thanks
Rj_Param Member
I have done all the steps but on the last stage when I try to flash ramdisk it's giving me an error failed (remote: command not allowed) please help...thanks
14th February 2018 03:58 AM 1 Thanks
bhargavpa Junior Member
Quote:
Originally Posted by Rj_Param

I have done all the steps but on the last stage when I try to flash ramdisk it's giving me an error failed (remote: command not allowed) please help...thanks

This could be due to locked bootloader...
14th February 2018 04:00 AM 0 Thanks
Rj_Param Member
Quote:
Originally Posted by bhargavpa

This could be due to locked bootloader...

Thanks... Let me try again after unlocking bootloader.

Sent from my BKL-L09 using Tapatalk
close
Advanced Search
close