yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] PerfectSlayer:
In fact, I planned to check mount points during the development.

As I saw there never was difference between the two steps during my test, I chose the more reliable way to test the feature activation.

Nevertheless, I could change it. Let [MENTION=3355398]mrRobinson[/MENTION] decides what he prefers:

Check systemless using the /su/su.d/0000adaway.script presence (current)

Check systemless using the mount | grep hosts command (older)

There is one point which could be in favor of a solution or another: the other (and future?) systemless root methods.

I don't know well which they are but all systemless root may not mount bind hosts file.

So it's better to use script presence (script which could be improved for different systemless root method).

But if all systemless root use bind mount, it's better to test mount points (as Magisk already mount hosts file, the script should not be used and systemless mode should be reported as enabled for example).
[Android Apps and Games] osm0sis:
I was advocating for both, to be clear. The current checkbox for the script being placed, and just an added status string below the option label to indicate that the bind mount is in/active. :)
[Android Apps and Games] mrRobinson:
[MENTION=2822685]PerfectSlayer[/MENTION] [MENTION=4544860]osm0sis[/MENTION]

So looking at the code, when you check the checkbox it writes the bind mount, then copies the adawayscript and executes it. So no reboot is needed and if no exception is thrown it is good. From the user perspective though, they hit the check box and maybe don't understand that it just set everything up and executed it without needing a reboot. esp since hitting the checkbox again to disable prompts for a reboot.

So I think maybe we just need a popup when you enable systemless that verifies the adaway script was executed, telling the user something like:

"Systemless mode successfully Enabled", "Please leave the target hosts file at the default location and the systemless mode will ensure it is writing to your data partition".

Something like that. User dismisses popup and is clear that it is working and not touching system.

Thoughts?
[Android Apps and Games] nosphor:
Looks like the "https://hosts-file.net/ad_servers.txt" is offline for me. Anyone else ?
[Android Apps and Games] skyhirules:
@mrRobinson

Good idea.

A "noob" question: Does the root have to be systemless in order to be able to activate systemless AdAway?

I try to activate it on Android 5.1.1, but after exiting and reopening the app, the respective box gets unchecked in the settings.
[Android Apps and Games] androcraze:
I'm seeing it.
[Android Apps and Games] osm0sis:
Sounds good to me. :)

Yup, otherwise there's no point. Maybe the checkbox needs to be greyed out when root is system-based.
[Android Apps and Games] skyhirules:
Great idea.:good: This is how it should be. Otherwise, there's no point of having the option available. I hope the dev makes it.
[Android Apps and Games] PerfectSlayer:
Hum, it's better than using label to indicate status of the feature (it should only explain the feature, not giving its state).

Another possibility is to use an icon (an alert triangle?) on the left of the text to indicate issues with the systemless mode. That is when the script is present but mount point is missing or when the script is missing but mount point is present (after uninstall and before reboot). Is-it better than your popup?

Looks good to me too! I'll add the feature the next week ;)

Thanks for this idea! :good:
[Android Apps and Games] Windforce0511:
Version 3.2 working great on latest Nougat version and also it works great with Galaxy S6 androi 6.0.1.
[Android Apps and Games] aviranx:
add changelog for the new version
[Android Apps and Games] Ja_som:
http://xdaforums.com/showthread.php?t=2190753&p=69353310
[Android Apps and Games] Prabhat00:
I am not able to block ads on YouTube app.

Does it block ads on YouTube???
[Android Apps and Games] Portgas D. Ace:
No.
[Android Apps and Games] jcsww:
Not if you use the YouTube app.
[Android Apps and Games] PerfectSlayer:
In order to enable systemless mode settings available only if supersu supports it, can someone confirm me the systemless mode is available since supersu 2.56?

Here is my sources: The supersu changelog shows the 2.56 version as the first release with systemless feature and the experiment thread about systemless include a 2.56 version as download.

Note: I saw I wrote 2.76 in AdAway and I think I made a typo…
[Android Apps and Games] Nergal di Cuthah:
See here (requires xPosed) http://xdaforums.com/xposed/modules/app-t2547316
[Android Apps and Games] androcraze:
Will this work the same with PHH superuser?
[Android Apps and Games] PerfectSlayer:
I don't think so. I'm only testing over SuperSU and the feature I add only test SuperSU binary version.

I'm open to include phh's SuperUser support but I'll need to setup a device or some help from testers…

For example, I need available commands of SuperUser to get version and example of output (SuperSU has a -v and -V options).

Moreover, if anyone could give me the minimun SuperUser version required to get systemless mode working, it will be appreciated.
[Android Apps and Games] tag68:
It was SuperSU 2.56 while afaik 2.62-3 being the only version with default to systemless.
[Android Apps and Games] androcraze:
https://f-droid.org/repository/browse/?fdfilter=superuser&fdid=me.phh.superuser

Version 1.0.3.0 was PHH's earliest release that I'm aware of (his approach was always systemless), and it's certainly the earliest that's currently available. I can't comment on DIR's variant. 1.0.3.0 is probably a fair starting point.

I'm sure some folks will start chiming in. The thread is located at: http://xdaforums.com/android/software-hacking/wip-selinux-capable-superuser-t3216394

Any help will be appreciated. [MENTION=1915408]phhusson[/MENTION]'s root has been perfect in every way with the exception of AdAway and systemless. I can chat all I want to, but it's his project and he has more details than I ever will. I invoked his name; perhaps he'll appear.

Thank you.
[Android Apps and Games] Mukiai:
No but if you are root and use Xposed framework in plus, you'll find a module that will help you ;)
[Android Apps and Games] borda01:
Blocking ads in Sofascore app stopped working recently...
[Android Apps and Games] G U C C I:
I tried it with phh and whenever I selected the systemless option it wouldn't stick, so I'm assuming since it's not SuperSU it isn't supported. I'm using supersu sr3 and it's working fantastically.
[Android Apps and Games] PerfectSlayer:
Okay, after checking the project sources, it looks like the phh's superuser comes with it's own su binary that supports the -v and -V options as SuperSU su.

Version 1.0.3.0 number looks like the version number of the Android app, not the su binary.

Can anyone with the phh's Superuser root could paste the result of the following command here?

$ su -v
$ su -V

I'll help me to detect which su binary is installed and how to read its version number. Thanks.
[Android Apps and Games] rysome:
Here we are!

hammerhead:/ $ su -v
17 me.phh.superuser cm-su subind suinit
hammerhead:/ $ su -V
17

Thanks for your hard work!
[Android Apps and Games] PerfectSlayer:
Ok, that's what I expected when I read the source code.

Version number aren't the same at all (256*for SuperSU) but the "-v" option could allow me to check which su binary is installed.

I should have everything I*need to include the phh's Superuser support now. Thanks.
[Android Apps and Games] anon001:
I'm on a nexus 7 (2013 flo) with a AOSP 7.1 nde63 rom / adaway 3.2 and having the problem that most pages literally take minutes to load now. I tried chrome and FF and same thing occurs. Disabling adaway reverts to normal loading times.

Did anyone encounter the same problems (maybe it's a rom issue) ?
[Android Apps and Games] githyanki:
Did you enable the web server option? That should lower the wait timeouts.
[Android Apps and Games] PerfectSlayer:
As discussed with [MENTION=3355398]mrRobinson[/MENTION] and [MENTION=4544860]osm0sis[/MENTION], I improved the systemless mode preferences:

The systemless mode option will be enabled if SuperSU >=2.56 is installed,

The systemless mode will be checked if a mount point for /system/etc/hosts file is found (the 0000adaway.script presence is no more checked).

That implies:

The option will no be enabled for old version of SuperSU (without systemless support),

The option will be checked for user with phh's Superuser and Magisk installed (as it creates a mount bind file for hosts by default). This will indicate user the feature is live but AdAway can't handle (enable or disable) it by itself.

The PR is already on Github. I hope it will help the users to understand how the systemless mode works and how to enable it :fingers-crossed:
[Android Apps and Games] Au5t1n:
Something weird happened considering this is supposed to be an ad blocker.

For a certain link I've been clicking I kept getting redirected to a URL ad.doubleclick.net but when I disabled ad blocking and restored my default host file within AdAway it went away.

Every time I've disabled ad blocking I haven't had this problem but when I download the hosts files from the defined sources it comes back...wtf.

Seems like the defined hosts within the app need some inspecting!!! I've disabled all the defined hosts one by one by this process

-Disabled ad blocking

-Deactivated one host source

-Downloaded the defined hosts

-Rebooted

I've repeated these steps until I went through all defined hosts sources but the problem persists so this needs checked [MENTION=3355398]mrRobinson[/MENTION]
[Android Apps and Games] shaqman89:
Most likely, that the link is actually pointing to the ad.doubleclick.net url. It seems to land you on that page because the original page is blocked, and thus doesn't automatically points (redirect) it to the original intended url. In that sense, AdAway lists is working perfectly normal.

As regard to that certain url, I'd say that is actually the worst type of advertising since in normal usage, the users wont even know that they are clicking an ad. For me, this is one of the worst scam type and actually the reason for me using adaway. Note, that I haven't even mentioned the possible security and privacy breach of those type of links.
[Android Apps and Games] Au5t1n:
Well the thing is I went to the same link without being redirected on another phone which is the same phone as mine and it went right to where it was supposed to go.

The other phone (which is my moms) has never been rooted or anything, it's all stock.
[Android Apps and Games] shaqman89:
Well, I can't say for sure what's happening, but it has been mentioned that ads these days aren't simple. Even factoring all things equal, just a simple carrier difference could determine whether the ads are there or not. And there are a lot of factor to consider.

That being said, you could try to log dns requests on both phones and see whether they have the exact same dns request.

Related to your edit, that is the same condition as using adaway disabled, which means my original suspicion is likely to be correct.
[Android Apps and Games] AutomaticFailure27:
Use the Youtube Adaway module. It blocks most ads, just not when casting.
[Android Apps and Games] Prabhat00:
thanks friend

but i am on android 7.0
[Android Apps and Games] Portgas D. Ace:
Wait until Xposed for Nougat gets released. As an alternative, you could downgrade to Marshmallow by using a custom ROM.
[Android Apps and Games] Au5t1n:
I have logged the DNS requests on my phone but I'm not too sure how I could easily do this on the other phone which is not rooted. Could you and I compare requests? I know we aren't going to have the same network traffic but it's something :fingers-crossed:

I looked in the log and I do see ad.doubleclick.net again. I'm wondering why this URL would be in my address bar when trying to load the intended page I was trying to view. :confused: When this happens it's not an actual URL so nothing loads at all, it's just a white screen. Also weird how it stops putting the ad.doubleclick.net URL in the bar after I delete AdAway's defined sources.
[Android Apps and Games] NLBeev:
Did you reboot?
[Android Apps and Games] Au5t1n:
Just so you know I edited my post a little after you quoted me but yes I rebooted after going through each defined source.

For a reference I would upload the DNS requests file but I don't know its file path
[Android Apps and Games] NLBeev:
This prooves that the 'hosts' file is working on your phone.

More can't be said unless you post the complete url you were talking about.
[Android Apps and Games] Au5t1n:
It was this URL http://www.careerarc.com/job-listings/9893585/apply?campaign_id=1382&src=12

But it would put another URL before it like http://ad.doubleclick.net/[other characters]http://www.careerarc.com/job-listings/9893585/apply?campaign_id=1382&src=12
[Android Apps and Games] shaqman89:
What is the site you click to get to that link.

According to your link, my original suspicion still stands true.
[Android Apps and Games] Au5t1n:
Original is from here http://www.careerarc.com/job-map/ups/campaign/1382?id=32854/#ts-1478484823586
[Android Apps and Games] NLBeev:
On my Nexus 6 probably the same error as on your phone: webpage not reached...etc.

These errors are known issues when blocking url's with a hosts file.

It may also happen when searching a webpage in Chrome. Google ads-url's are blocked because the original url is changed by Google.

The only workaround is clicking the url and wait for the error and than edit/change the url as I did (see below). Copy and Paste is useful.

Of course you can remove the double click url's by whitelisting or editing the hosts file, but than you will get a lot of ads.

https://www.jobs-ups.com/job/-/-/1187/837623?howheard=p4489
[Android Apps and Games] :
Working great on Nexus 6P running Android 7.1.1 Beta. Thanks!
[Android Apps and Games] skyhirules:
But what about if someone has a newer version of SuperSU, but doesn't have systemless root? Wouldn't it be better if AdAway just checked in some way if root is systemless or not and enabled the option accordingly?
[Android Apps and Games] Au5t1n:
So the reason this was happening was because AdAway is blocking the hosts file with a ad.doubleclick.net DNS request that is in that URL?

If so then in this case it just makes it one more step to go to the intended URL lol
[Android Apps and Games] Samuel IP:
Copying of host file failed .

HELP !

MY DEVICE (below 1)
[Android Apps and Games] bobbyphoenix:
Go to settings and change the target destination to data/data/hosts and then let the app create a symlink. That fixed it for me. I also cleared cache with Cache Cleaner from the Store.

Sent from a Galaxy Note 3 far, far away....
[Android Apps and Games] Samuel IP:
Thanks for your help ... btw i found another solution.

I mounted system using a third party app , then Host file installed without any trouble.

My Device 1(below) :o

GUIDE TO INCREASE REAL INTERNAL MEMORY IN GALAXY Y GT-5360 (NOT LINK2SD METHOD)
[Android Apps and Games] ScOULaris:
Ah, thanks for this post. I recently upgraded to a CM10.2 nightly from 10.1, and I noticed that ads were being "blocked" but the space that they occupied on web pages wasn't being reclaimed as it used to. Turns out I just needed to clear the browser cache and install Busybox. Works great now!
[Android Apps and Games] mrRobinson:
For those having issues applying hosts file as I see on some roms, looks like fix finally in source. I'll wait till he cuts a 2.8 label and throw up a build.
[Android Apps and Games] mrRobinson:
Ok, have the 10/09 build up. Its still 2.7 in the source but i have the changes that fix the applying host file some roms would see. Apparently it would be the roms without the toolbox command (that was the issue).

So you'll see the 10/09 build in the OP but still the labeled 2.7. when the label in source changes to 2.8 I'll rebuild.
[Android Apps and Games] carlospr21:
new release works great on the Note 3
[Android Apps and Games] DriftorX:
New build confirmed working.
[Android Apps and Games] Isambard Prince:
Working! Thanks.
[Android Apps and Games] gospod.tomas:
Hi !

I using rooted xperia E and adaway.Still i viewing ads in apps....How i can slove this problem.
[Android Apps and Games] lumbu:
Failing on HTC One with revolt rom, cant get it to apply either to /system/etc/hosts or to /data/data/hosts
[Android Apps and Games] tmorterlaing:
I'm having a similar issue with this that I had with adblocker through Rom Toolbox Pro:

It doesnt seem to 'stick'. I do all of the above and it seems to work fine- Ive even opened the hosts file and it looks great. Then if I mess around with my phone or reboot it, the adblocker switch flicks to 'off' when i reopen it, and the hosts file seems to have gone back to the way it was before. Any ideas here? Some sort of permissions thing?

(Its not just this actually, Ive noticed a few instances where Ive had to {adb shell mount -wo remount rootfs} to make soemthing sort of work properly, I wonder if Ive done soemthing wrong and managed to 'revoke' my root/su status somehow...any help would be incredibly appreciated.)

Maybe there's some permissions I need to change or seomthing regarding my stsem volume? I'm lost :s
[Android Apps and Games] occtec:
Uninstall adaway, reboot to recovery. Flash super su v1.65 here is the link https://copy.com/kQsQx re-install adaway, try again ;)
[Android Apps and Games] tmorterlaing:
Thanks for the response, but I'm a little confused because I'm running cm10.2 which has an 'in built' su function right? I don't have issues with most apps that require root/superuser? And also if I install super su won't that become my default su manager? I was quite enjoying appless settings based su management :s
[Android Apps and Games] occtec:
It could be the cause of you're issue. I experienced the same until I installed super su :thumbup:
[Android Apps and Games] tmorterlaing:
Cool, so tried that- didn't make a difference. It works, the hosts file is changed, but then it gets changed back to (what I assume is) default on reboot again. And now I seem to be having su issues all over.... is there a tutorial somewhere about switching back to the inherent cyanogen superuser system? Im sure its probably quite simple, just remember messing up somehow when I did it before.

Might restore my phones partions and start again, I feel like they maybe mounting wrong or something. Could all this be to do with how they're mounting or permissions or something? I assumed root + superuser meant I could alter any file I felt like without it reverting back on reboot....
[Android Apps and Games] Jay Rock:
Waiting for that new one :)
[Android Apps and Games] :
Download: AdAway v2.8

(compiled from source on Oct-12-2013, signed and zipaligned)[/QUOTE]

It's me or isn't this download link working??

Gesendet von meinem Nexus 4
[Android Apps and Games] vasilisf7:
Link not working!

GT-N7100 ON STEROIDS...
[Android Apps and Games] guycan:
It's me or isn't this download link working??

Gesendet von meinem Nexus 4[/QUOTE]

Yes not working

SGNote2
[Android Apps and Games] bodos:
can't realize my life without it.
[Android Apps and Games] PerfectSlayer:
I guess all the new versions of SuperSU will have systemless support...

But keep in mind that I also need SuperSU itself for su.d scripts support for example.

Systemless root alone will not allow me to install systemless script for AdAway.

That's why I enable the preference only if if SuperSU >= 2.56 is detected.
[Android Apps and Games] NLBeev:
Yes 'ad.doubleclick..... etc is a part of many url's that present nice ads.

We need an extra step sometimes ....[emoji1]
[Android Apps and Games] skyhirules:
Maybe I didn't make my self clear. I have SuperSU 2.78 SR3, but I'm not systemless. Will the systemless option be greyed out? That's what it should be.
[Android Apps and Games] broomer68:
Why should it? There is no reason why you can't do systemless adaway while system rooted. (apart from being easier to do both at the same time)

Verstuurd vanaf mijn ASUS_Z00A met Tapatalk
[Android Apps and Games] Au5t1n:
Well I appreciate you taking the time to help me with this :)
[Android Apps and Games] skyhirules:
Some posts back they said you can't have systemless AdAway on system root. If it's not that way, then what's the way to make AdAway systemless. Because just ticking the respective box in the settings doesn't work.
[Android Apps and Games] crusader727:
Is there a rss feed for new releases including the download link?

I don't want to use Labs (permanent background process) or Fdroid to update one app.

What do you think about an update checker in AdAway or publish releases on APKMirror?
[Android Apps and Games] underskyzx:
It's not so bad the process is merely for notifications, you can Greenify it if you don't want notifications.
[Android Apps and Games] osm0sis:
Without systemless root you have no su.img to store hosts or the su.d script in, so what you're suggesting makes no sense.

Besides, if you're modifying system for root, there's no benefit to not modifying again for hosts. :confused:
[Android Apps and Games] PerfectSlayer:
Ok. It's clear now. I guess the actual implementation will enable the feature but it will not work if you try to enable it.

I need to handle this case. Thanks for letting me know about it.

That's why I should disable the feature in case of system root.

I'll rework the settings once again to fix it :D

Thanks all for your ideas and your tests.
[Android Apps and Games] smclaughlin3:
I also have 2.78r and it tells me that it doesnt detect root? Please help i have tried the other apk where you have to flash the zip and it doesnt work. Thanks guys.
[Android Apps and Games] drac0:
Hey guys. Was checking my logcat and it seems I have some issues with latest AdAway 3.2 preview on custom Nougat ROM, PureNexus, hammerhead. SuperSU 2.78-SR1.

Google Play Services are crashing trying to connect and repeat connecting to ad servers preventing device to idle thus sucking battery.

GoogleConversionReporter: java.net.ConnectException: Connection refused
Failed to load ad: 2
Starting ad request.

So yeah it just starts to request for another ad constantly over and over. Is this specific to Nougat or Google Play Services 9.8.77? Anyone else seeing this? Thanks in advance.
[Android Apps and Games] SKUndef:
Sorry in advance if this was answered before, i couldn't find any reference. With the new 3.2 preview offering built-in support for systemless mode, how this works for who has already flashed systemless zip in OP? How can i switch to this new mode, simply installing the new version and enabling it, or should i revert someway the zip effect?

Thanks
[Android Apps and Games] osm0sis:
Just check for /data/su.img :good:
[Android Apps and Games] m0han:
:confused: maybe these posts would help:

http://xdaforums.com/showpost.php?p=69370681&postcount=7334

http://xdaforums.com/showpost.php?p=69384482&postcount=7344

http://xdaforums.com/showpost.php?p=69386150&postcount=7346

http://xdaforums.com/showpost.php?p=69387722&postcount=7348

http://xdaforums.com/showpost.php?p=69410155&postcount=7363
[Android Apps and Games] gaston2150:
Hi,

How to pass 3.1.2 to 3.2 when systemless.ZIP is installée?

Thanks for your anwser.

Envoyé de mon XT1039 en utilisant Tapatalk
[Android Apps and Games] rmead01:
I was looking for the same answer and this really didn't help. I'm currently on 7.1 with the systemless zip flashed using a "older" version of adaway. I just saw there is a new version that doesn't require the systemless zip flash. Are there any problems using the updated adaway made for systemless root if we already have the systemless zip flashed?
[Android Apps and Games] NLBeev:
I've installed the version 3.2 (preview) over AdAway 3.1.2. (incl. systemless-hosts-zip)

It is working.
[Android Apps and Games] sirxdroid:
If you want to be clean, I think it's easiest to re-flash system.img and boot.img and re-install SuperSU. That should get rid of what systemless-hosts-zip did. I just did that on my Nexus 6P.