• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[RECOVERY] - TeamWin Recovery Project [REDFIN] [OFFICIAL]

Search This thread

Anonshe

Senior Member
Aug 11, 2016
161
110
Hello all,

It's been a good while since I have adjusted my build on my Pixel 5.

Currently I am on a rooted Pixel 5 with a custom ROM (Proton OS11). I see OS12 Roms that have been released ... as I have mostly learnt everything from a Samsung environment since S2 days (CWM/TWRP) I have always backed up (nandroid) my build before going to a new Rom.

As the process regarding pixel flashing is not embedded in my brain, as much so as Samsung methods (via odin, etc.) I want to confirm I am understanding everything correctly before moving forward with TWRP on my Pixel 5 (redfin)

  1. the community has stated that you can adb flash into TWRP while connected to a PC to backup/restore/flash etc. is the proper command to perform this action:
    Code:
    fastboot boot twrpname.img
  2. Are there issues as stated in previous posted, when rooted, custom rom + magisk that TRWP encounter issues when performing the above functions?
  3. To perm flash TWRP would the following command be suggested?
    Code:
    fastboot flash recovery twrpname.img
  4. When/If perm flashed, how does one go about access TWRP from the phone (ie. no adb access etc.) is there a button command, or same command as you use to access fast boot (Press and hold the Volume Down + Power button)
  5. If i successfully get TWRP running in RAM or perm-flashed...are there issues or concerns with backing up the device, flashing to a new OS (OS12) and if not liking the new OS... booting back to TWRP and restoring the old backup image?
  6. Is there a step by step guide on XDA?
My apologies I have been out of the loop a bit with the pixel 5 methods. I base my knowledge more-so from Samsung environment, want to make sure I am on the correct page.

Feel fee to recommend or suggest anything.
I do appreciate any feedback from XDA community, everyone has always been super helpful

Thank you :)

1. `fastboot boot twrp.img` is the right command to boot twrp temporarily.
2. To perm flash it, you install it as recovery ramdisk from within twrp after booting into twrp. Ensure you've pushed the file to your internal storage before installing it.
Custom ROMs don't have an issue with it but for Lineage, I'd suggest flashing the ROM via Lineage Recovery the first time before flashing twrp.
3. Pixel 5 doesn't have a recovery partition so that command won't work.
4. You can access it from the fastboot menu by selecting "recovery mode" using the volume keys.
5. You can do that but YMMV.
 

unibombz

Senior Member
Nov 11, 2011
1,220
258
1. `fastboot boot twrp.img` is the right command to boot twrp temporarily.
2. To perm flash it, you install it as recovery ramdisk from within twrp after booting into twrp. Ensure you've pushed the file to your internal storage before installing it.
Custom ROMs don't have an issue with it but for Lineage, I'd suggest flashing the ROM via Lineage Recovery the first time before flashing twrp.
3. Pixel 5 doesn't have a recovery partition so that command won't work.
4. You can access it from the fastboot menu by selecting "recovery mode" using the volume keys.
5. You can do that but YMMV.
Hello,

Appreciate the follow up...
1. Resolved/Answered
2. Thank you for the notes regarding Lineage, I think I will be sticking to AOSP for the time being, or a ROM that is closest to stock, when I get some time to flash and test some ROMs
3. Good to know
4. Thank you for clarifying
5. OK, from my understanding it may differ at times and all that can be done is to try to see the outcome?

Going to continue the research and hope to get TWRP flashed to test it out on the P5 moving forward.

Thank you again for your well written response :)
 
I'm trying to follow all this information, please follow my logic and see if it is correct, thank you.

I currently have pixel5, and I rooted it successfully with the Magic Canary instructions from the other thread.
It is running the latest Android 12.

My real goal is to be able to backup/restore (nandroid) in TWRP like I used to do with other phones.

It seems like TWRP is not ready for Android 12 or pixel5 officially. Right?

But the instructions here allow us to install TWRP unofficially.

But you need ElementalX kernal.
Which means, I can't use Android 12. So I need to use Android 11?

And if I use this kernel, then I can use TWRP for backup/restore?

Just curious, what has happened to all the custom ROMs and easily rooting etc with Magisk/TWRP? Pixel5 is a older generation phone, I thought it would be easy now. Seems like it's getting more complicated and fewer options for this sort of rooting activity. Having a simple way to backup/restore with one large zip file was amazing. Are the glory days over?
 

unibombz

Senior Member
Nov 11, 2011
1,220
258
I'm trying to follow all this information, please follow my logic and see if it is correct, thank you.

I currently have pixel5, and I rooted it successfully with the Magic Canary instructions from the other thread.
It is running the latest Android 12.

My real goal is to be able to backup/restore (nandroid) in TWRP like I used to do with other phones.

It seems like TWRP is not ready for Android 12 or pixel5 officially. Right?

But the instructions here allow us to install TWRP unofficially.

But you need ElementalX kernal.
Which means, I can't use Android 12. So I need to use Android 11?

And if I use this kernel, then I can use TWRP for backup/restore?

Just curious, what has happened to all the custom ROMs and easily rooting etc with Magisk/TWRP? Pixel5 is a older generation phone, I thought it would be easy now. Seems like it's getting more complicated and fewer options for this sort of rooting activity. Having a simple way to backup/restore with one large zip file was amazing. Are the glory days over?
Great questions here.
I would have been curious of this as well since I feel I am approaching that line once I get some time to investigate further how and IF TWRP works well with the newer OS's for nandroid.

Thanks for this post!
 
Great questions here.
I would have been curious of this as well since I feel I am approaching that line once I get some time to investigate further how and IF TWRP works well with the newer OS's for nandroid.

Thanks for this post!
Good to know I'm not the only one, loll. Never know if I missed something that everyone knows. What I can tell so far is that we are waiting for TWRP for Android 12. Once TWRP is easily available, I think everything is awesome. So I guess we are just waiting. But definitely, the custom ROM options have decreased drastically across the board from what I remember 5 years ago. That's ok, I'll take anything. But still seems the bottle neck for everything right now is TWRP.

The way I gauge (lol, this is dumb but this is how I think about it), when those windows GUI tools are made where you can root and unroot and flash in a nice GUI with buttons for everything and it detects your phone, etc....that is the ultimate place to be. Then we really know things are good. That is what I remember back in the Nexus 5 or 6 days.

Currently, i'm not rooting my Pixel 6 pro, as there are too many questions and unknowns and it makes me a little nervous. I JUST rooted my Pixel 5, but I can't do a backup or TWRP because I am nervouse about the ROMs and kernals, etc., so I'm still waiting on all that. So I am just doing copies of my sdcard contents for now.

I can't wait for the full backup-restore to be available easily again. THe best.
 

unibombz

Senior Member
Nov 11, 2011
1,220
258
Good to know I'm not the only one, loll. Never know if I missed something that everyone knows. What I can tell so far is that we are waiting for TWRP for Android 12. Once TWRP is easily available, I think everything is awesome. So I guess we are just waiting. But definitely, the custom ROM options have decreased drastically across the board from what I remember 5 years ago. That's ok, I'll take anything. But still seems the bottle neck for everything right now is TWRP.

The way I gauge (lol, this is dumb but this is how I think about it), when those windows GUI tools are made where you can root and unroot and flash in a nice GUI with buttons for everything and it detects your phone, etc....that is the ultimate place to be. Then we really know things are good. That is what I remember back in the Nexus 5 or 6 days.

Currently, i'm not rooting my Pixel 6 pro, as there are too many questions and unknowns and it makes me a little nervous. I JUST rooted my Pixel 5, but I can't do a backup or TWRP because I am nervouse about the ROMs and kernals, etc., so I'm still waiting on all that. So I am just doing copies of my sdcard contents for now.

I can't wait for the full backup-restore to be available easily again. THe best.
Hello Superxdaer,
One thing I can recommend to look at due to your concerns and the common nandroid methods you're use to is your can attempt to use the migrate app (if you haven't already)

I know this does not make an image, however does let you easily transition from ROM to ROM only thing it is a little more involved than
Backup > Wipe > Flash
or
Wipe > Restore > Flash

Thought i'd toss that out there as an option for you to consider or look at. I have used this method with my Sammy devices when flipping to new ROMs and brining my apps (and some data) with me.

I am looking into pushing up to OS12 on my Pix5 myself, and may have to go this route and ignore TWRP completely, for now anyways, and make a migrate snapshot.
That way if I want to go back to my OS11 build I will have this to use :-/

Hope it helps
 
  • Like
Reactions: Ivixmax

Ivixmax

Senior Member
Dec 10, 2011
362
78
León
www.htcmania.com
Hola Superxdaer,
Una cosa que puedo recomendar que tenga en cuenta debido a sus inquietudes y los métodos nandroid comunes que usa es que puede intentar usar la aplicación de migración (si aún no lo ha hecho)
[URL unfurl = "true"] https://forum.xda-developers.com/t/...20-migrate-custom-rom-migration-tool.3862763/ [/ URL]

Sé que esto no crea una imagen, sin embargo, te permite pasar fácilmente de ROM a ROM, solo que es un poco más complicado que
Copia de seguridad> Limpiar> Flash
o
Limpiar> Restaurar> Flash

Pensé en tirar eso como una opción para que la consideres o la mires. He usado este método con mis dispositivos Sammy al cambiar a nuevas ROM y traer mis aplicaciones (y algunos datos) conmigo.

Estoy buscando subir a OS12 en mi Pix5 yo mismo, y es posible que tenga que seguir esta ruta e ignorar TWRP por completo, por ahora de todos modos, y hacer una instantánea de migración.
De esa manera, si quiero volver a mi compilación de OS11, tendré esto para usar: - /

Espero eso ayude
uoh it would be nice to have an oos 11 rom :)
 
Yes unibombz, I love that app and think it is great. But the step where you need TWRP is the bottleneck again. And there is still no TWRP that is reliable for Anroid 11 and 12 on pixel 5 or 6. I will definitely use your app if I have TWRP running, it beats the more complicate TB way, and also has one advantage over nandroid in that i can migrate from Rom to Rom.
 

unibombz

Senior Member
Nov 11, 2011
1,220
258
Yes unibombz, I love that app and think it is great. But the step where you need TWRP is the bottleneck again. And there is still no TWRP that is reliable for Anroid 11 and 12 on pixel 5 or 6. I will definitely use your app if I have TWRP running, it beats the more complicate TB way, and also has one advantage over nandroid in that i can migrate from Rom to Rom.
Hello,

You can use the Migrate Flasher which does not require any custom recovery to flash the .zip - maybe give it a go and see how it pans out for you if you decide to try it :)
Report back if you do.
 
  • Like
Reactions: elong7681
Nice work!

Once the encryption element is fixed I will definitely be rocking this!!
It seems to be. It was broken for me and lately setting the lock security to none wouldn't even fix it. It would just hang, although at least adb worked.
After doing a factory reset then restoring all my apps, booting twrp redfin test9's encryption started working.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Thanks for the clarification that twrp is currently not working on 12.

    FWIW, the official twrp site (https://twrp.me/google/googlepixel5.html) should be updated to say this. The site makes no mention of that it doesn't work for Android 12, and I had no idea until I spent several hours trying to get it to work.
    The 11 is the Android version it works on:
    https://twrp.me/google/googlepixel5.html
    twrp-installer-3.6.0_11-0-redfin.zip
    twrp-3.6.0_11-0-redfin.img
  • 59
    [RECOVERY] TWRP 3.6.0_11-0 - TeamWin Recovery Project




    Introduction:

    Team Win Recovery Project or TWRP for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. It's 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 feel.

    Key Features:

    Touchscreen driven with real buttons and drag-to-scroll
    XML-based GUI that allows full customization of the layout true theming!
    Settings are saved to the sdcard and persist through reboots
    Ability to choose which partitions to back up and which to restore
    Ability to choose to compress backups now with pigz (multi-core processor support for faster compression times)
    Onscreen keyboard
    Easy selection of internal/external storage

    In addition to the above new features, TWRP features a scripting engine that allows an app to send commands to the recovery for the recovery to perform during startup. We call this scripting engine OpenRecoveryScript. This engine will be put to use immediately in the GooManager app. GooManager will be able to install recoveries automatically for most supported devices. The app will also let you choose to install multiple zips from within Android, wipe, and run a backup.

    We are looking for other talented developers, themers, and device maintainers if they are interested in helping with a free, open source project.

    Source Code:

    GitHub - https://github.com/TeamWin/android_bootable_recovery

    Gerrit Instance - http://gerrit.twrp.me

    If you have made your own TWRP build for an unsupported device, please let us know. We might add your build to the list of unofficial builds. Bear in mind that we are working hard to add more devices and we may add your device to our official build list later.

    Device Config: https://github.com/bigbiff/android_device_google_redbull

    If others thing don't work, please report the issue and let me know.

    Download here:
    Test9: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test9-redfin.img
    - fix cpu temperature display
    - turn off openaes
    - MTP: fix 100% CPU
    - fix perms for last_log.gz
    - one click flash option to keep twrp when updating boot in recovery - thanks @Nebrassy


    You need to install a kernel with built-in touch drivers such as ElementX-P5.
    First, install ElementX-P5, the use the install ramdisk recovery option in the Install menu to install the TWRP image.


    https://build.twrp.me/test/redfin/twrp-3.5.0-0-test1-redfin.img

    Please ignore the -10 in the version string when fastbooted into TWRP. I am hoping to get the a11 TWRP branch working in a10 trees.

    Test 2: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test2-redfin.img
    Test 3: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test3-redfin.img
    Decryption and backup restore working. Tested with April Firmware.
    Test 4: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test4-redfin.img
    Enable MTP. Fix /sdcard bind mount to /data/media/0
    Test 5: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test5-redfin.img
    Add partitions: misc, boot and persist. Enable repacking into ramdisk. Tested with ElementX-P5.
    Test 6: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test6-redfin.img
    Fix repacking twrp into recovery. You need to install a kernel with built-in touch drivers such as ElementX-P5.
    First, install ElementX-P5, the use the install ramdisk recovery option in the Install menu to install the TWRP image.
    Test 7: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test7-redfin.img
    Fix wiping Titan M chip. Fix decryption hanging on lineage-18.1 when booting TWRP.
    Test 8: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test8-redfin.img
    Fix reboot to recovery from fastbootd.


    http://twrp.me
    23
    Hello all. I was able to get an initial decryption and backup/restore working.

    Here is test2 image: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test2-redfin.img

    Remember this is still fastbootable only. I have to test repacking in the future.

    Currently only decrypts the 12/25/2020 patchlevel. I will try to upload today a version that will continue to work on future and current versions.
    22
    Here is test3, tested with the latest firmware: https://build.twrp.me/test/redfin/twrp-3.5.0-0-test3-redfin.img

    Please let me know what issues you have. I will be working on integrating fscrypt v1 policies so I can port over crosshatch to the aosp11 tree. I will work on repacking afterwards.
    20
    Should I keep crypto disabled or should I try to resolve the fscrypt includes somehow? With crypto disabled to avoid that error, I've got the Google boot splash with the above ADB fix for proper shell access including dmesg and logcat, but it fails to start actual TWRP and the logcat is complaining about missing vintf manifest entries for android.hardware.boot and android.hardware.health

    Edit: I also had to inject the Proton kernel for it to boot, I'm currently using the latest AOSP11 bramble/redbull with your commits cherry-picked like I did earlier with the lineage-18.1 attempt

    I just barely got Fscrypt working with decryption. I am working on fscrypt policy storage now. You can track my progress at the android_bootable_recovery project at https://gerrit.twrp.me
    18
    I posted a link to a test4 image in OP. I enabled MTP and fixed bind mount to /sdcard from /data/media/0.