yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] PePeMoke:
Thanks but same problem when I try to install it..
[Android Apps and Games] JochenP:
Do an uninstall first
[Android Apps and Games] VincentJoshuaET:
I see ads on that app. Maybe you're subscribed to Ad Free?

---------- Post added at 10:50 AM ---------- Previous post was at 10:50 AM ----------

Not everyone wants those features. Thanks anyway
[Android Apps and Games] ettore88:
Hi guys!!!Just a question.I have a Samsung S5(klte).Do i need to flash systemless host v2 zip?Yes or not?Thx in advance.
[Android Apps and Games] Toutatis_:
No, I have never subscribed to XDA Ad-Free. :confused:

---------- Post added at 12:21 ---------- Previous post was at 12:06 ----------

You can, but it's not mandatory. This systemless zip is useful only if you don't want AdAway to write on the system partition. If you don't care, you can just install the APK and apply the hosts file(s) from the application itself.

Read OP:
[Android Apps and Games] davidvoo:
Thanks. It works now.
[Android Apps and Games] z89x23:
Thanks for this..
[Android Apps and Games] MatVekk:
Work in Miui 8 [emoji41]

Inviato dal mio Xiaomi RedMi Note 2
[Android Apps and Games] s2jpark:
Doesn't work on pure nexus
[Android Apps and Games] Pkt_Lnt:
oh baloney I have it on two devices with PN

Nexus 6 - Pure Nexus [MM 6.0.1] / ElementalX /// Nexus 7 (2013) - Pure Nexus [MM 6.0.1] / ElementalX
[Android Apps and Games] mitchdickson:
User error.
[Android Apps and Games] s2jpark:
I clean flashed the latest and uninstalled the previous version. Not sure what else to do but its not baloney when it doesn't work for me. I should have clarified, my install of pure nexus. There feel better.
[Android Apps and Games] lampard464:
Sony z5 not working

E6603 cihazımdan Tapatalk kullanılarak gönderildi
[Android Apps and Games] Pkt_Lnt:
You are probably systemless and have not done the compatibility mode fix or flashed the Adaway systemless file. And with the amount of info you provide, only guesses can be offered in return.
[Android Apps and Games] osm0sis:
Even if the root is systemless, Pure Nexus is a custom ROM so there shouldn't be any issue accessing /system. The APK should work either way, as long as root works.
[Android Apps and Games] Pkt_Lnt:
True, however PN comes with /data/.supersu with both the options set for systemless, and many users don't catch that and have some problems. With no real info from the user to troubleshoot, I just gave them some ideas to germinate.
[Android Apps and Games] s2jpark:
Thanks for the feedback. I'll try the systemless option. Truly appreciate it.
[Android Apps and Games] piccit:
What specifically is not working?
[Android Apps and Games] s2jpark:
As soon as it runs I get an error and it force closes.
[Android Apps and Games] piccit:
I had the same issue when I tired to restore data from TiBu. Try wiping the app's data
[Android Apps and Games] githyanki:
XDA is not meant to coddle the ignorant masses. Please act like you belong here and provide some details when trying to get assistance. In every instance of reporting an issue, you need to specify the following data:

Phone

ROM

What steps are taken to get error

Error (Include exact wording of the error message or a screenshot)

Logs (Somewhat optional, but helpful. Be prepared to supply them if asked)

Anything less than this makes people think much less of you and makes providing assistance difficult or impossible.
[Android Apps and Games] stokholm:
Why isn't v3.1.2 released on F-Droid?
[Android Apps and Games] osm0sis:
Because they roll their own, and we have the primary active developer. ;)
[Android Apps and Games] Sacob:
i didn't understand anything but ok xD
[Android Apps and Games] haremmon:
After installing host file through adaway, may I greenify this app or should I let this app running in the background?

All I can tell if this app runs in the background is to check updates. But correct me if I'm wrong.
[Android Apps and Games] jackdubl:
It doesn't run in the background at all, according to System Panel.
[Android Apps and Games] zzantetsukenn:
Crossbreeder's built in adblock is not working for 4.3. There's a work around but its not working for me (it might work for you) so I use crossbreeder + adaway for now. You dont have to uninstall crossbreeder. Just try to run the DISABLE ADBLOCK command found in CB thread. Adaway will be enabled after reboots and your entropy is still 4096.
[Android Apps and Games] DecypherT:
Yes I think you can, as long as you don't use the webserver (not sure about this though). Adaway modifies the "hosts" file. With no use of the webserver adaway is just used to update.

In greenify you can lookup your app. If it's has the cloud icon in the upper right corner with "Gcm" written in it. It is better not to greenify that app. This because, for example it uses push messaging.

Send from my Nexus 4
[Android Apps and Games] Aerowinder:
Yep. Perfectly safe.
[Android Apps and Games] SleemLDJ:
Is there a way for me to make this app work on Android 4.3?

Whenever I get to parsing party, it freezes on me and crashes.
[Android Apps and Games] bartolinio:
but it seamlessly works on 4.3
[Android Apps and Games] Mystique:
Custom 4.1.2 tw Rom here..

I can't read the error message that appears.. but

Tapatalk says something about the apn also Google play will not load..

Went back to previous version.. rebooted and updated without any of the previously described problems..
[Android Apps and Games] zeppelinman_2000:
On cyanogenmod 4.3 emmc 9/10/2013 for nook have had zero problems with anything, great work thanks.
[Android Apps and Games] Sw33t_Lov3r:
It works on Razr i stock ICS n.n

Thank you Mr. Robinson n.n

I'm glad to report AdAway v2.5 is working fine on my Motorola Razr i n.n I haven't seen a single ad since its instalation.

I do support developers by buying their apps!

I'll update to v2.7 whenever I see an ad showing up! For now it's perfect n.n

Thank you again!

- L.
[Android Apps and Games] justin860:
It's stuck on this

Lg optimus g pro cm10.2
[Android Apps and Games] Onecton:
Confirming full functionality on obviously rooted Huawei ascend Mate with B221 Firmware
[Android Apps and Games] AndrewM3:
Youtube ads

I downloaded adaway 2.7 but for some reason it is not blocking the ads in youtube. On my computer in google chrome i have adblocker and it blocks ads at the beginning of the videos but on my android phone that's not the case. Can anybody tell me if there is anyway to block those ads before a youtube video?
[Android Apps and Games] jwds1978:
With Greenify (Donate) you can Greenify apps that utilize GCM.
[Android Apps and Games] byron1985:
The issue I was having was Google app verification was turned on for me. Once I turned it off everything works great
[Android Apps and Games] billplowman:
Anyone still having trouble with the "copying of hosts file failed" issue, try installing BusyBox. It did the trick for me!
[Android Apps and Games] anwedr:
Yes. Every since installing 2.7. Will give that a try.
[Android Apps and Games] mysdim:
Adaway 2.7 still crashs on my One with Slim Bean 4.3 if one of the selected sources is not responding. At the moment I have deselected the second source from hosts-file.net.

Gesendet von meinem One mit Tapatalk 4
[Android Apps and Games] occtec:
I get the same problem on my nexus 4, I'm glad I'm not the only one.....

EDIT: v2.5 has fixed all my problems ;)

NEXUS 4 | PA3.99 | FAUX JWR[M]
[Android Apps and Games] ChasingShadows:
because the F-Droid maintainers decide on their own ... what an when they release something. They even compile themselves ...
[Android Apps and Games] stokholm:
Damn. Didn't know that. Thanks!
[Android Apps and Games] NLBeev:
It is a lot of work to find the url's of ad and malware. Therefore Just an idea.

Adaway writes a long list to the file system/etc/hosts.

With a RootExplorer the file properties of the hosts file may give an indication (date, size)

With a host editor you can ad url's you want to block.
[Android Apps and Games] NYLimited:
If I understand you correctly I'd say not a good idea. Whenever you update the list via AdAway the hosts file is overwritten and any manual entries will be lost.

It is much safer to use app's builtin blacklist and whitelist features to manually add addresses. These will survive updates.
[Android Apps and Games] Pkt_Lnt:
It won't work. Use the tcpdump feature in the menu and add them to your blacklist.
[Android Apps and Games] NLBeev:
Yes that's true. And thx. I should have mentioned that a backup of the hosts file and some other files (layers) is useful, because when flashing a new sytem.img(update) this files can be cleared/overwritten.
[Android Apps and Games] Pkt_Lnt:
Just updating Adaway will over write them.
[Android Apps and Games] NLBeev:
Yes I know and that's ok. I only show my way of recovery.

Because I am using a lite stock rom (Danvdh) and after flashing the monthly update, I have to restore some files.

(I am aware that Adaway could do the same)

---------- Post added at 09:57 PM ---------- Previous post was at 09:00 PM ----------

I compared the Adaway 3.1 and 3.1.2 'hosts'.

There are differences.
[Android Apps and Games] vasilis_:
do I have to flash anything throughth TWRP first or just install and enjoy?
[Android Apps and Games] ktmom:
If you are running systemless root, there is a patch in the OP you need to flash separate from the app apk.
[Android Apps and Games] Cosalich:
Anyone have an idea of what hostfile I can get that will block the new textra ads?
[Android Apps and Games] ktmom:
AdAway > Menu > Log DNS Requests

Go to the app where you get ads and then go back to AdAway and look at the log. You can then add those ip addresses to the hosts file by long posting on the entry and coding black list.
[Android Apps and Games] NLBeev:
And ... also try Adaway - 3dots menu - Scan for Adware
[Android Apps and Games] mko000:
Only if you also need AdAway to be "systemless".
[Android Apps and Games] vasra:
"Copy Failed" on "Applying Hosts" Root rights Given / SuperSU works

I have the following issue with AdAway 3.1.1 (and the latest 3.1.2 from this thread) with my Note 3 N9005 on Custom ROM (TW based) 6.0.1.

0. My TWRP is v2.8.70, but I have also tried these with v3.0.2-1

1. I have SuperSU v2.65 (came with ROM, works with all other root apps, grants right properly). 2. I have also tried SuperSU v2.71 (March 2016) and SuperSU v2.72 beta (May 2016)

3. I have tried AdAway v3.11 (F-droid install), AdAway v3.12 (from this thread)

4. AdAway installs ok

5. AdAway asks for Root rights upon "Download and Install Hosts" and SuperSU is able to grant them

6. AdAway gets & parses the hosts ok

7. Upon "Applying Hosts file" AdAway states "Copy Failed". Hosts file remains empty (0 bytes)

8. I had already given permission to Adaway to access storagefrom the System Application Manager

9. I had previously flashed the " AdAway_systemless_hosts_v2.zip" from the OP and rebooted (with cache/dalvik wipe) via TWRP

10. I have tried FULLY unrooting via SupersSU (from SuperSU settings), rebooting and re-flashing SuperSU (various versions) via TWRP and trying again to use AdAway

11. I have cleared Data/Cache storage of AdAway via Android System Application manager

12. Re-checked that Adaway Target hosts file is /system/etc/hosts in Adaway settings

13. I have Terminal Emulator and it is able to get root (su in terminal changes prompt from $ to # and Terminal asks/is given root rights)

14. When I try the following command from terminal as root:

cat 127.0.0.1 localhost > /system/etc/hosts

I get "Can't create /system/etc/hosts: No such file or directory"

15. I have verified via SuperSU app that terminal, adaway and others have proper root rights. I have tried deleting the rights, trying again in the apps, and re-granting them the rights. Nothing seems to solve this.

16. Using Root Explorer v4.0.1 (by Speed Software) , I can mount /system/etc as RW and I can create files there, BUT I cannot create a file titled "hosts" in /system/etc/. Any other name works, but "hosts" creation files, even when /system/etc/ is mounted as RW.

17. In terminal, under /system/etc/, command : ls gives a list of files including a file:

hosts

18. Command: "ls -al hosts" or command "chown root hosts" or command "chmod 744 hosts" or "rmdir hosts" or "rm hosts" gives the error:

hosts: no such file or directory

RESULT: AdAway (nor any other software) cannot WRITE to /system/etc/hosts file

I am at a loss to explain what is happening. There is a "file" at /system/etc/hosts.

I can't access /system/etc/hosts, I can't remove it. It's not a file. It's not a directory. It's not a hard link or symlink. Yet I have full RW access and root rights for /system/etc and I can edit/delete/remove any other file in that location.

Any ideas?

EDIT: I have scanned my phone with Malwarebytes Anti-Malware, 360 Security, Kaspersky Internet Security and F-Secure Mobile Security. Nothing found. I have also fully uninstalled the aforementioned apps, as not to let them mess with/protect the hosts file in any way.
[Android Apps and Games] NLBeev:
Read you post and got the following idea:

It is possible an app is looking for 'hosts', and because of this it is read only.

My idea is to use the file manager of TWRP recovery and and delete a possible 'system/etc/'hosts'.

2nd idea is to use TWRP to copy a self-made 'hosts' to 'system/etc'
[Android Apps and Games] vasra:
This actually occurred to me and I had just tried it.

Result of trying to delete (rm) /system/etc/hosts in TWRP File manager (v3.0.2-1):

Updating Partition details...

... done

Full SELinux support is present.

MTP enabled

Then nothing. No rm command is executed. No success exit code. As if the whole rm is not even executed (?).

File manager shows still existence of an object named "hosts" after this operation. Problem is not resolved.

I also tried renaming the file in TWRP/File Manager (with System mounted as RW of course):

rename /system/etc/hosts : "process ended with ERROR: 1"

So at least I got an exit code now ERROR 1, which according to Linux 'rename' command man page only means:

"1 all rename operations failed"

Not very useful :D

BTW, I also tried chmod, chattr and lsattr in TWRP terminal. All report "/system/etc/hosts no such file or directory". Funnily, in TWRP terminal ls command also cannot find file/directory titled hosts. But if I view files in TWRP File manager, it sees the file hosts :laugh:

So there is something at /system/etc/hosts, which cannot be deleted, not even in recovery. This is getting interesting :D

I think the result will be the same as above with rm/rename commands in TWRP file manager.

I will try ADB PUSH from Android SDK next. Time to re-install Android studio.....
[Android Apps and Games] tag68:
Now you should investigate: What does the systemless file, and why did you flash it?

Hint: Mount bind /system/etc/hosts .... guess it will help a lot to know that ;)
[Android Apps and Games] xzaxox:
Adaway enabled and still ads in YouTube. Tried to google resolution but nothing helps.
[Android Apps and Games] Ja_som:
AdAway does not block in YouTube... There is Xposed module for that...
[Android Apps and Games] vasra:
... because in OP#1 it was stated that that IF you run Systemless SuperSU (2.7.4 beta, which I did run), you need to install "AdAway_systemless_hosts_v2.zip", which I did flash. BTW, the problem persisted even before installing "AdAway_systemless_hosts_v2.zip".

I checked the AdAway_systemless_hosts script, it runs:

mount -o bind /su/etc/hosts /system/etc/hosts;

However, running umount (from TWRP terminal) results in "No such file or directory".

I also checked that there are no mount points referring to /system/etc/hosts in /etc/fstab. The same for /fstab.qcom (nothing there either).

I also booted into Android and ran as SU from terminal command :

mount | grep hosts

And got zero results (i.e. no mount/bind points for /system/etc/hosts). I don't understand...

I also tried setting the AdAway target to Custom target:

/su/etc/hosts

But running "Download files and Apply Ad Blocking" in AdAway results in:

"Not enough space"

Somehow there is no space on /su. My phone has plenty of free space.

I think I need a little bit more hints :D
[Android Apps and Games] xzaxox:
Does it block YouTube ads earlier? Cause I just have been seeing these about few weeks now.
[Android Apps and Games] vasra:
Symlink Missing / Symlink creation successful / ...Missing -loop

I have trouble creating Symlink from target /data/hosts to /system/etc/hosts.

1. I start AdAway v3.12 and press "Apply .. Ad blocking."

2. AdAway fetches and parses all files

3. Upon "Applying hosts file", I get the error:

"Symlink missing

Symlink from your target to /system/etc/hosts is not existing

Do you want to try creating a symlink""

4. I press: YES. AdAway responds:

"Symlink creation successful

Do You want to reboot?"

5. I press: YES. Phone reboots.

6. I go back to AdAway and press "Apply ad-blocking".

7. I get again:

"Symlink missing"

8. I also tried manually creating a symbolic link from /system/etc/hosts to /data/hosts, but:

ln -s /data/hosts /system/etc/hosts

results in:

/system/etc/hosts no such file or directory

So I cannot create the symbolic link manually (from terminal as SU).

Thus, I'm getting a MISSING -> SUCCESS -> MISSING -> SUCCESS .... infinite loop.

Now (currently running non-systemless SuperSU 2.62-3 root) on MM 6.01 with leankernel.

Related to the "AdAway_systemless_hosts_v2.zip" script:

I have nothing in /su

There's no su.d there. There's no 0000adaway.script there.

I have searched the whole phone for 0000adaway.script. None found.

This seems to indicate that the "AdAway_systemless_hosts_v2.zip" never successfully installed on my system.

YET, there is an object in the filesystem at /system/etc/hosts. It cannot be umounted, it cannot be rm'ed, it cannot be renamed/moved, nothing works. I has no contents, it doesn't point anywhere, it can't be altered (even as SU with /system mounted as RW).

Something is interfering with the creation of the symlink to /system/etc/hosts. Adaway reports success, but it doesn't survive boot.

Can't get AdAway to work at all.

Any help? Please :laugh:
[Android Apps and Games] :
Sure it does. I used it no problem. Did you remember to apply the hosts? That's a step that is sometimes missed.
[Android Apps and Games] guhvanoh:
[MENTION=1810084]vasra[/MENTION], what is the output of ls -al /system/etc/*ost* ?
[Android Apps and Games] kyzn:
It does. This was one of the first apps that I installed after flashing Pure Nexus.

Grant access and download host?
[Android Apps and Games] piperx:
Works fine here also on pure nexus
[Android Apps and Games] vasra:
From Android Terminal emulator:

user : $ su
root : / # ls -al /system/etc/*ost
[B]/system/etc/*ost: No such filer or directory[/B]

if I do basic ls without host target, but for the whole /system/etc/ directory, I get:

ls -al /system/etc

.... < snipped a lot of output >

-rw-r--r-- root root 0 2008-08-01 15:00 hidden_apks_list.txt

lstat '/system/etc//hosts' failed: No such file or directory

-rw-r--r-- root root 2767 2008-08-01 15:00 init.ath3k.bt.sh

-rw-r--r-- root root 1773 2008-08-01 15:00 init.crda.sh

.... < snipped a lot of output >

So, there is *something* at /system/etc/hosts. It's just not a file or directory and it fails to respond to cat/ls/cp/mv/rm/rmdir/chmod/chown/chattr/umount or any other command that I can think of.
[Android Apps and Games] NLBeev:
Maybe it's time to go back to the basics.

Is there write access in system/etc ?

Copy a small file there with RootExplorer.

On an error there is something wrong with root access.
[Android Apps and Games] ktmom:
The first ls command should have had two * as in 'ls -al /system/etc/*ost*'

Also wondering, why are there two / in the path listed below the second ls command?
[Android Apps and Games] beepsilver:
Sorry, I don't have the time or inclination to go through this forum topic to find out if this issue has already been reported.

After downloading the host file, host sources, etc., while in portrait mode and I then lay down the phone, the phone will sometimes shift over to landscape mode depending how I set the phone down....when this happens, the download has to be reaccomplished before it can be applied.

Also a feature request: I always reboot after applying the download; how about an option to always do this just as there's an option to never reboot.

I tried to let the developer(s) know this thru github I believe it is, but they require a user/pass to do that and I don't need another account in anything :)

Thanks for listening and please forward as necessary. Thanks.
[Android Apps and Games] vasilis_:
and what a systemless root is? how will I know if I have a systemless root :) ???

You mean a rooted device?
[Android Apps and Games] ktmom:
This is off-topic for AdAway but....

Systemless root is a method to root without modifying the system partition. If /system is modified it's not "systemless". Read more on systemless http://www.xda-developers.com/chainfire-releases-root-for-android-6-0-without-modifying-system/

If you are using SuperSU, then if SuperSU > Settings > Install SuperSU into /system shows it's already a system app, then you're running in system mode.

If your device is not rooted, AdAway won't work.
[Android Apps and Games] NLBeev:
You will miss useful info.

"while in portrait mode and I then lay down the phone, the phone will sometimes shift over...."

That is normal; rotation can be turned off.

"Reboot.....how about an option to always do this just as there's an option to never reboot."

Many user are happy when there are no automatic reboots.
[Android Apps and Games] vasra:
I did, in the first two posts.

0. I am rooted, have busybox installed (verified) and root works incl. Giving access to AdAway and File managers editing system files (tested)

1. /system is mounted as RW (tested)

2. I can edit/delete/create/move/rename any file under /system inc. /system/etc

3. I can NOT edit/delete/create/move/rename ONLY and ONLY the file /system/etc/hosts

So, it's a riddle, wrapped in a mystery, inside an enigma :)

Soon I will just re-install the whole ROM. Something is borked at a level that I can't fix it.
[Android Apps and Games] NLBeev:
I think you trials show that 'hosts' is accessed by something and than it is not accessible.

Success with reflash.
[Android Apps and Games] Moglie:
Hello, i use the App for a long time its so nice thank you for this App!!! :)

On my PC i use uBlock and i added the hosts in AdAway which i use there.

But 1 host file does not work with AdAway. I need this for websites which do not allow Adblockers...

This is the host file: https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt

It is from here and is also listed in uBlock. https://reek.github.io/anti-adblock-killer/#filterlist

I can not visit websites like http://www.bild.de/ without it.

Could someone help me?

Thank you and have a nice day! :)
[Android Apps and Games] beepsilver:
You don't seem to understand or perhaps I've worded my original post in a confusing way.

Yes, I understand autorotate can be turned off, however is that efficient? No it's not. Autorotate should not cause the Adaway user to have to re-download the host files.

And yes of course many users prefer not to reboot, that's why there's a "remember" option there...all I was asking for is an option for those who do prefer to reboot.

Is that plain enough Mr Beev?
[Android Apps and Games] NLBeev:
First about the rotation.

The back of my Nexus 6 is not flat. When I put it on my desk, it rotates.

That is annoying when I need authentication codes to login. That's why I switch is off.

About my response.

Sorry. It is my intention to help. When my words are bad chosen. My apologies to you.

About reboot.

That is meant for smiling. Because of your words I was thinking about 'Random reboots' so many times mentioned as issue.

Again sorry.