• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

AdShield - No root ad blocker for samsung (Discontinued)

Search This thread

NeedleGames

Senior Member
Nov 22, 2014
507
630
github.com
7UL4Qla.png

AdShield

Project discontinued.
For old users it will work for next 25 years.
For new users try newUser version. If it doesn't work - it won't.

Best version: 1.1.1

Mods don't delete unless all files aren't working. Please

DOESN'T REQUIRE CUSTOM KNOX KEY!
Just download and install​

F.A.Q.
Q: Why is this not in the Google Play?
A: I don't have a developer account because I'm not 18 yet. If you can buy me an account, I'll worship you.
Q: Licence activation failed. What can I do?
A: Uninstall other ad blockers that use KNOX (Adhell, Adhell 2, Disconnect pro), connect to wifi, make sure you're not rooted, reboot, reinstall app. If nothing works - get a custom knox key and use that (how-to bellow). Other than that - I can do nothing.
Q: Which file to download?
A: Download lowest attached file. It should have highest number.
Q: Certain websites are blocked. How do I enter them?
A: Put them in the whitelist. App>Settings>Edit Blocked URLs>Whitelist Custom URLs.
Q: Why so many permissions?
A: All of them are needed.
Q: Does it block ads on Samsung Internet browser?
A: It blocks ads everywhere.
Q: Which Ad Blocker is the best right now?
A: At the moment this. Free, has all the features other ad blockers have and has full material design. See attached pictures of features and history
Q: How does it work?
A: https://seap.samsung.com/sdk/knox-standard-android


How to install:

  1. Download lowest apk file (with the highest number) from down bellow.
  2. Install apk file.
  3. Open app, follow instructions.

Licence doesn't activate/I want to use my own KNOX key:
  1. Sign in with your Samsung account here: https://seap.samsung.com/enrollment
  2. Enroll as a developer.
  3. Generate Knox Standard SDK Enterprise license key here: https://seap.samsung.com/license-keys (use any alias. If you already have a key, you can reuse it)
  4. Follow instructions in app when you first run it or in settings.

How to uninstall:
  1. Open app
  2. Open settings
  3. Press uninstall

Changelog:
Code:
v1.1.3 - 2017-08-29
*Made unblockable apps red (8 bixby related apps)
*You can now disable all other apps (removed issue with random apps not wanting to be disabled)
**Update frequency will now slow down. 
--------------------
v1.1.2 - 2017-08-29
*You can no longer block bixby and all related applications (total 8 of them). This is due to Samsung blocking licenses on apps that allow users do that.
*You can continue blocking other system apps
*minSdkVersion set to 21 from 19 because of changed working mechanisms. App won't run on older android versions than 5.0 Lollipop.
*Changes in internal version coding.
*Updated gradle, dependencies.
*Smaller app size.
--------------------
v1.1.1 - 2017-08-29
*You can no longer disable system apps. This is to not get my key blocked. If you are using an older version, please do not disable bixby or any associated apps with default license key. Better - update to v1.1.0 and use your own key. In future release I will enable all system apps except for bixby but only on custom knox key. Please, understand my situation.
*Smaller app size
--------------------
v1.1.0 - 2017-08-28
*Some issues with button behavior fixed
*Some strings changed for better UX
*You can use custom KNOX keys now if licencing fails!
*Smaller app size
--------------------
v1.0.0 - 2017-08-28
*Small material design fixes
*Removed weird shadowy thing in package disabler above navigation bar
*New button icons
*New color scheme
*New material design icon matching color scheme and material design guidelines. Looks good on stock launcher with frames enabled!
*Many string mistakes fixed including but not limited to English mistakes and wrong app name.
*Smaller app size
--------------------
v0.0.2 - 2017-08-28
*Bug fixes
*Some design element fixes
*New package name
*Smaller app size
**It's important for you to uninstall previous version**
--------------------
v0.0.1 - 2017-08-28
*First release
*Changed app name, logo, package id
*Removed donate section, unlocked paid feature
*Renamed home button to match UI
*Added my own default knox key

What to expect in future releases:
Source code (not publicly available yet because I have to figure out how to hide my own key)
Suggested content providers.
Better ad blocking.
Bixby blocking with custom knox key
Theme store killer to keep xda themes
Better uninstalling system
Individual app firewall
More

Known issues:
After uninstalling websites don't get unblocked. Tests needed to confirm this issue

Version information:
Status: Stable
Current version: 1.1.2
Release date: 2017-08-29
First version release date: 2017-08-28
Next release estimated to be 2017-09-03

Credits:
FiendFyre for providing source code of his ad blocker where I took custom knox key system from.

Due to Samsung blocking of AdShield and other apps with package disablers, Bixby blocking is removed. For more information read changelog.
 

Attachments

  • AdShield002.apk
    3.7 MB · Views: 487
  • AdShield100.apk
    3.7 MB · Views: 200
  • AdShield110.apk
    3.7 MB · Views: 190
  • AdShield111.apk
    3.7 MB · Views: 456
  • AdShield112.apk
    3.6 MB · Views: 114
  • AdShield113.apk
    3.6 MB · Views: 531
  • AdShield114newUsers.apk
    3.6 MB · Views: 1,800
Last edited by a moderator:

Iwannagiv

Member
Nov 11, 2012
46
10
This app along with Adhell and any current fork has a bug of blocking certain websites without it being on the blocked list, also even when I have whitelisted it.
Try www.gumtree.com.au can you please fix this

The Fix: The standard blocklist [getadhell] .... had a website in it mtree.com which was inadvertantly blocking gumtree.com. So adding mtree.com to the whitelist circumvents this.
 
Last edited:
  • Like
Reactions: NeedleGames

NeedleGames

Senior Member
Nov 22, 2014
507
630
github.com
This app along with Adhell and any current fork has a bug of blocking certain websites without it being on the blocked list, also even when I have whitelisted it.
Try www.gumtree.com.au can you please fix this

Thank you for your feedback. It appears that this website is not loading even though it's not in the ad domains list. I will investigate this further. Do you know any other websites that are not loading?
 

Iwannagiv

Member
Nov 11, 2012
46
10
Not at the moment, I did have a list when I tried going over it with the original developer but unfortunately that fizzled out.
Perhaps make the original list removable too since your coding away.

Really appreciate your work and I hope your hard work pays off.
 
  • Like
Reactions: NeedleGames

TheBlueRaja

Senior Member
May 6, 2010
282
39
For what its worth, i had the same issue with the UK version of the same site, only i use the app. The only way round it was to remove it from the adblocked apps.
 

NeedleGames

Senior Member
Nov 22, 2014
507
630
github.com
Not at the moment, I did have a list when I tried going over it with the original developer but unfortunately that fizzled out.
Perhaps make the original list removable too since your coding away.

Really appreciate your work and I hope your hard work pays off.

For what its worth, i had the same issue with the UK version of the same site, only i use the app. The only way round it was to remove it from the adblocked apps.

I tried to trace what servers this website connects to and none of them were blocked. Weird.
I'm still investigating this. Whitelist blocked urls in settings
 
Last edited:

ioancr

Senior Member
Jan 3, 2012
320
230
Won't activate. I had a working Adhell, now I have nothing. Is AdShield using the same Key as Adhell on my device? Any solution?
 

NeedleGames

Senior Member
Nov 22, 2014
507
630
github.com
  • Like
Reactions: hecthorpe

Art3714

Member
Jul 21, 2017
34
12
It uses a different key. Please update to version 1.1.0 that was released just a moment ago and use your own knox key!

To do that:
  1. Enroll as a developer here: https://seap.samsung.com/enrollment
  2. Generate KNOX Standard SDK key here: https://seap.samsung.com/license-keys

Put it into app and voila!

Tried that but no matter what I do use default or use custom it fails to activate and then just hangs. Tried uninstalling and redownloading but still no go...
 

Art3714

Member
Jul 21, 2017
34
12

NeedleGames

Senior Member
Nov 22, 2014
507
630
github.com
Really, of course I did that but how do u undo whatever routing changes or blocked sites.

---------- Post added at 09:42 AM ---------- Previous post was at 09:38 AM ----------



It is like the changes are now permanent.

I noticed that too. Uninstalled Adhell without disabling url blocking and still had ads not showing up and online adblock check returned "no ads" message too. I think it's because hosts file remains unchanged unless you specifically revert to a backup version.

Try installing app and uninstall it from the settings. I'll look at this issue later.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    7UL4Qla.png

    AdShield

    Project discontinued.
    For old users it will work for next 25 years.
    For new users try newUser version. If it doesn't work - it won't.

    Best version: 1.1.1

    Mods don't delete unless all files aren't working. Please

    DOESN'T REQUIRE CUSTOM KNOX KEY!
    Just download and install​

    F.A.Q.
    Q: Why is this not in the Google Play?
    A: I don't have a developer account because I'm not 18 yet. If you can buy me an account, I'll worship you.
    Q: Licence activation failed. What can I do?
    A: Uninstall other ad blockers that use KNOX (Adhell, Adhell 2, Disconnect pro), connect to wifi, make sure you're not rooted, reboot, reinstall app. If nothing works - get a custom knox key and use that (how-to bellow). Other than that - I can do nothing.
    Q: Which file to download?
    A: Download lowest attached file. It should have highest number.
    Q: Certain websites are blocked. How do I enter them?
    A: Put them in the whitelist. App>Settings>Edit Blocked URLs>Whitelist Custom URLs.
    Q: Why so many permissions?
    A: All of them are needed.
    Q: Does it block ads on Samsung Internet browser?
    A: It blocks ads everywhere.
    Q: Which Ad Blocker is the best right now?
    A: At the moment this. Free, has all the features other ad blockers have and has full material design. See attached pictures of features and history
    Q: How does it work?
    A: https://seap.samsung.com/sdk/knox-standard-android


    How to install:

    1. Download lowest apk file (with the highest number) from down bellow.
    2. Install apk file.
    3. Open app, follow instructions.

    Licence doesn't activate/I want to use my own KNOX key:
    1. Sign in with your Samsung account here: https://seap.samsung.com/enrollment
    2. Enroll as a developer.
    3. Generate Knox Standard SDK Enterprise license key here: https://seap.samsung.com/license-keys (use any alias. If you already have a key, you can reuse it)
    4. Follow instructions in app when you first run it or in settings.

    How to uninstall:
    1. Open app
    2. Open settings
    3. Press uninstall

    Changelog:
    Code:
    v1.1.3 - 2017-08-29
    *Made unblockable apps red (8 bixby related apps)
    *You can now disable all other apps (removed issue with random apps not wanting to be disabled)
    **Update frequency will now slow down. 
    --------------------
    v1.1.2 - 2017-08-29
    *You can no longer block bixby and all related applications (total 8 of them). This is due to Samsung blocking licenses on apps that allow users do that.
    *You can continue blocking other system apps
    *minSdkVersion set to 21 from 19 because of changed working mechanisms. App won't run on older android versions than 5.0 Lollipop.
    *Changes in internal version coding.
    *Updated gradle, dependencies.
    *Smaller app size.
    --------------------
    v1.1.1 - 2017-08-29
    *You can no longer disable system apps. This is to not get my key blocked. If you are using an older version, please do not disable bixby or any associated apps with default license key. Better - update to v1.1.0 and use your own key. In future release I will enable all system apps except for bixby but only on custom knox key. Please, understand my situation.
    *Smaller app size
    --------------------
    v1.1.0 - 2017-08-28
    *Some issues with button behavior fixed
    *Some strings changed for better UX
    *You can use custom KNOX keys now if licencing fails!
    *Smaller app size
    --------------------
    v1.0.0 - 2017-08-28
    *Small material design fixes
    *Removed weird shadowy thing in package disabler above navigation bar
    *New button icons
    *New color scheme
    *New material design icon matching color scheme and material design guidelines. Looks good on stock launcher with frames enabled!
    *Many string mistakes fixed including but not limited to English mistakes and wrong app name.
    *Smaller app size
    --------------------
    v0.0.2 - 2017-08-28
    *Bug fixes
    *Some design element fixes
    *New package name
    *Smaller app size
    **It's important for you to uninstall previous version**
    --------------------
    v0.0.1 - 2017-08-28
    *First release
    *Changed app name, logo, package id
    *Removed donate section, unlocked paid feature
    *Renamed home button to match UI
    *Added my own default knox key

    What to expect in future releases:
    Source code (not publicly available yet because I have to figure out how to hide my own key)
    Suggested content providers.
    Better ad blocking.
    Bixby blocking with custom knox key
    Theme store killer to keep xda themes
    Better uninstalling system
    Individual app firewall
    More

    Known issues:
    After uninstalling websites don't get unblocked. Tests needed to confirm this issue

    Version information:
    Status: Stable
    Current version: 1.1.2
    Release date: 2017-08-29
    First version release date: 2017-08-28
    Next release estimated to be 2017-09-03

    Credits:
    FiendFyre for providing source code of his ad blocker where I took custom knox key system from.

    Due to Samsung blocking of AdShield and other apps with package disablers, Bixby blocking is removed. For more information read changelog.
    2
    Thank you all (about a 1000 people) who downloaded. This was a waste of time because Samsung likes to ruin everyone's lives. Thanks samsung!

    I'm going to continue developing this app but only for myself. If I don't publish it will work for me forever. If I publish - it won't work for anyone. 1>0
    Ooooo
    I'm sorry to hear that.

    But thank you anyway.

    Enviado desde mi SM-G935F mediante Tapatalk
    1
    This app along with Adhell and any current fork has a bug of blocking certain websites without it being on the blocked list, also even when I have whitelisted it.
    Try www.gumtree.com.au can you please fix this

    The Fix: The standard blocklist [getadhell] .... had a website in it mtree.com which was inadvertantly blocking gumtree.com. So adding mtree.com to the whitelist circumvents this.
    1
    Not at the moment, I did have a list when I tried going over it with the original developer but unfortunately that fizzled out.
    Perhaps make the original list removable too since your coding away.

    Really appreciate your work and I hope your hard work pays off.
    1
    It is like the changes are now permanent.

    I noticed that too. Uninstalled Adhell without disabling url blocking and still had ads not showing up and online adblock check returned "no ads" message too. I think it's because hosts file remains unchanged unless you specifically revert to a backup version.

    That's impossible. Looking at adhell's source code you can see that when pressing uninstall adhell in settings these actions are done:

    Code:
    firewallPolicy.cleanIptablesAllowRules();
                firewallPolicy.cleanIptablesDenyRules();
                firewallPolicy.cleanIptablesProxyRules();
                firewallPolicy.cleanIptablesRedirectExceptionsRules();
                firewallPolicy.cleanIptablesRerouteRules();
                firewallPolicy.removeIptablesRules();

    firewallPolicy is a part of Samsung's KNOX SDK. See here.