yashsingh1/xdaforums huggingface dataset:
[Moto G4 Guides, News, & Discussion] Danny1976:
I tried OctoOS, but I like the moto apps that come in the stock version. I will stick with the moto stock rom and use ElementalX Kernel. It works very good.
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
Soft-Bricked moto g4 Prime Exclusive XT1625

WE HAVE DETECTED AN ATTEMPT TO FLASH UNAUTHORIZED SW ON YOUR DEVICE.

Help! Please

He was installing the ROM ATHENE_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

:llorando::llorando::llorando:
[Moto G4 Guides, News, & Discussion] Danny1976:
1. Reboot your Phone into the bootloader.

adb reboot-bootloader

2. Check if your device has been detected

adb devices

3. Flash boot.img

adb flash boot boot.img

Download link for boot.img

https://mega.nz/#!QtsDSbYb!rEQ32qUaUK3OB2IknJQ4-jMRAngsJvuGJA9EW45RIXw
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
friend gives you step the same? my phone is amazon prime, and have done everything possible to get out of that problem methods.

:crying::crying::crying:

---------- Post added at 02:49 PM ---------- Previous post was at 02:46 PM ----------

I have tried a hundred times to reinstall the operating system amazon,

ATHENE_AMZ_MPJ24.139-64_65_cid50_amz.tgz

but I still dating the same error. :crying::crying:

---------- Post added at 02:50 PM ---------- Previous post was at 02:49 PM ----------

I have tried a hundred times to reinstall the operating system amazon,

ATHENE_AMZ_MPJ24.139-64_65_cid50_amz.tgz

but I still dating the same error. :crying::crying:
[Moto G4 Guides, News, & Discussion] Danny1976:
No te estoy pidiendo que reinstales el systema operativo. Lo unico que necesitas hacer es solo instalar el boot.img sobre el viejo.
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
friend and I did and does nothing really
[Moto G4 Guides, News, & Discussion] Danny1976:
It says Retail at the top of the message. Is that the Amazon Prime version?
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
that's what I'm trying to say a while friend is amazon prime xt1625
[Moto G4 Guides, News, & Discussion] Danny1976:
Try this firmware:

https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
I think you already tried friend you can check on this page

https://androidfilehost.com/?w=files&flid=72578
[Moto G4 Guides, News, & Discussion] Danny1976:
I dont think its the same. One is 1.2GB vs 1.1 GB. The one I used says RETUS.

XT1625-XT1644_ATHENE_RETUS_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip 1.2GB

https://mirrors.lolinet.com/firmware/moto/athene/official/RETUS/

vs

ATHENE_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip 1.1GB
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
I'm downloading to prove friend although I doubt it will work think I'm one of the few who have this serious problem

:crying::crying:
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
As you tell is the same file that tells you, friend did not work = (
[Moto G4 Guides, News, & Discussion] Danny1976:
I dont know what else to tell you.
[Moto G4 Guides, News, & Discussion] beano311:
RSD Lite doesn't work for me (Windows 10 x64). Drivers do not install, I've tried uninstalling and deleting existing drivers and then pointing the device to use the RSD drivers, but it says no drivers found in the RSD driver folder. I've also tried using other USB cables (including the stock one). ADB and fastboot work perfectly fine however when I install universal ADB drivers. How can I go about using fastboot to flash all the files individually?
[Moto G4 Guides, News, & Discussion] skalnas:
I updated to .64 firmware on my non amazon us xt1625 from .49. flashed new fw thru rsd lite. Upgrade went well, had to re root, reflash twrp, but appsvwere sill intact. Problem is I cannot get incoming calls to work now. I figured out forcing 3g solves the problem. Anyone else having this issue? I tried flashing the .49 firmware in rsd lite to go back to prior baseband but rsd lite keeps giving an error. Tried flashing the .49 firmware in fastboot but am getting errors. Guess I'm stuck on new firmware.
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
Bricked moto g4 amazon prime XT1625

apology as you did to install the FW version 0.49 to Amazon. I have a brick that I could bring to life
[Moto G4 Guides, News, & Discussion] Danny1976:
Here is a video and the adb fastboot commands..... IMPORTANT - Make sure you have a Nandroid Backup from TWRP to restore in case anything goes wrong:

https://www.youtube.com/watch?v=_yiKhnFP2O0

COPY & PASTE THE COMMAND BELOW INTO THE WINDOW THEN HIT ENTER AND LET IT FLASH THE STOCK FIRMWARE ONTO YOUR PHONE

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash dsp adspso.bin

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 modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

fastboot erase customize

fastboot erase clogo

fastboot oem fb_mode_clear

fastboot reboot
[Moto G4 Guides, News, & Discussion] Danny1976:
I did not have any issues with incoming calls or outgoing. I dont know if its possible to just flash the older modem baseband files over the new ones. I believe these two files are the ones you need to flash from the 49 firmware to get the older basebands.

fsg.mbn - this is the first half of the modem

NON-HLOS.bin - this is the other half of the modem

fastboot flash fsg fsg.mbn

fastboot flash modem NON-HLOS.bin

I would recommend to do a nandroid backup from TWRP to an external SD Card in case it does not work out, you can restore to the way it was.
[Moto G4 Guides, News, & Discussion] beano311:
Thanks for that info, however I'm just getting bootloops into TWRP after running this. I ran all the fastboot commands, it reboots to stock recovery, I run the script to install TWRP and SU, TWRP installs, SU doesn't because TWRP can't see my SD storage I think because I have an SD card in there formatted as internal storage (TWRP only sees one folder called "TWRP" with a file ".twrps" inside, this is how it was working before I attempted the flash too). I sideloaded the SU binary and the install worked, however, it still boot loops into TWRP. I also can't restore my nandroid backup because TWRP can't read from the SD card :(

On the bootloader screen I see:

Baseband: M8952_70009.08.03.45R ATHENE_RETUSA_CUST

Product/Variant: athene_13mp XT1625 32GB P2A

I flashed the stock files from "XT1625-XT1644_ATHENE_RETUS_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml", is there anything that looks wrong there?
[Moto G4 Guides, News, & Discussion] Danny1976:
Are you using Rootjunkie script to install TWRP & SU? The rootjunkie script that I posted the link on the tutorial will install twrp and su by itself. No need for the sd card. TWRP will not recognize the Adoptable storage. I had the same issue and had to change my SD card to External and have kept it that way, so that I can keep a nandroid backup and a titanium backup also. Since I am going to be updating to a Nougat update that coming this year, I want to be ready with a nandroid backup. If you are going to be updating with TWRP, you may want to change the SD Card as external.

Rootjunkie root script http://rootjunkysdl.com/files/?dir=Moto G 4th Gen XT1625/Root Script This will install TWRP and SuperSu.
[Moto G4 Guides, News, & Discussion] beano311:
Yeah, I used that script, it gets to the end part where it says

--------------------------------------------------------------------------------

[*] TWRP recovery will automatically start flashing Supersu.zip

[*] Once it Finishes device will reboot a couple times then boot to system

[*] if it boots to bootloader mode just select start.

[*] you may need to do this twice.

[*] you know have twrp recovery and systemless root
--------------------------------------------------------------------------------

[*] Press any key to finish this script. ROOTJUNKY OUT

And the last thing it ends on is the TWRP home screen, if I check the TWRP terminal window, it shows an error about not being able to find the UPDATE-SuperSU-v2.76.zip file on the SD card. I also tried repeating everything and then copying the SU zip to that folder on the SD card and I can flash it from there, but it makes no difference.

Seems like I am experiencing the same thing from this post, doesn't seem like there's any solution there though.

I'm going to try to flash the stock image from the Moto site

Edit:

Okay, so flashing the stock image was a bad idea I think... On my fastboot screen I now see "AP Fastboot Flash Mode (Secure)", which I'm guessing means it relocked my bootloader? I tried unlocking again with the original key and I get the following:

(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
...
(bootloader) invalid boot state
OKAY [ 0.006s]
finished. total time: 0.006s

I tried reflashing the image from this thread and it's no different than before. I can still install TWRP, SU seems to install correctly on its own now though. Still no proper boot and I still have the Secure message on the bootloader screen (I tried unlocking the bootloader again and get the same message).

Edit2:

Read on the main thread on removing ads that it looks like RootJunkie called the bootloader being locked by the Moto firmware update... I still have my unlock code, which should still work for my device, but I can't get the unlock to run properly due to the "(bootloader) invalid boot state" message. I'm going to start a new thread to see if anyone knows what the deal with that message is.
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
Bricked moto g4 amazon prime XT1625

I have a serious problem with my phone when trying to flash a rom on a free phone amazon prime. The rom you put the phone in these condiones is: ATHENE_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

I have tried putting on the rom that had previously it would: ATHENE_AMZ_MPJ24.139-64_65_cid50_amz.tgz

But the error persists no longer find to do to bring it to life again.

Please help me.
[Moto G4 Guides, News, & Discussion] beano311:
I am going to try flashing "XT1625_ATHENE_AMAZON_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip" from the FileFactory page AndroidDoctor linked to. It appears to be about 100MB larger (maybe because it has all the Amazon ads). Will update if it fixes anything, currently 2 hours left on the download.
[Moto G4 Guides, News, & Discussion] AnderGuzmanD:
Bricked moto g4 amazon prime XT1625

I you I do send the link where is hosted the firmware, I have a brick because that ****ing firmware, and can not find how to fix it :crying:

---------- Post added at 03:08 AM ---------- Previous post was at 03:02 AM ----------

Sorry, the firmware that damage my phone was this: http://www.filefactory.com/file/3sq...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto G4 Guides, News, & Discussion] beano311:
That is also the firmware that I flashed too that didn't work with my phone. I notice that one says "XT1625-XT1644", but the one I am downloading only says "XT1625", which is what my phone is. Also, the XT1625 one I'm downloading says Amazon in the build name... Hopefully that will fix it.

Edit:

Flashing the XT1625 image worked :)

Here are the fastboot commands I ran, you can probably use RSD Lite if it works for you instead, I am not sure that all of that erasing of partitions is necessary at the end (maybe you don't want to erase userdata and I'm not sure what DDR is, but it's in the flashfile.xml included with the firmware):

fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img_sparsechunk.0
fastboot flash oem oem.img_sparsechunk.1
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
[Moto G4 Guides, News, & Discussion] caifan:
Do you have the Amazon ads now?
[Moto G4 Guides, News, & Discussion] beano311:
Yes :( I haven't done anything to try to remove them yet. I do have a bootloader unlock key, but I keep getting "(bootloader) invalid boot state" when I try to unlock (not sure if there's something I'm forgetting to do, "OEM unlocking" is checked in the developer options menu).
[Moto G4 Guides, News, & Discussion] Danny1976:
If you still have TWRP installed, it means the bootloader is unlocked. You can't have TWRP without the bootloader being unlocked. I made sure to emphasize on the tutorial, to make sure you have a Nandroid backup before doing anything. I had many issues when updating the ROM and the Nandroid backup saved me many times.
[Moto G4 Guides, News, & Discussion] skalnas:
Thanks, I did try that, however same issue, have to force 3g, must be something else in the new firmware causing the issue.
[Moto G4 Guides, News, & Discussion] beano311:
What is that "(Secure)" message that I see, I thought that meant the bootloader was locked? I did have a nandroid backup and I copied it to my PC, but I couldn't find it... I have no idea what happened to it, I copied to the root of my F drive and when I went to try to restore it, I couldn't find it :( (I remember copying it and everything, because I remember being impressed with how fast it copied from the phone).
[Moto G4 Guides, News, & Discussion] Danny1976:
Take a picture and post it here of the message.
[Moto G4 Guides, News, & Discussion] Danny1976:
Follow the tutorial again, but instead of the update service.xml with RSDLite, use the flashfile.xml which will delete everything and install a fresh Rom. If you have access to all your apps and data, make a Titanium backup to the SD card and restore.
[Moto G4 Guides, News, & Discussion] Danny1976:
This person had your same issue:

http://xdaforums.com/moto-g4-plus/help/mess-g4-plus-t3449401
[Moto G4 Guides, News, & Discussion] trevorcobb:
just as an FYI to all amazon xt1625 owners that were lucky enough to get their bootloaders unlocked:

if you flash the full .64 ROM (or newer?) your device will only boot to recovery. if you flash the .49 or .50 boot.img the phone will boot but have no wifi (and maybe GPS problems). if you flash the elementalx kernel boot.img you will get wifi, but will still have GPS issues, and will not pass SafetyNet even without root. these issues have made it impossible for my son to play Pokemon Go on his XT1625. lenovo also won't let you downgrade the bootloader after it is upgraded and other partitions also refuse to flash using fastboot (on which RSDlite is built).
[Moto G4 Guides, News, & Discussion] dm146:
Unlocked Bootloader Amazon Moto G4

I keep seeing references to "unlocked bootloader Amazon Moto G4." However, it is my understanding that the bootloader on the Amazon version of the Moto G4 is not unlockable. Am I missing something?
[Moto G4 Guides, News, & Discussion] beano311:
Weird... that guy was experiencing a lot of issues other than the Secure message I'm seeing on the bootloader. I have no issues (other than maybe not being able to flash the oem.img without ads in it), everything functions properly. It's sounds like his solution was to revert to stock. I've also triple checked that the Unlock Bootloader checkbox is checked in Developer Options.

---------- Post added at 07:17 PM ---------- Previous post was at 07:17 PM ----------

I have an xt1625 with an unlocked bootloader and I was able to flash a .64 stock ROM fine, just not the one posted in this thread... This one worked for me, no wifi or GPS issues.

Also, have you tried suhide to get around SafetyNet? I've never tried it, but it sounds promising.

---------- Post added at 07:19 PM ---------- Previous post was at 07:17 PM ----------

Motorola stopped accepting requests for unlock codes for the device sometime in July. Before that, it was possible (and still is if you managed to get a code before then) to unlock the bootloader.
[Moto G4 Guides, News, & Discussion] dm146:
Thanks.
[Moto G4 Guides, News, & Discussion] beano311:
I will try this, making sure I definitely have my nandroid backup saved....

No luck, same result as before (boot only into recovery).
[Moto G4 Guides, News, & Discussion] trevorcobb:
you do know that just because your have unlock checked in settings, that doesn't necessarily mean your bootloader is unlocked? you can only tell via fastboot, and you would've had to receive a code from motorola to be able to unlock it.
[Moto G4 Guides, News, & Discussion] Danny1976:
Beano311, When it boots into recovery, that when you flash the boot.img I posted on Mega link.
[Moto G4 Guides, News, & Discussion] beano311:
Fairly certain that my bootloader is unlocked, I do have an unlock code because I got it before they stopped accepting requests, and in regards to the unlock bootloader setting in settings, I'm not a complete moron :). I don't think I'd be able to flash TWRP without having an unlocked bootloader. Everything seems to point to the bootloader being unlocked, it just the message on my fastboot screen says "AP Fastboot Flash Mode (Secure)". It does have another message that says "flashing_unlocked" further down on the screen.

---------- Post added at 01:20 PM ---------- Previous post was at 01:19 PM ----------

I have not tried that, I'll do that now, thanks.

---------- Post added at 01:51 PM ---------- Previous post was at 01:20 PM ----------

That was exactly it, thank you! :victory: I'm going to try to restore my data from a nandroid backup, hopefully my wifi and GPS are working.

Edit:

Oh wait... I still have ads. This is the stock moto rom right, so it shouldn't have ads in the OEM/system partitions. The only thing I did other than flash the files from this rom was restore my data backup and flash the boot.img. The ads are in the system partition now right, so how could I still be getting them? False alarm, I disabled all of the Amazon apps, cleared my cache in TWRP, and the Amazon ads are gone... there must have been an update for whatever app handles the lockscreen ads, so that would have been installed to my data partition and snuck in through my backup. Ugh, that still didn't work, the ads came back after a minute or two... I ended up just going in to /oem, /data/app, and /data/data and deleting all of the amazon stuff. It looks like com.amazon.widgets is the one controlling the ads. It looks like there's also a com.amazon.phoenix app that tries to bring the lock screen ad app back to life if it gets closed somehow, so that had to go too (I'm guessing that's what it does because after I deleted com.amazon.widgets, I got a force close message from the phoenix app). Whatever it is, deleting all of the Amazon apps worked, the ads are gone, everything else seems to be working fine (wifi, GPS).
[Moto G4 Guides, News, & Discussion] caifan:
Did you end up with Amazon ads after flashing the Rom you linked?
[Moto G4 Guides, News, & Discussion] beano311:
Yes, that seems to be a stock Amazon rom. If you look at my post above yours, I was able to remove the ads manually by deleting all of the Amazon apps from the following folders: /oem, /data/app, and /data/data. Of course, that requires root and modifying the system partition.
[Moto G4 Guides, News, & Discussion] trevorcobb:
thanks for your help above. my kid's xt1625 has working gps, wifi, and LTE. he has lockscreen ads, but I ended up using twrp to restore his data from the nandroid backup I did while on the retail version of 64 before I ran the setup on the newly amazon rom flashed device (which yes, I did keep the bootloader unlocked on, whew!), and now i don't believe there are any amazon apps on the device (or at least none on the home screen in the default launcher). he has lockscreen ads, but that's it.
[Moto G4 Guides, News, & Discussion] prsman:
Motorola moto g4 amazon version locked bootloader issues

Just so you know I am one of the many that tried to remove the Amazon ads ended up soft bricking my phone after some searches I finally found the correct reflash file for the Amazon model Athena 1625 build number MPJ24.139-64. I only used RSD lite my phone is back and working with no issues of course I still have the Amazon bloatware but I have my phone back. The file is about 1.3gb I am not real sure if you needed the file how I can post it somewhere like maybe upload it to the pirate bay site possibly. Any how if you want your phone restored to working then message me and maybe I can get the right file to you Thanks
[Moto G4 Guides, News, & Discussion] MadGoat:
So is it not possible to just flash a fresh copy of the retail xt1625 rom on a boot loader unlocked prime edition? I'd like to get off of the Amazon update distro and get up to date and ready for 7.0.
[Moto G4 Guides, News, & Discussion] sehlceris:
Hey, thanks for the hint! I just did it myself using adb shell. Here were my commands:

adb shell
su
mount -o remount,rw /oem /oem
mount -o remount,rw /data /data
rm -rf /oem/priv-app/*
rm -rf /oem/app/com.*
rm -rf /oem/etc/amzn*
rm -rf /oem/etc/amazon*
rm -rf /oem/etc/Audible.param
rm -rf /data/app/com.amazon*
rm -rf /data/app/com.audible*
rm -rf /data/app/com.goodreads*
rm -rf /data/app/com.imdb*
sync
reboot
[Moto G4 Guides, News, & Discussion] manos78:
Removed!
[Moto G4 Guides, News, & Discussion] caifan:
So let me see if I understand...you have an Amazon version and you flashed the Amazon firmware (-64), ended up with lockscreen ads, and successfully removed all ads by performing those commands? If this is the case, I'm doing it!
[Moto G4 Guides, News, & Discussion] sehlceris:
Yes, no more ads or bloat. But you must have root first.
[Moto G4 Guides, News, & Discussion] Zirekyle:
Hi, I've read over all of the messages in this thread and searched around on the web. I just got an Amazon version of the phone with ads. The ads don't really bother me, but I would still like to run some apps which require root.

From my understanding, I need an unlocked bootloader, but the window for requesting the unlock code has passed, so all current and future bootloaders are locked (including mine).

My question is, for people who are familiar with the phone scene, firmwares, rooting, etc... will it ever be possible to root my phone through hacks in the future? Do these root hacks usually come out, and if so, when do they? Or do most phones never get rooted, and you're stuck with what you got to begin with?

Basically, I'm wondering if there will ever be hope soon of getting my phone rooted, or if I should return it and switch to a different phone if I want root within the next 6 months to a year?

Thanks in advance.
[Moto G4 Guides, News, & Discussion] Transmissiontech:
I just tried this undate on my G4 and unlocked bootloader and now im bricked...says...we have detected an attempt to flash an unauthorized sw on my device....yes i have a XT1625 amazon moto g4...
[Moto G4 Guides, News, & Discussion] Transmissiontech:
Back up and running now found the correct file for my phone...you all that's on amazon XT1625 this is the file i used...https://mirrors.lolinet.com/firmware/moto/athene/official/AMAZON/