[Huawei MediaPad M5  Guides, News, & Discussion] JamesBott:
Preliminaries

open bootloader

a little bit understand what you doing

flash nothing if you NOT have FULL-Update from your build !

inside Update.app is all partitions you need

My device and build : Huawei Mediapad M5 - CMR-AL09 8.0.0.161(C432) 10.8" LTE

Huawei Bootloader-Unlock Site is closed, only way for BL-unlock-code is dc-unlocker (cost = 4€)

- M5 run

- Menu / System / over the Device : tap 7x on "build" (activate developer-options)

- Menu / System / developer-options : OEM-unblocking = aktiv, USB-Debugging = aktiv

- USB-Wire M5 to PC

- on PC / web-browser go to dc-unlocker, download Client, start Client and follow instructions

- you need dc-unlocker account, save username and password on PC (for use in future)

- i am use paypal to pay "credits" for dc-unlocker

- if finished now you have BL-unlock-code (save on PC for use in future)

boot in bootloader

- fastboot flash oem unlock "your BL-unlock-code"

TWRP

i am use https://xdaforums.com/p10/development/recovery-twrp-3-2-1-0-emui-8-0-4-04-2018-t3773449

"twrp_p10_0.1 .img" : this work on my M5

IMPORTANT: /data decryption is only necessary if you have set up fingerprint and pin code.

boot in bootloader

- fastboot flash recovery_ramdisk twrp_p10_0.1 .img

if decryption work : TWRP need by start the PIN and then decrypt "data"

"Data successfully decrypted"

Root with Magisk

download https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Magisk.zip, copy to M5 (external_sd or intern/Download)

boot to recovery(TWRP)

- TWRP / Install Magisk.zip

- TWRP / Reboot "System"

if M5 run

start MagiskManager (if write update available then update)

check SafetyNet

check root with RootChecker or other root-app (example : TitaniumBackup)

NOW is M5 rooted

For your Security (and Self-Repair) is a good idea you have from your build "Full-Update"

https://xdaforums.com/tools/general/huawei-firmware-finder-team-mt-t3469146 [HFF]

search with HFF example : CMR-AL09 8.0.0.161(C432) = in HFF CMR-AL09C432B161

https://xdaforums.com/showthread.php?t=2433454 [HUE]

unzip Update.app from Update.zip

with HUE extract from Update.app

- ramdisk.img

- recovery_ramdis.img

- system.img

HUE do automatic for all *.img *.img.header

- this 6 files copy to your adb-folder

Now you can Self-Repair with

- fastboot flash ramdisk ramdisk.img

- fastboot flash recovery_ramdisk recovery_ramdis.img

- fastboot flash system system.img

and your M5 is reset to stock-rom.

If you NOT use TWRP you can install Magisk with "patched_boot.img" with self-create

- copy "ramdisk.img" to your M5/Download

- download MagiskManager-v5.x.x.apk and copy to your M5/Download

- install MagiskManager

- if MagiskManager run inside "install", "download Magisk-v16.0.zip ?" = yes, "modify boot.img" = yes

select in M5/Download your "ramdisk.img", Magisk modify this and save in your Pad/MagiskManager/patched_boot.img

- copy patched_boot.img to your PC/"your adb-folder"

- in Windows open Command (DOS-Prompt-Window)

- go to your adb-folder (example: cd C:\ADB)

- if Pad run : adb devices (answer: your ID adb), adb reboot bootloader

- fastboot devices (check if Pad is online?)

- fastboot flash ramdisk patched_boot.img

if Pad rebootet check Magisk. if work : done!

i think this work for all Huawei-OREO-build's

this Site updated 20180820