AdAway on Android 8 - Android Q&A, Help & Troubleshooting

Adaway on Android 8 don't work.
With normal configuration is says that it can't write hosts files, then I tried it with a symlinc to the system. Partition, but this doesn't work either, Adaway writes the Horst file, but ads aren't blocked.
Did the Host patch moved in Android 8 or were is the problem?
---
I found the hosts file, but when I open it I get the error
android eacces permission denied
The browser I use has root access, what's wrong ther?

ads are an essential part of googles business concept. That's why they are not amused seeing people playing around with the hosts configuration in order to avoid experiencing ads. This time they have invented a new trick. I guess it will take a few days for the experts to circumvent this new method.

Related

Remove ads on rooted device?

Has anyone found a way to remove ads. Your normal add removing apps don't seem to work on my Archos. Don't get me wrong I buy apps if I have the option but some apps do not have a paid version and I hate having a stupid banner across my screen. I'd gladly pay to have them gone. I know I could turn off my wifi but I normally keep chat open so I need the internet.
As far as I can remember AdFree worked for me. All you need is to replace or edit hosts file. Your system partition should be mounted as RW for it.
Check your root
Adfree says "Unable to locate a partition to remount to write the hosts file to". Probably has to do with me running Uruk . Not a big deal though, I can just manually replace it using Root Exp. Is there a current host file that works best for you? I have found a few but they are a year old.
Take it from http://someonwhocares.org/hosts/ Dan Pollock keeps it up to date and many ROM cookers use it.

[Q] tapjoyads blocked

I am using Criskelo v36 rom with siyah 2.6.9 kernel. Whenever I open and app that uses tapjoyads like Gift Cards, Prize per Day, Majority Feud... and click on get more points, they direct me to ws.tapjoyads.com/**** but the page does not open and immediately says that it is unavailable. I tried opening it on my PC and it worked fine. Can you help me resolve this issue this please?
Sounds like your ROM probably has ad-blocking, and has also blocked that domain.
Check /etc/hosts and remove that entry if present, or disable ad-blocking entirely.
If you're not comfortable remounting file systems and editing files, install AdAway from the market and select "Disable ad blocking".
oinkylicious said:
Sounds like your ROM probably has ad-blocking, and has also blocked that domain.
Check /etc/hosts and remove that entry if present, or disable ad-blocking entirely.
If you're not comfortable remounting file systems and editing files, install AdAway from the market and select "Disable ad blocking".
Click to expand...
Click to collapse
Thank you. adaway worked. Sorry it took a while to reply but I had my finals last week.

XTZ rooted, but ad blockers do not work properly

Hey there,
i juts got my XTZ and rooted it, using vroot (chinese app). Root check tells me that the tablet is rooted, but i am not 100% sure about that. I use adaway to get rid of those anoying ads on the web and in apps. If i install it, it ask for root permissions and installts the host file.
Browsing is ad free, but on a moment, ads are comming back and i have to repatch the host file.
Maybe its the org. kernel with problems to write at the host file?
do you have any idea what i can do ? is it possbile to go for another kernel without unlocking the bootloader over sony?
thanks a lot for your help & a happy christmas !
edit: pretty sure that /system is not rw yet, did try to fix that, but failed. anything i can do here?
edit2: it would be fine if i can edit the host file from the pc just once, without rw access from the tab itself, i just wanna get rid of those annoying ads everywhere

Android 10 Browser ERR_ACCESS_DENIED error accessing file:///storage/emulated/0/...

I've just had a stock OnePlus Nord N10 running Android 10. For years now I've kept a html file on the internal storage of my Android devices that I've used as a homepage for my web browsers that have all my favourite links laid out nicely. On my older OnePlus 3 running Android 8 I open this using the following URL in the browser url bar:
file:///storage/emulated/0/Dropbox/Other/Web_Links.html
And it opens fine.
On the Nord N10 it is failing with an ERR_ACCESS_DENIED error in the browser. I'm getting this in both Chrome and Edge. The URL appears to be correct (typos give me a file not found error) so I'm at a loss to know what's causing this. It feels a bit like the browsers aren't asking for the right permission to open files from file:///storage/emulated/0/ but I don't know how to get them that permission.
If I open the file from a file browser sending it to the web browser it opens fine, but gets a url in the form of content://media/external/file/39531 in the url bar only that url seems to only last until the next reboot.
Just to muddy the waters more - I had a couple of Moto G 5G Plus's running Android 10 a couple of months back that had to be returned because I just couldn't get a decent 4G signal on them and I had the same issue on them, but did "something" and got it working for the file:///storage/emulated/0/... url. Only I wasn't sure even at the time what I did to get it working.
Any help would be appreciated. Even if it's a dummy's guide to how apps relate to file:///storage/emulated/0/ and what specific permission they need to access it.
Hal18ut said:
I've just had a stock OnePlus Nord N10 running Android 10. For years now I've kept a html file on the internal storage of my Android devices that I've used as a homepage for my web browsers that have all my favourite links laid out nicely. On my older OnePlus 3 running Android 8 I open this using the following URL in the browser url bar:
file:///storage/emulated/0/Dropbox/Other/Web_Links.html
And it opens fine.
On the Nord N10 it is failing with an ERR_ACCESS_DENIED error in the browser. I'm getting this in both Chrome and Edge. The URL appears to be correct (typos give me a file not found error) so I'm at a loss to know what's causing this. It feels a bit like the browsers aren't asking for the right permission to open files from file:///storage/emulated/0/ but I don't know how to get them that permission.
If I open the file from a file browser sending it to the web browser it opens fine, but gets a url in the form of content://media/external/file/39531 in the url bar only that url seems to only last until the next reboot.
Just to muddy the waters more - I had a couple of Moto G 5G Plus's running Android 10 a couple of months back that had to be returned because I just couldn't get a decent 4G signal on them and I had the same issue on them, but did "something" and got it working for the file:///storage/emulated/0/... url. Only I wasn't sure even at the time what I did to get it working.
Any help would be appreciated. Even if it's a dummy's guide to how apps relate to file:///storage/emulated/0/ and what specific permission they need to access it.
Click to expand...
Click to collapse
If device's Android is rooted try this
Code:
adb devices
adb shell "chmod 0644 /storage/emulated/0/Dropbox/Other/Web_Links.html"
jwoegerbauer said:
If device's Android is rooted try this
Code:
adb devices
adb shell "chmod 0644 /storage/emulated/0/Dropbox/Other/Web_Links.html"
Click to expand...
Click to collapse
It's not rooted, and I don't really want to root it. The Moto wasn't rooted either.
Does Android do anything "odd" with permissions when copying files around that might be causing this? It was copied in from a memory card.
Hal18ut said:
Does Android do anything "odd" with permissions when copying files around that might be causing this? It was copied in from a memory card.
Click to expand...
Click to collapse
By default, when you create a file as a regular user, it’s given the permissions of 644 ( means: rw-rw-r– ). These permissions don't get stored with the file but within the filesystem where the file is located. Hence when you transfer a file from one filesystem ( here: external sd-card ) to another one ( here: internal sd-card ) , the initially granted permissions get lost.
jwoegerbauer said:
By default, when you create a file as a regular user, it’s given the permissions of 644 ( means: rw-rw-r– ). These permissions don't get stored with the file but within the filesystem where the file is located. Hence when you transfer a file from one filesystem ( here: external sd-card ) to another one ( here: internal sd-card ) , the initially granted permissions get lost.
Click to expand...
Click to collapse
Any tricks for copying (or moving the file) so it gets the correct permissions? Also, any non-root way of viewing them to confirm this is cause of the issue?
The best I've come up with so far is to save the .html files in Android/data/com.microsoft.emmx/files/Download/ and then reference them with file:///storage/emulated/0/Android/data/com.microsoft.emmx/files/Download/Web_Links.html which appears to work. Presumably substituting com.android.chrome for com.microsoft.emmx will work for Chrome.
Still don't understand why Edge and Chrome don't have access to URLs via file:///storage/emulated/0/ nor how I got around this on the Moto.
There might possibly be another way, but I cannot recall the details on how to do it or whether it requires root or not. Some devices have special internal URI's that enable, e.g., debug mode, which can be invoked via omnibox in the form of in-line commands. I remember in particular my car's Android head unit had this for it's native browser and after enabling debug mode,. I was able to browse `file:///` and its subdirectories. My unit did have root at the time, but I want to say that regardless this wasn't accessible without the debug command being enabled, so I would infer it might not require root (but that's purely conjecture). This is not a persistent state, but the command could be saved as a bookmarklet for ease-of-use. I've never looked into whether this is a common or unique Android function, or something the OEM developed.

Is there a way to redirect websites to one another?

Several website blocker extensions on browsers have this option to redirect websites to one another. For example, I want to redirect Instagram.com to Wikipedia.org. Is this doable system-wide on android?
Possible to do it yourself with modification of the hosts file when you have root.
Without root it's also possible, but applications that do this collect info about your activity or, worse, become a host.
ze7zez said:
Possible to do it yourself with modification of the hosts file when you have root.
Without root it's also possible, but applications that do this collect info about your activity or, worse, become a host.
Click to expand...
Click to collapse
I have root but I can't access the hosts file unless if it's the a systemless host file. Can I use adaway, can you show me how?
File permissions are easiest to obtain with a good manager.
If you want to use adaway, then install it and learn how to use it. It really doesn't hurt, and at least it will teach you something.

Categories

Resources