• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] MY HUAWEI MEDIAPAD M5 SUCCESS STORY - Unlock, Root, TWRP, ROMs, µg (microG)

Search This thread

TiTiB

Senior Member
Jun 19, 2015
890
666
Earth, for now
This guide is for folks who want to turn their stock Mediapad M5 SHT-W09 (C567) in to a rooted, ROM-flashing-friendly device. All credit goes to those listed below, without whom I would have not had a clue how to proceed. The real purpose if this post is to, essentially, get all the steps in to one, comprehensive, guide for all those folks who were unfortunate enough to have purchased their BOOT-LOCKED, ENCRYPTED, FUNKY-AS-HELL Huawei device.

This is my first (and last) Huawei device because of those things. My previous (and any future) devices will not have a locked bootloader, or will at least be easily unlocked. Lesson learned—do your research before spending your money. That being said, let's proceed.

CREDITS
@stinger4321 For link to online bootloader unlock service.
@Apo11on For rooting guide.
@Zackptg5 For DM-Verity, ForceEncrypt, Disk Quota Disabler.
@schwabe93 For TWRP & ROM [LOS 15.1 Unofficial]
@Setialpha and the NanoDroid team for µg (microG) via NanoDroid.
@TiTiB [me] For debloating guide.

In order to keep this guide as brief as possible, I am not going to mention any alternative, nor unsuccessful methods—only those that worked FOR ME. Do some "re/searching" and you may find something that works best FOR YOU.

UNLOCKING BOOTLOADER [GRRRRRR ] Thanks to @stinger4321
AFAIK as of this writing, 18 Dec 18, you will have to pay to unlock the bootloader. I used the online service found here:
https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275/page19
It took about 10 hours for me to get the code, so be patient.

ROOTING Thanks to @Apo11on
https://forum.xda-developers.com/mediapad-m5/how-to/root-root-guide-huawei-mediapad-m5-t3786157
It is a Magisk rooting solution, but once rooted you can change to another type, if you wish.

TWRP [3.2.2-1 Unofficial] Thanks to @schwabe93
https://forum.xda-developers.com/mediapad-m5/development/recovery-twrp-3-2-2-1-t3813825
Not everything is functional, but hey, you'll have TWRP.

ROM [LOS 15.1 Unofficial] Thanks to @schwabe93
https://forum.xda-developers.com/mediapad-m5/development/rom-lineageos-15-1-t3813826

DM-Verity, ForceEncrypt, Disk Quota Disabler @Zackptg5
https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Read the instructions, and pay attention to the order of the steps, "This zip should be flashed after anything that modifies your boot img"
Easily the most stable ROM I've ever used! And I've used, probably, 70 or 80 over the years.

µg (microG) via NanoDroid Thanks to @Setialpha and the NanoDroid team
https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
LOS 15.1 [Unofficial] does not, thankfully, include GAPPS. µg (microG) is "A free-as-in-freedom re-implementation of Google’s proprietary Android user space apps and libraries." that allows for most functionality that would otherwise require Google's crap.

GSI PROJECT TREBLE ROMS Thanks to @mishaal Rahman, Editor-in-chief on the XDA-Developers Portal for the "How to flash a Generic System Image (GSI) on Project Treble supported devices" guide.
https://www.xda-developers.com/flash-generic-system-image-project-treble-device/
I played around with four different GSI ROMs, but came back to LOS. I highly recommend trying them out tho because in my experience, using the adb method [link and commands below], I never lost any apps/data/settings—everything was still there, just with a new ROM to play with.

ADB COMMANDS [assuming already installed/authorized/plugged in, etc.]
adb fastboot bootloader >>>BE SURE THAT "PHONE" & "FRP" BOTH SHOW "UNLOCKED" BEFORE PROCEEDING<<<
fastboot erase system
fastboot -u flash system [name of system image you downloaded]
fastboot reboot

Disconnect device and play with new ROM.

>> DEBLOAT <<
This device is not a phone. I don't do any phone-like things with it. My debloat list is not for everyone—I'm very aggressive in my approach. Use your favorite search engine to find "bloatware safe to remove", and proceed with your own brain. You now have a rooted device with TWRP so why not do a backup and have fun debloating? That's how I figured out what to, and most importantly, what *not* to delete. BTW, I have used logcat readers to analyze the errors caused by my aggressive deleting of system assets, and am okay with the few errors that are caused—mostly the device trying to do "phone things" and not finding the required assets.

My method is to delete files/FOLDERS of those things I don't want—you have a rooted device, why use a "system app uninstaller" that might not fully do the job? The folders in which I do my deleting are, in order, /data/data, /system/app, /system/priv-app, immediately followed by a reboot, without which all bad things are possible.

I use the awesome MiXplorer (available for free, here on xda) for many functions—including root exploring/deleting, so I get rid of the ROM's included:
html viewer, gallery app, PDF viewer, text viewer/editor, et. al.

Below items are from LOS 15.1 [UNOFFICIAL]

⫸ /DATA/DATA
"Tele" "phone" "call" "cell" anything, blockednumber, dialer, carrier, stk, ctsshim, egg, mms, gallery3d, live wallpaper picker, and live wallpapers (noisefield, music vis, et. al.), dreams

⫸ /SYSTEM/APP
WAPPushManager, Stk, messaging, LiveWallpapersPicker, EasterEgg, CtsShimPrebuilt, CarrierDefaultApp, BasicDreams

⫸ /SYSTEM/PRIV-APP
"Tele" everything, WeatherProvider, MmsService, ManagedProvisioning, Gallery2, EmergencyInfo, Dialer, CtsShimPrivPrebuilt, CellBroadcastReceiver, CallLogBackup, CarrierConfig

I may have missed a few, and every ROM is different, so you may find more things to debloat.

If you found this guide to be useful, please hit the "Thanks" button ?
 
Last edited:

pazzu

Member
Mar 26, 2006
28
12
I am going to document my experience with unlocking, rooting and custom rom'ing my device.

I have an SHT-AL09, MediaPad M5 LTE. Country code is C00 (China). I don't know why my experience is quite different from @TiTiB; it could be the fact that mine is LTE device. But the fact is Huawei has MediaPad M5 8.4" (WiFi or LTE), MediaPad M5 10.8" (WiFi or LTE), MediaPad M5 Pro. That's at least 5 variants, and I suspect the ROM'ing procedure won't be the same.

Going back to stock
Firstly, I found myself bricking the device a couple times. But the eRecovery feature saves the day. As soon as you unlock the bootloader, the boot screen would tell you that the device is not safe, and you can run eRecovery to reset it (pressing volume Up for 3 seconds). That feature can connect to WiFi outside of Android, download the ROM specific to your device, and reset the whole thing. I had to do it twice, and I think it took about 45 minutes. It works flawlessly, and everything is reset (except the bootloader still stays unlocked.) So, I would say, don't be concerned about bricking it. Unless you plan to replace the bootloader, then I can't advise you.

Important key combo
As you install TWRP and ROM, you will need these key combination handy.
• Reboot - hold down the power button.
• Fastboot - As soon as it boots, and just before the mediapad screen, hold the volume down button WITH the USB cable connected.
• Recovery - Hold down the power button and volume up WITHOUT the USB cable connected.
Credit to @pyarle on https://forum.xda-developers.com/showpost.php?p=77238982&postcount=31

Choice of TWRP
This is important to know. I found two TWRP's advertised for MediaPad M5.
• From @schwabe93 https://forum.xda-developers.com/mediapad-m5/development/recovery-twrp-3-2-2-1-t3813825
• From @Pretoriano80 https://forum.xda-developers.com/honor-view-10/development/recovery-twrp-3-2-1-0-t3769917
The first one can boot even if the data is encrypted. But it cannot decrypt data, nor can it flash any LineageOS ROM (even the one posted by @schwabe93 here https://forum.xda-developers.com/mediapad-m5/development/rom-lineageos-15-1-t3813826 )
The second one cannot boot if the data is encrypted. But, it can boot just fine if the data is unencrypted, and it could flash the LineageOS image from https://openkirin.net/
You can switch between them; it's a matter of flashing the right image in fastboot. Sadly, not one TWRP can rule it all, but that's the way it is today.

My success story
Here goes how I got LineageOS on my MediaPad M5 LTE
Download ROM and zip file
• This is the ROM I used. https://openkirin.net/builds/openkirin_los_beta5.img.xz
• Unzip it, then copy it to the external SD card.
• For DM-Verity, ForceEncrypt, Disk Quota Disabler @Zackptg5 See https://forum.xda-developers.com/and...crypt-t3817389
• Download the zip file, and copy it to the external SD card as well. You will need to decide whether to disable encryption or not. See the ROM section below. But if you decide to keep the data encrypted, rename the file to Disable_Dm-Verity_12.16.2018.zip before you copy it to the SD card.
Unlock the bootloader
https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275
• I ended up paying $22 to get an unlock code. https://global-unlocking-solutions.miiduu.com/bootloader-unlock-codes-choose-model-below
• If your device has not been updated to a new Huawei ROM, you might have luck with a $5 solution with dc-unlocker. Otherwise, don't bother with downgrading. I tried for days; I just couldn't get it to work.
Root
• This is straightforward. https://forum.xda-developers.com/mediapad-m5/how-to/root-root-guide-huawei-mediapad-m5-t3786157
TWRP
• Install this first. @schwabe93 https://forum.xda-developers.com/mediapad-m5/development/recovery-twrp-3-2-2-1-t3813825
• Don't forget, after the fastboot flash command and fastboot reboot, you have to boot to recovery right away. Otherwise the stock ROM might remove TWRP. Don't forget your key combo.
• Boot to recovery. Do a normal wipe (aka. Data, Cache, and Dalvik). (It won't be able to wipe /Cache.) Then do a "Format Data".
• Boot to Bootloader, and flash the second TWRP @Pretoriano80 https://forum.xda-developers.com/honor-view-10/development/recovery-twrp-3-2-1-0-t3769917
• With the data partition not encrypted, the second TWRP will boot. It can wipe /Cache.
Install ROM
• Hopefully, you have the LineageOS ROM from openkirin downloaded onto the SD card already.
• Still running @Pretoriano80 TWRP, flash the ROM. It already has google apps.
• You will be flashing the ROM as an IMAGE (to the "system" partition.)
• Here comes an important decision you have to make. Would you like to encrypt your data partition? If so, no TWRP can flash anything onto the device again, so you better figure out all the zip files you'd like to install.
• After you make your decision, rename the Disable_Dm-Verity_ForceEncrypt_12.16.2018.zip file if necessary, and flash it. (TWRP has a file manager for you to rename files).

Should I encrypt or not encrypt?
• This is a personal decision. If you keep it unencrypted, your life would be easier. You can stick with @Pretoriano80 TWRP and boot to it, and flash whatever zip files you'd like down the road.
• If you encrypt it, you will have to flash @schwabe93 TWRP next time you'd like to run TWRP. And all it could do is to format data, so that you can flash @Pretoriano80 TWRP again and flash. You would have to backup data with TitaniumBackup in Android, and restore it after the fact. You see the inconvenience?
• But, you know, if you lose your device, you would hate yourself for not encrypting your device.

Hope this helps anyone who has an SHT-AL09. The LineageOS rom runs really well, and I love the screen and sound.
 

TiTiB

Senior Member
Jun 19, 2015
890
666
Earth, for now
Thanks @pazzu, especially for:
"Going back to stock
Firstly, I found...I would say, don't be concerned...". This makes me feel even more adventurous.

And the stuff about TWRP. I have decrypted my device since my first attempt at using @Pretoriano80's TWRP, so I'm going to try it out again. Flashing .img files via TWRP is quicker and easier for me than doing it with PC and adb.

Good stuff, mate! Thanks

EDIT: Now running @Pretoriano80's TWRP! No success with Havoc GSI—won't boot. More researching...

Sent from my SHT-W09 using XDA Labs
 
Last edited:

pazzu

Member
Mar 26, 2006
28
12
@TiTiB The fact is you have an SHT-W09 and I have an SHT-A09, I don't know if there are differences when it comes to custom ROMs. I can share a failed story though; I installed Magisk-v18.zip by installing it in TWRP. That was an epic failure that I had to recover using eRecovery. Good luck!
 

thecdn

Senior Member
Apr 26, 2011
481
106
Xiaomi Mi 9
Samsung Galaxy S20
UNLOCKING BOOTLOADER [GRRRRRR ] Thanks to @stinger4321
AFAIK as of this writing, 18 Dec 18, you will have to pay to unlock the bootloader. I used the online service found here:
https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275/page19
It took about 10 hours for me to get the code, so be patient.

I got my M5 Monday and went to that site yesterday but it had no codes left for the wifi only version. Has that happened before? Does this mean they will never get any more? It will be very depressing if I can't get my shiny new M5 unlocked and rooted.
 

pazzu

Member
Mar 26, 2006
28
12
I got my M5 Monday and went to that site yesterday but it had no codes left for the wifi only version. Has that happened before? Does this mean they will never get any more? It will be very depressing if I can't get my shiny new M5 unlocked and rooted.

I encourage you to do your best to stop any firmware update from Huawei, and try the dc-unlocker service. It seems that as long as your tablet is not upgraded to a certain build, dc-unlocker service would work. See https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275
 

TiTiB

Senior Member
Jun 19, 2015
890
666
Earth, for now
I encourage you to do your best to stop any firmware update from Huawei, and try the dc-unlocker service. It seems that as long as your tablet is not upgraded to a certain build, dc-unlocker service would work. See https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275
What @pazzu says is very true—don't do any upgrades! Also, look around here on xda for unlocker services other than dc-unlocker & global-unlocking. I remember anecdotal stories about such-and-such service that "worked when others didn't", so don't give up hope.

Sent from my SHT-W09 using XDA Labs
 

thecdn

Senior Member
Apr 26, 2011
481
106
Xiaomi Mi 9
Samsung Galaxy S20
What @pazzu says is very true—don't do any upgrades! Also, look around here on xda for unlocker services other than dc-unlocker & global-unlocking. I remember anecdotal stories about such-and-such service that "worked when others didn't", so don't give up hope.

Yeah, the don't upgrade thing lasted about 5 minutes after I opened the box. I'm geeky about devices, upgrading it was as natural as breathing :D

Tried ministryofsolutions and they said no. Tomorrow I'll give dc-unlocker a go but I'm not optimistic. It's still a beautiful device, I guess I can live with it unlocked/unrooted.
 

qtotter

Senior Member
Mar 13, 2006
699
66
Tokyo
The latest firmware is not DC-unlocker compatible yet, but it's not the end of the world. There are other services who send you a bootloader unlock code although they are simply more pricey ($30-60).

As for TWRP, I recommend TWRP for P10 because it's compatible with MediaPad M5 and capable of handling encrypted data partition and ADB.
 

thecdn

Senior Member
Apr 26, 2011
481
106
Xiaomi Mi 9
Samsung Galaxy S20
I got my M5 Monday and went to that site yesterday but it had no codes left for the wifi only version. Has that happened before? Does this mean they will never get any more? It will be very depressing if I can't get my shiny new M5 unlocked and rooted.

Responding to my own post... :rolleyes:

I emailed the service unlock bootloader service in question tonight about ever getting more wifi unlocker codes and they replied, "Yes we will, We are currently testing the service"

So, that sounds hopeful.
 
  • Like
Reactions: orel

YELLOWDOG1051

Member
Aug 18, 2021
5
0
Hellow Pazzu. I am a chinese man .I am very interesting in rooting android and install AOSP on my devices. But I am studying in
junior school so I have not a very known for android , Linux and English. The transformer software is not reliable . I have some questions about your article.
Frist why were you install TWRP twice .Whats the problem with the log of TWRP,if I wont do this what will happened?

Second once in a while I was wipeing the data suddenly the power was off .Than I cant reboot my devices.But it can boot into fastboot.
Then I used ADB to write system.img recovery.img boot.img it still cant working .I had write that 3 imgs why cant working?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    This guide is for folks who want to turn their stock Mediapad M5 SHT-W09 (C567) in to a rooted, ROM-flashing-friendly device. All credit goes to those listed below, without whom I would have not had a clue how to proceed. The real purpose if this post is to, essentially, get all the steps in to one, comprehensive, guide for all those folks who were unfortunate enough to have purchased their BOOT-LOCKED, ENCRYPTED, FUNKY-AS-HELL Huawei device.

    This is my first (and last) Huawei device because of those things. My previous (and any future) devices will not have a locked bootloader, or will at least be easily unlocked. Lesson learned—do your research before spending your money. That being said, let's proceed.

    CREDITS
    @stinger4321 For link to online bootloader unlock service.
    @Apo11on For rooting guide.
    @Zackptg5 For DM-Verity, ForceEncrypt, Disk Quota Disabler.
    @schwabe93 For TWRP & ROM [LOS 15.1 Unofficial]
    @Setialpha and the NanoDroid team for µg (microG) via NanoDroid.
    @TiTiB [me] For debloating guide.

    In order to keep this guide as brief as possible, I am not going to mention any alternative, nor unsuccessful methods—only those that worked FOR ME. Do some "re/searching" and you may find something that works best FOR YOU.

    UNLOCKING BOOTLOADER [GRRRRRR ] Thanks to @stinger4321
    AFAIK as of this writing, 18 Dec 18, you will have to pay to unlock the bootloader. I used the online service found here:
    https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275/page19
    It took about 10 hours for me to get the code, so be patient.

    ROOTING Thanks to @Apo11on
    https://forum.xda-developers.com/mediapad-m5/how-to/root-root-guide-huawei-mediapad-m5-t3786157
    It is a Magisk rooting solution, but once rooted you can change to another type, if you wish.

    TWRP [3.2.2-1 Unofficial] Thanks to @schwabe93
    https://forum.xda-developers.com/mediapad-m5/development/recovery-twrp-3-2-2-1-t3813825
    Not everything is functional, but hey, you'll have TWRP.

    ROM [LOS 15.1 Unofficial] Thanks to @schwabe93
    https://forum.xda-developers.com/mediapad-m5/development/rom-lineageos-15-1-t3813826

    DM-Verity, ForceEncrypt, Disk Quota Disabler @Zackptg5
    https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
    Read the instructions, and pay attention to the order of the steps, "This zip should be flashed after anything that modifies your boot img"
    Easily the most stable ROM I've ever used! And I've used, probably, 70 or 80 over the years.

    µg (microG) via NanoDroid Thanks to @Setialpha and the NanoDroid team
    https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
    LOS 15.1 [Unofficial] does not, thankfully, include GAPPS. µg (microG) is "A free-as-in-freedom re-implementation of Google’s proprietary Android user space apps and libraries." that allows for most functionality that would otherwise require Google's crap.

    GSI PROJECT TREBLE ROMS Thanks to @mishaal Rahman, Editor-in-chief on the XDA-Developers Portal for the "How to flash a Generic System Image (GSI) on Project Treble supported devices" guide.
    https://www.xda-developers.com/flash-generic-system-image-project-treble-device/
    I played around with four different GSI ROMs, but came back to LOS. I highly recommend trying them out tho because in my experience, using the adb method [link and commands below], I never lost any apps/data/settings—everything was still there, just with a new ROM to play with.

    ADB COMMANDS [assuming already installed/authorized/plugged in, etc.]
    adb fastboot bootloader >>>BE SURE THAT "PHONE" & "FRP" BOTH SHOW "UNLOCKED" BEFORE PROCEEDING<<<
    fastboot erase system
    fastboot -u flash system [name of system image you downloaded]
    fastboot reboot

    Disconnect device and play with new ROM.

    >> DEBLOAT <<
    This device is not a phone. I don't do any phone-like things with it. My debloat list is not for everyone—I'm very aggressive in my approach. Use your favorite search engine to find "bloatware safe to remove", and proceed with your own brain. You now have a rooted device with TWRP so why not do a backup and have fun debloating? That's how I figured out what to, and most importantly, what *not* to delete. BTW, I have used logcat readers to analyze the errors caused by my aggressive deleting of system assets, and am okay with the few errors that are caused—mostly the device trying to do "phone things" and not finding the required assets.

    My method is to delete files/FOLDERS of those things I don't want—you have a rooted device, why use a "system app uninstaller" that might not fully do the job? The folders in which I do my deleting are, in order, /data/data, /system/app, /system/priv-app, immediately followed by a reboot, without which all bad things are possible.

    I use the awesome MiXplorer (available for free, here on xda) for many functions—including root exploring/deleting, so I get rid of the ROM's included:
    html viewer, gallery app, PDF viewer, text viewer/editor, et. al.

    Below items are from LOS 15.1 [UNOFFICIAL]

    ⫸ /DATA/DATA
    "Tele" "phone" "call" "cell" anything, blockednumber, dialer, carrier, stk, ctsshim, egg, mms, gallery3d, live wallpaper picker, and live wallpapers (noisefield, music vis, et. al.), dreams

    ⫸ /SYSTEM/APP
    WAPPushManager, Stk, messaging, LiveWallpapersPicker, EasterEgg, CtsShimPrebuilt, CarrierDefaultApp, BasicDreams

    ⫸ /SYSTEM/PRIV-APP
    "Tele" everything, WeatherProvider, MmsService, ManagedProvisioning, Gallery2, EmergencyInfo, Dialer, CtsShimPrivPrebuilt, CellBroadcastReceiver, CallLogBackup, CarrierConfig

    I may have missed a few, and every ROM is different, so you may find more things to debloat.

    If you found this guide to be useful, please hit the "Thanks" button ?
    5
    I am going to document my experience with unlocking, rooting and custom rom'ing my device.

    I have an SHT-AL09, MediaPad M5 LTE. Country code is C00 (China). I don't know why my experience is quite different from @TiTiB; it could be the fact that mine is LTE device. But the fact is Huawei has MediaPad M5 8.4" (WiFi or LTE), MediaPad M5 10.8" (WiFi or LTE), MediaPad M5 Pro. That's at least 5 variants, and I suspect the ROM'ing procedure won't be the same.

    Going back to stock
    Firstly, I found myself bricking the device a couple times. But the eRecovery feature saves the day. As soon as you unlock the bootloader, the boot screen would tell you that the device is not safe, and you can run eRecovery to reset it (pressing volume Up for 3 seconds). That feature can connect to WiFi outside of Android, download the ROM specific to your device, and reset the whole thing. I had to do it twice, and I think it took about 45 minutes. It works flawlessly, and everything is reset (except the bootloader still stays unlocked.) So, I would say, don't be concerned about bricking it. Unless you plan to replace the bootloader, then I can't advise you.

    Important key combo
    As you install TWRP and ROM, you will need these key combination handy.
    • Reboot - hold down the power button.
    • Fastboot - As soon as it boots, and just before the mediapad screen, hold the volume down button WITH the USB cable connected.
    • Recovery - Hold down the power button and volume up WITHOUT the USB cable connected.
    Credit to @pyarle on https://forum.xda-developers.com/showpost.php?p=77238982&postcount=31

    Choice of TWRP
    This is important to know. I found two TWRP's advertised for MediaPad M5.
    • From @schwabe93 https://forum.xda-developers.com/mediapad-m5/development/recovery-twrp-3-2-2-1-t3813825
    • From @Pretoriano80 https://forum.xda-developers.com/honor-view-10/development/recovery-twrp-3-2-1-0-t3769917
    The first one can boot even if the data is encrypted. But it cannot decrypt data, nor can it flash any LineageOS ROM (even the one posted by @schwabe93 here https://forum.xda-developers.com/mediapad-m5/development/rom-lineageos-15-1-t3813826 )
    The second one cannot boot if the data is encrypted. But, it can boot just fine if the data is unencrypted, and it could flash the LineageOS image from https://openkirin.net/
    You can switch between them; it's a matter of flashing the right image in fastboot. Sadly, not one TWRP can rule it all, but that's the way it is today.

    My success story
    Here goes how I got LineageOS on my MediaPad M5 LTE
    Download ROM and zip file
    • This is the ROM I used. https://openkirin.net/builds/openkirin_los_beta5.img.xz
    • Unzip it, then copy it to the external SD card.
    • For DM-Verity, ForceEncrypt, Disk Quota Disabler @Zackptg5 See https://forum.xda-developers.com/and...crypt-t3817389
    • Download the zip file, and copy it to the external SD card as well. You will need to decide whether to disable encryption or not. See the ROM section below. But if you decide to keep the data encrypted, rename the file to Disable_Dm-Verity_12.16.2018.zip before you copy it to the SD card.
    Unlock the bootloader
    https://forum.xda-developers.com/mediapad-m5/how-to/bootloader-unlock-guide-t3781275
    • I ended up paying $22 to get an unlock code. https://global-unlocking-solutions.miiduu.com/bootloader-unlock-codes-choose-model-below
    • If your device has not been updated to a new Huawei ROM, you might have luck with a $5 solution with dc-unlocker. Otherwise, don't bother with downgrading. I tried for days; I just couldn't get it to work.
    Root
    • This is straightforward. https://forum.xda-developers.com/mediapad-m5/how-to/root-root-guide-huawei-mediapad-m5-t3786157
    TWRP
    • Install this first. @schwabe93 https://forum.xda-developers.com/mediapad-m5/development/recovery-twrp-3-2-2-1-t3813825
    • Don't forget, after the fastboot flash command and fastboot reboot, you have to boot to recovery right away. Otherwise the stock ROM might remove TWRP. Don't forget your key combo.
    • Boot to recovery. Do a normal wipe (aka. Data, Cache, and Dalvik). (It won't be able to wipe /Cache.) Then do a "Format Data".
    • Boot to Bootloader, and flash the second TWRP @Pretoriano80 https://forum.xda-developers.com/honor-view-10/development/recovery-twrp-3-2-1-0-t3769917
    • With the data partition not encrypted, the second TWRP will boot. It can wipe /Cache.
    Install ROM
    • Hopefully, you have the LineageOS ROM from openkirin downloaded onto the SD card already.
    • Still running @Pretoriano80 TWRP, flash the ROM. It already has google apps.
    • You will be flashing the ROM as an IMAGE (to the "system" partition.)
    • Here comes an important decision you have to make. Would you like to encrypt your data partition? If so, no TWRP can flash anything onto the device again, so you better figure out all the zip files you'd like to install.
    • After you make your decision, rename the Disable_Dm-Verity_ForceEncrypt_12.16.2018.zip file if necessary, and flash it. (TWRP has a file manager for you to rename files).

    Should I encrypt or not encrypt?
    • This is a personal decision. If you keep it unencrypted, your life would be easier. You can stick with @Pretoriano80 TWRP and boot to it, and flash whatever zip files you'd like down the road.
    • If you encrypt it, you will have to flash @schwabe93 TWRP next time you'd like to run TWRP. And all it could do is to format data, so that you can flash @Pretoriano80 TWRP again and flash. You would have to backup data with TitaniumBackup in Android, and restore it after the fact. You see the inconvenience?
    • But, you know, if you lose your device, you would hate yourself for not encrypting your device.

    Hope this helps anyone who has an SHT-AL09. The LineageOS rom runs really well, and I love the screen and sound.
    1
    I got my M5 Monday and went to that site yesterday but it had no codes left for the wifi only version. Has that happened before? Does this mean they will never get any more? It will be very depressing if I can't get my shiny new M5 unlocked and rooted.

    Responding to my own post... :rolleyes:

    I emailed the service unlock bootloader service in question tonight about ever getting more wifi unlocker codes and they replied, "Yes we will, We are currently testing the service"

    So, that sounds hopeful.