So I basically just did what this guide recommends, just instead of using SABS we will be using the Adhell3 files. Especially since the SABS blocking lists have been scrubbed, this seems like the better alternative.
Prior to installing:
you will have to enable USB-debugging in your device. Afterwards, plug your device into your PCs usb and keep it there during the step by step process.
Enroll as a developer. For that, see the first link I attached, specifically step 1. Beware, when on the page for requesting a knox enterprise dev key, you'll sometimes have to scroll really far down to find the button(s) you're looking for. As often with Samsung, the homepage isn't exactly a poster-child of usability. I suggest mailing yourself your key, so that you can access it easily via your phone.
download Android studio from here and install it + the requested files. This will take some time!
step by step:
go to the link provided by /u/mariogrc, leading you to github. Click the green "clone or download" button and download the adhell3-master zip to your harddisk and extract it to "adhell3-master".
open up android studio, click "File" and select "open" and then look for and select the extracted folder. Upon query, download the requested Android studio files. This might again take some time, heck Android studio might even seem to be unresponsive, just go drink a coffee, walk your dog or read a newspaper.
once finished, select and expand "gradle scripts" from the left tab in android studio and click on "build.gradle (module:app)".
click into the main window of android studio, hit ctrl+f and search for "applicationID" and change the id (which should just be "com.") to something like "com.dsfgds.abs", it can be random more or less, I just recommend leaving the "com." and not using only digits, as this might lead to an android-studio error, though the program will or should at least tell you so in that case. As far as I understand, it's important that the application id is unique, since this is one of the ways samsung is able to ban the app from the knox framework and if everyone would use the same applicationID, things won't work quite soon. Especially don't use "com.layoutxml.adhell" or anything like that...just avoid the words adhell, adhell2, adhell3 and just to be safe, sabs.
after changing the id there should be a query with "sync now". Click it. This might take some time.
Once the process is finished, click the play button in the upper right toolbar in android studio, chose your device and acknowledge it. The following process will take some time again, so be patient - once it's finished, the adhell app should already be open on your phone upon unlocking and asking for a) administrator privileges and b) for a knox key. Do a) first, then paste your knox dev key into the app, press submit and afterwards activate. After this is done, all you have to do is enable blocking from within the app and you're set.
and download the SDK. Extract and copy the contents of
/addon_mdm_5_9_samsung_electronics_24/libs/
inside "Adhell3/app/libs". Create "libs" if it doesnt exist.
Then open Android studio and look for the libs folder. If you can't find it, make sure you're in "Project View" rather than "Android View". Then, right click on all the contents of "libs" and click on "Add as Library". Then click OK.
That's it. The project should successfully build now.
In case the other guy's answer didn't work (it didn't for me), I think I might know what happened. I think they might have already made the app without that SDK, and they are adding that folder as a library to the already built apk? Because I just copied and pasted that lib folder from the extracted Knox SDK into the correct extracted Adhell folder, then opened the Adhell folder in Studio, there was no option to Add as Library but I just followed the rest of /u/dunkellic 's instructions after that folder was there, built the app, and it worked perfectly.
When you highlight the contents, like in the picture, and right click on them, you don't have add to library? I'm sorry it was so long ago and I'm a novice myself so I can't help much.
Not sure if you are still around or not, but I was trying to install adhell 3 for my device and followed your instructions for adding the libs, clicking "add to library" and I still get a build failed message. Not sure why or what I would need to do. If you do happen to be around, I'd be grateful for any possible tips.
I can't seem to see the libs folder in Android studio, here's what mine looks like, do I need to make it manually? I've extracted the files already. https://imgur.com/a/EPKtDgB
I'm under project view, but I still don't see the lib folder. It is there in windows explorer: https://i.imgur.com/UOUigUb.png. Do I need to create it manually in the project view?
Can you expand on this? It looks like I'm getting the same error, and my JDK Location is set to "Use embedded JDK (recommended)" and I don't think I've changed anything since doing this process for SABS a few months back.
I'm totally new to all this stuff and don't understand much about it, but managed to get through this process for AdHell2 and for SABS without errors like this.
I was able to add the libraries from your other comment and change the applicationID but the "sync now" option does not appear/can't find it. The play button up top is greyed out. I don't know what I am doing wrong...
Yes. I tried a few times to get to make sure and nothing. I found the link to the Gitlab version (looks like it was moved over there?), followed the steps mentioned just like before and this time it appeared. Thanks for your steps though! Helps someone who is new to most of this.
Followed these steps and though there were two warnings in Android Studio, the build was completed. I was able to install adhell3 on my phone and activate it. But when I try to turn it on, I get the following error:
Result: This administrator can't execute this operation because he is not the owner.
Any idea what this could mean and how I can fix the problem? Is this simply because SABS is still turned on on the phone as well?
Weirdly, the compiled apk is only 85 KB in size, much smaller than compiled versions I've seen floating around.
I'm having the same problem. I had it installed just fine then uninstalled it to confirm if the apk would work fine too. The apk, and pushing directly to the phone is having this problem now. I tried a different key, rebuild app with a different ID.
Thanks for the illustration, but I can't find that option. When opening Android studio, which option do I choose to import adhell? This is what I see: https://imgur.com/gx7KCcw
If you didn't already see this top post from April 5 that explains why they can't do it, it's at the top of the page. Emphasis added by me.
click into the main window of android studio, hit ctrl+f and search for "applicationID" and change the id (which should just be "com.") to something like "com.dsfgds.abs", it can be random more or less, I just recommend leaving the "com." and not using only digits, as this might lead to an android-studio error, though the program will or should at least tell you so in that case. As far as I understand, it's important that the application id is unique, since this is one of the ways samsung is able to ban the app from the knox framework and if everyone would use the same applicationID, things won't work quite soon. Especially don't use "com.layoutxml.adhell" or anything like that...just avoid the words adhell, adhell2, adhell3 and just to be safe, sabs.
So, you gotta do a bit of work on your own to make sure your ID is unique.
Adhell was developed by Samsung's developer. After he was forced to remove the code from internet by Samsung, FiendFyre was stepped up by providing the Adhell2. But after a while, it is also discontinued. Adhell3 is an extension of previous discontinued Adhell2 app with more additional features.
Is AdHell 2 blocked or something? I installed/set it up yesterday. Working fine so far.
Nope, it's just discontinued because the developer stopped working on it. SABS was shut down yesterday and scrubbed from the internet, leaving this as the only remaining Knox based adblock still being developed.
Adhell 2 and SABS will work as long as your Knox keys work, and then you can just update your Knox keys when they stop working. They just won't get bug fixes, additional features, or improved compatability with Oreo or other Android revisions.
I had the same problem when I tried it. I first tried the "gradlew" command line as the instructions on github show and got that same error. I was able to just build it using Android Studio with no problem. I opened it in Android Studio and built it through there and it worked with no errors.
Sorry for the late reply, I just get the notification. Thanks for your answer, can you describe what you did in android studio? This is the first time I play with. Thank you
Hello, no problem about the late reply. Please note that Adhell3 was moved from github to gitlab.com (probably in order to hide it from Samsung). You need to create a new account on gitlab to see the project. If you try to search for it without logging in then you won't be able to find it on there.
I have a build I made two days ago that I could send you if you wanted.
is there a simple way to update the android studio project from within android studio using the inbuilt terminal?
I'm running windows and I have added the gitlab project url to VCS> checkout from version control > git.... after googling android studio and gitlab. but I have never done any app development before and don't want to be doing something stupid like posting forks while assuming I'm updating or something lol.
I have adhell3 running sweet no problems there and I realise I can download/clone the new maste.zip unpack and load new updates using the applicationId I made up sync and push to my device just like to do things in the most efficient way possible
I have the same issue. My key has expired and installation (of both old SABS and Adhell3) faisl with the newly generated keys. I think a workaround should be possible - the tutorial is here https://seap.samsung.com/html-docs/android/Content/migration-intro.htm - but it is a bit too advanced for me to follow and implement. Maybe the developer could look into this.
I saw this, but I didn't want to put in the time either lol. I'm currently using a pirated version of Disconnect Pro off of Mobilism until there is a better solution or alternative.
It does not have the latest SABS functions. This is a fork of AdHell 2 that happens to include some of the same functions as SABS. Here are some missing functions I noticed so far:
Loading screen when enabling/disabling AdHell
Export recent activity
Import/export disabled package list
The addition of the extra 300+ Android permissions in the disabler (personally didn't find a use for all the extra ones)
Restore all disabled permissions
AMOLED/night theme
Samsung Theme Store blocker
Removal of duplicates between multiple host files
Hopefully the dev continues to remain active and adds some of these functions SABS has, and keeps updating his. I'll be switching to this for the mobile data disabler. I don't mind the other differences.
36
u/dunkellic Apr 02 '18 edited Apr 06 '18
*edit: see this post for necessary information as well
A quick guide to install Adhell 3.
So I basically just did what this guide recommends, just instead of using SABS we will be using the Adhell3 files. Especially since the SABS blocking lists have been scrubbed, this seems like the better alternative.
Prior to installing:
step by step:
16
u/azirking01 S8 Mar 28 '18
Could someone upload a standalone apk
15
u/Daerados Mar 27 '18
ffs, just give us adblocker without any fancy shmancy stuff which will attract samsung with their dmca
5
u/anatolya Mar 27 '18
Note that this is not based on SABS. Both SABS and this are based on Adhell2 and divergent after that.
1
u/Superyoshers9 Mar 28 '18
Adhell, sabs, when does it ever end??
2
u/eddyecb Mar 28 '18
Anyone willing to write a dumb proof guide on how to install? I havent a clue :/
2
u/link575 Apr 07 '18
Just a heads up, it's been moved from github to gitlab.
2
u/BBYGuyThrowaway Apr 29 '18
When I am trying to activate license it is telling me I have an invalid license. Any idea how to fix this?
1
u/[deleted] Mar 27 '18
Whats the inovation from Adhell 2 since im using it on Oreo
1
u/uwhy Mar 27 '18
Is AdHell 2 blocked or something? I installed/set it up yesterday. Working fine so far.
1
u/Bart3n Mar 28 '18
Disconnect doing it's job just fine
1
u/tripbin S8+ Mar 28 '18
Is this better than SABS if I have it downloaded?
1
u/MacroMorel Mar 30 '18
Hi, Once I hit enter with gradlew clean assembleDebug in the terminal, I get the error message
I'm not able to find any help on this, can someone give me some help ?
Thanks
1
u/MarsBless Apr 09 '18
got it working. thanks for the info bro
1
u/zekon88 Apr 12 '18 edited Apr 12 '18
is there a simple way to update the android studio project from within android studio using the inbuilt terminal?
I'm running windows and I have added the gitlab project url to VCS> checkout from version control > git.... after googling android studio and gitlab. but I have never done any app development before and don't want to be doing something stupid like posting forks while assuming I'm updating or something lol.
I have adhell3 running sweet no problems there and I realise I can download/clone the new maste.zip unpack and load new updates using the applicationId I made up sync and push to my device just like to do things in the most efficient way possible
1
u/Vahelius Apr 13 '18
When I change the applicationid line I don't get the query to sync now
1
u/[deleted] Jun 29 '18
Is there a work around now that Samsung is no longer supporting or allowing generation of Legacy keys?
0
u/[deleted] Mar 27 '18
[deleted] — view deleted comment
0
u/[deleted] Mar 27 '18
[deleted] — view deleted comment