SABS is a system-wide, rootless AdBlocker, package disabler, permission manager and more. It works by using Samsung's KNOX SDK, therefore only works on Samsung devices. Because of a sheer amount of Samsung phones, all with different Android and KNOX versions, screen sizes and other specifications, SABS only focuses on Galaxy S8, S8+ and Note 8 devices with latest Android version, though should work on all Samsung devices with Android version 5.0 or higher. What makes SABS stand out from other adblockers is that it can make reversable system level changes because of the Samsung's KNOX tools, and doesn't run in the background. With it, you can easily block url domains, disable system apps that you can't in settings, remove permissions from apps that you can't usually control.
Setup for the SABS takes some time and technical skills. You are expected to be able to follow the steps and have some knowledge about how some things work.
There are two things you have to do to get a working version of SABS - get a Samsung license key, and change the package name for your copy of SABS. Steps below will help you but be careful - one step done incorrectly will make the app not work!
Every user of SABS needs to receive a license key directly from Samsung.
- Sign in here with your Samsung account.
- Go here.
- Go to "Legacy SDKs" (Steps 3-7 are demonstrated in the picture here).
- Go to "Knox Standard SDK".
- Select "Enterprise license key".
- Write any word in alias.
- Press "Generate license key".
- Copy the key. If the key starts with letters "KLM", you didn't follow the steps correctly. Complete the steps 3-7 again.
You can choose to change a package name of the app with or without a computer. Before following the steps below, uninstall any KNOX adblocker you already have installed on your phone such as Adhell, Adhell 2 or Disconnect Pro.
- Download and extract the latest source code of the SABS app here.
- Download, install and open Android Studio from here.
- Select "Open an existing Android Studio project" and choose the extracted folder
- You will be asked to install SDK and other files. Follow the instructions on the screen.
- When everything is finished and the project is fully loaded (progress bar is gone at the bottom), open the "Gradle Scripts" and then "Build.Gradle (Module:app)" from the left side of your screen.
- Find the line "applicationId "com.layoutxml.sabs". Usually it's the 24th one.
- Change the "com.layoutxml.sabs" to a random or unique sequence of letters and digits. It is highly recommended to choose the same length (3.9.4 symbols).
- An alert will appear at the top of the screen. Select "Sync Now".
- Wait for the project to load once again.
- Enable USB Debugging on your phone - Go to Settings > About phone > Software information > Press rapidly about 10 times on Build Number until a message "You are now a developer!" appears. > Go back to Settings > Developer Options > Turn on USB Debugging.
- Connect your phone to the computer. On your phone a popup will appear. Select to allow a computer to use USB Debugging.
- In Android Studio press a Play button or Shift+F10.
- Select your phone and press OK.
- SABS app will appear on your phone. Open it and follow instructions on the screen. When it asks for a license key - paste the one you have received in Step 1.
The are multiple ways to change the package name of the app. Following guide focuses on editing the package name with "APK Editor Pro" app. You can also use different apps such as App Cloner or Lucky Patcher (keep in mind that using other features of Lucky Patcher might be illegal!) but select to only edit Manifest file.
- Download the latest version (apk file) here.
- Open "APK Editor Pro" app.
- Select apk file (previously downloaded).
- Select "Common edit".
- Edit only the field "Package name"! as shown here.
- Change the "com.layoutxml.sabs" to a random or unique sequence of letters and digits. It is highly recommended to choose the same length (3.9.4 symbols).
- Select "Direct rename", "Rename the package name in resources.arsc". Do not select the other options.
- Press Save.
- Press Install and Install again.
- SABS app will appear on your phone. Open it and follow instructions on the screen. When it asks for a license key - paste the one you have received in Step 1.
You will receive the notification when a new version of SABS is released when you open the app. SABS will not check for updates in the background so make sure to regularly open the app.
You may already have a Samsung license key. Open the old version which is already installed on your phone, go to SABS Settings > About > Copy KNOX key. If your key expired, you can generate a new one after revoking the old one. The process should be similar to the one you have completed previously.
To update the app, you don't need to uninstall the old version. Simply rename the new package name to the same you used before.
Assuming you haven't uninstall Android Studio, follow the steps below.
- Download and extract the latest source code of the SABS app here.
- Open Android Studio and select "Open an existing Android Studio project" and choose the extracted folder.
- You may be asked to install SDK and other files. Follow the instructions on the screen.
- When everything is finished and the project is fully loaded (progress bar is gone at the bottom), open the "Gradle Scripts" and then "Build.Gradle (Module:app)" from the left side of your screen.
- Find the line "applicationId "com.layoutxml.sabs". Usually it's the 24th one.
- Change the "com.layoutxml.sabs" to the sequence of letters and digits you used before. You can see what was your previously used package name in SABS Settings > About > Copy Package Name.
- An alert will appear at the top of the screen. Select "Sync Now".
- Wait for the project to load once again.
- Connect your phone to the computer.
- In Android Studio press a Play button or Shift+F10.
- Select your phone and press OK.
- SABS app will appear on your phone. Open it and follow instructions on the screen. If it asks for a license key - paste the one you have received in Step 1.
- Download the latest version (apk file) here.
- Open "APK Editor Pro" app.
- Select apk file (previously downloaded).
- Select "Common edit".
- Edit only the field "Package name"! as shown here.
- Change the "com.layoutxml.sabs" to the sequence of letters and digits you used before. You can see what was your previously used package name in SABS Settings > About > Copy Package Name.
- Select "Direct rename", "Rename the package name in resources.arsc". Do not select the other options.
- Press Save.
- Press Install and Install again.
- SABS app will appear on your phone. Open it and follow instructions on the screen. If it asks for a license key - paste the one you have received in Step 1.
- Sometimes license cannot be activated. Make sure you have the key that does not start with letters "KLM". If after multiple tries and app restarts you still receive a license activation error, reinstall the app with a different package name.
- Sometimes adblocker stops working but other parts of the app continue to work if more than one adblocker is in use. If it happens to you, turn off blocking in all apps that use KNOX SDK such as Adhell, Adhell 2 or Disconnect pro, and SABS. Turn on blocking in SABS again. Wait a couple of minutes before concluding that adblocking doesn't work again (it takes some time to block all domains).
- Ads are not blocked in Youtube. Youtube serves its ads from the same domain as videos so there's no way of blocking them.
- Ads may not be blocked in Chrome. If that is the case for you, go to SABS Settings > Miscellaneous > Turn on "Block Port 53". Chrome recently had some changes in how it works but luckily you can fix it.
- Some apps that need internet or websites might work incorrectly if their domain is blocked. Whitelist them in settings. It is recommended to whitelist some Google apps such as Allo, Duo, Music.
Yes, getting a free license key from Samsung is legal and using it in SABS does not violate any terms and conditions assuming you call yourself a developer.
Blocking ads itself is also not illegal but it's a moral grey area. Ask yourself - do you want to support app developers and website creators? If yes, then don't use an adblocker or whitelist those apps or websites in settings. Remember that by not blocking ads you are letting companies track websites you use and spy on you.
For me to get a production license key means creating a company, becoming a Samsung's partner or buying an expensive license key from Samsung's partners. I can't afford that and developing SABS is just my hobby.
SABS only works for some Samsung devices. If you use a Galaxy S8, S8+ or Note 8, you don't need to worry. If you are using a different Samsung device, try and see it yourself.
SABS blocks ads in many apps including browsers. If you still see some ads, you can send a message to the developer on Reddit with a list of apps where ads are not blocked.
It's on the Github page. File is named standard-package.txt. You can add your own sources like Adaway in app settings. Source file must only have url domains, 127.0.0.1s and comments in lines starting with #. Standard package is updated independently to app version.
It is not recommended as both SABS and Disconnect Pro use Samsung's Firewall. SABS has all the features of Disconnect Pro and more.
No, not at all. SABS might even improve your battery as apps cannot constantly communicate with ad and tracker domains. SABS doesn't run in background because it doesn't need to.
No. SABS might not even work if you are rooted.
I'm eagerly waiting for your feedback on Reddit, on the Issue tracker and on XDA-developers. Message me with your suggestions, bug reports and list of apps where ads are not blocked. Please limit the feedback on issue tracker to issues only.
I welcome any help. Translations are not my priority at the moment and could wait at least for beta releases. As a student (at school) with no background in Android development I'm struggling with a few things such as
- Permission search (list search)
- TXT file chooser and saver (for import/export of disabled packages)
- Sorting of apps, permissions
- Background ad domains updater, app updater.
These wonderful people have contributed to the open source project SABS or its predecessor Adhell either directly or indirectly:
- LayoutXML (me!)
- raiym
- ca0ss
- MilanParikh
- tarquinn18
- deVorteX
- david082321
- RJankunas
- neFAST
- SanderGit
- plantoschka
- SecretlyTaco
- Mike B.
- mmotti
- fusionjack
- COUNTLESS more who reported the issues, asked for features and sent the code snippets on Github, Reddit and XDA-developers.
SABS is licensed under the "MIT License". https://github.com/LayoutXML/SABS/blob/master/LICENSE.