yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mmotti:
The reason I ask is because if you are running, say Adhell2 in your device, you can use logcat and filter the results that may give some indication of what's going on.

I would suggest as a starting point:

Disable Adhell on your phone

Connect your phone to a pc / laptop

Open android studio and open the logcat tab at the bottom

Verity that your phone is updating Logcat.

In the logcat 'search' or filter bar, type ContentBlocker56

Enable Adhell

If you could provide me with the output of the logcat window, I may be able to see something. Alternatively I may need to make a separate version that adds one URL at a time and outputs this to logcat.

Have you tried browsing using Samsung Internet to see if more is blocked?

To note: I only mention Adhell specifically as I know the logcat output like the back of my hand. This may or may not have been reduced in SABS, I haven't had time to verify. Once we can get you running with Adhell, it should be straightforward with SABS too.
[Android Apps and Games] Yanchev:
Will try that when I can use a computer.
[Android Apps and Games] Mike B.:
[MENTION=6183103]NeedleGames[/MENTION]: Try to relax. This project is wonderful but after all it's only a few lines of code, never as important as real life. ;)
[Android Apps and Games] orbitalcomp:
It sure does, works great! Just like you mentioned, it takes care of the full screen ads and pop-up video ads, but leaves that tiny banner ad at the bottom.

I went ahead and unchecked the standard list and left yours as the default, and as a side note, SABS seemed to activate much quicker with your list. Is that because of the use of wildcards?

Thanks again to both you and NeedleGames for your great work on this project!
[Android Apps and Games] snk012:
Your dedication to this project and getting things to work like they did back with Adhell/Adhell 2 is more than enough and I am very grateful for that. Don't stress and keep up the great work!
[Android Apps and Games] mmotti:
Good news :) it was probably just coincidence.. Our lists are around the same size.
[Android Apps and Games] m4rkoo:
Is it the same filter built in SABS (standard package)?
[Android Apps and Games] mmotti:
I believe they are slightly different.
[Android Apps and Games] Aykutduran:
For note 8 please fix

Dont work

Activation fail
[Android Apps and Games] Mike B.:
Nothing to fix, it works fine. Try re-reading the instructions and follow the steps EXACTLY and whatever you feel "dont work" will magically start working! ;)

Note: if all else fails, scan the various posts in this thread that reveal some common user mistakes such as not getting the right key, not using the right apk, not selecting the right domains, or even not understanding what SABS is and does.
[Android Apps and Games] Rasmadul:
Many thanks for sabs. Clear instructions, I had no issues at all to install apk and keys.
[Android Apps and Games] MU24R:
Hi thanks for this great app just wanna know if this app affects battery life ?
[Android Apps and Games] NeedleGames:
Positively. By blocking domains you save both battery and data.
[Android Apps and Games] m4rkoo:
Does SABS detect if two different individual filter uses/blocks the same URL?
[Android Apps and Games] mmotti:
I don't believe it filters out duplicate items at this time but the firewall will simply overwrite existing rules.

Maybe we need to see if it's easy to remove duplicates from the denylist arraylist [MENTION=6183103]NeedleGames[/MENTION]

Hopefully I can contribute more when the Mrs isn't here
[Android Apps and Games] R.A.G.E:
Hi sir, thanks for the great app.

I have a problem with renaming the package name with apk editor pro on my phone. The rename option is greyed out and i cannot edit it. My phone is a unrooted s8 running android O
[Android Apps and Games] Mike B.:
I'm not sure that duplicates removal is worth the effort. After all, duplicates are effectively ignored when it comes to blocking, and the user can simply make sure that he/she uses a dependable list, such as yours or the SABS default.

---------- Post added at 07:19 PM ---------- Previous post was at 07:15 PM ----------

There's a good chance that you have APK Editor and not APK Editor Pro, especially if you downloaded it from one of the more "questionable" corners of the net. Look for a different/better editor/patcher version, but If at all possible, try to simply create your own SABS apk with Android Studio.
[Android Apps and Games] rijoy:
Can this block ads in apps like Hulu?
[Android Apps and Games] Mike B.:
It all depend on where and how your Hulu app gets its ads. If it simply calls a server by name using standard DNS, then all you need to do is identify that server and you can block it (it might already be blocked by the default SABS domains list). If the app uses the server's numeric IP or embeds the ads directly into its contents, then no. Try it for yourself, then you'll know for sure!
[Android Apps and Games] R.A.G.E:
It turn out the one i got from the playstore is just apk editor without "Pro". I will try it on my computer after work :)

Thanks for the help!
[Android Apps and Games] khaisttj92:
you can download the apk editor "pro" at official site.Find the link pro version then click that link.

http://www.apkeditorfree.com
[Android Apps and Games] gschroer:
Can SABS block the sponsored ad links that are returned/displayed when searching in chrome? These are the ads with "i" next to them that link to "why this ad". Clicking on the ad returns "the site can't be reached". I understand this is because it is blocked by SABS, but these sponsored ads often take up the first screen and I would prefer not to see them. I'm using the latest version of SABS 0.6 with the standard hosts package and "blocked port 53 on chrome" selected.
[Android Apps and Games] eldervamp17:
Its been 4 days now since SABS was installed on my phone and its still working. Only thing I noticed, on the 3rd day, SABS had disabled itself on it own. No reboot on the phone. I then re-enable SABS and its working.

Here are my sources for my host file:

Steven Black's ad-hoc list

add.Dead

add.Spam

add.2o7Net

add.Risk

Dan Pollock

MVPS hosts file

yoyo

tyzbit

UncheckyAds

CHEF-KOCH/Spotify-Ad-free

AdAway

Disconnect Advertising Filter List

Disconnect Malvertising Filter List

Disconnect Malware Filter List

Disconnect Tracking Filter List​

Using mmotti script, It created a list within a total of 19k entries from all the sources lists above :)
[Android Apps and Games] Oops...:
Haha. This is when real life is contradiction to XDA ... :laugh:
[Android Apps and Games] M4rf0:
Where is the mmotti script? Is it something like copy/paste adblocking list on web or what?
[Android Apps and Games] eldervamp17:
https://xdaforums.com/showpost.php?p=75449008&postcount=1954
[Android Apps and Games] mmotti:
I'll post the most recent version when I'm able to get onto my laptop later
[Android Apps and Games] phuctran.Engr:
I installed the app but when I skip app introduction the app has stop working

something goes wrong?
[Android Apps and Games] mmotti:
Host file generation script (PowerShell)

For those interested in my script to generate host files - Please see below.

Best ran in PowerShell ISE.

Clear-Host

# User defined variables

$host_files = 'http://someonewhocares.org/hosts/hosts',`
'http://getadhell.com/standard-package.txt'
$mm_host_file = 'https://goo.gl/ykrt6S'
$regex_file = 'https://goo.gl/H7mqHt'

$out_file = "$env:USERPROFILE\desktop\hosts.txt"

# Emtpy hosts array

$hosts = @()

# For each host file

foreach($host_list in $host_files)
{
Write-Output "--> Fetching $host_list"

# Add hosts to the array

$hosts += (Invoke-WebRequest -Uri $host_list).Content -split '\n'
}

# Fetch my host file separately

Write-Output "--> Fetching $mm_host_file"

$mmhosts = (Invoke-WebRequest -Uri $mm_host_file).Content -split '\n'

Write-Output '--> Parsing host files'

# Remove local end-zone

$hosts = $hosts -replace '127.0.0.1'`
-replace '0.0.0.0'
# Remove whitespace

$hosts = $hosts -replace '\s'

# Remove user comments

$hosts = $hosts -replace '(#.*)|((\s)+#.*)'

# Remove www prefix

$hosts = $hosts -replace '^(www)([0-9]{0,3})?(\.)'

# Only select 'valid' URLs

$hosts = $hosts | Select-String '(?sim)(?=^.{4,253}$)(^((?!-)[a-z0-9-]{1,63}(?<!-)\.)+[a-z]{2,63}$)' -AllMatches

# Remove empty lines
`
$hosts = $hosts | Select-String '(^\s*$)' -NotMatch

# Extra removals
# Get regex filters

$regex_str = (Invoke-WebRequest -Uri $regex_file).Content -split '\n'

# Loop through each regex and select non-matching items

foreach($regex in $regex_str)
{
$hosts = $hosts | Select-String $regex -NotMatch
}

# Add custom hosts to the main hosts

$hosts = $hosts + $mmhosts

# Count total hosts

$host_count = $hosts.Count

Write-Output "--> Hosts Detected: $host_count"

Write-Output "--> Removing duplicate hosts (this may take a minute)"

<#############################################
Fastest way to remove matchinfo
#############################################>

$hosts = $hosts -replace ''

##############################################

# Remove duplicates

$hosts = $hosts | Sort-Object -Unique

# Count unique hosts

$u_host_cout = $hosts.Count

Write-Output "--> Hosts added: $u_host_cout"

# Output host file

Write-Output '--> Saving host file'

$hosts = $hosts -join "`n"

[System.IO.File]::WriteAllText($out_file,$hosts)

Write-Output "--> Host file saved to: $out_file"
[Android Apps and Games] c3po_droid:
Guys I love your reincarnation of the old adhell. I'm so glad about this great development!

May I suggest UI-wise to move the settings Button from upper right corner to the lower right corner? I don't see how these top menus/controls can be useful on modern big screen phones. It would be so much easier to set up in single hand usage :)
[Android Apps and Games] NeedleGames:
It goes against the material design guidelines
[Android Apps and Games] FootballFans:
Very good idea I like that :good:
[Android Apps and Games] friscoboi:
Yes. Now it does Block ads in Chrome. But Not any more when there will be an Update soon.

Didnt want to enable Port 53, as it sais other Things Like Playstore might Not Work.
[Android Apps and Games] DJ_Jedi:
Probably yes, but thanks for the help.
[Android Apps and Games] Mike B.:
The real problem is not the removed limit, but rather that you are attempting to load WAY too many domain entries. Those monster lists make no sense when used as hosts file (with AdAway, for example), and even less sense as Knox firewall rules. If the default packages (around 9K) still let a handful of ads through for you, you merely need to add those few servers to your blacklist. Adding some 50-100K entries, most of which are probably obsolete, malformed, redundant , specific to other platforms, or not even reachable from your location, is at best a waste of time and RAM. Regardless of which "ad blocking" tool you use, what matters is not how big your list is, it's how well it works for you! ;)
[Android Apps and Games] c3po_droid:
Stupid guidelines :/... That's unfortunate, but if it's according to guidelines currently, then it shall stay -_-

Thanks for the reply :)
[Android Apps and Games] rijoy.manghat:
I tried this application today and its working like a charm.

My question to every one is about the host file. are you guys using the host file that came by default ? if yes, would it be autoupdated ?

If No, what are the other hosts files that needs to be added.

And the chrome seems to black add even if port 50 is not enabled, is this correct ?

Thanks again for the awesome app!!!
[Android Apps and Games] kreegaa:
If you took one minute extra to read before clicking, you'd have seen that uploading/calculating hash etc are "Optional" steps
[Android Apps and Games] mmotti:
Yes and I'm using my own too (see a few pages back). In the new version of the app, it'll be easier to use multiple host files as the main denylist will not add duplicate items to the processing list :)

They will not auto update at the moment. You need to update manually, enable and disable ad blocking.

It does - But port 53 was blocked to circumvent a solution they had in place at one point. They've removed it (probably temporarily) so best to keep it enabled. This will be handled better in a new release.
[Android Apps and Games] Mike B.:
Unless you're absolutely positive that you need more, simply use the default package. It does not autoupdate but you can update it manually whenever a new version is announced in this thread. However, there is not much of a need to update frequently as the common ad servers seldom change. Resist the temptation to grab every list that someone posts on the net, especially the huge ones that claim to block everything for everyone. If you see a few ads filtering in, chances are either they can be blocked with a simple blacklist entry or they are not the kind that can be blocked. Different Chrome versions and configurations behave differently and port 53 blocking is probably best kept disabled. AFAIK it's only used for prefetching, an option that can be easily disabled in most Chrome versions if desired. Read this thread where those issues have been discussed, but above all, keep it simple! ;)
[Android Apps and Games] rijoy:
Thanks!!!

---------- Post added at 05:21 PM ---------- Previous post was at 05:20 PM ----------

Will check that!!!!
[Android Apps and Games] NeedleGames:
Released a new version of SABS! https://github.com/LayoutXML/SABS/releases

Also, as of now exactly 3000 people have downloaded SABS (and only 20 of them used a computer to rename package id).

Changes:
[Android Apps and Games] StewMaker:
That seems like so few people who went the Android Studio route! :p
[Android Apps and Games] NeedleGames:
And then they complain that app sometimes crashes...
[Android Apps and Games] NeedleGames:
Awww. Our chinese friends called me a lord (主了)

https://www.mobile01.com/topicdetail...=568&t=5394321
[Android Apps and Games] Mike B.:
We still don't now how many actually compiled the source after downloading it. Folks, please try the Android Studio route. If you follow the instructions faithfully, it's extremely easy. You don't need to be a programmer or understand what it does, just let it do it and you'll get the very latest SABS painlessly delivered to your device any time you want.

---------- Post added at 12:56 PM ---------- Previous post was at 12:52 PM ----------

Not even 上帝? The ingrates! ;)
[Android Apps and Games] :
I had to uninstall previous version to install new one.. When i try to install it without uninstall the previous, it told me that there is another app with the same name and can't install.. Something like this.. Why?

After uninstalling, new one works fine.

Thanks,
[Android Apps and Games] snk012:
I seem to be getting the following message when trying to update through Android Studio. I have double checked to make sure the package ID matches with the version I have installed (also installed from Android Studio). Would I click ok and proceed with uninstall and reinstall? Also if uninstalled does it enable the disabled packages again? I think I've had issues when I uninstalled a different package disabler it enabled all does disabled apps again..

https://imgur.com/a/Nm2as
[Android Apps and Games] NeedleGames:
Both of your signatures for the update do not match the first one. I'm not sure why because this shouldn't be happening neither on Android Studio, nor on APK Editor Pro.

When you press uninstall in SABS settings, all changes are reverted - disabled apps are enabled, removed permissions are given back, whitelisted apps are no longer whitelisted, domains, blacklisted domains are deleted and blocking disabled. If you uninstall from the app drawer though, everything should stay unchanged. If you are worried only about disabled packages, export them first and then easily import.

APK Editor Pro has some default signature that shouldn't change on every apk modification. Android Studio doesn't sign apks at all. Unless you change the process in which you install the update, there shouldn't be any problems like in your cases.
[Android Apps and Games] Ramzh:
After installing the new version 0.0.7, with new package name, when I try to enable it, it gets stucked at "Enabling..." and when I move anywhere else in the app/phone (SABS Settings, Home Screen etc...) SABS says it is turned off.

Edit: Solved
[Android Apps and Games] NeedleGames:
Don't move anywhere else. Wait until it gets enabled. Better yet, press enable only when you close and open SABS again (not after moving through screens). Depending on your blocked domain number, this process should take about a minute. There is a bug with updating the screen after going to different parts of the app that I didn't manage to fix yet.
[Android Apps and Games] orbitalcomp:
Just updated mine effortlessly using the download and rename route...thanks, [MENTION=6183103]NeedleGames[/MENTION]! It didn't even prompt me for the Knox key, and was still enabled after updating, but I went ahead and updated the host lists and then turned it off/on just to be safe.

So looks like the 'Block Port 53' setting for Chrome is on by default now? I don't remember that being on in the 0.0.6 version. I guess it's safe to leave on even if I only use Samsung Internet, correct? I do have Chrome installed, so maybe I'll use it sometime.
[Android Apps and Games] mmotti:
It'll do no harm to have it enabled :)

To be sure to have all the fixes from the most recent update, all of you need to disable and enable ad blocking after updating.
[Android Apps and Games] snk012:
I think I used my laptop to install through Android Studio for 0.0.6 and I am on a different computer now. Wondering if that is the reason why the signatures did not match? I went through the uninstall and reinstall route and unfortunately all settings were wiped but I was able to export the disabled packages list (didn't know about this option until today). I appreciate your help~
[Android Apps and Games] StewMaker:
I actually had the exact same "problem".

I think I usually build the apk on my desktop and did it on my laptop today, and got the signature mismatch error. I assumed it was because I used a different computer BUT I do remember building the apk on my laptop before too, without problems. :confused:

I ended up just uninstalling and reinstalling.
[Android Apps and Games] snk012:
I guess we will know for sure on the next release :)

Cheers
[Android Apps and Games] Mike B.:
I can't test this right now but if the user had a signed apk (by APK Editor Pro?) then uses Android Studio to try to install an unsigned version from source, wouldn’t that rightfully trigger the error?
[Android Apps and Games] NeedleGames:
Yes, it is set to on by default, and blocking everywhere off by default. Usually user would not need to change this setting regardless whether they use Chrome or not.

Yes, using a different computer would make signature mismatch happen.

Building apk (not pressing triangle or SHIRT+F10) is a whole different process. On a different note, maybe you successfully build an apk on your laptop not as an update but as the base version? If so, then were was no previous version of SABS for signatures to not match. Or maybe you remember something incorrectly.

Yes, it would.
[Android Apps and Games] Bec de Xorbin:
Disabling and enabling is a bit shaky procedure. It takes forever to disable and many times you have to exit app or go to Disabler and back and select "turn off" again. Same thing with "turn on".
[Android Apps and Games] mmotti:
Unfortunately it's the only way to alter the firewall :(

Agreed it's very frustrating with the UI bug.
[Android Apps and Games] Bec de Xorbin:
Yup, and there were discussion about this on previous page already. I really should read before writing :eek:
[Android Apps and Games] Yanchev:
[MENTION=7539469]mmoti[/MENTION] do you know when will the new denylist be implemented? Is it time consuming task? And are you gonna do it or [MENTION=6183103]NeedleGames[/MENTION]?
[Android Apps and Games] mmotti:
If you have downloaded today's update, you can add both of our lists and only unique domains will be added.

So, rather than the full 18,000 for both lists, all that will actually be added to the firewall now is ~9600.

This won't be visible in the interface, but behind the scenes duplicates are taken care of :svetius:
[Android Apps and Games] StewMaker:
Sorry, I used the wrong terminology in this case. I did not build an apk from the build menu. I ran the 'app' by pressing the play button and installed it directly to my phone. I wrongly assumed it built an apk during this process. :o

I'll stick to the same computer for future releases. Thanks :).
[Android Apps and Games] thejackalsmark:
Indeed. Wise words. Many of us have learned this the hard way.

---------- Post added at 12:37 AM ---------- Previous post was at 12:34 AM ----------

???????

---------- Post added at 12:52 AM ---------- Previous post was at 12:37 AM ----------

I absolutely positively did NOT recommend Blackmart... ;)

???????

---------- Post added at 01:05 AM ---------- Previous post was at 12:52 AM ----------

That's what happens when I try to be funny and don't read far enough. LMAO

Good for you on not supporting piracy! ?

(And next time I put my foot in my mouth I'll remember to add a little hot sauce for flavor.?)
[Android Apps and Games] hackwoof:
Works absolutely fantastic on the note 8!! This is great thank you!!!
[Android Apps and Games] Wingpin:
I keep getting License activation failed on Galaxy S6 edge. I have the enterprise key (starts with 437, and is 128-characters long) and reinstalled SABS 0.0.7 multiple times with APK Editor Pro and with different package names each time. I don't actually see an option called "Direct Rename" under Common Edit after editing the package name (I kept the 3.9.4 format with randomized letters/numbers), but I did check "Rename the package name in resources.arsc" and didn't touch anything else.

Could it be related to my alias for the sdk being called "adhell"? Don't know if revoking my current key allows me to generate a new key/alias. Or maybe it's because I uninstalled the original Google Play Adhell a week ago and it's interfering with something? The app-disabler and ad-blocking capabilities still worked after it was discontinued. Didn't think I'd need it anymore, but noticed my SOT went from 4 to 2.5 hours with it uninstalled (I manually froze what I could with the original App Manager).
[Android Apps and Games] u7Xz:
Had a problem should have used searching thread first (the same problem with Android Studio app had installed along the old version had to delete the old one) and why I cant delete my post lol. Anyway, thank you and contributors great work.
[Android Apps and Games] Xingle:
Thanks a lot for the update. The wildcard entries work amazingly.

However, I couldn't find any app on the Read Clipboard tab even though I'm using Look Up Pro (https://play.google.com/store/apps/details?id=gaurav.lookup) which can read my Clipboard. Please have a look at it.

A few more feature I'd like to suggest are....

1. Import and export of our custon Blacklist and Whitelist.

2. Backup and restore for the whole app.

3. If possible, importing of Adguard filters.

4. (From my last post) A search function for the Permission tab.
[Android Apps and Games] NeedleGames:
Apps only need permission to read what is in clipboard without user pressing paste. To put something in clipboard, app doesn't need any permission and there is nothing to remove.

3. It's impossible because it blocks not only domains but other stuff that knox doesn't block.
[Android Apps and Games] NeedleGames:
Try getting new key. Revoking the old will let you get the new one. Adhell might be interfering because you clearly uninstalled in incorrectly - without first disabling blocking or not in Adhell settings so it couldn't revert changes done to the system. App uninstalled shouldn't have any negative impact on the battery, there must be something else.