Can't flash twrp - Xiaomi Redmi Note 5 Pro Questions & Answers

I have RN5 AI 6/64 with miui 9.5.22.0 CN. I tried install TWRP method 1 and 2. It won't work. How i install TWRP with this rom ?
#sorry my bad english

Kaze291 said:
I have RN5 AI 6/64 with miui 9.5.22.0 CN. I tried install TWRP method 1 and 2. It won't work. How i install TWRP with this rom ?
#sorry my bad english
Click to expand...
Click to collapse
I don't know what "method 1 and 2" refers to but usually you do it with adb/fastboot. Assuming you have a computer running windows, you need to extract this:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
- Plug your fully booted phone to your computer with the USB cable.
- From the command line, navigate to where you extracted the files and type:
adb reboot bootloader
- your phone will reboot in fastboot mode, wait for it.
- download and extract latest TWRP binary into the same folder you previously extracted the files : https://eu.dl.twrp.me/whyred/twrp-3.2.2-0-whyred.img.html
- assuming the default filename of twrp-3.2.2-0-whyred.img, type fastboot flash recovery twrp-3.2.2-0-whyred.img
- press and hold the volume up key on your phone and type fastboot reboot
- keep holding volume up until the phone reboot in TWRP.
* Note that if you fail to reboot into TWRP the first time, MIUI will overwrite TWRP with stock recovery and you will have to flash TWRP again.

You have ARP anti 4 rom!
[miui 9.5.22.0 CN.]
You have ARP anti 4 rom!
To flash TWRP you need to temporarily boot it with: -
fastboot boot <name of TWRP>.img
Then when booted, copy the image file to your device, and then install TWRP image to recovery from temp TWRP.
From TWRP, then reboot to recovery to actually use the installed version.
If your sticking with MIUI, remember to flash the script that allows the device to boot with TWRP, or use a TWRP that includes it.
WARNING: - DO NOT Flash firmware's or roms lower than the version your on, or you will brick your device.
Read: - Everything About Anti Roll-back [Whyred]

corkiejp said:
[miui 9.5.22.0 CN.]
You have ARP anti 4 rom!
To flash TWRP you need to temporarily boot it with: -
fastboot boot <name of TWRP>.img
Then when booted, copy the image file to your device, and then install TWRP image to recovery from temp TWRP.
From TWRP, then reboot to recovery to actually use the installed version.
If your sticking with MIUI, remember to flash the script that allows the device to boot with TWRP, or use a TWRP that includes it.
WARNING: - DO NOT Flash firmware's or roms lower than the version your on, or you will brick your device.
Read: - Everything About Anti Roll-back [Whyred]
Click to expand...
Click to collapse
troolie said:
I don't know what "method 1 and 2" refers to but usually you do it with adb/fastboot. Assuming you have a computer running windows, you need to extract this:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
- Plug your fully booted phone to your computer with the USB cable.
- From the command line, navigate to where you extracted the files and type:
adb reboot bootloader
- your phone will reboot in fastboot mode, wait for it.
- download and extract latest TWRP binary into the same folder you previously extracted the files : https://eu.dl.twrp.me/whyred/twrp-3.2.2-0-whyred.img.html
- assuming the default filename of twrp-3.2.2-0-whyred.img, type fastboot flash recovery twrp-3.2.2-0-whyred.img
- press and hold the volume up key on your phone and type fastboot reboot
- keep holding volume up until the phone reboot in TWRP.
* Note that if you fail to reboot into TWRP the first time, MIUI will overwrite TWRP with stock recovery and you will have to flash TWRP again.
Click to expand...
Click to collapse
I mean
Method 1: Fastboot boot tru.img (it doesnt work)
Methot 2 : Fasboot Flash Antirbpass (doesnt work too)

corkiejp said:
[miui 9.5.22.0 CN.]
You have ARP anti 4 rom!
To flash TWRP you need to temporarily boot it with: -
fastboot boot <name of TWRP>.img
Then when booted, copy the image file to your device, and then install TWRP image to recovery from temp TWRP.
From TWRP, then reboot to recovery to actually use the installed version.
If your sticking with MIUI, remember to flash the script that allows the device to boot with TWRP, or use a TWRP that includes it.
WARNING: - DO NOT Flash firmware's or roms lower than the version your on, or you will brick your device.
Read: - Everything About Anti Roll-back [Whyred]
Click to expand...
Click to collapse
I try to delete everything and then I installing again. Finally, TWRP can be installed ?

Related

TWRP not persistent

Hi guys,
I've just updated to newest OOS firmware wich is 5.1.2 and I'm facing a weird problem.
Every time I flash codeworks TWRP and reboot to system, the next time i try to boot to recovery it boots to the original recovery.
It's like when I flash TWRP it doesn't remain persistent. When i flash it through fastboot and straightly boot from fastboot to recoverry I succeed to get in TWRP but as soon as I reboot to system and try to boot to recovery I reach the original OnePlus recovery.
Is anyone facing the same problem ?
And also do you have any idea about what i could do to solve this problem ?
Thanks in advance for your answers !
If you don't have root or custom kernel its normal, plus you should use blu spark's twrp, its newer and more reliable.
Adnan008 said:
If you don't have root or custom kernel its normal, plus you should use blu spark's twrp, its newer and more reliable.
Click to expand...
Click to collapse
Indeed, I just needed to flash magisk to get it persistent. I'll try blu spark's one as you suggested.
Thank you very much for your answer !
Cheers !
Nothing to do with recoveries or kernel. After you do the fastboot flash recovery TWRP in fastboot, do this: "fastboot boot TWRP". I believe that's the right command. Basically after you flash it, manually boot to recovery through fastboot one time. After that it'll work from inside the phone or with the button combination with the phone off.
Jesus people are lazy these days.
First off there are official twrp versions for a reason!
Download the latest version: https://dl.twrp.me/dumpling/
Reboot into flash boot with the following command from your rom: adb reboot bootloader
With phone in fastboot mode: fastboot flash recovery 'twrp.img'
(You don't need to type out the entire file path you can just drag the file into the terminal and it'll insert the file location)
The reason you're not getting back into that recovery is because you're not booting into the recovery before you reboot into your ROM.
There is an option to boot straight into the recovery from the fastboot mode
pinnekeshaar said:
Jesus people are lazy these days.
First off there are official twrp versions for a reason!
Download the latest version: https://dl.twrp.me/dumpling/
Reboot into flash boot with the following command from your rom: adb reboot bootloader
With phone in fastboot mode: fastboot flash recovery 'twrp.img'
(You don't need to type out the entire file path you can just drag the file into the terminal and it'll insert the file location)
The reason you're not getting back into that recovery is because you're not booting into the recovery before you reboot into your ROM.
There is an option to boot straight into the recovery from the fastboot mode
Click to expand...
Click to collapse
Actually not that lazy because I used to do what you mentionned.
The thing is that a flash of Magik is needed to patch twrp. That's the step I forgot in the procedure and explained here.
So before being unpleasant, please know what you're talking about...
Cheers !

OUTDATED***[GUIDE] Basic guide to flash a recovery and a rom via recovery in Mi A3.

This is a basic guide to flash a rom via recovery in Mi A3 as title says.
Is created to help all those that want but can't.
Please read before act, and if you don't understand....well read again.
Mi A3 is a device with treble support, and while is not difficult to flash a rom,is a little bit tricky process.
So here are the detailed steps to do achieve that.
First things first, you've got to have your bootloader unlocked. Follow below steps to do that:
-Enable developer options by going to settings/about phone and clicking 5 times on build number.
Inside developer options:
-Find and enable OEM unlocking.
-Find and enable USB debugging.
In adb tools type:
-
Code:
adb devices
reboot to bootloader.
-
Code:
adb reboot bootloader
Unlock bootloader(you will lose all your data).
Code:
fastboot flashing unlock
When the device reboot, boot once again in fastboot by powering off then power on while pressing vol down button.
Type command to full unlock bootloader.
Code:
fastboot flashing unlock_critical
Proceed to recovery flash
Notice that you've got to have all files ready, either inside external sd or in your pc. All files are at the end of this thread as links or attachments.
Also i'm suggesting OrangeFox recovery for now because is the most stable.
-First you following the orangefox recovery installation guide:
- Download the OrangeFox zip file from here or the link at the end and copy it to your device (internal or external storage)
- Extract the recovery.img from the zip and store it, on the folder where you have adb and fastboot files, on your PC
- Open a cmd line and execute these commands (being on that folder, of course):
-
Code:
adb devices
(to make sure your device is detected)
-
Code:
adb reboot bootloader
(to reboot into fastboot mode)
-
Code:
fastboot getvar current-slot
(to check what's your current active slot)
-
Code:
fastboot set_active b
(if your active slot was a, if it was b then change it to a)
-
Code:
fastboot erase boot
-
Code:
fastboot flash boot recovery.img [b](OR WHATEVER NAME YOUR RECOVERY HAVE)[/b]
-
Code:
fastboot reboot
(NOTE : Before hitting "Enter", long press Vol + on your device until you see the Android One logo.
-->> By doing this your device will be forced to boot into Recovery and not into System <<--
- Install the OrangeFox zip (always install the latest build available and always keep a copy of recovery zip file in your external sd)
- Change slot to the one that was active on the beginning of these steps and reboot to Recovery (just to make sure that the slot, in fact, was changed)
After orangefox recovery is installed, you are ready to flash your rom.
You can move your rom files inside your external or internal memory(prefer external to avoid deleting them accidentally).
To do that you can either do it before the whole procedure, or after the recovery installation since you have mtp and adb available.
Copy them drag them or push them via adb(i'm not going to extend the adb push command here)
Now the flashing steps:
-Go to partition manager inside orangefox recovery and select data/format data(red button) and press format.Type YES.
-Go back and find the rom file inside your target directory(internal or external).
-Select the rom file and flash it.
-DO NOT REBOOT.
-Go back where you have the orangefox zip file, select it and flash it.
-Leave the device as is because after the installation it will reboot itself to recovery once again.
-Once the recovery starts again go to the target folder that you have the remaining files.
-Flash magiskV20.zip (if you want your device to be rooted).
-Flash Gapps if there are any or skip this step if your ROM provider have them included.
-Flash patchnofde10 zip to avoid data encryption(if you don't do that the rom will NOT boot).
-Reboot to system and enjoy.
All files are available to the links below.
Patchnofde file is attached to this post.
I'm not responsible if you cause a nuclear war or your cat or dog stop talking to you.
Credtits to:
Orangefox recovery team https://orangefox.tech/
Orangefox recovery dev for Mi A3 https://forum.xda-developers.com/mi-a3/development/official-orangefox-recovery-mi-a3-t3986177
Topjohnwu for the Magisk and Magisk manger https://******************/
XDA Forum because they exist
All devs that put some hard work for you to have a custom recovery and a custom rom and all they hear is questions about ho to do things.
Respect them and read before post a questions.
:angel::angel::angel:
Thanks for the detailed guide, always good to have it :good: :good:
my device is encrypted and if I boot a recovery it shows the data encrypted. How to remove encryption ?
drozo8o8 said:
my device is encrypted and if I boot a recovery it shows the data encrypted. How to remove encryption ?
Click to expand...
Click to collapse
Read it first then do it.
Patchnofde is for the encryption.
sotmax said:
Read it first then do it.
Patchnofde is for the encryption.
Click to expand...
Click to collapse
nvm I think I got it
Can anybody please help? I just bought this phone and followed this guide to the letter. The phone just boots back into recovery, whatever ROM I flash.
Is there support for Android backup and restore
Please tell steps for the same also
As it is not working for me
Mobile is Booting to recovery again after restoring backup
ReekyMarko said:
Can anybody please help? I just bought this phone and followed this guide to the letter. The phone just boots back into recovery, whatever ROM I flash.
Click to expand...
Click to collapse
Okay I got it to boot to Havoc OS but my wifi and gsm calls stopped working. Also videos were flashing during playback. I guess I was doing something wrong during the whole flashing process and the device ended up without the correct firmware.
I have reverted back to stock using one of the fastboot ROM flashing scripts and everything is fine, though I would like to go Android 10 without GAPPS if possible.
Thank you very much for the guide. Do you recommend any backup with orange box? If I want to revert to stock rom, do I need to know something?
How could I update the ROM?
darkjm93 said:
Thank you very much for the guide. Do you recommend any backup with orange box? If I want to revert to stock rom, do I need to know something?
Click to expand...
Click to collapse
You can go back to stock by flashing stock image with mi flashtool
ReekyMarko said:
Can anybody please help? I just bought this phone and followed this guide to the letter. The phone just boots back into recovery, whatever ROM I flash.
Click to expand...
Click to collapse
That's because you didn't follow it to the letter.
You have to flash Patchnofde to boot to rom.
vishwadeepmanu said:
Is there support for Android backup and restore
Please tell steps for the same also
As it is not working for me
Mobile is Booting to recovery again after restoring backup
Click to expand...
Click to collapse
Same as above.
If you don't flash patch for the encryption, you ll end up to recovery again. Also I recommend to read carefully the steps with the recovery flashing. You have to be sure that the slot is what it was at the beginning.
A out the Android backup, yes. You can take and restore backups freely.
Hello,
@sotmax
Thank you for your guide.
@ANyOne i have unlocked the bootloader, but after that, when i'm in fastboot mode, i'm not being detected by the adb devices command. Any idea why ?
mkpanic said:
Hello,
@sotmax
Thank you for your guide.
@ANyOne i have unlocked the bootloader, but after that, when i'm in fastboot mode, i'm not being detected by the adb devices command. Any idea why ?
Click to expand...
Click to collapse
Because ADB and fastboot are different modes and using different commands. In fastboot use "fastboot devices".
_mysiak_ said:
Because ADB and fastboot are different modes and using different commands. In fastboot use "fastboot devices".
Click to expand...
Click to collapse
Thank your for the answer.
If I only want to root the stock installing Orange, this guide works?
fastboot set_active command is not working...only fastboot options are displayed..Any solution?
sibikallikkat said:
fastboot set_active command is not working...only fastboot options are displayed..Any solution?
Click to expand...
Click to collapse
fastboot --set-active=a
fastboot --set-active=b
hi, i followed the guide to flash los17 with BiTGApps.
I also flashed the nofde patch. The phones boots normaly but i have no access to internal storage. All the folders have random numbers and letters. Any ideas?

Question How to root without twrp

My problem is that I have installed a custom rom that is no longer in support in XDA .
So when I tried to to boot using fastboot boot twrp.img command my device won't boot in twrp therefore I am not able to install twrp hence magisk is still not working.
Is there any other way to root my mi 11x witouht using custom recovery.
Yes. It's the twrp fastboot method.
1. First of all you need the boot.img from your ROM. For a fastboot ROM it's in the Images folder. For an OTA you have to use a payload.bin extractor.
2. Then install the magisk manager app and use patch boot.img
3. Then install the patched boot.img through fastboot
Full instructions:
Installation
The Magic Mask for Android
topjohnwu.github.io
Robert314 said:
Yes. It's the twrp fastboot method.
1. First of all you need the boot.img from your ROM. For a fastboot ROM it's in the Images folder. For an OTA you have to use a payload.bin extractor.
2. Then install the magisk manager app and use patch boot.img
3. Then install the patched boot.img through fastboot
Full instructions:
Installation
The Magic Mask for Android
topjohnwu.github.io
Click to expand...
Click to collapse
Thanks sir. But someone says me that when he tried this method his phone stuck on miui logo and not working.. he has same mi 11x.
Tanishkmusic said:
Thanks sir. But someone says me that when he tried this method his phone stuck on miui logo and not working.. he has same mi 11x.
Click to expand...
Click to collapse
Maybe they used the wrong boot.img for their ROM. Are you using MIUI? If so it may be more difficult as you've got to get the correct version from firmware finder. Even then magisk might not like your MIUI install. I've heard people running custom ROMs able to install magisk on Mi11X. E.g HavocOS, ArrowOS etc
This is the only way to install magisk properly at the moment
Edit: if you prefer MIUI there is another alternative by flashing on of the improved MIUI ROMs (they just take MIUI and add slightly extra features and improve performance). I can't link the telegram group on XDA but you can PM me
Tanishkmusic said:
My problem is that I have installed a custom rom that is no longer in support in XDA .
So when I tried to to boot using fastboot boot twrp.img command my device won't boot in twrp therefore I am not able to install twrp hence magisk is still not working.
Is there any other way to root my mi 11x witouht using custom recovery.
Click to expand...
Click to collapse
To install twrp do this:
(pre requisites)
-driver for f3 installed;
-adb and fastboot or platform tool (preferable) on the pc;
-usb debugging enabled on the phone.
Therefore:
1) download the .img file of the twrp you want to install, I used this:
Downloads for : Xiaomi Redmi K40 / Poco f3 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
2) rename the file to twrp.img (for convenience);
3) move the trwp.img file to the adb and fastboot folder (if you use adb) or to the platform tool folder (if you use platform);
4) always in the same folder open a cmd window (go to the address bar, type cmd and press enter);
5) after activating usb debug on the phone, turn it off, start it in fastboot (long press of Power + volume -) and connect it to the pc;
6) check if fastboot recognizes the phone with this command:
Code:
fastboot devices
If your phone code appears you can start it in twrp.
7) to start it in twrp type this command:
Code:
fastboot boot twrp.img
8) now the phone should automatically boot into twrp, so go to Advanced> Flash Current TWRP
done, you should now have twrp installed. for the root there is this guide:
Magisk App 24.3 (Magisk Manager) Latest Version For Android 2023
Magisk is a multi-tasking rooting solution that root device in a systemless format without changing the internal files.
magiskapp.com

Development [RECOVERY][OFFICIAL][TWRP-3.7.0_12] TWRP for POCO F4

Code:
*** Disclaimer ***
All flashing is done at your own risk!
While nothing from this thread should break your device,
don't come back here blaming anyone if it does!
Introduction
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and
customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to
mash. The GUI is also fully XML driven and completely theme-able. You can change just about
every aspect of the look and
Click to expand...
Click to collapse
Prerequisites:
Code:
. Unlocked Bootloader
Installation instructions:
Recovery Install Method:
Simply download the TWRP-3.7.0_12-0 from twrp website and boot it using fastboot mode, steps are mentioned below
Fastboot Boot Method:
You will need the platform-tools from the Android SDK on your computer. Download only the platform-tools according to your device to get adb and fastboot binaries.
On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type
Code:
adb reboot bootloader
You should now be in fastboot mode.
Download the twrp boot image from the link given below, and copy twrp.img file into the same folder as your adb and fastboot binaries and type:
Code:
fastboot boot twrp.img
You will be booted to TWRP, from there go to advanced and then click on "Flash Current TWRP"
REMEMBER: if the device waspreviously rooted, then root has been overwritten, you need to flash the magisk zip again to retain root
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Device Changelog
Version:3.7.0_12-0:
Initial Official Release
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Downloads
Official TWRP Website
My Telegram TWRP Support Group:
https://t.me/pocof4_recoveriesCredits:
- TWRP Team
Sources
TWRP: https://github.com/TeamWin/android_bootable_recovery
Device Tree: https://github.com/TeamWin/android_device_xiaomi_munch
Kernel Tree: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/munch-s-oss
Status: Stable
TWRP: 3.7.0_12
reserved 1
reserved 2
Build will be live on twrp.me soon
Wow nice!
Build is live
Decrypting working? Will working on future Android 13 with decrypting? I know that dev received Android 13 already
Yes decrypting working fine, even on Android 13
When I updated yesterday, I immediately flashed it without losing data. For today's update, why doesn't it turn on, you have to turn on the new data format, is there the same or a solution
Can I just boot it with fastboot and flash Magisk flashable file in order to root the phone?
I have seen videos on youtube showing exactly that, just wanted to make sure it's doable.
Just want to root the phone, do not intend to flash any rom (yet).
dreamdrake said:
Can I just boot it with fastboot and flash Magisk flashable file in order to root the phone?
I have seen videos on youtube showing exactly that, just wanted to make sure it's doable.
Just want to root the phone, do not intend to flash any rom (yet).
Click to expand...
Click to collapse
If you already have your magisk_patched.img, you can choose which method you want:
1. with Fastboot + TWRP (temporary)
fastboot boot [drag and drop recovery.img]
flash your magisk_patched.img in boot partition + check "Flash to both slots"
reboot to system
2. only Fastboot
fastboot flash boot_a [drag and drop magisk_patched.img]
fastboot flash boot_b [drag and drop magisk_patched.img]
fastboot reboot
What if I would "fastboot boot TWRP.img" and then flash Magisk flashable version checking "flash to both slots"?
dreamdrake said:
What if I would "fastboot boot TWRP.img" and then flash Magisk flashable version checking "flash to both slots"?
Click to expand...
Click to collapse
When you check "Flash to both slots" TWRP will flash the makisk_patched.img to boot_a and boot_b.
I'm not sure, but if you don't check the box, TWRP will maybe flash to inactive slot and you are NOT rooted.
Edit: You can check which slot is active with adb shell getprop ro.boot.slot_suffix
Is it possible to make a backup of the installed rom with relative restore using this official twrp? If yes, which files to select
ok... i can't access to internal storage via pc. I formated data (type yes), rebooted to recovery again and my pc sees internal storage but there is no info about size and i can't copy files to it. It shows message something like "this device is disconnected". I tried to reinstall adb drivers, tried to restart my pc and it's not working. I used adb sideload to falsh ROM and after i booted to ROM, rebooted to recovery I can access internal storage via TWRP.
Runs super laggy with kernel compiled with gcc which is very strange and annoying.
Can't access storage with PC... Disabled and enabled MTP multiple times...
I had to flash ROM via OTG...

Oppo A83 [CPH1729] TWRP RECOVERY

⚠Warning: This is not official TWRP, use it at your own risk!!!
Data will be erased. Back up if neccessary
This device is kind of weird so to flash twrp you need these things:
1. Prepare materials​
Install driver so as to have access to preloader (Just install automatically and no need to do anything in device manager)
This software to access to preloader -> fastboot (fastboot is somehow not available via adb methods) Enter fastboot
This tool for flashing
2. Unlock bootloader (need testpoint, python, git (optional) - you can search on google)​
Use this tool - go to this section. Follow guides to unlock bootloader (remember to use testpoint not hardware buttons)
3. Enter fastboot mode​
Use latest MTK META Ultility tool
Select Reboot Fastboot Mode in BRom section
Hold volume down button. While holding connect it to your computer
*Now your phone is in fastboot mode​4. Flash​
Open platform-tools folder in Downloads folder
Shift + Right click then "open command window here"
Input these commands into cmd
fastboot flash boot drag twrp file to cmd
fastboot flash recovery drag twrp file to cmd.
fastboot reboot. Swipe to allow modification in twrp (to make sure that stockboot wont replace twrp). After that reboot to recovery to make it installed on your device permanently.
Now your recovery is ready to flash file you can push stock image file to your root folder using adb command: "adb push. Drag the stock image file. /" (Because Decryption right now doesnt work on my device yet)
Enjoy
*Sounds crazy but it is required to make sure twrp is installed correctly​*If successful, when you power on, you will get a red section on top of your device. If you want to recover to stock recovery, flash the recovery.img below.​*Also, if you want to make your own twrp, you can try recovery.img below.​
Also thanks SebaUbuntu and Mofadal El-Tayeb (مُفَضَّل) for awesome apps
​
​​
​
Here is the PBRB version for this device
Hey I'm stuck in the third step.can you please help me?
Sorry for late reply. What problems do you have?
Is this the stock boot image you provided?
SAMIUL ISLAM 0 said:
Is this the stock boot image you provided?
Click to expand...
Click to collapse
Yes it is. I took it from OTA update
Hey friends
I want to upgrade my oppo a 83 fone to a costum rom to upgrade my androide to android 8 or higher
mahmoud2503 said:
Hey friends
I want to upgrade my oppo a 83 fone to a costum rom to upgrade my androide to android 8 or higher
Click to expand...
Click to collapse
Unfortunately, I have no custom roms available for this phone (

Categories

Resources