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

Complete Guide to Root/Unroot Huawei Mediapad M5 Lite ( All Editions ).

Search This thread
S

sadiqkarur

Guest
Rooting Huawei Mediapad M5 Lite ( All Editions ).

Requirements:
1. Unlocked Huawei Mediapad M5 lite ( All Editions ).
2. Minimal ADB Tools.
3. Magisk Manager latest from magisk manager website.
4. Huawei Firmware Finder ( Download from Playstore ).
4. Original Firmware Update.zip of current device you are running (Check in your device from Huawei Firmware Finder app).
5. Zarchiver ( Download from Playstore ).
6. Ramdisk.img file ( Extracted from Update.zip ).

Procedure:
1. Download Zarchiver app in playstore and download the current stock rom update.zip ( check your version in update settings) and open the update.zip file in Zarchiver app in your tab and extract the RAMDISK.img to any folder in your tablet.
2. Open Magisk Manager app in you tab and click on 1st "install" option then "select and patch a file" then browse your RAMDISK.img you copied to your internal memory. It will patch the RAMDISK.img and store it in downloads folder in your tab.
3. Download the minimal ADB tools from any website and install them your pc.
4. Copy the patched-ramdisk.img file to adb folder in PC and open the command prompt from the adb folder .
2. Enable USB debugging setting in the tablet and connect the tablet to the pc. After connecting open command prompt in the adb folder you have installed and type
Code:
 adb devices
. You must see a device in the output. ( If not properly enable your usb debugging settings).
3. After that type
Code:
adb reboot bootloader
. Your device will boot into the fastboot mode and you will see BOOTLOADER UNLOCKED on the tab screen.
4. Now type
Code:
fastboot flash ramdisk patched-ramdisk.img
( patched-ramdisk file name may differ).
5. Your device is Successfully Rooted.
 
Last edited:

lapora

Senior Member
Mar 12, 2019
75
10
i sold it and bought a samsung galaxy tab s5e no more huawei **** i spend hours to make the twrp and magisk to work with out errors but at least i didn't pay a third party unlock service because huawei decided to lock everything.
 
S

sadiqkarur

Guest
i sold it and bought a samsung galaxy tab s5e no more huawei **** i spend hours to make the twrp and magisk to work with out errors but at least i didn't pay a third party unlock service because huawei decided to lock everything.
You tried to make twrp? Magisk works man.
 

P4p3r1n0

Senior Member
Nov 5, 2009
115
5
Wien
From the M5 guide:

"Download the full stock rom (update.zip) from the site I linked in the credits. Extract UPDATE.APP file from the zip. Then use HuaweiUpdateExtractor to extract ramdisk.img specific to your device"

I might be dumb AF but these guides are incomplete :/
Can anybody please share the Profiles.xml containing the images for the M5 Lite?

So far I used the Firmware Finder for downloading the latest rom which contains the UPDATE.APP and also downloaded the HuaweiUpdateExtractor but without the right profile it won't open file.

EDIT: currently following the main guide about extracting the ramdisk image: https://www.theandroidsoul.com/extract-huawei-firmware-update-app/

EDIT-2: guide (the one of my link above, not the guide of this thread) followed and finally rooted! Man, what a journey.
https://topjohnwu.github.io/Magisk/install.html
 
Last edited:
  • Like
Reactions: Balamku

drumiec

Senior Member
Oct 25, 2010
76
39
Rooting Huawei Mediapad M5 Lite ( All Editions )

Requirements on drumiec edition:
1. Unlocked Huawei Mediapad M5 lite.
2. Minimal ADB Tools [also added to post]
3. WinRar or other extraction tool
4. Magisk Manager apk file from original XDA topic.
5. Huawei Update Extractor [UPDATED: v0.9.9.5] [also added to post]
6. Original Firmware update.zip of current device you are running from https://pro-teammt.ru/en/online-firmware-database/
I used website that actually belong to Huawei Firmware Finder aplication TeamMT, so will give you same result with searching database (look at screen1.jpg - attached to post)
When you will find your firmware version click on filelist and pick the first link, usually is the largest file from all 3 links (like 1.8GB for example).
7. Download update.zip and extract UPDATE.APP from inside using WinRAR or so.
8. Open Huawei Update Extractor and open with it UPDATE.APP file by clicking [...] button.
Important: If program will not let you open the file because of some CRC errors, go on settings tab and uncheck Verify Header Checksum.
For me was not possible to open UPDATE.APP without previous step.
9. Find RAMDISK.img file on the list and extract it.
10. Copy RAMDISK.img file to tablet at any place.
11. Install Magisk Manager apk on tablet.
12. Follow the original guide.
Notice: Magisk will show you output location of your patched ramdisk file right after it finish processing it.

Latest update.zip for Huawei Mediapad M5 Lite 10.1 linked here:
FW version: BAH2-W19 8.0.0.230 C431 update.zip download
 

Attachments

  • HuaweiUpdateExtractor_0.9.9.5.zip
    1.3 MB · Views: 68
  • minimal_adb_fastboot_v1.4.3_setup.zip
    1,003.6 KB · Views: 47
  • screen1.jpg
    screen1.jpg
    112 KB · Views: 337
Last edited:
  • Like
Reactions: froulis94035

P4p3r1n0

Senior Member
Nov 5, 2009
115
5
Wien
10. Copy RAMDISK.img file to tablet at any place.

use
Code:
adb pull
and
Code:
adb push
to achieve the transfers as people noticed that using MTP can corrupt the file:

Code:
1. adb push /path/to/RAMDISK.IMG /sdcard
2. Patch the file using Magisk.
3. adb pull /sdcard/Download/magisk_patched.img ./

And then flash it through fastboot.
 
Last edited:

divineazn716

Senior Member
Mar 11, 2010
417
89
SAVANNAH, GA
Hey Bossman, im stuck at the very end. I copied the patched magisk img to my pc folder where the adb is and when i type the fastboot flash ramdisk ****** it says
"error: cannot load 'patched-ramdisk.img': No such file or directory"
I dont know what im doing wrong?
the adb debugging on and im at the bootloader screen and my stuff is unlocked.
please help me, im not sure where im going wrong, the directions are so simple.

edit* nvm i fixed it
i had to do that adb pull and it worked from there. thank you again so much. i dont know what im going to do with this huawei device but online it said it was a good tablet to have so maybe more will come with this. if not, i can always use it as a security monitor? lol thanks again, have a great night!


Rooting Huawei Mediapad M5 Lite ( All Editions ).

Requirements:
1. Unlocked Huawei Mediapad M5 lite ( All Editions ).
2. Minimal ADB Tools.
3. Magisk Manager latest from magisk manager website.
4. Huawei Firmware Finder ( Download from Playstore ).
4. Original Firmware Update.zip of current device you are running (Check in your device from Huawei Firmware Finder app).
5. Zarchiver ( Download from Playstore ).
6. Ramdisk.img file ( Extracted from Update.zip ).

Procedure:
1. Download Zarchiver app in playstore and download the current stock rom update.zip ( check your version in update settings) and open the update.zip file in Zarchiver app in your tab and extract the RAMDISK.img to any folder in your tablet.
2. Open Magisk Manager app in you tab and click on 1st "install" option then "select and patch a file" then browse your RAMDISK.img you copied to your internal memory. It will patch the RAMDISK.img and store it in downloads folder in your tab.
3. Download the minimal ADB tools from any website and install them your pc.
4. Copy the patched-ramdisk.img file to adb folder in PC and open the command prompt from the adb folder .
2. Enable USB debugging setting in the tablet and connect the tablet to the pc. After connecting open command prompt in the adb folder you have installed and type
Code:
 adb devices
. You must see a device in the output. ( If not properly enable your usb debugging settings).
3. After that type
Code:
adb reboot bootloader
. Your device will boot into the fastboot mode and you will see BOOTLOADER UNLOCKED on the tab screen.
4. Now type
Code:
fastboot flash ramdisk patched-ramdisk.img
( patched-ramdisk file name may differ).
5. Your device is Successfully Rooted.
 
Last edited:

mad0701

Senior Member
Nov 4, 2015
229
19
Same issue here.
The solution is written on the Magisk Homepage:
Don't extract the file with Zarchive.
Download the file update. Zip from the Tablet to the PC (with the Huawei Tool) and unzip the file one time with 7zip.
Use the tool Huawei Firmware extracter. Disable in the settings the checksumme check and extract the Ramdisk.img. Copy the file back to the Tablet and let it patch from Magisk. Copy the patched file back to the PC, boot the Tablet into Fastboot (via adb reboot bootloader) and flash the Ram disk.img.
Remember to active at every reboot the USB Debugging in the Dev settings. It's disabled automatically.
 

tbozo

New member
Jul 27, 2007
4
4
With the updates I lost my root access which I was using for multi user on my M5 lite Wifi
So I had to do the whole process again.

Here is the patched file for the version : BAH2-W19 8.0.0.278 (OCEC431)
so if you have the same version you can skip some steps and flash it.
firmware : BAH2-W19OCEC431B278
https://www.mediafire.com/file/mizbqmyztiuyj13/magisk_patched.img/file

You 'll have to re-edit the file to enable the multiuser (if you already did it previously the users will still have their config)
check there https://forum.xda-developers.com/p8...-root-add-multi-user-support-disable-t3602872

Rooting Huawei Mediapad M5 Lite ( All Editions )

Requirements on drumiec edition:
1. Unlocked Huawei Mediapad M5 lite.
2. Minimal ADB Tools [also added to post]
3. WinRar or other extraction tool
4. Magisk Manager apk file from original XDA topic.
5. Huawei Update Extractor [UPDATED: v0.9.9.5] [also added to post]
6. Original Firmware update.zip of current device you are running from https://pro-teammt.ru/en/online-firmware-database/
I used website that actually belong to Huawei Firmware Finder aplication TeamMT, so will give you same result with searching database (look at screen1.jpg - attached to post)
When you will find your firmware version click on filelist and pick the first link, usually is the largest file from all 3 links (like 1.8GB for example).
7. Download update.zip and extract UPDATE.APP from inside using WinRAR or so.
8. Open Huawei Update Extractor and open with it UPDATE.APP file by clicking [...] button.
Important: If program will not let you open the file because of some CRC errors, go on settings tab and uncheck Verify Header Checksum.
For me was not possible to open UPDATE.APP without previous step.
9. Find RAMDISK.img file on the list and extract it.
10. Copy RAMDISK.img file to tablet at any place.
11. Install Magisk Manager apk on tablet.
12. Follow the original guide.
Notice: Magisk will show you output location of your patched ramdisk file right after it finish processing it.

Latest update.zip for Huawei Mediapad M5 Lite 10.1 linked here:
FW version: BAH2-W19 8.0.0.230 C431 update.zip download
 

froulis94035

Member
Dec 28, 2015
47
6
MUC
With the updates I lost my root access which I was using for multi user on my M5 lite Wifi
So I had to do the whole process again.

Here is the patched file for the version : BAH2-W19 8.0.0.278 (OCEC431)
so if you have the same version you can skip some steps and flash it.
firmware : BAH2-W19OCEC431B278
https://www.mediafire.com/file/mizbqmyztiuyj13/magisk_patched.img/file

You 'll have to re-edit the file to enable the multiuser (if you already did it previously the users will still have their config)
check there https://forum.xda-developers.com/p8...-root-add-multi-user-support-disable-t3602872

So with this file, the process from the OP is shortened to:

1. Type
Code:
adb reboot bootloader
. Your device will boot into the fastboot mode and you will see BOOTLOADER UNLOCKED on the tab screen.
2. Now type
Code:
fastboot flash ramdisk magisk_patched.img
(above file for BAH2-W19 8.0.0.278 (OCEC431)).
3. Your device is Successfully Rooted.

Is this right?
edit: to answer my own question: yes :)

Also, do we need to do this after every OTA update? (not that I expect so many in the future...)
 
Last edited:

Balamku

Member
Apr 17, 2020
8
1
Keine ramdisk Partition mehr

Hi,

since the last update BAH2-L09OCEC432B278 a ramsisk partition is no longer available.
I followed the modified guide with 7-zip and downloading the update.app on my PC and then pushing it onto the tablet with
C:\Program Files (x86)\Minimal ADB and Fastboot>adb push c:/RECOVERY_RAMDIS.img /storage/emulated/0/Download
I created the magisk_patched.img and used the pull adb command to get it back onto my PC.
I followed the steps in the guide with fastboot, but the very last command fails.
The tablet says both are unlocked, on the Magisk Website there is a short section on "Magisk in Recovery", but pushing the Power on and Volume up does not give my a Magisk option.
Update: I followed the Patching guide, but this fails with the following message:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery magisk_patched.img
target reported max download size of 471859200 bytes
sending 'recovery' (26386 KB)...
OKAY [ 0.826s]
writing 'recovery'...
FAILED (remote: partition length get error)
finished. total time: 0.842s
 
Last edited:

Poldenais

New member
May 13, 2020
3
1
Hi,
I have the Huawei MediaPad M5 lite 10 but the Build Number for me is 'BAH2-W19 8.0.0.278 (OCEC432)'
and I can't seem to find the update file for it to follow the steps above?

Any help would be appreciated on what steps I need to do.

Thanks, :good:
 

Poldenais

New member
May 13, 2020
3
1
Your Build number translates to the same firmware as mine: BAH2-L09OCEC432B278
This is a great explanation:
Download the file from MT Team and extract is with 7Zip:
Hope this helps.
PS: Could you let me know if you are able to flash your phone since it is the same build?
THX!

Thanks for the link. reading the explanation then, mines would be BAH2-W19OCEC432B278. Thanks for that

---------- Post added at 03:51 PM ---------- Previous post was at 03:10 PM ----------

Your Build number translates to the same firmware as mine: BAH2-L09OCEC432B278
This is a great explanation:
Download the file from MT Team and extract is with 7Zip
Hope this helps.
PS: Could you let me know if you are able to flash your phone since it is the same build?
THX!

Huawei Update Extractor: it mentions this in there but I have a MacBook and there doesn't seem to be a version for this.

Am I missing something?
 
Last edited:

Balamku

Member
Apr 17, 2020
8
1
Hmm, I have Linux and had to dual boot into Windows, because of several tools - this one included - wanting Windows. There is an emulator / VM available for Windows on Mac, but might be a bit over the top...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    S
    sadiqkarur
    Rooting Huawei Mediapad M5 Lite ( All Editions ).

    Requirements:
    1. Unlocked Huawei Mediapad M5 lite ( All Editions ).
    2. Minimal ADB Tools.
    3. Magisk Manager latest from magisk manager website.
    4. Huawei Firmware Finder ( Download from Playstore ).
    4. Original Firmware Update.zip of current device you are running (Check in your device from Huawei Firmware Finder app).
    5. Zarchiver ( Download from Playstore ).
    6. Ramdisk.img file ( Extracted from Update.zip ).

    Procedure:
    1. Download Zarchiver app in playstore and download the current stock rom update.zip ( check your version in update settings) and open the update.zip file in Zarchiver app in your tab and extract the RAMDISK.img to any folder in your tablet.
    2. Open Magisk Manager app in you tab and click on 1st "install" option then "select and patch a file" then browse your RAMDISK.img you copied to your internal memory. It will patch the RAMDISK.img and store it in downloads folder in your tab.
    3. Download the minimal ADB tools from any website and install them your pc.
    4. Copy the patched-ramdisk.img file to adb folder in PC and open the command prompt from the adb folder .
    2. Enable USB debugging setting in the tablet and connect the tablet to the pc. After connecting open command prompt in the adb folder you have installed and type
    Code:
     adb devices
    . You must see a device in the output. ( If not properly enable your usb debugging settings).
    3. After that type
    Code:
    adb reboot bootloader
    . Your device will boot into the fastboot mode and you will see BOOTLOADER UNLOCKED on the tab screen.
    4. Now type
    Code:
    fastboot flash ramdisk patched-ramdisk.img
    ( patched-ramdisk file name may differ).
    5. Your device is Successfully Rooted.
    2
    Unfortunately it seems that we need to do it after each OTA update.
    That's a shame to ease the process.

    Here is the patched file for the version : BAH2-W19 8.0.0.279 (OCEC431)
    so if you have the same version you can skip some steps and flash it. directly as discribed
    firmware : BAH2-W19OCEC431B279
    https://www.mediafire.com/file/s8w48fdymdta6e3/magisk_patched.img/file

    Unfortunately it seems that there is not a lot of people on this device :( for the price and with root (mainly for multiuser for me) it's a really good tab.

    So with this file, the process from the OP is shortened to:

    1. Type
    Code:
    adb reboot bootloader
    . Your device will boot into the fastboot mode and you will see BOOTLOADER UNLOCKED on the tab screen.
    2. Now type
    Code:
    fastboot flash ramdisk magisk_patched.img
    (above file for BAH2-W19 8.0.0.278 (OCEC431)).
    3. Your device is Successfully Rooted.

    Is this right?
    edit: to answer my own question: yes :)

    Also, do we need to do this after every OTA update? (not that I expect so many in the future...)
    2
    10. Copy RAMDISK.img file to tablet at any place.

    use
    Code:
    adb pull
    and
    Code:
    adb push
    to achieve the transfers as people noticed that using MTP can corrupt the file:

    Code:
    1. adb push /path/to/RAMDISK.IMG /sdcard
    2. Patch the file using Magisk.
    3. adb pull /sdcard/Download/magisk_patched.img ./

    And then flash it through fastboot.
    2
    With the updates I lost my root access which I was using for multi user on my M5 lite Wifi
    So I had to do the whole process again.

    Here is the patched file for the version : BAH2-W19 8.0.0.278 (OCEC431)
    so if you have the same version you can skip some steps and flash it.
    firmware : BAH2-W19OCEC431B278
    https://www.mediafire.com/file/mizbqmyztiuyj13/magisk_patched.img/file

    You 'll have to re-edit the file to enable the multiuser (if you already did it previously the users will still have their config)
    check there https://forum.xda-developers.com/p8...-root-add-multi-user-support-disable-t3602872

    Rooting Huawei Mediapad M5 Lite ( All Editions )

    Requirements on drumiec edition:
    1. Unlocked Huawei Mediapad M5 lite.
    2. Minimal ADB Tools [also added to post]
    3. WinRar or other extraction tool
    4. Magisk Manager apk file from original XDA topic.
    5. Huawei Update Extractor [UPDATED: v0.9.9.5] [also added to post]
    6. Original Firmware update.zip of current device you are running from https://pro-teammt.ru/en/online-firmware-database/
    I used website that actually belong to Huawei Firmware Finder aplication TeamMT, so will give you same result with searching database (look at screen1.jpg - attached to post)
    When you will find your firmware version click on filelist and pick the first link, usually is the largest file from all 3 links (like 1.8GB for example).
    7. Download update.zip and extract UPDATE.APP from inside using WinRAR or so.
    8. Open Huawei Update Extractor and open with it UPDATE.APP file by clicking [...] button.
    Important: If program will not let you open the file because of some CRC errors, go on settings tab and uncheck Verify Header Checksum.
    For me was not possible to open UPDATE.APP without previous step.
    9. Find RAMDISK.img file on the list and extract it.
    10. Copy RAMDISK.img file to tablet at any place.
    11. Install Magisk Manager apk on tablet.
    12. Follow the original guide.
    Notice: Magisk will show you output location of your patched ramdisk file right after it finish processing it.

    Latest update.zip for Huawei Mediapad M5 Lite 10.1 linked here:
    FW version: BAH2-W19 8.0.0.230 C431 update.zip download
    1
    You need unlocked bootloader for this