Related
Hi M3 users,
I'm a long time lurker and reader on XDA. Now it's time to give something back or at least participate
Following my recent M3 purchase a dugg a bit deeper into this topic and tried to get us the stock recovery for our devices.
I'm not really a dev. I just used the information I found here and in the russian forum where greatslon (thank you guy) is posting his work.
If you find an error in the process please let me know. The files have not been tested in any way. I have no idea if this would even work (encryption and so on).
So I managed to extract the recovery.img file from the chinese rom. This method will also work for the LTE variant.
Maybe @greatslon or @somboons can share their view on the topic or maybe @somboons can even use it in his tool.
Resources
http://4pda.ru/forum/index.php?showtopic=780572&st=120
http://forum.xda-developers.com/showthread.php?t=2433454
http://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146
https://play.google.com/store/apps/details?id=com.teammt.gmanrainy.huaweifirmwarefinder
Tools used
Huawei Firmware Finder (Team MT)
Huawei Update Extractor
Download
M3_BTV-W09C233B019_recovery.zip
Process
1. Start firmware finder (did use the android version)
2. Change device to BTV-W09C233
3. Downloaded the firmware B019 for BTV-W09C233 (no firmware for other variants present ATM)
4. Extracted and copied update.app to SD card
5. copy to PC
6. Extract recovery.img and recovery2.img using Huawei Update Extractor
Best regards,
Benjamin
Don't quite understand what's this for. First of all, recovery should be the same version as your ROM. I don't know if their mismatch will immediately lead to some malfunction, but some people on 4pda said they should match. Second - stock recovery's functions are limited to factory reset (wiping data, cache, etc.) and installing OTA updates. Without changing OEMINFO (and it's still unconfirmed), you won't be able to install any OTA except those, intented for your model and region, so again there's no need to install a higher version of recovery than your ROM is. But anyway, thank you for the extraction instruction.
P.S. I think there's no need to flash both recovery and recovery2. Recovery2 can be successfully replaced with TWRP and this combination is really great, cause you can launch TWRP by holding Volume Up button only.
And the only reason why you should keep recovery original is that it doesn't really wipe /data - it also creates some files there like custom.bin, containing your regional settings.
Hi Slavon,
Thanks for your highly appreciated comment. @somboons was looking for a stock recovery so I thought this might help.
Your given information are really helpful. I did not know that you could flash TWRP in recovery2 and replace erecovery Handy information.
I'm pretty new to the Huawei structure so always glad to learn something.
EDIT
A lot of good information can be found here: http://forum.xda-developers.com/honor-7/general/dual-recovery-honor-7-t3308398
Thank you very much,
sselpeelsxx
Giving Back
Benjamin,
I've also been a long time XDA lurker. Most of the devices I have owned were mainstream and thus already had a very active XDA developer community; Even if root had yet to be achieved, there would be hundreds of messages on the topic.
It seems the Mediapad M3 is just getting started. I am a developer of over 20 years, but very little android experience. However, I have recently spent a considerable amount of time (about 50-100 hours) working with the low level ADB protocol source code. And I have rooted and flashed no less than 50 devices, everything from cell phones to Android TV devices to routers.
I'm going to take this device on as my first real dev effort in this arena.
I have a few goals:
1. Get working backups for people that soft-brick or need to revert (including myself).
2. Recompile TWRP for the M3 to confirm greatslon's work, and better understand the process.
3. Release a stock rom that's pre-rooted and cleaned up (not that there was a lot of bloat on my device).
4. Release a custom rom that's not MIUI (perhaps based of CyanogenMod).
Since I have virtually no experience, I am sure these goals are quite lofty and will take some time. But hey, you got to have a plan, and I don't have anything else to work on right now.
Let me know if you want to work on anything together, or if you need any help with anything development related.
- 0D0A
Hey hey 0D0A,
I totally agree with you regarding the backups, I think once the first OTA update is pushed for the EU and US devices we have a good and safe way to go back.
Especially the US owners are struggling with greatslons TWRP version, that's the first thing we should tackle after the backup topic is cleared
I will contact you regarding possible work
Best regards,
Benjamin
can flash twrp via fastboot but get error saying and no recovery
hi, first thanks greatslon for doing the work on m3.
i seem to have succeeded in getting stuck and can't get it to boot into your custom twrp. adb on linux was working fine, but no longer. ditto for fastboot just get "waiting for devices" now. i switched to win10 and installed the hisuite app so i can use fastboot but still no adb. so i have tried to flash recovery and recovery2 but when i try to boot recovery i get error "Func NO: 11 (recovery image) ERROR NO: 2 (load failed)."
i then downloaded your custom rom and tried to flash the boot for that still no luck. i can't use adb so i am not sure how to just flash the custom rom with fastboot without being able to get into any recovery.
i did have this all rooted and working with your twrp but kept having issues with dpi and there was an ota update (b003) which wouldn't apply. so i tried to restore backup and it wen't south from there. basically now can't do much other than see the unlock "can't be trusted" page and bootloader.
any suggestions?
Desperately need stock recovery img, not sure exactly what when wrong, but it is stuck in a horrible boot loop. Tried Benjamin's recovery files and they seem to remove twrp and put it somewhat back to normal, but can only access the emui recovery and that fails to load the files. Put twrp back and tried greatslon's ROMs, they load but goes back to boot loop. Wipe and format everything, install my original backup through twrp recovery, it says it works, but again, back to boot loop... at this point I think I'm dead... any ideas, any word on the official recovery img? anything? Help!!
What device do you have? And what version were you on?
sselpeelsxx said:
What device do you have? And what version were you on?
Click to expand...
Click to collapse
I have the M3, BTV-W09, not sure what version, MM6.0 EMUI 4.1
Anyone have any other ideas on horrendous boot loop?
sselpeelsxx said:
Hey hey 0D0A,
I totally agree with you regarding the backups, I think once the first OTA update is pushed for the EU and US devices we have a good and safe way to go back.
Especially the US owners are struggling with greatslons TWRP version, that's the first thing we should tackle after the backup topic is cleared
I will contact you regarding possible work
Best regards,
Benjamin
Click to expand...
Click to collapse
Hello, I am unlocked, TWRPed, and rooted, but am trying to reverse all of that. My build number is BTV-W09C128B002. Is it safe to download the stock recovery from the OP for my device? Or do I really need the C128 version?
Hello and sorry for the late response, you would need the matching version for your C128 device.
I may be able to extract recovery from an update, I have to look into this tomorrow.
Regards
sselpeelsxx said:
Hello and sorry for the late response, you would need the matching version for your C128 device.
I may be able to extract recovery from an update, I have to look into this tomorrow.
Regards
Click to expand...
Click to collapse
Thanks! I have been able to use the Huawei Extractor to extract a recovery.img from OTA updates, but have been afraid to try flashing it. It has been recommended to hold off on trying that since that recovery.img is from an OTA and not a FULL update. Any thoughts?
Hi everyone my device is huawei p9 lite L31 and I installed the unofficial update, after that I found out some apps are missing and the TWRP aswell so I can't flash nothing.
I would like someone to tell me which TWRP I can install and how please.
Thank you!
TWRP for Nougat doesn't support mounting of the /data partition at the moment, so there is nothing you can do about it. You should have flashed the update + data in the first place. All you can do now is unlock the bootloader, flash the oeminfo for your device and downgrade via the 3 buttons method. Next time, in TWRP for MM (which does support /data mounting), you will flash update + data for Nougat which I still can't understand nobody does.
SALVO9 said:
TWRP for Nougat doesn't support mounting of the /data partition at the moment, so there is nothing you can do about it. You should have flashed the update + data in the first place. All you can do now is unlock the bootloader, flash the oeminfo for your device and downgrade via the 3 buttons method. Next time, in TWRP for MM (which does support /data mounting), you will flash update + data for Nougat which I still can't understand nobody does.
Click to expand...
Click to collapse
Hi where do I get the oeminfo from? Have you got a link for the L31? Europe? Thank you
Beni2567 said:
Hi where do I get the oeminfo from? Have you got a link for the L31? Europe? Thank you
Click to expand...
Click to collapse
Btw when I wanted to update I flashed both files and I think that the update wasn't complete with all files and system apps already.
Something went wrong, then. You should be able to find oeminfos in some thread here on XDA, otherwise google is your friend. Just be careful what you flash because you MUST flash the correct one for your device and locale
SALVO9 said:
Something went wrong, then. You should be able to find oeminfos in some thread here on XDA, otherwise google is your friend. Just be careful what you flash because you MUST flash the correct one for your device and locale
Click to expand...
Click to collapse
My version is L31 Europe and I tried finding the right one but I can't find it, I found L31 version but it was Asia not Europe
Hello fellows. I am in a deep sh&*. Maybe someone can help.
I have a p10+ L09 converted to L29, rooted, bootloader unlocked. It was on rooted stock rom. Yesterday, tried to make the update, and something went wrong. Now, I can't install any rom exept future rom or something found here. I've tried rayglobe knife, Huawei multi tool, eRecovery, dload, and no way to install an official rom. I am barely able to install twrp, format data, and install future rom before rebooting.
Tried to extract boot, cust, system from the original rom, but it says finished and bootloop just after the unlocked message. On latest versions, I cant even find them in the update.app..
Any help, any downloadable file or link is really appreciated. Please help...
dj_varizes said:
Hello fellows. I am in a deep sh&*. Maybe someone can help.
I have a p10+ L09 converted to L29, rooted, bootloader unlocked. It was on rooted stock rom. Yesterday, tried to make the update, and something went wrong. Now, I can't install any rom exept future rom or something found here. I've tried rayglobe knife, Huawei multi tool, eRecovery, dload, and no way to install an official rom. I am barely able to install twrp, format data, and install future rom before rebooting.
Tried to extract boot, cust, system from the original rom, but it says finished and bootloop just after the unlocked message. On latest versions, I cant even find them in the update.app..
Any help, any downloadable file or link is really appreciated. Please help...
Click to expand...
Click to collapse
What error/behaviour are you getting from erecovery?
Plop
Hello mate. Thanks for your time.
ERecovery crash everytime at 5%. If I try to download via erecovery, it doesn't download.
I've tried to extract the files from update. App, and inject them via fastboot. It goes to the end of the operation, but once rebooted, it bootloop before the Huawei logo..
I don't understand what happens.. It's like if the phone don't want the original firmware anymore..
If you have any files to propose me, I really want to try tonight...
Can you somehow recover your original oeminfo with TWRP and retry erecovery? That's how I got out of a similar situation, although I can't say for sure whether I really had the same root cause.
Hmm not sure that the oem info is ok or corrupted...
That's what I am affraid of..
I will try in a moment to see..
If it's corrupted, that means the phone is dead?
In that case you could try funkyhuawei, they provide their own oeminfo and erecovery connection. They do cost money though.
May I ask what makes you want to go away from the fromfuture ROM?
This... Android 5.1, emui 3.1
I don't know if iam becoming stupid with age, but can't find any more recent... And with the kids yelling on my back.... Lol
Well, I found a recent rom from future. Had some troubles with Android locking magisk, but now it's working ( update magisk before putting your Gmail account and restore). For now it's working fine. Just had a few freezes here and there but since this morning it's going fine. I think I'll stay with it for now.
Thanks for the people who tried to help me.
XDa rules!
Hi, I'm in a sticky situation
I downloaded a custom recovery (revolution custom recovery) and wanted to install lineage 14.1 on my phone. I installed everything properly and still my phone doesn't get past the startup animation. After that I thought it was because of the recovery so I installed I TWRP (which should be compatible) through the existing recovery. And now. I'm stuck between loading screens and don't know what to do. I managed to get to the erecovery of EMUI and charged up my phone. Since I don't want to break anything else I'm asking for help.
Change data partition to ext4.
How yo recover
Flash sotck EMUI rom from consumer.huawei.com using 3 buttons method. You'll be able yo use your phone, but I think Google services doesn't work (in my case) so try again yo flash lineageOS. Good luck
yazzine said:
Hi, I'm in a sticky situation .........
.......... Since I don't want to break anything else I'm asking for help.
Click to expand...
Click to collapse
Hello dude, ok you got L31 model phone, but, except for Revolution recovery,
you did not give any more info about the firmware you had before flash custom recovery.
Neither info you wrote about lineageOS and other TWRP you tried to flash.
No one can help you without these basically info, so post here...
Best Regards
Hello,
In a late-night act of utter stupidity, when over-tired, I re-flashed the boot recovery with TWRP and bricked my M3. It obviously can't now enter boot recovery.
I've used TWRP and successfully re-flashed custom roms on my original Mate, and changed regions. (Not in any way an expert, I know how to follow instructions.)
I was trying to convert my Chinese (I was living there) ROM to UK. It's tricky nowadays.
This was a stupid error when tired. Any way back?
I read somewhere that people with the right hardware can do it, but finding someone. I'm in Leeds, UK.
The pad does (did) what I need, and I'm not in a position to buy a new one. If it's dead, it's dead; and I can move on.
Cheers in advance for any input.
SOLVED
See my last post on this thread.
After using Multi Tool V8 to enquire into the machine I switched off and rebooted.
It came back with a "Wipe cache" and "Reset to factory settings" Huawei screen, so I did both and - It booted!
It had spectacularly failed to do anything but boot-loop since coming out of a very dead battery yesterday.
1) Boot recovery, OTA recovery, and dload recovery from SD were all unavailable after the original overwriting of the bootloader.
2) After being dead for months, all recovery options booted from power button plus vol- Vol+ and Vol+/- - but still bootlooping.
Then, suddenly it booted into wipe cache/factory reset screen.
Android 7, EMUI 5.1.3
I have no idea why.
Now fully working. (Including restarting)
I fell in a similar situation after having flashed a magisk module .. unfortunately my nandroid backup didn't restore my devices, but I was able to enter in twrp recovery.. so,..
if you can boot in twrp recovery, not all hopes are lost..
first of all, you must download a stock firmware for your device (i suggest to download trough huawei firmware finder: https://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146/amp/)
You must download a fullota version of stock firmware
then, you can flash this firmware (3 zip files) trough hurupdater via twrp recovery: https://forum.xda-developers.com/ho...lash-official-firmware-recovery-t3769279/amp/
in order to not overwrite twrp recovery, put the twrp.img file in the same folder and rename it to recovery.img
you can find more info in this topic (follow the instructions, in particular those on how to use hurupdater): https://forum.xda-developers.com/me...ting-btv-dl09-to-unapproved-firmware-t3817541
in order to find a firmware suitable to your device, try to find info on it: you have a mediapad m3 European? American? asian? just wifi or also 4G-LTE (whit a sim and phone functions)? lite or normal version? 10 inches or 8.4?
everyone of these devices have different codenames and suitable firmwares
I found exact firmware for my devices with the procedure described here:
https://forum.xda-developers.com/showpost.php?p=77241673&postcount=3
.. but, if you flashed a wrong firmware, i really don't know if it might help you..
anyway, i wish the info above could help you.
qllkevuoi said:
I fell in a similar situation after having flashed a magisk module .. unfortunately my nandroid backup didn't restore my devices, but I was able to enter in twrp recovery.. so,..
if you can boot in twrp recovery, not all hopes are lost..
first of all, you must download a stock firmware for your device (i suggest to download trough huawei firmware finder: https://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146/amp/)
You must download a fullota version of stock firmware
then, you can flash this firmware (3 zip files) trough hurupdater via twrp recovery: https://forum.xda-developers.com/ho...lash-official-firmware-recovery-t3769279/amp/
in order to not overwrite twrp recovery, put the twrp.img file in the same folder and rename it to recovery.img
you can find more info in this topic (follow the instructions, in particular those on how to use hurupdater): https://forum.xda-developers.com/me...ting-btv-dl09-to-unapproved-firmware-t3817541
in order to find a firmware suitable to your device, try to find info on it: you have a mediapad m3 European? American? asian? just wifi or also 4G-LTE (whit a sim and phone functions)? lite or normal version? 10 inches or 8.4?
everyone of these devices have different codenames and suitable firmwares
I found exact firmware for my devices with the procedure described here:
https://forum.xda-developers.com/showpost.php?p=77241673&postcount=3
.. but, if you flashed a wrong firmware, i really don't know if it might help you..
anyway, i wish the info above could help you.
Click to expand...
Click to collapse
Thanks for the reply, and sorry for the delay. New child has somewhat taken over our lives!
I'll take a look at the tablet again when I have time, probably next month.
Update - Bootloader working after battery drain: Now what?
[Edit] Post redundant as it started working - see OP.
NwotNot said:
Thanks for the reply, and sorry for the delay. New child has somewhat taken over our lives!
I'll take a look at the tablet again when I have time, probably next month.
Click to expand...
Click to collapse
Well...
After being without power for so long I turned the tablet on and it booted!
However, it then went into OTA and updated - rebooted - and locked the damned bootloader.
1) It's showing as rooted.
2) Boot loader is locked.
3) Fastboot & rescue mode comes up.
4) Recovery (OTA) still comes up but "Fails" this time.
I don't recall how I unlocked it last time. I don't ever rememebr an unlock code.
Status:
Fastboot reports it exists.
ADB reports "Null" not found. (ADB drivers installed).
Firmware version: CPN-AL00C233B078
Device name: CPN-AL00
Serial Number: Showing
IMEI: Showing
Bootloader state: LOCK
I have an old TWRP backup - don't know how to use it.
Solutions?
a) Any kind devs prepared to work with me and find the boot unlocker code for this 5-year old tablet?
b) Any other solutions now we know what's what?
I'm self employed without income in this pandemic and can't really afford to buy a new tablet. If I have to, it won't be Huawei.
(There's a T3 10.6" at £89, but I'm not biting - I need to sort out a budget tablet with at least the oomph of the M3.)
Any help much appreciated. :good:
David.