yashsingh1/xdaforums huggingface dataset:
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] willmiii:
[quote name="Scorpius666" post=69369622]I think that's a rumor. There's no such option in Amazon website to pay $50 and they send you an OTA update without the ads. I've been looking for that option for MONTHS. At this time, I'd rather go for the $50 than wait forever for a exploit that works.

If you know how can this be done, please share.[/QUOTE]

Not a rumor - officially supported. You can do the same with any Amazon device with offers and ads. Log into your account, and go to your account main screen. Go to the Digital Content box, and click "Manage Your Content and Devices." Click on "Your Devices." Now, select the device you'd like to manage - once you've signed into the device with your Amazon account it should be listed here.

Underneath the device name, you'll see this listed:

Special Offers / Offers and Ads: Subscribed Edit

Click the Edit button, and you can pay for the removal.

Once you've done that, go to your phone and place it in Airplane mode, then back again. When the phone connects to wifi, the Amazon offers app will connect to your account and verify the subscription status. After 10-20 seconds, the ads should disappear.

I've attached a screenshot of my preference page to show the unsubscribed status.

Here is a link to the official support section which explains how this is done:

https://www.amazon.com/gp/help/customer/display.html?nodeId=202064590

That's for above info. Worked like a charm for me. At first i didn't mind the ads cause they were swipeable however the fullscreen ads became a bit annoying for me. Chose to pay the additional $50 and now I'm content. Had the ads been for a short period of time (perhaps 6 months) I might have stuck with them but knowing I would always have ads kind of turned me off. Still a great buy with the ads but for me personally the ads became a bit much.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Scorpius666:
The problem in my case is that it is not my phone! I bought it for my wife! and you know how dangerous it would be if her phone is logged in with my Amazon account. There will be hundreds of packages coming every week and a file for bankrupcy!

I just want to know if it's permanent even if you change the Amazon account of the phone after that :(
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] HKSpeed:
A 10 minute call or chat session with Amazon will get your answer instead of waiting days for a reply here. Tell your wife to pay the $50 with her account if she hates the ads so much. Not your phone, not your problem.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Teevan:
Strange thing happened to me over the weekend...I had flashed the no-ad image to my phone back in July, and have been receiving the patch notification for the past few weeks to move up to the MPJ24.139-64 build. I got tired of having the notification of the update pop up, so over the weekend I applied it. Saw the ads for a day (which to be honest were very simple to swipe past), but then this morning, I don't see any ads any more.

I was going to do the phone call to have it removed if it was annoying (I am a pretty loyal amazon customer and spend a lot of money with them, so figured it would be easy to get them to remove), but now I don't have to.

Anyone else have this happen?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] sodium11:
In your device settings on amazon.com, do you see subscription turned on or off? thanks
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] SEALBoy:
So basically, for those of use who were not able to unlock their bootloader on the Amazon-ad device (XT1625), there is no way to remove ads on the 139-64 ROM?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Teevan:
Don't see my device at all

I don't even see my device at all listed on Amazon, but I do see all my other devices. Pretty odd. I don't see them charging me the $50 for the subscription on my credit card, so not sure what is going on.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] -danger-:
Hello. I've got a double Settings icons and File Manager is dissapeared after de-bloating.

Why so?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] sodium11:
Has anyone been able to remove ads after the new update (without going through Amazon, which anyway isn't working despite paying the $50)
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] -danger-:
The same question.

[MENTION=4246643]Tomsgt[/MENTION], Will you update ads remover for new version MPJ24.139-64 ?

We have this error
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] virajss:
Did you try to reboot the phone after that error?

For me It is always booting in Download mode. I have to press the "Power" button again to boot the phone normally.

Is anyone else seeing this ?? Or its just me?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] -danger-:
Yes the same issue but I've flashed the latest firmware after this and it works.

https://goo.gl/dK7u4X

Amazon ads from new firmware cannot be removed yet.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] virajss:
Thank you. Do you have the link for instructions? I will download the file later in the evening.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] -danger-:
http://xdaforums.com/moto-g4/development/unbrick-hard-bricked-moto-g4-amazon-t3486578
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Scorpius666:
For the people that still have MPJ24.139-48 and is rejecting the update every day. I just typed this in an adb shell:

pm hide com.motorola.ccc.ota

And I never received the notification about the update again.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] jimberkas:
interesting. this is the situation that I am in. I'll have to give this a try
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] xgerryx:
I've read through the thread and I'm wondering if anyone has figured out a way to apply this method to the play version of the phone? I picked it up as a backup phone and would like to remove the ads if possible. Is there an image that will work for the XT1607?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] AlexanderJohn:
I updated to 64. I'm not seeing it anywhere, but is there a way to downgrade back to 49 or 48? It's rather frustrating.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] acejavelin:
No, you can't downgrade with a locked bootloader, and there is no way to unlock the bootloader on the Amazon model.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] GersonS001:
I have the Moto G4 XT1625 Amazon Prime Edition, running MPJ24.139-64 with the bootloader locked. Will this method work for this version?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] acejavelin:
No, blocking ads is no longer possible at this time, Amazon and Moto patched the method we were using.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] jimberkas:
thanks for this! i did this a few days ago and so far no notifications about the update.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] lllGurulll:
Ok, I went ahead and ran the update. Whats really odd is that I'm not seeing full screen ads and I only see a swipe away ad once every few hours. My main problem is that since the update now I have that damn phantom touch issue when plugged in. Thats annoying as hell.

My hope was that I would be back on the standard amazon firmware so I could claim any warranty issues. With the full screen ads not working does that mean my previous setup with no ads is still in place?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] alvintimothyjr:
I purchased a retail or 'retus' version of this device from amazon. The device does not display adds. I attempted to unlock the boot loader on the Motorola site. However the system indicated that my device 'did not qualify for boot loader unlock.' The device is currently on android 6.0.1 with the July patch. The build number is MPJ24.139-64. The sku/hardware version is XT1644. What would be the best way to unlock this devices' bootloader.

Thank you
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] acejavelin:
Lenovo official forums, they have an area specifically for helping with bootloader unlock. No one else can really help, unless you are doing it wrong.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] alvintimothyjr:
Thanks
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] lifeinpictures:
Hopelessly refreshing this thread every couple of days. The android gods must like ads. ='{
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] acejavelin:
Lol... There is nothing we can do, unless a new exploit is discovered... Amazon/Lenovo patched the way we're getting rid of ads, and with a locked bootloader and Marshmallow the chances of removing the ads are near zero.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] nujak:
A current working method of ad removal on the Moto G4 Play Amazon Edition can be found in the Moto G4 Play device forum. Credit to [MENTION=7838117]ledothis[/MENTION]

http://xdaforums.com/g4-play/help/moto-g4-play-amazon-ad-removal-t3464818

The apk to remove the ads can be found here:

http://xdaforums.com/showpost.php?p=69966191&postcount=96

Instructions on how to use the apk are found here:

http://xdaforums.com/showpost.php?p=69952278&postcount=85

*note: this post contains the non-working original apk file. Use v2 in the previous link*
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] PesSarmiento:
Only for Moto G4 Play.. did some one tested on G4?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ledothis:
It might work.

What's the Security Patch Level for the Moto G4?

I hard coded a few things that maybe device specific:

If someone has ADB can you run the following and tell me the output:

adb shell:

$ ps -Z com.android.systemui
LABEL USER PID PPID NAME
[COLOR="red"][B]u:r:platform_app:s0:c512,c768 u0_a67 [/B][/COLOR]21764 20680 com.android.systemui
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] pietro_spina:
I used it on a non-play G4. and it worked.

---------- Post added 11th December 2016 at 12:02 AM ---------- Previous post was 10th December 2016 at 11:53 PM ----------

this from my G4

security patch level: May 1 2016

shell@athene:/ $ ps -Z com.android.systemui
LABEL USER PID PPID NAME
u:r:platform_app:s0:c512,c768 u0_a67 3670 526 com.android.systemui
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ledothis:
There is a good chance the app will work without modification.

Please follow the previous post in the thread on how to install the apk (ver. 2).
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] nachum37:
In my Moto G non play it worked. I no needed to do the 3rd step. When I'm returned to the app after step 2 I was saw the 3rd button as done.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] pietro_spina:
Same for me.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ledothis:
Ok cool.

Yeh there is like 50% chance you don't need to do Step 3.

I have it there as a fail safe.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] nachum37:
Now I see the window of Amazon registration and the notification. But the ads from lock screen are gone.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] p28312:
Step 2

I tried to run in on non-play, step 1 went fine. When I click Run Step 2 - it says unfortunately , amazon ad removed has stopped. then closes..

I think i missed the v2, trying again..

Step 2 runs, reboots, then i run the app and Step 2 is still lit up - which just reboots, and repeats.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] droiddude414:
Works for me on my amazon 16gb G4, just ran step 1 and 2. Thanks so much!
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] PesSarmiento:
It's working. Great. Now how we can unlock the bootloader..?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] jayjr1105:
Hey all, about to pull the trigger on the Moto G4 Play for $80 on Amazon today. Just want to clarify I can remove the lockscreen ads/bloat without root/unlocking bootloader. It's model XT1607. Thanks!
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] loociddreemr:
Confirmed working on Amazon G4 with locked bootloader on .64
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Beanzy420:
I need a bootloader unlock for Moto g4 play xt1607 doe. I found a recovery but this method worries me to try on this version of the play
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Beanzy420:
Damn I should

Houlda looked up the xt1607 before buying
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] reynierpm:
I have a doubt, I am in Windows 10 x64, I have installed RSDLite, I have downloaded this file XT1625-Amazon-Bloat-Ads-Remover.zip from the file, I have opened RSDLite and pick up the XML file but RSDLite is not showing up the device in fastboot mode, if I run fasboot devices in the command line I am able to see the device listed, it's safe to proceed under this cimscurstances? I am missing something here?

The phone is brand new meaning no unlocked bootloader, unrooted just unboxed right now

:confused:
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] lifeinpictures:
Whoa, holy schneikes. This worked on my new Moto G4 XT1625. I love you, [MENTION=7838117]ledothis[/MENTION].
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] evilkorn:
Woot! Thanks for the fix.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] psycho_asylum:
I couldn't get this to work on my mom's phone. The ads weren't bad initially but now they are becoming intrusive and tricking her into installing other apps. I thought maybe it was just old-person syndrome but when I unlocked her phone just now, it took me to the play store because I accidentally tapped an ad.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] luggophone:
Greetings friend. When will release version to unlock the Moto G4 Play Amazon? Is it possible to do the same or similar process?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] stuff:
Which method works? The v2 of the .apk method, or the powering down and clearing of the oem partition?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] lifeinpictures:
APK method
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] hotdog18882:
Hi, I used rootjunkies method to remove ads (several month ago) from my friend's Amazon prime verson.

He has since take the OTA and the ads are back.

Can I just run the script again?

In short; does this still work?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] mel2000:
Earlier replies state that Amazon patched the firmware to disallow removal of the ads via the RootJunky script. However, post #507 indicates that there's a new way to remove the ads.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] jcgordon10:
Help please!

Hi, my name is Jackson, I'm super concerned. I have done something in trying to follow this process and now My phone will not work. I kept trying to follow the instructions. I have the G4 amazon, I tried doing the rsdlite instructions but it kept saying it would fail at step 3/5 and couldn't flash it over. I know my oem is unlocked, I can get to the bootloader screen, but anytime I try continuing on past that it gives me a warning screen saying "Your device has been unlocked and can't be trusted" and then goes dark and loads the same warning screen, and then then I get an android recovery screen that says "We have detected an attempt to flash unauthorized SW on your device. Contact customer service for assistance" and the screen also has options like "reboot system - reboot to bootloader - apply update from adb - apply update from sd card - wipe data/factory reset - wipe cache partition - mount /system - view recovery logs - power off"

Honestly I jumped in over my head and am very scared I've just ruined $180. I'm just looking for help out of this.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] chumpalunski:
Flash this

https://mirrors.lolinet.com/firmware/moto/athene/official/AMAZON/
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] jcgordon10:
Thank you! I just want to make sure I'm doing it right, cause at this point I want to double check everything, so... to flash this, what do I do with the files in the zip? do I place all of them into my ADB/FASTBOOT folder? which one do I run what command on to flash it to? I'm sorry, I'm just realizing I don't want to try and do anything unless someone who is sure and knows what they are doing says so. cause I don't know what I'm doing.

---------- Post added at 07:08 PM ---------- Previous post was at 07:06 PM ----------

Do I follow this type of procedure as far as what commands to run? or? https://xdaforums.com/showpost.php?p=69277316&postcount=37
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] chumpalunski:
Yes
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] jcgordon10:
When I try to flash the .img files to the phone is says

"writing 'recovery'. . .

(bootloader) Image not signed or corrupt"

it says OKAY after that, but does it mean that it didn't write it succesfully because of some problem, or that it wrote it anyway and will work?

---------- Post added at 07:35 PM ---------- Previous post was at 07:26 PM ----------

It worked! I kept going through with that list of commands and flashed everything and the phone turned on now! Thank you so much, you literally just saved my phone and taught me what to do!

Do you know if I will still always get that weird "This phones bootloader has been unlocked and this phone cant be trusted" warning everytime it boots up?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] chumpalunski:
Idk why it gives the corrupt msg. But everything is fine.

Yes. You can flash a modified logo.bin that changes it. There's a thread for it on here somewhere.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] mel2000:
Instructions: https://xdaforums.com/showpost.php?p=67031810&postcount=5

YouTube video: https://goo.gl/az0Q0H
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Tomsgt:
New Video added to OP
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] uehsgerg:
Please help

I have unlocked the bootloader first, so I ran 'fastboot flash oem oem.img'.

But my phone only boots into the screen that shows

"Your device has been unlocked and can't be trusted"

then 5 secs later boots into 'Android Recovery' and no longer normally boots into the phone system anymore.

Hopefully, I didn't brick my phone.

Thanks
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] uehsgerg:
Ok, just follow #534, and it is back. Sorry, didn't even read the whole thread.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] uehsgerg:
For some reasons, this script is not working on my XT1625. I ended up flashing AOKP ROM on my phone which is right choice to load the custom ROM instead of messing around this script. The custom ROM only takes around 700MB RAM comparing with the Amazon ROM that takes 1.5GB RAM when running. The Amazon bloated hogs all your phone's memory.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] thetouchablegod:
I got the xt1625 about a month ago, and immediately unlocked the bootloader (because I could) and went through with some of these scripts but ended up in a bootloop. I flashed the stock 139-49 FW from the Rootjunky site, which got rid of the ads. I was left with the problem of getting constant update notifications though so I flashed the stock 139-64 FW. It works fine except for the ads. I tried the apk descibed on post #507, and it got rid of the ads, but I'm left with all the Amazon bloat.

Any advice on how to get rid of it?

---------- Post added at 08:50 PM ---------- Previous post was at 08:47 PM ----------

Are the AOKP nightlies stable? Any bugs you found? I Love AOKP, but I'm worried about running nightlies.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] acejavelin:
How did you unlock the bootloader? Amazon ad-supported devices are not eligible for bootloader unlock. :confused:
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] uehsgerg:
This is the nightly build that I load. It is reliable so far. Don't forget to flash gapps.

https://s.basketbuild.com/uploads/devs/aokp/athene/aokp_athene_nougat_nightly_2017-01-25.zip

---------- Post added at 10:48 PM ---------- Previous post was at 10:46 PM ----------

You can unlock the bootloader. Check this guide.

https://xdaforums.com/showpost.php?p=67031801&postcount=2

There are guides on this site to guide through, unlock, root and install custom rom.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] thetouchablegod:
Yeah, I didn't even realize that until after I had unlocked it. I'm not sure why, but I just went to the Motorola site and it took...
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] uehsgerg:
So far, I found one bug that is the Google clock doesn't work, which means you can't use alarm, stopwatch and timer, etc. But this doesn't affect me that much. One thing I am glad that I install AOKP ROM is I finally make the CoPilot GPS work again on Moto G4, it was not working at all on Amazon ROM due the insufficient memory, because Amazon bloats hog up nearly all the memory. Now, I can have Google Maps offline as secondary GPS. Maybe next stable AOKP build can solve the Google clock, other than that, I haven't had other issues yet.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] mel2000:
That would be a big issue for me. Would an alarm clock downloaded from Google Play work?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] uehsgerg:
I make the Google clock work, so I can use alarm, timer and stopwatch, etc.

After installing open gapps, if your clock stops to launch, try this step to recover it.

Settings -> Apps -> Clock -> Storage -> Clear Data

Voila, the clock comes back alive.

Hope this helps.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] mel2000:
Thanks so much for your prompt reply. That solution is a big relief.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] SoNic67:
For a short time, Moto gave away the Amazon unlock codes, it was by an "error" that now is fixed.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] acejavelin:
Apparently a few still "slip through" once in a while.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] ajw85:
TLDR I'm reporting that unlocking an Amazon Ads G4 works.

I bought a G4 w/Amazon Ads 32GB from Amazon the other day. I plugged it in and booted to bootloader. I requested the unlock code from the device. I put in the code into Motorola's website and then they emailed me the unlock code. Rebooted the phone into Android and went through setup skipping everything except the Amazon log in and then enabled OEM Unlock. Rebooted into bootloader and entered unlock code and it worked. Flashed TWRP. Booted TWRP image and installed rom.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] Gusmode:
I'm about to buy one but if I can't get it unlocked how bad are the ads? Do they change often, are really intrusive, suck a lot of data or? What are the annoyances with them (other than being ads).. Is it like the Amazon underground where a full screen one pops up at the start of every AUnderground app or?
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] evilkorn:
The ad covers the lock screen. You swipe up, unlock the phone and you are on your way like normal. If you have a notification when you unlock the phone the ad can be swiped away. It honestly isn't that bad, but I've used the removal tools when they are available.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] sawyerbenjamin:
So the ads actually drive me nuts. I found a workaround where I use The Weather Channel app to keep a continuous temperature notification in my status bar. That notification also shows up on my lock screen which keep the ads to a minimum. Basically the ads are the size of any normal lock screen notification but more graphic. Still annoying but much better than full screen. I'm checking back here every day to try and remove them again.

TL;DR - If you have a lock screen notification, the ads wont be full screen. They kinda just look like another lock screen notification.
[Moto G4 ROMs, Kernels, Recoveries, & Other Develop] RyzaJr:
How do these few "slip through" once in a while? I must know!

Also, does this method in the OP work with the Amazon sponsored Moto G4 Play?