yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] PoochyX:
Firefox and ublock Origin for browser blocking and might have to use a solution like adguard or DDSS66 for now cause root system files are different in Q.... Google went with a different approach

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] arvylas:
What's ddss66? It's the 1st time I see that and Google doesn't come up with anything useful.
[Android Apps and Games] PoochyX:
I meant DNS66

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] ipdev:
AdAway is working fine on my PH-1.

Essential's Q-Beta, Magisk Canary-Debug and AdAway v4.2.4

Tested both the main/xda and F-Droid AdAway versions.
[Android Apps and Games] arvylas:
[/COLOR]

For me the hosts are being downloaded fine but no ad blocking occurs. I have a pixel 2xl but with magisk 19.1
[Android Apps and Games] Portgas D. Ace:
Try rebooting your phone after applying the hosts file.
[Android Apps and Games] arvylas:
I obviously did that
[Android Apps and Games] martyfender:
Did you enable the systemless host module in MM settings and then reboot the device to enable the module?
[Android Apps and Games] arvylas:
Yes. Otherwise it doesn't let you download the hosts. You get an error that storage is full or something in Q.
[Android Apps and Games] guest4711:
AFAIK on Q you have to disable 'secure dns' to use the hosts file...
[Android Apps and Games] Oswald Boelcke:
I'm not familiar with "Q". What is "secure DNS" that it's supposed to have. I know that "private DNS" was introduced with "Pie". I've posted about it here. At least with private DNS I don't see a conflict with hosts.
[Android Apps and Games] swn4450:
Adaway

Thanks for your effort in putting this app together and then share it with the technology freak community :good:
[Android Apps and Games] bogdan1980:
For YouTube i use old version
[Android Apps and Games] smeejaytee:
Hi I wonder of any one can help the mother of all adblocking URL seems to have stopped working in your hosts does any body know why or how to get it back than you
[Android Apps and Games] wilflare:
has anyone got this to work on Note3 (KitKat 4.4.2)

I actually... just want ads removed on my Browser...
[Android Apps and Games] joluke:
Use the modded version on OP

Enviado do meu SM-N9005 através de Tapatalk
[Android Apps and Games] khanmein:
unable to get rid pvz2 & banana kong ads.. thanks~
[Android Apps and Games] erikrh:
hey I just installed the d4rken mod version which indeed fixes the "applying hosts file" problem in 4.4.2, but now it doesn't updates automatically (option checked in settings) any idea why or a way for fixing this? thanks!
[Android Apps and Games] Hgneto:
Hello! I just installed d4rken mod version and it works everything fine till now, BUT CNET just does't work fine anymore... When i open the app, i can only see what is written in the news, can't see the pictures or videos (it appears like its loading,but it never loads). And also when i open and go see running apps, it doesn't show up CNET as running.. I really enjoy the feature that this app provide, but can you give me a fix for the CNET problem? Thanks!
[Android Apps and Games] sebaslive:
Is there something like this on google TV? The ads always send me back to the home screen making the process unbearable.
[Android Apps and Games] Hgneto:
And by CNET I mean the app (tech news), it's free so try to download it and you will see what I'm talking about..
[Android Apps and Games] Pkt_Lnt:
Earlier in the thread someone posted the url that you need to whitelist to make it work.
[Android Apps and Games] Hgneto:
The other users didn't help me with my problem.. I used log DNS requests and added to white list everything that said CNET and still doesn't work.. Maybe it's another source.. Help please..

Thanks!
[Android Apps and Games] adomol:
I'm having a similar issue but with goal.com. I cannot for the life of me figure out how to get that site to work.
[Android Apps and Games] Skripka:
It could well be that the twits at CNet wrote their app to be broken if you use an adblocker.

Personally...I'd count it as a blessing...C|Net went to hell after they got bought out quick. It has been years sense there's been anything resembling journalism there.
[Android Apps and Games] Hgneto:
It's not exactly for the quality of the journalism, but more to be updated with tech news and some interesting stuff like good tech for nice prices.. Every night I have a kind of a ritual which consists in watching around 5/6 news apps, to be updated in every field and CNET was one of them.. If anyone knows how to solve the problem please help me. You can download the app to test (it's free), maybe you can find the solution. Best regards!

---------- Post added at 10:20 PM ---------- Previous post was at 10:16 PM ----------

(I can still read the news and that stuff, just the images and video missing)
[Android Apps and Games] Pkt_Lnt:
Did you enable Log DNS Requests, then enter CNET to see what URLs are used. You can whitelist the ones that block what you are missing.
[Android Apps and Games] concoc:
adaway and bbc

Hello,

I cannot play bbc videos (in bbc app) with adaway enabled. I tried disabling adway and I had the videos again.

With the DNS Log, I found out that there were bbc.co.uk and ibbc.co.uk requested.

But, even with *bbc.co.uk in white list (and restart of course to apply the host file), the videos dont work.

Could anyone please tell me which address I shoud add to the white list ?

I meaned the BBC News app.
[Android Apps and Games] swat4samp:
There are still ads present in two of these apps ::

I alreaady tried to log dns requests and check but the log file is empty :confused: Am i doing something wrong?
[Android Apps and Games] anonymous-bot:
I've read in a few sites that having AdAway enabled can prevent Google Opinion Rewards from giving you credit. Are there specific hosts I can whitelist to prevent that? I'd prefer not to disable/enable AdAway each time since it requires a phone reboot.
[Android Apps and Games] arvansome:
d4rken's version is working just fine, thanks.
[Android Apps and Games] PoochyX:
If controls access to inappropriate and malicious intent content like host files that block porn sites

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] arvylas:
Can't find that option anywhere
[Android Apps and Games] powerserge1:
Same here. Was on 18.1 and was not working, seemed to work before but when updated to the latest Magisk manager that's when it stopped.

Have you tried using an older version of Magisk app manager? Have not tried it yet but hopefully there is a solution.

Host files look correct in Adaway, systemless root enabled in Magisk manager. Nada.
[Android Apps and Games] arvylas:
Are you using q beta 3 as well?
[Android Apps and Games] powerserge1:
No, on pie.
[Android Apps and Games] arvylas:
I was asking about q beta.

I never had any problem with pie.
[Android Apps and Games] powerserge1:
There are reports of issues with pie also, especially the May update. Either way it was working now it isn't
[Android Apps and Games] mariosaraylian:
Not Enough Space Error When Updating Hosts

Guys:

I have searched and searched the thread and tried the various methods of fixes everyone has posted but I still cannot get rid of the "Not Enough Space" error when I try to update to the newest hosts files with AdAway 4.2.4.

I have an HTC10 running Oreo 8.0.0, and the LeeDroid 10 v5.3.0-R3 ROM.

I am on Magisk v19.1 (19100) and Magisk Manager v7.1.2 (208). Systemless Hosts is enabled and the module shows that it is there just fine.

I do not have any issues with AdAway getting SuperUser access, and Systemless Hosts is enabled in AdAway as well, default Target Hosts File is in /system/etc/hosts.

When I Clear the Data/Cache for AdAway and re-launch the app, I see "Enabled: Newest Hosts Files Enabled" (with the green check mark).

When I tap "Check For Updates", I see "Update Available Newer Hosts Files Available", and then I tap "Update Hosts" again, it downloads the Hosts and says "Applying Building Hosts File", and THEN I get the Not Enough Space error.

I have no clue what I should next to get rid of the error.

Does anyone have any suggestions? Do I need to provide a Log File? If so, does AdAway have a built in one or do I need to run LogCat for it?
[Android Apps and Games] r0tt0r:
can you open a terminal and run following:

su

mount -o rw,remount /system

then retry to update the hosts file. also do you see the magisk popup that superuser access was granted?
[Android Apps and Games] jcmm11:
NO. You do not want to mount system rw. A logcat may be helpful
[Android Apps and Games] mariosaraylian:
As I wrote, I do not have any issues with AdAway getting SuperUser access and I see the SuperUser Pop Up from Magisk for AdAway just fine.

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

I have LogCat installed, should I just start it and then go through all the steps again of trying to Update Hosts again and get the Not Enough Space prompt....?
[Android Apps and Games] guest4711:
Because you are using AdAway in systemless mode the files are created on /data/... Is there enough space left?

Are you using the default hosts sources? If not, disable all but one and try again.

Last attempt: Ignore the error. Update again afterwards. Some times ago it helped on one device.

Or clean AdAways data and cache and start over...
[Android Apps and Games] mariosaraylian:
I have 19GB used of 32GB as far as Internal Storage....

I tried disabling all sourced except for https://adaway.org/hosts.txt: Still the same Not Enough Space Error.

In my original post, I stated that I cleared App Data/Cache etc., you can see the steps after I reboot of what happens when I try that....

Thanks for your help either way!
[Android Apps and Games] nadeemakhtar1994:
Worked perfectly on oxygen os oreo but after upgrading to pie not working. Neither blocks ads not whitelist works. Did clean install of rom still safe issue.
[Android Apps and Games] guest4711:
Ok. But how about /cache?

Do you have any busybox installed? Try installing/activating busybox from Magisk repo, reboot and try again.
[Android Apps and Games] DiamondJohn:
Slightly off the issue, but if its not blocking ads, then isn't it basically whitelisting everything:confused: ie how can you say whitelisting isn't working. NB: These are two very different issues with 2 very different probable causes to be resolved.

I have had an issue previously where it would only block ads on WiFi but not on mobile data connection. I made it work by explicitly setting the DNS for mobile data. That made it work for me. Not sure how, as I would of thought the host file gets processed before it try's a DNS.

EDIT: Almost forgot the most obvious step. Did you check your host file is actually being built?
[Android Apps and Games] guest4711:
I had to toggle "private dns" from automatic to off to make it work on Pie (settings -- network & internet -- private dns).
[Android Apps and Games] manojl76:
Hi I have s10 plus android pie with root and last version of AdAway have systemless host enable in MM but I see ads in everything even on xda app I'm missing some steps to make it work?
[Android Apps and Games] guest4711:
Have a look onto previous post. And disable all proxy-servers in your APN-settings.
[Android Apps and Games] manojl76:
Already did mate try several things but still the same
[Android Apps and Games] DiamondJohn:
I dont have your phone. However, my steps would be to:

Confirm that your host file has actually been built

Confirm that the location of your host file that is built, is in the correct location

Check your DNS server (NB: it changes when you switch between WiFi and mobile data) being used, and change to 1.1.1.1 to test

Check a ping

Do a trace route
[Android Apps and Games] dhacke:
I didn't need to do that. I'm on Pie, too (OmniROM 9).

AdAway works with active Private DNS function on my phone.
[Android Apps and Games] SirRoy:
Not-Ad Free

Not Free with this
[Android Apps and Games] Cronoss:
Does this work with the hosts file?

or filter lists like adblock or ublock?
[Android Apps and Games] PoochyX:
Host files....

[emoji3436]I Will Sacrifice For Those That I Love [emoji3434]
[Android Apps and Games] prathu30:
Is there a good host list to block in app ads or log dns is the only option?
[Android Apps and Games] PoochyX:
Steven black list.... Or Jerry's list.....

[emoji3436]I Will Sacrifice For Those That I Love [emoji3434]

---------- Post added at 07:34 PM ---------- Previous post was at 06:55 PM ----------

https://r.tapatalk.com/shareLink?ur...share_tid=3827269&share_fid=3793&share_type=t

[emoji3436]I Will Sacrifice For Those That I Love [emoji3434]
[Android Apps and Games] mariosaraylian:
I installed BusyBox from within the Magisk Depo, and I also upgraded to the latest version of Magisk v19.2 (19200), I also cleared Cache and App Data for AdAway.....

Still getting the same Low Space error after building the hosts file....!!!!!!

Not sure what I should do now!?
[Android Apps and Games] Portgas D. Ace:
You do have the Systemless Hosts module enabled within Magisk?

EDIT: Nevermind, I read that you have the module enabled within Magisk. My best bet would be to uninstall AdAway completely, then reboot your device (check that the Systemless Hosts module is indeed activated within Magisk Manager), then re-install AdAway again and check if the option "systemless hosts" is enabled within AdAway.
[Android Apps and Games] mariosaraylian:
Yes.......every obvious thing is done.........thats why this is driving me NUTS!
[Android Apps and Games] Portgas D. Ace:
Check my edited post again.
[Android Apps and Games] mariosaraylian:
I tried that also...........same thing!

Thanks for trying tho.......I REALLY can't get this thing to work!!!!!!!!!!!
[Android Apps and Games] jcmm11:
Really need a logcat to see what's happening. Matlog from Play Store is good for this.
[Android Apps and Games] mariosaraylian:
I have uninstalled and re-installed. Systemless Hosts are both checked and present in Magisk and AdAway.

Here is a LogCat file of when run AdAway and get the error.....

I've never used LogCat before, so I hope I recorded the data correctly...
[Android Apps and Games] mariosaraylian:
Here is a LogCat....
[Android Apps and Games] jcmm11:
There's something screwy with Systemless Hosts. Are you sure that is setup correctly?

Here's the relevant error

05-20 23:49:23.427 E/AdAway (24322): FileNotFoundException

05-20 23:49:23.427 E/AdAway (24322): java.io.FileNotFoundException: /system/etc/hosts (Permission denied)

Note the permission denied, which is the true cause of the file not found. This won't (or at least shouldn't) happen if Systemless Hosts is correctly installed.

Look in /sbin/.magisk/modules/

You should have a directory named "hosts". In there should be another directory system/ which contains etc/hosts

What version of Magisk are you running?
[Android Apps and Games] r0tt0r:
thats same issue i got..see my post somewhere before..adaway is not asking for root..

ps solution which worked was:

Update: thx to post of guest4711 i was finally able to solve the issue.

i edited the magisk.db file manually with sqlite and added under policies table a line:

uid 10196

name org.adaway

policy 2

unitl 0

logging 1

notification 1

deleted /system/xbin/su

then symbolic linked magisk su to system/xbin

ln -s /sbin/su /system/xbin/su

rebooted and adaway is working again.
[Android Apps and Games] mariosaraylian:
I see the toast popup message for AdAway being granted SuperUser Rights with no problem. This further adds to WHY THIS MAKES NO SENSE and is driving me crazy!
[Android Apps and Games] r0tt0r:
and.deleting adaway from root access it gets readded?
[Android Apps and Games] mariosaraylian:
The Hosts File in the directories you described is there as it should be. I am on Magisk v19.2 (19200), and Magisk Manager v7.2.0 (213).

AdAway version is 4.2.4: Is it worth a shot to do the Magisk,db file edit with SQLite that was posted before? (and below):

Edit the Magisk.db file manually with sqlite and added under policies table a line:

uid 10196

name org.adaway

policy 2

unitl 0

logging 1

notification 1

deleted /system/xbin/su

then symbolic linked magisk su to system/xbin

ln -s /sbin/su /system/xbin/su

---------- Post added at 01:55 PM ---------- Previous post was at 01:52 PM ----------

If I go into Magisk Manager and Superuser settings and uncheck the toggle for AdAway and go back into the AdAway App and update the hosts, it indicates that Root Access Is Denied.

This is the proof that shows that AdAway is getting SuperUser Access......

Again, makes NO SENSE.....
[Android Apps and Games] r0tt0r:
and removing the /system/etc/hosts file and relinking from /data/hosts to the destination?
[Android Apps and Games] mariosaraylian:
When I try to remove the /system/etc/hosts file, ES File Explorer indicates "Device or Resource Busy" and does not let me delete it.

I tried with Root Explorer also, and it says the file is deleted, but it is indeed not.

When I quit and run AdAway again to build the Hosts file, I still get the same @#$%& Not Enough Space error....!!!

UPDATE: I figured out that the Hosts File in System/Etc needs to have permissions to be deleted. I deleted it, and I also uninstalled the Systemless Hosts Module in Magisk, I rebooted, I re-installed the Systemless Hosts Module in Magisk, and rebooted again, I tried AdAway AGAIN, and AGAIN the same Not Enough Space Error........
[Android Apps and Games] mariosaraylian:
jcmm11:

Do you think its worth a try to Uninstall Magisk, and re-install it over again...?

Since you think its a permissions problem with Systemless Hosts in Magisk, or that Systemless Hosts is not installed correctly...?
[Android Apps and Games] jcmm11:
All shots in the dark right now. First thing I'd try is to delete then re-add the hosts module. Just delete the module/hosts directory then reboot. Add the hosts module again. Reboot. Try AdAway again.

If that doesn't work try uninstalling and reinstalling Magisk.
[Android Apps and Games] githyanki:
Silly question, how much space is actually left on your devices data partition?

I also assume you have tried with just the default sources and disabled them down to just 1.
[Android Apps and Games] mariosaraylian:
I have 19GB used of 32GB as far as Internal Storage....

I tried disabling all sourced except for https://adaway.org/hosts.txt: Still the same Not Enough Space Error.

In my original post, I stated that I cleared App Data/Cache etc., you can see the steps after I reboot of what happens when I try that....
[Android Apps and Games] DiamondJohn:
I would be careful that the UID is specific to the install and not the app, and thereby may not be the same on every device.
[Android Apps and Games] jcmm11:
Very good point. For example AdAway on my phone is 10421.

Just go to /data/data/org.adaway and see who the owner is.
[Android Apps and Games] r0tt0r:
try from twrp terminal as system/etc is read only..
[Android Apps and Games] r0tt0r:
yes sorry didnt mention that. logcat shows the right id
[Android Apps and Games] Wixcee:
Hello. I have v.3.3 now i want to update to latest but everytime iwant to update without uninstalling old 3.3, it says "app not installed".
[Android Apps and Games] HamsterHam:
Different keys I guess. Back it up, uninstall and install the new version.
[Android Apps and Games] Frank Dewey:
Hi, so I upgraded to Android Pie on my OnePlus 3T last night. My phone is rooted and running OOS 9.0.2 now. I installed AdAway from F-Droid and the one from the XDA thread and installed the host files. AdAway says "Failed To load hosts file content" when I click the "Open hosts file" tab. Even added Systemless Hosts from Magisk and still no fix. The Root directory is full and someone who was having the same issue said freeing up some space will fix the issue. Can someone help me figure this out?
[Android Apps and Games] RumbleRumble:
This may happen when your root partition is full which is typical in the oneplus 3T. Use a debloater and remove apps from the root partition that you can install from Google Play later, like for example Google apps like play music, play movie, dúo, etc. This will free space in the root partition for AdAway to be able to save its Hosts file.

My device is also a 3T. I followed this procedure last night and it worked, after I installed 9.0.2 OOS. Debloater can be found here, it works flawlessly: https://www.google.com/url?sa=i&sou...aw2SgGy66crzlOVfkDnMv1ee&ust=1558760925897723

Good luck!!

Enviado desde mi ONEPLUS A3003 mediante Tapatalk
[Android Apps and Games] SacredDeviL666:
Thread Cleaned.

I am sure i don't need to state the reason for this.

Thanks

SacredDeviL666.
[Android Apps and Games] mariosaraylian:
Jcmm11:

Actually I just noticed that in /sbin/.magisk/modules/hosts/system/etc, there actually is no Hosts file in the "etc" directory.......

Is this part of the problem as well..?

---------- Post added at 02:45 PM ---------- Previous post was at 02:40 PM ----------

My LogCat shows "uid=1000(system)".....is this the correct UID for me?

UPDATE: I installed APK Tools which shows each UID for each App. Adaway UID is 10259 for me....

---------- Post added at 02:59 PM ---------- Previous post was at 02:45 PM ----------

I installed APK Tools which shows each UID for each App. Adaway UID is 10259 for me....

---------- Post added at 03:24 PM ---------- Previous post was at 02:59 PM ----------

r0tt0r:

When I opened the magisk.db file within SQLite Editor, and open the Policies Table, I noticed that the entry for Adaway is already there with the info below:

UID: 10259 / Package_Name: org.adaway / Policy: 2 / Until: 0 / Logging: 1 / Notification: 1

Should I add it again, and then delete /system/xbin/su, then symbolic link magisk su to system/xbin (-s /sbin/su /system/xbin/su), and then reboot?

I assumed that this fix was only for if the Adaway entry is not in the Policies Table at all...?
[Android Apps and Games] r0tt0r:
when open superuser in magisk and click adaway the extra options show up, click the trashbin, then open adaway, if it reasks for superuser/root all is fine here and nothing needed to adjust. i would try to proceed with linking /data/hosts to /system/etc/hosts and choose in adaway /data/hosts. this works for me
[Android Apps and Games] mariosaraylian:
Stupid Question: How do I link /data/hosts to /system/etc/hosts...? Is it through SU commands in the Terminal...?
[Android Apps and Games] r0tt0r:
i recommend to do from twrp terminal.

touch /data/hosts

cd /system/etc

cp hosts hosts.backup

rm hosts

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

reboot and set in adaway the hosts file to /data/hosts

run update, reboot and check if it works while accesing any url from a blocklist used

one remark: flashing system image or installing update you might need to redo the linking
[Android Apps and Games] mariosaraylian:
After I put the command cp hosts hosts.backup, I am getting the error "cp: can't stat "hosts": No such file or directory"

????
[Android Apps and Games] jcmm11:
It's the entire problem.

Go into Magisk Manager|modules

Click on the garbage can next to Systemless Hosts

Reboot

After rebooting verify that /system/etc/hosts exists. Should be about 56 bytes.

Go into Magisk Manager|settings

In the Magisk section click on Systemless Hosts

Reboot

Verify that /sbin/.magisk/modules/hosts/system/etc/hosts exists

See if AdAway now works. (You may want to uninstall then reinstall)

Do NOT try setting up /data/hosts, deleting /system/etc/hosts etc. This is absolutely not needed and is counter productive.