yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] PerfectSlayer:
Hum… Could you check the permissions of the script with « ls -l /su/su.d »?

According to the changelog of SuperSU, su.d is older than your version…
[Android Apps and Games] tag68:
-rwxr-xr-x like I would have expected.

The SuperSU 2.62-3 is a special version. It defaults to systemless, you don't need that echo line to configure systemless to root Motorola devices. No version before and no later version did that. But I don't see a reason why that should influence behavior of su.d-scripts.
[Android Apps and Games] PerfectSlayer:
Does the 3.1 version + systemless zip works for you? Actually, you should be in the same state…

Could you try to remove the script and flash the old systemless recovery zip to check if systemless persists throw reboot or not?
[Android Apps and Games] tag68:
Never tested. As I wrote, it is not really important for me to stay systemless. Just wanted to test that it works.

Will do.Before I do that, one question: why would you expect the result to be different? The script survives. After reboot, I can execute it.

Did another test. Started CatLog, filtered by hosts, went to AdAway settings, tried to activate systemless. Output was:

11-19 23:27:14.374 W/mount (16530): type=1400 audit(0.0:1510): avc: denied { mounton } for uid=0 path="/system/etc/hosts" dev="mmcblk0p41" ino=770 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=0

11-19 23:27:14.374 W/mount (16530): type=1400 audit(0.0:1511): avc: denied { mounton } for uid=0 path="/system/etc/hosts" dev="mmcblk0p41" ino=770 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=0

Denied sounds for me like the reason why it does not work. Right?

Edit: if I manually execute the script, the following log appears:

11-19 23:34:54.614 I/mount (18068): type=1400 audit(0.0:1520): avc: denied { mounton } for uid=0 path="/system/etc/hosts" dev="mmcblk0p41" ino=770 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1

Also denied. But it works. OK, the letter before the command is green I instead of yellow W. Don't know what that means. And it is permissive now!
[Android Apps and Games] PerfectSlayer:
I don't expect the result will be different… But if it works, it means it's different and I missed about something during my installation process.

Strange. I don't understand why you got a « denied ». Do you have any other app or script which tries to bind mount hosts file?
[Android Apps and Games] osm0sis:
Excellent work! So good I thanked you twice on your doubled release post! :p
[Android Apps and Games] Phrodini:
Thanks for the update.this app is a must and it always works
[Android Apps and Games] tag68:
Good point. One difference immediately came to my mind. That flash zip - just had a look at it -brought it own BusyBox. Isn't mount dependent on the BusyBox version? There was an update to Stericson BusyBox about one month ago which I did.

Not long time ago I asked in this thread if the systemless mode/some parts of AdAway is dependent on BusyBox, but no one answered. I think if conditions exist they should be listed on the download site (OP of this thread) and checked before use. Background is that my wife's mobile (same device Moto X Play xt1562, same OS 6.0.1 like mine) is rooted and using AdAway, but not have BusyBox installed. But since Marshmallow there exists mount without BusyBox, right? "which mount" shows /su/bin! Is it dependent on SuperSU?

Flashing will take some time, as my computer which I need for flashing (fastboot boot twrp) is some hours not available.

No, think I would know that. And: The output of mount|grep is empty before manual call of that mount script.

But strange to me is also that SuperSU does not install on Moto devices without that echo systemless line. That's the reason for the use of SuperSU 2.62-3, it works out of the box on Moto devices which later versions do not. Shall I do an update of SuperSU (that's possible as long as it stays systemless which it does - once installed update is possible) to see if it behaves different for AdAway systemless mode? Already tested toggling name space separation mode of SuperSU, but it didn't change anything, so I reverted that change and kept setting off.
[Android Apps and Games] Ch3vr0n:
I initially flashed the zip then 3.1.2 on my 6p. Couple hours ago updated to 3.2 just fine and systemless check box was automatically enabled, did notice one thing. Downloading the hosts went fine, but when it came to writing them AdAway rerequested root access with SuperSU (though su is configured to reported access on updated apps)
[Android Apps and Games] squrl:
Does not work for me on OnePlus 3 + latest community beta 7. I'm rooted using phh's systemless superuser and AdAway won't let me tick the systemless mode checkbox as it is inactive.
[Android Apps and Games] tag68:
Did the test. Flashing systemless zip V2 shows the same result.
[Android Apps and Games] wirelesskebab:
Hello,

With Magisk Manager 2.5, the setting "enable systemless hosts" works with AdAway v3.2 correct? I ask because AdAway build is newer than Magisk Manager 2.5, as the option is grayed out in AdAway with Magisk Phh's SuperUser... I also noticed with a root explorer that the systems/host had r/w permission. :confused:

I don't know much about it at all, so forgive me if it's obvious. :eek:

Edit: Initialized again and enabled the option under Magisk Manager, installed AdAway v3.2 and the option is now selected and grayed out, so never mind my question.

Thanks
[Android Apps and Games] osm0sis:
phh's alone doesn't provide a way to do systemless mods, even though it is a systemless root. You need to add Magisk to your setup or use SuperSU.
[Android Apps and Games] squrl:
Oh, I see now, my bad. I was informed earlier in this thread that ticking the systemless mode checkbox does the same thing as flashing the systemless prepration zip, so I thought it should work regardless of used variant of systemless superuser (chainfire's or phh's). And it worked for me until I flashed the latest community build of OxygenOS, so I though maybe it has something to do with that. I'll try to enable systemless hosts in Magisk and see if I can get it to work this way. Thanks for the explanation.
[Android Apps and Games] PerfectSlayer:
Thanks for the test! But if the zip script doesn't work, I don't know what I can fix for you.

It looks like there is trouble with your SuperSU installation (due to busybox?). Maybe an upgrade could be useful to fix the run of /su/su.d/ scripts at boot but I'm not sure it will help :(
[Android Apps and Games] tag68:
Long time I didn't know that I have systemless root. For me it is not a big problem to use AdAway not systemless. I'm just curious why it doesn't run, and in long term I would be glad if OTA system updates had a chance to work for me also.
[Android Apps and Games] Smac7:
I am getting "copy of hosts file failed" on my 7.1.1 pixelrom for the nexus 5x. I am using superuser 2.78 sr4 for root and as far as i can tell it does not flash as systemless by default. Any idea on how to get this working?

EDIT: fixed. I needed to flash the systemless zip. Maybe the version of su i had actually was systemless.
[Android Apps and Games] Mr. Y:
I got ads popping up every time i got my data on. How could i remove them?
[Android Apps and Games] githyanki:
If you have them while on data, but not on WiFi, check your APN for a proxy. Also make sure data saver is off in chrome.
[Android Apps and Games] :
hi, im using oneplus-3 AICP 7.1rom how to get adaway worked?
[Android Apps and Games] Portgas D. Ace:
1. Flash systemless SuperSU.

2. Install AdAway.

3. Open AdAway and activate systemless mode (optional).

4. Download hosts files through AdAway and apply them.

5. Reboot.

That's it.
[Android Apps and Games] kojak1989:
I have a problem, even though you select daily auto updates hosts nothing does, I have to do it manually, how to fix it?
[Android Apps and Games] :
Thanks, i enabled root via developer options and got it working... last time i was using different version for adawaya and thats why it fails!
[Android Apps and Games] cyberdionisio:
Hi, Just for anyone in 6.0.1 with phh's Superuser. I've to flash the zip with noverity in config.txt to make Adaway work pointed to /system/etc/hosts. I've a Nexus 6p stock.
[Android Apps and Games] zebul666:
copy of hosts file failed

hi

for the first time i use adaway, now on cyanogemod 14.1, I got an error : "Failed copy of hosts file" at the last step of installation.

I don't understand why ? I have 111MB of spare space on /system so this should be enough, right ?

And adaway does not complain about not having root so it should be ok (I gave him root earlier) ?

So why does it fail ?
[Android Apps and Games] ssauger:
Make sure you have installed newest version from opening post. Then it should work.

sent from Nexus5
[Android Apps and Games] just a bird xo:
I'm having an issue trying to get adaway to work. I uninstalled playstore version & clean installed v3.2 & it doesn't detect root. I'm using Magisk v9 & superSU 2.78
[Android Apps and Games] notorious.dds:
http://xdaforums.com/showpost.php?p=69328864&postcount=7289
[Android Apps and Games] J_E_F_F:
Thanks for the beta update, worked on a cm14.1 nightly on a oneplus one, just enabled root from the developer options and no other changes were needed.
[Android Apps and Games] just a bird xo:
I attempted it but didn't work for me, unfortunately.
[Android Apps and Games] awdrifter:
I'm on Android 6.0.1, it seems like it's not possible to change the permission anymore. If I have an Android 4.3 phone, is it possible to copy the host file from that then paste the data over? Thanks.

Edit: Just tried it, it didn't work. Seems like Google is helbent on keeping that ad revenue.
[Android Apps and Games] NLBeev:
AdAway is a hosts file manager. A useful app that builds and writes URLs to be blocked to system/etc/hosts.

When you can't use AdAway but have root access you can do it yourself.
[Android Apps and Games] awdrifter:
I tried copying a host file created by AdAway on another phone (Samsung Note 3 Android 4.3), the copy failed. So it seems like Google really don't like you to block their ads.
[Android Apps and Games] NLBeev:
When you have root access and you can't write to system/etc you need probably to make more free space in the system partition. Or you have to use the so called systemless-zip-file that's binds the folder system/etc to a location on the data partition. Mostly su/etc.
[Android Apps and Games] awdrifter:
I tried using Root Checker, it says I have root. When I tried to use SuperSU, the binary update fails. However, Superuser works. So that's why I say I have partial root. My phone is the ZTE Axon 7, so not much support on that phone. I think I'll live with it. The only 2 apps that I want but don't work are AdAway and Titanium Backup.
[Android Apps and Games] NLBeev:
Do you have a root explorer or a text editor that can view/edit/write to system/etc?
[Android Apps and Games] awdrifter:
Yes, I also tried using ES File Explorer, I was able to browse the host file and edit it. But when I tried to save the changes, it got denied.
[Android Apps and Games] chenzen666:
many thanks i have aicp_serranoltexx_n-12.1-NIGHTLY-20161126 on Samsung Galaxy S4 mini I9195 and it works without problems :)
[Android Apps and Games] NLBeev:
That could be caused by es file explorer.

Try another rootexplorer.
[Android Apps and Games] lucastracq:
es file explorer doesn't work with systemless root, maybe that's the problem
[Android Apps and Games] NLBeev:
Since the SELinux security the older versions of es can't write to the system partition.

The recent version is not advised; follow the link

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

https://en.m.wikipedia.org/wiki/Security-Enhanced_Linux
[Android Apps and Games] shakedmeirx:
how do i get it to block youtube ads?
[Android Apps and Games] Nergal di Cuthah:
for that you need xposed and youtube adway (and a certain version of youtube). They work independently of this adaway, but can be used alongside this adaway.
[Android Apps and Games] tinko975:
Works good as always..
[Android Apps and Games] Phrodini:
There's also the adfree YouTube app option
[Android Apps and Games] NLBeev:
Not seen for Android yet.

For PC:

https://chrome.google.com/webstore/detail/adblock-for-youtube/cmedhionkhpnakcndndgjdbohmhepckk?hl=en
[Android Apps and Games] awdrifter:
I tried different apps like Root Explorer and Root Browser, none of them can change the permission or edit the file like on my Note 3 with Android 4.3. I even softbricked my phone trying to get SuperSU binary to install. So I'm not going to mess with it anymore, I'll use AdBlock Plus for now.

---------- Post added at 10:05 PM ---------- Previous post was at 10:02 PM ----------

I think the SEL is the problem. I wish my phone (ZTE Axon 7) came with Android 5 rom, then I don't need to deal with this. But I guess Google's got to protect their ad revenue stream.
[Android Apps and Games] pkelly517:
Subscribe to YouTube Red.
[Android Apps and Games] NLBeev:
Yes, I am sorry for you. Maybe you can find a permissive kernel. If not, you can stop.

https://wiki.gentoo.org/wiki/SELinux/Tutorials/Permissive_versus_enforcing
[Android Apps and Games] Phrodini:
http://xdaforums.com/android/apps-games/app-patched-ad-free-youtube-apks-t3449312/page25 works fine on my phone running android 7
[Android Apps and Games] awdrifter:
Yea, I'm not going to mess with it anymore. I'm afraid I will brick my phone for good if I continue to mess with it. There's not even a video on how to flash it back to stock, so if I mess up more the phone would be completely bricked. It's obviously something that ZTE (or Google) put in to stop people from messing with it.
[Android Apps and Games] non1oson:
I had a quick search in thread but I'm a bit unsure still. do you need root for adaway to work? I have an LG v20 stock.

thanks all!
[Android Apps and Games] Cryptecks:
Yes. [Root] is the second tag in the title of this thread...
[Android Apps and Games] non1oson:
o sh!t it is too!! hahahaha thank you man :cyclops::cyclops:
[Android Apps and Games] kryzeK:
Android 7.1+ App Shortcuts icons

Hi, [MENTION=3355398]mrRobinson[/MENTION]!

I'm here again because I noticed that the App Shortcuts icons on latest update are white/blank, so I've decided make it (for Lists, DNS and Preferences).

I tried to be as close as possible to the App Shortcuts of apps by Google: Circle 48x48 (I do not know if this is correct ) with #F5F5F5 background and 24dp Material Design icon with AdAway accent color.

They are attached, again, feel free to use them. If you need any size adjustments or upload them elsewhere, just tell me. :D
[Android Apps and Games] Razorphyn:
Can't find SU binary

I have done a full wipe of my nexus 5x, updated it to the latest 6.0.1 version(official one, not a rom) and installed SuperSU 2.78(from the zip through twrp).

However when I open AdAway (version 3.2) it says that no SU binary has been found and the only option is to exit, no log is registered in the superSU app.

This is the only app that gives me this problem, is there any solution?

P.S. Root Check states that binary is located in /su/bin/su, ADB Root is enabled and Selinux is "Enforcing"

P.P.S. Order of installation: android 6.0.1 -> SuperSU -> ElementalX Kernel -> some apps like xposed and so on -> AdAway

P.P.P.S Nevermind, found this solution in the previous post: http://xdaforums.com/showpost.php?p=69328864&postcount=7289

1. Boot into TWRP

2. Mount system partition (do NOT check the "mount read only" box).

3. Open the terminal and execute the following:

Code:
[Android Apps and Games] TaranQ:
Facebook problems (mobile page)

I have been usign Adaway for ages without any problems.

For FB I use the mobile page in Chrome as I don't want to use the monsterous FB app.

Since a few days however I noticed my FB mobile page displaying only text in a strange layout without any images.

Have been searching for a while unable to find the solution

I am running Android 6.0.1 Google Chrome with data saving turned off

When I turn off Adway ad blocking the mobile FB page looks and acts normal

When switching on again it tends to work at first (links often not working to pages or contacts or blank like emoji etc) but after a while I get the scrammbled text page again anyhow......

Any ideas?
[Android Apps and Games] PerfectSlayer:
For those who AdAway can't find root, could you paste the result of the following commands and give us your root version/installation details:

$ which su
$ echo $PATH

(The dollar ($) in front of command means to run command as user, not root. Do not type the dollar symbol before the command ;))

For the record, AdAdaway looks into several locations before using the one in default PATH. With those commands, we should able to find where su binary is and why AdAdaway can't find it.
[Android Apps and Games] christboanerges:
please help adaway cant block ads in chrome(data saver off) .

os : android 7.1
[Android Apps and Games] fmc000:
blocks them all for me (same OS) so the problem is on your side. Please check for data proxy on your side.
[Android Apps and Games] Hitti2:
Hi, is there a way to implement ad blocking in adaway for bitcointalk.org?

For example ads show up here on threads.

https://bitcointalk.org/index.php?topic=1691917.0
[Android Apps and Games] Pkt_Lnt:
I have root and Adaway requested the symlink and it worked so Adaway runs perfectly. However the "use systemless root" is greyed out. Maybe this can help solve that?

shamu:/ which su
/sbin/su

shamu:/ echo $PATH
/sbin:/system/bin:/system/xbin

Nexus 6, Pure Nexus 7.0.0_r19, PHH superuser-r259
[Android Apps and Games] PerfectSlayer:
Yes, you need to have an application which bind the /system/etc/hosts to a modifiable partition (different that /system partition) at each reboot.

As you do not have SuperSU, you need Magisk to take care of this task.
[Android Apps and Games] Pkt_Lnt:
I don't need Magisk. I used an adb shell from my computer: It survives reboots.

su --bind /data/data/hosts:/system/etc/hosts

I was hoping to help your su detection process.
[Android Apps and Games] PerfectSlayer:
Nice! I don't know SuperUser could persist bound mount point throw reboot!

So if it works, it could be nice to support phh's SuperUser for systemless mode using this command :D

And according the changelog, it's an old feature:

What do you think about it [MENTION=3355398]mrRobinson[/MENTION] ?

Back to your issue, could you post your mount points using the following command ?

# mount
[Android Apps and Games] mrRobinson:
Yes, I think it'd be good :svetius:
[Android Apps and Games] Pkt_Lnt:
Yes, here is is. Happy to help.

shamu:/ # mount
rootfs on / type rootfs (ro,seclabel,relatime)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1505764k,nr_inodes=172033,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,seclabel,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt type tmpfs (rw,seclabel,relatime,size=1505764k,nr_inodes=172033,mode=755,gid=1000)
none on /config type configfs (rw,relatime)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)none on /dev/cpuset type cgroup (rw,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent)
pstore on /sys/fs/pstore type pstore (rw,seclabel,relatime)
/dev/block/mmcblk0p41 on /system type ext4 (ro,seclabel,relatime,data=ordered)
/dev/block/mmcblk0p38 on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,data=ordered)
/dev/block/mmcblk0p1 on /firmware type ext4 (ro,context=u:object_r:firmware_file:s0,relatime,data=ordered)
/dev/block/mmcblk0p26 on /persist type ext4 (rw,seclabel,nosuid,nodev,relatime,data=ordered)
/dev/block/mmcblk0p21 on /fsg type ext4 (ro,context=u:object_r:fsg_file:s0,nosuid,nodev,relatime)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
tmpfs on /storage type tmpfs (rw,seclabel,relatime,size=1505764k,nr_inodes=172033,mode=755,gid=1000)
/dev/block/dm-0 on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,nodiratime,discard,nobarrier,noauto_da_alloc,data=ordered)
/dev/fuse on /mnt/runtime/default/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /storage/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/read/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/write/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
[Android Apps and Games] PerfectSlayer:
Okay, that's why systemless mode is disabled for you.

There is no trace of mount point for /system/etc/hosts file. Are-you sure /system/etc/hosts is well bound to /data/data/hosts?
[Android Apps and Games] max-damage:
Hello to everyone.

I am having problem with installation of latest AdAway 3.2 on my Xiaomi mi4c.

I am using MIUI 8 stable EU release. Phone is fully rooted and all apps rooted/nonrooted works fine.

When I am trying to install it, it gives me error low space. I have plenty of available space on my phone. System partition over 600MB available. Chache over 320MB available. Data over 6GB.

Please help, many thanks
[Android Apps and Games] Pkt_Lnt:
According to this, yes, since they show the same size. Is there a better way to detect?

shamu:/ # ls -l /data/data/hosts /system/etc/hosts
-rw-r--r-- 1 root root 2107819 2016-11-07 00:57 /data/data/hosts
-rw-r--r-- 1 root root 2107819 1970-01-13 14:54 /system/etc/hosts
[Android Apps and Games] PerfectSlayer:
In order to support systemless mode for phh's SuperUser, we need to find a way to:

- Mount bind hosts file: OK

- List bind files to check if systemless mode is enable: KO

- Unmount bind hosts file: KO

About listing, I checked the source code of su and there is ls feature with --ls.

Can someone test if one of those commands works?

# su --bind
# su --ls
# su --bind --ls

Otherwise, there is a /data/su/binds file. Can someone with bind mount hosts file could paste the content of the file here?

I can't reach my test device (with a dedicated phh's superuser rom) until a whole week... So few help will be needed in order to solve those points. Thanks!
[Android Apps and Games] lowreeds:
Hi,

Adaway version 3.2 can't see my root on my HTC 10 running stock Nougat.

I rooted with Chainfire's tool from here. http://androiding.how/htc-10-nougat-root-twrp-recovery/ I believe this is systemless root.

My device shows rooted on root checker app but when i try to start Adaway it fails with "Rooted Android required" message. All other root apps working fine.

no evidence in supersu that adaway even asked for permission. Please help.

which su
/su/bin/su

echo $PATH
/su/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/su/xbin:/system/xbin
[Android Apps and Games] PerfectSlayer:
Ok guys (and girls), it seems few of you have issues and I'm okay with that.

But if you would like some help, ensure you give us enough information to diagnostic your issue. Provide at least:

The version of AdAway you installed,

The details about your ROM: Android version? Stock or custom rom?

The details about your root installation: Chainfire's SuperSU or phh's SuperUser? Which version? Systemless or not?

In case of issue with root detection, the result of those commands (as user):

$ which su
$ echo $PATH

In case of issue with systemless, the result of those commands (as root):

# mount

In case of crash or unexpected behavior, please enable « Debug Logging » in preferences and past a logcat here using (on your desktop):

$ adb logcat -s AdAway

We keep asking the same information for each bug report and it's hard to find if it's real application issues or just a missed installations/wrong configurations.

With detailed bug reports, I hope we could quicker find bugs and fix them before other users experience them. Thanks all :good: