yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] saltylemondrops:
Whenever hosts are being updated, allowed lists become empty in 5.0.x betas.

-No such problem with stable releases

-Using root based ad blocker

-Tried both "Apply allowed hosts from sources" on and off and updated hosts

-Ad blocking works perfectly in any releases
[Android Apps and Games] zgfg:
Yes, unfortunately (at least root version)

I had 5 whitelisted in 4.3, on update to 5.0.2 lost all

Entered again, saw this post, tested to update host sources, and my Allowed list got empty

Edit (steps):

- I had 5 domains listed in Allowed (first screenshot)

- I pressed Download icon (screenshot) to force downloading and parsing my hosts sources again

- It found one by one my Allowed domains in the hosts sources and it deleted them one by one from my Allowed list

- At the end, Allowed lust was empty (second screenshot)
[Android Apps and Games] joakimbo:
Is there any cosmetic filtering in adaway? Currently using adguard cause of this. The empty white spaces make the website look so bad..
[Android Apps and Games] Gruber008:
If you have Xposed try using MinMinGuard, it works really great with AdAway and it removes those white spaces.
[Android Apps and Games] zgfg:
No, root version just fills the hosts file with domains to be blocked and Android then cannot resolve them and e.g. browser cannot pull the ads to show.

Nothing less or more.

So the root version does not need to be running all the time - it's job is just to periodically update the hosts file

VPN version must be running but it similarly tricks the system (in run-time) to be unable to resolve the blocked domains. The rest is the same, an app or browser cannot pull the ad to display.

What would it do with the window reserved for that ad, it's not controlled by AdAway
[Android Apps and Games] guest4711:
No, but on browsers based on Firefox like Fennec F-Droid - https://f-droid.org/app/org.mozilla.fennec_fdroid - you may use ublock-origin for this purpose.
[Android Apps and Games] gFknQ:
what is the second picture? app?
[Android Apps and Games] DiamondJohn:
Sorry to all for the slightly OT.

Although I think it would be better if the ads were collapsed (well beyond host blocking), but seeing the chunks in web pages showing "host not reachable" actually gives me a little pleasure in "sticking it to the man":p:D

I guess the annoyance is reduced by the way I look at it.:good:
[Android Apps and Games] Ultramanoid:
Use it as a handy visual guide to know which web sites should not be used / visited. If they basically rely on spyware, tracking and malware, you should stay away.
[Android Apps and Games] DiamondJohn:
Nearly all web sites rely on advertising for revenue. So just because it has a massing bit being blocked, is in no way an exclusion criteria. And most advertising relies on tracking. By blocking them, the web-sites become an option.
[Android Apps and Games] BraianV:
Hi. Is posible to hide this app so other apps that block themselves if a addblocker is installed, cant find It?
[Android Apps and Games] daywalk3r666:
anyone else facing the issue that changelog not shown when tapping on versionnumber?
[Android Apps and Games] Ultramanoid:
There are always exceptions, but by and large, web sites that are hostile to users and compromise their privacy, data, and security, should be avoided as much as possible. I find uBlock's greatest usefulness precisely lies in helping me trim my daily necessities and knowing who doesn't give a ckuf about their own clients and users. It's also why I pay for a decent clean mail provider and don't use a 'free' malvertisement-spyware-supported one that reads every comma I type to sell me something and also sell my data to someone.

Edit : More to the point of this thread, I think anyone saying this or that hosts file blocks this or that application / site and how to unblock it, please -- is completely missing the point. If it's in the hosts file there's probably a very good reason why, stay away.
[Android Apps and Games] DiamondJohn:
Most apps would not look for a specific ad blocker app, as ad blocking can be done via manual download or using script. Its more common and easier for them to check if access to a specific host is being blocked. ie the results of the ad blocking, or the actual ad blocking itself.

Otherwise, sudo hide exposed module is commonly used to hide YouTube from the playstore. But I think your actual issue is the actual blocked hosts.
[Android Apps and Games] dingsaller:
The 2nd pic is a screenshot from naptime app, for more details about naptime please look at the play store.
[Android Apps and Games] PerfectSlayer:
There is something I don't know what to do about it is: https feature in the bundled web server.

Currently, there is only http support but most of the ad networks use TLS now.

I guess I can:

1. Generate a certificate you need to install on your device,

2. Generate a certificate for a domain I own (ex: local.adaway.org) and set hostname resolution to 127.0.0.1

But user will need to keep running the server on their device... I already had a look here but nothing final yet.

Thank you both. I will have a look at it.
[Android Apps and Games] Help The Peace:
Whatever I do (I tried to exclude several apps in user application exclusions, then rebooted and nothing sticked) the exclusion settings never stick. Often, it randomly determines exclusion for apps... I just don't know how to exclude apps from adblocking... Please can someone help me out here?
[Android Apps and Games] BraianV:
Apps like "playview" detect this adblocker even if its only installed but not ejecuted. I would have to check the hosts then. Thanks
[Android Apps and Games] Ps24u:
[MENTION=2822685]PerfectSlayer[/MENTION], thank you very much for build 4.3.4. Sadly it doesn't correct the negative time / timezone issue, I'm still getting exactly the same weirdness with negative times as before.

Edit: I installed 4.3.4 over 4.3.3 directly, not from scratch, if it makes any difference..
[Android Apps and Games] TotallyAnxious:
[MENTION=2822685]PerfectSlayer[/MENTION] I still think you'd be interested in this source code

I'd imagine it would save you some time in the planned features/to do list you posted.

https://play.google.com/store/apps/details?id=pan.alexander.tordnscrypt.gp
[Android Apps and Games] DiamondJohn:
I did cover myself with "most" ;)
[Android Apps and Games] Gilfreitas:
+1
[Android Apps and Games] cbbella:
Hi, my local newspaper website no longer works since my hosts file was updated. If I disable ad blocking and restart the phone the site works again and I can click on any link on the site to view the news stories in my area. How can I exclude this site from my hosts file so it works all the time.

I've opened my hosts file in a text editor and searched for the name of the website but it's not listed in there
[Android Apps and Games] zgfg:
Post #1, link to Wiki
[Android Apps and Games] s--c:
I'm trying to add my own host file to merge with stock adaway hosts. I'm using file:// to add my own personal list of host file located on my internal storage. When I do this adaway crashes in latest stable version.

Am I doing something wrong or is this an adaway issue? If so is there another way to add/merge my own list?
[Android Apps and Games] cbbella:
I've been on that wiki and I'm no further forward as I don't really understand what I'm supposed to do. The website in question is shieldsgazette.com

What would I need to edit in my hosts file to make that site useable but without the ads

I'm not using any of my own hosts files just the one adaway downloads
[Android Apps and Games] Oswald Boelcke:
https://github.com/AdAway/AdAway/wiki/LogDNS

Focus on whitelist! Check step-by-step until you know what is required for the site to work and what not to allow in order to disable the ads.
[Android Apps and Games] DiamondJohn:
A whitelist would probably be an easier option.

As for using "file://" have you tried with a triple forward slash? ie "file:///" its probably best you provide the full line to assist people to help you.
[Android Apps and Games] knpk13:
I was able to use the in app updater to update from 5.0 to 5.0.1. I see 5.0.2 has been released, but I'm unable to update from within the app. Clicking on the version number in the top right doesn't do anything. Is that a known bug? Does anyone know how I can check for an update? (I know I can manually install the update, that worked for me)
[Android Apps and Games] dingsaller:
+1

Noticed the sane

[MENTION=2822685]PerfectSlayer[/MENTION]; have you removed the inbuild updater?
[Android Apps and Games] s--c:
Ah i was missing the extra '/'

It's easier for me to merge my current host list as whitelist would take forever entering each hostname.
[Android Apps and Games] PerfectSlayer:
Could you at least provide some information in order to reproduce... I spend countless hours on bug fixes and pinging me with "doesn't work here" is really not helping!

Uninstall/reinstall adblocking to reset timers, give me the full url of your sources, the precise time of their last updates, your timezone, the time at which you observe the issue, etc.

I really need all those details to understand how the app can compute a negative time as I am not able to reproduce.

Thanks! I am not sure when I could find time to add the feature I need but I will save me time. Appreciated :highfive:

It's fixed. Once you restart the app, the new version should appear.
[Android Apps and Games] Ps24u:
[MENTION=2822685]PerfectSlayer[/MENTION], I'm using all software defaults, systemless (with Magisk). I'm in Paris now, currently Gmt +2 because of summer time. In winter it's Gmt+1.

I'm using all 3 default "hosts sources", please see the pic attached to my previous message to see the affected host. I don't think it's always the same host that's affected but not 100% sure.

I'm going to try to Uninstall/reinstall adblocking and will let you know if it occurs again.

For now it's 00:40 here (40 past midnight) and the time reported by hosts are:

Adaway: 4 hours

Yoyo: 9 hours

Guthubusercontent: 21 hours.

Hope it helps.
[Android Apps and Games] DiamondJohn:
You could probably do it either with a simply find-replace in any text editor, or Notepad++ which has a vertical/block copy function, or in excel or whatever spreadsheet app you use. You would not need to enter each host name individually.
[Android Apps and Games] Zepzer:
I was getting that error, I deleted Adaway, then selected "system less hosts" in Magisk Manager", then rebooted phone so changes can take effect, installed Adaway and it was up and working

I hope this helps
[Android Apps and Games] s--c:
It says not to edit 'hosts' file by adaway as it'll get overwritten by adaway host list.

I ment manually entering in adaway whitelist app, i see no way to import my personal list apart from adding my file to adaway..in terms of ease and speed.
[Android Apps and Games] EMJI79:
My kernel is rooted with SU, not Magisk but as soon as I update I will be doing that, now that Magisk is working with R.
[Android Apps and Games] Zepzer:
Ok, sounds good.

I rooted my Pixel 4 Xl and AdAway was the first thing I installed. I was looking at getting Xposed or EdXposed installed next. I'm looking forward to see what else I can do with this phone now.
[Android Apps and Games] EMJI79:
[/COLOR]

It's a bit OT but I see most Devs here advising against xposed and alike for security reasons.
[Android Apps and Games] Zepzer:
OT means "off topic"?, sorry I'm barely getting the hang of it.

I see, well thank you for your input. I will stay away from that then.
[Android Apps and Games] Josh McGrath:
I have been using edxposed for a very long time and only run xprivacy lua. Edxposed is open source so the security risk is low with that itself, it's the Xposed modules you have to worry about but most are okay, just don't go crazy with them.

Don't use Taichi, that one is a huge security risk and is closed source so it's very sketchy at best
[Android Apps and Games] DiamondJohn:
I never meant to edit the resultant host file,I was explicitly talking about creating/converting to a white list from the file you are referencing in your list of hosts sources,
[Android Apps and Games] Zepzer:
Thank you for the information. I'll keep this in mind.
[Android Apps and Games] s--c:
Ah okay wasn't sure how to create a whilelist file from my list to add to adaway.
[Android Apps and Games] TheQuarterMile:
Does anyone know what urls to whitelist in order to get Youtube PiP mode working from apps like WhatsApp?

I went through the DNS logs and whitelisted the urls when launching a YouTube video from WhatsApp but it didn't work.
[Android Apps and Games] DiamondJohn:
I think the newer versions of youtube have removed PiP. I say this because the latest Version of Vanced also does not support PiP.

Do you get PiP when your return to the default Hosts file?

If so,and you are serious about getting it working, you can try the manual method:

https://xdaforums.com/showpost.php?p=80044699&postcount=13657

https://xdaforums.com/showpost.php?p=79609664&postcount=13304
[Android Apps and Games] TheQuarterMile:
Yes PiP works when I switch back to the default host file.
[Android Apps and Games] :
I had to whitelist 's.youtube.com' to get YouTube viewing history to work with the blocking sources I use, maybe that'll do the trick?
[Android Apps and Games] TheQuarterMile:
This is the whitelist I created based on the DNS log when playing a YouTube video via WhatsApp.
[Android Apps and Games] snyft:
Using latest stable 4.3.4 when I check for updated hosts it always find some. Is this a bug or something? Does it not update hosts?
[Android Apps and Games] PerfectSlayer:
[MENTION=7487527]Ps24u[/MENTION] [MENTION=8153513]Gilfreitas[/MENTION] Can you try the test build attach to this post?

I removed all date API usage which does not provide timezone support. I hope it is better and there is no more negative time.
[Android Apps and Games] Looper_98:
Hi!

I seem to be having issues with updating the host file. I have tried following what the app recommended (set hosts file to data/data/hosts) to no avail.

I am running Adaway 4.3.3 on my HTC U11 with unofficial LOS 16 and Magisk 20.4 with systemless root module enabled.

Here

is the link for the logcat.
[Android Apps and Games] Ps24u:
Thanks but on Android 7.1.1 this app isn't recognized as a valid app, and cannot be installed..
[Android Apps and Games] ipdev:
AdAway 5.x is built using dalvik bytecode 38.

So it will only work on Android 8.0 (SDK26) and above.

AdAway 4.3.4 is built using bytecode 35.

So it should be compatible with most Android versions.

Not sure if AdAway 5.x can be built using bytecode 35, if not the OP will have to be edit to note 5.x builds are Android 8.0 and above.

Cheers all. :cowboy:

DexFormat source.android - Link

EDIT:

Just checked.

AdAway 3.3-180307 and release_Build-Oct.13.2014

are using 35.
[Android Apps and Games] cultofluna:
Want to whitelist YouTube vanched cause adaway is breaking the history tabs...

Any idea which host exactly have to whitelist?..

Tried dnslog but without success...
[Android Apps and Games] PerfectSlayer:
Damned... I forgot your original request ^^' I mad a port for 4.x version. Please try this test build instead. ( CC [MENTION=8153513]Gilfreitas[/MENTION] )

V5 will be Android 8+ only as explained in the FAQ.

By the time I fix all bugs, everyone will migrate to recent device :silly:
[Android Apps and Games] gygabyte017:
How can I redirect all blocked url to my custom webserver like https://mysite/blankpage?
[Android Apps and Games] DiamondJohn:
t

3 things need to be set.

1. You need to have a fixed IP on your web site

2. Change the redirect IP address in AdAway to the IP address in step 1 (instead of 127.0.0.1) and also respond to http traffic

3. You website has return the same page no matter what path or doc type is requested. For example, your site has to return a page/object for:

https://mysite/randamadpath/path2/adserver.asp

https://mysite/path0/path32/path11/randomdoc.swf

https://mysite/adserve/data/advert.jpg

etc etc etc

NB:all the above is just what I think, and has not been tested. But once you get it sorted, would love to use it;)
[Android Apps and Games] Oswald Boelcke:
Just as a note. I've always set the redirect IP to 0.0.0.0 in order to avoid any traffic.
[Android Apps and Games] DjDiabolik:
5.0.2 installed. it's a bug? i have disabled the option for check updated on host source and i obtain the notification of update presence anyway...
[Android Apps and Games] Pseudonym:
Same experience
[Android Apps and Games] PerfectSlayer:
It's a bug I try to fix for several days now but I miss some help: https://github.com/AdAway/AdAway/issues/1800

Could you enable and disable feature from settings then run

adb shell dumpsys jobscheduler

and paste the result here or on GitHub issue.

By the way, I fixed the allowed being lost on update on stream this morning (that was nice to see some of you on in the chat) and I start adding https feature to web server. Stay tune! :fingers-crossed:
[Android Apps and Games] guest4711:
Most people are successful when white listing 's.youtube.com'.
[Android Apps and Games] snyft:
Will failure to install host updates notify me on 4.3.4?

Or it will just say an update is available?
[Android Apps and Games] Wolfcity:
From where to run the command

adb shell dumpsys jobscheduler

?

If I run it from a local terminal (without adb shell naturally) I get a permission denial.

As you have posted it with "adb shell" should it be run from TWRP?
[Android Apps and Games] DjDiabolik:
as he said before [MENTION=5237901]Wolfcity[/MENTION] also on my device i have a local terminal........ it's avaiable a command i can run from it instead using adb from a pc ?
[Android Apps and Games] Ps24u:
Thank you very much, I'll report back!
[Android Apps and Games] DiamondJohn:
If running it from a PC, you need to connect ADB, then run the above. I'm not sure, but you may need to run it as su

If running from a local terminal on the device, then just run:

dumpsys jobscheduler;

or if you wish to use a GUI, then I built an app that has it.

TeMeFI

You can find it within the menu at:

Then save off the results, and get them within /sdcard/TeMeFI
[Android Apps and Games] gygabyte017:
No problem with 1 and 3, I'm experimenting with a simple vps, however I'm not sure about 2:

a) In version 5.0.2 I can add a redirect specifying the host and the ip: it is the host of my website or the host of each ad website to add manually one by one?

b) I should have to specify the domain of my website somewhere, because with just the ip one cannot check if the https certificate matches with the name

c) even if the certificate is signed by a CA and is valid, will the web browser complain about "I called https://adswebsite so I expected that certificate, instead I got redirected to https://mywebsite and the certificate domain does not match, security error"?

Thanks!
[Android Apps and Games] Wolfcity:
What I did was running the command from a local terminal, that's why I said without the "adb shell" part.

As I get a permission denial then (on an unrooted device) I think the command has to be run as su or from a PC via ADB.

Thanks for the hint about TeMeFi, will have a look into it.

Edit: I get an output running

su dumpsys jobscheduler

from local terminal on a rooted device. Unfortunately on that device I have Adaway 4.3.3 installed.

Next will be trying to run the command from a PC with ADB or installing 5.0.2 on the rooted device.
[Android Apps and Games] PerfectSlayer:
That's one of the main issue. You can't find a CA which will deliver a TLS certificate for a domain you don't own (or at least, I hope you can't find a such shady organization even if any CA can sign any domain ^^'). You will need to self-signed your certificate and be you own CA.

That is what I'm starting to do for AdAway bundled web server. I spend a dozen of hours this weekend to improve it and it now supports TLS! :highfive:

That's is not perfect as you can't set TLD wildcard for SAN (it seems to be forbidden to declare wildcard for top level domain names in subject alternative name certificate record, like *.org, *.net, etc.. Chrome wont take them as a valid certificate) but it works pretty well once you fake doubleclick servers for example.

Most of the sad page icons / grey areas of ads are replaced by white and clean space. I might put a light AdAway logo instead as it looks weird to have a whole blank page on some site ^^'

Thanks for the update troubleshooting. The procedure for debugging work manger (in charge of recurring update task) comes from here: https://developer.android.com/topic/libraries/architecture/workmanager/how-to/debugging
[Android Apps and Games] knpk13:
Oh I didn't realize adaway was what was breaking YouTube vanced's history. I'll try that whitelist, thanks. It wasn't a problem earlier though, do you know why adaway started blocking the history in the first place?
[Android Apps and Games] zgfg:
In fact,, t's not AdAway but certain hosts source that is on the list
[Android Apps and Games] Ceco85:
YCC365 Plus app for web camera view is not working when Ad Away is activated. Cannot connect to the YCC365's server.
[Android Apps and Games] marciozomb13:
Please read the OP and wiki to learn about whitelist.
[Android Apps and Games] SzymonL:
Bug? AdAway 5.0.2 200425 beta.

I turned off automatic updates, but hosts are still refreshed and i get notification about their updates.

Edit: Nevermind, it's already reported: https://github.com/AdAway/AdAway/issues/1800
[Android Apps and Games] gFknQ:
Cancel. Found it. Thanks

I can't find menu in your screenshot. With gplay doze options, etc
[Android Apps and Games] dingsaller:
???:confused:

there's no menu inNaptimes experimental features, the screenshot shows my settings for the experimental features.....
[Android Apps and Games] gFknQ:
yeah, I found it & labs. thanks
[Android Apps and Games] rogers11:
It seems that the F-droid builds are constantly failing for some reason at the moment. Here is the log from v4.3.4 (whatever this means):

org.adaway/lastbuild 40304

Robot: Build log

* build session started at 2020-05-03 14:03:45Z

* this build started at 2020-05-03 20:12:35Z

* this build completed at 2020-05-03 20:19:17Z

* fdroiddata: [https://gitlab.com/fdroid/fdroiddata/commit/a85343f0c70f684518411afcef3632e829ae5858 a85343f0c70f684518411afcef3632e829ae5858]

* fdroidserverid: [https://gitlab.com/fdroid/fdroidserver/commit/3113b890b5f7224c1dbfdb3161e9935ac98b7c33 3113b890b5f7224c1dbfdb3161e9935ac98b7c33]

* buildserverid: [https://gitlab.com/fdroid/fdroidserver/commit/3113b890b5f7224c1dbfdb3161e9935ac98b7c33 3113b890b5f7224c1dbfdb3161e9935ac98b7c33]

== Installed Android Tools ==

== Build Log ==

"could not bring up vm 'builder_default'"
[Android Apps and Games] Oswald Boelcke:
I apologise that's above my pay grade. I'm not affiliated with F-Droid at all.
[Android Apps and Games] rogers11:
It was just for information, no job-offer. ?
[Android Apps and Games] PerfectSlayer:
Again !? :'( I'll have a look at it. Thanks for the report!

About the negative time, I thought I fixed all but not really... I guess I will have to apply a workaround for servers that are not time synced ^^'
[Android Apps and Games] MnMchill:
I had the same issue and from DNS logs I found out that this should be added to whitelist(allowed) for YCC365 and some other camera apps to work:

www.closeli.com

*.closeli.com

*.icloseli.com
[Android Apps and Games] Claudio4780:
Has anybody got an idea when the new Adaway 4 versions will be available via F-Droid ? It still shows 4.3.2......
[Android Apps and Games] Ps24u:
[MENTION=2822685]PerfectSlayer[/MENTION] it seems your 4.3.4 test build with the tentative fix for negative times did the trick here, I've not had it happen anymore since ?
[Android Apps and Games] ManDone.vRs:
Hello . I notice with the latest two stable versions , my YouTube doesn't show anymore videos I watched . If I disable adaway then YouTube start to show me in history videos I watched . How I fix this ? Can anyone give me a hand ? Thank you !
[Android Apps and Games] Wolfcity:
Use the search function, a few posts back for example:

https://xdaforums.com/showthread.php?t=2190753&p=82451087

Just whitelist

's.youtube.com'.