I root for two reasons: Tethering and ad blocking. I currently can't tether on my AT&T M8. Now I can't get ad blocking working. I have tried adaway and it can't apply the hosts file.
This is the same issue as with the M7. The system is writable, so it can't modify the hosts file. I tried flashing the hosts zip file manually, but that isn't working either. Anyone know of a workaround? If I can't block ads, this thing is going back. I'm starting to wonder why I even bothered unlocking my bootloader.
Update: neither Adaway or Adfree work. They randomly stop blocking ads and cause the phone to restart when you try to apply the hosts file. Adblock Plus does seem to be working well, however. I'd still prefer a hosts file method of blocking, but this seems to be the only solution without s-off.
If your rooted what about xposed framework, there is a really good ad blocking module you can download that works better than ad away etc not sure if you have to be s-off or not I was using it on my One M7, waiting to get the M8
Sent from my Nexus 7 using Tapatalk
you need root and atleast adaway to disable advertisments
mushages said:
you need root and atleast adaway to disable advertisments
Click to expand...
Click to collapse
I am rooted. Adaway does not work. In fact, it reboots the phone.
Sent from my iPad using Tapatalk HD
greyhulk said:
I am rooted. Adaway does not work. In fact, it reboots the phone.
Sent from my iPad using Tapatalk HD
Click to expand...
Click to collapse
I'm having same problem with adaway so I'm using adblock pro seems to be working ok search for it on xda
Neither will work right now because the system is protected. Kernel module is being worked on which will disable write protect, and then adblockers will work.
M.
mattman83 said:
Neither will work right now because the system is protected. Kernel module is being worked on which will disable write protect, and then adblockers will work.
M.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2701816
I think this might be the answer
As an update: I was having issues with Adblock Plus as well (it stopped working a few times and had to be force closed after completely blocking my internet connection). I finally went here: http://forum.xda-developers.com/showthread.php?t=2327934
And flashed the Adaway hosts through TWRP. It flashed successfully and now all is well. Tested and working all ads are blocked. Does anyone know where I could find a more updated flashable hosts file? That one was from June of last year.
Thanks.
jaythenut said:
http://forum.xda-developers.com/showthread.php?t=2701816
I think this might be the answer
Click to expand...
Click to collapse
Thanks! That looks a tad risky at this point. I will wait until it's a little more tested. I managed to flash the hosts file manually, so I'm good for now.
greyhulk said:
As an update: I was having issues with Adblock Plus as well (it stopped working a few times and had to be force closed after completely blocking my internet connection). I finally went here: http://forum.xda-developers.com/showthread.php?t=2327934
And flashed the Adaway hosts through TWRP. It flashed successfully and now all is well. Tested and working all ads are blocked. Does anyone know where I could find a more updated flashable hosts file? That one was from June of last year.
Thanks.
Click to expand...
Click to collapse
Get it from here (might have to replace the file in your ZIP with this new one)...
http://forum.xda-developers.com/showthread.php?t=1916098
EddyOS said:
Get it from here (might have to replace the file in your ZIP with this new one)...
http://forum.xda-developers.com/showthread.php?t=1916098
Click to expand...
Click to collapse
That one doesn't work. It was the first one I tried to flash. It fails to flash in TWRP, at least the version installed on my M8.
I am using xposed module xad and it works great. The one in the xposed app wouldnt install for some reason so downloaded the apk and installed it that way. No more ads.
skoobee said:
I am using xposed module xad and it works great. The one in the xposed app wouldnt install for some reason so downloaded the apk and installed it that way. No more ads.
Click to expand...
Click to collapse
Details? First, Xposed is working on the M8? Second, where did you get the manual apk for ad blocking?
greyhulk said:
Details? First, Xposed is working on the M8? Second, where did you get the manual apk for ad blocking?
Click to expand...
Click to collapse
Yes xposed works great. As has been posted on a few threads you have to install xposed as a zip from recovery. I googled xad apk and it was one of the first few results that came up.
greyhulk said:
That one doesn't work. It was the first one I tried to flash. It fails to flash in TWRP, at least the version installed on my M8.
Click to expand...
Click to collapse
Take the hosts file and replace the one in the ZIP file that you already have
EddyOS said:
Take the hosts file and replace the one in the ZIP file that you already have
Click to expand...
Click to collapse
Not a bad suggestion. I may try that.
Sent from my HTC One_M8 using Tapatalk
AdBlock Plus is working for me. At least for now.
Correctly downloaded from the Amazon App-shop.
Thank you!!
I use adfree on my Verizon m8 and it has been working fine.
http://adfree.bigtincan.com
You do have to be rooted to use.
buddahj said:
I use adfree on my Verizon m8 and it has been working fine.
http://adfree.bigtincan.com
You do have to be rooted to use.
Click to expand...
Click to collapse
Adfree seems to work fine at first, but it will cause your phone to reboot when you update it. Unless you have S-off, it will have issues sim linking the host file and writing it.
Sent from my HTC One_M8 using Tapatalk
greyhulk said:
Adfree seems to work fine at first, but it will cause your phone to reboot when you update it. Unless you have S-off, it will have issues sim linking the host file and writing it.
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
I was unaware of that. I've always been s-off while using it.
Related
If your /system partition is write protected like on the HTC One (M7) and you try to use an advertisement blocker like AdAway, you will encounter that changes to /system/etc/hosts are lost after reboot and ad blocking doesn't work. You have basically 3 methods to get around this:
A) Link /system/etc/hosts to a partition AdAway can write to
Install symlink_hosts_to_data.zip via your custom recovery (like CWM) to create a symbolic link from /system/etc/hosts to /data/data/hosts. Afterwards you can configure AdAway to use /data/data/hosts (as shown in attached screenshot) and it will work perfectly with updates and everything.
B) Flash the hosts file directly
Install adaway_hosts_2014-04-14.zip via recovery. Now you have the hosts file as AdAway created on April 14th 2014. Disadvantage: you would need to flash again for updates. Advantage: you don't need the AdAway app at all. Note: many custom ROMs include such a hosts file already in their distribution.
C) Make /system partition writable
Use this kernel extension or a custom ROM including it to have the /system partition writable all the time. AdAway will work out-of-the-box then.
If you like to restore original state after having flashed one of the recovery zips above, use the attached restore_original_hosts.zip
Mantelinho said:
The attached recovery flashable update.zip modifies your /system/etc/hosts file just like AdAway or Adblock Plus would. Useful if your /system partition is write protected like on the HTC One (and changes are lost after reboot).
You need
a custom recovery like ClockWorkMod on your device
the understanding that you will use this script at your own risk
You could also
make the /system partition writable via kernel patch and use the app
use a custom ROM which comes with an ad-blocking hosts file already
This uses the hosts list from AdAway as of June 17th 2013. All credits for this to AdAway and its contributors
Click to expand...
Click to collapse
Can you create a script which creates the symbolic link i.e. the approach recommended in AdAway help (S-ON/S-OFF)? That would allow the file to be updated by the app over time...
melando said:
Can you create a script which creates the symbolic link i.e. the approach recommended in AdAway help (S-ON/S-OFF)? That would allow the file to be updated by the app over time...
Click to expand...
Click to collapse
This makes sense if you want to keep using the app, thanks for the hint. I uploaded symlink_hosts_to_data.zip and updated the opening post. This will work also after having the other zip already applied.
Cheers, do I need all 3 zips or just the one dated today?
Sent from my Nexus 7 using xda app-developers app
jonny68 said:
Cheers, do I need all 3 zips or just the one dated today?
Click to expand...
Click to collapse
Either the one dated (and you're fine) OR the symlink one if wanting to use AdAway configured to write to /data/data/hosts. The third file is only for restoring original state.
Cheers, so should this block all ads then, I had the ad block apk. But it didn't block all annoying ads?
Sent from my Nexus 7 using xda app-developers app
jonny68 said:
Cheers, so should this block all ads then, I had the ad block apk. But it didn't block all annoying ads?
Click to expand...
Click to collapse
This should block all ads so far (at least it absolutely does for me). However the list of ad servers is actively maintained by hosts-file.net. If you should find an ad host not blocked you can post it there and it will find its way back to AdAway. To be always up-to-date I recommend using AdAway with the symlink method from OP.
Dunno why but it doesn't block ads on the goal.com app but for some reason no adblock app ever really did, strange!
Sent from my Nexus 7 using xda app-developers app
sinna ketskm
Hey, just inquiring...
I've done the "flash host files directly" step, and playing Subway Surfers.
It would seem that ads are only blocked on that game when I have system set to RW...(I think...?...not 100% sure, but it would seem this way)
I was under the impression that it shouldn't matter because I'm flashing the host file directly?
Can anyone offer their thoughts please.
B BOY DRAW2 said:
Hey, just inquiring...
I've done the "flash host files directly" step, and playing Subway Surfers.
It would seem that ads are only blocked on that game when I have system set to RW...(I think...?...not 100% sure, but it would seem this way)
I was under the impression that it shouldn't matter because I'm flashing the host file directly?
Can anyone offer their thoughts please.
Click to expand...
Click to collapse
Yes, after flashing the hosts files directly no further steps should be necessary and ads be gone. Can you verify that ads also exist in other applications (or websites)? Maybe this is an issue with the app you are using, for example if it loads its apps from its own (unblocked) server.
Yeah, I think you're right about it perhaps being app related. I think maybe I need to monitor it a bit more closely and take random notes...
like sometimes I'm bombarded with advertisments any time I touch to advance or go back through menus...but just in that app...then I'll reboot...and sometimes it'll go a full day without ads...?
I also use a local news app which would normally advertise dating links, but those don't seem to appear...so it's definitely working.
All good though...thanks for answering that for me!
Much appreciated!!!
Mantelinho said:
Install symlink_hosts_to_data.zip via your custom recovery (like CWM) to create a symbolic link from /system/etc/hosts to /data/data/hosts. Afterwards you can configure AdAway to use /data/data/hosts.
Click to expand...
Click to collapse
Thanks so much for this info Mantelinho, I had been looking for a solution. When using this 1st method, do I need to flash symlink_hosts_to_data.zip in recovery after every ROM flash? I.e., I'm dirty-flashing CyanogenMod nightlies every other day or so and I'm not sure if need to re-create the symlink after every flash.
edit: I have discovered I DO need to flash symlink_hosts_to_data.zip after every ROM flash.
Sorry to bump an old thread. Will this work on the new M8 variant of the One, or will it only work on the M7 variant?
TrainAss said:
Sorry to bump an old thread. Will this work on the new M8 variant of the One, or will it only work on the M7 variant?
Click to expand...
Click to collapse
im sure it works
Child's Play said:
im sure it works
Click to expand...
Click to collapse
It does work. I forgot to change data location.
Sent from my HTC One (M8) using Tapatalk Pro
Can i use twrp and will work in moto x?
Hi, is this guide specific for the HTC One? Or would it perhaps work on my HTC One S too?
Sandeman1976 said:
Hi, is this guide specific for the HTC One? Or would it perhaps work on my HTC One S too?
Click to expand...
Click to collapse
Its for htc phones with s-on
---------- Post added at 11:26 AM ---------- Previous post was at 11:11 AM ----------
gskelter said:
Can i use twrp and will work in moto x?
Click to expand...
Click to collapse
If cwm or twrp is available for ur device, u can flash cwm or twrp
Child's Play said:
Its for htc phones with s-on
Click to expand...
Click to collapse
Ok, thanks!
FF.
Hey,
since 14.3.A.0.757 I can't get AdAway to work. It hangs everytime on "activating...".
Does someone have this problem too?
Or does someone know how to fix it?
ponchofiesta said:
Hey,
since 14.3.A.0.757 I can't get AdAway to work. It hangs everytime on "activating...".
Does someone have this problem too?
Or does someone know how to fix it?
Click to expand...
Click to collapse
it does on mine.are you properly rooted?
rooted and unlocked bootloader.
I copied the hosts file manually now but it's really annoying.
I have this same issue. Rooted 757 NO unbranded version and CWM from the lord of doom!!!
I stop using adaway once I found THIS. I flash the ZIP in CWM and no need adaway, however you could also replace the host file and use adaway/ adblock if you prefer.
Working for me on rooted 757 NO??
Is superSu working correctly and granting permissions?
Sent from my D5503 using xda app-developers app
Same issue
Moved to Adblock Plus
i had the same issue. i wasnt even able to connect to wifi because i didnt have any read and write permission on my partition. however, after i flashed this http://forum.xda-developers.com/showpost.php?p=51820189&postcount=237 it worked fine.
The same in .681 - AdAway doesn't work, even after installing that R/W-fix.
Any ideas?
Installing the fix didn't work for me either, 757 NO. I think that it only is for 4.3 as it says...
Edit: Now it works, took about 5mins to install.
Anyone have any idea why all of the ad blocking programs I have tried havent worked at all? Adaway says it is successfully applied and still I get ads everywhere. Anyone else have this issue? Is there something else that must be done besides just editing the hosts file?
{C0deF0x} said:
Anyone have any idea why all of the ad blocking programs I have tried havent worked at all? Adaway says it is successfully applied and still I get ads everywhere. Anyone else have this issue? Is there something else that must be done besides just editing the hosts file?
Click to expand...
Click to collapse
Unless you are rooted most of the adblocking apps will not work. If you are rooted then you may want to try another one.
Solarenemy68 said:
Unless you are rooted most of the adblocking apps will not work. If you are rooted then you may want to try another one.
Click to expand...
Click to collapse
+1
Sent from my SM-N910P using XDA Free mobile app
I'm using Adaway and it's working fine. You have to be rooted to use it. Ad blockers add known ad addresses to the hosts file and you need Root access to edit the hosts file.
Sent from my SM-N910P using Tapatalk
poit said:
I'm using Adaway and it's working fine. You have to be rooted to use it. Ad blockers add known ad addresses to the hosts file and you need Root access to edit the hosts file.
Sent from my SM-N910P using Tapatalk
Click to expand...
Click to collapse
I know how they work and yes I have root but I've tried all of them and I don't know why I can't get it to work
{C0deF0x} said:
I know how they work and yes I have root but I've tried all of them and I don't know why I can't get it to work
Click to expand...
Click to collapse
I still use MinMinGuard. It doesn't deal with websites but still does an acceptable job with apps most of the time.
I am using Lucky Patcher to block ads on my Note 4 and it works really well.
Hello,
On my h815 adaway don't block ads on xda youtube etc...
Solutions?
Umm, maybe a little more info, a screenshot, something..
Start with, did you enable it?
AdAway is working fine for me. I assume you are rooted? Have to restarted the device since installing AdAway?
I ran into the same issue on adaway 2.3 but with adaway 3.0 its working just fine
Yeah i´am rooted... I use this version, http://forum.xda-developers.com/showthread.php?t=2190753
On my previous phone (Nexus 6) don´t work too
I am using adfree now and it works Good.
adaway 3.0 is working perfectly on my rooted h812.
I recently rooted, downloaded v3 of adaway but can't click the install button?? Only cancel...
Sent from my VS986 using Tapatalk
Make sure you don't have a app like cf lumen running.
Sent from my LG-H815
liquidraven said:
I recently rooted, downloaded v3 of adaway but can't click the install button?? Only cancel...
Sent from my VS986 using Tapatalk
Click to expand...
Click to collapse
if you don't have something like cf. lumen (although with root it shouldn't have this issue.) you can adb it. adb install -r apknamehere.apk
you just need the apk and adb in the same folder.
Did you clear the proxy in the Access point settings (Settings => Wireless networks => More => Mobile networks => Access point names) ?
Use the adblocker in ROM Toolbox. It adds localhost redirects to your hosts file so it's much more low-level.
kyle1867 said:
Use the adblocker in ROM Toolbox. It adds localhost redirects to your hosts file so it's much more low-level.
Click to expand...
Click to collapse
How do you go about this?
Delete this, apologies.
Stankydanky702 said:
How do you go about this?
Click to expand...
Click to collapse
Download the app, go to the adblocker, click block, reboot.
sorry if i'm stating the obvious, but when you installed adaway on the nexus or lg, i assume you went in to the app and clicked 'download files and apply ad blocking' or words to that effect, then reboot?
onfirmed:WORKING me
Guys, this thread is nearly 4 months old
the_scotsman said:
Guys, this thread is nearly 4 months old
Click to expand...
Click to collapse
Just to dig it up again. It is working for me.
I'm digging this up as well. Adaway istalls fine, but when trying to turn it on, it fails to save hosts file. root explorer says that system folder has r/w permissions. Any suggestions?
I tried the systemless root method several times.. None of it works.
If my superSU app says I'm rooted, Android pay doesn't work. Only way to get it working again is if I UNROOT using the superSU tool.
Sent from my Nexus 5X using Tapatalk
insang-droid said:
I tried the systemless root method several times.. None of it works.
If my superSU app says I'm rooted, Android pay doesn't work. Only way to get it working again is if I UNROOT using the superSU tool.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
Root with the systemless root method, and delete "/su/xbin_bind". Android Pay will work. However, you might break root compatibility with older apps that haven't been updated.
LancerEVA06 said:
Root with the systemless root method, and delete "/su/xbin_bind". Android Pay will work. However, you might break root compatibility with older apps that haven't been updated.
Click to expand...
Click to collapse
Can confirm this allowed me to add my CC again, have not yet tried paying yet. I have 2.66 beta, and using AdAway, TiBu, and Greenify. So far no issues.
am I deleting the whole SU folder? or just the XBIN_BIND?
insang-droid said:
am I deleting the whole SU folder? or just the XBIN_BIND?
Click to expand...
Click to collapse
Just XBIN_BIND
Sent from my Nexus 5X using Tapatalk
yes, mine definitely works.
FYI, greenify breaks it, just having it installed for me (even if disabled)
adaway does not have to though, long as you flash the systemless hosts zip file before installing and applying it