[Huawei MediaPad M5  Guides, News, & Discussion] Orekaria:
Intro:

- As usual, following this guide is by your own risk and responsability

- After hours searching the web I have painfully seen how the scene seems to be so spread and freak these days. Plus there are lots of scams and **** webs floating everywhere, more even than space debris.

- I have not found any good guide to root the Huawei Mediapad M5 Pro. Most of them are old + bad.

- My model is CMR-AL19, C432 with EMUI 9.1

Instructions:

1. unlock bootloader

1.1. Check PotatoNV wiki to get the unlock bootloader code:

Download PotatoNV (or download from the link below)

Install HUAWEI USB COM drivers: (download from the link below, or this link)

Install ADB (from google or also download from the link below)

1.2 Remove the cover from the device: heat it with a hairdryer and carefully peel cover around the perimeter using a plastic card (video)

Turn off the device and unplug the USB cable

Short test point and iron shield on the motherboard

Connect the device to the computer, after a couple of seconds jumper can be removed

Make sure there’s nothing on the device’s screen if a charging animation appears go to step 4

1.3 Launch PotatoNV and select HUAWEI USB COM 1.0 in the device list (should be filled automatically)

Select bootloader: kirin 960

Unlock code - this is the future bootloader code. copy and keep it for later.

Press the Start button. Let PotatoNV to finish

1.2. unlock bootloader with fastboot

adb devices
adb reboot bootloader

wait until the tablet reboots in recovery mode

fastboot devices
fastboot oem unlock <unlock code from PotatoNV>

2. flash treble ROM (https://github.com/phhusson/treble_experimentations/wiki/Huawei-MediaPad-M5-Pro)

2.1. download treble ROM:

Android 10: https://github.com/phhusson/treble_...nload/v222/system-quack-arm64-ab-gapps.img.xz

Android 9: https://github.com/phhusson/treble_...download/v123/system-arm64-ab-gapps-su.img.xz

2.2 factory reset

Perform a factory reset on your device: Settings -> System -> Reset -> Reset tablet

Optionally: Reboot to your device’s stock recovery using either a button combination when booting or issuing the following ADB command when booted in Android:

adb reboot recovery

Once here, use the volume keys to navigate and the power button to select the factory reset option.

2.3 Flash ROM

Once your device has been factory reset, reboot to your device’s bootloader using either a button combination when booting or issuing the following ADB command when booted in Android:

adb reboot bootloader

With your device connected to your PC, open up a command prompt or terminal window in the same directory where you downloaded your GSI of choice.

fastboot devices
fastboot erase system

Enter a command in the following format:

fastboot --unbuffered flash system system-quack-arm64-ab-gapps.img

Allow the image to flash, will take 2 minutes. Once it has completed, reboot your device either manually via power key or by entering:

fastboot reboot

3. skip all configuration. ignore any error. reboot in recovery mode

adb reboot recovery

4. wipe cache and, again, factory reset. Configure as usual. Be sure to add the SIM when asked.

enjoy