Help! Can't flash stock rom - Huawei P20 Lite Questions & Answers

I've installed aosp with gsi but now i can't flash stock system.img with fastboot because i've got bootloop.
I followed all types of guide.
I've downloaded full ota and with the 3 files, update, update lx1 and another file, i've extracted system.img, recovery_ramdis.img and cust.img from update.app and flashed all files but the phone stuck in bootloop.
Can you help me? Because i don t like aosp and i can t install gapps

I usedHurUpater to flash a new stock ROM on my rooted and unlocked P20 lite. You can use the Firmware Finder for Huawei app in the playstore tot download the most recent stock firmware.
Good luck.

You don't have to flash cust.img
To restore your phone simply boot in bootloader, even with boot loop you can do it with the right timing.
Then flash system and recovery and do a full wipe.

Related

Need boot.img from Firmware (STF-L09C432 B100)

Anybody can PLEASE share, need it or my phone is destroyed coz i accidentally destroyed my backup
EDIT:
FOUND OUT A SOLUTION
- FLASHED boot.img FROM B130 FIRMWARE
- STILL BOOTLOOPED
- FLASHED MAGISK 13.3 WHICH MODIFIES THE BOOT.IMG
- BOOT LOOP AGAIN
-AFTER 4 BOOTLOOPS HUAWAI RESCUE DOING FACTORY RESET
>>>Sucesful boot into ANDROID
-----------------------------
NOW ONLY STUCK BY ENTERING PIN ----> DOESN'T ACCEPT MY PIN
Hello, i've got a similar problem. after trying to flash emui 5.1 supersu.zip the phone bootlooped. after restroring with twrp backup the phone crashed after the "emui-registration/welcome" dialog. tried to flash b130 via twrp and dload method. do you have any ideas? maybe by flashing boot.img? and where can i find the b130 boot.img? Thx!
4r44444 said:
Anybody can PLEASE share, need it or my phone is destroyed coz i accidentally destroyed my backup
EDIT:
FOUND OUT A SOLUTION
- FLASHED boot.img FROM B130 FIRMWARE
- STILL BOOTLOOPED
- FLASHED MAGISK 13.3 WHICH MODIFIES THE BOOT.IMG
- BOOT LOOP AGAIN
-AFTER 4 BOOTLOOPS HUAWAI RESCUE DOING FACTORY RESET
>>>Sucesful boot into ANDROID
-----------------------------
NOW ONLY STUCK BY ENTERING PIN ----> DOESN'T ACCEPT MY PIN
Click to expand...
Click to collapse
I extracted it with Huawei Update Extractor from UPDATE.APP provided in this thread "https://forum.xda-developers.com/honor-9/how-to/firmware-honor-9-stf-l09c432-b130-2017-t3649673" (you must extract update.app from firmware and than use huawei update extractor windows app to extract the extracted UPDATE.APP - I only extracted the boot image... phone booted succesful, had to do another hard reset via TWRP coz it didn't accept my (right!) PIN... now works... only fingerprint scanner and navbar buttons does not work... now I only need the BOOT.IMG from my old firmware (B100) and flash via bootloader... I think this will fix the problem....
I do not guarantee this things to work maybe crushing your device even more do it only if you risky

Huawei p8lite 2017 root issues

Hi team. Forgivevme if this has been posted in the wrong place
Need assistance. Have a Huawei p8 lite 2017. rooted it 8 months ago, with custom recovery.
Recently installed apps2d and may i stuffed some link/mount. Since then, camera wont run, gallery wont open, google apps freeze. Tried factory reset and flashing stock but get this error. Error installing zip package. Also md5 not found.
Firmware is PRA-LX2C185B160. Should i unroot and flash with stock recovery or could somebody provide me with working firmware if this is the problem
Update: tried to reflash stock boot img to do update.app. phone know gets stuck in Emui erecovery.
Fastboot acknowledges device but commands fail. Download mode shows Bootloader unlocked, Frp locked.
Any advise on how to unbrick. I have tried the force flash update.app via micro sd, no luck. Tried using huawei extractor to extract update.app. and flash fastboot boot, recovery img etc. No luck.
Please assist.
Hi . I really need assistance. The update.app doesnt have cust.img file. I think this is where the problem lies. I have downloaded 10 times. Still no cust.img
Mods. Please delete or close.

Desperate help needed to go back to stock (Mate 10 Pro EMUI 8 TWRP & MAGISK) BLA-L09

Desperate help needed to go back to stock (Mate 10 Pro EMUI 8 TWRP & MAGISK) BLA-L09
Hello there. I'm used to Samsung devices and the more I read about Huawei devices the more lost I feel about them.
So, my Mate 10 pro BLA-L09 is currently running Build Number 8.0.0.131(C782). It is rooted with Pretoriano's TWRP and Magisk (Using the All-In-One tool). Of course, I can't get any pending update installed. I would like to receive that EMUI 9 update. I've read people have been successful using HuRupdater and some others ended up with a hard bricked device. Some other people suggest the safest option is to uninstall Magisk, flash stock recovery and let the phone update itself.
So far, I've downloaded the same full 8.0.0.131(C782) firmware I'm on from Firmware Finder and downloaded Huawei Update extractor to extract the recovery from UPDATE.APP. However, instead of having one recovery file to extract, there are 3 Recoveries (named: RECOVERY_RAMDIS, RECOVERY_VBMETA, RECOVERY_VENDOR) and another 4 E-Recoveries.
Can anyone please give me some step by step guidance on what to do? I'll Paypal you a beer if I'm successful with the help.
Cheers!
May be you can simply dload the firmware and then it should be full stock if dload works. Dload guide is given in my signature
shashank1320 said:
May be you can simply dload the firmware and then it should be full stock if dload works. Dload guide is given in my signature
Click to expand...
Click to collapse
Thanks! But I think dload won't work with custom recovery, right? I'm on TWRP. And getting stock recovery is just what I'm trying to achieve.
93starletgt said:
Thanks! But I think dload won't work with custom recovery, right? I'm on TWRP. And getting stock recovery is just what I'm trying to achieve.
Click to expand...
Click to collapse
Dload replaces your twrp and custom boot both. It will bring back your phone to full stock. Else you could extract the images from your firmware and then flash. Let me give you the commands.
Thanks! I just fixed my issue by flashing this through TWRP: it Installs the Oreo stock recovery.
The procedure was:
-Booted into TWRP
-Uninstalled Magisk (by flashing Magisk Uninstall Zip)
-Flashed the stock recovery (from the link below) through TWRP
-Reboot
-Check for system updates, phone will install them with no problems
Phone will be unrooted and will have stock recovery. Don't know if this will work for every stock build, it worked with mine 8.0.0.131(C782).
Link:
https://mega.nz/#!8Swx3QaC!3JQ9imU70E9O1BxgO53Z754lGCZxCbKGgSHqvTEcXsQ
I was getting the command ready for you. Glad you fixed it yourself
[*]Run the command to boot to fastboot
Code:
adb reboot bootloader
[*]On fastboot screen, you will have bootloader state as Unlocked and FRP Unlocked.
[*]Flash the stock Recovery Ramdisk as
Code:
fastboot flash recovery_ramdisk <Recovery_File_Name>.img
[*]If you have installed magisk, flash the stock boot ramdisk.img as
Code:
fastboot flash ramdisk <ramdisk_File_Name>

Unable to reinstall Magisk after bootloop fix

Hi, I'm having trouble with Magisk re-installation.
First I installed Magisk using the flashing boot.img method, it was working correctly but I tried to remove the youtube vanced module, when it asked for a reboot it went straight to the bootloader, I just re-flashed the original boot.img to the phone and got it working again. the issue came when I tried to reinstall Magisk from scratch again. Whenever I tried to install it the process would go without any issue but when I tried to start the system it is going to the bootloader again.
I tried installing twrp using this guide and got the custom recovery working on both slots, then I tried to flash magisk using the zip file, the installer ran without throwing any issues but when I tried to reboot again to the system it still goes to fastboot, this time not only corrupting the system start but also the twrp recovery. I haded to reflash the stock boot.img image on slot A and the twrp image on slot B to re install twrp on both slots.
Also using the TWRP tried running the uninstall magisk zip but whenever I try to run it it just fails because it cannot find the magisk.img file and exits by telling that I have not installed magisk.
Tried erasing the folders inside of /data/adb but its the same issue all over again.
Does anyone has any idea or suggestion on what could I try to fix the issue?
Thanks
Try flashing patched boot image (the same version as your system) and boot into the system, go into magisk manager and do complete uninstall. Or download the latest Magisk uninstaller and try from TWRP again. Recent versions of Magisk ditched magisk.img, so you might be using old version of the uninstaller.
_mysiak_ said:
Try flashing patched boot image (the same version as your system) and boot into the system, go into magisk manager and do complete uninstall. Or download the latest Magisk uninstaller and try from TWRP again. Recent versions of Magisk ditched magisk.img, so you might be using old version of the uninstaller.
Click to expand...
Click to collapse
Tried using the lastest uninstaller found on the topjohnwu/Magisk repository, which did not show any error but after installing magisk the phone still goes to bootloader, then tried to run the uninstaller again but it only works on the b slot and to run it on the a slot I have to reflash boot.img and then install twrp on both slots.
But thanks for the sugestion.
jtcp2703 said:
Tried using the lastest uninstaller found on the topjohnwu/Magisk repository, which did not show any error but after installing magisk the phone still goes to bootloader, then tried to run the uninstaller again but it only works on the b slot and to run it on the a slot I have to reflash boot.img and then install twrp on both slots.
But thanks for the sugestion.
Click to expand...
Click to collapse
I would restore stock ROM, skip TWRP installation and flash just correct patched boot image.
_mysiak_ said:
I would restore stock ROM, skip TWRP installation and flash just correct patched boot image.
Click to expand...
Click to collapse
Do you know where can I find the lastest stock rom? Right now I'm on 10.3.9.0 PFQEUXM, or if the lastest is not possible, could I flash a older version of the rom without any trouble?
jtcp2703 said:
Do you know where can I find the lastest stock rom? Right now I'm on 10.3.9.0 PFQEUXM, or if the lastest is not possible, could I flash a older version of the rom without any trouble?
Click to expand...
Click to collapse
Try to find the full OTA zip for the latest version (or at least the same you have) and extract it with this tool https://github.com/cyxx/extract_android_ota_payload
Xiaomi hasn't released the fastboot rom for the recent updates yet.
So far I was able to find only global links here (they should work too, but rather backup your data first). http://4pda.ru/forum/index.php?showtopic=962154
You might have luck installing older fastboot EU ROM, but again, backup your data first.
If you did not enable "allow system modifications" in TWRP, it should be enough to flash only stock boot image (there are links to them somewhere on this forum).
Also I would avoid installing TWRP.
Sapper Morton said:
The complete firmware images, can only be found in .tgz archives, payload.bin OTAs only contains incremental firmware updates; thus you won't be able to successfully restore, system, vendor, boot, critical partitions and etc; the recommended method is to restore to either 10.3.4.0 PFQMIXM or 10.3.7.0 PFQEUXM, both .tgz archives, complete firmware inside. @_mysiak_
Click to expand...
Click to collapse
There are usually two types of OTA zip files, small incremental ones (which you described) - for monthly updates and full OTA (1-2gb in size) - for direct update across several versions. You can create all needed fastboot images from the full OTA payload.bin with before mentioned python extractor script.
Sapper Morton said:
You can try for yourself, I wasn't able to restore using this images (assuming of course you have a corrupt, system, vendor, boot, ... partition): https://bigota.d.miui.com/V10.3.6.0...UTGlobal_V10.3.6.0.PFQMIXM_00713c5a1d_9.0.zip
I was only able to return to global channel, by using 10.3.4.0 PFQMIXM firmware, .tgz archive.
Click to expand...
Click to collapse
By wasn't able to restore you mean that you couldn't convert payload.bin to fastboot images, or that converted fastboot images were not working?
I've just extracted these files from payload.bin from the link you provided (with this app). I don't have a phone to test them though (I did the same thing a few times on Mi A1 and flashing, phone and OTA worked afterwards).
Code:
abl.img
bluetooth.img
boot.img
cmnlib.img
cmnlib64.img
devcfg.img
dsp.img
dtbo.img
hyp.img
imagefv.img
keymaster.img
modem.img
product.img
qupfw.img
rpm.img
storsec.img
system.img
tz.img
uefisecapp.img
vbmeta.img
vendor.img
xbl.img
xbl_config.img

flash back to stock.

So I currently have USA Hawaii mate 10 pro on 9.0.0264 BL unlocked and magisk patched ramdisk and I keep getting notification to install the .267 update but it will not install due to the patched ramdisk so I just want to flash back to stock, I have downloaded the full ota through Hawaii hisuite application and its in zip format, so how do i flash this zip to go back to stock, thank you.
lingarajug said:
So I currently have USA Hawaii mate 10 pro on 9.0.0264 BL unlocked and magisk patched ramdisk and I keep getting notification to install the .267 update but it will not install due to the patched ramdisk so I just want to flash back to stock, I have downloaded the full ota through Hawaii hisuite application and its in zip format, so how do i flash this zip to go back to stock, thank you.
Click to expand...
Click to collapse
You don't have to flash the whole update, just extract the recovery_ramdisk from 9.0.0.264 firmware (use Huawei Extractor to do that) and flash it with fastboot.
Another way to get the stock recovery it's to use Partitions Backup by Wanam (from Playstore), in its options enable the "raw partition image" and backup "erecovery_ramdisk".
Copy the backup on PC and flash it with this fastboot command :
fastboot flash recovery_ramdisk erecovery_ramdisk.img
Note: replace "erecovery_ramdisk.img" with the filename of the image that you backed up previously.
After flashing the stock recovery_ramdisk, you can install the official OTA.
I am confused, there is recovery_ramdis and erecovery_ramdisk and which one is it.
Update- i just flashed recovery_ramdis and then system from ota and i am updated now. Thank you.

Categories

Resources