Cant upgrade because of faulty TWRP, need help removing TWRP - Huawei P20 Questions & Answers

Hi,
I accidently flashed TWRP, but i was already on emui9 so twrp doesent work there.
Now i can update the EMUI anymore because when the phone restarts during the install process it goes into recovery (twrp) which causes the update to fail
My question is: Can i remove twrp, maybe by flashing the orignal ramdisk image? pls help

You would have to reflash the recovery partition... Which we don't have, and since TWRP is kind of broken on EMUI 9.... well...
Can you just wipe caches and reboot to get the phone working? The update is stored in the cache partition, if you wipe cache it should boot normally.

acejavelin said:
You would have to reflash the recovery partition... Which we don't have, and since TWRP is kind of broken on EMUI 9.... well...
Can you just wipe caches and reboot to get the phone working? The update is stored in the cache partition, if you wipe cache it should boot normally.
Click to expand...
Click to collapse
so i cant really get rid of TWRP? :/
And how can i wipe the cache?

Pfollvosten said:
so i cant really get rid of TWRP? :/
And how can i wipe the cache?
Click to expand...
Click to collapse
Not if you are on EMUI 9... I don't believe so as we don't have the factory image for it, and to my knowledge we can't just dd it or make a backup of it right now. Although you might be able try the downgrade to 8.1 in another thread here, then upgrade via OTA again, but that's your choice.
I haven't installed TWRP on this devices, but basically go to the wipes menu, advanced wipes, and tick anything that says cache in it's name (often Dalvik cache and cache) and swipe to wipe them. This will not harm any of your data or applications, only the cache space. Then reboot.

acejavelin said:
Not if you are on EMUI 9... I don't believe so as we don't have the factory image for it, and to my knowledge we can't just dd it or make a backup of it right now. Although you might be able try the downgrade to 8.1 in another thread here, then upgrade via OTA again, but that's your choice.
I haven't installed TWRP on this devices, but basically go to the wipes menu, advanced wipes, and tick anything that says cache in it's name (often Dalvik cache and cache) and swipe to wipe them. This will not harm any of your data or applications, only the cache space. Then reboot.
Click to expand...
Click to collapse
The problem ist twrp doesent work.
It freezes when i enter recovery

Pfollvosten said:
Hi,
I accidently flashed TWRP, but i was already on emui9 so twrp doesent work there.
Now i can update the EMUI anymore because when the phone restarts during the install process it goes into recovery (twrp) which causes the update to fail
My question is: Can i remove twrp, maybe by flashing the orignal ramdisk image? pls help
Click to expand...
Click to collapse
Just flash your stock RECOVERY_RAMDIS.img*from your firmware. This will repair your recovery.
To extract images from*UPDATE.APP*in the zip, you have to use*Huawei Update Extractor.

oslo83 said:
Just flash your stock RECOVERY_RAMDIS.img*from your firmware. This will repair your recovery.
To extract images from*UPDATE.APP*in the zip, you have to use*Huawei Update Extractor.
Click to expand...
Click to collapse
Can you explain a bit further? Where do i get the RAMDIS.img from and how do i flash it?
and whats huawei update extractor?

Related

Failed to mount /data (Invalid Argument) in Micromax Canvas Juice 2. Aq5001.

I have a custom rom downloaded. But to flash it, I need to erase everything. That I am unable to do because the recovery dosent wipe data. It led to a bootloop. I got back the stock firmware and tried again and same result. Further more, I cant even factory reset. I'm using TWRP 3.0. Someone please help!
Worpe said:
I have a custom rom downloaded. But to flash it, I need to erase everything. That I am unable to do because the recovery dosent wipe data. It led to a bootloop. I got back the stock firmware and tried again and same result. Further more, I cant even factory reset. I'm using TWRP 3.0. Someone please help!
Click to expand...
Click to collapse
If you have a flashing tool then flash the stock firmware again and then give it a try.
Hit Thanks if it helped
Sent from my titan using XDA-Developers mobile app
pg8286 said:
If you have a flashing tool then flash the stock firmware again and then give it a try.
Hit Thanks if it helped
Click to expand...
Click to collapse
Ive tried that 4 times till now. It has been in a bootloop thrice. And I flashed stock. I currently am using stock firmware but want to flash the custom rom. The recovery is failing to wipe data because it is failing to mount data.
Worpe said:
I have a custom rom downloaded. But to flash it, I need to erase everything. That I am unable to do because the recovery dosent wipe data. It led to a bootloop. I got back the stock firmware and tried again and same result. Further more, I cant even factory reset. I'm using TWRP 3.0. Someone please help!
Click to expand...
Click to collapse
Try this
1. Reboot to recovery (TWRP)
2. Select wipe.
3. Select advanced wipe.
4. Check system.
5. Repair or change file system.
6. Select change file system.
7. Select format type.
8. Swipe to change.
9. Select repair.
there is one problem with stock rom. its encrypts the data partition right after installing stock rom, therefore twrp can't access data partition. i had similar problem earlier. this is how i managed to fix.
solution: http://forum.xda-developers.com/showpost.php?p=67980158&postcount=7
i suggest you to stick with stock rom, because right now whatever roms or recoveries are made for this phone are blindly ported (just copy paste roms). i have tried about 3-4 roms for this phone, all had major bugs especially battery related. there is only one developer who made a stable rom so far is beingtejas, search his thread. if you really want to use a custom rom, try THIS rom made by gaurav kesarwani with help of beingtejas that is why i am suggesting it you otherwise it didn't worked for me atleast.
Worpe said:
I have a custom rom downloaded. But to flash it, I need to erase everything. That I am unable to do because the recovery dosent wipe data. It led to a bootloop. I got back the stock firmware and tried again and same result. Further more, I cant even factory reset. I'm using TWRP 3.0. Someone please help!
Click to expand...
Click to collapse
Use TWRP 2.8.7. 3.0.0 is a can of bugs...
optimumpro said:
I have a custom rom downloaded. But to flash it, I need to erase everything. That I am unable to do because the recovery dosent wipe data. It led to a bootloop. I got back the stock firmware and tried again and same result. Further more, I cant even factory reset. I'm using TWRP 3.0. Someone please help!
Click to expand...
Click to collapse
Hey You should have to try doing these steps these will helps you-
1.First after wiping cache and dalvik cache FLASH SUPER SU ZIP FILE
2.AFTER THAT FLASH THE ROM AND THEN REBOOT, it will solve the problem.
vickysoni said:
Hey You should have to try doing these steps these will helps you-
1.First after wiping cache and dalvik cache FLASH SUPER SU ZIP FILE
2.AFTER THAT FLASH THE ROM AND THEN REBOOT, it will solve the problem.
Click to expand...
Click to collapse
my internal storage is showing 0 i can download apps from playstore but can't download things from browser can't even take a screen shot
first wipe data and than goto advance wipe options and wipe all but do not wipe microsd
it is success full than install custom rom
can't mount data
I'm using cwm recovery, while factory resetting it can't
mount / data. Please help me.
Thanks

Bootloop after flashing TWRP and wiping data,cache and dalvik

I just want to start by saying that I know how to recover my phone from this but I do not understand why this is happening. I just want to flash back the official rom and then install twrp and do a "factory reset" but after wiping with TWRP my phone gets stuck in bootloop. Am I doing something wrong?
drgx96 said:
I just want to start by saying that I know how to recover my phone from this but I do not understand why this is happening. I just want to flash back the official rom and then install twrp and do a "factory reset" but after wiping with TWRP my phone gets stuck in bootloop. Am I doing something wrong?
Click to expand...
Click to collapse
In TWRP you did 'factory reset' there isn't that option so which partitions did you formated? If you formated system, then is no more OS on your phone so what you trying to turn? xD If you want flash stock then use newest Odin 3.12.7 and learn some guide how to flash stock depend from which version (f.e. 7.x) you're coming. The guides are on that forum.
rifek4 said:
In TWRP you did 'factory reset' there isn't that option so which partitions did you formated? If you formated system, then is no more OS on your phone so what you trying to turn? xD If you want flash stock then use newest Odin 3.12.7 and learn some guide how to flash stock depend from which version (f.e. 7.x) you're coming. The guides are on that forum.
Click to expand...
Click to collapse
It says in the title which partitions I formated (date, cache, dalvik). I know how to flash stock. I will explain again the exact steps I did:
1. Flashed official rom using Odin after having a custom one.
2. I started the phone to check that the rom works.
3. I flashed TWRP 3.1.1 using odin.
4.Wanted to "factory reset" using TWRP, so I wiped cache, dalvik and data partitions.
5.The phone starts in bootloop.
It looks like TWRP doesn't wipe the partitions as is should.
Is not possible to TWRP didn't wiped right partitions. Why you wanted to factory reset if you flashed stock and you got factory settings? Flash stock with Odin again...
You need flash latest SuperSU zip in TWRP to fix the bootloop issue
forumber2 said:
You need flash latest SuperSU zip in TWRP to fix the bootloop issue
Click to expand...
Click to collapse
Maybe that. Personally I never flashed stock in S6 xD
You have to flash the SU Binary after flashing TWRP, else you will face a bootloop
Magisk. No "SuperSU". Then always will be it resolve if be only "Flashed TWRP". (Odin versions doesn't be affect of a bootlops with a 5secs~)
i flashed twrp now stuck in bootloop, not sure how to flash super su now?
fiorezy said:
You have to flash the SU Binary after flashing TWRP, else you will face a bootloop
Click to expand...
Click to collapse
Problem can also be solved after flashing the latest version of Magisk.

I cannot flash TWRP or any Mods

I just got this phone and i have OEM Unlock enabled. I am due to sell my old phone in few days so i am in a bit panic mode right now :\
When i try to flash TWRP along with the instruction that were here (i tried with only applying both or only dm-verity) the phone started to "start" flashing the Samsung logo but nothing happened and after 15-25minutes i tried to install this ROM and it also shows "Starting up please wait" but it also seems to start up indefinately.
Can you tell what is wrong now? It seems i can flash the stock ROM and boot to it but cannot install TWRP/Root nor any custom ROM's :\
Hey bro follow this.
Install stock ROM.
Boot into it once.
And flash TWRP. Disable auto reboot in Odin.
Then boot into TWRP directly from there.
Now swipe to allow modifications.
THEN GO INTO WIPE ADVANCED WIPE AND CLICK FORMAT DATA AND TYPE YES.
After format reboot into recovery once again.
Now again swipe to allow mods.
Now only install Dm-verity.
Reboot.
Now the phone will boot.
Go back into recovery to install your ROM it'll root the phone.
njaya95 said:
Hey bro follow this.
Install stock ROM.
Boot into it once.
And flash TWRP. Disable auto reboot in Odin.
Then boot into TWRP directly from there.
Now swipe to allow modifications.
THEN GO INTO WIPE ADVANCED WIPE AND CLICK FORMAT DATA AND TYPE YES.
After format reboot into recovery once again.
Now again swipe to allow mods.
Now only install Dm-verity.
Reboot.
Now the phone will boot.
Go back into recovery to install your ROM it'll root the phone.
Click to expand...
Click to collapse
Sorry but still no dice (waited for ½hours to boot)
The data wipe did not even succeed. I attached screenshots of data wiping plus no-verity install if there is something anyone could use. I do not really understand how this is so hard... I have never encountered this kind of problem with common phone.
@DARKKi
Did You try to format data or just to wipe? You should click on format data and type "yes"
Dude I clearly mentioned, you have to click format data in advanced wipe. First try to read and understand then proceed. Click format data and then type yes and then you're good to go.
Domino5 said:
@DARKKi
Did You try to format data or just to wipe? You should click on format data and type "yes"
Click to expand...
Click to collapse
njaya95 said:
Dude I clearly mentioned, you have to click format data in advanced wipe. First try to read and understand then proceed. Click format data and then type yes and then you're good to go.
Click to expand...
Click to collapse
Damn. Sorry, i think that when going into advanced wipe there is no format there it's under normal wipe so i only thought that it meant that but yeah my mistake. I should have looked for format data and come to my own conclusions :\
Well first result of format resulted on loop boot and i could not even flash the stock rom with Odin (failed directly) but then i tried to flash TGP ROM via TWRP and it worked! So now i am using the phone as we speak!
Thanks a lot njaya95!
DARKKi said:
Damn. Sorry, i think that when going into advanced wipe there is no format there it's under normal wipe so i only thought that it meant that but yeah my mistake. I should have looked for format data and come to my own conclusions :\
Well first result of format resulted on loop boot and i could not even flash the stock rom with Odin (failed directly) but then i tried to flash TGP ROM via TWRP and it worked! So now i am using the phone as we speak!
Thanks a lot njaya95!
Click to expand...
Click to collapse
Sure no problem, I'm sorry about misleading you about that format data. Have fun with your phone.

after whiping data, phone is stuck and twrp does nothing

Hey guys,
I have a oneplus 6red rooted with magisk and twrp running oreo 5.1.11, today I decided to enter twrp and reset my phone by whiping dalvic, cache and data.
After reboot, phone screen is totall dark but the light indicator was flashing constantly, entering twrp is no succes, twrp screen is stuck like more then 10 mins. I believe that I cant enter twrp to do something about it. I have downloaded the stock 5.1.11 which is an oreo version
Did I do really something wrong ? if yes or no please let me know how to fix this.
abati said:
Hey guys,
I have a oneplus 6red rooted with magisk and twrp running oreo 5.1.11, today I decided to enter twrp and reset my phone by whiping dalvic, cache and data.
After reboot, phone screen is totall dark but the light indicator was flashing constantly, entering twrp is no succes, twrp screen is stuck like more then 10 mins. I believe that I cant enter twrp to do something about it. I have downloaded the stock 5.1.11 which is an oreo version
Did I do really something wrong ? if yes or no please let me know how to fix this.
Click to expand...
Click to collapse
Try bluespark TWRP and flash your OOS zip again and report back. Maybe a magisk flash will help too.
mikex8593 said:
Try bluespark TWRP and flash your OOS zip again and report back. Maybe a magisk flash will help too.
Click to expand...
Click to collapse
thnx, I entered into fastboot mode, then from my pc I when into the fastboot folder to open cmd and boot twrp from there on my device, from there I followed a tutorial how to adb sideload and flash a rom from your pc. Now its working
But I dont understand why a simpel factory whipe through twrp caused all of this, I only wiped dalvic, cache and data.
abati said:
thnx, I entered into fastboot mode, then from my pc I when into the fastboot folder to open cmd and boot twrp from there on my device, from there I followed a tutorial how to adb sideload and flash a rom from your pc. Now its working
But I dont understand why a simpel factory whipe through twrp caused all of this, I only wiped dalvic, cache and data.
Click to expand...
Click to collapse
This may be a side effect of A/B partitioning and no longer having a recovery partition. Remember TWRP is a part of the boot partition now
tabletalker7 said:
This may be a side effect of A/B partitioning and no longer having a recovery partition. Remember TWRP is a part of the boot partition now
Click to expand...
Click to collapse
what would be an alternative sollution to factory reset your phone without all the troubles i witnessed.
abati said:
after whiping data, phone is stuck and twrp does nothing
Click to expand...
Click to collapse
After a whipping I wouldn't be inclined to do much either!
croques said:
After a whipping I wouldn't be inclined to do much either!
Click to expand...
Click to collapse
what do you mean, could you be more clear and specifiek ?
abati said:
what would be an alternative sollution to factory reset your phone without all the troubles i witnessed.
Click to expand...
Click to collapse
Use a fastboot rom. That will wipe EVERYTHING - and guarantee that you have a usable phone afterwards
abati said:
thnx, I entered into fastboot mode, then from my pc I when into the fastboot folder to open cmd and boot twrp from there on my device, from there I followed a tutorial how to adb sideload and flash a rom from your pc. Now its working
But I dont understand why a simpel factory whipe through twrp caused all of this, I only wiped dalvic, cache and data.
Click to expand...
Click to collapse
You probably wiped system that's why you had nothing to boot into
yldlj said:
You probably wiped system that's why you had nothing to boot into
Click to expand...
Click to collapse
i am almost sure that it was data and dalvic cahce and not system, that is what i also explained in my first post.
But how are you sure that it was system wipe ? did you factory reset your op6 multiple times without issue through twrp ?
phone is fixed btw
abati said:
i am almost sure that it was data and dalvic cahce and not system, that is what i also explained in my first post.
But how are you sure that it was system wipe ? did you factory reset your op6 multiple times without issue through twrp ?
phone is fixed btw
Click to expand...
Click to collapse
Its the easy answer, say that you wiped system or such.
If you wiped Data with Magisk installed, without flashing the stock kernel, you won't be able to boot, since Magisk stores stuff necessary to boot on Data.
Usually, people is stuck on a infinite bucle on TWRP after this, you couldn't even enter TWRP? that's new. The issue you're telling sounds like you changed slot in TWRP somehow to an unused one or something like that, never heard of that.
abati said:
i am almost sure that it was data and dalvic cahce and not system, that is what i also explained in my first post.
But how are you sure that it was system wipe ? did you factory reset your op6 multiple times without issue through twrp ?
phone is fixed btw
Click to expand...
Click to collapse
Yeah I have wiped data in twrp with no issues. TBH it just sounds like there was no system to boot into. Wiping data is just that and shouldn't make the phone unbootable. Also you fixed the issue by flashing OOS which makes me believe this also. If you want to factory reset your phone the best way is to do it through settings.

Where did the access to Recovery go ?

Hello,
Where did the access to Recovery go ?
since the last update...
phileg said:
Hello,
Where did the access to Recovery go ?
since the last update...
Click to expand...
Click to collapse
What do you mean exactly?
Since Android 12, no more access to the original Recovery to make a Wip Cache
You can still access original recovery just like always, but it is correct that they removed the ability to wipe cache in it.
In lineage os 19+ recovery , the setting to wipe cache is located under factory reset for some reason.

Categories

Resources