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

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

Search This thread

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,690
24
Castellana Grotte
toolaio.tk
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):
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
5. Copy the recoveryimgfilename.img in the phone memory
6. Go in advanced menu
7. Click on "Install Recovery Ramdisk"
Screenshot-2019-04-04-17-25-43.png

8. Choose the recoveryimgfilename.img
9. Swipe to install


OLD Install guide (Much more articulated but perfectly functional):
1. Follow this guide to root your device: https://forum.xda-developers.com/oneplus-7-pro/how-to/guide-root-oneplus-7-pro-patched-boot-t3931205
2. Flash the TWRP installer like a magisk module
3. Flashing the TWRP installer you will lose the root, so you will need to flash magisk again from magisk manager before reboot the device or you can reboot the device and flash magisk in twrp


HOW TO UPDATE a ROM and KEEP TWRP and ROOT:
Before all Disable all magisk modules for boths methods

- Put rom.zip, twrp installer.zip and magisk.zip on your internal storage;
- Flash Rom;
- Flash TWRP Installer;
- Flash magisk;
- Reboot.

If you want you can also update a stock rom from phone settings with local upgrade:
- Update the Rom WITHOUT REBOOT;
- Open Magisk Manager;
- Menu/modules/+ button/select the twrp installer.zip and flash it;
- Always in Magisk Manager, click on Install/Install/Direct Install;
- Again in Magisk Manager, click on Install/Install/Inactive Slot;
- Reboot.


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
 

Attachments

  • photo_2019-05-19_12-54-28.jpg
    photo_2019-05-19_12-54-28.jpg
    231.5 KB · Views: 37,049
Last edited:

mingo_mgx

Senior Member
Mar 25, 2017
268
423
Haarlem
mgx-script.com
Hello, after I do fastboot reboot it bootloops oos. And I followed the tutorial step by step

E:\Desktop\akbar\platform-tools>fastboot getvar current-slot
current-slot: a
finished. total time: 0.005s

E:\Desktop\akbar\platform-tools>fastboot --set-active=_b
Setting current slot to 'b'...
OKAY [ 0.045s]
finished. total time: 0.046s

E:\Desktop\akbar\platform-tools>fastboot flash boot test-twrp-3.3.1-1-guacamole.img
target reported max download size of 805306368 bytes
sending 'boot_b' (55972 KB)...
OKAY [ 1.191s]
writing 'boot_b'...
OKAY [ 0.292s]
finished. total time: 1.484s

E:\Desktop\akbar\platform-tools>fastboot reboot
rebooting...

finished. total time: 0.002s
 

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,690
24
Castellana Grotte
toolaio.tk
Hello, after I do fastboot reboot it bootloops oos. And I followed the tutorial step by step

E:\Desktop\akbar\platform-tools>fastboot getvar current-slot
current-slot: a
finished. total time: 0.005s

E:\Desktop\akbar\platform-tools>fastboot --set-active=_b
Setting current slot to 'b'...
OKAY [ 0.045s]
finished. total time: 0.046s

E:\Desktop\akbar\platform-tools>fastboot flash boot test-twrp-3.3.1-1-guacamole.img
target reported max download size of 805306368 bytes
sending 'boot_b' (55972 KB)...
OKAY [ 1.191s]
writing 'boot_b'...
OKAY [ 0.292s]
finished. total time: 1.484s

E:\Desktop\akbar\platform-tools>fastboot reboot
rebooting...

finished. total time: 0.002s

try to manually reboot in recovery mode, there is something be understood for now. If it doesn't boot in twrp in any method just flash stock boot.img.


EDIT:
TWRP 3.3.1-2:
Fixed vibration:
TWRP 3.3.1-2 Unofficial by mauronofrio
TWRP 3.3.1-2 Unofficial Installer by mauronofrio
 
Last edited:

twinnfamous

Senior Member
May 31, 2012
1,252
703
sacramento
try to manually reboot in recovery mode, there is something be understood for now. If it doesn't boot in twrp in any method just flash stock boot.img.


EDIT:
TWRP 3.3.1-2:
Fixed vibration:
TWRP 3.3.1-2 Unofficial by mauronofrio
TWRP 3.3.1-2 Unofficial Installer by mauronofrio
From looking at the source of device extracted. There are a few changes we need to make .
The first I noticed is that we have a recovery partition again.
Along with the metdata encryption.
Not sure about the v3 synthetic keys on this but looking at the fstab from device I believe it is. Even if it's not on May security patch. Can anyone confirm this?
 
  • Like
Reactions: dapero and rage77

mauronofrio

Recognized Developer
Jun 29, 2012
4,359
13,690
24
Castellana Grotte
toolaio.tk
From looking at the source of device extracted. There are a few changes we need to make .
The first I noticed is that we have a recovery partition again.
Along with the metdata encryption.
Not sure about the v3 synthetic keys on this but looking at the fstab from device I believe it is. Even if it's not on May security patch. Can anyone confirm this?

recovery partition is not there, i checked the partitions, there is only a string on the fstab, it is not in may security patch
 
  • Like
Reactions: rage77

Link2811

Member
Dec 13, 2012
49
13
Could be of course. the question is why implement it to behave differently if you don't discourage people from unlocking the bootloader, would be really annoying from oneplus...

What the hell is going on then ?

Plus it's doing the exact opposite of discouraging me unlocking the bootloader = Cancel my Netflix and Prime subs, and stream their shows over Plex in 1440p HDR quality.

Remember all of you streaming providers : There is only one side who suffers when implementing DRM, and it's very rarely the user side :)
 

UnrealEgg

Member
Mar 16, 2013
5
1
Could be of course. the question is why implement it to behave differently if you don't discourage people from unlocking the bootloader, would be really annoying from oneplus...

I'd assume these other phones implement: "The Widevine keybox must be stored in a region of memory that is erased or is inaccessible when the device bootloader is in an unlocked state."

My OnePlus 7 Pro bootloader is unlocked and according to the DRM Info app, I am now L3.
 

IlD4nX

Senior Member
Aug 3, 2008
460
95
Bugella Civitas
I'd assume these other phones implement: "The Widevine keybox must be stored in a region of memory that is erased or is inaccessible when the device bootloader is in an unlocked state."

My OnePlus 7 Pro bootloader is unlocked and according to the DRM Info app, I am now L3.
So, do you confirm is something safe to be done?
Safe for winedive, of course!

Sent from my OnePlus 5 using XDA Labs
 
Last edited:

Top Liked Posts