yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
I don't have the Samsung+ app on my N8, but if yours is a user app, you can simply uninstall it. If it's a system app, you can still disable it and/or revoke its Internet permission with SABS. Samsung will still have many ways to check up on you and send you useless notices. BTW, the same applies to Samsung Health. For example, If you only use Health to measure your heart/O2/stress but don't care about trends or connection to other devices, disabling its Internet permission works wonders.
[Android Apps and Games] eldervamp17:
Nice. :good: I seen you updated your mm_hosts and regex files on your script. Will test it out tonight. :)
[Android Apps and Games] uoY_redruM:
Awesome, thanks for the response. I'll revoke it's internet permissions. It's amazing how much monitoring goes on behind the scenes.
[Android Apps and Games] Xingle:
Done: https://i.imgur.com/5cYAGWI.png

*I don't have a revolut account.
[Android Apps and Games] Nastrahl:
For the ones that get MMS issue with custom DNS like AdGuard ones like I do, I worked around the problem by setting the IP address instead of the FQDN for the MMSC server.

For me :

Provider : Free mobile (French provider)

Before :

MMSC server (FQDN) : http://mms.free.fr

After :

MMSC server (IP) : http://212.27.40.225

Just go to your APN settings to change it. It's working flawlessly so far, and it's unlikely that providers would change their domain so I can assume it's quite safe to use.
[Android Apps and Games] NeedleGames:
No, knox only allows to deny documented permission.
[Android Apps and Games] sanderg:
I think that re-activating a changed Knox license key does not work in the app. I completely removed and reinstalled the app and now it is both working (and saying to be working).
[Android Apps and Games] mmotti:
I did :)

Latest version is here: https://drive.google.com/file/d/1Y_6wzBywc7J3IzMG7bdx0DgkeaofUDW7/view?usp=sharing

The regex has been generated from looking at http://someonewhocares.org/hosts/hosts so it may not remove as many hosts from other host files. That being said, a lot of them are generic, e.g. ad., so it'll still would quite effectively.
[Android Apps and Games] Mike B.:
[MENTION=6150682]mmotti[/MENTION] [MENTION=6183103]NeedleGames[/MENTION]

Thought:. Should changes in the input lists be commits? If SABS points to the relevant URLs (e.g. to something in one of your repos or some other locations), mere tweaks of the contents of those files are not really changes to SABS, not any more than pounding a different nail changes the hammer.

At any time, the user can simply "update all" to get the latest providers, including both the basic standard+mmotti and custom URLs without recompiling/redownloading SABS. In practice and for most people, that only probably needs to be done very seldom. Eventually, some auto-update mechanism could be added but I'm not even sure it's warranted. The terminally paranoid can update daily, like AdAway ridiculously uses as its default interval. Once again: if it works for you, leave it alone.

When there is an actual change to SABS code (the hammer) then of course a commit is the way to go. Ideally, discussion of which domains should be blocked for whom (the nails) would be a separate thread/discussion.
[Android Apps and Games] mmotti:
Needs a separate repo really I think. Presumably you can do that in github? Haven't used it an awful lot.

Short reply as out with mobile and cold hands. Snow :eek: brr
[Android Apps and Games] KallaneMt:
Works great on my gs8 and my galaxy tab e, even though some features on my tab are missing and i cant see what ads are blocked on it, either way it does its job
[Android Apps and Games] Mike B.:
The net is already full of places where people discuss all their opinions about which domains everyone should block and that's what has led to those huge files, often confusing basic hosts file edit with element hiding and other trickery. I'm not sure a GitHub repo is the best place to start yet another one of those dialogs, but at least it wouldn’t unnecessarily clutter the SABS repo/thread.

Cold? Keep re-downloading your little 140K list, that might get your phone to warm up. Maybe try a larger file, just in case? FYI, a couple of weeks ago, it was -30F at my location (about -35C). Wimp! ;)

---------- Post added at 08:42 AM ---------- Previous post was at 08:31 AM ----------

Good! Out of curiosity, which TAB E model is that, which Android version is it running, and which features are missing? It might help other users of the same device.
[Android Apps and Games] SmileBigNow:
I downloaded the app but I can't change the file name it's simply grayed out, I tried with App cloner it just changed the last latter from S to T but I can't activate the app, my license starts with a 8 not KLM help please
[Android Apps and Games] SmileBigNow:
Here is a screenshot

Edit: got it to work
[Android Apps and Games] NeedleGames:
Only from here and the ones apps declare. Run in background permission is not declared in manifest file of any app and cannot be controlled.

I don't think it clutters the github though. The reason it's there in a first place is because in this case github provides free hosting. Lists aren't updated that often (because ads are usually served from the same domains) except only recently to improve it. Also, if we moved it elsewhere now, people with older versions could no longer block anything because files would be gone.
[Android Apps and Games] mmotti:
I think they sit well within github, but I do think that it may be an idea to separate them and the app.

I'm not sure how github works, but I wonder if there's a place on github where we could have only the lists and allow people to suggest changes etc. So the commits for the lists would be separate.

I would personally investigate the possibility of that, then update the commit to reflect the latest version, whilst keeping the old lists in situ to allow access for users on the older versions of SABS.

I would just be a little cautious of how SABS might deal with the list address change as it's already in the dB as the standard package with a different url. Not looked at that side of the code enough to know.

---------- Post added at 04:58 PM ---------- Previous post was at 04:44 PM ----------

Well, that was warming me up really well until I ran out of mobile data :p

-35C?! Christ.
[Android Apps and Games] fusionjack:
regarding getexternalstoragedirectory, there is explanation for that, but i can't remember. it is related where the internal storage is mounted whether it is using /data partition or not.

google sees it as "external" although it is mounted as an internal storage.

but, based on the tutorial that i posted, it is using different function to get internal storage path.
[Android Apps and Games] Mike B.:
I still strongly disagree with you two on the necessity to get involved in the endless "what should I block?" saga. IMHO, simply providing a small default list of common ad servers, mostly to show how to use wildcards, would suffice as long as users can easily add other remote or local files if they so desire (already implemented - a file choose will make it even easier). The documentation can suggest a few other locations, but nothing more. That said, it's not my project and it's merely an opinion based on experience with those issues. I'm still hoping that some day you'll check on how many entries you really need, and maybe even implement a simple way for users to check on their specific needs. Using old user-contributed data collected from my AdAway and earlier days and adjusted to account for the ability to use wildcards, I still can't find anyone who'd need more than 2K entries at the very most (typically gamers, "adult" site users, etc.). I only have small samples, mostly from US and EU, but the average is closer to 500. I'm only referring to hosts lists, not any of the AdBlock-style filters, an entirely separate matter.
[Android Apps and Games] DJ_Jedi:
Guys, i have SABS with only the standard list enabled and it isnt blocking YouTube ads, i get both banners and video ads, when i was using AdHell it wasnt' showing any, then in the last 10 days it started showing them and i switched to SABS, but i still get them. I have blocked entries on YouTube in the SABS log, how can i block the ones showing?
[Android Apps and Games] Mike B.:
It's unclear whether you are talking about videos that happen to be hosted on YouTube and accessed from a browser or about a specific YouTube app, but note the warning in this thread's OP: "Ads are not blocked in Youtube. Youtube serves its ads from the same domain as videos so there's no way of blocking them.". Remember that since AdHell and SABS both configure and launch the same Knox firewall, what matters most is which domains you block, but it's pointless if the ads you see are either accessed directly by IP, are embedded in the videos, or use whatever trickery YouTube may have switched to recently. Are you using the most recent lists suggested by SABS (use "update all providers" to make sure)?
[Android Apps and Games] sanderg:
Custom blocklist working

I have created a txt file with hosts I wish to block, hosted it on GitHub in my own repository and now use the URL to the raw file as custom blocklist :)

This effectively blocks ads for Dutch sites such as nu.nl (including video ads) and telemetry from SwiftKey, and so on.
[Android Apps and Games] Mike B.:
That's a great approach, very similar to what I do except that I use a local file ! This way, you block only what YOU wish to block without having to download parse and load huge useless input files. Indeed, Switfkey has become increasingly needy ever since MS bought it. For the benefit of other Dutch users, you may want to share your URL here, with a warning that it's only informational, unsupported, etc.
[Android Apps and Games] sanderg:
NPO Start

config.ster.nl
tellerapi.npo.nl

NU.nl

sat.sanoma.fi
7b935.v.fwmrm.net
[Android Apps and Games] KallaneMt:
It is a galaxy tab e running android 6.0

---------- Post added at 05:38 PM ---------- Previous post was at 05:37 PM ----------

It is a galaxy tab e running android 6.0 its missing the app that are being blocked and the dns settings arent there

---------- Post added at 05:39 PM ---------- Previous post was at 05:38 PM ----------

It is a galaxy tab e running android 6.0 its missing the app that are being blocked and the dns settings arent there

---------- Post added at 05:39 PM ---------- Previous post was at 05:39 PM ----------

It is a galaxy tab e running android 6.0 its missing the apps that are being blocked and the dns settings arent there
[Android Apps and Games] NeedleGames:
Dns settings are only shown on devices that support this feature. Blame Samsung for not updating your device.
[Android Apps and Games] KallaneMt:
Ilol it isnt much of a bother for the dns thing but for the recent activity part is this samsung too?
[Android Apps and Games] valiii 007:
can someone help what to write on the package name? please
[Android Apps and Games] friscoboi:
No Matter what you write. But Same number of Letters as Default name. It should be a unique Combination of Letters which only YOU use. And for easy updating, you should use The Same Letters every time!
[Android Apps and Games] Mike B.:
Just make sure the name is unique. It's usually best to follow the "3+9+4" pattern (similar to the original "com.layoutxm1.sabs"), especially if you try to use APK Extractor Pro instead of a fresh compile. You don't need to be overly cryptic or creative as long as it's reasonably unique. For example (do NOT use those exact ones): "com.valiii007.1234", "com.layoutxm1.vali", etc. Remember what you use so that when you patch/compile the next version it'll install directly over the old one.
[Android Apps and Games] valiii 007:
Thank you guys ?
[Android Apps and Games] khaisttj92:
how to visit webpage that detect adblock without turn of the SABS?
[Android Apps and Games] Mike B.:
I think you are talking about one of those sites that tell you "disable your adblocker" (their term for anything that blocks access to their ads). Some of those simply need access to a specific ad server which you could whitelist if you find out which it is, but nowadays most use an internal script that can't be readily bypassed. Look at your "recent activities" for a likely candidate for whitelisting. You could temporarily disable SABS, use a VPN, or simply try to find the same information on a friendlier site. Alternatively, for use with those unfriendly sites, you could install another browser (Opera, for example) and disable all blocking for that app without having to cripple your default browser.
[Android Apps and Games] khaisttj92:
yup site that tell me to "disable your adblocker".i try whitelist the domain at it not work, so i just temporary disable SABS.
[Android Apps and Games] Mike B.:
That seems a bit drastic but if you can't identify a specific ad server that the site requires, it's certainly an option. Unless it's a site that you must access very often, try the alternate browser approach, or ignore that site and find the information somewhere else! ;)
[Android Apps and Games] khaisttj92:
it not often just rarely visit that website.im also try disable SABS then install adguard extension for sbrowser and use antiblock filter at that adguard also didnt work and im also use firefox with addon greasemonkey then install the script it work for a while then it popup "disable adblocker".
[Android Apps and Games] Mike B.:
It sounds like an awful lot of work and waste of resources just to access a misguided unfriendly site you apparently rarely visit. Instead of slowing down Firefox, my "keep it simple" philosophy would compel me to just ignore that site. ;)
[Android Apps and Games] khaisttj92:
it process of learning.if im not doing that i dont know it work or not.im agree with you to ignore that site.
[Android Apps and Games] 5outof7:
Thanks so much for keeping SABS updated.

I used the Android Studio route, got there in the end.

Just wondering if anybody has tips on which ones we should pay close attention to under "Permissions"?

Also, is there a way to be notified of new SAB updates?

Thank you!!
[Android Apps and Games] Mike B.:
In general, you can safely ignore the "Permissions" tab unless you have a specific need, such as denying "android.permission.INTERNET" for a particular app. Exercise caution when altering those permissions.

There is currently no autoupdate mechanism. To keep track of compiled apks, you can subscribe to this thread where [MENTION=6183103]NeedleGames[/MENTION] always announces new releases. However, since you are able to compile you own, you don't have to wait and you can monitor (click on "watch") the GitHub repository for new commits, keeping in mind that not all commits justify a new compile, such as simple changes to one of the builtin standard packages.
[Android Apps and Games] Pawnty:
has anyone had success with the MOAB Host List? I tried to add it in but then SABS wouldn't turn back on.

I know that AdHell mentioned a 10-15k limit for hosts files - does that also apply to SABS, as the MOAB is like 200k+.
[Android Apps and Games] Mike B.:
The Knox firewall itself imposes a limit to the number of rules it can safely handle. Even if rewritten to properly use the wildcards processing of SABS, your file would exceed that limit by far.

Of all the hosts files floating around the net, that MOAB is the worst! Even if you could magically force it into the Knox firewall, it would only waste memory. It was apparently created by gathering every possible ad server subdomain that anybody has ever found at one time or another, whether it is active or not, merely temporary or random-generated subdomain, relevant to Android, or accessible from most locations. Even as a basic hosts file replacement for rooted devices, it has other issues besides size and relevance since it insists on redirecting to "0.0.0.0" (NOT a valid IP) instead of 127.0.0.1, a practice that raises quite a few technical issues not worth discussing here. No, that file won't work under AdHell, SABS or anything else. It's only useful if you have so much RAM and your rooted device is so fast that you have to find a way to handicap it.

Do you have problems with the suggested SABS default input files (around 10K at most)?
[Android Apps and Games] Varelka:
Here you go...

https://checkadblock.ru/

Отправлено с моего SM-J530F через Tapatalk
[Android Apps and Games] iganiats:
From my experience and despite the initial instructions, you MUST change the App Name to something different than SABS, together with package name change
[Android Apps and Games] NeedleGames:
There is a reminder to update when a new apk is released. It doesn't matter what you package name is, when you open SABS, it checks github for the latest version and then displays a pop up to update if there is one with a higher version number
[Android Apps and Games] Mike B.:
The app name ("SABS") doesn't need to be changed. What must be unique is the internal package ID ("com.layoutxm1.SABS").
[Android Apps and Games] iganiats:
My friend yesterday I tried multiple times to activate sabs on a fresh note 8. I succeeded only after I changed both package and app names
[Android Apps and Games] Mike B.:
That site only tells you which of its own 6 components (AdSense, banner, flash, animated GIF, yandex metric and google analytics), are blocked. Nothing to do with accessing a site that objects to "ad blocking".

---------- Post added at 02:53 AM ---------- Previous post was at 02:49 AM ----------

If it's working for you now, no need to worry, but apparently you had done something "wrong" in whatever process you used if somehow you had to rename the app.
[Android Apps and Games] iganiats:
All things working perfect
[Android Apps and Games] Oops...:
This 3+9+4 pattern is not required if you compile from sources, at leat I did never follow this rule, and had never issues activating. What's the reason for this recommendation?
[Android Apps and Games] Guizmogwai01:
I just installed the app and everything works fine.

Thanks a lot for the work.

Guiz

Envoyé de mon SM-G950F en utilisant Tapatalk
[Android Apps and Games] NeedleGames:
People usually report that there are issues with installing the app if they don't follow this pattern and when they do, all issues disappear.
[Android Apps and Games] Nastrahl:
It may be that this issue occurs only when editing with APK editor I think.
[Android Apps and Games] khaisttj92:
i have an issue while add whitelist then turn off the sabs then turn on back and it stuck at enabling.
[Android Apps and Games] gschroer:
Try waiting 3 minutes or close SABS, reopen SABS and tap ON before hitting any other SABS controls.
[Android Apps and Games] Mike B.:
There are a a few things that you can try to speed up the process:

Use as few lists and as small as you absolutely need (the standard package is sufficient for most users)

After a couple minutes of waiting, temporarily rotate your device to landscape then back to portrait to refresh the UI

Quit SABS, restart it, then immediately hit "Turn ON" without going to other screens first.
[Android Apps and Games] Oops...:
You can always build SABS from sources. There's a comprehensive tutorial in the AdHell 2 thread, by [MENTION=6150682]mmotti[/MENTION]. Once you have the tools installed, it's quite easy.

Edit: stupid me. Just look into OP for instructions :laugh:
[Android Apps and Games] eXPerience1983:
The original web

http://www.apkeditorfree.com/

Enviado desde mi SM-G955F mediante Tapatalk
[Android Apps and Games] Yanchev:
I am enjoying SABS quite a lot. [MENTION=6183103]NeedleGames[/MENTION] did an amazing job with the new features and interface update. Since I am not a developer will appreciate if someone competent enough could answer some of my questions.

1. Does blocking port 53 only needed for chrome and should it be disabled if one is not using chrome at all?

2. I see small differences between standard host file and [MENTION=7539469]mmoti[/MENTION] 's file in adhell 2. Mmotti's file blocks a bit more. Are both host files interchangeable?

3. Is it possible from developer's point of view for SABS to not block first searches in Google which are of course sponsored?

4. [MENTION=1927554]Mike B[/MENTION] said he changed DNS to 103.130.130/131. Is that in anyway benefitial?
[Android Apps and Games] iExtremity:
Works well on my J5 2016. Thanks!
[Android Apps and Games] milojoseph:
Non of the dns works well ... It will stop the internet service
[Android Apps and Games] Temporeiches:
Nevermind, figured it out
[Android Apps and Games] NeedleGames:
1. Yes only for chrome. I'll make it so that it only blocks port on chrome later.

2. You can use both.

3. No

4. No, he also uses Adguard and the setup process is different. Simply don't change dns
[Android Apps and Games] android_htc:
[MENTION=6183103]NeedleGames[/MENTION],

I think it may be a good idea to remove the "Change DNS" feature altogether as it does not work. If any custom DNS server is specified in the settings then apps cannot be downloaded using Google Play store, this was experience.. not sure about other users.

Also, it would be nice to have "run background" permission added to app permissions tab.

Not really sure why this permission was left out?
[Android Apps and Games] 8139david:
Thanks for the app.

I followed the steps, but I can't activate SABS. I first got the appropriate Samsung license key for 0.0.6.apk umodified (cf. the image posted here: ibb.co/dcQaQx). Then I changed the package name (using APK editor pro), and installed the corresponding version of the app.

What did I do wrong?
[Android Apps and Games] Mike B.:
We sometimes refer to an application named "APK EDitor PRO". Unfortunately, that app is no longer available in the Play Store. "APK Editor Free" by the same developer is still there but doesn't have the ability to edit the manifest (where the package ID is defined). If you know how to search the web, you might be able to still find a copy of "APK Editor Pro" or grab another patcher with similar functionality but please be careful about using apps of questionable origin and remember that you may not discuss those here on XDA.

You might also be able to edit the apk with other means at your own risk, but by far the best way if you have access to a desktop/laptop is to follow the instructions in the OP on how to download and install Android Studio to create your own copy of SABS, including all the latest enhancements.

---------- Post added at 07:26 AM ---------- Previous post was at 07:16 AM ----------

"Change DNS" works fine as long as your device and ISP allow it and don't intercept external DNS calls (some do!) . If the custom DNS you were using causes problems for your Play Store, try another custom DNS (AdGuard DNS, Google DNS, etc.).
[Android Apps and Games] M4rf0:
Installed 0.0.6.apk and for now everything looks good. What is the max limit for blocked hosts? In adhell it was 15k.
[Android Apps and Games] Mike B.:
Which device/firmware? Did you submit your new Knox key (all 128 bytes) successfully? Did you use "the standard package" domains list? Did you wait a couple of minutes to decide it wasn't enabling? Did you try closing SABS then going immediately to "Turn ON"?

---------- Post added at 07:41 AM ---------- Previous post was at 07:36 AM ----------

No hard-coded limit in SABS, but if you use much more than 15K you are simply attempting to block way too many domains (especially if you import a random list that doesn't take advantage of wildcards). Specifically, resist the temptation to import some huge list found on the net formatted as a hosts file substitute.
[Android Apps and Games] M4rf0:
For now I have list as below and it works quite well.
[Android Apps and Games] bigeric828:
I realize you said it was just from your experience, but i have used it to change DNS and it has been fine.

I prefer it kept personally. I've added KeweonDns to it before, among others.
[Android Apps and Games] Mike B.:
At least you didn't grab one of those 50K+ monsters, but if you look closely, you'll see that most of the entries in your additional two files are already covered by the standard package. Keeping it simple is usually better! ;)