yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] PerfectSlayer:
Hi both.

The 3.2 version now support systemless mode without having to flash the zip file.

If you comes from 3.1 (with or without the systemless zip installed), you could update AdAway seamlessly ;)

If you want more details, when you enable the systemless mode, it does the same thing as the zip does in recovery. So 3.1 + zip = 3.2 + systemless mode enabled.

If you disable systemless mode from 3.2, coming from 3.1 + zip, it uninstalls the script the same way you uninstall the zip file.

It could work! Thanks.

I'll do some tests and look for more documentation about SuperSU this weekend (may be there is also some properties set somewhere…)
[Android Apps and Games] NLBeev:
The systemless-hosts-zip puts a script in su/su.d that binds the folder system/etc to a folder on the data partition (su/etc).

I assume that in AdAway 3.2 the 'bind' function is built in.
[Android Apps and Games] osm0sis:
That's how most zips check for it. Apps either do that, look for /su or `which su` since /su/bin/su is definitively systemless SuperSU, while the equivalent for phh Superuser is /sbin/su.

Edit: Caveat for `which` is that it was only standardized into AOSP starting with Marshmallow. Busybox can of course provide it however.
[Android Apps and Games] drewski_1:
I didn't have any issue on a few devices, with or without the option checked.

probably done similarly so just redundant :good:
[Android Apps and Games] PerfectSlayer:
It should be fixed by now. I push the PR so it should be shipped in the next dev build.

I'm now looking for /su/bin/su to detect systemless su install because checking /data/su.img presence doesn't mean the /su is mounted.
[Android Apps and Games] zackiv31:
I just downloaded XDA labs for the first time and enabled test releases. Is there a reason why I can' get v3.2 there? It's only offering 3.1.2, which I don't think is compatible with my Pixel.
[Android Apps and Games] swallowingled:
If you're talking about the "Labs Tester" option in the XDA Labs app settings then that is just to receive test releases of the XDA Labs app itself. Not for other apps.
[Android Apps and Games] mrRobinson:
I didn't push it there. Couldn't login or something. Will post up something this weekend.
[Android Apps and Games] mrRobinson:
There is a new version in the OP and in XDA Labs. Put there earlier but too busy to post.
[Android Apps and Games] vinokirk:
I have installed AdAway 3.21 and the AdAway_systemless_hosts_v2.zip, but I'm still getting the error 'Copying hosts file failed'. I'm running 'Unofficial CyanogenMod 14.1 for falcon' on a Moto G gen1

EDIT: Installed 3.2 preview 2 over the top and it worked first time
[Android Apps and Games] Portgas D. Ace:
With newer versions of AdAway, there is no need for the systemless zip file any more. Just install AdAway and enable systemless mode within settings.
[Android Apps and Games] leisurebird:
Same problem here. I have systemless root and AdAway tells me I'm not rooted. Any advice?
[Android Apps and Games] Casper1982:
I have cm14.1 and SD as internal.

I install Adaway, when I want to download the host files, I get a download error.

Apparently it does not find the path or folders of the files, any help?
[Android Apps and Games] vinokirk:
I installed 3.2 preview 2 over the top and it worked for me
[Android Apps and Games] ItsJono:
I'm on systemless root but when I open AdAway, I'm told that root is not detected and I am only given the choice of exiting the app, unable to go into the preferences and enable systemless root mode.

Anyway thanks to the developers updating the app for systemless root but I'll probably have to wait for another version

Edit: Never mind, don't forget to update your magisk modules!
[Android Apps and Games] Portgas D. Ace:
Not until now. I did not have the time to go through the documentary what exactly this option does, so I stay with the default settings until I find time to have a closer look.
[Android Apps and Games] mrRobinson:
It will also block hosts served over ipv6 which there have been reports of happening. I keep it enabled.
[Android Apps and Games] wgrant:
Android file host still having issues with mirrors? Getting "oops no mirrors found"
[Android Apps and Games] Phrodini:
Worked for me..just refresh
[Android Apps and Games] wgrant:
Excellent, thanks for that. I had to refresh 4 times but it finally worked.
[Android Apps and Games] Villelj:
Best and first app I always put new phone!
[Android Apps and Games] sirxdroid:
The only reason I root my devices. Tried alternatives for non-rooted devices like the VPN based ad blockers (NetGuard and the likes) but found them clunky, they sometimes break other things, etc.
[Android Apps and Games] LeJust:
Works like a charm for Android 7.1 based rom on OnePlus 2.

Thanks mate, I've been looking for this for a few days now !
[Android Apps and Games] squrl:
I've flashed the systemless zip before I noticed it's not needed when using the preview version of the app. Is there a flashable "uninstaller" to revert the changes that the systemless zip made? Thanks!
[Android Apps and Games] jcmm11:
You're fine. The app and zip do the exact same thing, stick a script into su.d that does a bind mount to the hosts file. The script has the same name in both cases. So no harm, no foul.
[Android Apps and Games] squrl:
Cool, thanks for the explanation.
[Android Apps and Games] PerfectSlayer:
[MENTION=3355398]mrRobinson[/MENTION] According the number of questions about how to revert systemless script install and if it is required for the last version, what about considering to remove the link to the script from the OP?
[Android Apps and Games] mrRobinson:
Yea I was going to do that once posted 3.2 final so build is in fdroid as well. Maybe I'll add round icons and post that this weekend.
[Android Apps and Games] Shemploo:
Please remove post, bug seems related to Magisk.
[Android Apps and Games] NLBeev:
There's no uninstaller and uninstall is not necessary.

The systemless-hosts-zip binds system/etc/hosts to another folder. In the the new version it's included.

If you don't use AdAway and want to revert; delete su/su.d/0000adaway.script.
[Android Apps and Games] habylab:
What about adding Superuser support? You can't deny Magisk's popularity.
[Android Apps and Games] mr_reaper:
do i have to flash the zip, or can i use the app to install the hosts file
[Android Apps and Games] jcmm11:
All you need is the current version of the app. Just make sure "enable systemless mode" is selected in preferences. The zip has become redundant. Although it also wouldn't hurt anything
[Android Apps and Games] PerfectSlayer:
I test phh's Superuser on Nougat and it works fine.

Note that I do not support systemless mode for Superuser but Magisk should do the trick.
[Android Apps and Games] Jip1912:
does it also hide youtube ads on phone?
[Android Apps and Games] Portgas D. Ace:
No. There is an Xposed module available for this purpose (search for "YouTube AdAway" in the Xposed Installer or repo).
[Android Apps and Games] Mar-cel:
Why is it not working?
[Android Apps and Games] cebs:
I think you should provide your screenshot in english in order to people understand what's wrong :)
[Android Apps and Games] Mar-cel:
:D
[Android Apps and Games] kryzeK:
Hi, how I can put game ads in whitelist?

This game for example: https://play.google.com/store/apps/details?id=com.kongregate.mobile.burritobison3.google
[Android Apps and Games] androcraze:
http://xdaforums.com/showpost.php?p=69401725&postcount=7356
[Android Apps and Games] PerfectSlayer:
Could you enable debug in preferences and post a logcat please ?

adb logcat -s AdAway

Please also give us your versions of Android and superuser ;)
[Android Apps and Games] NLBeev:
Deleted
[Android Apps and Games] cebs:
No i'm not...

Me and a lot of people don't understand German, so what's wrong asking for something in english??
[Android Apps and Games] Portgas D. Ace:
Especially as this is an international forum with English as preferred language ;)
[Android Apps and Games] tag68:
But there was a typo in the German version! It must be "existiert", not "exisitiert" (same like you would type "exisited" instead of "existed" in english). Can that get fixed?
[Android Apps and Games] Portgas D. Ace:
No, it's not about a file that could not be written, it's about root not available for AdAway.
[Android Apps and Games] Portgas D. Ace:
You seem to confuse some things. First, you ask if the person asking for an English translation is kidding, then you say that everything should be clear (as German is quite understandable for all foreign XDA users, of course :silly: ) because of the implementation, then you talk about English being mandatory here. All this isn't clear, but rather confusing.

Giving a translated version of the screenshot will significantly increase the chance that the issue might be solved because everyone can see what the issue is about. So I don't really understand why you ask someone if he is kidding because he asks for an English explanation.

So, enough OT for now from me, this is getting out of control otherwise.
[Android Apps and Games] NLBeev:
It's clear to me. I did something wrong. [emoji22]

Edit: Cleaned my OT posts.
[Android Apps and Games] Syaani:
So the latest version 3.2 with systemless SuperSU should work well on Nougat?
[Android Apps and Games] denyo81:
Running on CM14.1 and this app runs perfect as always. And yes without supersu.
[Android Apps and Games] Syaani:
Without SuperSU? Which root method are you using?
[Android Apps and Games] denyo81:
CM14.1 has root in rom like supersu. I don't need supersu. Sure if Chainfire released a working version of supersu for CM14.1 I will use it again.
[Android Apps and Games] Syaani:
I see. Does CM root act the same way as the systemless supersu? I mean, it is basically 'systemless' also. A bit OT (sorry) but I want to understand the whole thing.
[Android Apps and Games] denyo81:
I can not explain the exact difference. I think it's similar to supersu. So I have no disadvantages.
[Android Apps and Games] r3ix:
Hello. Somebody can explain me why from yesterday im seeing ads? I already installed last version of adway and still seeing ads... Im on nexus 6p 7.1.1

Enviado do meu Pixel XL através de Tapatalk
[Android Apps and Games] Mar-cel:
Android 6.0.1, phh's superuser systemless
[Android Apps and Games] androcraze:
Do you reboot the phone after "Download files and apply ad blocking"?

Are the ads on a web page, or in an app?

Are you aware that AdAway can't block all ads that are pushed through apps (if you perform a search in the thread, there are some posts that go into some detail)?

Where are you seeing the ads?
[Android Apps and Games] r3ix:
I use adaway for long time, im aware :) but apps like sofascore, olx i never get ads and from yesterday im seeing ads
[Android Apps and Games] androcraze:
One of two things has happened:

1. The sites changed ad servers, and you get to figure out the new ad servers and black list them.

2. The apps are now serving ads directly, and AdAway won't work for those apps anymore.

I'm suspecting #1.
[Android Apps and Games] r3ix:
Thanks :)
[Android Apps and Games] PowerHero:
Any one confirm that ads in CleanMaster and es file explorer are blocked

I still see the ads here
[Android Apps and Games] Cryptecks:
One solution is to not use either of those. They're known for being kinda scammy haha

Use SD Maid and Solid Explorer
[Android Apps and Games] PowerHero:
Yes it's true but tell me one damned app in playstore that is not scammy haha[emoji1]
[Android Apps and Games] osm0sis:
It's not systemless at all, root is built directly into the system on CM.
[Android Apps and Games] Syaani:
Okay, nice.

But how is it possible that CM root and AdAway systemless mode works together as [MENTION=4683959]denyo81[/MENTION] said?
[Android Apps and Games] osm0sis:
He just said it "runs perfectly", he didn't say it was systemless.
[Android Apps and Games] Syaani:
That's true. Thank you!
[Android Apps and Games] NLBeev:
You can see if there is a systemless hosts file.

Systemless binds the folder 'system.etc' to another folder. Mostly 'su/etc'.

When you can see identical hosts files in both folders it's systemless.

Don't know about CM and built in superuser, but if you find 2 identical hosts, please post info about it.
[Android Apps and Games] m0han:
the screenshots here might help in determining whether it's systemless.
[Android Apps and Games] NLBeev:
Thx. Good example.

Concerning CM I like to know if the latest CM version, allows access to 'system/etc/hosts'. When true there seems to be enough space in the system partition.

Stock Nougat doesn't have that.
[Android Apps and Games] jho55:
TotalCommander? Because that guy is developing the Windows Version for over a decade and I would be rather surprised if he would put some bad stuff into his android version.
[Android Apps and Games] Ultramanoid:
It has a statistics package embedded now, which for a long time was not present and made it one of the very few clean file managers ( FX, MiX and Ghost Commander still remain clean so far... ).

I hate to see a file manager with such good history fall into the data mining trap, but of course it could be worse, if it had the well known malware vector and, again, data mining issues that come with embedded advertising code.
[Android Apps and Games] jho55:
Thanks for the info. Did not know that.
[Android Apps and Games] PowerHero:
Could you explain more please what's wrong with es file

And exactly with the last three lines (well known malware vectore. Data mining issues...)
[Android Apps and Games] Cryptecks:
I really wasn't joking at all when I said you should get rid of ES File Explorer and CleanMaster and replace them with the apps I mentioned.

ES: http://www.androidauthority.com/uninstall-es-file-explorer-691930/

CleanMaster: https://www.quora.com/Are-Clean-Mas...due-to-these-apps-What-are-their-alternatives

Please read those, and do some searching and reading on your own. Basically, steer WAY clear of ALL Cheetah Mobile apps, period. It's a good rule to follow as an Android user.
[Android Apps and Games] Ultramanoid:
I was talking about Total Commander, which has implemented statistics only. ES is a whole different thing and much worse, it has statistics, advertising, and calls home.

Advertising code is a proven malware vector. It means sloppy ad code inside an application can make it vulnerable, malicious code can make it directly dangerous, and the information it can get from your device and / or use of it, is data that is taken from you most of the time without your consent and for dubious ( at best ) intentions. Just the fact that advertising usually demands internet permissions and this allows for use of sending and receiving data behind the user's back is utterly unacceptable.

Pay developers for their work, but don't support those that make your device vulnerable or harvest data about what you do and how you do it.
[Android Apps and Games] PowerHero:
Thanks alot and don't tell me the same thing also with cm locker?

---------- Post added at 04:46 PM ---------- Previous post was at 04:42 PM ----------

Explaned much enough and what you recommand os the same thing with sd maid and solid exp?
[Android Apps and Games] Yanardag:
Hi,

cm14 (7.1) cant run it. Installation ok but host copy fails.
[Android Apps and Games] tag68:
What statistics package? There is no mention in the history of TC, nor do I see something about that on ghisler.ch. I'd like to open a thread there if it is really not mentioned already. Please send my an email before this gets off topic.

If you want to switch the file explorer, I recommend to take one of my list of explorers which are capable to keep timestamp on copy/move in my Guide to keep timestamps at point 3.

Exactly. Using Adaway improves security a bit, because many of the targets of that sloppy code are not available. Or code to execute can't get loaded. But not using crappy apps is most important part, and if I read it correctly ES explorer is using libraries the ES developers themselves have no idea what they are doing.
[Android Apps and Games] githyanki:
Since that ROM is so new, please provide more details and possibly a log for the devs to help you.

Probably it is a problem with CM root.
[Android Apps and Games] tqwzUX6fn39GZMEzSnDF:
Works perfect for me on LG G4 H815 CM 14.1.
[Android Apps and Games] Ultramanoid:
Off the top of my head I believe it was Google Analytics, but I'd need to get the apk and recheck. ( Which is fine and no reason to panic if you're willing to use software with statistics, but I am not. )

Edit : I can't install or use the Play Store right now, but I just checked the latest apk beta from their site and it does not have statistics now. It does have the ACRA library that sends crash reports to them. Sorry for the off-topic.
[Android Apps and Games] tag68:
The systemless Mode in Beta 2, it does not work for me:

Deactivated AdAway which was not using systemless. Opened settings. Checked systemless. Closed settings. Activated AdAway.

This was a few days ago. Now I opened AdAway, looked at the settings. Systemless was not checked?!?

Several tests later, following summary: checking systemless in settings is possible. But when I close settings and open again, I can see systemless getting unchecked (checked when open, but immediately animated uncheck). Huh?

My SuperSU is 2.62-3. Device is Moto X Play with Android 6.0.1. Shall I do a log of something?

It is not really important for me to use AdAway systemless. But if it's not working systemless, I'd have liked to know that earlier. For instance when activating.
[Android Apps and Games] Nergal di Cuthah:
Are you sure that your root is systemless? Do you have a /su folder inside or outside of system
[Android Apps and Games] tag68:
1. The 2.62-3 SuperSU defaults to systemless

2. Moto-devices afaik currently only can be rooted systemless

3. Yes /su exists

If it wasn't systemless, wouldn't the checkbox be disabled?

I would expect that the checkbox immediately after setting systemless checks if systemless is active, and turns off if it isn't. May be with a message. Not that one needs to close and open the settings to notice the malfunction.
[Android Apps and Games] PerfectSlayer:
Hi [MENTION=6192363]tag68[/MENTION] I'm the dev of the systemless mode. Thanks for your feedback and let's see together what's not working with your device.

About your first question, the settings is reset the with real systemless mode status each time you open the settings. So if you open the settings and checkbox is unchecked, systemless mode is not enabled.

About the second question, if you check the systemless mode, the script will be installed and executed. If there no severe error (ie any exeception thrown) during the process, the app thinks systemless is installed. But if the script is badly installed or run, the app still think systemless is enabled, so the checkbox will be checked even if the process failed.

So there is two issues:

I didn't check the real state of systemless before checking the checkbox when you press it,

The script can't be installed in your device.

For the first one, I will push the commit soon on GitHub. For the second, could you please enable the debug mode in settings and send me a logcat of the application (using « adb logcat -s AdAway » to filter logs of the app only).
[Android Apps and Games] limpbizkit78:
Do you have your device rooted?
[Android Apps and Games] tag68:
The log only says "Debug set to true" and "First line of /etc/hosts: 127.0.0.1 localhost"

There are many traces when doing the activation of AdAway (including some write error for APN), but none in the settings. Is that the expected result?

If you want to me to send you a message, please allow me to send you an Email in the settings of your profile on xda.
[Android Apps and Games] mrRobinson:
Version 3.2 (should be final) now posted in the OP.

Has [MENTION=2822685]PerfectSlayer[/MENTION] latest systemless adjustments. Any improvements from here can just be 3.2.1 etc. As long as this doesn't blow up it'll get pushed to F-droid later this weekend. But you can get from 1st page and I'll throw up on XDA Labs as well.
[Android Apps and Games] PerfectSlayer:
Wait for the final 3.2 version to get full log. As [MENTION=3355398]mrRobinson[/MENTION] says, I just added the logging about systemless installation failure.

In the meanwhile, you could always check if you see a shell/toolbox/command error in the log…
[Android Apps and Games] mrRobinson:
Contributions.

I'd like to take a moment just to call out the contributions we have had to make 3.2 happen, finally it wasn't just me floundering around to keep AdAway going!

[MENTION=2822685]PerfectSlayer[/MENTION] - Tons and tons of work on systemless support. Without him, we wouldn't have seen this until early next year.

[MENTION=2963865]sanjay900[/MENTION] - Great contributions on various aspects of remounting, making it more universal, various tweaks / optimizations to the build etc.

[MENTION=5201515]Ja_som[/MENTION] - added shortcuts to the icon you'll see if you long press and on 7.1

... and [MENTION=4745774]kryzeK[/MENTION] who gave me the roundIcons in this thread, I've added that support for this final version.

So big thanks to all our contributors.
[Android Apps and Games] ytsejam1138:
Upgrade to AdAway 3.2 from 3.1. I'm unable to run the app, I get a splash screen that says root required. I'm rooted, using SuperSU 2.78. It's systemless (su folder outside of system folder). All other root apps work. In preferences for AdAway 3.2 enable systemless is grayed out and not checked. I'm running Android 6.0 with Nova Launcher, which is how I can get into preferences.

UPDATE: Fixed by downgrading SuperSU to v2.76. Not sure why that worked, but it did. FYI, enable systemless in preferences is s

no longer grayed out, but I'm unable to check the box.
[Android Apps and Games] FrutasX:
Hello,

Anyone uses this with xiaomi mipad 2 running MIUI?

Regards

Mipad2 & Tapatalk
[Android Apps and Games] NLBeev:
Latest november update AdAway 3.2 installed over previous build.

No issues on Nexus 6, stock Nougat 7.0.

Thx for this great and useful app.

Google should allow this app in the Play store.
[Android Apps and Games] PerfectSlayer:
You're welcome! It's my way to thanks you for using your app since years now ;)
[Android Apps and Games] Ja_som:
Deleted

And thanks for the new release [MENTION=3355398]mrRobinson[/MENTION] ;)
[Android Apps and Games] tag68:
Guess I found a reason. Currently I am not near my PC and the output of CatLog searching for AdAway did not give something which may be related.

But I just tried the following in a terminal:

~$ mount bind

mount: can't read '/etc/fstab': No such file or directory

Could that be the reason why enable systemless is not possible? It does not matter if I type su before that command.
[Android Apps and Games] PerfectSlayer:
The command « mount bind » will try to mount the « bind » file according the source defined if the fstab. It's not what you want.

We use bind as an option to mount command (with -o). Here is the command used by the script.

As root, you could try to run the script (/su/su.d/0000adaway.script) itself if present or run its command (mount -o bind /su/etc/hosts /system/etc/hosts) to test what's wrong with your device.
[Android Apps and Games] tag68:
It runs. There is no output.

It runs. There is no output. ls -l to hosts in both directories show exactly same date and size.

Does this help anything?
[Android Apps and Games] PerfectSlayer:
So it should be working. Check the settings if the option is enabled?

If you try « mount | grep hosts », you should have one output line about the mount of /system/etc/hosts.

EDIT: if no output line, paste the result of the « mount » command. Always run as root.
[Android Apps and Games] tag68:
Yes it is enabled after manually executing that script!

But after reboot it is gone, and it immediately gets unchecked when trying to check.

I'm still using SuperSU 2.62-3. Is it possible that the mechanism starting scripts in /su/su.d - where that script exists - does not work fine in that version?