yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S10 Themes, Apps, and Mods] RRiVEN:
If I had to guess, Knox doesn't do a very good job validating the apk signature. So when the EMM app in Secure Folder is granted Knox access then removed, the system only sees one EMM (adhell) app so it assumes that is the one that was granted access to the Knox api and it lets it use the Knox API

Knox can see inside and outside of secure folder as it is baked in the Kernel and all over the device. Secure folder is just another user with its home directly encrypted and the permissions set so the main user can't see it. Nothing special about Secure Folder.
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

It seems that Adhell as been updated to version 3.2.455 last week.

Can be installed on top of version 3.2.366.

Uses the the knox license of the app 'NotifyRDS Add-on: S*msung'
[Samsung Galaxy S10 Themes, Apps, and Mods] Mrxyzl:
holup, who update adhell? i thought Fusion abandoned it?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

There is an update in GitLab 'Fusionjack' at 15 July. Am i seeing the wrong one?

Sorry, i stated the wrong date in the previous post, i only got hold of the apk, after was uploaded by 'CitizenV' at 30 of July.
[Samsung Galaxy S10 Themes, Apps, and Mods] *elmo*:
So download new version or not from your post?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
As you wish. It's official, i just modded to work with the license system like the previous versions.
[Samsung Galaxy S10 Themes, Apps, and Mods] sosimple:
Does adhell works again? If yes, can someone post the steps needed?

Thanks,
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

I have created two versions, see post #651 and #686

Instructions for instalation see post #659.

Hope it helps
[Samsung Galaxy S10 Themes, Apps, and Mods] fracarol:
Is there a guide for making adhell work other than the one linked in post #659? Those found on that page are definitely sketchy, I'm sorry
[Samsung Galaxy S10 Themes, Apps, and Mods] aouni_tahech:
I got the app to work based on the confusing instructions. However the domain/firewall blocking doesn't appear to be working even when I activate them in the app.

Edit: Nevermind. There was a typo in the firewall rule for Chrome.

I'm surprised that this actually works after it's been dead for quite a while!

I'm also surprised that this thread doesn't have a lot of attention. Any reason why? Are people using something else?
[Samsung Galaxy S10 Themes, Apps, and Mods] Nastrahl:
Probably because there's now private DNS so it's way simpler

Adhell may be more battery intensive too

Also, AdGuard does better as it can also do cosmetic blocking

Blocking apps components is quite hassle that maybe a few people don't want to do.
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

I do not agree with you in the battery part, because i tested myself and adhell just configures knox with the rules, and as soon as you close it, it does not even work in the background.

Tested it with Gsam and in 8 hours it used 0,0% of battery.

In my case i use adhell, because:

1. Has a firewall that does not use VPN to block access to the internet (and uses less battery that way)

2. Remove dangerous permissions of apps

3. Block ads

4. Disable bloatware and battery draining apps (130 apps in my case)

5. Freeze google and facebook and other trackers in apps

6. Change DNS in the apps i want

7. Turn off camera and mic access.

And all that in one free app that uses 0% of battery while in background ;)
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

See post #662, to see if it helps
[Samsung Galaxy S10 Themes, Apps, and Mods] Nastrahl:
Hello,

Sorry i wasn't enough specific.

It's actually not AdHell that eats up battery as you demonstrated, but blocked apps. I'll try to explain :

I think apps work with triggers and if you're not connected apps stop making unnecessary DNS and others connection requests to avoid consuming battery as the "connected state" trigger of the phone is off.

When connected but blocked with a firewall, apps got the "connected state" that's now on, and i tend to think tissus it's more battery intensive as they make more requests since they get no response from the server they try to reach.

I hope somebody can prove me wrong.
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

Does anyone here knows an app that uses knox to function as a task killer for system apps? (if that is even possible)

I know that samsung already has a task killer, but it is somehow limited only to user apps.

I used to use Greenify, but is annoying in the way it kills the apps without root, and some apps re-activate after some time.

Thank you.
[Samsung Galaxy S10 Themes, Apps, and Mods] Doilauwe:
Can't use adhell, grey screen, i do step by step and it not work
[Samsung Galaxy S10 Themes, Apps, and Mods] elkinm:
I got mine to work. With NotifyRDS after I had a grey screen with EMM with leaving take media out checked.

Here are my complete steps that I did which finally worked.

1. Install NotifyRDS app.

2. Launch Notify and enable admin as requested and get Knox key (all three green).

3. from resents clear it

4. enable secure folder from settings, you need some security, I did pattern.

5. add NotifyRDS to secure folder and launch from and fully enable and get Knox key as before.

6. clear it from resents again

7. Remove admin app and uninstall NotifyRDS from normal system

8. open secure folder and try to remove NotifyRDS (fails, blocked by security policy even with admin removed)

9. in secure folder hit three dots, settings/more/uninstall, UNCHECK the default "take media out of secure folder". (I think this was the key for me.)

10. Install adhell from #686 above.

11. without opening it, enable it in device admin apps

12. Loaded without issue.

My favorite use of Adhell is the ability to disable services and receivers without disabling an app. So Google Play Services and Samsung apps can be limited without the issues disabling might cause. Such as not start at boot.

Does anybody have safe services , receivers, activities list that you can share with the rest of us?
[Samsung Galaxy S10 Themes, Apps, and Mods] Pipsname:
Followed these steps as layed out and it worked.
[Samsung Galaxy S10 Themes, Apps, and Mods] Pipsname:
Followed these steps as layed out and it worked.

Does not survive a reboot it seems.

Wouldn't host file blocking need a reboot?

Seems it does. There is a popup saying it doesn't upon reboot.
[Samsung Galaxy S10 Themes, Apps, and Mods] tromnhinem:
Followed these step, but i dont understand step 3 and step 6. And after installed Adhell3, i open app and it requires License key.
[Samsung Galaxy S10 Themes, Apps, and Mods] Ser0mancerXXIV:
1. Install NotifyRDS app.

2. Launch Notify and enable admin as requested and get Knox key (all three green).

3. Clear NotifyRDS app from recent apps list.

4. Enable secure folder from settings, you need some security, I did pattern.

5. add NotifyRDS to secure folder and launch from and fully enable and get Knox key as before.

6. Clear NotifyRDS app from recent apps list again.

7. Remove admin app and uninstall NotifyRDS from normal system

8. In secure folder hit three dots, settings/more/uninstall, UNCHECK the default "take media out of secure folder".

9. Install adhell from #686 above.

10. without opening it, enable it in device admin apps.

Should activate and work afterwards.

Fixed a little bit of the wording. Hope that clarified steps 3 & 6.
[Samsung Galaxy S10 Themes, Apps, and Mods] tromnhinem:
Thank you very much, it works for me.
[Samsung Galaxy S10 Themes, Apps, and Mods] tromnhinem:
Do you use Android 11? Can you share list disable app or service in Adhell3 ?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

My phone is a Galaxy Note 10 with Android 11.

I have a list with almost 130 apps disabled so i have the mininum apps running in the background. Some apps like DEX and Microsoft myphone are disabled because i only use them from time to time, and when i need, i unfreeze them.

I also froze all virtual assistants like google's and bixby, because i don't like my phone to be listening me all the time.

Apps like facebook and youtube too, because i use them in the browser.

I am going to attach the backup for you to see and also a screenshot of all apps frozen in case you want to do it manually.

Please backup your phone (just in case) if you intend to restore my Adhell backup file in your phone :confused:
[Samsung Galaxy S10 Themes, Apps, and Mods] mdiaz33685:
Finally got it to work. Thanks
[Samsung Galaxy S10 Themes, Apps, and Mods] mdiaz33685:
Thanks for ur help and the file.

Been trying since I seen ur post 2 months ago. Thanks for the file
[Samsung Galaxy S10 Themes, Apps, and Mods] mata77:
it works for me..but how did you go about making it work with chrome? I added the rule in the firewall (com.android.chrome | * | 53) ... but it has no effect
[Samsung Galaxy S10 Themes, Apps, and Mods] Bracewar:
Does anyone with an ACTIVE KPE code know why adhell won't accept my KPE license?

I have a knox account. My last license expired earlier this month. I generated a new license and adhell is having trouble validating the license even though I know it's good.

My old license started with KLM06 but the new one starts with KLM09. Not sure if this is important.
[Samsung Galaxy S10 Themes, Apps, and Mods] Ser0mancerXXIV:
If memory serves me correctly that was an issue with the app once before. Around the time KLM keys were 02. I'd get on their discord and ask there if you really desire an answer. Assuming you are using app built from source and not any version posted here, I can't think of anything that would cause that issue within the current version's code though.

VPN and Private DNS tend to cause activation issues. Last key update I had to fully remove app, reboot phone into recovery mode, wipe cache, and then reinstall. Just as a precaution I've always changed name of app entirely and signed with personal key.
[Samsung Galaxy S10 Themes, Apps, and Mods] tromnhinem:
How to make adhell work with Microsoft edge
[Samsung Galaxy S10 Themes, Apps, and Mods] RRiVEN:
have you blocked the DNS for Edge? Port 53
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
*deleted*
[Samsung Galaxy S10 Themes, Apps, and Mods] RRiVEN:
What device are you using and what Knox version? I experienced instability around 50000 domains.
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

I am using an Note10 SM-N970F, and the Knox version is 3.8
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day RRiVEN

It seems that today i experienced some instability with that modded version of Adhell, for some reason. So i removed all my posts from before.
[Samsung Galaxy S10 Themes, Apps, and Mods] h_maharaj:
The included hosts works perfectly well for me. Fusionjack updates the host file every few months (last update was on 4 Jan 2022). 14079 domains with the last update so no danger of experiencing any instability.
[Samsung Galaxy S10 Themes, Apps, and Mods] RRiVEN:
14 thousand hosts is a lot smaller than 100 thousand he was running with. It is also smaller than the 50 thousand mark when I started to experience instability.

14 thousand hosts don't cover all the ad domains.
[Samsung Galaxy S10 Themes, Apps, and Mods] Nastrahl:
There's no point to block 'all the ad domains' when you'll surely never connect to 90% of them.

Also, AdHell doesn't work like the HOSTS file where you have to put down all the domain occurrences. It can block a larger range with optimized lists, like *ads*, which you can't with only the HOSTS file.

That way, 14 thousand doesn't means 'only' 14 thousand domains, but way more.
[Samsung Galaxy S10 Themes, Apps, and Mods] RRiVEN:
If I am still seeing ads with the default list then yes I should add more.

Well aware on how it works, and I am not even sure *ads* is valid as that is not a valid domain.

DomainFilterRule | Knox SDK API reference

Javadoc API documentation for Knox SDK API reference.

docs.samsungknox.com

I really hope you are not blocking *ads* You are now blocking any URL with the follow in them

Any many more words.
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

Fusionjack has updated Adhell to version 455, has anyone compiled it in an apk, that could share? The app has been upgraded to android 12.

Last week after i upgraded my Note10 to android 12, I noticed that with adhell version 445, the app permission manager no longer works (At least for me)

Thank you.
[Samsung Galaxy S10 Themes, Apps, and Mods] *elmo*:
@Hansoliv , I have the same issue on my S10 after upgrade to A12 :( BIG THANKS to you that you still want to work on the apk and new versions (y)(y) Unfortunately in such topics I can not support you, I hope, that when more people will update android support comes immediately 🤞
[Samsung Galaxy S10 Themes, Apps, and Mods] RRiVEN:
I don't think it will ever work. Samsung removed that feature from Android 12

ApplicationPolicy | Knox SDK API reference

Javadoc API documentation for Knox SDK API reference.

docs.samsungknox.com
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Crap :mad:.

Thank you RRiVEN for the heads up.
[Samsung Galaxy S10 Themes, Apps, and Mods] jonnie77:
Works flawlessly A52s 5g
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Enjoy ;)
[Samsung Galaxy S10 Themes, Apps, and Mods] parasnohwar:
so is it now working on android 12 (one u.i 4.0) or not?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

As no one still not shared the new version of adhell to test, i haven't yet tried. But probably will not work like RRiVEN said in post #728.

As soon as the new version is shared, i will make it available here.
[Samsung Galaxy S10 Themes, Apps, and Mods] h_maharaj:
The permissions manager is still available to me on version 445 on OneUI 4.

eta. nevermind. The permission manager shows up but you can't actually disable any permissions.
[Samsung Galaxy S10 Themes, Apps, and Mods] parasnohwar:
Oh! Alright i see... thanks for explanation tho!! And you too have a good day!
[Samsung Galaxy S10 Themes, Apps, and Mods] Logan:
Anyone tried to compile build 460 and got it working?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Nobody shared the apk yet 😥

Nothing in CitizenV's shared folder too.
[Samsung Galaxy S10 Themes, Apps, and Mods] Logan:
i was able to compile 460 but when i enter my own knox key it gives me error 204.

do i need to configure something to give it the right key type to work with?

edit it seems i am not able to pass activation

attached file mod it and see if it works
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Thanks for sharing!

I will try it later.

Maybe something changed in Samsung servers?
[Samsung Galaxy S10 Themes, Apps, and Mods] Logan:
my friend compiled for me the app when i got the key so after changing package name when i compiled myself error 204 means invalid package name and after compiled again with same package name it gave me error206 which is mismatch signature key so to get it work with my kpe key i need the signature key from my friend but hes gone to army and never been online since then so your workaround is our last hope xD
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Hello, and thanks for sharing again.

I have used your apk and it's working.

I Attached the apk without the need for the Samsung license, like the previous ones.

Unfortunately i cannot try if it is working with android 12, because i downgraded my phone to Android 11.

If someone already on Android 12 here wants to try it and leave some feedback would be nice.
[Samsung Galaxy S10 Themes, Apps, and Mods] NotALurkerAnymore:
Hello, it is working fine in my galaxy 22 ultra. Thank you for sharing. How can I increase the domain rules to a higher number? I know that it sounds unnecessary but I would like to test a higher number. Thanks again.
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

Are you using Android 12 in your phone? If yes, could you please see if you can change the permissions of any app in the Permission Manager? (Others Tab -> App Component)

Thank you.
[Samsung Galaxy S10 Themes, Apps, and Mods] NotALurkerAnymore:
Hello, yes, I'm using Android 12 and no, I can't change apps permissions, I can disable activities, services, receivers and providers but I can't move the toggles in the permissions tab.
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
I didn't read your previous post correctly, S22 series comes with Android 12 as default 😅

That was what i was afraid of, Samsung really removed that feature, no way around that.

I attached a version of version 460 that accepts 300k hosts
[Samsung Galaxy S10 Themes, Apps, and Mods] NotALurkerAnymore:
Thank you, I'm going to try it and I will let you know how good it works.
[Samsung Galaxy S10 Themes, Apps, and Mods] Semeliel:
I can't update it, it shows a conflict error with a package.
[Samsung Galaxy S10 Themes, Apps, and Mods] BxOxSxS:
Hello adhell3 users, I am B.O.S.S project contributor.

Permission disabler on android 12 does not work. I did some debugging and found out that it's not supported on android 12 and up. Here is a link to knox api docs about that info. I am not sure why it's disabled. It can be samsung decision or some internal android changes that samsung cannot or don't want to overwrite.

Also remember that any methods of activation without legal knox license break samsung's ToS or may even be a crime. I cannot stop you but watch out. License owner can get info about your device (like model and imei) or if they implement such function inside working apk even control your device. I am not trying to scary you, it's true and how knox works. Check docs if you don't belive me.

Same threats are from people that are sharing adhell3 apk with changed code. Adhell3 is open source so it's quite easy if you know programming.

Remember that you can always build apk yourself and change app.properties using adhell3-scripts or standard android build process. If you want to use that illegal method of activation, remember to build using proper package name

Stay safe and aware
[Samsung Galaxy S10 Themes, Apps, and Mods] *elmo*:
Not working ... fiets need key...
[Samsung Galaxy S10 Themes, Apps, and Mods] NotALurkerAnymore:
Did you try this?
[Samsung Galaxy S10 Themes, Apps, and Mods] alba77:
Hello, I just installed on the s20 FE the file adhell3_460.apk but it asks a license to be activated. What a licence is it? do I have to pay the app?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Have you tried the instructions in post #701?
[Samsung Galaxy S10 Themes, Apps, and Mods] alba77:
Hello,

Thank you very much for the replay.

I red this one but I don't understend what to do.

I only understend that I have to install NotifyRDS Add-on: Samsung and nothing more.

The point 4 tells

My secure folder is enabled yet. So I don't understand if there is a risk to lose the secure folder like it happens with device owner. I don't want this to happen - The reasen why I didn't put the root.

EDIT:

I red a better description in post #705 and it worked.

I made it on a phone S20 FE with Android 11 where I didn't put my data into the secure folder and I had to uninstall it so if I had data I would lose it.

Now the problem is how can I do the same without loosing my data into the secure folder on the Note 10 plus (Android 10) and on the Note 9 (Android 10)?

Do you have any suggestion?
[Samsung Galaxy S10 Themes, Apps, and Mods] alba77:
Hello, any idea of using the method without having to uninstall the secure folder?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Hello.

I have read your previous posts.

unfortunately I do not know any other method, besides those in post #701. :(

The other way is having an official license from Samsung, by having an enterprise and applying to be a Samsung partner.

Samsung Knox Partner Program

Designed to provide our strategic business partners with the tools and resources needed to collaborate with Samsung, with the goal of driving innovative product development and sales in the B2B space. The program enables qualified members to leverage Samsung Knox development tools and implement...

partner.samsungknox.com
[Samsung Galaxy S10 Themes, Apps, and Mods] Snake.s9:
do the instructions in post #701 work on Android 12 by any chance? have anyone tried it?
[Samsung Galaxy S10 Themes, Apps, and Mods] h_maharaj:
Works on OneUI 4.1
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
I confirm that works with OneUI 4.1
[Samsung Galaxy S10 Themes, Apps, and Mods] Eyck Hts:
Hi, do you know if this works on Android 10 for a Galaxy S9?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
It worked ok in my Galaxy S8 with Android 9. Give it a try!
[Samsung Galaxy S10 Themes, Apps, and Mods] Eyck Hts:
I followed the instructions in post #701 but when I open Adhell I am asked for an activation key I don't understand what it doesn't work
[Samsung Galaxy S10 Themes, Apps, and Mods] CoutTab:
thanks for your work, the permission tab has no longer support after API level 30, (as Knox docs sad). Maybe adb debug permission can be used instead of this deprecated API, although this permission needs to be reactivated after every reboot, like rikka.appops.
[Samsung Galaxy S10 Themes, Apps, and Mods] CoutTab:
Decompile and modify the “.line 42”，in the .apk/class.dex/com/fusionjack/adhell3/tasks/DomainRxTaskFactory/，the hexadecimal number “0xc350” limited to 50 000，modify the next line code “if-le v1, :cond_4b” to “if-gez v1, :cond_4b”， After modification, there is no limit.
[Samsung Galaxy S10 Themes, Apps, and Mods] hankdu:
have you experienced any side effects with your device after using this method?
[Samsung Galaxy S10 Themes, Apps, and Mods] alb.pasqua:
Is Adhell3 using more or less battery than a solution based on private DNS?
[Samsung Galaxy S10 Themes, Apps, and Mods] CoutTab:
yes，toomany rules will obviously increase power consumption、in a incredible number of rules，the consumption of Internetweb loading will be much slow.
[Samsung Galaxy S10 Themes, Apps, and Mods] hankdu:
Thank you. I'm going to stick with the default list and block chrome and edge. So far it has been working well.
[Samsung Galaxy S10 Themes, Apps, and Mods] irmatt:
Strange, it is not blocking any ad for me. I have loaded StevenBlack hosts and it doesn't seem to do any blocking.
[Samsung Galaxy S10 Themes, Apps, and Mods] RRiVEN:
Anyone get this method to work on Android 13 betas?
[Samsung Galaxy S10 Themes, Apps, and Mods] Hansoliv:
Good day.

Are you asking about the activation method?

If yes, it worked for me in my Galaxy s21 Exynos with Android 13 beta 1.
[Samsung Galaxy S10 Themes, Apps, and Mods] quyleanh:
Could anyone tell me what is different between adhell3 vs other adblock solution (like DoH, DoT, or adblock VPN app), in term of blocking ad.

Thank you.
[Samsung Galaxy S10 Themes, Apps, and Mods] Nastrahl:
AdHell uses Android's firewall to block outgoing requests to ad servers without using a VPN.

To be able to block ads without AdHell, you have to use a VPN apps that is made to let you customize network rules. Using a VPN uses différent network rules than Android's without it, as all network requests go through there to be secured before being set on the Internet.

DoH, Dot and such are a different things. It's only about encrypting DNS requests. You can now do that with a recent Android with its Private DNS setting.

Still, a VPN app can you let you customize rules more thoroughly, like not only filtering DNS request.

(I'm not an expert so feel free to correct me if I'm wrong)
[Samsung Galaxy S10 Themes, Apps, and Mods] quyleanh:
Still not clear enough for me.

So adhell3 just modifies Android firewall, and blocking ads is Android firewall's responsibility.

Ads block VPN is different since it blocks ads by itself.

Am I right?