Remove Amazon Lockscreen Ads w/ ADB & Automate (No Root Required!)

Search This thread

DB126

Senior Member
Oct 15, 2013
15,287
10,085
yeah free VPN has limits and slow down things too much ...premium vpns are well ..premium ..so he might as well pay for the game..my experience with vpn's have all been bad ..unless you want to do something super shady whats the point ..and in shady's case you would use another network not associable with you and a disposable device with no personal info ..so vpn is useful to who ? porn addicts for the rest root & xposed is better imho ;)
Local (onboard) VPN based firewall, not a network VPN. Big difference.
 
Last edited:

TallTommy

Member
Jul 9, 2015
45
5
NYC
It installed well on the latest OS of my tablet 8. Thank you. Hopefully it doesn't consume too much resources.
 

DaveTea78

New member
Sep 5, 2019
1
0
This didn't work for me I'm afraid. I followed all the steps but the script kept stopping on my Fire7. However, I chatted to Amazon and they agreed to remove the ads for no cost! So it's definitely worth contacting Amazon (I did it via online chat) first.
 

ZaynkSG

Member
Oct 12, 2019
8
0
Singapore
Thank You so much! Actually bought this tablet (Fire HD 8 2018) for college because most tablets in this price range are like $120 - 150, and saw a ****ful of ads. But i followed your method and is working flawlessly :) Thank you again!:victory:
 

Datastream33

Senior Member
Sep 17, 2017
2,613
2,347
Thank You so much! Actually bought this tablet (Fire HD 8 2018) for college because most tablets in this price range are like $120 - 150, and saw a ****ful of ads. But i followed your method and is working flawlessly :) Thank you again!:victory:

No problem! Happy to hear that you are 100% satisified with the adblocker! Have a great day! :D
 

BXM500

Senior Member

Attachments

  • Screenshot_20191128-130057.jpg
    Screenshot_20191128-130057.jpg
    210.9 KB · Views: 481
  • Screenshot_20191128-130122.jpg
    Screenshot_20191128-130122.jpg
    211.3 KB · Views: 475
  • Screenshot_20191128-130136.jpg
    Screenshot_20191128-130136.jpg
    207.6 KB · Views: 439
  • Screenshot_20191128-130144.jpg
    Screenshot_20191128-130144.jpg
    209.4 KB · Views: 312
  • Screenshot_20191128-130206.jpg
    Screenshot_20191128-130206.jpg
    208.8 KB · Views: 290
  • Screenshot_20191128-130212.jpg
    Screenshot_20191128-130212.jpg
    211.4 KB · Views: 330

mn1968

Senior Member
Nov 7, 2011
593
160
Just followed your procedure for the Fire HD10 2019. Works perfectly! Thanks.

Only issue now is that for some reason a Search box shows up on the lockscreen. Looks like this guys. Can't figure out how to get rid of it, but that's another topic.
 

salmacis

New member
Dec 16, 2019
1
0
Amazon Appstore interception

This procedure worked brilliantly on my 2018 Fire 7. However, I encountered a problem with my 2019 Fire 10. Like a couple of other people, I've had the issue with the Amazon Appstore intercepting the attempt to modify private settings, and to download the Adblock flow. I downloaded a couple of APK's (on page 6 of this thread) but they refuse to install - no error message but "App not installed". I definitely have the Google Appstore installed - that's how I installed Automate. The adb shell pm grant commands worked fine. Any ideas?
 

Vivigens

Senior Member
Apr 26, 2013
123
50
Kassel
I downloaded a couple of APK's (on page 6 of this thread) but they refuse to install - no error message but "App not installed"

I got the same Problem some days ago.
Maybe you have to change the "device_provisioned" from "0" to "1" with SetEdit. For this you need to install the Database Editor on FireHD and change the write permission by your PC/Notebook.

https://m.apkpure.com/settings-database-editor/by4a.setedit22

1. Download and install Settings Database Editor on the Fire tablet (Sideload).
2. Plug your tablet into your PC and open an ADB window. (USB Debugging on)
3. Download ADB platform-tools on you PC (C:\platform-tools) https://developer.android.com/studio/releases/platform-tools
4. Open CMD on the PC and enter the follwowing:
adb devices
The Tablet asks for access!
Now type:

adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS

Disconnect Tablet from PC.
Navigate to the Settings Database Editor on your tablet.
Select “Global table” from the top right menu
Find “device_provisioned” = 0
Change the value to “device_provisioned” = 1
Reboot your tablet.
 
Last edited:

spocko

Senior Member
May 22, 2013
310
118
Fire HD 10 2019. I have the same problem with granting permissions. The suggestion in the post above didn't help, device_provisioned was already set to 1. Still can't install the apks from page 6.
 

DB126

Senior Member
Oct 15, 2013
15,287
10,085

Top Liked Posts

  • There are no posts matching your filters.
  • 56
    While this guide does still work, I'd highly recommend you check out the Fire Toolbox! The Toolbox is not only capable of removing the lockscreen ads, but it's also capable of installing custom launchers, custom keyboards, Play Services, and so much more! We hope to see you there! :D
    To start off I just want to let you all know that the second you are done completing the steps in this tutorial you will be the happy owner of a clean lockscreen without cluttered ads. In my previous post, I shared a method with you that momentarily removed the ads from your lockscreen without a PC. Today, I'm going to perfect my previous method and can say upfront that this method does indeed REMOVE LOCKSCREEN ADS PERMANENTLY! Don't believe me? Try the method for yourself and let me know if it worked for you or not. So, without further ado... let's get started with the tutorial.

    Video Tutorial:

    Useful Links:
    » How to install Google Play Services on Fire Tablets:
    [url]https://goo.gl/oGV6P5[/URL]

    » How to download and install ADB onto your PC:
    [url]https://goo.gl/prH9PQ[/URL]

    Text Tutorial:
    To remove the ads all you will need is:
    1. Fire Tablet
    2. USB Cable
    3. USB Debugging enabled
    4. A computer with ADB installed

    1. First things first you will need to download Automate by LlamaLab on the Play Store:
    [url]https://play.google.com/store/apps/details?id=com.llamalab.automate&hl=en_US[/URL]

    2. Once the app is installed go ahead and open it. On the dialog box that appears tap "Accept" then "OK" then finally "OK" once more. In the corner of the app look for the hamburger menu icon and tap on it. Next, from the menu that appears select "Settings" Next, you will need to click on the "Privileges" section.
    Locate the following privileges:

    Code:
    access photos, media, and files on your device
    Code:
    modify system settings
    Code:
    modify private settings
    Tap on it and wait for the installation prompt to appear. When it finally does please install it (you will need to install all three privileges above for the script to work correctly). Now make sure the boxes for the privileges are ticked before moving on to the next step. Once the boxes are ticked press the back button.

    3. Still in the settings for Automate scroll down till you find:
    Code:
    Run on system startup
    Once you find it tap on it and select "Enable" from the new dialog box that appears. Doing this allows the script to run at startup when the system boots effectively blocking the ads on the lockscreen

    4. Next you will need to enable USB debugging.
    Swipe down on the top of the screen until the quick settings and notification drawer pops down. Next, tap on the gear icon to be taken to the Settings app for your tablet. In the settings app look for "Device Options" now scroll down and look for the "Serial Number" and tap on it 3 times. You should see a new entry "Developer Options" underneath "Serial Number". *Tap on it and scroll down till you find "Enable ADB" tap on it and on the new dialog box that appears hit "Enable" once more. That's it ADB has been successfully enabled.

    *If you are attempting to do this tutorial on a Fire HD 10 (2018) model please note that in the Developer Options you will be looking for "USB Debugging" instead of "Enable ADB". This is because Google changed the name of the setting to USB Debugging starting on Android 6.0 and up. So, to enable ADB just tap on the option titled "USB Debugging" and enable it. You are now ready to proceed with the tutorial. From here on out you shouldn't have to do anything else different.

    5. Once USB debugging is enabled plug your tablet into your PC.
    Now you will need to open a Command Prompt (Windows) or a Terminal (Linux) session with ADB installed (If you don't have ADB on your PC please visit this forum).
    Now type the following commands EXACTLY as they appear on screen:
    Code:
    adb devices
    Note: Please make sure you're tablet's serial number appears underneath "List of devices attached" If done correctly you should see:
    Code:
    C:\Users\(You're username here)>
    List of devices attached:
    xxxxxxxxxxxxxxxx          device
    Once you see your serial (the x's being replaced by you're serial number) and next to it, it reads "device" you are ready to move on to the next step. Once ready type the commands below (feel free to copy and paste):
    Code:
    adb shell pm grant com.llamalab.automate android.permission.WRITE_SECURE_SETTINGS
    Code:
    adb shell pm grant com.llamalab.automate android.permission.CHANGE_CONFIGURATION
    Code:
    adb shell pm grant com.llamalab.automate android.permission.SET_PROCESS_LIMIT
    (Special thanks to XDA member @Toxicshadow for their assistance with removing the missing superuser notification).

    Now, press ENTER. If nothing follows the command then it has been executed successfully and the permissions have been properly given to Automate. As illustrated in the picture below:

    c-IjDPmlqv65WXqNxeYN6Ebi2GFIt4XR_Gg4DWmDuhlyJFhA0OY_0qLV0phMwV2OTASBzFHeZvXJwbLe1YTY=w1670-h939-rw


    NOTE: If anything follows the command it means it didn't go through. Please retype or recopy the command above and make sure there are no spaces included. The command is very sensitive.

    6. Remove your tablet from your PC and once more open the Automate app. Now click the "More Flows..." option. Next, click on "Start". Go ahead and install the community flow add on.

    7. In the right-hand corner, you will see a magnifying glass icon, click on it and type in the field "Amazon" and hit enter. Look for "Amazon Lockscreen Ads Remover V4.5 (ADB Required)" flow. Tap on it and wait for the page to load. Proceed to download it to Automate. If you have a hard time finding it in the community flows I've uploaded the script to Google Drive which you can download and import into Automate.

    8. Return to the home screen for Automate. You should see the flow you just downloaded. Click on the "Amazon Lockscreen Ads Remover V4.5 (ADB Required)". With the proper permissions given and the installation of the script we are finally ready to KILL those pesky ads once and for all... with confidence, you can now tap on the "Start" button to run the script and finish the removal process.

    Congratulations you have now removed all the ads from your tablet's lockscreen. You do NOT NEED TO REBOOT! Just lock the screen and enjoy the wonderful sight of your new ad-free lockscreen!

    Before:
    7498972666145997438%253Faccount_id%253D1


    After:
    5609423260725399683%253Faccount_id%253D1


    The Explanation:
    For my little brothers birthday, I bought him an Amazon Fire Tablet HD8 (7th Generation) which he began to jump for joy at the sight of. We got it all set up and everything was going smoothly that is until the lockscreen ads showed up! Looking up a tutorial here on XDA I came across a tutorial on how to remove the ads just by running a command through ADB and to my surprise it actually WORKED! But, it wasn't long before Amazon pushed out an update to the tablets that prevented the Offers app from being removed through ADB. My brother being used to having no ads on the lockscreen came to me and begged me to remove them. Unfortunately, none of the other methods I tried worked. Then it all came down to calling up Amazon and asking them to remove the ads with a chance I could be paying $15. So, I decided to see if I could figure out a method on my own that would work. Then one night I decided to check Android's settings database to see if I could find a resolution, I opened up the settings.db file using Settings Database Editor and begin to look through the database to see if Amazon was hiding any strings governing the lockscreen ads and much to my surprise I found the string I was looking for "LOCKSCREEN_AD_ENABLED" set with a value of "1" meaning it was enabled. By changing the value of the string from "1" to "0" I was able to remove the lockscreen ads. I threw my fist up in the air and began to celebrate my victory till the next day when my brother yet again complained about the ads returning. Opening up the database once again the value was changed back to "1". Then another thought hit me, what if I used an automated app to perform the actions of changing the values for me, and with a quick search on Google Play I found exactly what I was looking for: Automate. So, I began creating the flow and testing it to see if it worked... and it did. I gave it a few days with the script running and with hope I turned on the screen to the tablet and once again celebrated over my victory, knowing this time I had done it. Publishing the flow to the community, I wrote up this tutorial and filmed a video on the method with the hopes that others would be able to experience the same feeling I felt the moment I removed the ads for good. So, that's it... that's how I figured out how to remove the ads for good!

    Latest Script Version:
    Amazon Lockscreen Ads Remover V4.5
    Build: January 11, 2019 @ 1:30 PM
    Older Versions:
    Respiratory

    Changelog:

    Version 4.5

    • *Support for "Amazon Lockscreen Ads Remover Updater (Add-On)" has been dropped.
    *Support has been dropped because there aren't any planned updates, and it's just causing more issues than anything.

    Version 4.0
    • Fixed an issue where an extra fiber would start when hiding the Service Notification.
    • *Disabled parallel launch to prevent the script from running multiple instances of itself.
    • Various bug fixes and improved performance/stability.
    *Special thanks to XDA member @asdiidjisjd23, and Sabrina Wortmann for bringing the multiple instances bug to my attention, and giving advice on how to fix it. Thank you both so much!!

    Version 3.0
    • *Fixed a startup bug that caused the script to function improperly.
    • You can now hide the Persistent Service Notification.
    • New downloadable add-on for auto-updating script.
    • Optimized performance of adblocker.
    • Various bug fixes and improved performance/stability.
    * Special thanks to XDA member @andyk88 and Automate developer @Henrik Lindqvist for assisting me in fixing the startup bug! Thank you both so much!

    Version 2.0:
    • Improved performance and stability.
    • * Fixed logging, and battery draining issues.
    • Squashed a few bugs.
    * Special thanks to XDA member @jdmegkoupe for his/hers amazing help by fixing the script and preventing it from running continuously, improving battery life, and reducing logs. Thanks so much!

    If you like my work and would like to support me feel free to Donate. Thank you.
    7
    Amazon Lockscreen Ads Remover V4.0 Update is Released!

    What's up guys?! I just wanted to jump on here and let you all know that "Amazon Lockscreen Ads Remover V4.0 (ADB Required)" has been launched. It is recommended to update as soon as possible. If you would like to see the changes that were made you can do so by reading the quote below. Thanks!

    Changelog:

    Version 4.0
    Fixed an issue where a extra fiber would start when hiding the Service Notification.
    *Disabled parallel launch to prevent the script from running multiple instances of itself.
    Various bug fixes and improved performance/stability.
    *Special thanks to XDA member @asdiidjisjd23, and Sabrina Wortmann for bringing the multiple instances bug to my attention, and giving advice on how to fix it. Thank you both so much!!

    Updating Methods:

    1. Use the "Amazon Lockscreen Adblocker Updater (Add-on)" script. With this method you don't have to do anything. The updater will install the script itself. If you do not have the updater and would like to download it, head on over to the Automate community and download it from there. If you need help follow the below steps in order to download it.
    Open the Automate app. Now click the "More Flows..." option. Next, click on "Start". Go ahead and install the community flow add on.

    In the right hand corner you will see a magnifying glass icon, click on it and type in the field "Amazon" and hit enter. Look for "Amazon Lockscreen Adblocker Updater (Add-on)" flow. Tap on it and wait for the page to load. Proceed to download it to Automate.

    Return to the home screen for Automate. You should see the flow you just downloaded. Click on the "Amazon Lockscreen Adblocker Updater (Add-on)" and it will automatically start checking for updates from the server.


    2. Download the update from the Automate community. Follow these steps in order to download it.
    Open the Automate app. Now click the "More Flows..." option. Next, click on "Start". Go ahead and install the community flow add on.

    In the right hand corner you will see a magnifying glass icon, click on it and type in the field "Amazon" and hit enter. Look for "Amazon Lockscreen Ads Remover V4.0 (ADB Required)" flow. Tap on it and wait for the page to load. Proceed to download it to Automate.

    Return to the home screen for Automate. You should see the flow you just downloaded. Click on the "Amazon Lockscreen Ads Remover V4.0 (ADB Required)".

    3. Download the update from Google Drive and import it into Automate.

    Thank You!
    Thank you all so much for the love and support you all have been showing me lately! I really appreciate every comment and question! I just LOVE interacting with you all, and I'm so happy to have met each and every one of you! You all are amazing! Its enough to bring tears to my eyes! Thank you all so much!
    4
    So so sorry I updated to the latest firmware with the old 2019 Fire HD10 (PS7322/2547). But may have stumbled upon away to disable Lockscreen Ads, and they stay disabled after multiple reboots, only thing is if I have remapped the right lockscreen shortcut that is normally set as Special Offers lockscreen shortcut, it then reverts to the camera shortcut after a reboot.

    Just disabled some apps, changed some permissions, and flipped some settings. If anybody has the time to narrow it down to the exact combination that allowed lockscreen Ads to be disabled please do, I am thinking modifying the permissions wasn't part of the fix, but it couldn't hurt to do. FYI am also using Automate app with the Lockscreen Flow, and Custom Lockscreen Wallpaper Flow, and a modified Backdrop AndroidTV screensaver app to run as the tablet screensaver while charging.
    # ! Turn-Off ADs on Lock Screen, maybe?
    adb shell
    pm disable-user com.amazon.wallpaper
    pm clear com.amazon.wallpaper
    pm disable-user com.amazon.dpcclient
    pm revoke com.amazon.firelauncher android.permission.GET_ACCOUNTS
    pm revoke com.amazon.firelauncher android.permission.WRITE_EXTERNAL_STORAGE
    pm revoke com.amazon.firelauncher android.permission.READ_PHONE_STATE
    pm revoke com.amazon.firelauncher android.permission.READ_LOGS
    pm clear com.amazon.alexa.multimodal.gemini
    pm revoke com.amazon.alexa.multimodal.gemini android.permission.WRITE_SECURE_SETTINGS
    pm revoke com.amazon.alexa.multimodal.gemini android.permission.INTERACT_ACROSS_USERS
    pm revoke com.amazon.alexa.multimodal.gemini android.permission.CHANGE_CONFIGURATION
    settings delete global com.amazon.systemui.kso.mode
    pm clear com.amazon.kindle.kso
    pm revoke com.amazon.kindle.kso android.permission.WRITE_SECURE_SETTINGS
    pm revoke com.amazon.kindle.kso android.permission.INTERACT_ACROSS_USERS
    pm revoke com.amazon.kindle.kso android.permission.GET_ACCOUNTS
    pm revoke com.amazon.kindle.kso android.permission.CAMERA
    pm revoke com.amazon.kindle.kso android.permission.RECORD_AUDIO
    pm revoke com.amazon.kindle.kso android.permission.ACCESS_FINE_LOCATION
    pm revoke com.amazon.kindle.kso android.permission.ACCESS_COARSE_LOCATION
    settings delete global LOCKSCREEN_AD_ENABLED
    settings put secure LOCKSCREEN_AD_ENABLED 0
    settings put system SCREEN_OFF_ENABLED 1
    settings put global IS_DTCP_ENABLED 0

    reboot

    # Tried this last one as test trial to see if a full software OTA will get blocked next go around
    settings put secure config_update_certificate null

    EDIT: Also, recieved an update to Special Offers app (aka lockscreen Ads provider) today, version 8.201658.0-fireOS5_210711210, and after Reboot the Ads stayed disabled.
    This works for Fire OS 7.3.2.4 with just the adb commands.
    No installing of anything.

    Thank you!
    4
    I Need Your Guys Help!

    Hello everyone,

    I have few polls I hope you guys can respond to. I'm thinking about a few things and I want to get your guys opinion on certain topics. So if you could be so kind to take a few minutes of your time to respond to these polls I will be extremely grateful. However, if you don't want to participate I completely understand. You are all awesome irregardless if you vote or not!

    Poll #1:
    The topic of this first poll is to get feedback on if I should make a tool for Windows that automatically performs the required steps for this method. Including, installing Automate, installing required permissions, and even granting Automate WRITE_SECURE. All performed automatically for the user. If this interests you and you would like for your voice to be heard on this topic please feel free to cast your vote. You can view the poll by clicking the "Vote" link down below. Thanks!

    | Vote |

    Poll #2:
    The topic of this second post is to get feedback about if the script is satisfactory for you or not. This will help me get some idea on how I can improve things based of your feedback. If this interests you please feel free to vote using the link below. Thanks!

    | Vote |

    Thank you to everyone who has participated, and to those of you whom may not responded but took the time to read this post! Thank you and have a fantastic day! You are all amazing people! :)
    3
    Amazon OTA Update V.5.6.2.0

    As many of you know this method is possible because of a sting value (LOCKSCREEN_AD_ENABLED) located in the Android Settings Database in the Global table that is able to be modified to remove the ads. I just occurred to me that Amazon has released an update for all Fire Tablets updating them to Fire OS 5.6.2.0. I'm not gonna lie, as I watched the update progress bar I began to speculate that this method... after the update would no longer work. As you can imagine I was not very happy. I powered on my tablet after the update and was introduced to "Show Mode" a neat little feature that was just added. I rebooted and waited till Automate was loaded into memory and much to my surprise IT STILL WORKED! Happy as can be I fired up Settings Database Editor and went straight to the Global Table and breathed a sigh of relief at the sight of the string still present. I certainly thought they patched it! Thank heavens they didn't!

    Just felt like I should come on here and let you all know that after the latest update to the Fire Tablets this method still works 100% like it did before. :D