13

[RECOVERY][3.4.0-10][U][guacamole]Official/Unofficial TWRP recovery for OnePlus...

 2 years ago
source link: https://forum.xda-developers.com/t/recovery-3-4-0-10-u-guacamole-official-unofficial-twrp-recovery-for-oneplus-7-pro.3931322/page-179#post-87271199
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

[RECOVERY][3.4.0-10][U][guacamole]Official/Unofficial TWRP recovery for OnePlus 7 Pro

You use payload dumper to extract the boot.img from the havoc ROM zip then patch that img with magisk. Then flash that patched/rooted boot. Img with fastboot after flashing and booting the ROM one time

Most Informative. Thanks.

hammered58

Senior Member
Nov 4, 2017 Wisconsin
I have TWRP Installer3.6.1 and TWRP 3.6.0 and am going to flash HavocOS. This is my fist 1+ DEVICE (7pRO tmo gm1915) I've attempted to root but I'm no stranger to LG ZTE, or Samsung roots. I am a bit confused regarding the patched boot.img and how to create/extract it. Apologies for the noob question, but does anyone have any advice?

I would make sure you have the MSM tool working first before installing a rom , just in case things go bad also maybe join the havoc telegram ,, the op7p is a diff animal for sure ,I came from a HTC where TWRP was mandatory , but op7p not so much as most roms have a built in recovery which I use and seldom use TWRP, have fun, pm me if u need help.

I would make sure you have the MSM tool working first before installing a rom , just in case things go bad also maybe join the havoc telegram ,, the op7p is a diff animal for sure ,I came from a HTC where TWRP was mandatory , but op7p not so much as most roms have a built in recovery which I use and seldom use TWRP, have fun, pm me if u need help.

Thanks., but I joined that telegraph Team looking before I started gathering root files

parag0n1986

Senior Member
Thanks., but I joined that telegraph Team looking before I started gathering root files

Also one thing not mentioned much. Take a backup of persist partition after unlocking bootloader and gaining root

parag0n1986

Senior Member
Also one thing not mentioned much. Take a backup of persist partition after unlocking bootloader and gaining root. Before any flashing

Reactions: hammered58

mrpeev

Senior Member
Mar 27, 2013
Hey guys,
I am using curently Pixel Experience and after booting the TWRP, I dont see my phone memory. The PC recognizes the phone when I turn off MTP, but nothing else. Basically I cant even flash the TWRP itself or any other rom or whatever. Maybe someone here can help me resolve the issue.

HippoMan

Senior Member
May 5, 2009 1,899 Hippoland
Hey guys,
I am using curently Pixel Experience and after booting the TWRP, I dont see my phone memory. The PC recognizes the phone when I turn off MTP, but nothing else. Basically I cant even flash the TWRP itself or any other rom or whatever. Maybe someone here can help me resolve the issue.

I think you posted this message in the wrong forum. This forum is for questions about TWRP for the "guacamole" OnePlus 7Pro device.

shjeanpy

Senior Member
May 2, 2011
I am new user of GM1917, I flashed BlissRom and then TWRP but I have this error described in the image. Your help will be very useful to allow me to use the Recovery

Attachments

  • IMG_20220518_194242.jpg

    IMG_20220518_194242.jpg
    3.3 MB · Views: 76

parag0n1986

Senior Member
I am new user of GM1917, I flashed BlissRom and then TWRP but I have this error described in the image. Your help will be very useful to allow me to use the Recovery

Are you running Android 12? If so, TWRP can't decrypt data. You can format data and flash DFE.zip then it might work

Last edited: May 19, 2022

shjeanpy

Senior Member
May 2, 2011
Are you running Android 12? If so, TWRP can't decrypt data. You can format data and flash DFE.zip then it might work

Yes I'm in bliss A12, if possible provide me DFE. zip I can give it a try. Thanks in advance

Apr 7, 2016
Think I brikked my OP7P. I had TWRP running and was trying to flash it with OnePlus7Pro.11.0.1.1.GM21AA.magisk_patched_boot.img and I'd seen it "writing boot_a". Then I rebooted the phone, my old LineageOS image started running, skipped the setup steps for wifi, backup, fingerprint. Then tried to setup wifi but it couldn't see any networks and then it went black.

Can't get it to do anything anymore. It won't power on at all. Any tips?
Think I brikked my OP7P. I had TWRP running and was trying to flash it with OnePlus7Pro.11.0.1.1.GM21AA.magisk_patched_boot.img and I'd seen it "writing boot_a". Then I rebooted the phone, my old LineageOS image started running, skipped the setup steps for wifi, backup, fingerprint. Then tried to setup wifi but it couldn't see any networks and then it went black.

Can't get it to do anything anymore. It won't power on at all. Any tips?

What you are trying to do? Root your phone with patched image? On which system you are before? Seem you are on Lineage and not oxygen.

Any idea when we can expect an official twrp for A12?

SysAdmNj

Senior Member
Jun 29, 2010 2,554
Hello all, hope someone can help. I'm using OP7P GM1917 running OxygenOS 10.3.7.GM21AA. I had magisk working fine until I updated my twrp recovery to version twrp-3.4.0-10-guacamole-unified-installer-mauronofrio. I lost root, since then I've downloaded and re-installed Magisk-v25.2 apk with only option to "Select and Patch a File", I then tried to get the boot.img from a stock full upgrade zip and patch that file and nothing happened. I tried to rename 25.2 apk to a zip file and uninstall file and flash in twrp and it fails(uninstall works). Not sure what other order of steps I should take to get root back.

I'm supposed to flash that patched img file arent I?

Attachments

  • Screenshot_2022-08-11-11-19-24.png

    Screenshot_2022-08-11-11-19-24.png
    201.2 KB · Views: 3
  • Screenshot_20220811-132959_01_01.jpg

    Screenshot_20220811-132959_01_01.jpg
    144.7 KB · Views: 1
Last edited: Today at 6:39 PM

SysAdmNj

Senior Member
Jun 29, 2010 2,554
Hello all, hope someone can help. I'm using OP7P GM1917 running OxygenOS 10.3.7.GM21AA. I had magisk working fine until I updated my twrp recovery to version twrp-3.4.0-10-guacamole-unified-installer-mauronofrio. I lost root, since then I've downloaded and re-installed Magisk-v25.2 apk with only option to "Select and Patch a File", I then tried to get the boot.img from a stock full upgrade zip and patch that file and nothing happened. I tried to rename 25.2 apk to a zip file and uninstall file and flash in twrp and it fails(uninstall works). Not sure what other order of steps I should take to get root back.

I'm supposed to flash that patched img file arent I?
Update: That worked.

Top Liked Posts

  • 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 feel.
    Code:
    #include <std_disclaimer.h>
    /*
    *
    * We are not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at us for messing up your device, we will laugh at you.
    *
    */
    Features:
    - Seems is working all
    - Android Q Support
    - Android 11 Decryption

    Install guide (Reccomended):
    1. Install fastboot tools from google's sdk on your PC
    2. Enter fastboot mode
    3. Unlock your bootloader
    4. Run "fastboot boot recoveryimgfilename.img" in command line (if you want to have it permanently you should flash the installer)
    5. If you will flash the installer and you are stock you need also to flash magisk or your phone will not boot again
    6. Enjoy it

    Other Install guide (More articulated but fully functional):


    OLD Install guide (Much more articulated but perfectly functional):


    HOW TO UPDATE a ROM and KEEP TWRP and ROOT:


    BugReport:
    Please all, when you got a problem, bootloop, error in twrp, unable to do something, please be sure you have followed the guides properly and when you write here you have problem just follow this guidelines for the bugreport:
    - Write what rom and version you have actually;
    - Write which device you have, gm1910, gm1913, gm1917, gm1915, gm1920, gm1911.
    - Write which twrp you are using (Unofficial, Officia and the version);
    - If you got an error in the twrp flashing a zip, after got the error make a log using this command : "cat /tmp/recovery.log" or if you are using adb with "adb shell cat /tmp/recovery.log". Copy the output in a text file and send me it.
    - Write what are you trying to do;
    - Write how you flash the twrp and magisk, just write what you do.

    If you don't give me this infos i can't help you.
    If something doesn't work, don't just complain, but try to get the problem resolved by giving all the information you have.

    Tips:
    If android Q TWRP .img doens't work, reboot in fastboot again and try the Pie TWRP
    If you alread have a twrp flashed you can only flash the new installer zip or the new installation method to update your TWRP (remember to flash again magisk or your system will not boot).
    If you have some problems with backup, like 255 error or something similar please check this guide: https://forum.xda-developers.com/oneplus-6/how-to/255-error-twrp-backup-restore-999-t3801632
    For the Bacups use always "system_image" and "vendor_image" instead of "system" and "vendor".

    Download:
    India Fake Partition Deleter by mauronofrio
    Official Builds

    TWRP 3.4.0-10 Unified Unofficial Q by mauronofrio
    TWRP 3.4.0-10 Unified Unofficial Installer by mauronofrio

    TWRP 3.4.0-0 Unified Unofficial Q by mauronofrio
    TWRP 3.4.0-0 Unified Unofficial Installer by mauronofrio


    Official Builds
    OnePlus 7 Pro 9.5.3 stock boot.img

    Reccomended ADB and Fastboot binaries:

    Adb and Fastboot Installer

    Source code:
    https://github.com/omnirom/android_bootable_recovery
    https://github.com/mauronofrio/android_device_oneplus_guacamole_TWRP
    https://github.com/mauronofrio/android_device_oneplus_guacamole_unified_TWRP
    Android Pie IMG: https://gitlab.com/HolyAngel/op7
    Android Q IMG: Precompiled stock one

    My Telegram TWRP Support Group:
    https://t.me/twrp_Mauronofrio

    Donations:

    Credits:
    Thanks to @Titokhan for the tests
    Thanks to all Telegram Test Group
    Thanks to @HolyAngel for the kernel
    Thanks to @rsyhan for the help with the reserve script
    Thanks to @arter97 for the help with the Android Q Kernel

    Created 2019-05-18
    Let's do it again:

    New TWRP 3.3.1-70 guacamole unified (OnePlus 7, OnePlus 7 Pro, OnePlus 7 Pro 5G):
    - Fixed fastboot boot command also for Android Q.

    Actually i will publish an .img for android Q, one for android Pie and an Installer that will works on both.

    TWRP 3.3.1-70 Unified Unofficial Q by mauronofrio
    TWRP 3.3.1-70 Unified Unofficial Pie by mauronofrio
    TWRP 3.3.1-70 Unified Unofficial Installer by mauronofrio

    I want to say a big thanks to @arter97 that help me to make this new TWRP.

    I hope this community will support me also in the next OnePlus generation.
    TWRP 3.3.1-74 OnePlus 7/ 7 Pro/ 7 Pro 5G (guacamole unified) by mauronofrio:
    FInally fixed all problems with rom flashing;
    Added a new script to support this new india.img fake partitions (now you can flash Open Beta 6).

    TWRP 3.3.1-74 Unified Unofficial Q by mauronofrio
    TWRP 3.3.1-74 Unified Unofficial Pie by mauronofrio
    TWRP 3.3.1-74 Unified Unofficial Installer by mauronofrio
    For the reserve partition problem, I thought I had already solved the problem, apparently it wasn't like that. I want to explain why this problem happens:
    The main problem is that reserve partition doesn't exist, the reserve.img should be copied directly in a data folder (precisely /data/reserve/reserve.img ), unfortunately this is not easy, because on the devices with A/B slots to flash a rom using a TWRP we need to use the update_engine_sideload, an executable that will automatically flash the partitions present in the payload.bin in the respective partitions of the inactive slot.
    So a reserve.img file should be flashed (from the update_engine_sideload) in the /dev/block/bootdevice/by-name/reserve_a ( if a slot is the inactive one), but /dev/block/bootdevice/by-name/reserve_a doesn't exist.
    So i managed to make a new service-script that will automatically create the /data/reserve/reserve.img file and /dev/block/bootdevice/by-name/reserve_a and /dev/block/bootdevice/by-name/reserve_b symlinks.

    Another problem came at beginning with some other partitions that are not 2 but only one, but that wasn't a big problem.

    Now i can say that the reserve problem should be fixed at all.

    Now, there some problems with Android Q, i worked for few days to see if possible to make the TWRP boots from fastboot, but actually i'm unable to make a TWRP that boots from fastboot in Android Q., i don't know if it is a bootloader problem, a kernel problem or a twrp problem. (I actually think it is a bootloader problem in all cases)

    If you need to flash the TWRP on android Q i reccomend to flash it with magisk manager ( so to do this you need to flash a patched_boot.img to have root), this guide is already explained in the first post under thread "Old Flashing Guide".

    I did also a new feature to keep twrp and root after you update your rom (or you flash a boot.img), this new feature is called inject TWRP and you can enable (or disable) it after you selected a zip in the install option. Remember to disable it when you don't need of it or it will create some problems. I will reccomend to don't use it if you are flashing a new kernel or magisk.zip.
    Image Explanation:


    Update TWRP 3.3.1-65 guacamole unified (OnePlus 7, OnePlus 7 Pro, OnePlus 7 Pro 5G) by mauronofrio:
    - Fixed reserve partition error during ROM flashing;
    - Updated kernel (Reduced .img size from 56MB to 33MB);
    - Added new Inject TWRP feature.

    TWRP 3.3.1-65 Unified Unofficial by mauronofrio
    TWRP 3.3.1-65 Unified Unofficial Installer by mauronofrio

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK