GUIDE - How to install TWRP when you cannot boot recovery image as boot image - Xiaomi Mi A3 Guides, News, & Discussion

I found a way to install twrp when you are trying to flash recovery image as boot image (there is a thread with all the instructions) So, i've tried final steps:
fastboot flash boot twrp.img
fastboot reboot and pressing vol up to boot recovery and flash recovery installer
Surprise, I enter to fastboot mode again when reboot, no matter if i want to boot normally or recovery, always reboot to fastboot.
Then I tried some things and finally found a way to install TWRP.
1. Copy boot.img to internal storage
You can copy to internal or external, whatever, if you have downloaded a firmware just copy it
Here is boot for android 10: https://drive.google.com/file/d/1zjOY1urQ4Zp3xNvgZM6Y1fm0kYCZ2iYs/view?usp=sharing
2. Download and install magisk manager
I used lastest version from magisk official site
Open magisk and click select and patch, wait until finished and copy the magisk patched boot to your pc (same folder as your minimal and fastboot)
3. Install patched boot
Type these command
fastboot devices (you can skip this one)
fastboot flash boot magisk_patched.img
fastboot reboot
4. Install Smart Flasher
Go to play store an search smart flasher
or there is the link: https://play.google.com/store/apps/details?id=com.smartpack.smartflasher
5. Flashing TWRP installer
Open app and click flash icon and search your TWRP installer, just wait and in a few minutes you will have TWRP installed
6. Install SHRP (optional)
SHRP is the best for me, you have a lot of extra features (manage magisk modules, a better file explorer, customization)
After you finished TWRP installation, just reboot to recovery and flash SHRP installer, and enjoy
It maybe seems tedious, but trust me, it's easier than be fighting against fastboot mode, sorry if i have bad english, i tried to explain it the best i could.

Related

[RECOVERY] TWRP 3.0.2 for Zuk Z2 installation Guide

Here is the installation Guide.
Download the TWRP 3.2.0-20160712_zukz2 CN version from here.
Extract the .img file from the download and rename is to recover.img and copy to the ADB folder.
start the ADB, check the connection with adb devices .
Boot the phone to fastboot by typing
adb reboot bootloader
To flash the TWRP recovery type -
fastboot -i 0x2b4c flash recovery recovery.img
If you do not want to install permanently and just want to boot it to TWRP, type -
fastboot -i 0x2b4c boot recovery.img
This TWRP is a Chinese version by default. To change the language to English, tab the third block in the 2nd column and in the new page select the globe symbol and then change it to English. Here is the video.
After flashing TWRP and changing the language to Eng don't forget to boot back to the recovery first time (instead of system) to avoid stock-recovery overwriting the TWRP.
This TWRP version works with flashing CM13 and CM14 (LineageOS).
Hi,
I've installed the last chinese official 2.5.334 ST and I've lost the recovery. I'm trying to install the recovery again, and it it seems that the installation is correct but when I try to access to the recovery via power button + volume + the phone runs directly to the system.
Any help?
Here is link for latest official twrp 3.1.0-0 https://dl.twrp.me/z2/twrp-3.1.0-0-z2.img.html
This TWRP works on ZUI 2.1?

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 !

Can't flash twrp

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 ?

How can I keep MIUI from overwrite TWRP with stock recovery after a ROM flash?

I'm on fw Global 9.6.6.0.
(Bought the phone 'bogus' unlocked with "fake" 9.6.4.0, bricked it while trying to restore chinese fw and re-lock bootloader using miflash - I'm not doing that again
brought it back to life using the steps from Omer919's thread - thanks Omer919 and Nijel8)
I deleted install-recovery.sh from system/bin using TWRP's file manager before first boot, but it still overwrites MIUI recovery.
It's not a huge deal because I guess I can always fastboot flash twrp before flashing any new ROM, but does anyone have a solution? Much appreciated!
You have to boot to twrp right after flashing.
Go to twrp official site, choose your device and follow exactly instruction to the end.
It wouldnt harm your device if you reboot it to twrp twice.
Thanks, I tried but it reverts to stock recovery. After flashing TWRP in fastboot, I either try Fastboot boot twrp.img or disconnect the cable and hold power and vol+.
Either way, it goes into TWRP, and I make it boot back into TWRP several times with no problem.
But as soon as I boot to System, it reverts to stock.
TWRP site gives me this info (but it didn't work):
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
OMG I found it - Google really is a friend. All I had to do was install Magisk before booting to System.
Below are my exact steps, if that helps someone.
Preliminary:
Download Magisk 17.1 zip, place it on a USB flashdrive.
Install latest magiskmanager apk from Play store (or sideload it if not on the store)
1- In Fastboot:
fastboot flash recovery twrp.img
fastboot boot twrp.img (If all goes well, this boots to TWRP; if prompted for a code, hit cancel)
2- Disconnect the cable.
Reboot to recovery once more (just to make sure, this is probably redundant; hit cancel if prompted for a code)
3- Mount USB-OTG, connect your flashdrive.
Install Magisk.
During the installation, you'll see some red fail lines, but Magisk seems to work around the encryption, just be patient.
4-Reboot System. You're done! Launch MagiskManager. Device is rooted in the process, too. (Verify with a root checker app).
Power Off. Hit Power + volume Up - You should boot to TWRP.
thanks a million McNoob. I was lost, but due to your hints I managed to install Magisk
Hi i cant boot to twrp and it keeps reverting to stock recover..
already tried this "fastboot flash recovery twrp.img
fastboot boot twrp.img (If all goes well, this boots to TWRP; if prompted for a code, hit cancel) "
after sending the last command line the phone reboot but its just black screen.. i try to reboot the phone again and boot it to recovery but still stock recovery is preset.. thanks
Thanks man! It worked for me as well!
Lamantin001 said:
Thanks man! It worked for me as well!
Click to expand...
Click to collapse
How did it work for you
thanks but.... the twrp for nitrogen is corrupted apparently and nothing work

Want to use Sultan kernel, having flashing issues

Hey guys. Just upgraded to the android 10 October image via the adb flash-all command. Magisk rooted via adb and everything is going great. Want to install Sultan's ported kernel for Android 10. Used adb to flash twrp image and flashed the kernel zip via twrp but it keeps saying it can't mount /system and /vendor upon finishing. Upon rebooting I get stuck at the google G load screen. Have to redo flash-all and instal magisk via adb all over to get back to normal. Anyone have this problem or could offer some help? Would be great.
Bverns88 said:
Hey guys. Just upgraded to the android 10 October image via the adb flash-all command. Magisk rooted via adb and everything is going great. Want to install Sultan's ported kernel for Android 10. Used adb to flash twrp image and flashed the kernel zip via twrp but it keeps saying it can't mount /system and /vendor upon finishing. Upon rebooting I get stuck at the google G load screen. Have to redo flash-all and instal magisk via adb all over to get back to normal. Anyone have this problem or could offer some help? Would be great.
Click to expand...
Click to collapse
As long as the kernel finishes the install it's fine. The mounting errors don't matter if it finishes. The mounting errors are just a bug with Android 10. Everything I flash has those errors after it, but I am good. I am on Oct. with Magisk 20 and Sultan kernel.
Ericarthurc said:
As long as the kernel finishes the install it's fine. The mounting errors don't matter if it finishes. The mounting errors are just a bug with Android 10. Everything I flash has those errors after it, but I am good. I am on Oct. with Magisk 20 and Sultan kernel.
Click to expand...
Click to collapse
So the way I'm seeing it is flash the twrp image file, flash the kernel, reboot. Then adb fastboot to bootloader and reflash patched magisk boot.img?
Bverns88 said:
So the way I'm seeing it is flash the twrp image file, flash the kernel, reboot. Then adb fastboot to bootloader and reflash patched magisk boot.img?
Click to expand...
Click to collapse
Do this:
Setup:
1. Download latest platform tools for your OS
2. Download latest factory image for Pixel 2 XL
3. Download twrp.img and twrp.zip
4. Download the kernel.zip you want
5. Download magisk.zip version 20
(Keep in mind those aren't the actual filenames, I am just shortening them; plus you will want to rename them for easier flashing)
Install:
1. Boot phone to bootloader.
2. Extract factory image into the platform tools folder
3. Run flash-all script
4. After done reboot back to bootloader (dont do the phone setup)
5. Now remove the factory image from platform tools (or just extract a clean platform tools folder)
6. Place twrp.img, twrp.zip, kernel.zip and magisk.zip into the platform tools folder (rename the files to make it easier to type them out when flashing with computer adb)
7. Run: fastboot boot twrp.img (or whatever you named it)
8. When in twrp, go to settings and turn off "screen timeout" there is a bug
9. Go to advanced then "adb sideload"
10. In your computer terminal type: adb sideload twrp.zip
11. Then run: adb sideload kernel.zip
12. Then run: adb sideload magisk.zip
13. Reboot to system
Should be good! Using sideload allows you to pass files from your computer to your phone, it makes it easy. If adb sideload is "hanging" or "freezing" (you should see a kinda progress bar with it's working) then reboot twrp.img and try a different USB port. There is a glitch when it hangs, where when you remove the USB cable the phone goes black; just hold power + volume down for about 10 seconds and it will boot back to bootloader.
Ericarthurc said:
Do this:
Setup:
1. Download latest platform tools for your OS
2. Download latest factory image for Pixel 2 XL
3. Download twrp.img and twrp.zip
4. Download the kernel.zip you want
5. Download magisk.zip version 20
(Keep in mind those aren't the actual filenames, I am just shortening them; plus you will want to rename them for easier flashing)
Install:
1. Boot phone to bootloader.
2. Extract factory image into the platform tools folder
3. Run flash-all script
4. After done reboot back to bootloader (dont do the phone setup)
5. Now remove the factory image from platform tools (or just extract a clean platform tools folder)
6. Place twrp.img, twrp.zip, kernel.zip and magisk.zip into the platform tools folder (rename the files to make it easier to type them out when flashing with computer adb)
7. Run: fastboot boot twrp.img (or whatever you named it)
8. When in twrp, go to settings and turn off "screen timeout" there is a bug
9. Go to advanced then "adb sideload"
10. In your computer terminal type: adb sideload twrp.zip
11. Then run: adb sideload kernel.zip
12. Then run: adb sideload magisk.zip
13. Reboot to system
Should be good! Using sideload allows you to pass files from your computer to your phone, it makes it easy. If adb sideload is "hanging" or "freezing" (you should see a kinda progress bar with it's working) then reboot twrp.img and try a different USB port. There is a glitch when it hangs, where when you remove the USB cable the phone goes black; just hold power + volume down for about 10 seconds and it will boot back to bootloader.
Click to expand...
Click to collapse
Thanks so much. I went and used AZ bikers method and it worked fine. Easy and hassle free. https://forum.xda-developers.com/pixel-2-xl/how-to/quick-2xl-upgrade-reference-8x-oreo-to-t3826330

Categories

Resources