yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
The AdHell documentation says nothing about resetting the Chrome flags! In fact, some of those tweaks (the old async DNS, for example) are likely to interfere with the Port 53 behavior you're attempting to control. Keep it simple, it's usually better! ;)

BTW, after changing anything on a browser, make sure its cache is cleared (reboot if you must), else you can see stale versions of pages, including old ads.
[Samsung Galaxy S10 Themes, Apps, and Mods] JoeFCaputo113:
But I did, how can you say I did not lol? And FYI- the latest on mediafire is v290, not 291. I have no idea what I'm doing when compiling (get a bunch of errors -__-) so yes, I have to use the pre-compiled one.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
When you say you're getting two AdHell instances, that tells me that you didn't use the same Package ID!

The current AdHell3 is build 291 but 290 is close enough since it only adds a small cosmetic change.

You don't HAVE to use precompiled APKs, apparently you CHOOSE to, which is your privilege! ;) If you visited our support area and gave us some details, I'm sure we could help you compile quickly and painlessly.

I'm only aware of a small glitch in the scripts, and only in the Windows version. In file AdHell3.cmd, line #108, replace

%tools_folder%\bin\sdkmanager "platform-tools" --sdk_root=%cd%\%android_sdk_folder%

with

%tools_folder%\bin\sdkmanager "platform-tools" --sdk_root="%cd%\%android_sdk_folder%"​

(adding quotes). The scripts zip will be updated with that change shortly.
[Samsung Galaxy S10 Themes, Apps, and Mods] gurkburk92:
Omfg. The "EDU" part at the end is where it all failed for me. Using that link and generating that ONE license key made it all work.. Thanks.. :P
[Samsung Galaxy S10 Themes, Apps, and Mods] kevkid:
Thanks Mike, got it to work properly. I didn't have the firewall rules set.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Typical AdHell3 support exchange:

User: I won't give any details, but I followed the instructions and it doesn't work!

Repeat as necessary:

me: (Re)read the documentation

carefully

and try again.

User: But I'm 100% positive that I did it right!

User: Oh it worked this time! Turns out that I had forgotten to <...>

me (thinking it, not posting it!): Duh!!

;)
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
Got a small issue I don't seem to be able to work out.

When I'm on wifi I have the notifications that internet is broken although some apps are working.

Some apps like Samsung email or nine are not working properly although other apps like WhatsApp are.

If I disable the FW rules all works again.

Any clues?

Attached are the FW rules.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
The most likely cause is that you're denying WiFi access for something your apps or WiFi router/provider require, not surprising since you seem to deny WiFi to so many apps. I'm a bit puzzled by your approach since it would appear drastically easier to disable WiFi completely, but I don't know your intentions or requirements.
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
I don't think I'm that drastic.

I just disable apps that I don't think require internet access and take liberties with analytics and other personal data they don't need.

To be honest none of the apps blocked are system related and shouldn't have an impact of the wifi connectivity.
[Samsung Galaxy S10 Themes, Apps, and Mods] aksharpatel417:
I installed the editor and was able to edit the package name. I then installed the adhell app and put in my ELM development key, but I am getting "Status failure error code 201". Does anybody know what I am missing? Would love to get this to work. Thanks!
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Assuming you patched the AdHell3 APK you found (recent build?) with a valid unique package ID, chances are you're not using a proper valid 128-byte EDU ELM key. Try again! (see above?)
[Samsung Galaxy S10 Themes, Apps, and Mods] aksharpatel417:
I got the app to run and everything looks good (thanks mike) except when I now see gray boxes that are ads. Shouldn't they be hidden? I entered chrome and Samsung browser domains in the blacklist as firewall. I also made sure to flip the firewall and domain switched. I cleared cache on browers and restarted my phone. I am still seeing gray boxes. I am still seeing prerole advertisments on YouTube is there any way to block those also? Any advice would be much appreciated!

com.sec.android.app.sbrowser|*|53

com.android.chrome|*|53
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
So, I played around a bit more and ended up removing all Wifi blocks and I will have the same issue as soon as the firewall is on.

Although 4G (with the same rules, works fine)

Edit.

I forgot that I put custom DNS in Pie's settings.

1.1.1.1.

It seems to be working for now but it shouldn't have an impact normally.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
If a web page hard codes some fixed space for an ad whether the add is shown or not (not necessarily a good coding practice), then you'll see a "gray box". A better coded page would adjust the box size to fit the ad size, down to nothing if the ad is unavailable, but some sites on the sloppy sude don't bother with that.

That's not something AdHell (or any strict "ad blocker") can control. This requires cosmetic handling, such as that provided by Ublock Origin or similar extensions, a whole separate issue, sorry.
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
Edit 2: nope.that wasn't it.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
This is not really an AdHell issue, but in general playing with DNS is trickier than most people think, even trickier with that new "Custom DNS" thing. Perhaps the most forgotten issus is that your ISP (either through router or 4G data) can and often does rewrite DNS requests unbeknown to the user. It's not necessarily bad and can even speed things up such as with satellite Internet where requests from many people can be pooled and temporarily cached. There are few valid reasons to try and bypass the ISP's default DNS unless that default blocks many of the domains you wish to access (as enforced by law in some countries). Testing is the key: if it doesn't work for you, don't do it! ;)
[Samsung Galaxy S10 Themes, Apps, and Mods] gurkburk92:
I got Adhell working and blocking ads etc. But when entering the app, it's crashing almost every time. I'll have to open, let it crash, open, let it crash until the app Doesn't crash.

Is this something you'll just have to deal with?
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
No! If AdHell crashes then it's not working, even though your Knox firewall may still operate (possibly using stale settings from a previous attempt). If you use a recent AdHell (build >265), you probably have either a non-unique package ID or a wrong/obsolete key. The only puzzle is your "almost every time" comment. Verify that it's an AdHell-specific issue and not just something with your device configuration. A reboot often helps for that, and so does looking at logs.
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
Thanks for your answer.

I'm not sure this is not an Adhell issue since it only happens when adhell is on.

As soon as it's off every thing works normally
[Samsung Galaxy S10 Themes, Apps, and Mods] oneandroidnut:
Got it running thanks for this!!
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
You know there are newer versions, right? You have 279 and the current one is 291. However since you seem to use AdHell only as an app/package disabler maybe it doesn't matter to you. Most people value the "ad blocking" capability and for that, build 290 adds a convenient "dump" function. See the GitLab repo for details.
[Samsung Galaxy S10 Themes, Apps, and Mods] notabene:
I am running. 279 version and wants to upgrade to 291. Is it necessary to rename package etc again or just download and install? Thanks
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
It is never possible to "just download and install" an official AdHell3 APK, and if there were such a thing, it would be banned by Samsung (and probably by XDA).

The proper procedure is to download the latest AdHell3 sources from GItLab, become a Samsung developer, download the required proprietary components and a generate a suitable license key from that Samsung login, then assemble and install your own APK for which you are soley responsible.

Some unofficial non-functional precompiled APKs are available for testing, but even those can't be just downloaded and install. You still have to patch them before you can use them, and for them also you need a proper Samsung license key.

In other words: check the documentation! ;)
[Samsung Galaxy S10 Themes, Apps, and Mods] oneandroidnut:
yes i am working on it for the adblocker, and i didnt see a 291 build where is it? And I assume just rename the package name to the same as current version install and then install over current version??
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
The screenshot you posted didn't show AdHell enabled for domains blocking or firewall rules, only for apps/components disabling.

Build 291 is the current one, available from the GitLab repository, as is all the official information about AdHell3. If you find a precompiled APK somewhere, you'll have to patch it to use the same unique package ID and it should install over your previous version, depending on where you got those unofficial precompiled files.

SEE THE POST JUST ABOVE YOURS!
[Samsung Galaxy S10 Themes, Apps, and Mods] oneandroidnut:
perfect and that screenshot was just when I first installed it. just have the standard ad blocking domains right now. I will have to probably compile the new version myself
[Samsung Galaxy S10 Themes, Apps, and Mods] and8eye:
some how the app crashes every time, right after i successfully activate the key
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Without any details, it's impossible to help you. Which AdHell3 build? How did you compile? If precompiled, how did you patch it? Which key did you use? Etc... I'm sure the answer to your problem is in the documentation or probably even in this thread.
[Samsung Galaxy S10 Themes, Apps, and Mods] and8eye:
im using that 3.1.1 apk provided in the first post, i just installed that apk (no idea which build it is), i didnt "patch" it

i used this key:
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Randomly installing apps that you don't understand is a dangerous practice! That link points to an old unofficial build 279 which is unusuable with its current Package ID, and you are showing a wrong key. If you want to use AdHell3, check the GitLab repo or at the very least scan this thread, even if only the last few posts.
[Samsung Galaxy S10 Themes, Apps, and Mods] oneandroidnut:
right! it isn't that hard to edit the apk in OP or compile your own with android studio. yeah you need an ELM key not that backwards compatible one
[Samsung Galaxy S10 Themes, Apps, and Mods] Zmantech:
Is there any way to change the domain limit on the device?
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Add the appropriate value to your apps.properties file,

as documented

. If you're using someone else's precompiled APKs, ask them to do that for you or start compiling your own. The default is 15000 domains which is more than enough for any useful block list.
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
I'm pretty sure of the answer (nope) but I curious.

Is there a way to use adhell on rooted phones ?
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Some people claim to have used it successfully on rooted devices even when the Knox e-fuse is tripped, but there are different types of "root" so the best way for you to find out whould be to try if your device is "rooted". Perhaps more relevant is that a fully rooted device allows you to directly manipulate the Android hosts file (/system/etc/hosts), making AdHell somewat less relevant.
[Samsung Galaxy S10 Themes, Apps, and Mods] Double-Tap:
Blah.

I've been trying multiple days to figure this darn issue out. My Adhell keeps crashing.

I followed these directions: showpost.php?p=79061991&postcount=17, it just does not work for me.

I use the galaxy S10+ and using a pre-compiled version.

I followed this: Select the file "AndroidManifest.xml"

7. On line 6 (or around there), you'll find the package id: package="____".

- It's best to stick to the same package ID length. 3.8.9 characters. Leave the quotes.

- If you use same name each time, you should be able to just install updates over your existing AdHell 3.

I just don't know what else to do. Will compiling it myself make different results?
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
It's unclear which precompiled APK you started with. Hopefully it's at least build 265 (anything older is no longer functional) and hopefully something close to the current build 291. Yes, compiling your own is by far the best/fastest/safest/simplest approach to create/update your AdHell APK, especially if you use the convenient scripts provided on GItLab.

It's also unclear which key you are using. Make absolutely sure that you use a 128-byte

EDU

ELM key obtained from https://seap.samsung.com/license-keys/generate/edu. No other key will work correctly. For additional details, PLEASE check the official documentation on the GiitLab repo.
[Samsung Galaxy S10 Themes, Apps, and Mods] Double-Tap:
... I can't facepalm enough. If ANYONE is having an issue when Adhell keeps crashing (with successful installation), It's the EDU key!!

Complete USER error, as many of you have stated in this thread! https://seap.samsung.com/license-keys/generate/edu (make sure you're at this website).

I apologize for my stupidity :(, but this community is awesome!
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
Nah, I was just curious...

I have a S10 now and since adhell works -almost- perfectly i don't think I'm gonna root and hide some porn in the secure folder. ^-^
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
Is it better than Adguard + samsung package disabler? Do i need to get a key from samsung every 3 moths? Why can't it be a one time key?
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
I thinks it's better than AdGuard or others since it's system wide and doesn't use VPN.

It also has no impact on battery.

For the key, it's Samsung's decision to make keys expire after 3 months.

But it takes 5 minutes to do and (unless I'm mistaking) once set, you could even remove the app since the settings are set in the Knox firewall.

The app would only be of use to edit the settings.
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
I'm not sure why keys need to expire don't understand how/why. It's ridiculous users need to enter keys every 3 months. What will they think of next. Can we ask scumsung to make keys not to expire? Is it controlled by os/fw?
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Nothing wrong with Samsung deciding to ask developers to renew a FREE key every 90 days. You can certainly purchase a permanent license as a partner if you prefer. From a practical standpoint, renewing the license for AdHell is a trivially quick and simple process.
[Samsung Galaxy S10 Themes, Apps, and Mods] oneandroidnut:
I mean if you can't take 30 seconds to get a new license key every 3 months you are a special kind of lazy. Takes no time at all and then copy it into adhell and you are done. Bet I can get new key and copy it into adhell in 30 seconds. Once every 3 months? Big whoopy do
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
Someone's triggered. I just don't understand why i paid $800 for my phone and need to pay more for a permanent key. I don't even understand why a key is needed but i'm not a developer or scumsung's partner. I need to look into this. Something i'll discuss with scumsung directly. The more users accept this BS the more scumsung will milk users. Soon they'll only have a monthly paid option of the key. Or maybe weekly. But you enjoy. To me it's another easily avoidable nonsense. Just give us one permanent key.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Let's clarify matters before this thread needs to be scrubbed.

You don't have to get any license key to fully use your Samsung device!

If you choose to become a Samsung Developer, a requirement to be able to access the proprietary material required to assemble AdHell3, you can get either a free license that needs to be painlessly renewed every 90 day, or become a paid partner and get a permanent license. You have apparently (and probably wisely) opted to stick to a free license. Feel free to contact Samsung if you believe they should provide other options, but I'm afraid that discussion doesn't belong here. In the meantime, enjoy AdHell3! ;)
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
Yea thanks for the free option in the mean time. Looking into installation instructions now. Anything that doesn't drain battery.
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
i'm getting status fail error code 201 after i press activate. what am i doing wrong? key is KLM...
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
I don't know what all you may have done wrong, and I hope you're using a reasonably recent (build 265 or newer) AdHell3, but that's definitely

NOT

the correct key. You may want to re-read the AdHell documentation carefully and get a proper active 128-byte EDU ELM key!
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
Also, if you have a computer. Check the gitlab readme and use the scripts to generate your app.

Worked on the first try for me.

Just make sure you do Read the entire readme and it will be a breeze.

(Don't stop in the middle like I didn't and then complain it doesn't have all features ;)
[Samsung Galaxy S10 Themes, Apps, and Mods] oneandroidnut:
right lol worked for me the first time too. get the right files and codes and it is easy as pie
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
i found wrong/older instructions for KLM key but it took me to the right download page. I got the right key now but getting parsing error. Maybe the key got rejected or has something to do with renaming. I followed instructions from the download page txt file. I'll keep trying.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
The "download page txt file"? A KLM key hasn't been acceptable since build 264 and we're at build 291. I urge you to look at the current documentation on Gitlab:

Main repo: https://gitlab.com/fusionjack/adhell3

Scripts for compiling: https://gitlab.com/fusionjack/adhell3-scripts

Dependable precompild APKs: https://www.mediafire.com/folder/sb37c6gmhqgbn

Get the key you need from https://seap.samsung.com/license-keys/generate/edu, as documented.
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
291? But the file name is ah3_v3.1.1.290_3e4f278a.apk, same what i have. i got it from the same link, same txt file instructions. i think i renamed wrong. will keep trying.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Oh, you grabbed the (unofficial but dependable) precompiled APK. Be sure to follow the patching instructions to the letter, or (better!) compile your own directly from the current build 291 source. Either way, you still need an EDU key, not just something that looks like one.
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
I don't know how to compile apk. First time i generated the wrong key, KLM. Then was able to generate a longer key. Revoked all keys to start over and generated KLM key again, instead of the long key. Doing something wrong again.
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
Once again, I urge you to read the READMEs carefully. You'll know how to compile your own if you download the scripts. To get the key, go to https://seap.samsung.com/license-keys/generate/edu, as mentioend before. That exact URL, not one that almost looks like it!!!
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
i do read carefully. do you go through this every 90 days?

10. Press "Build" in the top right hand corner - after this step get red error X

if i don't rebuild this file ah3_v3.1.1.290_3e4f278a.apk but select common edit and rename > save > install > problem parsing package
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
When your key expire in 90 days, you simply grab a new one, a process that will take a couple of minutes at most. You are apparently making the whole thing drastically more complicated than it really is.

Do once only

- download the scripts

- setup the script for your operating system

After that, whenever you want to update to a new build

- 1-line command to create the latest current AdHell3 apk

- copy to your device, no need to change or reconfigure anything

Every 90 days (AdHell tell you when it's time)

- go to https://seap.samsung.com/license-keys/generate/edu

- revoke any old key if you have any

- grab new EDU key

Those steps take longer to type than they do to execute. All depend on you following the instructions EXACTLY, not skipping any steps, not assuming anything.

If you're looking for a simple "download+install" application, AdHell is not that, never will be that, cannot be that, since it requires access to proprietary Samsung material only available to developers.

Oh, and if you opt to try and patch a precompiled APK, there too you must use the correct APK Editor PRO version in the correct manner. ;)
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
I'm not in a position to compile apks now. Why can't i use this file as is? ah3_v3.1.1.290_3e4f278a.apk

i think i renamed wrong at this step: 8. Rename the package name in the package field.

- Try to keep the name as unique as possible.

Don't know how to rename it. Keep same format but use random letters, numbers?
[Samsung Galaxy S10 Themes, Apps, and Mods] Mike B.:
You don't have access to a computer running Windows, MacOS or Linux? You can certainly try to use the unofficial precompiled apk you mention, but then you MUST patch it correctly. I strongly advise you to find ways to compile since those precompiled versions are likely to get pulled by Samsung (on MediaFIre and perhaps XDA) sooner or later. AdHell3 is NOT distributed as an apk, it's source code. Any precompiled APKs you find are solely the responsibility of whoever uploads them and how to make one of those functional is up to you. We can only remind you that your AdHell must have a unique Package ID to be usable.

Frankly you could save yourself (and us) a lot of time by re-reading the documention or even the countless explanations I've already had to post in this thread and other venues.
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
No, i have a health condition that makes me very tired and unable to concentrate. I thought it was easier.
[Samsung Galaxy S10 Themes, Apps, and Mods] wuub:
Name it what ever you want.

I named mine com.wuub.wbhell

It's pretty simple.

Honestly, the best way to do this is to go to the gitlab page.

Download the script for your computer OS.

Read the readme and follow instructions like if you were cooking.

Once your app is generated, get your EDU license and link the app to it.

Then install your app and activate it with your EDU key.

If can't figure out some of the steps or the readme makes no sense to you.

Maybe you should look for another app like adclear for example.
[Samsung Galaxy S10 Themes, Apps, and Mods] guest_2011:
I already have adguard it's very good but it's a VPN and lately both stable and nightly started acting up. I would lose internet connection, need to disable/enable and then works again. Samsung package disabler for packages. I have to look for a complete updated list of processes and apps to remove from my phone. I still get over 100 running apps with Killapps. No idea what they are or if safe to remove. Wanted to try Adhell to replace package disabler and adguard. Especially if it's easy on the battery.

Oh well, i'm done. Thanks for the help.