yashsingh1/xdaforums huggingface dataset:
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Unfortunately, at this time there isn't a super easy method. Your best bet, once you've flashed TWRP and rooted and have your device setup to your liking (with apps, etc) would be to reboot back to TWRP and backup data. This way, when an OTA update is available, you can (potentially) easily restore your apps and data after your back up and running.
[Moto G6 Guides, News, & Discussion] aaanonymous:
Great, so correctly me if I am wrong, when the next OTA update is available in the RETUS folder of the software repository at

https://mirrors.lolinet.com/firmware/moto/ali/official/ I the following:

1. Download that file to the PC.

2. Boot the G6 to TWRP and do a DATA partition backup to the SD card

3. Follow the steps HOW TO INSTALL STOCK ROM IN MOTO G6: in the OP of this thread.

4. Follow the steps in the thread [GUIDE][ROOT][Moto G6][ALI] TWRP, Root, and Magisk installation guide by dejello to re-install TWRP, Root and Magisk.

5. Boot in TWRP and restore the DATA partition.

6. Boot back into system and use the phone.

Is this correct? Anything details missing? I appreciate your input and input from other members of this great forum....thanks in advance
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Pretty much, yes. That is the (not so much easiest) best way to insure you have the least amount of issues.

The other option would be, when you get a notification for an OTA update, reflash the firmware you are running at the time of receiving the OTA and reboot and set your device back up. Download and install the OTA update and then follow the guide in the TWRP and rooting thread to pull the boot.img and post about it there so either myself or [MENTION=3060517]dejello[/MENTION] can patch it (this is assuming it hasn't already been done by that time of course). If someone has already posted about that particular OTA update and the boot.img has been patched, then you would only need to flash it and continue with the steps. The firmwares aren't always immediately available as soon as any OTA update is. So realistically, this depends on whether you wanna wait for the full firmware to be available or be on the latest update asap.

---------- Post added at 10:17 PM ---------- Previous post was at 10:11 PM ----------

Also, being that the steps to flash the firmware for the Moto G6 (and G6 Play?) aren't entirely correct, when I have some time, I'm going to start a new thread in the Moto G6 Guides, News, & Discussion section of the forums and request this thread be removed as that's where it should have been to begin with.
[Moto G6 Guides, News, & Discussion] Lanreallenjay:
So I have a Vodafone European variant (vfeu) and unlocked since I'm using it in Nigeria. Can I change to the retail version so I can get updates ontime? How do I also go about this please.

I've read the thread, but different people with different variant means different problems hence solutions may be different.

I'll appreciate a step by step help please. Thanks.
[Moto G6 Guides, News, & Discussion] woodromw:
Will this firmware bring phone to stock without carrier branding?

I have a G6 prepaid (tracphone)...I would like to install clean andoid.No branding.

Also,does this unlock carrier restrictions/lock?
[Moto G6 Guides, News, & Discussion] HueyT:
DL is bootloader locked so can't do much but update similar software
[Moto G6 Guides, News, & Discussion] woodromw:
Thank you.
[Moto G6 Guides, News, & Discussion] stifmaster81:
are receiving the android 9 of the Brazilianss, shortly we will have
[Moto G6 Guides, News, & Discussion] obscurity98:
Goodmorning....how i install the android pie 9.0 on my moto g6 OPSS27.82-87-6 6???
[Moto G6 Guides, News, & Discussion] nlooooo:
How about a bit of a search before you ask?
[Moto G6 Guides, News, & Discussion] :
https://xdaforums.com/moto-g6/how-to/moto-g6-ali-android-9-0-soak-test-ota-t3876794

Here you go. But, this is not a completely official version. It's got many bugs. I'm suffocating from some of those bugs after installing this update. And in any case, if you want to revert back to Oreo after some time, the only way is to reinstall the stock firmware manually. I haven't got any official updates since I installed this one. But I don't know if that's because no update has been released thereafter. ? Motorola is so slow for updates.

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

Will this actually root the device...? Sorry for this noob doubt. I'm pretty new to this. I think it doesn't root the device. But, I'm asking this just to confirm. Also, will we continue to get official updates from Motorola after flashing this firmware...? I applied an OTA zip file as update and now, I wanna revert back to the older software. Will doing that continue to give me official updates? Please reply.
[Moto G6 Guides, News, & Discussion] HueyT:
No root and forced encryption will happen. No updates either on pie soak. Have to go back to Oreo and relocked bootloader to get OTA updates--unless manually download full (not patch like pie soak) pie rom to unzip, fastboot install all files
[Moto G6 Guides, News, & Discussion] BearOfXDA:
So, does going back to stock break OTAs? I keep failing to install the latest OTA for my US variant, but when I go to install, I just get an error screen and when I reboot it just says the update failed to install
[Moto G6 Guides, News, & Discussion] HueyT:
OTA is only a patch so all requirements have to be met. Full firmware can flash over current firmware. May have to wait for full firmware on https://mirrors.lolinet.com/firmware/moto/ali/official/
[Moto G6 Guides, News, & Discussion] BearOfXDA:
So even though I flashed the official 104-92-2 firmware, I won't be able to install OTAs?
[Moto G6 Guides, News, & Discussion] HueyT:
What is your model and cell service?

https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip is latest for XT1925
[Moto G6 Guides, News, & Discussion] BearOfXDA:
XT1925-6, unlocked. I use Cricket Wireless though
[Moto G6 Guides, News, & Discussion] HueyT:
retUS is safest but retail should work fine. If OTA is not meant for retUS then it won't work but will work on retail
[Moto G6 Guides, News, & Discussion] billard412:
Unlocking and relocking

I know in the past, some people had problems unlocking the bootloader after relocking it. Can somebody confirm that there's no problem unlocking then relocking (for OTAs) then unlocking again?
[Moto G6 Guides, News, & Discussion] BearOfXDA:
The OTA still isn't working at all for me, and it's even up on the lolinet mirror but it just won't install on my device for some reason
[Moto G6 Guides, News, & Discussion] HueyT:
Telegram for G6 has link for full PIE download for all Ali--join to download (not a patch or update so should work on all Ali phones). Works with unlocked bootloader.
[Moto G6 Guides, News, & Discussion] BearOfXDA:
Can I have a link to the telegram?
[Moto G6 Guides, News, & Discussion] HueyT:
https://minio.hectanode.com/files/f...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip (Thanks to BrightSkyz)
[Moto G6 Guides, News, & Discussion] HueyT:
https://t.me/MotorolaG6
[Moto G6 Guides, News, & Discussion] TracfoneChuck:
Img says cid=50

Does it work on all models of G6?
[Moto G6 Guides, News, & Discussion] HueyT:
Only for Brazil or unlocked bootloader G6
[Moto G6 Guides, News, & Discussion] the Doctor:
MODERATOR NOTICE:

I have moved this thread into the How-To section because it is a stock item. All threads posted in the Development section must be the developer's own work.
[Moto G6 Guides, News, & Discussion] jloh1963:
BTFM.bin

BTFM bin is not there.

Yo have in your instructions

fastboot flash dsp dspso.bin

Did you mean

fastboot flash adsp adspso.bin

Because you do not have a dspso.bin?

Also you have oem.img and recovery.img yet you are not using them why?
[Moto G6 Guides, News, & Discussion] fazbarulho:
Hi guys. A bit off topic but I bought my phone as a sim free phone with dual SIM but the bootloader says it's not unlockable. Is there anyway I can ask Motorola do let me unlock the bootloader?
[Moto G6 Guides, News, & Discussion] madbat99:
You requested unlock code on Motorola website? If it says not eligible, nothing can be done.
[Moto G6 Guides, News, & Discussion] fazbarulho:
Yes, it says not eligible. It's not fair, it was bought as a SIM free and it's my phone, I should be able to do whatever I want. Thanks buddy
[Moto G6 Guides, News, & Discussion] buschris:
I had to try mine 2-3 times then it said eligible. Won't hurt to try
[Moto G6 Guides, News, & Discussion] leolara:
Greetings to all I can not find the stock firmware for 1925-1 do you know where I can find it? Thank you !!
[Moto G6 Guides, News, & Discussion] HueyT:
https://mirrors.lolinet.com/firmware/moto/ali/official/RETLA1ST/
[Moto G6 Guides, News, & Discussion] ThisIsRussia:
The command list is not right.

Use the one I provided in my thread.

That's how you go back to stock.

fastboot erase userdata
fastboot erase cache
fastboot erase modemst1
fastboot erase modemst2
fastboot erase carrier
fastboot erase DDR
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash oem oem.img
fastboot flash logo logo.bin
fastboot flash dsp adspso.bin
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash vendor vendor.img_sparsechunk.0
fastboot flash vendor vendor.img_sparsechunk.1
fastboot erase carrier
fastboot erase userdata
fastboot erase DDR
fastboot erase cache
fastboot reboot

And for the thread creator:

Why did you put a password on the file? Or isn't it your own and you just copied to AFH?

That's not trustfully.

Plus you don't update this thread to the latest stock firmware.

There you find most actual firmware without any passwords or such bull****:

https://mirrors.lolinet.com/firmware/moto/ali/official/RETAIL/
[Moto G6 Guides, News, & Discussion] Skippy12359:
My bad if this has been asked but is there a twrp flashable zip available for the G6 retus pie soak test currently out?. Thanks
[Moto G6 Guides, News, & Discussion] madbat99:
No. But the official pie firmware is out now. Why use a soak test? No TWRP flashable ones. Fastboot or RSDlite. You can even use another Android device as fastboot with otg adapter.
[Moto G6 Guides, News, & Discussion] Skippy12359:
I just recently picked up a G6 and was unaware the official pie was available. Did some checking and see PPS29.55-24, is that the final build?
[Moto G6 Guides, News, & Discussion] madbat99:
Retus?

Right here

Looks like the one you cited
[Moto G6 Guides, News, & Discussion] Skippy12359:
Yeah, thanks. Downloaded RETUS PPS29_55-24 and flashed with RSDlite to my xt1925-6. Literally took about 5 minutes from plugging in the USB cable to the phone rebooting into pie. Bootloader still locked too. I'll probably wait to unlock and flash TWRP until some New ROMs or pie based gsi's start showing up on xda. Until then stock pie is pretty great.
[Moto G6 Guides, News, & Discussion] Dmerak:
I installed the stock rom. however, I have problems with calls, you can not hear anything. they do not hear me either. All the other sounds of the cell phone work correctly. can anybody help me? :(:(:(:(
[Moto G6 Guides, News, & Discussion] nlooooo:
I found this in the other thread:

"fastboot flash modem NON-HLOS.bin" using NON-HLOS.bin file from Oreo firmware on top of your PIE

That should solve your problem
[Moto G6 Guides, News, & Discussion] computercarl:
Can I safely just not flash the new NON-HLOS.bin when upgrading?
[Moto G6 Guides, News, & Discussion] Dmerak:
Hello, thanks for answering. I already tried to flash as you tell me. but the problem persists. any other suggestions. Thank you.

Hellllp! :(
[Moto G6 Guides, News, & Discussion] cpvm:
Does it pass safenet? Does it says "it is compromised" or is it fine?
[Moto G6 Guides, News, & Discussion] Skippy12359:
Safetynet in Magisk says success, ctsProfile true and basicintegity: true, so I would yes.
[Moto G6 Guides, News, & Discussion] Dmerak:
Hello again.

I've tried an incredible amount of roms, someone tells me it's a problem with the modem. I really do not know what to do, I really need help. The stock roms that I have tried are all from xda. and none makes the calls work.

Mi model XT1925-2 Dual Sim.
[Moto G6 Guides, News, & Discussion] Tom Swift:
Rdslite options

When using RDSLIte use the Flashfile menu item to perform the flash instead of the Servicefile menu item.

Worked for me. In fact i first unzipped the firmware and deleted the service file to make sure it wasn't even an option. Then just point to the folder that was unzipped.

Stephen
[Moto G6 Guides, News, & Discussion] adrw4:
the guide you linked didnt have the right commands but using https://www.droidguiding.com/how-to...le to upgrade to pie without dealing with ota
[Moto G6 Guides, News, & Discussion] Dmerak:
Hi all.

I solved the audio problem in the calls as follows;

Instead of flashing the stock rom for the xt1925-2 model, I made flash with a stock for the model xt1925-1.

that solved the problem of the sound in the calls. Then I did flash with a rom stock Pie,

eliminating the commands

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

And that was it. Now I have an android Pie, and they work as calls and everything else.

RETLA1ST XT1925-1_ALI_RETLA_8.0.0_OPSS27.82-87-8_cid50_subsidy-LATAM_SELFPERSO_regulatory-DEFAULT_CFC.xml.zip
[Moto G6 Guides, News, & Discussion] BearOfXDA:
So, my devidenis on the RETUS channel and official Pie is out but when I try to update via settings it keeps saying I'm up to date. Anything I can do?
[Moto G6 Guides, News, & Discussion] madbat99:
Sure, flash the entire firmware package. Use fastboot or RSDlite.
[Moto G6 Guides, News, & Discussion] BearOfXDA:
I'm trying to flash with RSDLite but it doesn't detect my device
[Moto G6 Guides, News, & Discussion] madbat99:
It should if it's version 6.2.4. it reads it a little odd, but it shows connected.
[Moto G6 Guides, News, & Discussion] BearOfXDA:
The latest I found was 6.1.6, is there an official site?
[Moto G6 Guides, News, & Discussion] madbat99:
Not sure. The one I use is here

Among a few other tools.
[Moto G6 Guides, News, & Discussion] BearOfXDA:
What mode should my device be in? Are there any settings I should change before using RSDLite?
[Moto G6 Guides, News, & Discussion] madbat99:
Phone in fastboot mode. Don't have to change anything. Use RSDlite to navigate to the firmware package. It will extract it for you. Pick the servicefile (doesn't wipe data) or flashfile (wipes data) and install.
[Moto G6 Guides, News, & Discussion] BearOfXDA:
I've been booting my device in fastboot but it never shows in the program
[Moto G6 Guides, News, & Discussion] madbat99:
Mine shows up. Under device it says fastboot/

Allow the program to make changes, maybe run as administrator. Windows 10 defender likes to block parts of programs.
[Moto G6 Guides, News, & Discussion] BearOfXDA:
Booted the Moto to fastboot, ran RSDLite as admin, and still nothing
[Moto G6 Guides, News, & Discussion] madbat99:
Then you may have to create an XML to batch file best stock firmware. The RSDlite batch to XML program on the page I linked works very well for that.

I don't have any problems getting RSDlite to detect my device. Even with Windows 10. So that's the only thing I can advise. I don't really know how to get a program that works for me, work for you without knowing why it doesn't work for you.

For me, it just works. Boot to fastboot. Open RSDlite.

Plug phone in (while in fastboot), and it is detected. Not sure why it fails for you. Up to date Windows. It asks if I want to allow changes when I start it. Click yes. All good.
[Moto G6 Guides, News, & Discussion] BearOfXDA:
I just went ahead and flashed it with fastboot, I was excited to give this tool a try but fastboot never fails me. Thanks for the help though
[Moto G6 Guides, News, & Discussion] madbat99:
Right on dude. Always have basic skills as a fallback. Wish it would have worked.

At least you got it.

Score!
[Moto G6 Guides, News, & Discussion] rajathsingh:
Unable to hear anthing during calls.

I followed everything and it went well totally. I unlocked the boot loader and installed the stock rom. Later I discovered that during calls I am unable to hear anything. Not even the ring. The other person also can't hear anything from myside. But during a whatsapp call everything is fine.

My model number is ' ali XT1925-13 ' and I couldn't find it boot file anywhere over the internet.

Currently, I am on OPSS27.82-87-3.

I am really worried and I need help.
[Moto G6 Guides, News, & Discussion] Skippy12359:
Noticed PPS29.55-34 pie firmware is now available for the g6, is it just a security update from PPS29.55-24 or other changes?.
[Moto G6 Guides, News, & Discussion] aaanonymous:
Updated my Moto G6 phones (XT1925-6) from PPS29.55-24 to PPS29.55-34 yesterday. Noticed security patch level is February 1, 2019.

Update went as smooth as Pie.

1. Flashed PPS29.55-34 firmware thru ADB from PC

2. Installed TWRP

3. Factory reset and format Data in TWRP

4. Reboot back to TWRP recovery to verify Data is unencrypted

4. Flash Disable_Dm-Verity_ForceEncrypt_05.01.2019.zip and Magisk 19.1.

5. Reboot to system to finish setup and restore data from Google cloud.

6. Install non-Play Store apps

Daily drivers again

Is it possible to create a script or batch file that can update the firmware and preserve Data like an OTA.

I tried removing the line in flash batch file that erases Data, but did not appear to make a difference.

Thanks for this great forum......
[Moto G6 Guides, News, & Discussion] luppolui:
Where can i pick up this file:

Disable_Dm-Verity_ForceEncrypt_05.01.2019.zip

Thanks for help from Bp,Hu
[Moto G6 Guides, News, & Discussion] the_naxhoo:
>>HERE<<
[Moto G6 Guides, News, & Discussion] HeavyHDx:
Does anyone have the full 9.0 Pie OTA package for the RETEU G6 XT1925-5? I can't find it anywhere. I can't go back to stock since I am using the international Pie version right now and the bootloader locking process won't allow me to flash its boot.img or downgrade back to Oreo.
[Moto G6 Guides, News, & Discussion] madbat99:
You flashed international pie on a retus phone, then locked your bootloader? D'oh.

There is no pie full firmware for RETUS. Gotta wait now.
[Moto G6 Guides, News, & Discussion] HeavyHDx:
No I have a RETEU phone (Germany) and unlocked my bootloader to upgrade to Pie but if I try to flash Oreo again, it won't let me flash the bootloader and boot partitions because it's a downgrade. The international Pie version's boot.img doesn't get accepted when I try to relock the bootloader, so I can't go back to stock until I can get my hands on the RETEU firmware.
[Moto G6 Guides, News, & Discussion] madbat99:
Oh ok. Don't lock the bootloader. You should be able to flash everything except the bootloader.img and the GPT.bin. skip those 2.

I haven't seen reteu pie firmware. Are you trying to go to Oreo for reteu? If you just want Oreo, you can flash retail Oreo.
[Moto G6 Guides, News, & Discussion] aross6:
I had the same issue with RSDlite. Tried on my x64 Windows 10 desktop w/ USB 2.0 and factory cable and it would not detect. Tried on wifey's x64 Windows 10 laptop w/ USB 2.0 and factory cable and it would not detect. Tried it on an older x64 Windows 10 desktop w/ USB 2.0 and factory cable and it picked it right up. All 3 PCs were running the same version of Windows. Even tried different versions of RSDlite, different cables, different drivers, and different ports on the first two and it didn't matter (adb would detect the phone as fastboot device but RSDlite would not detect it). Not sure what was different with the older desktop to make it detect the phone but it just did. Flashed RETUS PPS29.55-34 Pie with the Service file and kept all my data in tact. I guess I just lucked out and have to remember next time to go with old reliable when I wanna flash my G6.

---------- Post added at 10:28 PM ---------- Previous post was at 10:19 PM ----------

If RSDlite is working for you, just flash the Service file. It will keep your data in tact.
[Moto G6 Guides, News, & Discussion] HeavyHDx:
I can't lock the bootloader with retail Oreo since it requires downgrading.

I actually just need the boot.img from RETEU Pie since the rest of the files are flashing just fine when trying to lock the bootloader. So if someone on a stock RETEU Pie G6 could extract and upload their boot.img for me, it'd be greatly appreciated.
[Moto G6 Guides, News, & Discussion] madbat99:
Why try to lock the bootloader? It's just going to bring you headache.
[Moto G6 Guides, News, & Discussion] HeavyHDx:
I was planning on giving the device to a relative and buying a Pixel 3a. I want it to be stock so that it can receive future OTA updates.
[Moto G6 Guides, News, & Discussion] aaanonymous:
If using RSDLite to flash the firmware with the service.xml file:

1. Will the device remain rooted and data remain un-encrypted after first boot to system?

or

2. Should "Disable_Dm-Verity_ForceEncrypt...zip" and "Magisk...zip" be flashed in TWRP before first boot to system to preserve root & un-encrypted data?
[Moto G6 Guides, News, & Discussion] aross6:
Someone else could probably answer this one. My G6 is completely stock unrooted with the bootloader still locked. I was just happy to get Pie!
[Moto G6 Guides, News, & Discussion] madbat99:
No it will not remain rooted. It will be stock. So when RSDlite finishes flashing (it may try to automatically boot to system) make sure to hold the volume down button so it reboots back to bootloader. Then flash TWRP and proceed with root procedure.
[Moto G6 Guides, News, & Discussion] aaanonymous:
Thanks for the advice [MENTION=5752019]madbat99[/MENTION]

Compairing the "servicefile.xml" and the "flash_rom.bat" I have been using to flash the Pie ROM in Fastboot from PC is the following Fastboot commands:

fastboot erase cache

fastboot erase userdata

These commands are not in the "servicefile.xml", hence explains why Data is preserved.

So I removed those two commands from my "flash_rom.bat" for Pie as well as replaced the following at end of file:

fastboot reboot --> fastboot boot twrp-3.3.0-0-ali.img

That way, when the flashing of the ROM is finished, the phone will boot into TWRP. Then once in TWRP flash the three files:

twrp-3.3.0-0-ali.img (install TWRP on phone)

Disable_Dm-Verity_ForceEncrypt_05.01.2019.zip (batch boot.img to prevent Data encryption of data and pass Safetynet)

Magisk-v19.1.zip (install root access)

Reboot to system from TWRP.

With any luck ( I'm a bit of a gambler) should have an updated, rooted, un-encypted Data daily driver again after flashing with my modified "flash_rom.bat" file (: (:

I will try it on the next update to the Pie firmware ROM.......
[Moto G6 Guides, News, & Discussion] madbat99:
Ok. You turned my 5 sentences into 23. And reinvented the wheel. You can make your own .bat file from the servicefile and profit too.

Glad you got it though.

Congrats.
[Moto G6 Guides, News, & Discussion] Sarmatios:
Hey is this a typo on the first post? "fastboot flash dsp dspso.bin" ? Shouldn't it be "adspso.bin" ?
[Moto G6 Guides, News, & Discussion] Youdoofus:
my G6 errors out on the first command, it allows a few of the commands to go thru like the modems and so forth, but not the bootloder nor system. fastboot commands work fine in and of themselves, it just wont flash the important files
[Moto G6 Guides, News, & Discussion] viddoc:
Then you should unlock the bootloader and allow OEM Unlock in Settings.