peter twrp replaced by stock after first boot - Xiaomi Redmi Note 7 Pro Questions & Answers

I unlocked bl and flashed Peter twrp using command fastboot flash recovery recovery. img it shows success. Now if I go to twrp from fastboot directly via vol. Up + power it will boot to twrp as normal but after first boot it automatically replaced by stock mi recovery 3.0? What should I do now?

hackermssharma said:
I unlocked bl and flashed Peter twrp using command fastboot flash recovery recovery. img it shows success. Now if I go to twrp from fastboot directly via vol. Up + power it will boot to twrp as normal but after first boot it automatically replaced by stock mi recovery 3.0? What should I do now?
Click to expand...
Click to collapse
Try flashing it once more and this time try switching off the phone and then reboot to recovery..

Naveenthemi said:
Try flashing it once more and this time try switching off the phone and then reboot to recovery..
Click to expand...
Click to collapse
Can u please elaborate? After flashing i used fastboot reboot command and after just that by vol + button i entered in twrp but it will still replaced by stock after first boot.
I also did after flashing reboot to system from fastboot screen and then try to boot via vol.+ and power button but it will get replaced.

hackermssharma said:
Can u please elaborate? After flashing i used fastboot reboot command and after just that by vol + button i entered in twrp but it will still replaced by stock after first boot.
I also did after flashing reboot to system from fastboot screen and then try to boot via vol.+ and power button but it will get replaced.
Click to expand...
Click to collapse
What I meant was, flash the TWRP again( this time try 3.3.1-5), once flashed power off the device, now try booting into TWRP, now boot to system and check if it still gets replaced...

Naveenthemi said:
What I meant was, flash the TWRP again( this time try 3.3.1-5), once flashed power off the device, now try booting into TWRP, now boot to system and check if it still gets replaced...
Click to expand...
Click to collapse
How to power off from fastboot after flashing twrp?

hackermssharma said:
How to power off from fastboot after flashing twrp?
Click to expand...
Click to collapse
Hold the power button for long enough and I personally think flashing 3.3.1-5 would fix this as some people have reported issues like this only after flashing to 3.3.1-6

Naveenthemi said:
Hold the power button for long enough and I personally think flashing 3.3.1-5 would fix this as some people have reported issues like this only after flashing to 3.3.1-6
Click to expand...
Click to collapse
Fixied after formating the data before first boot.
Sent from my Redmi Note 7 Pro using XDA Labs

hackermssharma said:
Fixied after formating the data before first boot.
Click to expand...
Click to collapse
Format!? Never had to do that on Peter's..

Naveenthemi said:
Format!? Never had to do that on Peter's..
Click to expand...
Click to collapse
Without formating it will always replaced by mi recovery i tried both 6 and 5 versions everything. Finally formating fixed the problem.
Sent from my Redmi Note 7 Pro using XDA Labs

hackermssharma said:
Without formating it will always replaced by mi recovery i tried both 6 and 5 versions everything. Finally formating fixed the problem.
Click to expand...
Click to collapse
Damn ok...

hackermssharma said:
Without formating it will always replaced by mi recovery i tried both 6 and 5 versions everything. Finally formating fixed the problem.
Sent from my Redmi Note 7 Pro using XDA Labs
Click to expand...
Click to collapse
How to format data
with fastboot command

gsunil said:
How to format data
with fastboot command
Click to expand...
Click to collapse
No install the twrp from fastboot then boot to twrp (by holding power + vol down) then in twrp formate the data ( dont wipe anything just formate).
Sent from my Redmi Note 7 Pro using XDA Labs

Related

[Q] Stuck in boot loop after recovery attempt

I'm trying to recover to stock after having a custom ROM for a few days (Cyanogenmod, nothing too fancy).
I was using this guide over on the Nexus dev forum:
http://forum.xda-developers.com/showthread.php?t=2513701
Everything went smoothly until after I flashed the bootunlocker zip to revert the tampered flag back to normal. Then the reboot loop happened.
I've flashed multiple times using both methods to no avail. I also updated the driver on Windows 7.
dabockster said:
I'm trying to recover to stock after having a custom ROM for a few days (Cyanogenmod, nothing too fancy).
I was using this guide over on the Nexus dev forum:
http://forum.xda-developers.com/showthread.php?t=2513701
Everything went smoothly until after I flashed the bootunlocker zip to revert the tampered flag back to normal. Then the reboot loop happened.
I've flashed multiple times using both methods to no avail. I also updated the driver on Windows 7.
Click to expand...
Click to collapse
Try to get into recovery and clear the caches and do a data factory reset. Just hold power down and power at the same time and select recovery.
gee2012 said:
Try to get into recovery and clear the caches and do a data factory reset. Just hold power down and power at the same time and select recovery.
Click to expand...
Click to collapse
This works, and it gets me working again. But I would like to reset that flag if possible. It all breaks when I flash the zip found here:
http://forum.xda-developers.com/showthread.php?t=2239421
The NexusBootUnlocker script is what is being referenced in the restoration guide.
dabockster said:
This works, and it gets me working again. But I would like to reset that flag if possible. It all breaks when I flash the zip found here:
http://forum.xda-developers.com/showthread.php?t=2239421
The NexusBootUnlocker script is what is being referenced in the restoration guide.
Click to expand...
Click to collapse
Did you boot into TWRP to flash the Bootlocker.zip? In cmd type `fastboot boot twrp.img` (or the name you have given it) and reboot?
dabockster said:
This works, and it gets me working again. But I would like to reset that flag if possible. It all breaks when I flash the zip found here:
http://forum.xda-developers.com/showthread.php?t=2239421
The NexusBootUnlocker script is what is being referenced in the restoration guide.
Click to expand...
Click to collapse
You can use that script with twrp by booting it as mentiomed above or if u r rooted then u can also use nexus bootunlocker from play store.
gee2012 said:
Did you boot into TWRP to flash the Bootlocker.zip? In cmd type `fastboot boot twrp.img` (or the name you have given it) and reboot?
Click to expand...
Click to collapse
Yep. I have done the guide to the letter and followed the video. Nothing.
And it might be worth noting that I am doing this on a red Nexus 5 (the new color). Maybe Google changed something?
dabockster said:
Yep. I have done the guide to the letter and followed the video. Nothing.
And it might be worth noting that I am doing this on a red Nexus 5 (the new color). Maybe Google changed something?
Click to expand...
Click to collapse
No, that doesn`t make a difference. What do you see when you type in cmd: `fastboot oem device-info` with the phone in bootloader?
gee2012 said:
No, that doesn`t make a difference. What do you see when you type in cmd: `fastboot oem device-info` with the phone in bootloader?
Click to expand...
Click to collapse
It shows that the bootloader is locked and the tampering flag is false, just like the tutorial said. However, normal boot results in a loop.
dabockster said:
It shows that the bootloader is locked and the tampering flag is false, just like the tutorial said. However, normal boot results in a loop.
Click to expand...
Click to collapse
So it worked, now go into recovery and wipe the caches and do a data factory reset and then it should boot normaly.
Don't use the zip then. Unlock the bootloader, root the phone and download bootunlocker app.
Then, reset tamper and lock from the app. Unroot using supersu
Sent from my Nexus 5 using Tapatalk
gee2012 said:
So it worked, now go into recovery and wipe the caches and do a data factory reset and then it should boot normally.
Click to expand...
Click to collapse
Nope, won't boot to recovery. All I have is the adb at the bootloader.
EDIT: Tried unplugging the USB while it was booting. This fixed everything! Thanks for the help!
dabockster said:
Nope, won't boot to recovery. All I have is the adb at the bootloader.
Click to expand...
Click to collapse
What happens when you type in cmd: fastboot reboot recovery ?
dabockster said:
Nope, won't boot to recovery. All I have is the adb at the bootloader.
Click to expand...
Click to collapse
When you say it won't boot into recovery do you get the dead android with the red exclamation mark? That is recovery just hit vol up
Sent from my Nexus 5
dabockster said:
Nope, won't boot to recovery. All I have is the adb at the bootloader.
Click to expand...
Click to collapse
You can't use adb at the bootloader
Only fastboot works
Sent from my Nexus 5 using Tapatalk
So I just tried booting it while unplugged from my computer and it worked flawlessly. This bit should be added to future unroot guides.
Thanks for the help!

How to Flash Custom Recovery ?

can some one tell me how to root and how to Flash Custom Recovery ? STep by Step would be great.
I'm also looking for a step by step guide.
ps2lover said:
can some one tell me how to root and how to Flash Custom Recovery ? STep by Step would be great.
Click to expand...
Click to collapse
ohmigother said:
I'm also looking for a step by step guide.
Click to expand...
Click to collapse
For step by step, you guys can check this site.
beritahuaja.blogspot.my/2015/10/how-to-root-xiaomi-mi4c.html?en
For latest TWRP recovery, check here to choose the correct recovery and download
en.miui.com/thread-169401-1-1.html
Note: after download, replace your latest TWRP .img to overwrite the recovery.img
Flashed TWRP 2.8.7.0 and then flashed super su 2.46. Successfully rooted. Works like a charm.
Sent using xda premium
I keep failing to installl the recovery.
I do all the fastboot stuff then boot to recovery and it's always mi recovery not twrp
https://imgur.com/S2hsDgC
what now?
w1ll1m said:
I keep failing to installl the recovery.
I do all the fastboot stuff then boot to recovery and it's always mi recovery not twrp
https://imgur.com/S2hsDgC
what now?
Click to expand...
Click to collapse
Try another way here, for entering twrp.
After you flashed the recovery successfully. Do not type the command of "fastboot reboot".
On your phone, press and hold the POWER and UP VOLUME buttons together until you enter the TWRP recovery. (It will power off and boot up recovery)
Note: Do not let it boot to normal system startup. This this case, you need to reflash the recovery via fastboot and follow the steps above again.
After you have root the phone successfully, you can enter the TWRP recovery without flashing via fastboot already.
Hope above help you.
keatbo said:
Try another way here, for entering twrp.
After you flashed the recovery successfully. Do not type the command of "fastboot reboot".
On your phone, press and hold the POWER and UP VOLUME buttons together until you enter the TWRP recovery. (It will power off and boot up recovery)
Note: Do not let it boot to normal system startup. This this case, you need to reflash the recovery via fastboot and follow the steps above again.
After you have root the phone successfully, you can enter the TWRP recovery without flashing via fastboot already.
Hope above help you.
Click to expand...
Click to collapse
Thanks, I will gice it a try.
Need to charge laptop battery first
Edit
What you said works, however there is a problem.
The touchscreen doesn't recognise any touches.
Edit
It's working now. That was weird
w1ll1m said:
Thanks, I will gice it a try.
Need to charge laptop battery first
Edit
What you said works, however there is a problem.
The touchscreen doesn't recognise any touches.
Edit
It's working now. That was weird
Click to expand...
Click to collapse
If the touches screen doesn't work, It might be the TWRP recovery issue. You can try flash other version to solve the problem.
Anyway, great to know everything works for you now.
I've this issue.
TWRP is installed but:
- if I boot via [power]+[vol+] I enter in old stock recovery
- if I boot via fastboot using command "fastboot boot recovery.img", TWRP is loaded correctly
You said:
keatbo said:
Try another way here, for entering twrp.
After you flashed the recovery successfully. Do not type the command of "fastboot reboot".
Click to expand...
Click to collapse
Ok this point
keatbo said:
On your phone, press and hold the POWER and UP VOLUME buttons together until you enter the TWRP recovery. (It will power off and boot up recovery)
Click to expand...
Click to collapse
--> you mean I have to do this while phone is still in fastboot mode?
---------- Post added at 10:15 AM ---------- Previous post was at 10:03 AM ----------
keatbo said:
If the touches screen doesn't work, It might be the TWRP recovery issue. You can try flash other version to solve the problem.
Click to expand...
Click to collapse
on my mi4c, when I boot TWRP 2.8.7.1, touchscreen NEVER works at first time.
But if I wait 2-3 minutes, leaving phone running TWRP, after this touchscreen start working
_PeTiT_ said:
--> you mean I have to do this while phone is still in fastboot mode?
Click to expand...
Click to collapse
Yes do it while in fastboot mode.
on my mi4c, when I boot TWRP 2.8.7.1, touchscreen NEVER works at first time.
But if I wait 2-3 minutes, leaving phone running TWRP, after this touchscreen start working
Click to expand...
Click to collapse
Yes very first time after I flashed and entered the TWRP recovery successfully, I need to wait for few minutes and the touchscreen only start working.
Then I have flashed a few other versions of TWRP, I have forgotten which one I have flashed already, my TWRP recovery works immediately without any touchscreen issue.
Is twrp available from flashify?
https://play.google.com/store/apps/details?id=com.cgollner.flashify
I just created a guide here: http://forum.xda-developers.com/mi-4c/development/flash-twrp-using-flashify-app-pc-dev-rom-t3230355

Need Help. Nexus 5 says google when trying to turn on

I was trying to get the latest twrp '2.8.7.2'. I downloaded it and flashed the img to recovery and nothing seemed to happen so I tried flashing it to boot then I tried to reboot the system. Now when I try to turn it on I get stuck on the Google like it is turning but it just gets stuck. I tried Charging it now when I charge it I get stuck on the battery logo. When I try booting it Booting it into recovery(twrp) I get a black screen. I can tell the Screen is on because of the dim glow it gives off but it is not doing anything. Note: I am some what of a noob when it comes to this stuff, My nexus 5 was running Marshmallow, and I was running the Xtra smooth rom (it is very close to stock). Plz help. I have also just found out that the reason im getting the bootloop is I flashed the wrong version of TWRP need a fix PLZ HELP.
Did you try flashing stock recovery or twrp 2.8.7.1?
audit13 said:
Did you try flashing stock recovery or twrp 2.8.7.1?
Click to expand...
Click to collapse
I cant flash anything because it is stuck. If you can tell me how to do that it would be great. also I gave you the thanks thing.
Judah04 said:
I cant flash anything because it is stuck. If you can tell me how to do that it would be great. also I gave you the thanks thing.
Click to expand...
Click to collapse
All you have to do is boot into your bootloader (Power + Volume Up + Volume Down at the same time) and flash the stock recovery.
fastboot flash recovery recovery.img
Chances are you flashed an incorrect version of TWRP meant for another phone hence the boot loop.
asawoszc said:
All you have to do is boot into your bootloader (Power + Volume Up + Volume Down at the same time) and flash the stock recovery.
fastboot flash recovery recovery.img
Chances are you flashed an incorrect version of TWRP meant for another phone hence the boot loop.
Click to expand...
Click to collapse
When i boot into recovery mode the screen is on but it is black.
asawoszc said:
All you have to do is boot into your bootloader (Power + Volume Up + Volume Down at the same time) and flash the stock recovery.
fastboot flash recovery recovery.img
Chances are you flashed an incorrect version of TWRP meant for another phone hence the boot loop.
Click to expand...
Click to collapse
Also yes i do think I flashed the wrong TWRP. how do I flash the correct TWRP when I can't even get back into a tool to flash it?
Judah04 said:
When i boot into recovery mode the screen is on but it is black.
Click to expand...
Click to collapse
You dont need recovery, you need bootloader.
telep said:
You dont need recovery, you need bootloader.
Click to expand...
Click to collapse
Can you please explain to me exactly what to do. thank you. also my bootloader is unlocked. I also can get to fastboot so what is the diffrence between bootloader and fastboot.
Hold down the volume +, volume -, and power button. You'll be taken to a screen with the word START at the top. Now, connect the phone to your Windows computer using the USB cable, open a command prompt and type "fastboot flash recovery nameof twrpfile.img", press the enter key, use the volume button to select recovery, use the power button to enter recovery, press the power button, press volume + button, and you should enter TWRP.
Thank you but I do not own a windows computer
Then look up the respective commands. You flashed twrp over your kernel, you need to flash a proper boot.img (kernel) if you want the phone to boot. Fastboot is ran through bootloader. Flash the proper kernel in bootloader using fastboot.
wangdaning said:
Then look up the respective commands. You flashed twrp over your kernel, you need to flash a proper boot.img (kernel) if you want the phone to boot. Fastboot is ran through bootloader. Flash the proper kernel in bootloader using fastboot.
Click to expand...
Click to collapse
Thank you this sounds like it will work. But can you put it in more simple terms and give me links? plz. thx in advance.
Do you have access to a Windows computer to flash the commands? How did you flash TWRP?
audit13 said:
Do you have a computer?
Click to expand...
Click to collapse
I have a macbok air running mac os x 10.5.8.
audit13 said:
Do you have access to a Windows computer to flash the commands? How did you flash TWRP?
Click to expand...
Click to collapse
I flashed TWRP using the TWRP app it installed TWRP 2.8.7.1 I also unlocked the bootloader with a similar app.
This might help: http://forum.xda-developers.com/goo...olkit-root-twrp-recovery-unroot-11-6-t2515640
audit13 said:
This might help: http://forum.xda-developers.com/goo...olkit-root-twrp-recovery-unroot-11-6-t2515640
Click to expand...
Click to collapse
Just cheked it out I tried it and it didn't work but thx anyway. btw I am running android 6.0.
audit13 said:
This might help: http://forum.xda-developers.com/goo...olkit-root-twrp-recovery-unroot-11-6-t2515640
Click to expand...
Click to collapse
It might not have been working because I did not enable USB Debuging. :crying:
USB debugging is required for adb commands. With fastboot mode, debugging isn't necessary.
audit13 said:
USB debugging is required for adb commands. With fastboot mode, debugging isn't necessary.
Click to expand...
Click to collapse
Can you please walk me through this i am some what of a beginner when it comes to some of these things. I can try the tool kits agin but need help.

Can't flash TWRP [Oxygen OS & OnePlus recovery]

I am on Oxygen OS (2.1.4) with OnePlus recovery and am trying to install TWRP recovery without any success.
I followed the fastboot method rather than the stupid toolkit
All the steps go through easily with success messages but every time after completion I boot into recovery, it still is OnePlus Recovery and not TWRP
Note - There's not option called "Update Cyanogen recovery" to uncheck under developer options because as I said, I'm on OnePlus Recovery
P.S - I have a Mac and followed the tutorial via terminal under the path ~/Library/Android/sdk/platform-tools
Nimsrules said:
I am on Oxygen OS (2.1.4) with OnePlus recovery and am trying to install TWRP recovery without any success.
I followed the fastboot method rather than the stupid toolkit
All the steps go through easily with success messages but every time after completion I boot into recovery, it still is OnePlus Recovery and not TWRP
Note - There's not option called "Update Cyanogen recovery" to uncheck under developer options because as I said, I'm on OnePlus Recovery
P.S - I have a Mac and followed the tutorial via terminal under the path ~/Library/Android/sdk/platform-tools
Click to expand...
Click to collapse
After it successfully flashes TWRP
Turn off the phone by long pressing button, do not fastboot reboot
Then use power button + volume up combo and it should boot to TWRP
Renosh said:
After it successfully flashes TWRP
Turn off the phone by long pressing button, do not fastboot reboot
Then use power button + volume up combo and it should boot to TWRP
Click to expand...
Click to collapse
I think you missed the entire premise. I'm not able to flash TWRP over the OnePlus Recovery in the first place let alone boot into it.
Nimsrules said:
I think you missed the entire premise. I'm not able to flash TWRP over the OnePlus Recovery in the first place let alone boot into it.
Click to expand...
Click to collapse
He was correct. Try that.
drmuruga said:
He was correct. Try that.
Click to expand...
Click to collapse
I'm afraid he wasn't. However, instead of keep trying to install TWRP, I simply booted into its image via
Code:
./fastboot boot recovery.img
and flashed Paranoid Android.
Nimsrules said:
I'm afraid he wasn't. However, instead of keep trying to install TWRP, I simply booted into its image via and flashed Paranoid Android.
Click to expand...
Click to collapse
You claimed all the steps went through successfully which can only mean you fastboot flashed TWRP (fastboot flash recovery recovery.img) and it showed success but if you reboot to recovery its still Oxygen recovery.
Your wording was misleading. My advise only applies if the flash was successful.
Do not reboot after flashing twrp, you have to shutdown, off the phone after flashing twrp...If you reboot, stock recovery will overwrite twrp..All you have to do is very simple, fastboot twrp, off the phone, enter twrp ( power + volume down) and done!...twrp will forever be your recovery..
Sent from my A0001 using Tapatalk
Did it worked?
Nimsrules said:
I'm afraid he wasn't. However, instead of keep trying to install TWRP, I simply booted into its image via
Code:
./fastboot boot recovery.img
and flashed Paranoid Android.
Click to expand...
Click to collapse
Did it worked? I'm in the same situation.
I own a Oneplus one with OxygenOs and I'm trying to change it to lineage but the new flashed TWRP is not showing up when entering at recovery mode.
Where did you enter the code? In your abd path by terminal or at the phone's path by x?
It works!
Renosh said:
After it successfully flashes TWRP
Turn off the phone by long pressing button, do not fastboot reboot
Then use power button + volume up combo and it should boot to TWRP
Click to expand...
Click to collapse
It works for me using volume down+power button. Thank you!

Fastboot, ADB and MiFlash don't recognize device

hello guys,
I wanted to do a clean flash of my poco f2 pro. Installed MiFlash, put the device in fastboot mode (it got recognized) and then klicked flash. the device immediately disappered from miflash and nothing was flashed. I can still boot into rom (Evolution X 4.7) but I have following symptoms:
1. Wifi does not work anymore
2. ADB, Fastboot and MiFlash do not recognize the device
3. TWRP (Chinese One) does not ask for unlock code and shows no sdcard contents (but Its there bc I can boot normally with data) --> DATA Partiton is not found.
4. TWRP Nandroid Backup is gone
I tried multiple Computers, Cables and ADB`s... What is the problem?
Could it be a faulty partition? Which one?
Please help me
Which version of Miflash?
NOSS8 said:
Which version of Miflash?
Click to expand...
Click to collapse
newest (20181115)
is the phone boot in fastboot?
check drivers in miflash.
NOSS8 said:
is the phone boot in fastboot?
check drivers in miflash.
Click to expand...
Click to collapse
Phone does boot in fastboot. It just does not get recognised by MiFlash
What happens when you press power and volume + or volume -?
NOSS8 said:
What happens when you press power and volume + or volume -?
Click to expand...
Click to collapse
Boots into Fastboot/TWRP. I did a full reset in twrp now and pushed a rom over via mounting and flashed it. hopefully it works...
Remenber TWRP backup does not work
NOSS8 said:
Remenber TWRP backup does not work
Click to expand...
Click to collapse
It just boots endlessly now I think.
Data loss is not important to me. I want fastboot to work
If fastboot work flash with miflah.
NOSS8 said:
If fastboot work flash with miflah.
Click to expand...
Click to collapse
You dont understand....It boots into fastboot but miflash wont show the device!!
is the pc see the device?
try repair in twrp
NOSS8 said:
is the pc see the device?
try repair in twrp
Click to expand...
Click to collapse
does not boot into twrp anymore... only fastboot. and fastboot des not get recognized
Maybe here https://forum.xda-developers.com/t/...ution-on-forums-google-friends.4199267/page-7
NOSS8 said:
Maybe here https://forum.xda-developers.com/t/...ution-on-forums-google-friends.4199267/page-7
Click to expand...
Click to collapse
thank you for your help but I think I am stuck here. No way to connect to fastboot and it does not boot into sth else than fastboot
If adb work try reflash twrp.
Is your phone rooted?
And power +volume -? volume +?
Premaider said:
hello guys,
I wanted to do a clean flash of my poco f2 pro. Installed MiFlash, put the device in fastboot mode (it got recognized) and then klicked flash. the device immediately disappered from miflash and nothing was flashed. I can still boot into rom (Evolution X 4.7) but I have following symptoms:
1. Wifi does not work anymore
2. ADB, Fastboot and MiFlash do not recognize the device
3. TWRP (Chinese One) does not ask for unlock code and shows no sdcard contents (but Its there bc I can boot normally with data) --> DATA Partiton is not found.
4. TWRP Nandroid Backup is gone
I tried multiple Computers, Cables and ADB`s... What is the problem?
Could it be a faulty partition? Which one?
Please help me
Click to expand...
Click to collapse
Hey, I am having the same issue, were you able to find a solution?

Categories

Resources