[Q] Adblocking problems - Nexus 4 Q&A, Help & Troubleshooting

I've tried all of the popular adblock methods, and they don't work for me on my rooted Nexus 4.
When I go into terminal and test a blocked domain, e.g. by doing "nslookup ib.adnxs.com", I get
Server: ....some IP address
Address 1: ....some IP address
Name: ib.adnxs.com
Address 1: 127.0.0.1 localhost
***********
So it looks like the hosts file is working in the terminal. But when I go into the browser I still see ads served from, for example, ib.adnxs.com .
***********
EDIT: for some reason my Nexus 4's browser looks in the /data/system/etc/hosts file instead of the usual location that adaway and adfree use, which is /system/etc/hosts. An easy fix is to create a link from the former location to the latter, or manually put the hosts file in the former location.

Try using "AdAway" from the play store.
Sent from my Nexus 4 using xda premium

Found a solution
slimldj said:
Try using "AdAway" from the play store.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Tried it, didn't work.
But I've figured things out.
For some reason, the browser is using a different location for the hosts file on my phone: /data/system/etc/hosts . I don't know why -- maybe it has something to do with the method I used for flashing recovery.
In any case, none of the programs like adfree or adaway were installing the hosts list to that location. I added it manually, and voila, adblocking goodness. If any one needs any help doing that let me know.

Which browser.. Chrome? Adaway seems to work with aosp stock browser I'm using.

galaxys said:
Which browser.. Chrome? Adaway seems to work with aosp stock browser I'm using.
Click to expand...
Click to collapse
Same issue in stock browser and chrome.
I swear, I must have done something wrong when I flashed clockworkmod. I had the problem the first few times I rebooted that I had to reflash recovery, and the phone reflashed it back to stock recovery. Whatevs, so long as everything works.

Related

[Q] add adds back to rom??

I know this is a strange request but how do I remove the ad blocking that's built in a ROM? I'm playing gravestompers and want to get free skulls in it but can't go to tapjoy to install crap because of the ad blocking so my question is? Is there a way to stop blocking once in a while and turn it back on after if the ad blocking comes with the ROM itself. what is needed to turn the function on and off??? Thanks in advance!
Most ad blocking is done by changing the hosts file so that the ad sites are listed as localhost. This means when they are attempting to go there, they don't.
So check for the hosts file on your device (/system/etc/hosts)
Remove the entries and you are no longer adblocking.
krelvinaz said:
Most ad blocking is done by changing the hosts file so that the ad sites are listed as localhost. This means when they are attempting to go there, they don't.
So check for the hosts file on your device (/system/etc/hosts)
Remove the entries and you are no longer adblocking.
Click to expand...
Click to collapse
OK thanks navigated to the system/etc/ but there is no hosts folder any ideas????
Update:Figured it out by using ROM toolbox to unblock ads works perfect and easy as piss thanks though!
Check the thread for the Rom unit are using.
Sent from my Nexus 7

Problems blocking ads

I've rooted my Nexus 4, but I can't seem to block ads. Tried adaway and adfree. Any suggestions?
Try adblock plus as well, maybe that works.
Dster said:
I've rooted my Nexus 4, but I can't seem to block ads. Tried adaway and adfree. Any suggestions?
Click to expand...
Click to collapse
Check to see that the file /etc/hosts actually gets updated when you use adaway/adfree. Also, you need to reboot your phone after you apply the new hosts file.
Same issue here, Used adaway, adfree, none of them seem to work.
stealthj said:
Same issue here, Used adaway, adfree, none of them seem to work.
Click to expand...
Click to collapse
I also have the same issue
marinierb said:
Check to see that the file /etc/hosts actually gets updated when you use adaway/adfree. Also, you need to reboot your phone after you apply the new hosts file.
Click to expand...
Click to collapse
No you don't, my ads are always blocked immediately after running ad away even if I don't reboot.
Sent from my Nexus 4 using Tapatalk 2
marinierb said:
Check to see that the file /etc/hosts actually gets updated when you use adaway/adfree. Also, you need to reboot your phone after you apply the new hosts file.
Click to expand...
Click to collapse
If you don't reboot your phone immediately after using AdBlock or AdFree (I switched from the former to the latter), then you will run into an issue where the Back button doesn't actually take you back in the browser. You have to double click it and mess with it in general.
I didn't know this for a solid 5-6 months when I first rooted my Atrix back in the day and it DROVE ME NUTS.
Anyway, go into Superuser or SuperSU and make sure that you've given AdBlock or AdFree root access. I would maybe even recommend just installing both apps anyway, reinstalling, granting root access, run/apply new hosts file, and then immediately reboot.
adway working just fine, are you sure that you rooted it properly though.
joshnichols189 said:
No you don't, my ads are always blocked immediately after running ad away even if I don't reboot.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Whether you have to reboot or not depends on cache and DNS. Just because your ads are always blocked, doesn't necessarily mean everyone else doesn't need to reboot.
Adfree works fine for me. Reboot the phone to be safe.
Stryder5 said:
Whether you have to reboot or not depends on cache and DNS. Just because your ads are always blocked, doesn't necessarily mean everyone else doesn't need to reboot.
Adfree works fine for me. Reboot the phone to be safe.
Click to expand...
Click to collapse
There's some funky stuff going on for me. I checked my hosts file, and it had in fact been updated by Adfree/Adaway/Adblock Plus (I've tried them all troubleshooting this).
Superuser says that they have the appropriate permissions.
I take it that there's multiple methods for rooting, right? I just followed the first walkthrough I found. I'm running the CM10.1 nightly with this issue.
Could someone who has adblocking working describe what method they used for flashing recovery? I'm thinking that there's some sort of problem with my filesystem. One symptom is that I can't figure out where RomManager is storing my backups. It sees them, and they take up space, but they're not in my SDCARD partition.
EDIT: I see that my backups are in /data/media/clockworkmod and the hosts file that is being altered by adblocking software is in /system/etc.
Dster said:
There's some funky stuff going on for me. I checked my hosts file, and it had in fact been updated by Adfree/Adaway/Adblock Plus (I've tried them all troubleshooting this).
Superuser says that they have the appropriate permissions.
I take it that there's multiple methods for rooting, right? I just followed the first walkthrough I found. I'm running the CM10.1 nightly with this issue.
Could someone who has adblocking working describe what method they used for flashing recovery? I'm thinking that there's some sort of problem with my filesystem. One symptom is that I can't figure out where RomManager is storing my backups. It sees them, and they take up space, but they're not in my SDCARD partition.
EDIT: I see that my backups are in /data/media/clockworkmod and the hosts file that is being altered by adblocking software is in /system/etc.
Click to expand...
Click to collapse
did you get it working?
I am having the same problem
Nexus 4
4.2.1
Unlocked & rooted using 1.3.0 toolkit..

[Q] Bypass exchange security

Hey all,
I'm coming from the Samsung Epic 4G touch ..... thankfully off sprint ......... that was a horrible 4 years of abysmal coverage .. slow speeds when it would connect .. and random disconnects thrown in just for fun....
I'm pulling crazy fast speeds everywhere I go ... Hit 50Mbps this morning on my commute..
However, one thing I liked about my samsung was that there was an APK to bypass the exchange security pin ...
Anybody know if the Epic 4g Touch (Sprint version of SGS2) APK will work on the G2? or if there is a version out there that will accomplish this ?
I saw one for the GS4 ...
http://forum.xda-developers.com/showthread.php?t=2355654
Didn't know if this would work on the LG G2 ...
Thanks in advance!!!!
Thanks guys!!!!
Are you rooted? Do you have twrp installed? If so try it and give us a yay or nay. It's not that difficult.
Sent from my LG-D800 using XDA Premium HD app
Try enhanced email app in play store.
I'll try to mod this
Sent from my LG-D801 using XDA Premium 4 mobile app
eclipxe said:
I'll try to mod this
Sent from my LG-D801 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Awesome!!! I hope you get it ... It's a pain in the ass to have to password unlock my phone everytime the screen goes off
I would also love this email bypass apk
Here is an Xposed module designed for the G2 that bypasses the Exchange password policy. Use at your own risk.
anybody got this to work?
eclipxe said:
Here is an Xposed module designed for the G2 that bypasses the Exchange password policy. Use at your own risk.
Click to expand...
Click to collapse
When I try to install, it just says "Application not installed" and doesn't do anything .... I don't know if I need to put it in a special folder or something for xposed to see it ...... I don't know what to do
any ideas or is there a different way to install this APK ?
Try saving the apk then using solid Explorer or the built in file manager to find and install it. Installing from the notification shade doesn't seem to work
Sent from my LG-D801 using XDA Premium 4 mobile app
eclipxe said:
Try saving the apk then using solid Explorer or the built in file manager to find and install it. Installing from the notification shade doesn't seem to work
Sent from my LG-D801 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This is how I did it.. file explorer ... install
It just then goes to a screen that says not installed and your only option is to exit.
Xposed doesn't seem to know anything about this file.
Make sure to go to settings, security, and select install all apps or similar option
Sent from my LG-D801 using XDA Premium 4 mobile app
can't get it to install for me either
mike2518 said:
Make sure to go to settings, security, and select install all apps or similar option
Sent from my LG-D801 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Install apps from unknown sources ?
That's turned on.
Still no luck.
marcusrab said:
Install apps from unknown sources ?
That's turned on.
Still no luck.
Click to expand...
Click to collapse
I had that check and it still didn't work
Solution
I just did this on my own before seeing your post- hopefully you will find this useful.
I used this set of APKs: http://forum.xda-developers.com/showthread.php?t=1965468
Grab Email-JB.apk and Exchange2.apk
First, you need to completely uninstall (not just freeze) the LG Email app. I used Titanium Back to do this- make a backup of the app first in case you ever wanted to go back for whatever reason. Once the LG Email app is uninstalled, you can install the 2 AOSP APKs.
I didn't try installing them normally (download->open->install), it's worth a shot- instead I used the directions in the post to push the APKs via ADB.
You should see "Success" after pushing both via ADB (I did Exchange2.apk first, but I can't imagine it would matter). Unplug your phone, open Email, and you're set. My Email is syncing perfectly with my corporate email, no lock screen password required.
fireworksordie said:
I just did this on my own before seeing your post- hopefully you will find this useful.
I used this set of APKs: http://forum.xda-developers.com/showthread.php?t=1965468
Grab Email-JB.apk and Exchange2.apk
First, you need to completely uninstall (not just freeze) the LG Email app. I used Titanium Back to do this- make a backup of the app first in case you ever wanted to go back for whatever reason. Once the LG Email app is uninstalled, you can install the 2 AOSP APKs.
I didn't try installing them normally (download->open->install), it's worth a shot- instead I used the directions in the post to push the APKs via ADB.
You should see "Success" after pushing both via ADB (I did Exchange2.apk first, but I can't imagine it would matter). Unplug your phone, open Email, and you're set. My Email is syncing perfectly with my corporate email, no lock screen password required.
Click to expand...
Click to collapse
YES!!!!!!!!!! This totally works..
Thank you for looking out, and thanks for posting this ... I've been waiting to be able to add this .. and having to carry 2 phones to check email because I didnt want to be pinlocked on my G2!!
My procedure -
Rom tool box free for the uninstall, the titanium way didnt work for me because I have TWRP installed .. and when it would try the recovery removal .. it would boot to TWRP instead of the stock recovery ...
Anyways, Rom Toolbox free has an uninstall utility, couldnt be easier .. uninstalls without a reboot needed.
Turned on wireless storage, copied over exchange2.apk and Email-jb.apk and installed through android .. didnt use the ADB method .... it works perfectly!!!!!!
Thanks again.
That works. Only downside is it removed the feature of peak and off peak for message retrieval. oh well.
eclipxe said:
Here is an Xposed module designed for the G2 that bypasses the Exchange password policy. Use at your own risk.
Click to expand...
Click to collapse
Tried this several ways, but it does not install. Can u give some more direction on this? Do we put itf in the apps folders? Flash it? Any advice would be appreciated. I like the lg email app and don't want to go back to the stock one if possible.
if someone figures out how to do this with the stock email app that comes with the att version, that would be awesome. I like that version better than the one you have to install to get this to work.
I really hate having to use a pin, but I have to give my work permission to remote wipe my phone. Is there any chance this could be flagged by my employer and they remote wipe my phone? That would really suck because of the lack of memory card. Anybody that has been remote wiped, did it affect the entire phone, or just the main system?

Hey Adaway to stick on dirty unicorns?

Does anyone know how to get Adaway to stick on DU? It seems the hosts file gets updated but then reverts back to original after sometime.
Sent from my Nexus 6P using Tapatalk
junkfactory said:
Does anyone know how to get Adaway to stick on DU? It seems the hosts file gets updated but then reverts back to original after sometime.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Yeah I haven't been able to get it to work, their own integrated ad blocking (that doesn't work at all) gets in the way I believe so there's nothing we can do. Have you tried another ad blocker like Adblock Plus?
System > Etc....find all 3 Host files and delete them. Run Adaway and it will stick.
Heisenberg said:
Yeah I haven't been able to get it to work, their own integrated ad blocking (that doesn't work at all) gets in the way I believe so there's nothing we can do. Have you tried another ad blocker like Adblock Plus?
Click to expand...
Click to collapse
Yep! This was my only complaint with their ROM. I substituted adaway with some adblocking Xposed modules. The modules coupled with DU's native adblocking did the trick.
Thanks for the input. I think i actually got it to stick. Here's what i did
1. In adaway preferences, touch Target hosts file then select custom target
2. Select custom target then enter /system/etc/hosts.og
3. Close preferences the hit download and apply.
4. If asks to create symbolic link select yes
So far is been sticking for me. I i think hosts.og is the original and being restored at some point.
Sent from my Nexus 6P using Tapatalk
d08speed3 said:
System > Etc....find all 3 Host files and delete them. Run Adaway and it will stick.
Click to expand...
Click to collapse
thx, it works!

Host file issue trying to get Adfree working

I am trying to use Adfree on my OP5 and although the app reports success the host file in /system/etc doesn't change. The odd thing is if I start the app a second time it reports that the host file is already up to date so obviously it's editing something
https://forum.xda-developers.com/showthread.php?t=2252747
You can try using dns66 or dns changer and point it to adguards dns servers or use something like blokada (which i am running) or block-this (looks to be dead though)
I'll look those up as an alternative. So far i can't find any documentation why host files won't work on Android 7.1.1
It's a know issue on Android latest version you need to flash add away system less host file in recovery. It's somewhere on XDA just do a search for something like add away not working in Android 7.
powerpuff1978 said:
I'll look those up as an alternative. So far i can't find any documentation why host files won't work on Android 7.1.1
Click to expand...
Click to collapse
I don't know if this is relevant to you but I'm successfully using Adaway. I'm unlocked rooted (SuperSU) and have flashed TWRP recovery but Adaway has support systemless support in its settings.

Categories

Resources