yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] matif525:
Thanks for the great app.

My device is S-ON (UNLOCKED, TWRP, flashed SuperSU 2.78, Android 5.0.2, stock HTC M7 7.18.709.151), the only way to s-off is paid money. So

I flash AdAway_systemless_hosts_v2.zip in TWRP

, but I have problem.

There's no error shows when install AdAway_systemless_hosts_v2.zip, but after install it and reboot to system then install AdAway v3.1.2 apk, enable AdAway and download host, restart system, I found

AdAaway didn't enable every time I restart

.

I also use this way, but I can't find any "su" folder in my phone, also read these way, B can't be update by APP, C looks not safe and old, A didn't work (/data/data/hosts). I already flashed Xposed, and it seems work fine, Root Checker also shows I have root access, so I think I got root right.

Is there anyone tell me how to make AdAway_systemless_hosts_v2.zip work in my S-ON device? Thanks!
[Android Apps and Games] Ultramanoid:
I've been meaning to ask about S-on myself.

Regarding the post above, and also the help page about S-on in hTC devices that is present in AdAway...

I've recently got an A9, it is unlocked, fully rooted, and I run a rom based on barebones CM 13. It is S-on and AdAway works normally as intended.

Not sure why S-on would be a problem, it's never been for me. I modify binaries in /system daily, no issue at all for AdAway to create a hosts file that I have seen as yet ?
[Android Apps and Games] phoezies:
hello, does this work on Redmi Note 3 pro?
[Android Apps and Games] Ja_som:
Hello, try it...
[Android Apps and Games] matif525:
I think it's because your ROM is CM 13, I use stock ROM, thanks for reply. :)

But I still need answer for my question.▼
[Android Apps and Games] Termynat0r:
Sadly doesn't work on my Pixel C running Nougat... :(

I always get "Failed copying host-file".

I already manually granted the permission to use storage. Of course it's allowed to use root
[Android Apps and Games] mitchdickson:
Did you flash the systemless zip that has been discussed here a thousand times?
[Android Apps and Games] Sky88:
If systemless zip doesn't work use phh super su. I was facing the same problem.
[Android Apps and Games] Termynat0r:
I looked in every TWRP / Kernel / SuperSu thread but I didn't read anything about such zip. I installed the regulary SuperSu via TWRP. I also read about a supersu.img but I can't find that anywhere. But thanks for the tip, I will look to get that zip.

I'm already using SuperSu but I'm searching now for this systemless zip
[Android Apps and Games] kyzn:
The systemless zip that is on this thread. It's been mentioned several times.
[Android Apps and Games] Termynat0r:
Oh thank you, found it :o:o

Guess I'm slowly going blind or something

EDIT: Worked like a charm
[Android Apps and Games] corkiejp:
You didn't say what rom your on?

It works on MM xiaomi.eu rom but need latest SuperSU V2.78 SR1 and flash the zip from the first post.

If your not on marshmallow, latest supersu and no need for the zip.

You should discuss your device here.
[Android Apps and Games] Primokorn:
FYI SuperSU and Phh' Superuser are 2 different su.
[Android Apps and Games] sirxdroid:
I'm lost. What is the proper way to get it work on Android N (Nexus 6P)? SuperSU, phh's superuser, systemless, magisk ... can't keep track of the options anymore. There was talk above of a new version that will work better with N? Wait for that?
[Android Apps and Games] Toutatis_:
I pretty much have the same setup than you right now (Nexus 6P, debloated stock Android N ROM by [MENTION=5284958]tupac4u[/MENTION], Magisk, phh's SuperUser) and AdAway works fine.

Here are the steps I follow in regards to flashing:

1. ROM (Debloated stock Android N by [MENTION=5284958]tupac4u[/MENTION] has built-in GApps)

2. AdAway_systemless_hosts_v2.zip

4. Magisk-v6.zip

5. phh-superuser-17-magisk.zip

6. Install phh's SuperUser apk from the Play Store or this one by [MENTION=5444464]PunchUp[/MENTION] (much better in my opinion)
[Android Apps and Games] nyceyes:
Hello friends:

First, thank you to the author(s) of AdAway and to the helpers on here. I personally appreciate it. :)

Before my question, a little background

...

I just upgraded (from scratch) from a Marshmallow ROM to a Nougat ROM on my Nexus-6, and gained root access via SuperSU v2.78. The reason I upgraded is because, in my attempt to install the ExPosed framework on Marshmallow, I messed up the O/S; so I decided to upgrade to Nougat (since I had to reinstall everything anyway).

The reason I offer that piece of background is because, if I seem a little cautious with my question, it's because I just went through a painful reinstall and am being a little careful (and decided to contact the experts here). :fingers-crossed:

So, my question:

My rooted Nexus-6 is configured with the following components:

----------------------------------------------------------------------------------------

Nougat version: NRD90S

SuperSU Pro version: v2.78

Busybox version: 1.24.2 (in /system/xbin). The jRummy BusyBox distro.

AdAway version: v 3.1.2 (57)

---------------------------------------------------------------------------------------

My problem is that, unlike on Marshmallow where I was able to install AdAway successfully, my installation attempts keep failing on Nougat. The error message is this:

Copy failed: Copying of hosts file failed: Please read Help for more information.

So I followed the help instructions and tried various things like changing AdAway's settings to point to different "hosts" paths (e.g. /system/etc/hosts; /data/hosts; /data/data/hosts; /etc/hosts); I changed the supplier of BusyBox to jRummy's distribution; I tried to relax some of the directory and file permissions in the /system/etc/hosts path (using Root File Explorer), and so on. But I'm having no luck.

I

can

tell you that the SuperSU settings mentions the following about it's SystemLess root option

:

Install SuperSU into /system

Not (currently) available in system-less root mode

So if system-less root is required, it appears that I do no have that.

Any ideas on how to get past this issue? Any help is greatly appreciated. Sorry for the lengthy question.

Thank you!
[Android Apps and Games] nyceyes:
Hi [MENTION=6892913]darrendude1[/MENTION]

Thank you for reading and replying! :)

You hit the nail on the head regarding my being cautious. I saw the instructions to do that at the beginning of this thread, but hesitated flashing anything (because flashing something -- xPosed -- got me in trouble the last time LOL). So, no, I haven't done that yet (b/c I was seeking confirmation from experts here, as it relates to my specific setup).

If I do that (flash that Zip with TWRP in my case), will that allow things like BusyBox, SuperSU to continue to be upgraded as normal (i.e. it won't interfere with those things)?

If it doesn't interfere, I'm happy to flash that zip file and report back my results. :)

Thank you again!

---------- Post added at 09:11 PM ---------- Previous post was at 09:01 PM ----------

Oh I see. Re-reading the SuperSU system-less root message again, I see that I misinterpreted what it was telling me. I says that "because I do have system-less root, I cannot install SuperSU into /system". (Thank you [MENTION=6892913]darrendude1[/MENTION] for bringing that to my attention).

---------- Post added at 09:42 PM ---------- Previous post was at 09:11 PM ----------

I flashed the ZIP file as advised (via TWRP), and the AdAway installation worked. :)

Of course it worked... you come to the right place, and you get the right answers.

Thank you very much again for your assistance. :o
[Android Apps and Games] ronma1:
Hi i have the latest nougat update with root and twrp, i am trying to use the app with no seccess (nexus 5x)

what i did :

flashed systemless zip from the first post Magisk-v6.zip and phh-superuser-17-magisk.zip and then installed the appphh's SuperUser apk

but still i get errors from adaway app about something with symlink

anyone have ideas? thanks
[Android Apps and Games] just4u32:
Hey all,

First, thanks for this fab app!

Adchoices is an absolute nightmare. Just won't go away.

Any assistance please?
[Android Apps and Games] rj_22:
I am stock rooted, and I seriously need adaway. I've read page after page, and I still get confused on what steps to take to get it working. Any advice?
[Android Apps and Games] Gill Android:
Just download and install Adaway from 1st post. Give it Su access, open it, click on download files and apply adblocking, reboot and done
[Android Apps and Games] rj_22:
The zip file right?
[Android Apps and Games] sebx_g1:
If I get error 255 in TWRP when I use this zip for systemless root, what to do?

Wysłane z mojego ASUS_Z00AD przy użyciu Tapatalka
[Android Apps and Games] rj_22:
I get the message "copying of host file failed." so that means I need the systemless one right?
[Android Apps and Games] BladeRider:
Yes, you need the systemless zip
[Android Apps and Games] regalzz:
hijacking comment here... i did this, download the host files on the app and all went ok. then after i reboot it just says deactivated again... what am i missing? i searched for something like this but most threads are too old...
[Android Apps and Games] NLBeev:
Trial....Press DISABLE ADBLOCKING first and after that start again.
[Android Apps and Games] regalzz:
i disabled it, rebooted. then downloaded the files again, rebooted. same thing. im using DU ROM on my Nexus 4. rooted and unlocked with NRT and TWRP
[Android Apps and Games] NLBeev:
I meant first 'Disable ad blocking' and second press ' X Disabled' above, so no reboot.

Adaway must start downloading before reboot.
[Android Apps and Games] regalzz:
done that, same issue. after download the files i rebooted and its disabled like i didnt downloaded anything
[Android Apps and Games] NLBeev:
Last idea: check with a rootexplorer if there is file 'hosts' in 'system/etc'.

The file is about 2mb.

When not, there is probably no space enough in the system partition.
[Android Apps and Games] regalzz:
there is a hosts.alt file, 2,19 mb
[Android Apps and Games] NLBeev:
Rename it to 'hosts', (no extension).
[Android Apps and Games] regalzz:
I think i can explain it better now, im noob:

there is a hosts.alt file and a 'hosts' file. the 'hosts' file is the one adaway is editing successfully, but after the reboot it is reverted to its original.

edit: there is also a hosts.og file
[Android Apps and Games] NLBeev:
You only need a file named 'hosts'. Because the url's in that file will be blocked.

The other files can be deleted. Probably it's messed up.

After reboot ad blocking will work.

You can check what will be blocked with a hosts editor from nilhcam. It's in the play store.
[Android Apps and Games] regalzz:
i think the ROM is probably rewriting hosts with hosts.og after the reboot. im not being able to delete it tho. im using es file explorer and it has all the permissions
[Android Apps and Games] githyanki:
Disable any built in adblocker in your rom.
[Android Apps and Games] NLBeev:
Since the SELinux security es file explorer has issues. Use rootexplorer very version 4.x
[Android Apps and Games] regalzz:
it is disabled. i also think that the hosts.alt file is the one they use it to write hosts when the bultin adblocker is on.

edit: DONE! i deleted both files and it is working now. big thanks for the help NLBeev
[Android Apps and Games] rj_22:
so flash the systemless zip and thats it?
[Android Apps and Games] kryzeK:
I need AdAway installed even if I flashed systemless hosts zip?
[Android Apps and Games] Ja_som:
Yes
[Android Apps and Games] M1911:
Where do i find settings for adblock if i have flashed zip (systemless root)?

Nevermind,solved it. Realized i have to install apk to. (Post above.)

Skickat från min Nexus 6 via Tapatalk
[Android Apps and Games] angvil:
Hello,

I'm trying to get this installed on my s3 mini running 5.1.1 cm 12.1 rooted and all but I keep getting app not installed instantly after I click install... How to fix this?
[Android Apps and Games] NLBeev:
Clear caches and reboot. Than try again to install Adaway.

The only thing Adaway does is creating a file 'system/etc/'hosts' from several sources.
[Android Apps and Games] angvil:
I cleared dalvik cache and cache still no go
[Android Apps and Games] matif525:
I think if you use Magisk, you don't need to flash AdAway_systemless_hosts_v2.zip, Magisk is already a module for systemless.
[Android Apps and Games] Toutatis_:
I think you're right, I read it on another thread as well. I didn't know that.
[Android Apps and Games] nxr_:
Hey there,

it seems like I can't whitelist urls. I've added a few, reapplied, rebooted, but they remain without ads. They are in the second tab, whitelist, ticked. Can't access one of them if the ads don't show.

Is there any quirk that I'm missing or a way to make sure it added them?
[Android Apps and Games] Nergal di Cuthah:
Make sure you're whitlisting the ad's url not the url of the website you visit. WARNING this will whitelist the ad's source on any website which runs their ad network's ads. (In short, if I read you correctly, whitelisting is not what you think it is)

Edit/Expansion:

Whitelisting is for when a site is in host file (we'll call it tracker.google.com). now if I visit a site (bobsled.com) but it refuses to load, I can then investigate and learn that bobsled.com won't open without first contacting tracker.google.com. I then can whitelist the google tracker, since bobsleds are important enough to me to allow google to track me on all websites.
[Android Apps and Games] nxr_:
Thanks, yeah I was thinking it would be like in a desktop. I'll have a look at the source of the ads, but it's probably not worth it.
[Android Apps and Games] j1mp492:
Hi. I have big trouble getting AdAway to work properly with phh's superuser. I'm on Android 7.0 and are switching from SuperSU (systemless), and at my last attempt I did a full unroot, then flashed the ROM again (without full wipe) as well as the stock boot.img and yet it still doesn't apply successfully (Copy failed error). I've even tried to completely remove the /etc/hosts file and make a new with one with just "127.0.0.1 localhost" with "-rw-r-r--" permissions but without any luck. I also tried clearing data for AdAway and made sure it had storage permission, as well as rebooting several times after my attempts at things.

I did somehow manage to get it to apply "successfully" once but it behaved very odd, it was blocking things it's not supposed to and when I tried updating the hosts it failed once again, and I was back to square one. Also Solid Explorer started force closing whenever I tried opening something inside of root, which it didn't at my first attempt where I didn't re-flash the rom, boot.img etc, and just did a full unroot and then flashed phh. But for some reason MiXplorer worked fine.

I usually don't make posts asking for help, but I've spent so long searching threads and desperately tried solving it by myself without any success. The only thing left I can think of as of now is trying systemless with Magisk or a clean flash, but I'm doubtful it'll work and I'd rather avoid it. I'm very thankful for any help I can get.
[Android Apps and Games] fhem:
http://xdaforums.com/showpost.php?p=68762764&postcount=7003
[Android Apps and Games] j1mp492:
I saw that post, but I don't see how it's related to my problem. Also as I understood it that is for systemless, and it seems overly complicated. I read somewhere else that unless it's systemless, all you have to do is flash phh superuser and that's basically it. But I'll look in to it anyway.
[Android Apps and Games] fhem:
I believe phh installs as systemless root/sbin/su & root/init.superuser.rc
[Android Apps and Games] Pkt_Lnt:
Yes, that is correct.

http://xdaforums.com/showpost.php?p=68668326&postcount=801
[Android Apps and Games] azzicles:
Hey guys, is it possible to allow AdAway to run without root so I can set a custom host path other than the one in system/etc?

I'm not sure if this has been asked before but I decided I wanted to use Android Pay so I flashed a stock ROM on my device and installed TWRP and copied (using the TWRP file manager) the hosts file that I generated before I flashed (I set AdAway to copy the file to the SD Card) to System/Etc.

This allowed me to not root, use Android Pay and block ads and I can do it all from my device without needing a PC or using ADB.

I'm not really a pro when it comes to this sort of stuff, but I was wondering if AdAway could "run anyway" so I can still generate the file on my SD card and copy it over whenever I want? What are your thoughts? I can confirm everything is working great but my last step failed, as soon as I ran AdAway it tells me it needs root and only allows me to exit. It doesn't need root to generate the hosts file does it? Only to write it to system/etc which I don't need it to do. I want it written to storage/0000-0000/Hosts/hosts.

Thanks!

Edit: I don't know if I did the correct thing but I added a request to GitHub.
[Android Apps and Games] Guids:
does anyone have a good whitelist that i can import. mainly google results ads I would like to keep
[Android Apps and Games] piccit:
Someone pointed out earlier in the thread that the mount command might not work correctly (something about toy box vs busybox). Of that's the case, this whole "system less zip" thing works as a workaround for mounting system as writable (I'm guessing, I don't know for sure how the bind mount affects write perms) and really has nothing to do with "systemless"
[Android Apps and Games] xXCoolGuYXx:
Will this work on idol 3 6045o on Android 5.0.2
[Android Apps and Games] shaqman89:
Try it yourself.

In any case, there is no known reason why it shouldn't work.
[Android Apps and Games] Koradris:
Hi , is possible to hide ad away to use with website with ad killer?
[Android Apps and Games] Primokorn:
Yep → Firefox with uBlock Origin and enable "Anti-Adblock Killer | Reek" 3rd party filter.
[Android Apps and Games] luigidk:
I don't use adaway any longer as I'm not rooted. I use TWRP to copy hosts file manually.

It would be great if up to date hosts files were posted here from time to time
[Android Apps and Games] Ja_som:
But not every one has the same host file, some use black and/or white lists...
[Android Apps and Games] aLexzkter:
Sorry if it's already been asked but...why is adaway not blocking in-app ads anymore?

I've never seen in-app ads and all of a sudden I started seeing them on most apps!! Mx player, when pausing a video, for example.

Galaxy note 4 running x-rom note 7 ported rom...

Thanks
[Android Apps and Games] corkiejp:
Never seen ads in MX Player. Are you sure you haven't download some adware app?
[Android Apps and Games] IronTechmonkey:
MX Player does deliver ads but does so in a way that Adaway and other hosts file based blockers cannot stop. You can verify this by running Adaway's "Scan for Adware" feature on a device on which MX Player is installed. As to the general and vague statement "why is adaway not blocking in-app ads anymore" it is blocking ads just fine so something must have changed or be at issue on your device. To address it you would have to provide details such as but not exclusive to: What apps? Is a valid host file containing valid entries in the appropriate location? etc.
[Android Apps and Games] luigidk:
Good point. I was thinking the initial file as provided by adaway
[Android Apps and Games] mitchdickson:
You could do what you're asking, you know...
[Android Apps and Games] IronTechmonkey:
You can just go to the URL indicated in Adaway for a given source and download it directly (at least for the adaway.org source).
[Android Apps and Games] corkiejp:
Just disabled AdAway and got an ad in MX Player when paused.
[MENTION=4098378]alexztefr[/MENTION] did you reboot after applying the hosts files, maybe an update is required.

If you have xposed use the module "MinMinGuard" and Blacklist MX Player.

[MENTION=5119654]IronTechmonkey[/MENTION] adware reported on my device include: -

Lost Journey - me.dreamsky.lostjourney2
MX Player - com.mxtech.videoplayer.ad
TubeMate - devian.tubemate.home

I don't want remove MX Player.

Tubemate I only use when my xposed module doesn't work, and lost journey is a game I haven't played much. All now blacklisted with MinMinGuard.

Thanks for pointing out the detect adware feature.
[Android Apps and Games] IronTechmonkey:
You're welcome. It is a nifty feature. In fact Adaway contains several helpful features and a nice FAQ within the app which address most of the questions raised in this thread.

I use a firewall to block MX Player (which I never use for on-line streaming).
[Android Apps and Games] aLexzkter:
Of course I have updated and rebooted, I even have it to autoupdate, like always ...It started working differently since I have this rom (x-rom Note 7 port) I think.

I also have ads in Twoo and Jaumo dating apps...which I've used for a long time now and never had seen ads there.
[Android Apps and Games] corkiejp:
Any chance your custom rom has an inbuilt adblocker that maybe conflicting with AdAway. Is your hosts file actually been written to?
[Android Apps and Games] srt10coupe:
what is wrong, clean install cm14 and supersu all other root is ok
[Android Apps and Games] J-Hop2o6:
Why not?
[Android Apps and Games] Ja_som:
Flash zip file from first post
[Android Apps and Games] Bach_J:
I've download the apk from the first page. Why does virus total report the presence of a malware?
[Android Apps and Games] sansnil:
Why are you asking here? Ask virus total.
[Android Apps and Games] Pkt_Lnt:
Because Adaway needs root. All the stupid, brain dead, "virus" apps think root apps are malware. In truth the "virus" apps are more malware than what they detect. Paranoid worthless marketing to the gullible public. What a waste, especially those who are dumb enough to pay for those virus apps that require it or pester and beat you until you submit. :eek: :rolleyes::rolleyes:
[Android Apps and Games] Bach_J:
Thanks for the answer:)

I have another question: in the scan report I did, (https://apkscan.nviso.be/report/show/b9bde9f8787cf8c87336fb436a8cc12e) they say that the app open these network connections:

Destination	216.155.126.40:80	File descriptor	24

Destination	91.250.99.24:443	File descriptor	46

Destination	91.250.99.24:443	File descriptor	28

Destination	213.230.210.230:443	File descriptor	38

Destination	107.22.171.143:443	File descriptor	33

Destination	216.155.126.40:80	File descriptor	26

Destination	213.230.210.230:443	File descriptor	56

Destination	107.22.171.143:443	File descriptor	50

For example, the last (107.22.171.143) belongs to amazon (https://who.is/whois-ip/ip-address/107.22.171.143)

Do you know who are these IP? Why does the app connect to these?

Thanks for the maybe silly question:D
[Android Apps and Games] pkelly517:
I would imagine it's where the host files are located.

Perhaps a primary and backup it?
[Android Apps and Games] IronTechmonkey:
Incidental to the fact that I dont stream on-line media on this device except occasionally youtube or clips embedded in web pages. If I did stream in an app I would probably use an app that did not circumvent hosts based blocking in spite of the fact that MX Player is a very good video player.
[Android Apps and Games] albo82:
Ad away
[Android Apps and Games] Nergal di Cuthah:
Yes this is the adaway thread, have you a query?
[Android Apps and Games] Pkt_Lnt:
newbie padding post count
[Android Apps and Games] exodius48:
Anyone can help me how to use systemless hosts v2? I already flash it, but AdAway still touch /system/etc/hosts , now the size of hosts is ~ 2MB.

Currently running pac official stable 6.0.1 + systemless supersu 2.78 SR1 + suhide 0.53 + systemless xposed 86.2.
[Android Apps and Games] h1ghland3r:
Anyone has noticed some lag with Tapatalk? I use the white list address for Tapatalk provided in Github.

Sent from my Xperia Z3
[Android Apps and Games] NLBeev:
There is some time needed to access the hosts and whitelist.

When I disable or delete the hosts file I see ads in Tapatalk and ads seems to cause a bit lag.

But on my N6 I did notice some lag with Tapatalk before using Adaway. I think it was caused by the Tapatalk server.