yashsingh1/xdaforums huggingface dataset:
[Huawei MediaPad M5  Guides, News, & Discussion] hellord01:
Hi, I have a Chinese SHT-AL09 (C00), but I want to flash global firmware. What's the version you own? If it's SHT-AL09(C432), could you share your oeminfo file please? You can use this command in adb shell: dd if=/dev/block/platform/hi_mci.0/by-name/oeminfo of=/sdcard/oeminfo.img . You may need install busybox first in play store if get errors, thanks!
[Huawei MediaPad M5  Guides, News, & Discussion] dkk6:
Yes, I can give this a try. Could you point me to the right instructions video?
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=8491361]dkk6[/MENTION] Unfortunately I cannot find the instructions ... I was sure I read somewhere how to provide the URL ... hopefully it's working automatically when activating the VPN.
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=8491361]dkk6[/MENTION] I found it: when you open the firmware finder and go to the menu there is an entry share firmware and there you can find also the instructions.
[Huawei MediaPad M5  Guides, News, & Discussion] thref23:
I think I have the same version as you. I haven't double checked in ADB. I could upload a ramdisk.img if you wanted....but I think it's the same ramdisk.img in the OP.

Also, if anyone is interested, when I lost root, it wasn't because I switched to Skia (although it happened shortly after). I simply needed to reboot the device. After I rebooted and switched back to Skia, SuperSU indicated that I had lost root again; but I was confused because I never read the OP carefully and didn't realize that Magisk was serving as my SU.
[Huawei MediaPad M5  Guides, News, & Discussion] hellord01:
Thanks. If you use the same img in the OP, you may have the same version as mine, and you can check in "Setting -> System -> About tablet -> Build number" .
[Huawei MediaPad M5  Guides, News, & Discussion] thref23:
Apparently, my build is C636. C636 = "Asia Pacific" according to Google.
[Huawei MediaPad M5  Guides, News, & Discussion] hellord01:
Hi, could you share your oeminfo? thanks a lot.
[Huawei MediaPad M5  Guides, News, & Discussion] thref23:
Retrieving it via file explorer was easier than adb.

http://www.filehosting.org/file/details/739796/oeminfo
[Huawei MediaPad M5  Guides, News, & Discussion] hellord01:
Thank you, but there are 5 bytes more than mine. your size is 67108869 bytes, and mine is 67108864 bytes, and 64*1024*1024 = 67108864. :confused::confused::confused:
[Huawei MediaPad M5  Guides, News, & Discussion] dkk6:
I couldn't do it with that program, but a colleague do the job using WireShark. So here is the URL: http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1971/g1719/v132240/f1/full/update.zip

That's the requests going around while downloading. We managed to download the file, following the URL. So hopefully you can do the rest of the magic.

GET /TDS/data/files/p3/s15/G1971/g1719/v132240/f1/full/update.zip HTTP/1.1

Host: update.hicloud.com:8180

Connection: Keep-Alive

User-Agent: HwOUCDownloadManager

HTTP/1.1 200 OK

Accept-Ranges: bytes

Content-Disposition: attachment; filename="update.zip";

Content-Type: application/zip

Date: Thu, 17 May 2018 08:45:23 GMT

ETag: "5adb0844-180cb7c6"

Last-Modified: Sat, 21 Apr 2018 09:45:40 GMT

Server: nginx

Content-Length: 403486662

Connection: keep-alive
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=8491361]dkk6[/MENTION] thank you for the link ... unfortunately this isn't a full ota package but only an update ota package, i.e. it's not really usable for recovery reasons.
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
Would we be able to use firmware from any region to extract the update.app file, in order to root a firmware from a different region?

It appears Japanese firmware for the SHT-W09 has been posted on easy-firmware dot com - sorry can't post links being a newb!

Schubert-W09A 8.0.0.131(C635) at 2.8 GB but wants a $15 sub to download - haven't tried yet so unsure over legitimacy.
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=7797416]moonraker7[/MENTION] I am not an expert to Huawei, but as far as I know you need to get the matching firmware for your region.
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
Sure but with the OP's rooting method, we'd only be using obtained firmware to make a boot patch for the ramdisk, so I presume it depends on whether the ramdisk is region specific?
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
Yes, you are right but unless we are able to compare the different ramdisk images extracted from different region firmwares we cannot be sure they are region independent ...
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
But we can examine different region firmwares for similar devices, the SHT-AL09 for example. If its ramdisk is the same for different regions, it's likely to be the same for the SHT-W09?
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
yes, of course. Are there different full OTAs for the SHT-AL09 available? If yes one could download, extract and do e.g. a MD5 sum on the different ramdisk.img ...
[Huawei MediaPad M5  Guides, News, & Discussion] fludox:
I have a question I'd really appreciate an answer to.

Seriously looking to buy the Chinese mainland 10" WiFi model. I'm not concerned with rooting but I would like to flash a non-Chinese firmware so I can access Google Play Store natively etc. Can anyone advise if any of the firmwares out there will work for this as is? Or do I need the matching ramdisk.img etc.?
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
The OP links to Chinese (COO) and European (C432) full OTAs for the SHT-AL09 available from mobileheadlines dot net
[Huawei MediaPad M5  Guides, News, & Discussion] darren1:
There are various full OTAs for the 10" versions here

https://www.mobileheadlines.net/download-huawei-mediapad-m5-10-pro-firmware-files-all-versions/
[Huawei MediaPad M5  Guides, News, & Discussion] theCroh:
Has anyone done this successfully on European 10 inch LTE model and if yes, which image did you use?
[Huawei MediaPad M5  Guides, News, & Discussion] mutahharbashir:
its qualcomm device

think 100 times before changing oeminfo

most likely you will damage your imei and network

in most cases can't be fixed :good:

---------- Post added at 02:54 AM ---------- Previous post was at 02:49 AM ----------

https://www.google.com/search?sourc......1c..64.psy-ab..1.1.273.6...273.BGYlwUzlV-g
[Huawei MediaPad M5  Guides, News, & Discussion] hellord01:
:confused::confused::confused: it's not kirin 960?

I think rebrand is no problem by changing oeminfo. It will save $25. :laugh::laugh::laugh:

If anyone has sht-al09 (C432), please share oeminfo. Thanks.:good::good::good:

Seems you provided this rebrand service for $25, and you really don't know it's a Kirin device? It's so pity that you earn this money.

Thanks to OP for sharing this method for free.
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=3124025]darren1[/MENTION] I just checked but unfortunately ramdisk.img is different for the different regions, so you need to have a full ota for your device and your region ... :(
[Huawei MediaPad M5  Guides, News, & Discussion] mutahharbashir:
You are right, my mistake it's kirin chip
[Huawei MediaPad M5  Guides, News, & Discussion] Apo11on:
The region does not matter for ramdisk image extraction and rooting purposes. As long as the firmware is for the exact same model of M5 it is OK to use one from different region.
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
I've compared the ramdisk.img extracted from CRM-W09C00B125 and CRM-W09C432B125 and at least the md5 checksums are different ...
[Huawei MediaPad M5  Guides, News, & Discussion] Apo11on:
They dont have to be identical to be compatible with ramdisk partition or this root procedure. Ramdisk contains init routine with configuration files and mounts other partitions upon boot. Init config files for different regions are expected to be slightly different, so ramdisk image will be different as well.
[Huawei MediaPad M5  Guides, News, & Discussion] mutahharbashir:
agree with him

i have flashed european ramdisk on middle eastern version, and successfully rooted

even tablet was running B120 and i flashed ramdisk from B123
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
Thanks so much my SHT-W09 is now rooted :)
[Huawei MediaPad M5  Guides, News, & Discussion] darren1:
Thanks, were did you get the SHT-W09 firmware from?
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
https://easy-firmware.com/home/browse/file-info/id/110769/Schubert-W09A_8.0.0.120(C635)/
[Huawei MediaPad M5  Guides, News, & Discussion] darren1:
Could you upload the full firmware to mega.nz? I have installed a project treble rom and would like a full firmware in case I ever need to flash back.
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
Think that's a bit too much to ask! Don't really want to offend the source.
[Huawei MediaPad M5  Guides, News, & Discussion] darren1:
Ok, fair enough. Although the source offend me by charging for firmware rather than making it freely available.
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
Probably best to follow the OP by generating your own patched_boot.img using the RAMDISK.img for the SHT-W09; https://mega.nz/#!r8VxCbjC!OBkyORfrudT5PcfyCbwdn047ND4taRegSjJWiZJjirI
[Huawei MediaPad M5  Guides, News, & Discussion] Apo11on:
Keep linking firmware mirrors guys. I will add them to the 2nd post.
[Huawei MediaPad M5  Guides, News, & Discussion] darren1:
This easy-firmware.com link requires payment.
[Huawei MediaPad M5  Guides, News, & Discussion] Apo11on:
[MENTION=7797416]moonraker7[/MENTION] please reupload to a free host. that site doesnt really have the right to charge for it, unless they are licensed by Huawei and share the profits, which I doubt they are.
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
Did you try to use HFF? There are many firmware versions available now, even for SHT-W09
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
They weren't available yesterday! Is Huawei watching this thread?
[Huawei MediaPad M5  Guides, News, & Discussion] moonraker7:
If you are watching Huawei, trust you'll also be enjoying the sales of this tablet spike over the forthcoming weeks - now that root is available!

Here's the full ota firmware for the SHT-W09 European version, as downloaded from HFF; https://mega.nz/#!asVjmZrR!bW2OmXgTjnyVN4pqb9fA7OzAJ4bzil7YZxNW14qoCmk

TWRP next please :fingers-crossed:
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=7797416]moonraker7[/MENTION] why using Mega if there are links directing directly to Huawei?
[Huawei MediaPad M5  Guides, News, & Discussion] beginnner:
I have read there is a line in build.prop with service hdmi set to false. Can anyone with rooted device change It and check if the hdmi output Works. Thnks.
[Huawei MediaPad M5  Guides, News, & Discussion] Apo11on:
Updated the OP and 2nd post. Thanks for uploading.
[Huawei MediaPad M5  Guides, News, & Discussion] theCroh:
If I want to install an official update when I'm rooted, do I need to unroot before updating or can I just install the update and flash new patched ramdisk?

Sorry about the n00b question. Too much time spent spoiled by TWRP and custom ROMs ?
[Huawei MediaPad M5  Guides, News, & Discussion] gingi999:
Another noob question

Moved.
[Huawei MediaPad M5  Guides, News, & Discussion] Apo11on:
These belong in the Q&A section, none of them have anything to do with root itself. Read the forum rules.
[Huawei MediaPad M5  Guides, News, & Discussion] gingi999:
Thanks for the heads up, sorry for the violation. I will delete the post.
[Huawei MediaPad M5  Guides, News, & Discussion] allgrey:
Someone updated to 8.0.0.151? Can we get root on new version by this method?
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
Yes, I am on 151. Download the full OTA package for your device, extract the ramdisk_recovery image, patch it with Magisk and flash it using fastboot and you are rooted.
[Huawei MediaPad M5  Guides, News, & Discussion] Thomas7:
Followed this with little to no trouble - only getting Download mode proved a tad difficult, but was easily solved with using adb.

Once Magisk was installed and root achieved, I installed like 4 modules that looked interesting (one of which was xposed).

After this, I boot looped :(

Grabbed two firmwares from HFF (stock and latest).

Only stock seems to boot after flashing ramdisk/recovery/system.

No matter what I try in what order, I can't seem to generate a working, patched, ramdisk file.

Any ideas? Am on a CMR-AL09
[Huawei MediaPad M5  Guides, News, & Discussion] thref23:
If you want to install Xposed, you have to use the build towards the bottom of this link (it can be flashed via TWRP). v90 beta 3 does not work on EMUI 8.0 devices.

If you want to install the latest firmware rather than stock, and there are no approved system updates, Funky Huawei's eRecovery method works. I bricked by SHT-AL09, and nothing worked for me but that.

You said you had achieved root, so you must have been able to generate a working, patched ramdisk file. If you still have that file, all you have to do is flash it again. You don't need to patch a new one.
[Huawei MediaPad M5  Guides, News, & Discussion] Thomas7:
I had a working TWRP just now, but after flashing AOSP generic image i am looping again.

I haven't had any luck with this either, personally.

This was the first thing I did, of course, but it just won't eat it.

I think I might have used a wrong firmware file - the names are very confusing to me and there seems to be a .128 release more recently than a .6xx version.

I'm currently re-flashing stock and getting TWRP again, trying a different AOSP image now (learnt this tablet is an A-only device just now...)

Thanks for the help though. Still find it very stange the method in the OP worked fine, but only the first time. Wonder what I'm doing wrong.
[Huawei MediaPad M5  Guides, News, & Discussion] thref23:
Oh well. Maybe you restored to the wrong firmware?

Mine was shipped c636 b121. I patched the ramdisk.img from the OP. After bricking, I restored to c636 b153 (FH's eRecovery method). I flashed the patched_boot.img I initially created, and I instantly had root again (although I had to install Magisk to have SU).
[Huawei MediaPad M5  Guides, News, & Discussion] Thomas7:
I managed to get it all messed up somehow with TWRP and AOSP roms. While they booted, a reboot would cause TWRP to freeze.

It looped a bunch of times but eventually eRecovery suggested I do a "lowlevel factory reset". I'm not sure what *their* intepretation of lowlevel is - but admittedly, I got a clean slate.

Followed the OP again, and here I am with magisk installed, root, the works :)
[Huawei MediaPad M5  Guides, News, & Discussion] bigbigbossly:
Hi I got twrp working on my sht-w09, however I'm stuck at bootloop if I turn the tablet on normally: your device is booting now, can anyone tell me how do I fix it?
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=5667744]bigbigbossly[/MENTION] what image did you flash on what partition? Did you modify later on anything on /system or /boot ?

Generally you should flash only the modified ramdisk_recovery.img (matching *your* current system) into the ramdisk_recovery partition and you are done. No other partiontion are involved and your system should boot up fine as there are no modifications to the system relevant parts.
[Huawei MediaPad M5  Guides, News, & Discussion] bigbigbossly:
I used xposed app building download function, I think that's where I broke my system.

I don't think I made any changes on /system or /boot but it seems like it.

Do you know anyway I can flash a stock /system and a stock boot.img?

Thank you in advance!
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
what is "xposed app building download function"? What do you want to achieve? You need to be careful to not modify /system all your modifications to the ROM need to be systemless modifications.
[Huawei MediaPad M5  Guides, News, & Discussion] bigbigbossly:
Inside the xposed application, when you get into the app for the first time, it will alert you there is no xposed framework so you will have two options: flash through recovery or use build-in installing.

I just wanted install xposed... and that is the only part that might involved system change(I honestly dont know.).
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=5667744]bigbigbossly[/MENTION] honestly speaking I do not use xposed, but I know that Magisk has an xposed module and this may / should work as it keeps everything systemless. You must not install anything on /system or /boot otherwise your device will not boot any longer.
[Huawei MediaPad M5  Guides, News, & Discussion] bigbigbossly:
Thank you for the reply.

Do you know if there is a way to flash stock boot.img and /system?
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
should be possible, but you need to extract the images from an full OTA which matches the system you have currently installed on your device. Then you can flash these using fastboot
[Huawei MediaPad M5  Guides, News, & Discussion] thref23:
Installing Xposed modifies your system files.

Your problem wasn't that you had to flash Xposed, so much as you tried to install an official build. At last check the most recent official build is v90 beta 3 - this is not compatible with any EMUI 8.0 devices and will cause a bootloop. You need to install beta 4 which can be found towards the bottom of this convo:

https://github.com/rovo89/Xposed/issues/310
[Huawei MediaPad M5  Guides, News, & Discussion] bigbigbossly:
Tried flashing beta4, but still getting bootloop.

I'm getting warning before flashing beta4: Failed to unmount '/system/ (Device or resource busy)

But the logs show that xposed has been flashed.

I can't not format /system either, same unmount warning. ;_;
[Huawei MediaPad M5  Guides, News, & Discussion] Dbrdmkr:
Hi All

I have rooted my M5 8'4 SHT AL09 running the . 151(C432) using the ramdisk.img from OP.

I would like to know if you guys noticed weird behavior from magisk manager like force close time to time. Also some apk like cf. Lumen doesn't work properly when running with root access when rootless is ok.

Do you think i should flash patched ramdisk.img from my actual rom or maybe i did somthing wrong.
[Huawei MediaPad M5  Guides, News, & Discussion] sebarkh:
Yes Magix manager is for closing for me too. what I have to do to get it to work is wiping the app data.
[Huawei MediaPad M5  Guides, News, & Discussion] Dbrdmkr:
I follow your advise and did apk data wipe. Seems ok now. I have noticed that when you uncheck setting in advanced parameters and quite magisk, it is check when i reopen magisk. Also, and maybe that can help, when i start cf. Lumen from chainfire, the apk claim selinux is set to enforced and not to permissive. Usually, apks that need root, prefer when selinux si permissive.
[Huawei MediaPad M5  Guides, News, & Discussion] Dbrdmkr:
Answered all my stupid questions by my self.
[Huawei MediaPad M5  Guides, News, & Discussion] hellord01:
Hello, Can you share your M5 oeminfo file? ( located: /dev/block/platform/hi_mci.0/by-name/oeminfo ).

Thanks~
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
... are you sure the oeminfo file doesn't contain device specific information as e.g. the IMEI?
[Huawei MediaPad M5  Guides, News, & Discussion] Dbrdmkr:
There is no files that you need from me. All you need to root is available or via huawei firmare finder or via the first post.
[Huawei MediaPad M5  Guides, News, & Discussion] hellord01:
oeminfo doesn't exist in firmware , more info here: https://xdaforums.com/mediapad-m5/help/request-guide-to-rebrand-chinese-models-t3794336
[Huawei MediaPad M5  Guides, News, & Discussion] Windsor1959:
Okay, I was able to obtain my unlock bootloader code from Huawei. I have a SHT-W09 device, 8.0.0.122 (C567). Do I need to match the firmware exactly to be able to extract the correct items? If not exactly, then how closely?

I also have HFF, but I haven't done much with it yet. It tells me that there's an update available, but it's not approved yet.

Thanks for your help!
[Huawei MediaPad M5  Guides, News, & Discussion] thref23:
If you are just talking about ramdisk.img - any ramdisk.img from any SHT-W09 should work to my knowledge.
[Huawei MediaPad M5  Guides, News, & Discussion] :
x
[Huawei MediaPad M5  Guides, News, & Discussion] sebarkh:
reboot.
[Huawei MediaPad M5  Guides, News, & Discussion] Windsor1959:
I wonder if OTA updates would work on this device once the bootloader is unlocked and the device is rooted. Would it be better to go to settings and disable automatic OTA updates there, just in case?
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=4020282]Windsor1959[/MENTION] OTA updates should work as long as you have the original recovery installed ... nevertheless if you are rooted you probably would like to update manually ...
[Huawei MediaPad M5  Guides, News, & Discussion] Windsor1959:
Thanks!

But would root by this method survive an OTA update? Or, would we need to re-root every time an OTA update is applied?
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
I suppose the ramdisk.img will be overwritten by an OTA so you will lose root and you need to re-root, but I may be wrong.
[Huawei MediaPad M5  Guides, News, & Discussion] mazzod:
Yep you are right [MENTION=2188693]AndDiSa[/MENTION] the patched ramdisk.img will be lost with the update
[Huawei MediaPad M5  Guides, News, & Discussion] sebarkh:
Glad, you did it, mate.

What my experience is: I updated to 16.4.

And I had bootloops, installing modules.

I had to reset data partition (yes tried to delete Magisk leftovers in recovery but didn't help) to get it back to life.

So my advice is: stay on stable v.16. for now.
[Huawei MediaPad M5  Guides, News, & Discussion] C5Longhorn:
Has anyone rooted a US SHT-W09 and if so, any issues or things to watch out for? I also have firmware C567.

Also, do you have to use Huawei software to extract the ramdisk image file or can any software be used? For example, I used 7-Zip.

I'm going to root mine soon.

Thanks,

Rick
[Huawei MediaPad M5  Guides, News, & Discussion] purple lady:
Is this ramdisk image for the SHT-AL09 C432 8.0.0.101? I see there have been updates since the thread was started, but I haven't updated it yet. Will this ramdisk image work for the B123 or B151 update or should I extract the image after updating?
[Huawei MediaPad M5  Guides, News, & Discussion] Dbrdmkr:
As long your device is SHT AL09 it should work
[Huawei MediaPad M5  Guides, News, & Discussion] Tanogeek:
Did you root your SHT-W09 ?

Mine is unlocked but not yet rooted.

I'm waiting for feedbacks.
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
[MENTION=3435096]Tanogeek[/MENTION] I rooted my device by downloading the full ota (SHT-W09C432B151), extracting and patching the ramdisk.img using Magisk and re-flashing the patched ramdisk.img back to the device like it is described in the OP. After that the device is rooted with Magisk ... no issues at all.
[Huawei MediaPad M5  Guides, News, & Discussion] C5Longhorn:
I'm trying to get the ramdisk image for the US wifi model SHT-W09. I installed Huawei firmware finder and am downloading the updated image.

Do I have to use the Huawei Update extractor or can 7-Zip be used to extract the ramdisk file?

Thanks,

Rick

---------- Post added at 03:05 PM ---------- Previous post was at 03:03 PM ----------

Or, does anyone have the ramdisk image for SHT-W09 version C567.

I'm trying to achieve root today.

Thanks,

Rick
[Huawei MediaPad M5  Guides, News, & Discussion] AndDiSa:
You need to use the Update Extractor as it is a OTA update package and you need the *full* OTA otherwise it's useless for the ramdisk.img
[Huawei MediaPad M5  Guides, News, & Discussion] massima:
For those who are allergic to windows apps, like me:o, and you need to extract an .img file from a Huawei UPDATE.APP from Linux, i found this forum and its script. Tested and it did its job:victory: