Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,713 Members 39,033 Now Online
XDA Developers Android and Mobile Development Forum

[ROOT][HOWTO] Disable Lockscreen Ads

Tip us?
 
Souple
Old
#1  
Junior Member - OP
Thanks Meter 6
Posts: 1
Join Date: Jun 2014
Default [ROOT][HOWTO] Disable Lockscreen Ads

WARNING: I am not responsible for any bricked devices caused by attempting this howto. If you haven't read this how to twice, and fully understand the requirements, then please don't attempt it.

Introduction (not important):
First, this may not be the best way to do this, and if someone knows a better way, I'll be happy to listen.
I kinda stumbled across this solution after trying the many other ways to solve the problem, but all the other ways seemed to have something incomplete with them and ended with no ADS, but no something else, like rotating lock screens or something.

I started with the assumption that the ADS program (dtcp) can be disabled through a flag somewhere on the system, for if you pay the extra $20 you get a kindle with no ADS, but same Android build. After looking through lots of sqlite databases I found it in the com.android.providers.settings/settings.db file.

Prerequisites:
  • Basic knowledge of databases
  • SQLite Editor Pro (Free on 1Mobile Market)
  • DroidWall

Steps:
  1. Open SQLite Editor
  2. Open "Settings Storage" (com.android.providers.settings)
  3. Open settings.db
  4. open "global" table
  5. Highlight entry "IS_DTCP_ENABLED"
  6. Click the Edit Record button at the top
  7. Change the value from a 1 to a 0
  8. Click Save
  9. Go back
  10. Make same change on the "secure" table
  11. Reboot kindle for new options to take effect.

Other Thoughts:
This just changes the value temporarily until the device checks back in with Amazon and then the value will get overridden again with the correct value. To prevent that install DroidWall and whitelist only the applications you need to access the internet. DroidWall requires root, which is why root is in the subject. But you should be doing this anyways to prevent OTA updates.
The Following 6 Users Say Thank You to Souple For This Useful Post: [ Click to Expand ]
 
jimyv
Old
(Last edited by jimyv; 22nd June 2014 at 01:16 AM.)
#2  
jimyv's Avatar
Senior Member
Thanks Meter 119
Posts: 357
Join Date: Jan 2012
Default cool

Does this mean that you will now get the rotating native wallpapers that you would have if you paid for the dismissal of the ads? Currently I use adaway on my s4 hotspot and the only one I blacklist is (spectrum.s3.amazonaws.com) this has blocked updates because I am still on old software with no other blocking in place and I have noticed it also has blocked rotateing ads accept I have the same 1 at all times.

Edit: YAY !!!! and yes I now have rotating native wallpapers
Btw thank you for sharing and it is quite refreshing to see a new member join to share useful information in a well thought out and presented OP and not just join to start a thread with a question that is the heading of so many other threads that has been beat to death already..burying perfectly good information..thank you for joining us at XDA!
Attached Thumbnails
Click image for larger version

Name:	20140621_181525.jpg
Views:	269
Size:	230.6 KB
ID:	2810780  
Please Hit (THANKS) If I Helped You
It's Free
<~~~~~~~~~~~~~~~~~~~~~~~~
 
bower95
Old
#3  
Junior Member
Thanks Meter 3
Posts: 18
Join Date: May 2011
Awesome!!!! have been looking for a way to do this without factory reset for a while! You da man! Gonna spam that thanks button for a while lol
 
dras99
Old
#4  
Junior Member
Thanks Meter 1
Posts: 5
Join Date: Mar 2013
Thanks so much, that was easy!
The Following User Says Thank You to dras99 For This Useful Post: [ Click to Expand ]
 
jimyv
Old
#5  
jimyv's Avatar
Senior Member
Thanks Meter 119
Posts: 357
Join Date: Jan 2012
Mind after a few days .2 went straight black lock screen
Please Hit (THANKS) If I Helped You
It's Free
<~~~~~~~~~~~~~~~~~~~~~~~~
 
dras99
Old
#6  
Junior Member
Thanks Meter 1
Posts: 5
Join Date: Mar 2013
Anyone know what exactly I need to enable in droidwall to have internet but no ota updates or Amazon changing the lock screen back to ads?
 
jimyv
Old
#7  
jimyv's Avatar
Senior Member
Thanks Meter 119
Posts: 357
Join Date: Jan 2012
Uhg
Please Hit (THANKS) If I Helped You
It's Free
<~~~~~~~~~~~~~~~~~~~~~~~~
 
earlgrey_44
Old
(Last edited by earlgrey_44; 27th June 2014 at 02:52 PM.) Reason: Update
#8  
Senior Member
Thanks Meter 74
Posts: 156
Join Date: Aug 2009
Location: Chicago
This mod works fine. No ads, rotating wallpapers appear every time. No reversion to black screen. No need for Droidwall. Use of Droidwall is impractical for this purpose. Who knows what not to include in some giant white list?

It appears that the wallpapers will continue to appear without reversion if you have blocked updates using the root kit.
Nexus 4
ROM/Kernel: SlimKat
TWRP 2.6.3.3
Mods: Hybrid Radio 33/03, Semaphore Manager

Amazon Fire TV w/XBMC 13.2

Amazon Kindle Fire HDX 7" rooted, w/GAPPS
 
dras99
Old
#9  
Junior Member
Thanks Meter 1
Posts: 5
Join Date: Mar 2013
Quote:
Originally Posted by earlgrey_44 View Post
This mod works fine. No ads, rotating wallpapers appear every time. No reversion to black screen. No need for Droidwall. Use of Droidwall is impractical for this purpose. Who knows what not to include in some giant white list?

It appears that the wallpapers will continue to appear without reversion if you have blocked updates using the root kit.
Sorry, what's the root kit?
 
earlgrey_44
Old
#10  
Senior Member
Thanks Meter 74
Posts: 156
Join Date: Aug 2009
Location: Chicago
Quote:
Originally Posted by dras99 View Post
Sorry, what's the root kit?
First link in this post:

http://forum.xda-developers.com/show...23&postcount=3

I assume the block update action from the rootkit is responsible for the lack of reversion to ads since I haven't done anything else except the steps I outlined in the post and the data base tweaks explained above. My kindle has been running for 5 days now without ads and with the startup wallpaper.
Nexus 4
ROM/Kernel: SlimKat
TWRP 2.6.3.3
Mods: Hybrid Radio 33/03, Semaphore Manager

Amazon Fire TV w/XBMC 13.2

Amazon Kindle Fire HDX 7" rooted, w/GAPPS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes