yashsingh1/xdaforums huggingface dataset:
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] acejavelin:
Don't know, but once in a while a Amazon ad subsidized version can be unlocked, we don't know why or how, it's like the IMEI is missed as blocked from being unlocked.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] brickweed:
counting down the days until we can remove these gawd awful ads again..

for now, i am using a method similar to #556, however i also have Macrodroid installed with a macro that clears any amazon notifications when i have any other type of notification. keeping a persistent notification for weather or a launcher, i am able to keep the amazon ad notification cleared permanently. that is, until i restart my phone. then i just have to fire up the app that displays persistent notification and then Macrodroid to enable the macro.

source: https://xdaforums.com/moto-g4/how-to/remove-amazon-ads-automation-tools-root-t3578646
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] chure_63:
Moto G5 Plus

Hello, does it work for the Amazon Moto G5 Plus? Thanks.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] sjd74:
With RSD lite Amazon ad remover

I did the Amazon bloat remover with RSDlite and now my phone always start in AP Fastboot Flash Mode (secure) and ADD's are still there. Can you help me with this?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] sethyboy13:
To get rid of the phone booting to fastboot, use ADB and type "fastboot oem fb_mode_clear" (without quotations).

I tried flashing this on my G4 Play as well and it failed. I'm suspecting Amazon blocked it with the latest update (February 1 security patch), which also blocked ledothis's app from running.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ksdst1:
Nougat

Hi. I have Moto G4 XT1625 AMZ running an ad block apk. I tried to request unlocking bootloader from the Moto website but got the "unavailable" for my phone Can anyone confirm that there is NO way to unlock this bootloader? I am also getting prompted to upgrade to Nougat. Are all of these previous posts about using Amazon bloat remover with RSDlite refering to Nougat? Lastly, I read some post talking about "activiating" tethering with Nougat. Does the upgrade limit tethering as my works (T-Mobile) without a request or paying extra. Tnx
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] sjd74:
Using the same phone with android 7.0 and APK did not work, tried .bat file from rootjunky and that left my phone in fastboot mode. I had to setup SDK/ADB to get it back to booting normally. Have not tried tethering yet.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ksdst1:
Tnx for the input. Curious to get other feed back about rooting, success using adblockers with Nougat, etc.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] haraop:
It doesn't matter which Android version do I have? I'm with XT1625 and Nougat NPJ25.93.14 right now. I was able to unlock the bootloader, and I have the ATHENE_MPJ24.139-48_cid50_subsidy-DEFAULT_CFC.xml.zip software ready with RSD Lite (Even though I'm Win10 and I already made the bat file) . Would there be a problem by downgrading?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ksdst1:
Hi. If you had XT1625 with Amazon adds, how did you unlock the bootloader please?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] haraop:
It let me with the regular way. I'm completely sure my version is (or was) with ads.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] imritechere:
I found that installing apex launcher on Moto g4 running 7.0 update the Amazon apps do not show except for lockscreen.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] newperson222:
Anyone who used RSD lite before to remove ads have an relatively straightforward way to install Nougat OTA? Mine downloads but has software error when installing
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] montesn:
Hoping someone has some guidance on this. At some point during this process, my bootloader has ended up in a bad state. I have an unlock code from Motorola (before they locked down their site), and had the bootloader unlocked. Now, when it boots up, the ID shows as "N/A". When I try "fastboot oem unlock" with the code, I get an error that it's in an "invalid boot state". When I try to issue "fastboot oem lock", I get "Still require signed boot.img". I'm able to boot the phone fully and I'm able to get into TWRP (I tried a restore and it didn't help). Any suggestions?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] mike_san:
Does anyone knows if this script works for bloat ware on g5 plus prime exclusive?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] lkhafra:
I'm was about to pull the trigger on this phone but won't if I can't unlock the bootloader.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] mel2000:
The retail version's bootloader can be unlocked.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Androidtweaker9001:
Does this work with nougat?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] nachum37:
https://xdaforums.com/moto-g4/how-to/to-remove-amazon-ads-moto-g4-running-t3614090
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] arun2118:
anyone tried 5th gen?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] nachum37:
The apk method don't work.

The adb uninstall method in the link does work.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Ytim08:
Just go to OEM folder at root and delete folders for the apps and reboot.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] A.Fitz:
Hey everyone! Please come help unlock the moto g play amazon edition!

https://xdaforums.com/g4-play/help/unlocking-amazon-g4-play-bootloader-t3629834
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] gist901:
Hello All,

My Nexus 6p just went into the dreaded bootloop of death, so I have decided that need a new inexpensive phone that will hold me over till the new iPhone or Pixel 2 comes out. The price of the Moto G4 is enticing especially with the Amazon Prime ad discount.

I am ready to order the phone, but I would like to know / have verification that it is still possible to remove ad / bloatware from the current purchased Amazon Ad Moto G4s. I have read through the forums / this thread and I still am not a 100% sure. Sorry for the stupid question.

Thanks,

Gist
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Lento10:
Where can I get the full roam image?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ItsDon:
I cannot get RSD to see my phone. Have tried two desktops and a laptop, all 3 running Windows 10 64bit. I have installed the all the drivers (Win 10 sees the phone) and Motorola Device Manager. Tried running RSD as an Administrator as well. I've uninstalled everything and tried to just let Win10 recognize the phone but no luck there. Running ADB Devices command shows the computer(s) not seeing the phone (which is still locked). I've tried 3 different USB data cables. The only constant I see is that all 3 computers are running Win 10 64bit, could that be the problem? Not sure what else to try but would love some advise :)
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
http://rootjunkysdl.com/files/?dir=Moto G 4th Gen XT1625/TWRP Stock Amazon Nandroid
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
Sounds like windows 10 isn't working with rsd little I will make a batch script then I get home that will work without rsd lite ;) for those on Windows 10.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ItsDon:
Awesome! :)
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Lento10:
I am a little confused,

You have a xml that removes ads and

Another ROM that's stock Moto

I can flash either one without unclocking the bootloader?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
that rom is a stock backup from twrp and you will need a unlocked bootloader to use it. The XML amazon ad remover can be used without unlocking the bootloader.

on my site is also a stock firmware file that can be flashed in RSDlite without a unlocked bootloader
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
check on my server for this file it will work without RSDlite on your device

XT1625-Amazon-Bloat-Ads-Remover-Without-RSDLITE
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] chrisradcliffe23:
I can't get anything to work. My computer recognizes my phone and will run adb command to fast boot but once I connect to rsd lite nothing shows up. And I cannot get unlock key to unlock bootloader shows adb error. Tried on Windows 8 and 10 :(
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] virajss:
Thanks much Tomsgt.

I have Windows 10, all I had to do is install the 64bit drivers and then use RSD Lite to remove the Amazon Bloat and Lockscreen.

Without the drivers the non RSD method was stuck at "Waiting for device" screen.

P.S: I did not unlock my bootloader.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] miguel11691:
Can anyone make a script for Ubuntu users like myself? I can't find rsd for Ubuntu... hope someone can do it for us users.... it would mean a lot to us users... thanks so much in advance...
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
i can make a mac and linux version but it will probably be in a couple days :) I am working on a TWRP and root script right now
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] miguel11691:
Thank you so much... I greatly appreciate it... look forward to it...

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

Senior Member762 posts Thanks: 37

Thank you so much... I greatly appreciate it... look forward to it...
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
ok well i did it tonight lol download the without RSDlite it works with mac or linux now
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
if you want a easy way to root your device check the OP :)
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Doukeyakusha:
So, did anyone who did the process to remove the ads and bloatware, still get the new System Update as of 7/13/2016? It improves call quality. I am still on amazon firmware, and received the update when I got my phone today. Thanks
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Liboicl:
I run Linux and threw together a quick script to flash RSD Lite ROMs. It's attached. It requires fastboot and both need to either be system installed or in the same folder as the ROM.

To flash:

1. Hook up phone in fastboot mode

2. Extract the ROM

3. Place rsd-flash and fastboot in the ROM folder

4. ./rsd-flash flashfile.xml

NOTE: You can also use servicefile.xml, which does the same thing. It just doesn't clear data/cache.

At that point, the ROM should be flashed. Let me know if you have any issues with it.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
Thanks I will have to check this out. :)
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tel864:
So far I haven't received it and honestly I'm a little leery of OTA's since my G3.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] j0sh097:
I tried installing the UPDATE-SuperSU-v2.76 (the one from OP) via TWRP, but I keep getting stuck on the boot screen when I do so. I've tried wiping the cache/dalvik multiple times before and after installing, and it still gets stuck on the boot screen.

My bootloader is unlocked, and I have the version of TWRP suggested in OP. I also flashed the oem from OP to get rid of ads. Everything is working fine when I restore OP's image.

Any help or suggestions?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Caltinpla:
No, get the standard version if you don't want ads.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] DJMM100:
Supposedly the ability to unlock bootloader was disabled from this model.

In my case, many months after this was reported, I tried it and it worked...

You could either download (or make) the script needed to do it or just change the OS...
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] acejavelin:
Yeah, a few seem to slip through... Especially in the last several months. You got lucky. :)
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] DJMM100:
Fun! Very fun, as a matter of fact..

Am privileged... Hahaha it's nice to know I'm lucky... Considering **** here at home hasn't been the best.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] mel2000:
The Nexus 6P bootloop issue has been solved.

https://www.xda-developers.com/nexus-6p-bootloop-fix
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] flako72:
Hello friends I do not know if there will be someone around here who has the same problem as me, it turns out that I am in the last security update of June NPJ25.93-14.5 and it has made me impossible to eliminate the publicity of amazon and thus to be able to unlock the bootloader someone knows something respect...
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] shebalord:
I'm having same issue....anybody found a way to disable the ads yet?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] -danger-:
How about Ads disabling on Amazon NPJ25.93-14.7 ? Any news? I still have Lockscreen with ads
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] leond:
can someone please post or email me remove-amazon-bloat.xml ? It appears to be gone from the developers site and i can't find a copy

---------- Post added at 12:59 PM ---------- Previous post was at 12:54 PM ----------

an someone please post or email me remove-amazon-bloat.xml ? It appears to be gone from the developers site and i can't find a copy

i have moto 4g play with android 6.0.1 i do not have any packages with amazon in the package name, but i do have ads on lock screen
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] rubentkato77:
How did you do they???
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Danny1976:
It's been a while. But I was lucky to get the unlock key for the Amazon prime version, before they blocked it.

I think that if you flash rootjunkie stock retail... The first one.. it may unlock the device. But once you OTA update, you will loose it. I don't remember if I may have unlocked with the key before I did the rootjunkie stock firmware. I think it was Marshmallow, which had great battery usage. Right now with my experience... firmware does not unlock bootloader, so I must have had the bootloader unlocked and notice when I flashed the firmware.

I upgraded to the Nokia 6.1 and I still have the Moto G4 for a backup phone.

http://rootjunkysdl.com/files/?dir=Moto G 4th Gen XT1625/Firmware

ATHENE_AMZ_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] xtermmin:
http://xdaforums.com/moto-g4-plus/how-to/root-systemless-rooting-supersu-2-74-2-t3405772

Step 5
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] tmord1:
Thank you so much for this guide. I purchased a 16gb and 32 gb moto g4 amazon prime exclusive model. I tried this method repeatedly on my pc (windows 8.1) but couldn't get to work . Went downstairs and used a netbook running Windows 7 and it ran like a charm, both phones are ad free (btw, bootloaders are still locked), your method made it so easy!!! Thanks again!
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
Did you use the script that auto installs systemless root and twrp or did you manually flash them.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ItsDon:
Got my G4 late Tuesday, fought with Win10 all day Wednesday and finally got the phone perfect today. 32GB, bootloader unlocked, rooted and Amazon bloatware free for $162, not bad. OP you rock, thanks for all your help.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] mcdonsco:
Thank you for this! Worked like a charm and didn't have to unlock the boot loader at all! I did this before even booting the phone up for the first time and had zero issues.

Awesome! Thanks!
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] splat matt:
Did you still need to extract the OEM firmware? I just got the G4.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] brockwitting:
I'd still love to have it if Tomsgt can help!
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
I was able to pull the Amazon OEM.img from another user so i have it already thanks for offering :) I have been adding lots of fun tools and script to my Moto G 4th gen folders at Rootjunkysdl.com you should check them out :)
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] splat matt:
Great! thanks is the gmail still the best for paypal donations?

Also I assume this is the link for the Amazon OEM Moto G4:

http://rootjunkysdl.com/files/?dir=Moto G 4th Gen XT1625/TWRP Stock Amazon Nandroid
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
http://rootjunkysdl.com/files/?dir=Moto G 4th Gen XT1625/Remove Amazon Bloat Ads
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] brockwitting:
So, let's say I'm an idiot and JUST flashed the ATHENE stock firmware file before I realized you posted the re-bloat pack.. Will flashing the re-bloat convert the stock ROM to the Amazon ROM?

EDIT: Also, after the de-bloat, AND after the flash of the "stock" firmware, I have a Consumer Cellular App that I can't remove... Any idea how that got there? I don't use CC.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
LOL yeah that has to do with the OEM.img which configures you device its really not a problem and if you flash the oem.img again i think it will remove it.

yes flashing the restore bloat files will restore all of the amazon junky back to the devices. The script will show a error just reboot and it will be back
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
you can donate with the paypal button on xda or at the bottom of my server site rootjunkysdl.com there is also a link and thanks
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] brockwitting:
I needed to add .exe to fastboot in the .bat file to make it run, but it fails, I'm assuming because I still have my device locked. Is there any way to flash this through RSDLite like the others so I don't need to unlock, or because this was a pulled image and not a leak, the signature won't match?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
you nailed it because it was pulled from a device the signature will not match and you need a unlocked bootloader to flash it in fastboot mode
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] brockwitting:
:( I'm trying to avoid unlocking until I'm 100% sure the hardware is solid before I give up my warranty. My touch screen behaves really really weird after charging at all, so I'm holding off on unlocking until I know if I can live with it, or this is happening to all of them.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
found this interesting and thought that some of you might also

root@athene:/ # cat init.oem.rc
on init
mkdir /oem 0550 root root
on fs
wait /dev/block/bootdevice/by-name/oem
mount ext4 /dev/block/bootdevice/by-name/oem /oem ro nosuid nodev context=u:object_r:oemfs:s0
root@athene:/ # cd oem
root@athene:/oem # ls
app
lost+found
oem.prop
overlay
priv-app
sysconfig
root@athene:/oem # oem.prop
sush: oem.prop: not found
127|root@athene:/oem # cat oem.prop
#
# OEM_BUILD_PROPERTIES
#
ro.build.id=MPJ24.139-48
ro.build.version.incremental=48
ro.product.name=athene
ro.mot.build.oem.product=athene
ro.mot.build.customerid=retail
root@athene:/oem #
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] kylegrant:
is there a list of every app this script will remove from my device?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] xtermmin:
Those of us who did complete flashes of the stock OS (not just oem.img), we're still seeing one last reference to Amazon, in Settings > About Phone > Software Channel: amz. I went looking through some fastboot settings and came across this (may or may not be related):

(bootloader) <UTAG name="ro.carrier" type="str" protected="true">

(bootloader) <value>

(bootloader) amz

(bootloader) </value>

(bootloader) <description>

(bootloader) ro.carrier value passed from kernel

(bootloader) (automatically updated on each boot)

(bootloader) </description>

(bootloader) </UTAG>

Attempts to set it to something else (unknown) or unprotect that UTAG are rejected:

(bootloader) Not allowed command

FAILED (remote failure)

Wonder if there's a way to get that changed, and I wonder what that value is on the non-Amazon devices.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tel864:
I was wondering that myself. Since "software channel" looks out of place and hasn't appeared in other models of the G, I'm wondering if it isn't just an extra with the Amazon model. Hopefully someone without an Amazon will chime in.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] rongweiss:
Thank you, Rootjunky, for your awsome work! I, too have the Consumer Cellular app, and flashed again as you said, and it's still there. No biggy, I can just disable it. Also have two Prip apps (whatever that is). My only real concern is that I'm on AT&T, and my phone shows H next to the antenna bars, instead of LTE. Do I need to update the radio or something? Thanks again!!!!
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] xtermmin:
Hm, wonder why the Consumer Cellular app is showing up at all, since this phone isn't available via CC (yet). Where did you get that oem.img, [MENTION=4246643]Tomsgt[/MENTION] ? Was it from the stock ROM that was posted on Filefactory? (XT1625-XT1644_ATHENE-RETUS_MPJ24.139-48_cid50_subsidy-DEFAULT_CFC.xml.zip) Nevermind, I see they both have the same CRC, so they must be the same file... very odd.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
I have the none Amazon moto G 4th gen also just need to open it up and check it out. Been on my desk for 3 days lol. When I get home I will look at it. Maybe we can pull some partitions from it if needed.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
Yes I got that firmware straight from Motorola it's the same firmware for xt1625 or xt1644 moto G and moto G plus.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] lllGurulll:
For those that have already switched, I have a couple questions...

First, has it been verified if OTA updates will still come from Amazon rather than Motorola/Lenovo? I noticed a couple posts asking about why it still says AMZ in the Software Variant and Software Channel fields.

Two, my g4 has been horrible on battery with wifi and bluetooth just eating it alive. Has anyone noticed if battery life is better going from one to the other? I have mine set to only use wifi when active or plugged in so wifi shouldn't be doing anything when its asleep. Bluetooth, however, I need to remain on for the purposes of my smart watch. Motorola has confirmed that this device has low power BTL but my other devices didn't see this much drain with BTL.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] xtermmin:
Not entirely sure, but it seems that an OTA update has already been hitting some devices, and at least a couple of people with an Amazon model received it: http://xdaforums.com/moto-g4/help/update-question-t3417948

Considering how quick it came out, I'd guess that they come from Motonovo.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] j0sh097:
I manually flashed everything, but I have it working now thanks to xtermmin's reply.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
You must not have set systemless root and so it bootlooped
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] j0sh097:
Yes, that was the problem. Thanks!
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ivandaterrible:
Is the img from consumer cellular ? will this affect OTA updates? Or the radio?

---------- Post added at 08:04 PM ---------- Previous post was at 07:32 PM ----------

So whats the difference between flashing the bloat remover and the full image file? I mean whats difference functionally? will it change the radio bands? What about OTA updates? I already flash the bloat remover, and disabled the consumer cellular apps? what would you recommend I do? should I flash the full ROM?