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".
這邊本文下面留言有指出下載的adhell3-master.zip檔案沒有SDK I found the root cause: the developer removed the Knox SDK and you need to add it manually.
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.
Add as Library的選項位置也有人貼圖了 https://i.imgur.com/S2X7NV9.png
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. 這邊 com.xxx.xxx 隨便打,不要有adhell字就好
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.