yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] bogeldi:
Tried that already. Didn't help :(
[Android Apps and Games] NLBeev:
In Android 7 it could be possible that the system partition is filled up for security reasons.

You could try to make some space by deleting stuff you don;t use. Such as keyboard/input Japanese, Korean etc....
[Android Apps and Games] bogeldi:
I have already disabled a lot and BusyBox says there is 26mb of storage left.
[Android Apps and Games] NLBeev:
This is enough for the hosts file.(2-3Mb).

There is a possibility.

Uninstall the Adaway stuff, including the 'systemless' stuff.

Create a hosts file from the sources mentioned in Adaway on a PC

Transfer the 'hosts' file manually to system/etc
[Android Apps and Games] ahsengah:
I am also getting the same error as Bogeldi.

Might need an update for it to work.
[Android Apps and Games] bogeldi:
How do I uninstall the "systemless" stuff?
[Android Apps and Games] yanleites:
Use Flashfire to flash the adaway.zip, not TWRP
[Android Apps and Games] bogeldi:
Tried both, nothing changed.
[Android Apps and Games] yanleites:
After flashing you installed the adaway.APK ?
[Android Apps and Games] bogeldi:
Did it the other way around first.

But now I flashed the Zip with Flashfire and installed the APK and it seems to be working! :)

Thanks for your help!
[Android Apps and Games] yanleites:
No problem, press the magic button ;)
[Android Apps and Games] ahsengah:
Thanks! I got mine to work also by using Flashfire to flash the Zip from page1, then installing the APK!

Hooray for ad-free Chrome!

---------- Post added at 01:20 PM ---------- Previous post was at 01:19 PM ----------

Thanks! I got mine to work also by using Flashfire to flash the Zip from page1, then installing the APK!

Hooray for ad-free Chrome!
[Android Apps and Games] pacattack81:
Installed adaway and text messages no longer work. I had to revert back to the old hosts file to get things working. Is there a fix for that by editing something in the host file it's blocking? I'm using a moto g4 plus and I'm rooted.
[Android Apps and Games] techbeck:
Upgraded to Android N...downloaded latest Adway app. Getting a Copying of hosts file failed message. Adway has root access and the setting are pointed to the right area. Worked great on MM.

EDIT: Nevermind. Ready a few posts up and got things working via flashfire and the ZIP
[Android Apps and Games] mitchdickson:
Dude it's crazy how bad people are at reading the OP and the last couple of pages before posting.

Flash the systemless zip from the OP.
[Android Apps and Games] Cookie Ninja:
Please don't quote the entire OP. Thanks...

Dead Cookies leave no trails...
[Android Apps and Games] androcraze:
From post#1:

Problems? Read this:
* check your APN settings for any proxy, the proxy itself could be allowing ads. Disable the proxy.

Are your APN settings correct? Are you running through a proxy? Check your carrier's actual, current settings, not the default settings dumped-in during setup.

I can't see how AdAway affects SMS in any way.

Saying the hosts file is killing SMS texts is akin to "I put a new refrigerator in my kitchen and now my car won't start".

APN settings can affect MMS, and that could be the source of not seeing texts (my carrier changed APN settings, and MMS was hit-and-miss until I updated things).
[Android Apps and Games] kryddan:
Is this working with cf-auto root and FlashFire ? Or do I need something else ?
[Android Apps and Games] MrKaon:
It was working till this morning before I flash official Android N, now :

Any advice?
[Android Apps and Games] androcraze:
Which root are you using? Other people today have talked about TWRP not flashing the zip correctly, and having to use flashify. Have you tried that?
[Android Apps and Games] droid_1989:
Is there a way to remove this? I feel like it's slowing down my phone...
[Android Apps and Games] MrKaon:
Using SuperSU, no problem with other apps needed root access.

TWRP updated yesterday, and it's supporting Android N now, v3.0.2.1
[Android Apps and Games] stokholm:
Does anyone know why AdAway no longer works without the systemless zip in Nougat?

Everyone seems to be happy they made it work, but no one asks the important question: What changed?
[Android Apps and Games] ChazzMatt:
You can turn off ad blocking in the app (open app and choose "disable ad blocking") or you can totally uninstall the app. Since you are obviously rooted, you can uninstall whatever you want.

It's not slowing down your phone, but it's your phone, so you can do with it what you wish.
[Android Apps and Games] droid_1989:
No I mean the systemless host file. How would I remove that once flashed - bare in mind I'm not rooted systemless....

Derped a bit and flashed the wrong thing.
[Android Apps and Games] ChazzMatt:
Ah. Someone else will have to answer that. You said "remove this", thought you meant Adaway.
[Android Apps and Games] NLBeev:
It is in su/etc
[Android Apps and Games] kaparo81:
This morning I flashed the TWRP and after restarting I get an error that says "no command". Does anyone know how I can fix? I have a Nexus 6P with Android N.
[Android Apps and Games] NLBeev:
Update twrp done ?

https://dl.twrp.me/angler/
[Android Apps and Games] kaparo81:
Yes, I flashed twrp-3.0.2-1
[Android Apps and Games] droid_1989:
So I just delete that?
[Android Apps and Games] NLBeev:
. The only idea I get is: clear caches.
[Android Apps and Games] kaparo81:
OK, I will try. Thank you.

---------- Post added at 09:45 PM ---------- Previous post was at 09:31 PM ----------

No way. Still the same error. The strange thing is that after flashing the recovery starts up normally, I did the settings of TWRP and tonight I wanted to do the root I realized the error. I honestly do not know what to do:(
[Android Apps and Games] mitchdickson:
Restore your backup.
[Android Apps and Games] NLBeev:
When you rebooted in System after an update of TWRP maybe TWRP is not correct installed.

Flash twrp again and after that reboot recovery.

Than power off.
[Android Apps and Games] kaparo81:
Thanks for the information. Tomorrow morning I'll try. However I add that I come from stock recovery and have the Nexus encrypted.
[Android Apps and Games] pacattack81:
My APN settings are correct, I updated them a few weeks ago directly from the carrier's website. SMS worked fine before adaway. I know it may sound strange, but SMS would only function if I turned airplane mode on/off. Put the backup hosts file back and everything worked again. So I guess my refrigerator did indeed break my car. I

I'm using the MOAB hosts file now, but it doesn't block all in app ads. However at least my SMS/MMS work. APN has nothing in the proxy settings by the way. For me, adaway 100% blocked my SMS messages from sending.
[Android Apps and Games] androcraze:
SMS or MMS? If your client sends all messages as MMS, then it's a different issue than SMS. Did you try a different SMS client for grins?

One issue I had was with the setting "APN Type:". Took me a couple of days to figure it out. Thou SHALL NOT put spaces after the commas. Ex:

WRONG: default, mms, supl

CORRECT: default,mms,supl

Wasn't there an issue with Wi-Fi "on" and MMS (or was it SMS?) on some devices? My memory is foggy....
[Android Apps and Games] pacattack81:
Thanks for trying to help. At this point my settings are correct because SMS and MMS both function properly without adaway. With adaway the messages get stuck and continue to say "sending..." until I turn on/off airplane mode. I don't have this problem with my regular hosts file so adaway is doing something to prevent the SMS/MMS from not functioning properly. If it happened to me I bet it's happened to others.
[Android Apps and Games] androcraze:
I don't recall seeing your issue in this thread, at least not yet.

Looking online, a search of "MMS and WiFi" shows many problems with various devices. But if you're confident that's not the issue, then I'm stumped. Did you mention:

- your device

- ROM, and version

- messaging client

- carrier

It probably won't help me, but it might give someone else a lead-in.
[Android Apps and Games] MrKaon:
Can this app exports host file ? so I can replace it manually with file browser.
[Android Apps and Games] tom1807:
Ok, first, until today I even didn't know that a systemless AdAway exist, used so far only the regular AdAway. :p

Now my question.

Updated today my Nexus 9 to Nougat (since then I know a systemless version exists, after regular update failed of the regular AdAway failed). So I uninstalled the AdAway 3.1.2

From recovery I was not able to flash due missing signature so I flashed it with the method described here.

Worked perfectly for SuperSu (systemless), worked kinda also for AdAway, except after flashing there is no program symbol anymore.

The host file is in su/etc, but I am not sure now whether there should be a program symbol.

Cheers

Tom

Edit: Looks like AdAway wasn't installed at all

Edit 2: The last page, as of writing that, showed finally how to do it
[Android Apps and Games] NLBeev:
The file is in system/etc
[Android Apps and Games] MrKaon:
Problem is on Android 7 AdAway can't write on system despite having root access:

If AdAway had an option to save host file somewhere else after building it from sources I could copy it myself to system/etc with a file browser app.
[Android Apps and Games] NLBeev:
Is there enough space in the system partition?

You can create a hosts file on a PC, with the help of the sources listed in Adaway.
[Android Apps and Games] MrKaon:
Can you upload latest host file here please? :highfive:
[Android Apps and Games] Ultramanoid:
AdAway is a hosts file manager, each user uses a personal combination to suit her or his needs. Someone else's hosts file may or may not be useful to you in particular.

As the error warning suggests, read through the documentation ( or this thread ) to understand better how it works.

As for reliable hosts files available publicly, you can start with AdAway's default list, or here :

https://github.com/StevenBlack/hosts
[Android Apps and Games] NLBeev:
http://adaway.org/hosts.txt
[Android Apps and Games] MrKaon:
it was working perfectly fine till MM after updating to official Android N it stopped :eek:
[Android Apps and Games] mitchdickson:
Dude. Flash the systemless zip in the OP. Does this have to be posted on every page of this thread?
[Android Apps and Games] fibbity3:
which partition o_o

which partition do I flash the systemless zip to? I thought adb always required a partition like boot, userdata etc to flash to.

thanks.
[Android Apps and Games] Toutatis_:
Just flash it normally with TWRP, you won't have to choose any partition.
[Android Apps and Games] moyses:
How can i do to instal it on my oneplus two please
[Android Apps and Games] ΦDroid:
What ROM? On exodus I just install the apk then use the app as usual.
[Android Apps and Games] moyses:
Official Cm13
[Android Apps and Games] ΦDroid:
Ya I don't imagine that you are using systemless root on that so simply install the apk. Trial and error is often the best way to learn things. It's not like you risk breaking your device or ROM by installing the AdAway apk.
[Android Apps and Games] moyses:
It's simply fabulous apk

Work great on my oneplus two and adware are away
[Android Apps and Games] Evo_Shift:
The benefit to using a systemless root for me was that I could sideload OTA files every month from google. On Marshmallow I would just disable the adblocking then sideloading the updates from google would work. Then I would reapply the adblocking. I assume if I flash whatever it is that adaway needs to have flashed I will no longer be able to apply OTA files since I am assuming this zip will modify the system. Is this something that can or will be fixed in a newer version of adaway so that we no longer have to flash something to our system in order to get adaway working?
[Android Apps and Games] ctbear:
Is there any way to just apply the host file without root?

In MM I used to boot into TWRP and replace the host file manually (at /system/etc/hosts). However it doesn't seem to apply when I boot back into the OS. I can still see my modified file whenever I boot back into recovery, but it looks like the same file is not used in the actual OS.

Any help would be appreciated!
[Android Apps and Games] ΦDroid:
Did you apply 644 permissions to the new hosts file?
[Android Apps and Games] ctbear:
I did. I also set the file owner to root just to make sure. The modified host file has the same permission and owner as the rest inside the folder.
[Android Apps and Games] thebrainkafka:
What do i exactly need to do, flash to have it systemless?

Thx
[Android Apps and Games] Badger50:
Go to the OP, download the apk and the systemless zip file. Go into twrp, flash the zip, reboot, then install the apk. That's about it [emoji106]

https://www.androidfilehost.com/?fid=24438995911977059

---------- Post added at 03:41 PM ---------- Previous post was at 03:40 PM ----------

https://www.androidfilehost.com/?fid=24588232905720420
[Android Apps and Games] osm0sis:
No, you've got this completely backward somehow.. the systemless AdAway zip just adds the hosts to SuperSU's systemless /su directories, then AdAway just does its thing and the hosts file acts like it's in /system even though it's not because of Linux mounting tricks.

I take OTAs this way as well and don't even need to revert the hosts, simply flash the OTA in FlashFire with restored boot.img.

And yes, an inline, automated solution to do the same thing is in the works for the next release per [MENTION=3355398]mrRobinson[/MENTION]'s post awhile back.
[Android Apps and Games] mrRobinson:
Thanks for the pressure. Guess it's time to add this to my active to do list... I haven't played with 7 yet... What are the main to do items :

* detect systemless, bind mount if in use.

* check /data for storage if systemless in use.

* Normal translations, webserver etc updates.

* missing anything?

I mean these are the things I can tackle. I have another list if other devs jump in.
[Android Apps and Games] Portgas D. Ace:
Quick question: are you planning to make it (officially) compatible with Magisk? Or do you prefer to implement your own systemless solution?
[Android Apps and Games] NLBeev:
Skip the OTA is an option. There's no new function.
[Android Apps and Games] osm0sis:
Haha sorry. :p

It would be nice if the bind mount option was a simple checkbox, and everything happened behind the scenes (installation of the bind mount su.d script and initial bind mount if one's not already active). That way people would just choose "systemless hosts" in the settings or something and all would be clear to the end user.

Of course if it detects the systemless hosts is already in place, then that checkbox auto-populates.
[Android Apps and Games] androcraze:
I've been using BIND to link to /data/data/hosts instead of /su/etc/hosts. Giving the user the option of where to BIND to would be nice.
[Android Apps and Games] Evo_Shift:
Cool, thanks for the info. I did have it completely backward.
[Android Apps and Games] murtezahu:
Did anybody figure this out. I was using the same method on the nexus 6p under MM. Does not seem to be working in Nougat
[Android Apps and Games] adrman:
Actually, Magisk had made itself compatible with Adaway. On v6, just leave Adaway set to /system/etc/hosts and profit.
[Android Apps and Games] Portgas D. Ace:
But wouldn't this result in a modified system? I mean, AdAway will modify the hosts file, thus making changes to the /system partition. Or do I get this wrong here?
[Android Apps and Games] JudgeDread11:
In magisk anything targeting the the host file on the system is redirected already. Not really, but that's the effect.

The host file shown in system isn't actually a system file, is in the magisk directory. But all apps and the starter itself will not see this difference.
[Android Apps and Games] Vsincar:
thx

thx
[Android Apps and Games] ronma1:
Hi,

I have nexus 5x with android 7 (and root) and the app can't seem to copy the new hosts file (error). .

I have root (TB is working) anyone know how to resolve that issue?
[Android Apps and Games] androcraze:
Did you try the systemless zip?

http://xdaforums.com/showpost.php?p=65324998&postcount=268
[Android Apps and Games] ronma1:
i need to flash it? i don't have recovery right now.. just root
[Android Apps and Games] ritchiedrama:
Is thisi the same version that comes with Resurrection Remix?

Should I be flashing the systemless zip if so or what?
[Android Apps and Games] frank2016:
Oh ! Thank you for this and now I will test it on my LG nexus 5.
[Android Apps and Games] androcraze:
Look at the link I sent.

You have root. Download a terminal program, and execute the BIND command in the terminal.

https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en

That's all the zip does. It doesn't install anything.

It's either:

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

or

mount -o bind /data/data/hosts /system/etc/hosts

I don't remember which, and I'm too lazy to look at the syntax right now (I think it's the first example).

My example BINDs /data/data/hosts to /system/etc/hosts; the zip BINDs /su/etc/hosts to /system/etc/hosts. It doesn't make a difference where you BIND it; you just have to tell AdAway where to "target".
[Android Apps and Games] Treveo85:
Sadly that didn't fix the problem :(
[Android Apps and Games] goast:
Do u have any other mods installed?
[Android Apps and Games] Treveo85:
Not really, stock CyanogenMod 10.2 nightly with only AdAway, no other adblocker or something
[Android Apps and Games] goast:
So what happens when you try to use adaway? Where does it fail?
[Android Apps and Games] Treveo85:
When I open AdAway, it downloads, merges and replaces the host file all fine, but when I try to visit http://www.wowprogress.com/pve/eu/frostmane with Chrome on my S2, I can still see the ads. On my Nexus 10 with AdAway 2.7 the ads from the same site are blocked correctly.
[Android Apps and Games] goast:
Have you tried using default browser? Using that I didn't get ads maybe it's a chrome thing
[Android Apps and Games] Treveo85:
Thanks for the help, I found the problem.

Chrome -> Menu -> Settings -> Bandwidth management -> Reduce data usage -> Off.

It was on for me and thus I was using Google servers to optimize and reduce the bandwitch consumed by the page. No wonder AdAway wasn't able to filter the ads out because of changes in the image url's by Google I guess.

Thanks again.
[Android Apps and Games] maus421:
Love this app...works perfectly
[Android Apps and Games] SilverPosition:
BusyBox

Up until I read BillPlowman's post (#638), my Nexus 4 (running 4.3) worked with AdAway 2.7 but my Nexus 7 did not. Having just installed BusyBox on the N7, the problem is all cleared up. Can't say if that'll work for everyone, but you should certainly give it a try.
[Android Apps and Games] DecypherT:
I have busybox running on my N4, but have problems applying the hosts file.

Send from my Nexus 4
[Android Apps and Games] byron1985:
Do you have Google verify apps? If so turn it off and it should work.
[Android Apps and Games] DecypherT:
thought that only was when installing failed, besides I don't see what verifying an app has to do with Applying the hosts file.

Also disabling isn't fixing my problem.

Send from my Nexus 4
[Android Apps and Games] billplowman:
Copying of hosts file failed: FIXED! (CM7)

Forget I said this. I'm an idiot. BUT, I did find something that actually worked (for me anyway!) I changed "/system" from read-only to read-write before applying the host file. I'm still running CM7, by the way. I don't know if this problem affects later versions or not. Also, if it helps, I used Advanced Tools Pro (SCDevs) to make the change, although I'm sure there are a million other apps that will do the same thing. Hope it helps!
[Android Apps and Games] ogilviea:
Thanks! AdAway 2.5 & 2.7 have both been regularly FC'ing for me, though I haven't been able to match the time this problem started with any updates to my rom (PA) or kernel (Franco). Mounting /system rw before applying the host file works every time. Hopefully this information will help the maintainer of AdAway to locate the cause of the problem.
[Android Apps and Games] DecypherT:
Tried mounting to /RW.

Still no go here.. Full stock JWR66Y + root.

Send from my Nexus 4
[Android Apps and Games] ermacwins:
Is there a way to only have adfly links working?
[Android Apps and Games] DecypherT:
Add adf...ly to your white list.

Send from my Nexus 4
[Android Apps and Games] crackedvenom2:
I can't get system to mount
[Android Apps and Games] Krowbarr:
Owner/Operator Samsung E4GT running Pacman Rom w/Blasphemy v6 kernel.

We were born in a time where if something was broken we would fix it and not just throw it away
[Android Apps and Games] mentalityx:
What are the differences of using official Adaway 2.3 vs unofficial 2.7??
[Android Apps and Games] RKSoftware:
I used these steps:

1. Boot in bootloader mode

2. fastboot boot twrp-3.0.2-1-bullhead.img

3. In TWRP mount system partition

4. TWRP - advanced - terminal

5. these commands

cd /system/etc/

rm hosts

touch /data/hosts

chmod 666 /data/hosts

ln -s /data/hosts ./hosts

6. Reboot

7. Change hosts location in adaway to /data/hosts

Works great!
[Android Apps and Games] androcraze:
BIND does the same thing without having to delete anything from system or modify it in any way. And things get reverted back by deleting the BIND target.
[Android Apps and Games] wietse1988:
You don't need a custom recovery, use flashfire, it's in the playstore, it can do almost everything what a recovery can do, without the need of an custom recovery.
[Android Apps and Games] RKSoftware:
I tried bind command, but it not works in my case... This works
[Android Apps and Games] eruben:
Phone restarts when I press download and apply ad blocking when it comes to applying hosts file (and ad blocking stays disabled). Same happens when I press disable ad blocking. So i assume it's about hosts file. Never had that issue before. What can be the reason? Please help, I'm so used to adless version of my phone)

Thanks.
[Android Apps and Games] Criton30:
Hi all,

the systemless and the normal adaway app not working under nougat?
[Android Apps and Games] Midomad:
Same here instaled image and rooted with nexus toolkit 2.1.8,TB working great too! [MENTION=3355398]mrRobinson[/MENTION]?
[Android Apps and Games] androcraze:
I've been reading that -- with Nougat -- systemless is the way to go.

Did you try the systemless zip? Even if you are NOT systemless, you still should be able to BIND /system/etc/hosts to the /data partition, so AdAway never has to touch the /system partition.
[Android Apps and Games] Midomad:
What would be the method without systemless zip?

I Wounder what [MENTION=3355398]mrRobinson[/MENTION] and [MENTION=4544860]osm0sis[/MENTION] would said about it?
[Android Apps and Games] androcraze:
Modify the hosts file in /system/etc/ directly?

or follow this procedure from the command line:

http://xdaforums.com/showpost.php?p=68374669&postcount=6816
[Android Apps and Games] Gordonek:
Thanks dude
[Android Apps and Games] tanfidzularus:
I still see ads inside opera, or is it untouchable for AdAway?
[Android Apps and Games] broomer68:
Opera uses serverside compression, so adaway won't work.

Verstuurd vanaf mijn ASUS_Z00A met Tapatalk
[Android Apps and Games] cink40:
Turn data saving off.
[Android Apps and Games] petrus764:
Anyone got an updated hosts file that can ble flashed via twrp for nougat on the 5X? All I use root for these days is adblock, and there's a couple of apps I'd like to use that doesn't support a rooted unit.

Tried replacing the hosts file in system/etc and chmod, but I guess it's not as easy as that getting it to work. Any help would be much appreciated.
[Android Apps and Games] antroid88:
Great manual! Thanks a lot! I ran into the issue on exactly the same setup. Tried zip from the first post, tried bind commands - no luck. Actually AdAway explicitly points with a message to this problem and its solution. And it's exactly the same as you provided. :good:

---------- Post added at 12:27 AM ---------- Previous post was at 12:25 AM ----------

As far as I know you can root, make AdAway apply changes to hosts and then unroot. Hosts will stay modified.