yashsingh1/xdaforums huggingface dataset:
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
Both the "N/A" and the "Bad Key" notifications during boot appear to be indicative of an unlocked bootloader -- they are not errors, per se, but simply denote that your bootloader is unlocked. (akin to the old "WARNING: BOOTLOADER HAS BEEN UNLOCKED" screen that you see on older Moto devices.)

As far as suggestions go, I'm at a loss. Root for this device appears to be very imminent. As far as I can tell, nobody has been able to attain root on this device as of yet. There appears to be one step missing, so hopefully it is soon discovered.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
I was recently reading a thread supporting confirmed root for the Moto E6. In a nutshell, instead of patching the stock boot image with Magisk Manager, the OP opted for patching the stock recovery image, then subsequently flashing it with fastboot. He made reference to following the Moto G7 root procedure, which likewise focuses on the use of a patched recovery.img. Although I have read up on this topic in the Magisk support thread, I am nonetheless puzzled. Because A/B partitioned devices like ours are devoid of an actual /recovery partition per se, I am uncertain as to how such a method could be used. Anyway, I've asked the OP of the Moto E6 root thread to provide any input he may have on this.

https://xdaforums.com/moto-e6/how-to/rooting-e6-surfna-t3965659
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] daftshanks:
I just made a post, I was able to get Magisk on the G7 Play for the most part if anyone is interested. I know this was for TWRP but somewhat in the same boat.

https://xdaforums.com/g7-play/how-to/magisk-g7-play-xt1952-4-installed-t3975477
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
Works like a charm, and I'm on the xt1952-4 Sprint variant. However, the Lolinet site has all available firmware for my variant so I was able to procure the stock recovery image for patching. From reading the Magisk support page, Topjohnwu makes specific reference to the necessity of booting recovery mode from fastboot in order to maintain root of the Android OS. Nice job. Well written tutorial.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] moochermick:
Anyone have the boot.img for ppys29.105-134-2

It's the retgb version.

If not can a boot.img from another version of g7 play work?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
Ok awesome. Magisk is installed. I had even tried the recovery method before, maybe something changed in magisk.

If anyone at all could mirror twrp for me that would be awesome since twrp4.img is down.

I am very curious as to why we cannot get it to stick
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
Here is a direct link to the firmware package you need. Just extract the boot.img from the package once you download it.

https://mirrors.lolinet.com/firmware/moto/channel/official/RETGB/
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] moochermick:
Thanks got it ?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
Stuck in a bootloop because of a bad module. I know I sound like a broken record, but if anyone at all has a copy of twrp4 that [MENTION=7718083]Spaceminer[/MENTION] originally uploaded I would greatly appreciate a working mirror.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Linuxassassin:
I would to like to test the twrp 4
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Rogy153:
Awesome \o/

Maybe you can help me with a doubt. Which image do you patched with magisk and writed to recovery? I can't found stock recovery image on ROM zip file provided by lolinet.

https:/\/\mirrors.lolinet\.com/firmware/moto/channel/official/RETBR/XT1952-2_CHANNEL_RETBR_9.0_PPY29.105-134_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Filename: XT1952-2_CHANNEL_RETBR_9.0_PPY29.105-134_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Thank You.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
You don't patch recovery, you patch your boot.img

Download a copy of your stock firmware

Extract the boot.img from the zip file you downloaded

Copy the boot.img to your device.

Install magisk manager.

Under advanced options make sure recovery mode is checked. All 3 options need to be checked

Click install, then choose the "choose file to patch option" choose the boot.img file you just copied to your device

This will create magisk_patched.img copy this file to your computer.

Now you will want to fastboot flash the newly patched magisk_patched.img to your phone.

After you have flashed it do not boot up normally... Choose the reboot to recovery. Your phone should boot and magisk should be installed
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
[MENTION=5645259]BobbyBlunt[/MENTION] I've been trying to get a copy of it from [MENTION=7718083]Spaceminer[/MENTION]. He mentioned some sort of access problem with his Mega File account, but that he was trying to post a good download link ASAP.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
Awesome. After diving a little deeper into this a/b device stuff I noticed variations of the pixel 3 had the same issue. You could boot twrp, but you could not get it to stick as you would have to flash a twrp installer zip through the temporary boot of twrp.

I just want to compare a few things and see if there is a way I can get it to stick. If we can get twrp 4 to somehow stick, and now that we have root, we would then be able to move onto other things

I would love if drivedroid worked on this device :( It is a very useful tool for me at work
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Linuxassassin:
So the only reason I would need twrp would be for flashing a gsi cause gravitybox can only do so much

Gsi won't boot because the device is encrypted

But to be honest there isn't really a point cause of motorolas skin is just tweaked aosp

But with a coustom recovery would allow to dirty flash otas with out a pc
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
Yeah the Moto X4 (Payton) seems to be the same. The official TWRP comes with an installation zip.

---------- Post added at 07:23 PM ---------- Previous post was at 07:21 PM ----------

You can decrypt by disabling the force encrypt flag in vendor/etc/fstab.qcom. The best way I've found is to adb pull the fstab.qcom file, disable the flag with a code editor, mount the /vendor partition in adb, then adb push the modified fstab.qcom file back to vendor/etc/fstab.qcom. You will then need to format /userdata before rebooting system.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
I've been researching this whole a/b thing. This was all new to me until I purchased this device. From what I have gathered in this thread twrp 4 works fine on this device, we just couldn't get it to stick. I've been making comparisons, and seeing what other a/b devices had to do and I believe it is just something simple we are missing.

In theory we boot twrp 4, and flash a twrp install zip. We would just have to make one for this device which shouldn't be too hard since twrp4 does appear to work
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] EngineFixer44:
hey bro the link isn't working can you re upload it?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
I just reached out to him via pm in hopes he will respond.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
Yeah, totally new to me also [MENTION=5645259]BobbyBlunt[/MENTION]. And I agree with you completely. It's likely a simple step we are missing to make TWRP stick. From my understanding, the guys over at TeamWin are working on an official build for the CHANNEL and, as you probably know, the RIVER (Moto G7) and the LAKE (Moto G7 Plus) already have official builds.

I've reached out to the maker of twrp4.img. He's very busy with work these days, and has had some difficulty with accessing his cloud storage account, but told me he would try to post a working link soon.

---------- Post added at 03:53 AM ---------- Previous post was at 03:34 AM ----------

Ok guys I found my copy of twrp4.img. All credit for this goes to [MENTION=7718083]Spaceminer[/MENTION]. I only uploaded my copy and shared the link.

twrp4.img by [MENTION=7718083]Spaceminer[/MENTION]: https://drive.google.com/file/d/13MROGlEA_TdgHFTaiqOswo4w0NgXhGbx/view?usp=drivesdk
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
So I tried twrp4. I have the Sprint variation. All I get is a black screen. My PC recognizes the phone, but I get no interface at all

I saw that was a fairly common issue. I flashed my stock dtbo but there was no change. Only a black screen. Adb commands are working so I know something is running
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] EngineFixer44:
What command did you use to flash it?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
fastboot boot twrp4.img

I also flashed my stock dtbo with fastboot flash dtbo dtbo.img. Black screen but I do have adb so something is indeed running I just cant see it
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] EngineFixer44:
For those who cant mount data in twrp watch this video

https://www.youtube.com/watch?v=ZB5D0n4Z5s4
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Linuxassassin:
use this dtbo (https://drive.google.com/file/d/1pV6-LbNoMG0J8vcyAWN0QWYGx67vxBgT/view?usp=sharing)

with twrp4 then you will have a bootable version of twrp4
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
That did the trick. Much appreciated
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Linuxassassin:
My only gripe about having this version of twrp you can't yet have both root and the recovery
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
Thank you both so much! I don't have copies of anything right now. I lost about 20gb of files stored on my mega account after they had some kind of server problem. It's a huge relief to see this.

---------- Post added at 12:37 PM ---------- Previous post was at 12:16 PM ----------

As far as I know, you need to install twrp to the ramdisk, then patch the already installed twrp/boot image with magisk.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
No problem [MENTION=7718083]Spaceminer[/MENTION]...I'm glad I was mindful to save a copy of twrp4.img. I lost access to a GDrive account about two years ago and lost about 20 GB worth of files, so I know how it goes. Good to hear from you by the way. I hope work and everything is going well.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] kpc:
Thanks for all the tips and the working twrp. Anyone know a GSI Pie ROM that will boot on this phone? I seem to be getting boot loops on anything but the stock system image
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Linuxassassin:
do you have twrp installed if so i can help you

---------- Post added at 11:49 PM ---------- Previous post was at 11:40 PM ----------

Theese all Work I Tested them then i decided to stick to dot os

PHH asop 10 does not work it boot loops indefentify left my phone booting for a hour

if your looking for gsi's that work with this phone it is Arm32binder64ab

hope this helps

Dot OS

https://sourceforge.net/projects/do...4_ab-UNOFFICIAL-20190918-0616.img.xz/download

descendant GSI

https://androidfilehost.com/?fid=6006931924117932459

AOSP 9.0

https://github.com/phhusson/treble_...v119/system-arm32_binder64-ab-gapps-su.img.xz

---------- Post added 9th October 2019 at 12:03 AM ---------- Previous post was 8th October 2019 at 11:49 PM ----------

i tried that it doesnt boot into magisk anymore

plus if they need root they could just flash phh asop 9.0 for a complete stock android im still testing getting magisk and twrp to play nicely A/B devices certanily are interesting lmao

---------- Post added at 12:09 AM ---------- Previous post was at 12:03 AM ----------

i think what im going to have to do us start from scratch install magisk then install twrp retention module for a/b partions then theoreticly twrp nd magisk will play nicely
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] kpc:
I do have bootable TWRP in both A/B slots following the instructions in this thread. I have been unable to get AOSP flashed to system and not bootloop after. Is there some interim step after flashing the image in TWRP other than the usual wipe?

---------- Post added at 08:36 PM ---------- Previous post was at 08:30 PM ----------

Never mind, I got it. Just had to wipe the system partition before flashing.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
im confirming any GSI with " binder " in the file name will boot on our devices

im booting this now will let you know if it works or not

Android 10 gsi

https://github.com/phhusson/treble_experimentations/releases/download/v200.d/system-quack-arm32_binder64-ab.img.xz
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
So you were able to get it to stick? I haven't tried installing it yet (busy with work) but from what I was seeing no one was able to get it to stick... Either that or it caused a bootloop
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
no go on this end the best gsi i would say would be DotOS better customization features but no root the AOSP one has root out the box i was able to adb shell $su and it worked
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] kpc:
Yeah, getting TWRP to stick was pretty easy, thanks to clear instructions and a stable twrp4.img from [MENTION=7718083]Spaceminer[/MENTION]

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://xdaforums.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.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] EngineFixer44:
After doing this the touchscreen is not responsive in twrp.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] kpc:
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.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
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
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Holy hell this is great to see ?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
I know right?

---------- Post added at 01:39 AM ---------- Previous post was at 01:35 AM ----------

[MENTION=10182889]EngineFixer44[/MENTION], working smooth on my xt1952-4 Sprint variant. Hats off to [MENTION=7718083]Spaceminer[/MENTION] for his dedicated work on the stable twrp4.img.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] :
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 [MENTION=10182889]EngineFixer44[/MENTION] mentioned earlier. It seems the touch-screen isn't working for me either. I'm on XT1952-2.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
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?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
Instructions for Slot B

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

Thanks
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] moochermick:
fastboot flash system_b "file to flash"

I believe it's as above without the quotes
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
Thanks
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] BobbyBlunt:
New ota seems to be rolling out on the Sprint variation. Looks like it contains October's security fixes
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Luqueuris150:
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?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] alecxs:
in Magisk Manager is option somewhere to patch recovery instead of boot. Patch the twrp.img

https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Wiliz Yei Yei:
Yes, it worked 10/10, install android 10 GSI and without success: '(
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
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.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Wiliz Yei Yei:
We will stay a little longer without Q. Is there any method to root by having the TWRP?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
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.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
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).
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] :
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.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] daftshanks:
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
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
TWRP will be getting an official build from the folks over at TeamWin. Currently, all other Moto G7 variants have official TWRP builds -- the RIVER, LAKE & OCEAN. Our beloved body of water -- the CHANNEL -- will be along momentarily. I'm not certain as to the timeframe or the present progress on the G7 Play. I can only confirm that our official TWRP is in the works. I want to give a huge thanks to Mr. [MENTION=7718083]Spaceminer[/MENTION] for his amazing work porting our current working TWRP. He's definitely laid the groundwork for an official build.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
Send me your stock recovery and dtbo images and I'll see what I can do. I planned on doing a bunch of recovery work this week anyways.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
I'm on it. Thanks a million [MENTION=7718083]Spaceminer[/MENTION]. I'll post links to those images in a few.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] :
That's great news, glad to hear it's coming. Hope it's not too much work for TeamWin to to do this one.

I'd like to send the recovery images, though I'm having some trouble. I'm running adb as root (which I can do when booting into the current TWRP image). Using parted as mentioned in this guide, I get 64 partitions, none of which are clearly labelled recovery. Would you know if the G7 Play just has a differently labelled recovery partition? Just so I don't send you the wrong image.

Thanks very much for the work you're doing.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
[MENTION=7718083]Spaceminer[/MENTION], my device is the Boost Mobile xt1952-4 variant. Here is a link for the boot.img and dtb.img from my latest firmware build (PCYS29.105-144-3) with an October 1st security patch level. Will this suffice, or will you need me to pull any particular images directly from my device? Anyway, thank you very much for this, and please let me know if you need anything in addition to these images.

boot.img & dtb.img: https://mega.nz/#F!MUczTIDL!N234hsbajuBxazeSYMm-KA
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
I think running adb pull /dev/block/bootdevice/by-name/boot will work for you. If not just give me your model number and software channel and I'll pull it from your firmware. Slight correction, I said recovery, but I meant the boot.img. I keep forgetting that recovery lives inside of your boot.img.

---------- Post added at 12:48 PM ---------- Previous post was at 12:45 PM ----------

I think that's everything that I need. Check back later tonight and I'll probably have something ready. I'm on eastern standard time by the way.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] :
So I wasn't able to run the command (for me, /dev/block/ has no subdirectories, only files named "8:##"). I am on an XT1952-2 model, and the software channel is "retla". Thanks again.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
No worries, I'll grab your firmware.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
[MENTION=10059830]Viva La Android[/MENTION]

Try flashing this, and tell me if it causes any problems. I've disabled dm-verity with a hex editor. Hopefully it works.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
Will do [MENTION=7718083]Spaceminer[/MENTION]. When I flash this image, do I need to reinstall TWRP or anything? Thanks
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
I doubt it. That should just disable verity and nothing more. I do have a twrp test though if you want to try that. If I did everything right, then I think touch will work and it'll start up without any hoops to jump through.

BST Twrp
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
[MENTION=7205335]SmallGiant[/MENTION]

RETLA Twrp: twrp.img

Patched dtbo: dtbo.img
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Viva La Android R.I.P.:
Wow. Thanks a million [MENTION=7718083]Spaceminer[/MENTION]. I can't wait to try this. I'm on the road for a few days with my job, so it'll be end of the week before I can test, but I'm certainly looking forward to it.