yashsingh1/xdaforums huggingface dataset:
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Linuxassassin:
Has anyone tried loading a gsi on the phone cause it is treble compatible if the TWRP can install gapps I could see if phh superuser works on it

---------- Post added at 11:24 AM ---------- Previous post was at 11:21 AM ----------

Flash stock room using rsd lite
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
Yep, just flash your stock boot.img. I'd try reflashing your stock dtbo.img first to see if it fixes it though. This could be a selinux problem, or it might be Magisk. There's other devices that lose sim card access from trying to install Magisk. Twrp #4 looks like a keeper though. Did you lose simcard access from twrp #1 too?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
For anyone testing this that's getting a no sim card error after flashing Magisk, some possible fixes may include...

Rebooting 2x.

Using Magisk 19.0 or 18.1.

Disabling Magisk Hide.

If I can find anything else about this I'll post it. In the meantime twrp4.img appears to be ready! If you have any issues with it, please let me know what they are and your model number.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Linuxassassin:
it doesnt work for retus i dont think it reads but black screen
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
Make sure you have your firmware installed to slot A & B first. Then flash your stock dtbo.img, then while still in fastboot, run fastboot boot twrp4.img and see if it'll start up. If that doesn't work... Try flashing the dtbo.img from the google drive link in this post. Then try booting twrp4. If none of that is successful, then send me your boot.img and I'll make a new one for RETUS.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
new to this threa/section , but tried all instructions i was able to install after i factory reset and interrupted boot process once after the bad key boot screen to fast boot flash with the provided files and a mix of the firmware files , TWRP installed - to ramdisk success boot loop problem fixed after fast boot userdata / DDR commands but can't mount data passed that point , while freshly wiped you do have access to data , so i was able to copy over the files TWRP , and patched boot image file from magisk but once installed i still have no root wondering if its rooted on slot A scared to switch slots without knowing the effects , new to an A/B device partition scheme , tried to flash modified boot.img posted but to no avail it would pass due to bad sign key or something of that nature , so even tho i installed the patched boot.img from magisk still no root I'm wondering if i rebooted the recovery would it have stuck or not hope this info helps
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
I flashed both and no sim card still.

Thanks
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
I've thought it might be flashing to the other slot, and it'd be worth it to check. Booting up either slot should be safe as long there's an OS on them. You said you're on slot B now, so slot A should already be filled with an OS.

Make sure you're using twrp4.img from a few posts back. If you already are then let me know. I might have some bugs to work out with /data mounting. What model do you have? (xt1952-?)

---------- Post added at 06:22 PM ---------- Previous post was at 06:17 PM ----------

Try flashing NON-HLOS.bin from your most recent firmware.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
What is the command exactly for that?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Go into fastboot/bootloader

Fastboot flash modem NON-HLOS.bin
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

Double check your flashfile.xml just to be safe, that should be correct though.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
That didn't work. I am not sure when I lost sim access it could have been at any point. Oh well, I know the risks of messing with a phone. Any other things that might work?

Thanks

Hold on I didnt see the last post.

---------- Post added at 11:52 PM ---------- Previous post was at 11:47 PM ----------

Sorry didnt work.

Thanks
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Ummmm reflash your stock firmware is the best I can say. Unless your able to add the apns yourself. Does the phone itself just not detect your sim card or does it detect it and just doesn't have service. Cause if it's being detected jsit no service you can def add the apns needed
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
No, it does not detect it. So I flash my firmware as I did to system b but do it to system a? maybe you could explain a little.

Thanns
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
I would flash to both of them just to be safe. Once you have flashed stock. Try something different. Try flashing everything needed to both. Boot or Flash twrp and everything provided to both. My thought is maybe the reason nothing is sticking is because only one partition is getting rooted and the other is not so it could be causing issues. I do know under normal circumstances phones that have A/B partition use the A partition until a ota is applied, then the phone switches to B partition while the A partition gets updated so it looks like a "seamless" ota. After the ota is complete and installed on A partition the phone reboots to switch back to A partition then B partition gets updated and installed behind the scenes. So maybe decrypting both partitions will help.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Also do make sure when you boot twrp. Try doing advanced wipe, format data, type yes, then reboot to bootloader and flash twrp then flash the encryption disabler and then flash magisk.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
followed your steps will let you know if everything persists after boot , flashed magisk twice after it gave me a couldn't mount /vendor so i manually mounted it and refreshed and everything went smooth hopefully this works. wiping data with the format data button i was able to mount storage after reboot to bootloader and it mounted so maybe this is a success will let you know
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Did you flash it all to both partitions? Or just one.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
just flashed to both partitions just to see what will happen booting from slot B everything flashed fine on slot A , it seems like once data is rebuilt by android i cannot for the love of anything boot into tarp without boot loop but everytime i try to patch boot image with magic if i don't format data if it semi mounts it says its patched but maybe we will have success since both slots are flashed , maybe data re-encrypts which is why tarp boot loops because once you fast boot erase user data / DDR it boots fine after the dtbo.img is flashed which is weird
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
That's what I'm trying to figure out lol my thinking is of both slots get decrypted it should work. Maybe try flashing twrp and everything on one slot then for the 2nd slot just flash the disabler. If I had the device I would just test my thoughts out myself cause I feel bad when someone goes into a bootloop ? luckily you guys at least have stock firmware to flash in case anything happens
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
something new happened i can see the files i added to the phone before hand maybe it worked , usually they are gone after the phone creates the folders , twrp still reboots after setup

---------- Post added at 12:53 AM ---------- Previous post was at 12:51 AM ----------

id rather recovery boot loop than the phone itself lol , and him ill try flashing to the A slot i did the last method on A/B just incase but it seems like data is stubborn lol like that made this cool phone difficult to root
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Just to check if it did decypt push install then check if you can see the mb of internal storage where it ask of you want to mount external or internal. If it didn't work internal should say 0mb because it's still encrypted. If it shows any number besides 0mb its decrypted

---------- Post added at 01:56 AM ---------- Previous post was at 01:55 AM ----------

Also if able to take logs of the recovery and logcats. The log for recovery will be named something like recovery.logs. send that to spaceminer as well as logcats.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
data mounts indefinitely , but can't boot to the flashed tarp only the fast boot one , but i flashed magisk again i will try supersu
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Supersu is not the preferred method and it's not systemless we cannot help with stuff involving supersu.. [MENTION=7718083]Spaceminer[/MENTION]
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
so is magisk the only way to gain root since i have file system access cani manually place the files where they need to go or will that not work /
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
It's not the only way but if you wanna use Google play, even play certain games weather you get it from play store or download the apk, do in app purchases you need to pass play store safety net which magisk helps pass because it's a systemless root. Alot of apps also use root detection now which supersu does not have to option to hide root to get passed said detection while magisk does have the ability to hide root from apps that have said detection.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
I read through and it sounds like you're not flashing twrp correctly. Boot twrp from fastboot. Then put twrp4.img on your sdcard. From twrp's main menu select > advanced > install recovery ramdisk > find and select twrp4.img.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
don't use the select image option in the install menu ? , and i flashed stock boot flashed the force encrypt / magic / and patched boot.image and the letters N/A changed to some random number string idk what thats about but will see if it works now i checked both partitions will try installing TWRP the way you mentioned
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
TWRP doesn't stick tried the same methods over and over , install to ramdisk is perm. but boot loops if data is present wiping data seems to clear magic , magisk claims boot image is patched but when you boot up it says not installed either a mount point , or permission line is missing tried disabling dm-verity and force encryption seems to flash but when booting , nothing changes
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Hmmmm just to try it. Unfortunately, Reflash the stock firmware and basically do everything we have said but instead don't flash the boot.img just keep it stock. I noticed myself with my g6 play when trying to flash a boot.img already patched by magisk sometimes doesn't work right and maybe this is a similar issue so yea. Try keeping the boot.img that comes with the stock firmware do everything else spaceminer has said along with what I've said.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
Just to clarify. Does it boot loop after installing recovery to the ramdisk? Or is it after you flash Magisk?

---------- Post added at 07:34 AM ---------- Previous post was at 07:12 AM ----------

This might clear up some confusion. With A/B devices, recovery and the boot.img are one file. Recovery lives inside the boot.img. Twrp needs to inject itself into your stock boot.img, which is what "install recovery ramdisk" does. Magisk also needs to inject itself into your boot.img. So the proper order is...

1. Boot twrp

2. Install ramdisk

3. Format /data (do not let your system boot up after this or you'll be encrypted and /data won't mount)

4. Flash magisk and the disabler from twrp (do not flash a patched boot.img, or twrp will get removed)

The net effect is; The boot.img gets patched by twrp, then the same boot.img gets patched again with Magisk.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
Will try that order when I get back in once data is clear it's normal once the phone is setup and you to to enter recovery it restarts itself the only way to load twrp I've found is to fastboot

---------- Post added at 06:38 PM ---------- Previous post was at 06:37 PM ----------

Finally been charging my Mac with usbc unfortunately only has one port lol so I've been charging it little by little just to root so I can deff test any method y'all suggest
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
still doesn't work do i have to flash slot a since it doesn't boot as if its empty but i did an OTA which is why I'm on slot b ?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
Is your channel RETUS?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
yes RETUS-9 , it seems once rebooted the boot image gets overwritten i flashed magic 18.1 to both slots with force encryption , i did notice rebooting to recovery slot A touchscreen didn't work so i fast booted and repeated the process and when switching back to slot B noticed it claimed stock boot image after running magisk before switching to slot A , i think this phone has a backup boot.img that it replaces when modified which is why we can't install twrp without formatting data and once the phone is setup TWRP boot loops so we have to fastboot, TWRP could be missing permissions or we have a different partition scheme all together , if the G7 can be rooted and this one doesn't seem to take TWRP , what is DTBO.img ? that might need to be patched or we can manually root the boot.img or create a script which while persist upon reboot i ran thru the file system in TWRP and it shows magisk folders present but the phone doesn't install.apk nor does it recognize it

---------- Post added at 07:49 PM ---------- Previous post was at 07:44 PM ----------

it could be TWRP i tried flashing fonts and suppersu claimed it patched boot.img nothing sticks with the TWRP4.img is there another revision in the works ? willing to be a tester I'm mad the g7 already has lineage os lmfao , and this phone would be beast with RR Rom
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
The touch screen not working tells me that it's a driver issue. I've seen this on the G6 Play before, and you're the 2nd RETUS this has happened to. I'll make a new one that should work for RETUS. I just got done downloading your firmware. It shouldn't take very long. Check back in about 10-15min and I'll have something ready.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
I need to get my phone back to normal could you give me a link on how to flash the stock rom back to normal so I can have sim access. From there I will flash it to the b system and then start the instruction over again tosee what event caused me to lose sim access in the first place. But I need to get my phone back to normal again with help please.

Thanks
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
honestly really appreciate your work and dedication if i was on pc i would help with the twrp i made a custom one not to long ago for a lytro camera thru a method i found on youtube don't know about editing the partitions thru f.stab or anything like that but willing to learn i feel for developers A/B was a bad move on googles part , i remember when " open source " was open source but i guess for security purposes its a way to see where they need to tighten up on vulnerabilities when gaining root ?

---------- Post added at 07:58 PM ---------- Previous post was at 07:56 PM ----------

check either post 1-3 the info should be in there to flash the phone via fast boot a lot of people said RSD lite i tried that with my first phone after i bricked it flashing twrp to boot instead of booting it , have you tired another sim card ?

---------- Post added at 08:00 PM ---------- Previous post was at 07:58 PM ----------

you might be able to take it back and swap for a new one say you installed an update and you lost sim access if i was on a PC i could mod the logo.bin to where it says motorola so they could think it hasn't been tampered with
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
[MENTION=10101129]thenatti[/MENTION]

Try this out. I think it'll work for you.

Twrp RETUS: twrp.img
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
touchscreen only doesn't work on slot a ,

terminal output when i try to boot

MAY6s-MacBook:platform-tools MAY6$ ./fastboot boot /Users/MAY6/Downloads/twrp2.img

Sending 'boot.img' (22756 KB) OKAY [ 0.518s]

Booting FAILED (remote: '')

fastboot: error: Command failed

MAY6s-MacBook:platform-tools MAY6$

have to boot from twrp4.img and then try to install twrp2 via ramdisk

---------- Post added at 08:37 PM ---------- Previous post was at 08:26 PM ----------

once the system is created you cannot boot to recovery from fast boot without commands , so android must be overwriting and encrypting files on boot which twrp needs access to run properly which is why its probably boot looping recovery , must be DM-verity - Safetynet , or force encrypt brute force protection or something
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
All the files needed to run twrp are inside of twrp. If you're encrypted, twrp just won't be able to mount /data. Twrp needs to be installed to the ramdisk of your boot.img since that's where A/B devices keep recovery too. If you boot loop after installing to the ramdisk, flash your stock dtbo.img, and erase userdata and DDR in fastboot. You can also use the volume keys to select recovery when in fastboot and reboot into twrp. Just scroll to recovery, and hit power.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
went to the g7 forums everyone stated they patched a retail version instead of RETUS will try that and see if i get anywhere , ima actually retail face palm US Retail will try to see if i have success waiting on download to finish]
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
Flash your stock boot.img first. Boot the RETUS twrp.img from fastboot. Then install the RETUS twrp.img to your ramdisk from your sdcard. It should work. Don't use any other twrp.
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
So flashing my firmware will not work? because Virgin will send it away and then they just check to see if I signed off with Motorola to unlock bootloader. Then I am out of luck. So I am asking you if you can show me how to flash the firmware again. If you can't I understand.

Thanks
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
the fetus tarp gives bad commend remote error when booting from fast boot only twrp4 boots from fastboot booting now will see if magisk is installed

---------- Post added at 10:25 PM ---------- Previous post was at 10:21 PM ----------

honestly wish i knew you do have to flash the sparse chunks thru fast boot its a post with clear instructions , i honestly can how this phone is designed/setup is beyond me hopefully one of the debs can give you better instructions on how to recover your phone , and did you unlock boot loader ?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jwreidmoto:
Yes, the bootloader is unlocked. I will start a thread on how to flash Moto G7 Play back to stock rom.

Thanks
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
if i send you my dtbo.img can you patch it and i try that ? black screen when flashing stock dtbo.img when using the one from the post it boots but it seems it overwrites the twrp and magisk patching
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] Spaceminer:
Yeah, I think a hex editor can do it. All I need to do is remove "verify" under any fstab lines in your dtbo. That's what Magisk does to it. Have you tried flashing the dtbo from the google drive link, booting & installing twrp, then flashing Magisk?
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
If you can figure out how to hex edit dtbo's to do certain things, would you mind making a separate thread about it to tell us all how you managed to do it? For a phone like this where (supposedly) these files are very important, having an independent resource we can check with to do certain things would be very beneficial to the userbase
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
Will upload it to Google drive , yes I've tried all nothing works did you fix the last twrp you uploaded ?

---------- Post added at 01:09 AM ---------- Previous post was at 12:59 AM ----------

https://drive.google.com/file/d/1UUrsf7jJsgsfhhFCywM1EWEjrEPM2o8y/view?usp=sharing

DTBO , BOOT , Bootloader .img
[Moto G7 Play ROMs, Kernels, Recoveries, & Other De] thenatti:
depending on your slot enter fast boot flash "operation"_a or _b

example fastboot flash system system.img_sparsechunk.0_b if slot B or vice verse if slot A

we're on the same firmware so i already flashed my phone this way confirmed it works

only flash these files listed below and your phone should be working again let me know if this works got the instructions from this source. https://www.forceflow.be/2016/06/29/flashing-system-images-on-moto-x-play/

some of the commands would work so i didn't include them here only what i used to flash my phone don't !! turn the phone off when flashing leave it alone and make sure its charged !! unless you want a Beautiful Brick

[TIP] you must cd to your directory with ADB and Fastboot

example cd /Users/MAY6/Desktop/desktop/platform-tools

MAY6s-MacBook:platform-tools MAY6$ ./fastboot flash partition /Users/MAY6/Downloads/CHANNEL_RETAIL_9/gpt.bin

on windows it would be cd C:\WIndows\YourFoldeName\

[TIP] if on a mac like me the command will always start with " ./ "

example ./fastboot xxx xxx or ./adb

[TIP] on a pc typing " fast boot " or " adb " once you cd to your adb fastboot directory

on windows it would be cd C:\WIndows\Foldername\

wherever you installed i recommend dropping the folder in the CMD to make it easier

the commands to flash our phones via fastboot these aren't my fast boot flash instructions

but they work for our phones

did modify post to fit our phones , and what works !!! link in post

Link to firmware files :

https://mirrors.lolinet.com/firmware/moto/channel/official/

follow this exact order with the downloaded firmware you extracted from .zip !!!!

[TIP] drag and drop firmware files into cmd to make easier.

fastboot.exe flash partition gpt.bin

fastboot.exe flash bootloader bootloader.img

fastboot.exe flash boot boot.img

fastboot.exe flash system system.img_sparsechunk.0

fastboot.exe flash system system.img_sparsechunk.1

fastboot.exe flash system system.img_sparsechunk.2

fastboot.exe flash system system.img_sparsechunk.3

fastboot.exe flash system system.img_sparsechunk.4

fastboot.exe flash system system.img_sparsechunk.5

fastboot.exe flash system system.img_sparsechunk.6

fastboot.exe flash system system.img_sparsechunk.7

fastboot.exe flash modem NON-HLOS.bin

fastboot.exe erase modemst1

fastboot.exe erase modemst2

fastboot.exe flash fsg fsg.mbn

fastboot.exe erase cache

fastboot.exe erase userdata

fastboot.exe erase DDR

fastboot.exe reboot