Redmi Note 4: TWRP Recovery of Stock ROM and Unlocking after relock - Xiaomi Redmi Note 4 Questions & Answers

I have extensively searched this forum and couldn't find to answers to the following!
Looking for experts to guide..
Query #1: TWRP Backup of Stock ROM causes bootloop!
I had unlocked Bootloader of Redmi Note 4 and used temporary TWRP (fastboot boot twrp.img) to take a backup of stock ROM and found that the device cannot boot back into Stock ROM.
I had tried to restore 'boot.img' using the TWRP stock ROM backup (and also from downloaded stock ROM) but that didnt help.
Same problem seen in Redmi 4 as well.
When booted to TWRP using fastboot boot (without flashing), in which partition TWRP is stored (boot or cache)?
After I had booted into TWRP (without flashing), is the backup of boot partition that I took still a stock version one?
Query #2: Relocking and unlocking Bootloader
I had unlocked bootloader using the MiFlash unlock tool (miflash_unlock-en-3.5.1108.44).
If I relock the bootloader using the MiFlash tool, would I need MiFlash unlock tool again to unlock or would 'fastboot flashing unlock' work?
Thank you!

n.dnivra said:
I have extensively searched this forum and couldn't find to answers to the following!
Looking for experts to guide..
Query #1: TWRP Backup of Stock ROM causes bootloop!
I had unlocked Bootloader of Redmi Note 4 and used temporary TWRP (fastboot boot twrp.img) to take a backup of stock ROM and found that the device cannot boot back into Stock ROM.
I had tried to restore 'boot.img' using the TWRP stock ROM backup (and also from downloaded stock ROM) but that didnt help.
Same problem seen in Redmi 4 as well.
When booted to TWRP using fastboot boot (without flashing), in which partition TWRP is stored (boot or cache)?
After I had booted into TWRP (without flashing), is the backup of boot partition that I took still a stock version one?
Query #2: Relocking and unlocking Bootloader
I had unlocked bootloader using the MiFlash unlock tool (miflash_unlock-en-3.5.1108.44).
If I relock the bootloader using the MiFlash tool, would I need MiFlash unlock tool again to unlock or would 'fastboot flashing unlock' work?
Thank you!
Click to expand...
Click to collapse
1. That bootloop *probably* happened because you swiped the "allow modification option" in twrp.
(One more advice : in twrp backup you should backup the "system image" and "vendor image" not the "system" and "vendor", If you don't want bootloop after restoring. (Or If you got a bootloop already flash that verity removal zip)
2. You will need mi unlock again.

Related

[GUIDE] Restoring Stock ROM, Recovery, Unbrick, and Rooting 5.0 on Padfone S

I had stuck on ASUS logo, after I do a lot of researches, a lot of trials and errors for 4 hours. I managed to fix them and I wanted to share how I did here.
Easiest way to root lollipop WW-12.2.2.27
use KingRoot from http://www.kingroot.net/down ,It is android app which will run exploit to root the device successfully.
Not Kingoroot Kingoroot was unable to root. Towelroot v1 works only on Kitkat, but not lollipop.
To boot into fastboot mode
adb reboot bootloader
OR turn off device, press and hold power and volume up, until asus logo appear, and stuck at asus logo, that is fastboot mode, to exit fastboot with buttons, press and hold vol down and power button.
To restore stock recovery and ROM after you install TWRP or CWM, or unbrick device
First, note that stock recovery from http://forum.xda-developers.com/showpost.php?p=59055653&postcount=29, does not work for me (maybe everyone else as well).
I flashed it using fastboot flash recovery recovery.img, when I try to boot into recovery using, vol down and power, then select enter recovery, it stucks at asus logo.
First you need to flash TWRP_2.8.7.0.img from http://quarx2k.ru/asus_padfone_s/recovery/
using fastboot flash recovery TWRP_2.8.7.0.img It will show that flashing FAILED (remote: can't flash unsigned image), it fact, it was succeeded, now you can go ahead and boot to recovery.
Note that this version of TWRP, and 2.8.6.0, and CWM cannot successfully flash stock zip ROM, it may show errors, or when you try to boot the device, it will stuck at ASUS logo. But now, we are going to need TWRP_2.8.7.0 to unlock bootloader.
Let's unlock bootloader
simply flash http://quarx2k.ru/asus_padfone_s/CrowLock_RC3.zip with TWRP
You can check bootloader status with fastboot oem device-info
Before unlock :
(bootloader) Device unlocked: false
After unlock
(bootloader) Device unlocked: true
Let's flash stock Kitkat Firmware
You have to unlock bootloader becuase, well it is complicated.
The only TWRP recovery that can successfully flash stock .zip firmware from ASUS is http://datbak.com/links/padfone_s/asus_t00n_twrp_2_7_1_1.img
But this recovery has another bug, if you flash recovery and try to boot to recovery, you will get blank screen, but TWRP is indeed working, you touch the screen and it vibrates back. Anyway you have tofastboot flash recovery asus_t00n_twrp_2_7_1_1.img because it will be needed later for upgrading Kitkat to Lollipop.
If you don't unlock bootloader, you will not be able to boot into recovery directly without flashing to recovery partition Now let's get into fastboot mode, and fastboot boot asus_t00n_twrp_2_7_1_1.img, by booting into this recovery directly via fastboot without flashing it first, you will not get black screen bug of this recovery., if you boot to this recovery from recovery partition, you will get black screen as I told previously.
Now let's flash downgrade to 4.4.2 firmware from http://dlcdnet.asus.com/pub/ASUS/Mobile_Phone/PadFone_S/UL-ASUS_T00N-WW-99.99.99.0-user-wipedata.zip with TWRP 2.7.1.1.
This is for only WW SKU, not TW SKU. And all userdata will be wiped.
Browse all firmwares and there is TW SKU downgrade here : https://www.asus.com/Phone/PadFone_S_PF500KL/HelpDesk_Download/
Ok, now reboot to system, and yeah, it finally boots now.
The recovery is still TWRP, not stock one, let's upgrade to lollipop and restore stock recovery using TWRP. Simply place http://dlcdnet.asus.com/pub/ASUS/Mobile_Phone/PadFone_S/UL-ASUS_T00N-WW-12.2.2.27-user.zip to root of Internal Memory, unplug usb, press confirmation in notification to begin install lollipop. After device reboot, it will stay blank screen for 5 minutes, don't worry, it is updating to lollipop, after upgrade is done, it will reboot, and recovery will be restored to stock recovery now.
Bootloader is still unlocked.
Another method to root is
fastboot flash recovery asus_t00n_twrp_2_7_1_1.img (recovery is restored to stock now remember)
then flash https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip?retrieve_file=1 with TWRP.
To lock bootloader again, boot into fastboot
then fastboot oem reset-dev_info
But I wouldn't recommend you to lock bootloader, you will lose ability to boot to TWRP recovery without replacing stock recovery, unless you are going to send your device to service center and claim warranty.
Files, fastboot and recoveries and bootloader unlock and super su for rooting
asus_t00n_twrp_2_7_1_1.rar https://mega.nz/#!355UmTCb!0Jn-0wlbGHG7lir8u9vq1l8BrR3dsepDdigqfJ9wRPk
twrp_2.8.7.0.rar https://mega.nz/#!GwRRBBjT!8ms39GK62XHairHOrxlmNJCwA-bDeaKA816Cg4lsQr0
Will this work for S Plus model?
It wont, using files from this thread might brick the device.
Sent from my SM-N910C using XDA Free mobile app
Hi im a noob so ill get straight to the point.
You said "Note that this version of TWRP, and 2.8.6.0, and CWM cannot successfully flash stock zip ROM, it may show errors, or when you try to boot the device, it will stuck at ASUS logo."
I have two question as follow:
1. So can i use twrp to flash stock rom or not?
2. Because I'm still at Kit Kat, I dont need to unlock bootloader and flash Kit Kat firmware right?
3. If so, Can I follow the tutorial until flashing the TWRP? but which TWRP that I need to install?
4. All these tutorial to unbrick needs to be done before you brick your phone right? What should i do if i already brick my phone?
Kindly advise.
ChevanLemon said:
Hi im a noob so ill get straight to the point.
You said "Note that this version of TWRP, and 2.8.6.0, and CWM cannot successfully flash stock zip ROM, it may show errors, or when you try to boot the device, it will stuck at ASUS logo."
I have two question as follow:
1. So can i use twrp to flash stock rom or not?
2. Because I'm still at Kit Kat, I dont need to unlock bootloader and flash Kit Kat firmware right?
3. If so, Can I follow the tutorial until flashing the TWRP? but which TWRP that I need to install?
4. All these tutorial to unbrick needs to be done before you brick your phone right? What should i do if i already brick my phone?
Kindly advise.
Click to expand...
Click to collapse
The only TWRP recovery that can successfully flash stock .zip firmware from ASUS is asus_t00n_twrp_2_7_1_1.img
If you are bricked, but you can still access fastboot mode, then you can unbrick and reflash stock firmware to your phone
First of all, Thank you so much for this GUIDE
Here are my doubts, and hoping for confirmation from you. My Padfone S is running well on latest kitkat firmware, rooted with SuperSu and TWRP 2.7.1.1 installed. Now, I wished to upgrade to Lollipop firmware.
Can I use the TWRP 2.7.1.1 to clean install the lollipop firmware instead of the stock recovery because I wished to wipe date, cache as well as SYSTEM before flashing?
My concern is I afraid if wipe the SYSTEM then the TWRP 2.7.1.1 would not be able to flash the Lollipop firmware successfully. Do I need to unlock bootloader in my case?
If I can do so, then can I still use the Flashify to flash TWRP 2.7.1.1 on the lollipop firmware, or I must use "fastboot flash recovery TWRP_2.8.7.0.img" method.
Thanks in advance for your kindly reply.:laugh:
Bootlooped
When I am upgrading my SuperSU and it requires a reboot,it automatically boot looped itself.
What should I do?
Linux4ever85 said:
Will this work for S Plus model?
Click to expand...
Click to collapse
Yes it work. Mine is Asus Padfone S Plus. Got bootloop problem. I have followed ninekaw guide. Thanks Ninekaw. U have save my precious padfone s plus
ninekaw9 said:
I had stuck on ASUS logo, after I do a lot of researches, a lot of trials and errors for 4 hours. I managed to fix them and I wanted to share how I did here.
Easiest way to root lollipop WW-12.2.2.27
use KingRoot from http://www.kingroot.net/down ,It is android app which will run exploit to root the device successfully.
Not Kingoroot Kingoroot was unable to root. Towelroot v1 works only on Kitkat, but not lollipop.
To boot into fastboot mode
adb reboot bootloader
OR turn off device, press and hold power and volume up, until asus logo appear, and stuck at asus logo, that is fastboot mode, to exit fastboot with buttons, press and hold vol down and power button.
To restore stock recovery and ROM after you install TWRP or CWM, or unbrick device
First, note that stock recovery from http://forum.xda-developers.com/showpost.php?p=59055653&postcount=29, does not work for me (maybe everyone else as well).
I flashed it using fastboot flash recovery recovery.img, when I try to boot into recovery using, vol down and power, then select enter recovery, it stucks at asus logo.
First you need to flash TWRP_2.8.7.0.img from http://quarx2k.ru/asus_padfone_s/recovery/
using fastboot flash recovery TWRP_2.8.7.0.img It will show that flashing FAILED (remote: can't flash unsigned image), it fact, it was succeeded, now you can go ahead and boot to recovery.
Note that this version of TWRP, and 2.8.6.0, and CWM cannot successfully flash stock zip ROM, it may show errors, or when you try to boot the device, it will stuck at ASUS logo. But now, we are going to need TWRP_2.8.7.0 to unlock bootloader.
Let's unlock bootloader
simply flash http://quarx2k.ru/asus_padfone_s/CrowLock_RC3.zip with TWRP
You can check bootloader status with fastboot oem device-info
Before unlock :
(bootloader) Device unlocked: false
After unlock
(bootloader) Device unlocked: true
Let's flash stock Kitkat Firmware
You have to unlock bootloader becuase, well it is complicated.
The only TWRP recovery that can successfully flash stock .zip firmware from ASUS is http://datbak.com/links/padfone_s/asus_t00n_twrp_2_7_1_1.img
But this recovery has another bug, if you flash recovery and try to boot to recovery, you will get blank screen, but TWRP is indeed working, you touch the screen and it vibrates back. Anyway you have tofastboot flash recovery asus_t00n_twrp_2_7_1_1.img because it will be needed later for upgrading Kitkat to Lollipop.
If you don't unlock bootloader, you will not be able to boot into recovery directly without flashing to recovery partition Now let's get into fastboot mode, and fastboot boot asus_t00n_twrp_2_7_1_1.img, by booting into this recovery directly via fastboot without flashing it first, you will not get black screen bug of this recovery., if you boot to this recovery from recovery partition, you will get black screen as I told previously.
Now let's flash downgrade to 4.4.2 firmware from http://dlcdnet.asus.com/pub/ASUS/Mobile_Phone/PadFone_S/UL-ASUS_T00N-WW-99.99.99.0-user-wipedata.zip with TWRP 2.7.1.1.
This is for only WW SKU, not TW SKU. And all userdata will be wiped.
Browse all firmwares and there is TW SKU downgrade here : https://www.asus.com/Phone/PadFone_S_PF500KL/HelpDesk_Download/
Ok, now reboot to system, and yeah, it finally boots now.
The recovery is still TWRP, not stock one, let's upgrade to lollipop and restore stock recovery using TWRP. Simply place http://dlcdnet.asus.com/pub/ASUS/Mobile_Phone/PadFone_S/UL-ASUS_T00N-WW-12.2.2.27-user.zip to root of Internal Memory, unplug usb, press confirmation in notification to begin install lollipop. After device reboot, it will stay blank screen for 5 minutes, don't worry, it is updating to lollipop, after upgrade is done, it will reboot, and recovery will be restored to stock recovery now.
Bootloader is still unlocked.
Another method to root is
fastboot flash recovery asus_t00n_twrp_2_7_1_1.img (recovery is restored to stock now remember)
then flash https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip?retrieve_file=1 with TWRP.
To lock bootloader again, boot into fastboot
then fastboot oem reset-dev_info
But I wouldn't recommend you to lock bootloader, you will lose ability to boot to TWRP recovery without replacing stock recovery, unless you are going to send your device to service center and claim warranty.
Click to expand...
Click to collapse
simply flash http://quarx2k.ru/asus_padfone_s/CrowLock_RC3.zip with TWRP --> link dead
Hi thank for your guidance on how restoring stock rom . Im having trouble detecting my phone when in fastboot mode, as you said to boot up into fastboot hold vol up and power and we will stuck at asus logo , but after i connect my pc and using adb cmd fastboot devices it didnt detect any devices and cant proceed to next step when i need to fastboot boot twrp 2.7.1.1
Currently im using twrp 2.8.7.0 , i want to use stockcrom because i need to use my padfone station (since any custom rom is not compatible with padfone station), any suggestions for this problem ? Thanks in advabce

Unable to enter Recovery Mode even though officially unlocked

Hi,
I have unlocked my bootloader officially through the unlock tool and wanted to flash a custom recovery and also root my device (Redmi Note 3 - Snapdragon).
I was on Global Dev (6.5.19) before I even started to unlock my bootloader.
After unlock, I was succesffuly able to flash Cofface TWRP recovery through fastboot (well the command prompt didn't throw up any errors and had a success message).
However, when i reboot into recovery (either through button combination or "adb reboot recovery", I just get a screen that shows an image of a phone and USB cable" (similar to the image on the official bootloader unlock tool.
I checked whether the bootloader was unlocked (fastboot oem device-info) and it was indeed unlocked.
I have factory reset and reflashed 6.5.19 (Global dev rom) with MiFlash and this hasn't made any difference.
I also relocked the bootloader with MiFlash Beta and then unlocked successfully with the official unlock tool.
All of these steps still haven't made a difference.
Can someone please advise on the next step to do (as unlocked bootloader is pretty useless if I can't install a custom recovery).
P.S. I also get the same phone and usb cable image when booting into stock recovery
find it weird problem
if you dont,then first just boot the recovery
code:- fastboot boot xxxrecovery.img where xxxrecovery replace your own recovery img name in fastboot folder.
you must success and see twrp recovery
then again transfer img to sdcard and to flash from recovery.
then flash it from recovery and when you reboot ,just swipe to diseable rom to replace it with stock one.
find it really weird ,i did it hundredths of time in my offi unlocked and every time goes fine flashing recovery from fastboot
Hit thanks if i helped
please follow this... it does help for me.
http://forum.xda-developers.com/showpost.php?p=67636917&postcount=32
Thanks very much! These instructions solved my issue
mra1n1 said:
Thanks very much! These instructions solved my issue
Click to expand...
Click to collapse
I have the same problem .How u solved your problem?
You can easily flash this one ZCX Twrp. Is the best i didn`t encountered any issue until now. I`ve flashed custom roms and miui roms as well.. The install process is very simple, follow this one https://forum.xda-developers.com/redmi-note-3/how-to/zcx-twrp-install-twrp-flash-supersu-t3462448

Flashed wrong twrp on locked bootloader. Need help

Hi all!
Occasionaly flashed blue spark twrp v41 (for OOS 3.x) while on Sultans ROM with locked bootloader.
No root access, didn't flash supersu. Kingroot and other 'on one click' methods somehow don't work.
Now, when I try to use fastboot to flash recovery it denies as bootloader is locked. When I try to unlock bootloader using 'oem unlock' it tries to boot recovery which doesn't boot (stucks on logo).
Any chance to solve without hardbricked solution?
I'm on OOS 2.2.2 and have done the same thing (flashed blu spark v41)... same result as you though, a phone I can only boot into fastboot mode
This was the advice I was given (from OnePlus forums)...
https://forums.oneplus.net/threads/...lus-logo-help-me-please.462406/#post-15248530
Here are the steps to get TWRP without messing up your recovery partition
>> Grab Bootloader file (emmc_appsboot.mbn) from OxygenOS Lollypop stock rom
>> Place it in Adb& fastboot folder and flash it via fastboot
fastboot flash aboot emmc_appsboot.mbn
>> Now Type
fastboot reboot-bootloader
>> Now temporarily boot TWRP official recovery for OPX with fastboot
fastboot boot "yourTWRPfileNAME.img"
You should be able to boot to TWRP recovery now
After Flashing and stuff reboot to fastboot and
>> Grab Bootloader file (emmc_appsboot.mbn) from Oxygen OS Marshmallow stock rom
>> Place it in Adb& fastboot folder and flash it via fastboot
fastboot flash aboot emmc_appsboot.mbn
Reboot and enjoy
Click to expand...
Click to collapse
Edit: Maybe you'll need to flash the emmc_appsboot.mbn file from the Sultans ROM though???
The above didn't work for me. I had to UnBrick
You cannot install a recovery on locked bootloader,your phone is not going into stock recovery because of some boot failure, just turn off your phone remove battery if its removable then try again to go into recovery
Sent from my HUAWEI TIT-AL00 using XDA Forums

Some info re: Dual Recovery Prior to Flashing TWRP

I'm new to the 7X (L24) so perhaps I'm preaching to the converted, so please correct any errors and/or add more info....
On the L24, I've tried booting TWRP without replacing the stock recovery (using fastboot boot TWRP.img) so that I can first make a backup of the stock recovery. With FRP and bootloader unlocked, I receive something like "remote -- command failed".
From the Honor 7 Forum,
inside!out said:
It's very simply! We have 2 recovery partition. First - Recovery, Second - eRecovery. eRecovery isn't useful.I tested flashing TWRP in second partition. Its work!
Click to expand...
Click to collapse
18-03-19 update: Got a little braver since others have kindly posted stock recovery and stock ROM for the L24, so I've flashed TWRP (from https://forum.xda-developers.com/honor-7x/how-to/how-to-root-honor-7x-international-t3716056 to recovery2. (Upon booting up TWRP, the title screen shows TWRP 3.1.1.0 OpenKirin edition.)
As a result, I found out I was mistaken about the abd reboot commands.
adb reboot recovery boots to EMUI stock recovery.
fastboot flash recovery2 TWRP.img actually flashes to eRecovery so ...
adb reboot erecovery actually boots into TWRP
If you've unlocked your bootloader and press Vol-UP when the orange security warning screen appears, you get into the download stock recovery and stock ROM to bring the 7X back to secured state screen. (But currently, it can't find stock firmware.)
So right now, stock recovery is in recovery1 and TWRP is in recovery2/eRecovery. For those who can't get OTA updates because they've flash TWRP on recovery1, some kind souls have posted their stock recovery in this forum. (or try to move recovery2 back to recovery1 if you haven't flashed both recoveries.)
iammudd said:
I'm new to the 7X (L24)
Click to expand...
Click to collapse
Use our Multi-Tool, your model in Extended Support

Stock OEM ROM with TWRP Recovery installed ... Can I relock the bootloader?

Like it says in the title.
I have a Xiaomi phone with an unlocked bootloader.
Just installed the latest stock ROM and was thinking about installing the TWRP Recovery, mostly for the full backup and Nandroid restore function.
Is it possible to safely RElock the phone using the usual Fastboot command, or is that a bad idea??? Also, I have read that the "fastboot oem unlock" command will delete TWRP recovery anyway.
Some advice would be appreciated.

Categories

Resources