[Recovery][UNOFFICIAL] TWRP Dirty Port For G7 Play

EngineFixer44

Member
Oct 5, 2019
11
0
0
Yeah, getting TWRP to stick was pretty easy, thanks to clear instructions and a stable twrp4.img from @Spaceminer

1. fastboot flash dtbo dtbo.img from https://drive.google.com/file/d/1pV6-LbNoMG0J8vcyAWN0QWYGx67vxBgT/view?usp=sharing
2. fastboot boot twrp4.img from https://drive.google.com/file/d/13MROGlEA_TdgHFTaiqOswo4w0NgXhGbx/view?usp=sharing
3. adb push disable_dm-verity_forceencrypt.zip from https://forum.xda-developers.com/attachment.php?attachmentid=4838211&d=1570520141
4. Wipe, Format
5. Flash disable_dm-verity_forceencrypt.zip
6. Advanced, Install Recovery to Ramdisk
7. Reboot to recovery
8. Reboot to bootloader
9. Repeat steps 2-7 for slot b (or a if you did b first), fastboot --set-active=b

Before flashing any custom ROM, be sure you are using the arm32_binder64 arch GSI (no custom ROMs available yet specifically for this model that I can find) and wipe the system partition before flashing system image. Otherwise system loading will bootloop.
After doing this the touchscreen is not responsive in twrp.
 

kpc

Member
Oct 26, 2007
5
4
0
After doing this the touchscreen is not responsive in twrp.
That might be a model/firmware thing (mine is RETUS, and it works), or you might need to start from the latest stock.

I can only speak to my own experience/device, and these steps give me a bootable TWRP in both slots, with functional touchscreen.
 
Last edited:

BobbyBlunt

Member
Jan 3, 2014
28
5
0
So dumb question.... How are we rooting and keeping twrp? Do we patch twrp with magisk since we are using magisk as part of the recovery?

Wouldn't flashing a patched boot IMG back just overwrite the recovery?

Again this a/b stuff is still very new to me
 

SmallGiant

Member
Jan 12, 2016
43
2
0
Yeah, getting TWRP to stick was pretty easy, thanks to clear instructions and a stable twrp4.img from @Spaceminer

1. fastboot flash dtbo dtbo.img from https://drive.google.com/file/d/1pV6-LbNoMG0J8vcyAWN0QWYGx67vxBgT/view?usp=sharing
2. fastboot boot twrp4.img from https://drive.google.com/file/d/13MROGlEA_TdgHFTaiqOswo4w0NgXhGbx/view?usp=sharing
3. adb push disable_dm-verity_forceencrypt.zip from https://forum.xda-developers.com/attachment.php?attachmentid=4838211&d=1570520141
4. Wipe, Format
5. Flash disable_dm-verity_forceencrypt.zip
6. Advanced, Install Recovery to Ramdisk
7. Reboot to recovery
8. Reboot to bootloader
9. Repeat steps 2-7 for slot b (or a if you did b first), fastboot --set-active=b

Before flashing any custom ROM, be sure you are using the arm32_binder64 arch GSI (no custom ROMs available yet specifically for this model that I can find) and wipe the system partition before flashing system image. Otherwise system loading will bootloop.
Thank you for the instructions. Would anybody be able to help me with an error, however? I tried the first command "fastboot flash dtbo dtbo.img", and get the following error.
"fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
Aborted (core dumped)"
Using an older version of android-tools fixed this, in case anyone else has this problem.

However, I'm having the same issue as @EngineFixer44 mentioned earlier. It seems the touch-screen isn't working for me either. I'm on XT1952-2.
 
Last edited:

jwreidmoto

Senior Member
May 9, 2019
65
8
0
Instructions for Slot B

Can you show me what to add to the commands in order to do the above instructions to the b slot? Also are you able to root once the above commands are done to both slots?
 

jwreidmoto

Senior Member
May 9, 2019
65
8
0
Instructions for Slot B

Yeah, getting TWRP to stick was pretty easy, thanks to clear instructions and a stable twrp4.img from @Spaceminer

1. fastboot flash dtbo dtbo.img from https://drive.google.com/file/d/1pV6-LbNoMG0J8vcyAWN0QWYGx67vxBgT/view?usp=sharing
2. fastboot boot twrp4.img from https://drive.google.com/file/d/13MROGlEA_TdgHFTaiqOswo4w0NgXhGbx/view?usp=sharing
3. adb push disable_dm-verity_forceencrypt.zip from https://forum.xda-developers.com/attachment.php?attachmentid=4838211&d=1570520141
4. Wipe, Format
5. Flash disable_dm-verity_forceencrypt.zip
6. Advanced, Install Recovery to Ramdisk
7. Reboot to recovery
8. Reboot to bootloader
9. Repeat steps 2-7 for slot b (or a if you did b first), fastboot --set-active=b

Before flashing any custom ROM, be sure you are using the arm32_binder64 arch GSI (no custom ROMs available yet specifically for this model that I can find) and wipe the system partition before flashing system image. Otherwise system loading will bootloop.

Could you post instructions on how to do the above instructions to the b slot?
Thanks
 

Luqueuris150

Member
Oct 14, 2019
15
1
0
So dumb question.... How are we rooting and keeping twrp? Do we patch twrp with magisk since we are using magisk as part of the recovery?

Wouldn't flashing a patched boot IMG back just overwrite the recovery?

Again this a/b stuff is still very new to me
I want to know that too, does anybody knows how to install magisk and twrp here? What to patch first, what to patch, and everything else?
 

Spaceminer

Senior Member
Sep 9, 2016
1,159
547
123
Olympus Mons
Yes, it worked 10/10, install android 10 GSI and without success: '(
I think that's a vndk issue. Android 10 only boots with Oreo firmware for us G6 Play users, and I think you folks shipped with Pie, so you don't even have Oreo firmware. I've always had to flash Oreo vendor, oem, and boot images, then flash phh's special magisk build under the v200 tab.
 

Wiliz Yei Yei

Member
Feb 27, 2018
18
2
0
I think that's a vndk issue. Android 10 only boots with Oreo firmware for us G6 Play users, and I think you folks shipped with Pie, so you don't even have Oreo firmware. I've always had to flash Oreo vendor, oem, and boot images, then flash phh's special magisk build under the v200 tab.


We will stay a little longer without Q. Is there any method to root by having the TWRP?
 

Viva La Android

Senior Member
Jul 31, 2019
408
156
53
Corbin, KY
Post #233 just a few replies above this. I believe that's how you do it. Magisk should be more compatible then ever at this point. I think they've moved to Android 10 support.
Yeah, the Magisk v20.0 change log includes myriad inclusions surrounding Android 10 support. I haven't taken the time to read the entire change log, but it's packed with changes following the previous Magisk release, including the notorious system-as-root implementation (something I'm still studying to grasp).
 
Last edited:

SmallGiant

Member
Jan 12, 2016
43
2
0
Does anyone know if TWRP will be getting an official port on this device? I tried earlier and wasn't able to use the dirty port, as the touch-screen wouldn't work for me (even after flashing the dtbo first). Also, is there a way to backup the system and install a new ROM without TWRP, am I stuck for now until I can get it to work? Thanks.
 

daftshanks

Member
Jul 11, 2019
6
15
0
I want to know that too, does anybody knows how to install magisk and twrp here? What to patch first, what to patch, and everything else?
Yeah this is where I'm wondering too. Do I flash twrp from stock and then magisk recovery by patching the twrp? Just need to know if possible to have both Magisk and TWRP on this phone due to the recovery method for our phones