yashsingh1/xdaforums huggingface dataset:
[Moto G6 Guides, News, & Discussion] WrensFGun:
Yep, that's what I figured. For what it's worth, I flashed this link provided in an earlier post above me and it got me to the September patch:

https://yadi.sk/d/2-dRSyWCVzTtGA

It still says my bootloader is signing with a bad key, but my gpt.bin file did work. Any idea if the "bad key" note on the bootloader will prevent auto updates? I assume I'll have to manually flash going forward?

Thanks!
[Moto G6 Guides, News, & Discussion] ninjakira:
The bad key thing is just something that happens when the bootloader is unlocked don't worry about it and same goes with the bootloader saying that. For my device after flashing twrp the bad key text changes to N/A so that's how we know we successfully got twrp flashed on our moto g6 play. im not sure if it does that for your device though but once you flash twrp you won't even be able to take an ota update anyway. You need everything pure stock to take an ota update. And you just have to enable developer options once you boot the phone up and touch the option that says automatic system updates. And it should turn off automatic updates lol. But my suggestion is if you are able to boot your phone up like normal make sure your on stock everything no root, stock recovery, stock boot and all that if you want to do an ota update as I said before lol then follow your devices guide for the root.
[Moto G6 Guides, News, & Discussion] WrensFGun:
Thanks man, appreciate it! I've got auto updates enabled and I don't think there's been one since the September one I have now, so we'll see. Will probably get impatient and flash something shortly anyway.

As an aside, Ive tried a lot of treble roms on the phone, some work, some don't [or mostly don't, since the camera won't function]. Is there no upgrade path on any of those short of just flashing the next release in twrp or via fastboot?

Thanks again for your help.
[Moto G6 Guides, News, & Discussion] ninjakira:
Not that I'm aware of because there gsi (generic system images) there not specifically made for one device but made to work on any device that's treble enabled. which any device that comes shipped with android 8 or higher is project treble enabled. The updates/otas we have are made just for our device/phone which is why is If you or me were to flash a firmware not made for us it won't work.
[Moto G6 Guides, News, & Discussion] 72k:
Hello all... I have a problem, my moto g6 xt 1925-6 retus wont boot up even to its stock recovery. this problem start when im playing a game, the screen become flickering, unresponsive then restart it self. But when it goes to motorola logo its start bootloop and rebooted over and over. I got panic and do a force restart to recovery then cleared the cache. But the problem still remains so i took OTA update (which is september patch) wishing it will solve the problem. And now i cant turn on my phone at all, i tried power + vol down or up and hold it for over 2 minutes but still no luck. The led just flashes once every 10-15 seconds. Please someone help me :( FYI im in stock room and unlocked bootloader, sorry for my english :)
[Moto G6 Guides, News, & Discussion] Bluemgt06:
Blinking light sounds like a bad or totally dead battery, if the battery was dropping in power rapidly that could cause the flickering screen. But could possibly be any number of issues. I would definitely be looking into getting a warranty replacement.
[Moto G6 Guides, News, & Discussion] 72k:
The flickers are make sense, but my battery dead? How come? Its only 3monts old! And i did nothing wrong except unlocked the bootloader then update for september patch. It was succsessful instaled and suddenly turned off with no reason
[Moto G6 Guides, News, & Discussion] Disastron:
Hi, I'm not entirely new to flashing recoveries and boot partitions and custom ROMs. Just a little new, and generally a pretty good follower of documentation and instruction. I don't understand why this throws so many errors; why there are evidently conflicting image files attached before, in the middle of, and after the necessary commands; whether the late-added batch file is the same as the commands listed; and how to remove root and return to stock on my device. Is there a how-to which describes how to return to ALI stock? I'm currently rooted at Oreo OPS27.104-15-10-4 and want to take the OTA or otherwise upgrade to OPS27.104-92. Although I realize pie's right around the corner (9.0).
[Moto G6 Guides, News, & Discussion] Disastron:
Succeeded only in a bootloop

Extracted and ran all this, methodically I thought. But now my phone is a Hello Moto speaking machine. It's not doing anything much else. I notice on the bootloader screen that the baseband version data is gone. I don't think this is what's supposed to have happened. Could someone tell me how to boot my phone at all, now?

Thanks.

EDIT: I re-ran the script twice more, and now I have successful boot. Maybe items for flashing are not in order of dependency? I don't know. It's working and I'm satisfied with that.!
[Moto G6 Guides, News, & Discussion] Daniel Dumile:
Is there a flashable zip of the latest firmware with the September security patch?
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Not yet, I'm working on it tho. I had made twrp flashable zips for each of the 3 firmware versions currently available for the xt1925-6. Upon testing them out to make sure they worked and were ready for use, I found a couple issues (1 being in the script to flash them, and another in the vendor images).

Point is, I'm working on it and hope to have them finished up some time today. This will make it much easier for users to upgrade (or downgrade?) rather than needing to flash the fastboot files each time to accept an ota update if you've removed forced encryption and rooted, etc. Each of the zips will include a boot.img with verity already removed (and a stock untouched boot.img) this way you can easily just flash Magisk immediately afterwards. Forced encryption will also be removed as well. I may at some point use Aroma Installer to give the user a choice to remove forced encryption or not, but I gotta learn more about aroma installer before I go that route. This was done on the latest twrp flashable zips for Moto G5+ users and seems to be the way to go ultimately.
[Moto G6 Guides, News, & Discussion] Daniel Dumile:
How can I remove "device cannot be trusted" on startup?
[Moto G6 Guides, News, & Discussion] Jleeblanch:
In order to do that, you would need a custom logo.bin file to flash (in twrp or using fastboot). Usually you would find them in the Moto G6 Themes, Apps, and Mods section here in our device forums. At the time of this post, there doesn't appear to be any.

Basically the logo.bin is the devices "boot logo" so to speak. When we unlock the bootloader (on Moto devices anyway) then the message you see is displayed. I have the tool(s) to make them for Moto devices, I just haven't gotten around to do it. Typically you can just swap out the images within the logo.bin file but the N/A or bad key words needs to be covered by white or they still appear regardless of what you use for an image.
[Moto G6 Guides, News, & Discussion] Locklear308:
Potentially ignorant question... what is ALI?
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Lol... ALI (or "ali") is the codename for the Moto G6
[Moto G6 Guides, News, & Discussion] Locklear308:
Oh my goodness I feel so silly now... I just wanted to make sure it was not like a different country version... haha. So this is good for the US version? I will download it just in case. :)
[Moto G6 Guides, News, & Discussion] madbat99:
Check in your phone's settings to make sure.
[Moto G6 Guides, News, & Discussion] mapomme1108:
Hello,

Does it work on a Moto G6 Paly 1922-3 from France?

Thanks!
[Moto G6 Guides, News, & Discussion] Jleeblanch:
It's does not, no. The firmware in this thread is only for the Moto G6 (codenamed ALI).

You will wanna check the other firmware thread for the Moto G6 Play (codenamed ALJETER or JETER?).
[Moto G6 Guides, News, & Discussion] mapomme1108:
Ok.

I have check on my phone in fastboot mode and the codename is JETER

Thanks

EDIT : does anyone know where I can find a stock or custom ROM for a Moto G6 Play JETER 1922-3 for France?

I need it because I only have the message "bad key" when the phone starts then the phone enter fastboot mode.

Thank you!!
[Moto G6 Guides, News, & Discussion] newbie cyborg:
Error while flashing stock firmware

Hello,

while running the first command,the error I receive is as follows

sending 'partition' (45 KB)... OKAY [ -0.000s]

writing 'partition'... INFOValidating 'gpt.default.xml'

INFOSecurity version downgrade

INFOImage primary_gpt failed validation

INFOPreflash validation failed

INFOCancelling 'gpt.default.xml'

FAILED (remote failure)

finished. total time: 0.056s

using the ali-xt1925-13

btw, I have full access over TWRP and have tried multiple complete wipes

[edit]:

Got it running back on the latest stock rom

downloaded the latest retail firmware from mirrors.lollinet and followed the flashing sequence provided by OP

thanks a lot (:
[Moto G6 Guides, News, & Discussion] newbie cyborg:
you can find the latest stock image for aljeterand flash it from mirrors.lolinet.

Hope it helps.
[Moto G6 Guides, News, & Discussion] mapomme1108:
Hello,

Thank you for helping me.

On lolinet, there are stock image for JETER but I don't know which one I should use.

There are :

WZV, USC, Sprint, RETUS, RETCA, LRA, Cricket, ATT, AMZ
[Moto G6 Guides, News, & Discussion] Jleeblanch:
I was gonna say, if your device codename is JETER, than use the correct firmware, but you found it.

I believe if you look in > Settings > System > About phone, then check under Software channel that should give you your answer
[Moto G6 Guides, News, & Discussion] mapomme1108:
The problem is that Android does not boot anymore.

I only have access to fastboot mode and to the TWRP.
[Moto G6 Guides, News, & Discussion] newbie cyborg:
Try the RETAIL version firmware,

I couldn't boot into my G6[ALI] anymore as well and so I couldn't find out which version to download.

But the retail version worked for me so i'm assuming the latest Aljeter retail version will work for you as well, give it a go.
[Moto G6 Guides, News, & Discussion] mapomme1108:
Ok. I have downloaded the RETAIL version.

How should I install it : with fastboot or with TWRP?
[Moto G6 Guides, News, & Discussion] Jleeblanch:
If you are able to access the bootloader, before you potentially load the incorrect firmware and make things worse, post the output of

fastboot getvar all

and copy paste it to a text file or a site like hastebin.com and share the link (or attach the file).

This will tell me exactly what firmware and device variant you have.
[Moto G6 Guides, News, & Discussion] mapomme1108:
Ok.

fastboot getvar all

give

(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8937-BF.4F
(bootloader) product: jeter
(bootloader) board: jeter
(bootloader) secure: yes
(bootloader) hwrev: P4
(bootloader) radio: 5
(bootloader) storage-type: emmc
(bootloader) emmc: 32GB SAMSUNG GX6BMB RV=08 PV=03 FV=0000000000000003
(bootloader) ram: 3GB SAMSUNG LP3 DIE=8Gb M5=01 M6=06 M7=00 M8=5F
(bootloader) cpu: MSM8937
(bootloader) serialno: ZL6222HQBD
(bootloader) cid: 0x0032
(bootloader) channelid: 0x00
(bootloader) uid: D5B195B300000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 535822336
(bootloader) reason: Reboot mode set to fastboot
(bootloader) imei: 351844091003810
(bootloader) meid:
(bootloader) date: 05-20-2018
(bootloader) sku: XT1922-3
(bootloader) carrier_sku: XT1922-3
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time:
(bootloader) ro.build.fingerprint[0]: motorola/aljeter/aljeter:8.0.0/OPP
(bootloader) ro.build.fingerprint[1]: 27.91-143/150:user/release-keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.27.21.150.aljeter.re
(bootloader) ro.build.version.full[1]: tail.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-04400-89xx.0
(bootloader) version-baseband: <not found>
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-g5319bbb-0000
(bootloader) kernel.version[1]: 5-g2d07014 (hudsoncm@ilclbld52) (gcc ver
(bootloader) kernel.version[2]: sion 4.8 (GCC) ) #1 SMP PREEMPT Fri Mar
(bootloader) kernel.version[3]: 23 07:45:40 CDT 2018
(bootloader) sbl1.git: git=MBM-NG-VBF.4F-0-g5f65866
(bootloader) rpm.git: git=02a0726-dirty
(bootloader) tz.git: git=MBM-NG-VBF.C7-0-g5fefee4-dirty
(bootloader) devcfg.git: git=MBM-NG-VBF.C7-0-g5fefee4-dirty
(bootloader) keymaster.git: git=MBM-NG-VBF.C7-0-g5fefee4
(bootloader) cmnlib.git: git=MBM-NG-VBF.C7-0-g5fefee4
(bootloader) cmnlib64.git: git=MBM-NG-VBF.C7-0-g5fefee4
(bootloader) prov.git: git=MBM-NG-VBF.C7-0-g5fefee4-dirty
(bootloader) aboot.git: git=MBM-NG-VBF.4F-0-g69a878f
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: reteu
(bootloader) current-slot:
(bootloader) slot-suffixes: _a
(bootloader) slot-count: 1
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID
(bootloader) slot-retry-count:_a: unknown
(bootloader) slot-retry-count:_b: unknown
all: listed above
Finished. Total time: 0.098s
[Moto G6 Guides, News, & Discussion] Jleeblanch:
So, your device is the XT1922-3

Firmware version you need is:

aljeter:8.0.0/OPP27.91-143/150:user/release-keys

Specifically pay attention to the green part.
[Moto G6 Guides, News, & Discussion] mapomme1108:
Ok. I have found the ROM.

Should I use fastboot or TWRP to flash the ROM?

If it is fastboot what are the commands?

If it is TWRP, how can I copy the zip file to my phone?

Thanks
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Most likely it needs to be flashed using fastboot.

If you unzip the firmware zip, and send me the servicefile.xml or flashfile.xml, I can tell you exactly what commands need to be used for a successful flash.
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Ok, perfect. Gimme a little bit and I'll put together the commands for you.

Also, do you use Windows ot Linux?
[Moto G6 Guides, News, & Discussion] mapomme1108:
Thanks a lot.

I use Windows
[Moto G6 Guides, News, & Discussion] TheLoonyRebel:
Just got my USA unlocked G6 back running 104-15-10. More than ready to test on my end.
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Fastboot commands to restore stock firmware: Moto G6 Play

Sorry for the late reply, but the commands you want to enter are as follows...

Please NOTE, this is ONLY for the Moto G6 Play

Type (or copy/paste) each command one at a time and hit/press enter after each one

fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
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 vendor vendor.img
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot

As I mentioned, type each command (one command per line) and hit/press enter. Pay attention to the command prompt as you will see each one doing it's thing, wait for it to finish before typing the next command. Also note that this will wipe your data (which in your case doesn't matter).
[Moto G6 Guides, News, & Discussion] mapomme1108:
Hello,

Thank you very much : it works :laugh: !

You make me save 200 euros

When I start the phone there is still this message : "bad key"

What does it means?

Thanks
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Glad it worked out for you!

The "bad key" message just means the boot.img is signed with a bad key, nothing to worry about
[Moto G6 Guides, News, & Discussion] mapomme1108:
Is it possible to make it disappear?
[Moto G6 Guides, News, & Discussion] Daniel Dumile:
Any updates to this rom?
[Moto G6 Guides, News, & Discussion] madbat99:
No
[Moto G6 Guides, News, & Discussion] ColinShots:
Hey there, Jleeblanch. Did you ever happen to put together a flashable zip for OPS27.104-92?
[Moto G6 Guides, News, & Discussion] Jleeblanch:
I did, yes. However, I must have borked something in one of the zips and it was causing issues so I pulled them off AFH.

I recently made a TWRP Flashable zip for the leaked 8.1.0 Oreo Soak test for the Moto G4/G4+ and did that zip a little bit different and that was successful. That being said, I will be making it again here shortly and now that I have another device to use as my daily, I can flash the crap outta my G6 without needing to worry about anything [emoji41]

I hope to get it done tonight or tomorrow (depends when I get outta work) so we all have an easier way to restore back to stock rather than using fastboot to flash the full firmware.
[Moto G6 Guides, News, & Discussion] ColinShots:
That's awesome. I really appreciate the work you're putting in on this device.
[Moto G6 Guides, News, & Discussion] zmanjnr:
Any update? Thanks!
[Moto G6 Guides, News, & Discussion] Jleeblanch:
Zip should be up tonight. I made one version last night but didn't get much further than that unfortunately.
[Moto G6 Guides, News, & Discussion] madbat99:
Just sit tight bud and wait a bit. I doubt he made an update and then was waiting for someone to ask before he posted it.
[Moto G6 Guides, News, & Discussion] Josephthom12:
locked moto g6

Hi madbat99, Just to be absolute certain I want to get confirmation from you or someone else on this thread before I go about hammering my brand new $250 phone I just got last week. So I purchased an Amazon Prime exclusive Moto G6 phone. (I don't care about the warranty I just want an rooted phone with a custom ROM) But neglected to read the fine print stating that these phones are LOCKED. The device does not qualify for bootloader unlocking. If I flash this stock firmware image will it reinstall the stock boot loader from Motorola not Amazon allowing me to unlock it and install a custom ROM and root? Is this possible? Or am I forever out of luck?

Most important! After I flash this firmware will I be able to use it on my Unlocked phone with T-mobile in the U.S?
[Moto G6 Guides, News, & Discussion] HueyT:
Can't without unlocked bootloader
[Moto G6 Guides, News, & Discussion] madbat99:
You won't be able to unlock the bootloader. No matter what. But if it's carrier unlocked, you should be able to use it on whatever major gsm carrier you want.
[Moto G6 Guides, News, & Discussion] teckgiik101:
September update zip?
[Moto G6 Guides, News, & Discussion] aaanonymous:
Verizon has just released Software Version: ODS27.104-95 with Android Security Patch Level: 2018-11-01

https://www.verizonwireless.com/support/motorola-moto-g6-update/

Perhaps the rest of the software channels (versions) of ali will get this update soon and may be available on the software repository in the coming days/weeks.....

https://mirrors.lolinet.com/firmware/moto/ali/official/
[Moto G6 Guides, News, & Discussion] teckgiik101:
Thanks.

I'm looking for 82-87-3 zip.

If I only get the boot.img, that'll work too.
[Moto G6 Guides, News, & Discussion] aaanonymous:
There are several full firmware packages with the ...82-87-3 version located in the various software version folders at the moto g6 ali software repository site:

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

You just download the full package that corresponds to you G6 ali variant ad extract the zip file to get the boot.img

Hope this helps :)

---------- Post added at 09:01 AM ---------- Previous post was at 08:56 AM ----------

In addition, for other members, there is a new version just added to theRETAIL folder dated Dec 9 and perhaps other new firmware package added and soon to be added in the other folders....:good:
[Moto G6 Guides, News, & Discussion] teckgiik101:
Thank you so much for sharing this!
[Moto G6 Guides, News, & Discussion] teckgiik101:
Mine is the Indian variant (XT1925-13)

I tried lots of different firmware, all I get is either image signed with bad key or image corrupt for boot.img

I'm not able to get my device to boot, welp :(
[Moto G6 Guides, News, & Discussion] Jleeblanch:
That is normal, if you continue with the fastboot commands, everything will be fine.
[Moto G6 Guides, News, & Discussion] applechap:
Use the image from the RETIN folder. Im afraid I cant post the link as its external and Im a new user.

This is the firmware for XT1295-13 and use the following commands to restore the phone to stock setup including encryption and locked boot loader

fastboot oem lock

fastboot oem lock

fastboot flash oem oem.img

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 flash boot boot.img

fastboot oem lock

fastboot getvar max-sparse-size

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot flash dsp adspso.bin

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

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 flash oem oem.img

fastboot erase modemst1

fastboot erase modemst2

fastboot erase cache

fastboot erase userdata

fastboot erase DDR

fastboot flash fsg fsg.mbn

fastboot oem fb_mode_clear
[Moto G6 Guides, News, & Discussion] teckgiik101:
Thank you so much, worked like a charm!
[Moto G6 Guides, News, & Discussion] aaanonymous:
Can these commands be run from a batch file or one at a time in the adb command window? Also, do these commands apply to RETUS and the other firmware versions ? Thanks...….
[Moto G6 Guides, News, & Discussion] Jleeblanch:
If you're trying to lock the bootloader, than these commands should work for ALL variants. The reason there is so many commands (meaning some are repeated) is due to having rooted and possibly removed encryption.

If you're simply just trying to restore the stock firmware, than all those commands aren't necessary.
[Moto G6 Guides, News, & Discussion] aaanonymous:
Thanks, just another question since I have not rooted my Moto G6 XT1826-6 yet.

If I successfully root my G6 and load it back up with apps for daily use, can the phone be flashed to the next firmware release without losing data? For example, when flashing the Weekly/Nightly Lineage OS updates?

2. If so, what would the best procedure be?

Pardon me if I may have missed something in this long thread, I am a bit new to this...….

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

Correction, my phone is a Moto G6 version XT1925-6 …………………….