yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
The main benefit of compiling your own with Android Studio is that you don't have to wait for a formal release to take advantage of all the latest enhancements, and it's significantly more reliable than flaky APK Editor Pro. It makes it trivially simple to update without having to uninstall or reconfigure SABS. Yes, you need to connect your phone to a computer briefly to install the apk, but it only involveschanging the package name then pushing a button or two. Once you've installed Android Studio, it only takes a couple of minutes to create and install the very latest SABS (including with any changes YOU feel like making to your own version), as often as you wish. Who knows, you might even feel adventurous and edit/compile/install many of the other Android jewels that you can find on GitHub!

EDIT: as [MENTION=8348385]StewMaker[/MENTION] points out, you don't HAVE to connect your phone to your computer but it's a lot easier/faster to let Android Studio install and launch the app directly. I'm lazy, the less I have to do manually, the happier I am... ;)
[Android Apps and Games] StewMaker:
The initial setup takes much longer, but after you have Android Studio installed and up to date, installing new versions is very quick. You don't have to connect it to your computer. You could build an apk and transfer it over to your phone via your local network or cloud drive or something, instead of installing it directly to your phone.
[Android Apps and Games] mmotti:
Pushing a new commit for SABS.

Improved whitelisting

When activating SABS, each domain will be regex matched against each whitelisted domain.

Example:

Whitelist: traffic.*

Whitelist Domain: traffic.focuusing.com
Whitelist Domain: traffic.*
Whitelist Domain: traffic.adwitty.com
Whitelist Domain: traffic.spot.im
Whitelist Domain: traffic.adxprtz.com
Whitelist Domain: traffic.outbrain.com
Whitelist Domain: traffic.adxprts.com
Whitelist Domain: traffic.getmyads.com

Previous behaviour

Example:

Whitelist Domain: traffic.*

It's not perfect - A recent issue from the entry *yimg.com wouldn't be correctly unblocked by entering ebayimg.com, but it should make sure that the whitelist matches are much more accurate.
[Android Apps and Games] AEM74:
Anybody else getting duplicate packages and only on some of them? When I restart my phone, one of them is re-enabled but the package is still disabled. I'm on an S8+ 7.0 Nougat.

Thanks.
[Android Apps and Games] Mike B.:
Which SABS version are you running, how did you change it package ID, and which packages are you referring to? If you mean the default "standard pakckage" and "mmotti's package", you should be able to enable either one or both,update all, turn SABS OFF then back ON, and not have to do that again. Exactly what is getting duplicated?
[Android Apps and Games] AEM74:
Sorry for the vagueness. I'm running the latest version, 0.0.8. I'm also referring the apk's, such as the Google App, Google Maps, and a few other apps showing up as duplicates.
[Android Apps and Games] Mike B.:
In which screen? Blocker's "Manage blocking in apps"? Disabler? Under some specific Permissions? Any such duplicates under your phone's "Apps" screens?
[Android Apps and Games] AEM74:
Just under Disabler. No duplicates under the Apps screen.
[Android Apps and Games] Mike B.:
Full duplicates, same name, both system apps, same package name? Refreshing the list (or simply picking a different sort order) doesn't remove the duplicates? Nobody has reported anything like this before. That's very odd since that information comes directly from Knox. Maybe [MENTION=6183103]NeedleGames[/MENTION] will have some insight...
[Android Apps and Games] AEM74:
Correct, exactly the same. I'll upload a screenshot soon.
[Android Apps and Games] eXPerience1983:
I updated from 0.07 and I haven't that problem.

Enviado desde mi SM-G955F mediante Tapatalk
[Android Apps and Games] AEM74:
I should mention that this problem was present at 0.0.6 as well, but it was not initially when I first installed it on 0.0.6.

GSAM and Wakelock Detector both also show Android System as Samsung DeX Home as well, unknown if that may be related to the duplicate package problem I am having.
[Android Apps and Games] fireworksordie:
I just updated to 0.0.8 without issue (copy package name, rename, update) and the license seems to have taken fine, but when I go to "Turn On" the Blocker it briefly says "Enabling SABS" then goes right back to saying SABS is off. 0.0.7 had the issue of not really showing what it was doing, and I eventually finally got it working after repeated restarts and force closes, but I haven't managed to get 0.0.8 working yet. Any ideas?

I also noticed that when I scroll down in "Manage blocking in apps", the moment it reaches the bottom of apps I've disabled blocking in, SABS force closes.

I have a screen recording of both the Blocker not enabling and the list force closing if that is helpful. I've been using SABS for the last week or so and once it's on and working it's been great, so I hope these are just temporary issues!
[Android Apps and Games] Mike B.:
Which device and unaltered (unrooted, Knox=0) Samsung firmware/software? Are you positive you don't have a previous copy of SABS, AdHell or Disconnect Pro still running? How did you change the package name? Your symptoms are reminiscent of reports from common glitches of APK Explorer Pro.
[Android Apps and Games] fireworksordie:
Note 8 SM-N950U, 7.1.1, unrooted and Knox is 0. Never installed AdHell or Disconnect, and have only updated previous versions of SABS (package installer always said APK was updating/installing over previous). I did use APK Editor Pro to change the package name for version to the same one. I also just tried uninstalling SABS completely and then installing 0.0.8 fresh with the same issue. How would APK Editor Pro be affecting how SABS works at this point once it's already installed?
[Android Apps and Games] Mike B.:
FYI, I happen to use the very same device and Android version without any trouble at all but I compile SABS from source, not using a patched version. The fact that you also had trouble with 0.0.7 suggests that something in either your configuration or the methods you use might create problems. It's puzzling. Can you think of anything "unusual" you might be doing, such as running another firewall or VPN, aggressive theming, changes to the phone's dev options, disabling/deleting common components, etc?
[Android Apps and Games] fireworksordie:
Nope- nothing else strange to my install. However, I just fully uninstalled SABS, restarted, reinstalled the same APK Editor'd 0.0.8, reactivated with the same license, and it seems to be working now. At the time of the above post I had hit uninstall from within the app and then just installed it again, but then I realized it had remembered the list of apps I'd disabled blocking in as well as my dark theme, so the restart this time must have been an important factor- like app and its settings were still in memory. That combined with the disabled blocking app list force closing before the full uninstall+reinstall makes me think there was some leftover issue from a previous numbered version's settings that was messing with how the latest version behaved.

Happy to report now that the blocking enabled normally and things seem to be working as intended. One quick question- do I need to disable and re-enable blocking after changing settings in "manage blocking in apps" or will it automatically adjust?
[Android Apps and Games] Mike B.:
Glad to hear that your problem went away. Yes, turning blocking OFF then back ON will insure that the Knox firewall uses the latest values. It's not always strictly required but, in general, it's wise to do that after any non-cosmetic change to SABS.
[Android Apps and Games] eNubiX:
Everytime you change a setting, you must turn off SABS, and then turn it back on for it to recognize the change.

Just realized that [MENTION=4343728]Mike B.[/MENTION] answered your question right before I did. Haha!
[Android Apps and Games] fireworksordie:
Awesome- thanks for the help everyone!
[Android Apps and Games] amaru7:
After the activation I keep getting licence activation failed, even after reinstalling and generating new key, what can I do?
[Android Apps and Games] Mike B.:
You don't give us much information so the best suggestion would be for you to make sure you followed all the steps accurately (see the OP instructions), including uninstalling any previous AdHell/SABS, making sure you have a proper license key, using an apk with a unique package name, etc.
[Android Apps and Games] amaru7:
I did all that, the package name I just added a letter at the end of it, are there any rules to renaming the package name? And what details do you need other than that? Running on Galaxy S7, Android 7 latest Updates, SABS 008
[Android Apps and Games] Mike B.:
The rule is that you must use a unique valid package name but if, as I suspect, you used APK Editor Pro, it has limitations of its own, such as preferring the "3+9+4" format as mentioned in the OP. So far, every single report of failure to activate has been traced to a user oversight/error and it's difficult for us to guess what exactly you did. It might not be a bad idea for you to fully uninstall your SABS and start fresh, following the instructions to the letter.
[Android Apps and Games] amaru7:
I did use ap Editor Pro, but for some reason it didn't work. Is there a simpler way to do this? For some reason I don't manage it this time as I did the first time with SABS 007. Can someone ELI5? Is there a simple and less troublesome alternative to AP Editor Pro to change the package name of the apk?
[Android Apps and Games] Oops...:
[MENTION=6183103]NeedleGames[/MENTION] there is something weird with the permissions, see attached screenshot
[Android Apps and Games] Mike B.:
Chances are you simply overlook something somewhere. Whatever you did with 0.0.7, do it again with 0.0.8. When it comes to changing the package name, there are no differences between any of the SABS apk releases. APK Editor Pro is one method that many users seem to prefer for some reason but by far the best and most dependable way to create a SABS version to install on your device is to use Android Studio. Because of Samsung's requirements, SABS cannot be a quick "download and install" app, and users MUST follow a few simple steps. There is no getting around that!
[Android Apps and Games] sanderg:
I tried the APK Editor Pro method with 0.0.8 and it worked without issues.

I think the statement above is very true. Even, if it would have been as easy with Adhell in the early days, chances are that uncle Sammy would do more against it. As long as it is more a hobbyist project, I hope we are safe... :cool:
[Android Apps and Games] Mike B.:
That permission no longer exists (see https://developer.android.com/reference/android/Manifest.permission.html). [MENTION=6183103]NeedleGames[/MENTION] probably simply forgot to remove it. See line #106 in AdhellPermissionInfo.java.
[Android Apps and Games] Oops...:
No real issue on my side, just wanted to report back ;)
[Android Apps and Games] Mike B.:
I just now fixed it in build 507. I see we still have a few minor UI issues with the latest strings, but nothing that can't wait ([MENTION=6183103]NeedleGames[/MENTION] is the UI Maestro!) ;)
[Android Apps and Games] Sami Jildeh:
I uninstalled the old Adhell and installed SABS 0.0.8 then from apk editor i changed its package name to con.sam1sam12.sami, them i got enterprise key (its type is Enterprise license key (Development)) it starts with 0E and ends with D3

I enabled admin but still can't active knox.

Should i press submit knox key before activate license? i tried when i pressed it and without.

It doesn't get activated.

can any one help me.

Thanks
[Android Apps and Games] Mike B.:
You need to change the package name BEFORE you install the app. If you already installed the unchanged apk, uninstall it first, then install your custom apk. Yes, you need to submit your license key before you can enable SABS for the first time.
[Android Apps and Games] NeedleGames:
You have clearly not followed all the steps correctly. Most like they key you have copied is not full or you have copied a key not under LEGACY section
[Android Apps and Games] Sami Jildeh:
I changed it before i install it. Then when it finished renaming successfully i installed it.

Enabled admin. Pasted the key and click submit then activate.

I got failed.
[Android Apps and Games] Sami Jildeh:
Isn't this the key what we suppose to use? see pic.
[Android Apps and Games] Mike B.:
Could it be that you have a revoked or incorrect key? Verify that you have an active 128-byte Legacy Knox Standard SDK Enterprise license key (check your SEAP account if you're not sure). Also make sure that you fully uninstalled any old AdHell, especially the original obsolete one from the Play Store. Rebooting is sometimes necessary to clean up any leftovers from old versions.

---------- Post added at 02:09 PM ---------- Previous post was at 02:07 PM ----------

It looks right. I still suspect that you have leftovers from an ancient AdHell.
[Android Apps and Games] Sami Jildeh:
Still failed to activate.

I am sure i have 128 letter as key in SABS and i press submit key and then activate but always fail.
[Android Apps and Games] amaru7:
No, I just had the same issue solved, because this is the wrong key, it is the key above
[Android Apps and Games] Mike B.:
But are you positive that you removed all traces of your old AdHell and DID YOU REBOOT?
[Android Apps and Games] Sami Jildeh:
i clicked uninstall for the Adhell and it is uninstalled then

I rebooted twice and i shut it down before and i just shut it down now. I will turn it on.
[Android Apps and Games] Mike B.:
Oh, you are absolutely correct. I only glanced at the screenshot and didn't see the yellow annotation. As mentioned countless times, the correct key is a128-byte Legacy Knox

Standard

SDK Enterprise license key !

Amazing how always following the instructions works, eh? ;)
[Android Apps and Games] Ramzh:
Just a curiosity, how come now SABS is so aggressive?

In the 0.0.7 release for example, eBay was able to load in fine images or watch Facebook videos, while with this version I had to eBay did not load any image and Facebook had infinite load time on vidoes. I just excluded them from the blocking list (I wish Facebook was still there tho) and now everything works fine.
[Android Apps and Games] Sami Jildeh:
Thank you very much and for who tried to help me. I revoked my key and found my mistake.

Thanks.
[Android Apps and Games] mmotti:
Uncheck the standard host file and use mine until the original is updated.

Disable and enable blocking again afterwards.

Aggressiveness for ebay is due to oversights in compiling the host file. Also Facebook likely due to the graph.facebook.com entry (removed from my host file).
[Android Apps and Games] Mike B.:
SABS is not aggressive but your selection of input files might be. At one time, one of the sample packages was blocking eBay images, but even if you select both the standard and mmotti packages, update all, then toggle SABS off and on, you should now be able to see eBay images just fine. As [MENTION=6150682]mmotti[/MENTION] suggests, you might not even need the standard package at all. Remember that the contents of the default packages can vary independently from the SABS release number, one of the reasons why the "update all" option is there.

Once again SABS doesn't block any ads, it's merely a tool that allows you to load lists of domains that you want to block into the Knox firewall. It's more passive than aggressive! ;)
[Android Apps and Games] Ramzh:
Oh yeah I know that it does not block ads :D

Anyway thanks for the clarification to both!
[Android Apps and Games] :
When i had another disabler app, i used to disable themecenter app and Samsung theme app, so to keep a paid theme more than a few minutes.

I do the same in sabs disabler, but doesn't work.. After 5 minutes theme changes back..

I don't remember if i was erasing data from themecenter app before disable it.. Here i can't do this..

Anyway anyone knows why it doesn't work here this trick?

Can i do it with any other way? Everything i tried i failed..

I don't want to install a 3nd disabler app just for that only..

Edit.. I think i finally found a way through developers setting..

If i disable from there themecenter, it looks to work..

Would be easier through sabs, bu I am ok with this i suppose.. :)
[Android Apps and Games] Mike B.:
SABS's Disabler module simply uses the Application Policy API of the Knox SDK, and Knox then enables or disables apps as requested (at least it's supposed to). Since I don't have the apps you mention (only "com.samsung.android.themestore" which I've never used), I can't tell you how those apps work, which services they use, or what you'd need to do to keep your (paid?) themes, but if you're trying to bypass paying for something, it's unlikely that Samsung/Knox would cooperate and we can't get too involved with that here on XDA. Paying for a theme that requires payment would probably work! ;)
[Android Apps and Games] atarek:
Hello,

If you could advice regarding how to use SABS to stop them com.samsung.android.(themestor & themecenter).. it will be nice to help a lot of users in themes threads searching for help there regarding using SABS instead of posting here :D so we can reference them for your guide.

below is an example of success with user but after that a lot of failure trials for others.

https://xdaforums.com/showpost.php?p=75704962&postcount=1634

OT: for sure it can be used in both legal ways & illegal once to bypass paid themes but we can do anything to stop that it depends on every person ethics and how much he appreciate effort done or not.

Regards,

Ahmed
[Android Apps and Games] Mike B.:
If the link to which you point is correct, all that's apparently needed is to disable the two apps in question, a trivial matter under SABS (click on "Disabler", select the apps you want to disable). Users who don't already have SABS can be simply referred to this thread's OP. I don't know what else we could/should do. So far, every reported failure to install or enable SABS has been a simple user error or oversight. The main requirement is the ability to read! ;)

EDIT: It's not about ethics, merely about the XDA rules to which we all agreed when we joined.
[Android Apps and Games] tommyguns818:
Thank you so much for this. After adhell went bye bye I tried this on my s7 edge. Your instructions are clear & well written. Cheers!
[Android Apps and Games] NeedleGames:
10 000 downloads!
[Android Apps and Games] Painman1963:
4 in this house [emoji6]
[Android Apps and Games] Sami Jildeh:
Should we enable the disabled packages before updating to Oreo? Or it doesn't matter.

Got it today and will update after I finish work.
[Android Apps and Games] Gogomemes:
Having problems

Sabs seems to be blocking me from linking my apps to facebook. Anyone encounter this problem? Is there a possible solution?
[Android Apps and Games] Yanchev:
Yahoo.com is completely bugged.
[Android Apps and Games] bmszabo:
I did official Oreo update (OTA, S8, Netherlands) w/o turning off SABS and w/o any issues. Just do it.

Verstuurd vanaf mijn SM-G955F met Tapatalk
[Android Apps and Games] NeedleGames:
Whitelist graph.facebook.com in SABS settings

Whitelist *.yimg.com in SABS settings
[Android Apps and Games] iceandrews:
In 0.7 there was a app that had ads blocked, but 0.8 they are getting through. Is there a way to ID to domain/server so I can blacklist it? The Recent Activity is great what is being blocked, but can't help with things getting through. How can I do that?
[Android Apps and Games] Mike B.:
Maybe you blocked that app under the previous version? A lot depends on which domains you previously blocked as compared to what you now block. Assuming you are using the default packages, try using only one at a time. Remember to turn SABS off then back on after any change to your lists. What's the URL of an ad you want to block? That might give you a clue about which domain to block.
[Android Apps and Games] iceandrews:
I didn't have any whitelists or blacklists in 0.7, I was using the standard packages. I wasn't blocking any specific apps as well. The only whitelist I'm using this time is the graph.facebook.com. Know a good way to identify a URL/domain that are particular app is using to server ads?
[Android Apps and Games] Mike B.:
Your Oreo upgrade probably wiped some of the Knox firewall settings. "Update all" refreshed the blocked lists but verify that your other settings (disabled apps, permissions, etc.) are still the way you like them. If Samsung were kind enough to finally release Oreo for my N8, I'd be able to get more specific! ;)
[Android Apps and Games] iceandrews:
delete this post
[Android Apps and Games] Mike B.:
The standard packages change, unrelated to which SABS version you use. Have you tried using only one of the standard packages? As suggested, have you tried to click on one of those ads to see where it's coming from? If you tell us which specific app causes you problems, perhaps other users could help.

EDIT: You deleted your post, does this mean you solved the mystery and if so, what did you do? Your finding may help others.
[Android Apps and Games] iceandrews:
I'm not able to figure out where the ads are being served from. If you know a tip/trick for that please let me know. It's a dumb game called "Light a Way"

You've been super helpful though, thank you.
[Android Apps and Games] NeedleGames:
Install "packet capture" app and see what websites apps are visiting.
[Android Apps and Games] Mike B.:
Once again, did you try clicking on one of those ads and see where it takes you? I know nothing about games, but I see a game by that name on the Play Store and it offers a paid ads-free option. That would be a more permanent solution.

Tip for the future: when you have a set of lists that you like, don't feel compelled to update them! ;)

EDIT: I see that [MENTION=6183103]NeedleGames[/MENTION] suggests the "packet capture" app. If you try it, make sure to disable it for normal use (it installs a certificate and a VPN).
[Android Apps and Games] iceandrews:
Totally. You guys are awesome.

Packet Capture Screen Shot (Dropbox link)

I'm going to try and single some of these domains and see what happens!
[Android Apps and Games] mmotti:
Might be worth taking a screenshot of the ad. Sometimes they are identifiable just by looking at them.

My money is on Facebook ad choices.

Edit: and there we have it. You can only block those with graph.facebook.com but this will break Facebook functions within other apps.
[Android Apps and Games] iceandrews:
I'm 99% is some facebook related serving as well. Adding a few domains, the video ads are still kicking off, but some of the static images are being "blocked" now. Imgur Screenshots.

EDIT: Makes total sense now. If I can figure out a Blacklist profile that keeps graph.facebook.com and blocks the ads I'm trying to block I'll share it. Thanks for your help in tracking the details.
[Android Apps and Games] mmotti:
Simply add graph.facebook.com to your blacklist and then disable / enable blocking.
[Android Apps and Games] Mike B.:
Unfortunately, either you block graph.facebook.com or you don't block it, no halfway measures. You could disable blocking for those apps in which you DO want to access graph.facebook.com, but that's probably many apps, probably even including your browsers. It's all about personal choices.

Yes, those ad peddlers are getting trickier all the time. It's actually possible to live without using FB but I know that it's a tough choice for many users. In your case, simply buying the ad-free version of your game might be the wisest approach (almost as wise as not playing games or not using FB)... ;)
[Android Apps and Games] NeedleGames:
You should also press on those domains to see where they are really coming from. It seems like amazonaws is just an entry that if you block, it servers ads from a different server. If you press on any of them you will see the real domain