yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
If your ROM has a builtin "ad blocker" (including several hosts.* files in /system/etc) or anything that claims to protect /system, there's a good possibility that your hosts file get rewritten on boot, whether that adblocker is "disabled" or not. Since you never specified which ROM (or even model) you have, we can't do much more to help you. One of the few things AdAway requires is the ability to write to /system/etc/hosts or at least to a symlink pointing to that file. If anything blocks such write access or resets /system on boot, there is nothing AdAway can do, sorry.

EDIT:

I just happened to bump into your Sprint N4 (locked?) "Upgrade from KitKat" thread. The comments there strongly suggest that your main issue is simply an incomplete root. Once you solve those problems, get rid of any leftovers from your "Big Tin Can" app (ALL of them!), and install AdAway (as a plain user app in internal storage) it will work just fine for you, keeping in mind that it can only deal with ads fetched via local DNS resolution. Good luck!
[Android Apps and Games] [Gorgasm]:
Hi !

I would like to know if a light theme of Adaway exists ? Thanks for your reply ! :)
[Android Apps and Games] DaveX2012:
Why my youtube search history won't update? Sometimes it worked but after rebooting the device same as before won't updat search history.
[Android Apps and Games] Mike B.:
What leads you to think that this has anything to do with AdAway? I believe we already discussed the issue at length in the Xposed module Youtube Adaway thread where it turned out that you were blocking "

s.youtube.com

" and we helped you whitelist that hosts. Are you still whitelisting it? Are you having trouble accessing your search history from a browser, from within the YouTube app, or both?
[Android Apps and Games] IronTechmonkey:
I don't think it does and, and the present focus seems to be on functionality and the advent of M. Same goes for AFwall where you asked the same reasonable but relatively low priority question :). Personally, I prefer dark theme, but wold not mind the presence of a light theme as long as I was not forced to use it.
[Android Apps and Games] DaveX2012:
Yes i'm still whitelisting s.youtube.com . Only YouTube app.
[Android Apps and Games] Mike B.:
This is a bit puzzling since your last post in the other thread mentioned that your search history was now working. I typically never use that %$#@ YouTube app, but I just now ran a quick search with the official YouTube app (10.40.58) while running the current AdAway (3.2) with the default sources. The app remembered not only this last search but the last one I tried a while ago while trying to duplicate your problem in the other thread. As far as I can tell, it's all working as intended and I suggest you seek assistance wherever YouTube is supported, or simply use a better-behaved method for accessing YouTube videos)... ;)
[Android Apps and Games] ChiDi9901:
That looks like a Xperia related problem. Is RIC removed? Do you have XZDualRecovery for example?
[Android Apps and Games] [Gorgasm]:
Oh yes it's also my opinion, it's a low priority question and I agree with that :) I just wanted to ask, for a future update after solving most of issues related to MM ^^

Sent from my Nexus 5
[Android Apps and Games] mrRobinson:
If it were me doing this, (which currently it is), I'd only add a light theme after i removed actionbarsherlock and fixed the one MM issue i know exists. removing actionbarsherlock i took a stab at already and moved to backburner. However, if I may rant...

[rant]

I'm the type of person that hates white light. I love dark themed and dark amoled. Technically Adaway isn't even dark enough for me. I'd darken the red and make the background #0 black. It kills me that most other apps plus the entire system forces me to stare at, what is effectively a light bulb. I use twilight app at sunset to help combat this. I feel like I must be the minority, most apps + system only offering a material light option. Here is a case where the evil lightbringers don't have a foothold and I sure as hell don't want to give them their next win. This is one good example why I don't take donations, I feel no obligation to do what I don't want and if you can't tell, I don't want to add a light theme here.

[/rant]

I'll add this to my todo list and hopefully bring it to a new release.
[Android Apps and Games] xdarthanonx:
You could try Holo Themer.
[Android Apps and Games] jaibar:
You're right, but not all of us have amoled screens. In those devices that I use with amoled it's nice to have dark app, in others I can barely see anything- regardless of screen brightness.

Then, outside, even with amoled I find it sometimes difficult to read dark stuff.

The option to choose is probably a good compromise, if it is easy to implement and not too much hassle. It could be awesome if apps could adapt theme according to measured light or time of day..
[Android Apps and Games] Mike B.:
I must not be using AdAway correctly because I almost never see its UI unless I'm testing a user report. I understand concerns about "theming" for apps that you stare at often, such as a launcher, but once AdAway is installed and starts doing its job in the background, how often do you even need to look at it? (Rhetorical question) ;)
[Android Apps and Games] jaibar:
Right. Not everyday, but sometimes- for example when searching tcpdump logs.

And, each user has different levels of ocd- some don't care anything about looks as long as its functionality is working, whereas for others an app breaking harmony can ruin their day [emoji33]
[Android Apps and Games] IronTechmonkey:
Cutely worded but this implies that anyone who prefers something different from you is breaking the harmony, doesn't know what they are doing, and that you know better, while I would see it as; using a light theme would break an existing harmony... although I would not have said such a thing first because it is essentially a backhanded insult (maybe a mild one but daddy is cranky today - You crazy kids and your light themes get off of my lawn!:)). Even doing frequent testing of AdAway on primary handheld and VM droids I don't spend much time in the interface. In fact if there was some coefficient to rate App importance against frequency of required interaction Adaway would score quite well. Also there are 2 specific and distinctly operational reasons why I prefer dark theme - battery life and low light usage. Also, I actually prefer it aesthetically because I do care how it looks ;).

If a thing like that is ruining your day you might want to aim higher ;) .

---------- Post added at 02:53 PM ---------- Previous post was at 02:34 PM ----------

Did not realize you had already ranted but I'm running with it anyhow:). For similar reasons of finding the white backgrounds jarring I use very low screen brightness set by Tasker which allows you to use the 0%-7% range not accessible to native brightness control (except for auto brightness which only recently started using that range in CM). This also reveals a hidden battery gain apart from just not having to use more power to display brighter light - it is dark themes that allow such low screen brightness settings to be used because they allow greater contrast with lower power consumption. I get almost 2 days battery power on a device most folks get one day out of.
[Android Apps and Games] idCyber:
nvm
[Android Apps and Games] mrRobinson:
I should clarify that the rant should be read in a jestful tone not an angry rant type tone.
[Android Apps and Games] IronTechmonkey:
... and it was taken as humor here, although I was being a bit of a crank. Sorry for off topic. Back to business.
[Android Apps and Games] plasticarmyman:
Any one know what ad sources/URLs Hulu uses so that I can unblock it...
[Android Apps and Games] Mike B.:
Same old question, same old answer:

YOU

have to find out, on

YOUR

device using

YOUR

provider and

YOUR

login.

Apparently, you are loading a source file that blocks Hulu. If reverting to the default sources doesn't work for you, start the AdAway DNS Request Log, access Hulu, then see which hosts you need to whitelist. Remember to reboot after any change.
[Android Apps and Games] aerifal:
Hi. The app working perfectly except the ads from my mobile operator redirect me to ibnads.xl.co.id before I reach the real destination. I already call the customer care to stop this but the ads still appear until now [emoji35] . I already put it to my block list but this is what I got.

View attachment 3510770

I could not go future, have to back to previous page and try again, or edit the address manually. Alternatively, I use 3rd app such as tapatalk to avoid this ads. Is there any way to fix this? Sorry for my English.
[Android Apps and Games] Mike B.:
Make sure you enable the AdAway webserver. As usual, first verify that your APN doesn't contain a forgotten http/https proxy. If your problem persists, please explain when those ads appear with which application(s).
[Android Apps and Games] Skripka:
Stop using whatever proxy your APN has.

Your ibnads.xl.co.id is no different than Tapatalk and Viglink, that are spyware redirects to datamine you....with the added perk of getting bombarded with ads.
[Android Apps and Games] Gorav Gupta:
thnx

:good:
[Android Apps and Games] SirMacke:
Checked quick on RIC, and I do not know.

If it is editing the file in /sys/.... I cannot even open the file in a viewer.

I do have XZDualRecovery
[Android Apps and Games] ChiDi9901:
Actually if you install XZDualrecovery, your RIC protection should be removed already. Maybe try flashing it again with computer.

Gesendet von meinem ASUS_Z00AD mit Tapatalk
[Android Apps and Games] SirMacke:
What the..

It worked, TY!
[Android Apps and Games] JaCh0o:
hello,

I'm sorry to inform you but AdAway does not longer works on tablet Nexus 7 32GB 2013 LTE Edition (rooted by Nexus Toolkit with SuperSU 2.46 Pro) (even clean flash made also).

Current build MRA58K Android 6.0.

Here's screen of it ("Too less memory space"):

Is there any chance to make it comatible again ??

If need any additional info please let me know (PM).
[Android Apps and Games] kryzeK:
I've still Ads in Spider-Man Unlimited game http://imgur.com/BjCh5lI
[Android Apps and Games] Mike B.:
Is this with the current AdAway 3.1 and the default source files?

Some Marshmallow users have reported similar problems, apparently coming from the inability to write to the /system partition. This is unrelated to AdAway and would be an issue for anything that attempts to edit the /system/etc/hosts file. I seems that creating a hosts symlink on /data (as suggested in the screenshot you attached!) allows proper operation. Search this thread for "Marshmallow" to see related posts.

Note that your SuperSU 2.46 might not be optimized for Marshmallow and you may want to try more recent SuperSU beta builds (currently at 2.52).

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

Did you blacklist any ad-related host(s) shown in the AdAway DNS Request Log when you play the game? If no such host(s) appeared, that simply means your app is not going through local DNS resolution and therefore its ads can't be blocked by AdAway or anything relying on the hosts file. See the countless references to the Request Log in this thread for help.
[Android Apps and Games] JaCh0o:
Thank you for such a quick answer.

Yes, settings of adaway are defaults including source files.

That's looks to be truth, there is no possibility to edit by text editor (from root explorer) host file.

Will try with newer beta of supersu and give an update soon.

Wysłane z mojego Oppo Find 7 przy użyciu Taptalka
[Android Apps and Games] IronTechmonkey:
That game may use a form of push advertising that Adaway would not block. You can confirm this by running the Adaway scanner.

View attachment 3512490

BTW, thanks to this nifty little scan function in Adaway I was able to reduce the # of such apps to one. MX player is so good that I keep it on the device (although often frozen by TiBU) and Spiderman was only there for this test.
[Android Apps and Games] mrRobinson:
Just set your target hosts to /data/hosts.

Then adaway won't use any space on system. It works perfectly on this device you just didn't configure it correctly.
[Android Apps and Games] niko.novak:
Symlinks ignored?

Rooted Nexus 6 running Marshmallow. SuperSu 2.52.

It seems that when you create a symbolic link to hosts file system refuses to read it or just ignores it.

Has anyone else seen this issue?

Here's what I tried:

# pwd

/system/etc

# su

# ping blah.blah.net

PING blah.blah.net (74.207.248.169) 56(84) bytes of data.

# echo "127.0.0.1 blah.blah.net" >> hosts

# cat hosts

127.0.0.1 localhost

::1 localhost

127.0.0.1 blah.blah.net

# ping blah.blah.net

PING blah.blah.net (127.0.0.1) 56(84) bytes of data.

# mv hosts /data/data/hosts

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

# ping blah.blah.net

PING blah.blah.net (74.207.248.169) 56(84) bytes of data.

It doesn't seem to matter where you move the hosts file - as long as it's a symbolic link it's ignored....
[Android Apps and Games] JaCh0o:
It's not what i want. I want to run AdAway in default settings. Tired already 2.52 Beta and last final version also ...and it doesn't help. Moreover symlinkng gives sh*t. SO IT DOES NOT WORK ON NEXUS 7 2013 UNDER ANDROID 6.0

Same here after your steps.
[Android Apps and Games] Mike B.:
Since none of that directly involves AdAway, perhaps here is not the best place to discuss your Marshmallow woes? ;)

Apparently your symlink wasn't created properly (check 'cat /system/etc/hosts' and 'cat /data/data/hosts' or see if your 'ls' shows symlinks AFTER creating the link) but that's no surprise if you tried from within the very same Android environment that prohibits writing to /system. Trying from an adb prompt or from recovery (assuming you have shell access there) would be preferable. I also hear that a permissive kernel saves many 6.0 headaches.... ;)

---------- Post added at 05:07 PM ---------- Previous post was at 05:00 PM ----------

If you want to run AdAway, you need to configure it properly for your system. You'd face the very same issue with anything that needs access to /system/etc. On current Marshmallow releases, that means you have to use /data/hosts or /data/data/hosts, a matter over which AdAway has absolutely no control. Your frustration should be with Android 6.0, not its victims... ;)
[Android Apps and Games] niko.novak:
Your point - EXACTLY!!!!!!

"I also hear that a permissive kernel saves many 6.0 headaches.... ;)"​

An hour of digging around and fiddling with different symbolic link locations - as long as symlink points to a file within /system partition everything works just as expected for example:

/system/etc/hosts -> /system/somerandomfilename

- pings go to the desired location

change the above to:

/system/etc/hosts -> /mnt/sdcard/somerandomfilename

- and everything explodes in your face...

Enter "setenforce 0":

# getenforce

Enforcing

# setenforce 0

# getenforce

Permissive

And behold - adblock works as expected once again.... (now to figure out how to make it permanent or create a policy allowing for hosts file to reside outside the system partition???)
[Android Apps and Games] Mike B.:
Congrats on (partially) taming Marshmallow! ;)

A permissive kernel might be one possibility. The best "policy" is not to jump into new OS releases so soon... ;)
[Android Apps and Games] JaCh0o:
I'm sorry if you recieved me as furstration... no such things. I knew that even google with it open spirit will shut his system for any editing (i know that removing advertisments is against terms and laws but google never forced us to obey them... till now.) I'm just wandering how to mange this (AdAway + SuperSU) under freshly new system. I found out that even when i want to edit hosts in text editor (while having chmod 777 and full root privillages) its still closed... what ofc confirms your words.
[Android Apps and Games] 78Staff:
I see there are a bunch of replies on this already, but I faced the same message, allowed it to use /data/data instead as suggested by the dialog shown in screenshot, let it create the symlink (that is, I didn't create it manually, I let AdAway create it), and have had no issues since... Nexus 7 2013, 32GB v6.0 MRA58K - but NOT the lte edition - so not exactly the same. I also rooted differently as well, using method referenced here http://xdaforums.com/nexus-7-2013/general/android-6-0-nexus-72013-live-t3218283, essentially.
[Android Apps and Games] Mike B.:
See [MENTION=7019702]niko.novak[/MENTION]'s post above for additional insight on how to make it work.

Recently, most all OS manufacturers have responded to the customers' raising paranoia levels by adding all sorts of mostly silly measures to "protect" users from themselves (Apple's El Capitan SIP comes to mind). If they didn't, they'd face a PR nightmare every time someone discovers an "exploit" that makes the TV evening news. The trend was started many years ago (remember the skillfully crafted "Michelangelo virus" scare?) and has made many people a lot of money peddling "security" software. There's no such thing as a secure OS or secure data, but the illusion lives on. It's all code and any code that can be written can be broken. Not that it matters, actually, since the security weak point is always the user.

Historically, workarounds have always managed to appears shortly after release to let us tweak our devices as WE not THEY see fit. It's a bit frustrating for some (most?) users, but honestly kind of fun for the technically-minded. Google is a corporation, Apple is a corporation, etc. They are open... open to making money for shareholders, mostly legally (illegal methods are too expensive). Nothing evil about that, that's what they're supposed to do. YOU, the user, are supposed to think carefully before you buy/upgrade. CAVEAT EMPTOR... ;)

---------- Post added at 06:36 PM ---------- Previous post was at 06:31 PM ----------

I believe the rooting method to which you refer installs a

permissive

kernel, which may be the main difference.
[Android Apps and Games] JaCh0o:
I have to confirm that symlink method is working on Nexus 7 2013 32GB LTE with MRA58K Android 6.0, but still now way to force rooted tablet to edit oryginał hosts file.

Wysłane z mojego Nexus 7 przy użyciu Tapatalka
[Android Apps and Games] mrRobinson:
That statement makes zero sense. The whole purpose of the options to use a different location and symlink is to work around various issues one can run into if they have a problem under the default settings. Stating you only want to use the default settings or you claim adaway doesn't work is just... I have no words.. Please don't tell me in bold what does not work, when i have it working, on that EXACT device. There are 2 issues with marshmallow and /system. First, many of the new images have virtually no free space. You can either use the nice options in adaway to NOT use /system or go ahead and remove things you don't want/need off of system to free the space. Secondly, the new kernels are enforcing selinux. So at this time you need to run a modified kernel to have proper root. This is probably your issue. You have supersu but selinux is still enforcing you. You have 2 options in this. Grab chainfire's kernel that keeps selinux enforcing but adds rules to it that supersu needs and other apps. As you run into issues with apps go to the beta supersu thread and contribute the relevant logs. Note: this. This will end up being the "golden" way forward and it will keep the designed protections in place yet give you functioning root. Second, is you can take the blunt hammer approach and install a full permissive kernel. Everyone knows this will work since you've just nuked the new protections android is trying to put in place. But if it is easier for you take that path until the other is further developed and clearer.

Regardless, Adaway has very few requirements but they are requirements nonetheless. It require su permissions granted that give it write access to the hosts file whereever you decide it should go. and if you decide to link it from somewhere then that link needs to be valid. Adaway works, you didn't meet the requirements.

Sort of to my point above, yes if you aren't following the current dev of rooting marshmallow nor have any desire to, then run a permissive kernel until that work is done then you can follow a new howto guide.

Just please don't come in here and state Adaway isn't working when it is simply a matter of being misinformed on the state of root on your device. As of today, you NEED a new kernel. You do NOT need a permissive kernel but if you aren't using one then ensure you have the latest beta supersu and ensure it has at least been modified to work with the beta. ALL of those details are in that beta supersu thread so just read that to stay up to speed.
[Android Apps and Games] mrRobinson:
I think these kernels keep enforcing. is elementalx flar2? I think he stated in the beta supersu thread he was still enforcing in his latest kernels. so this is a good one to use. I think a few months from now you'll def not see many permissive kernels, seems the community would rather work within the designed protections added to android which is good.

however i can write to system fine and the one guy said he can't. if he is getting a space issue then he needs to free space or use the symlink.
[Android Apps and Games] dmroopesh:
This is the very first app which i always install after flashing any rom in my both phones. Kudos to the developer :) keep up the good effort.
[Android Apps and Games] rivernov:
On Android 6.0 I have one issue. The webpages don't load sometimes. When I disable adaway or I restart the smartphone it go fine again. Any solution? I tried all the hostfiles. Thanks
[Android Apps and Games] tubako:
Thanks to the developer. It is a nice apps.
[Android Apps and Games] Mike B.:
That's pretty unlikely to be related to AdAway but without any details or logs, it's difficult to make a guess and "sometimes" is a bit too vague, sorry... ;)
[Android Apps and Games] rivernov:
How I could do the log? I'm pretty sure.
[Android Apps and Games] Mike B.:
Let's try to understand what problem you see. Which device, which ROM, which AdAway version, which source files?

What message, if any, do you see in your browser when a webpage won't load? Is it always the same site/pages? Does it happen with more than one browser?

Note that "disabling" AdAway simply restores the original hosts file. AdAway itself is typically NOT running unless it's currently updating its files (once daily, at most), making it extremely unlikely that it would interfere with your browser. Are you also using any kind of other "ad blocker"?

After you reboot, is AdAway active again and your pages then load correctly, but the problem happens after a while?

What do you mean by "I tried all the hostfiles"? There should be only one hosts file (/system/etc/hosts) which may or may not point to /data/hosts or /data/data/hosts.
[Android Apps and Games] 78Staff:
Mike B was referring to me - I did tried Elemental first, but had issues with it, so changed to the other kernel linked in the OP of the thread, which is "stock-permissive", at least according to the rc - http://xdaforums.com/showpost.php?p=63158038&postcount=210. I may try Elemental again now that I have OS and recovery installed and stable, however. Regardless as mentioned I just used data/data as suggested and allowed symlink to be created, and have no issues :good:

BTW MrR long time no talk - you probably don't remember but we chatted back n forth some back in the old S2 debloated TW rom days :).
[Android Apps and Games] mrRobinson:
Yep I remember the name enough to know your avatar changed. Couldn't recall it was from way back to s2 stuff though. I miss playing around with aroma installers. Always good to see level headed helpful people who've been around for a while.