yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] jeffreymcclain:
Workaround for Venmo Banks & Cards

After a lot of trial and error, I think I've managed to get Venmo banks & cards working with Adaway. You need to add the following 5 entries to your whitelist:

*.cloudfront.net

usage.trackjs.com

venmo.com

venmopics.appspot.com

www.google-analytics.com

Switch back to the main Adaway tab and choose "download files and apply ad blocking." You might also need to reboot your phone and/or clear the app data in Venmo, though for me it worked immediately.
[Android Apps and Games] DiamondJohn:
Are you "exporting" from AdAway to /system/etc? The file location is very specific.

Until you get a logcat, everything is a guess. And it may actually not be "device" specific, but could actually be explicitly specific to your individual set-up.
[Android Apps and Games] ipdev:
If AdAway is preinstalled. /system/app/AdAway/AdAway.apk

DNS Logging and Local WebServer do not work due to missing library files.

libblank_webserver_exec.so

libtcpdump_exec.so

You can fix it by copying the lib files from the apk, correct names and permissions.

If your familiar with apk's you know they are basically a zip archive.

Example using an ARM64 device.

So using your favorite root file explorer, open /system/app/AdAway/AdAway.apk as archive, copy the lib folder and past it into /system/app/AdAway

(You will have to change /system to Read-Write)

Rename /system/app/AdAway/lib/arm64-v8a to arm64

(Delete armebi-v7a, x86 and x86_64)

Correct permissions on the newly created directories and files. 0755 (rwxr-xr-x)

system/app/AdAway/lib

system/app/AdAway/lib/arm64

system/app/AdAway/lib/arm64/libblank_webserver_exec.so

system/app/AdAway/lib/arm64/libtcpdump_exec.so

(This takes me about 5 seconds using fx file explorer.)

Hope this may help anyone else having an issue with DNS Logging or WebServer.
[Android Apps and Games] GuardianUSMC:
Actually it is not, Adaway automatically and without prompting creates the file `adaway-export` to the root of the sdcard. If you try it for yourself you will see that you are neither given nor have the ability to choose the export location. When you choose to import, it opens the native explorer and in my case defaults to the root of the sdcard and there is the export file and you select it to import and instant crash. I have done this process under 3.x countless times as my device is where I add and closely monitor things and that list just gets exported and imported on the other device to keep them consistent. But right now, the import just doesn't work.

Ok, but logcats are not like windows events where you have something specific and easily narrowed they are huge and contain a ton of stuff that may not even be related, do you at least have something specific in so far as a parameter for me to filter by before posting a giant toilet roll of useless data :D Also my setup is as generically stock as you are going to get, other than root and adaway sideloaded, there is absolutely nothing else custom on this device, and I have very few store apps installed, I don't like to install a bunch of things, a couple news apps, couple of tools and the usual gapps that come with it and that's pretty much it. There is nothing exotic about my setup. ;) (be happy to do a package list dump for you if you'd like) oh almost forgot, my recovery is TWRP and that's the end of anything different from stock.

Please advise and I'd be happy to provide whatever is needed.
[Android Apps and Games] DiamondJohn:
Writing to the sdcard is VERY different to writing to the system partition.

Run the following before.

logcat -c;

then do the "thing" you wish to trap/capture failing

Then run

logcat -v > /sdcard/$(date +"%Y%m%d%H%M%S")_logcat.log;

This should time limit it down to something manageable/readable.

=============edit============

PS: post the log on www.hastebin.com, not in the thread, and simply post the link here.
[Android Apps and Games] GuardianUSMC:
Ok, I get that but I don't understand why we care about that. We are not writing to the system partition, we have exported listed and now trying to import it, it has nothing to do with the system partition, so why are we stuck on this? Can you help me understand why this matters?

Got it thanks, shall do and post as soon as I get home and finish making dinner and put the wee ones down.
[Android Apps and Games] GuardianUSMC:
@DiamondJohn Well the command you provided didn't work as-is but I figured out what was wrong with it and managed to capture the log as promised, [MENTION=2822685]PerfectSlayer[/MENTION] here you go and as you can see it is throwing exceptions that is causing it to crash and seems to involve some UI elements, but I don't know exactly what so I will leave it at that.

Here seems to be the most relevant bits:

E AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
E AndroidRuntime: Process: org.adaway, PID: 23301
E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
E AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:325)
E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:242)
E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
E AndroidRuntime: at java.lang.Thread.run(Thread.java:761)
E AndroidRuntime: Caused by: java.lang.ClassCastException: java.lang.Object[] cannot be cast to org.adaway.db.entity.HostListItem[]
E AndroidRuntime: at org.adaway.helper.ImportExportHelper$ImportListsTask.importBlackList(ImportExportHelper.java:185)
E AndroidRuntime: at org.adaway.helper.ImportExportHelper$ImportListsTask.doInBackground(ImportExportHelper.java:137)
E AndroidRuntime: at org.adaway.helper.ImportExportHelper$ImportListsTask.doInBackground(ImportExportHelper.java:94)
E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:305)
E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E AndroidRuntime: ... 4 more
W ActivityManager: Force finishing activity org.adaway/.ui.MainActivity
[Android Apps and Games] R3van:
Device is S8+ with latest Magisk and NX Kernel, i think its permissive but doesn`t know for sure

Doesn`t help on my device, Webserver still not running
[Android Apps and Games] PerfectSlayer:
Thanks all of you for narrowing down the issue :good:

It is related to the cast on this method… I will have a look at it tonight.

Could you try to run the web server manually and check if it launches or not?

Open a shell with adb:

adb shell

Once in the shell, become root (accept if there is a root related pop-up on your device) and run the web server:

$ su
# /system/app/Adaway/lib/arm64/libblank_webserver_exec.so

Do you have any error? If no, start another adb shell (do not close the first one) and request the web server:

$ wget 127.0.0.1

If it returns "Failed to connect to 127.0.0.1 port 80: Connection refused", the web server is not running.

If it returns an empty line, the web server is running.
[Android Apps and Games] R3van:
When i try to start the webserver it says permission denied
[Android Apps and Games] koulehu:
Does anyone know if there is any way to block those obnoxious ads in the "chess.com" app? I have tried almost every possible adblocker but nothing works. If the ads are "built-in" into the app, does that mean that there is no way to block them?
[Android Apps and Games] Ch3vr0n:
Sounds like the ad domains are hardcoded, in those cases the hosts file is bypasses and then can't be blocked.

Sent from my Nexus 6P with Tapatalk
[Android Apps and Games] R3van:
Where can i download higher versions of the adaway app than 3.3?

Edit: Nevermind, found it
[Android Apps and Games] guest4711:
Did you "su" before starting?
[Android Apps and Games] R3van:
Yes
[Android Apps and Games] AndrOmega:
please tell me what is latest version?

i saw on another site this version AdAway v4.0.6-180705

is it legit?
[Android Apps and Games] furyza:
AdAway-4.0.6-180705

how to show dialog box to restart after updating new host?
[Android Apps and Games] ktmom:
In preferences -> hide reboot dialog.

If that is checked, you will not get a prompt to reboot.

If you want the prompt to display, then that box must be unchecked.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini

---------- Post added at 11:43 ---------- Previous post was at 11:37 ----------

The most recent BETA release is in this thread from the weekend (4.0.6-6533add3).

Personally, I wouldn't download from any source other than those listed in this thread.
[Android Apps and Games] AndrOmega:
kindly please redirect me to latest version coz all i found on op is version 3.3
[Android Apps and Games] GuardianUSMC:
I am happy to do my part and glad it helped. Thank you for your work on this and it is greatly appreciated.

Also, while you are in there, a little something that you might take a look at as well. On the "Log DNS requests" section, when you go to show results, you always get the same default list (see below) and you can't clear it either (using the icon for clear log on top) and the only way to clear and get a fresh start is to disable/enable logging. Additionally, if you happen to leave the app and it gets closed, as you undoubtedly have to do in order to trap actions by engaging another app, when you return, these are again the only items in there, the only way I have captured things without seeing these default entries only is to never leave the app, which as you can imagine will defeat the purpose of the tool. Can you see maybe what's causing this as well please?
[Android Apps and Games] ktmom:
These are beta releases, so not in the OP. 6 pages back, well within the requirement of "read the last 10 pages before posting" is post #11499.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] jack allen:
Hi there will this help to get rid of more ads? Also how do i let say a certain app through whitelist so app still runs as i think there are apps that require ads that have been stopped via adaway and no longer works because of this
[Android Apps and Games] GuardianUSMC:
You can't whitelist by app, only by actual hostname and as many apps share the same hostnames by virtue of being on the same ad network, if you whitelist then all will have access and if you block, no one will. You are thinking more along the lines of a firewall and that's not how this works.
[Android Apps and Games] jack allen:
Ah right ok then my missunderstanding then sorry.
[Android Apps and Games] PerfectSlayer:
Oh sh..t! I left my debug test list. I just removed it. Good catch :laugh:

Usually, when the crypto sign of the APK matches, it should be safe ;)

Changelog:

Fix host lists import,

Fix default DNS requests when no log entry,

Update translations from Transifex.

Download:

AdAway 4.0.7 on AndroidFileHost (md5: f9ce71ae9482f6c7ba7643009a820284)

Thanks:

[MENTION=2148774]Vankog[/MENTION] for the translation update,

[MENTION=1650358]GuardianUSMC[/MENTION] and [MENTION=5417899]DiamondJohn[/MENTION] for the bug reports.
[Android Apps and Games] GuardianUSMC:
No problem.

---------- Post added at 11:52 AM ---------- Previous post was at 11:39 AM ----------

I swear, I knew that was probably what happened, just didn't want to presume. No problem, glad you got it. Thanks for the release, off to install.
[Android Apps and Games] saoudien07:
Wanted to ask about v4.0.6, but got my answer in previous post...

Sorry enable to delete the comment.
[Android Apps and Games] Pkt_Lnt:
That is old and buggy, get the new one (4.07) just above. ^^^^^^^^^^^^^^^^^^^^^^^
[Android Apps and Games] ktmom:
Understood. But the effort in convincing people to check checksums, and then the need to verify that the checksum on a third party site matches the original....

Call me lazy, it's easier to just point people here [emoji12]

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] martyfender:
You will find the answer if you take the time to search the thread as per rules.
[Android Apps and Games] martyfender:
[MENTION=2822685]PerfectSlayer[/MENTION] I am having a strange issue with your latest version of Adaway that I have never had before. First of all, I must state that for months I have been using and testing unofficial versions of Magisk built by both [MENTION=3306843]kantjer[/MENTION] and [MENTION=7187684]ianmacd[/MENTION] that have [MENTION=4470081]topjohnwu[/MENTION] 's latest commits. On one of my 4 devices I have also been testing your beta releases.

After I install todays release of Magisk and later installed your latest release, I was stuck forever applying the host file so I closed and reopened Adaway and it was then that I noticed that root was denied.

I then opened Magisk Manager and toggled to grant superuser access to adaway.

I relaunched it and it appeared to work, but I never get a toast as I do with other root apps. I checked the host file in Total Commander and it appears to not have been updated as it has a date of yesterday, the 7th.

EDIT: I just disabled add blocking and reapplied it and all of a sudden I finally had the toast popup. This is the strangest behavior I have ever seen with Adaway. When I close and relaunch Adaway, I still don't get the normal toast that Adaway was granted superuser rights. Once again if I disable and reenable it I do get the toast again.

Do you have any clues what is going on without a logcat during the process?

Edit: attached is a per app logcat created in logcatx.

Apparently xda has gone crazy with double posts and bad gateway errors!

Edit: I tested v3.3 on my one of my other, 4 tablets to confirm toasts were alway shown when Adaway is launched, as I remembered.

Thank for all of your work on this!
[Android Apps and Games] GuardianUSMC:
I finally got a chance to sit down, wanted to give you a quick feedback. Well done, so far works flawlessly and no issues encountered, old or new. I will keep you posted if anything pops. Thank you again.
[Android Apps and Games] R3van:
I removed the preinstalled v4.02 from /system and installed the latest v4.07 as normal user app.

Now it works. Same with v4.06 didin`t worked.

Thanks for helping :good:
[Android Apps and Games] patrickdrd:
in the hosts sources list there should be the date last updated, than a plain "up-to-date" I think
[Android Apps and Games] chavocarlos:
Does AdAway should be listed as module in magisk manager?
[Android Apps and Games] Ja_som:
Why? AdAway is not a module for Magisk, it's an app.
[Android Apps and Games] Nergal di Cuthah:
I had the same idea.
[Android Apps and Games] massima:
The official version is 3.3. But i update Adaway, via aptoide, with:

https://adaway.it.aptoide.com/?store_name=varez&app_id=39448554

What is this? fake? unstable?? i use it, is it safe??:confused:
[Android Apps and Games] Pkt_Lnt:
Your answer is fewer than 10 post ago. :p Yes, testing, maybe unstable.

https://xdaforums.com/showpost.php?p=77281010&postcount=11561
[Android Apps and Games] Cryptecks:
Aptoide is an alternative to the Google Play Store or F-Droid, focused on emerging markets. What you have there, however, is someone called "varez" repackaging other apps/apks and distributing them as if they were their own. There is no telling what this Russian person is doing before repackaging and putting them on Aptoide. I won't try to say that it is

definitely

malicious, maybe this person is part of or a volunteer for Aptoide, and AdAway is one of the 30 apps they are responsible for updating, but if I were you, I would nuke that app, maybe fully wipe the device, etc etc. There's literally no way to tell what you have installed or what it could be doing at this point.
[Android Apps and Games] Ultramanoid:
Adding to the previous replies, I would strongly, very strongly suggest you only install AdAway straight from the developer's posts in this thread, or F-Droid. And nowhere else.
[Android Apps and Games] PerfectSlayer:
Hi [MENTION=6140369]massima[/MENTION],

It is a good reflex to ask this kind of question when you are not sure about what you're installing on your device.

I downloaded a 4.0.7 version on this store. Bad news: it weights 18mo where my version only takes 5mo.

So I had a look of what's inside. (See the capture for content comparison).

There is a classes2.dex which means there is a bunch of code which was added.

It contains a lot developer libraries rxjava, retrofit, okhttp, jacoco, json but also a file downloader, an http server, an ads services, etc.

Moreover, the manifest is heavily modified! It does no more start my activity but aptoide ones instead.

It also requests a lot of permissions:

[COLOR="Magenta"]<uses-permission android:name="android.permission.WAKE_LOCK"/>[/COLOR]
<uses-permission android:name="android.permission.READ_SYNC_STATS"/>
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
[COLOR="Magenta"]<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>[/COLOR]
[COLOR="Magenta"]<uses-permission android:name="android.permission.INSTALL_PACKAGES"/>[/COLOR]
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
[COLOR="Magenta"]<uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>[/COLOR]
[COLOR="Magenta"]<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>[/COLOR]
[COLOR="Magenta"]<uses-permission android:name="android.permission.READ_CONTACTS"/>[/COLOR]
[COLOR="Magenta"]<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
[COLOR="Magenta"]<uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>[/COLOR]
<uses-permission android:name="android.permission.INTERNET"/>
[COLOR="Magenta"]<uses-permission android:name="android.permission.USE_CREDENTIALS"/>[/COLOR]
[COLOR="Magenta"]<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>[/COLOR]
[COLOR="Magenta"]<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>[/COLOR]
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
[COLOR="Magenta"]<uses-permission android:name="android.permission.WRITE_SETTINGS"/>[/COLOR]
[COLOR="Magenta"]<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>[/COLOR]
[COLOR="Magenta"]<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

This list of permissions makes me scary! They are not needed for AdAway.

In conclusion, do not download AdAway development apks elsewhere than my Android File Host folder.

Don't get me wrong: the code is open source and you are free to share any custom build. But this version looks more like an adware than an adblocker...
[Android Apps and Games] mythos_:
I agree 100%, I've always found it strange that it doesn't display the last update date.
[Android Apps and Games] runeupo:
What's the general opinion regarding up-to-down in this light ?
[Android Apps and Games] AlgebraicB:
[MENTION=4774928]runeupo[/MENTION] Don't know about up-to-down, but if you want a good source for apks, apkmirror is a good choice.
[Android Apps and Games] androcraze:
Some sources don't update often; a source that's 3 months old may still be the "current" version.

AdAway checks the source date against what's already installed, and downloads as needed. "Up-to-date" simply means "AdAway has checked your source, and you have the latest version installed".

What value does including a date add? I think "up-to-date" is less confusing (especially to new or inexperienced users), it gives clear feedback that AdAway is doing its job, and it lets users know when a source's website is giving issues.

I'd be in favor of having BOTH the date AND the update status, but if I had to choose between the two, I'd prefer the update status.
[Android Apps and Games] DiamondJohn:
I recently found out that Aptoide publishes Warez, and as such, is officially frowned upon at XDA.

I previously used it, but have since removed it from my devices. I remember I checked some of the official Google apps (which I was accepting updates from), and the developer distributing them were not Google :silly: but some guy with a skull and cross-bones as his avatar.:mad:
[Android Apps and Games] runeupo:
Could you please share the Xda-source?

/edit: sorry for ot, am currently investigating options to leave googleversum..
[Android Apps and Games] Nergal di Cuthah:
Per list would better (like in 3.x). I'd accept androcraze's idea for both. Sadly my suggestion comes from a non coder so I don't know what bulk that might add to adaway (which is perfect btw).
[Android Apps and Games] DiamondJohn:
https://xdaforums.com/showpost.php?p=76492242&postcount=3007 and the few posts following

from the post that informed/corrected me: https://xdaforums.com/showpost.php?p=76490264&postcount=10435
[Android Apps and Games] martyfender:
I agree also, but I had asked the developer to do this, but I respect his decision to do what he did. That is also the reason why I keep 3.3 on 3 of my Nextbook Ares 8A's, with Android 6.0.1. For that device, that version still works great.

I continue to test the newer, beta versions on one of my 4 tablets though. It would be awesome if there was a settings toggle to enable, or disable that feature, though. That may be to complicated for him to implement, though.

Is 3.3 not compatible with newer versions of Android? Is that the major reason for the new version?
[Android Apps and Games] massima:
@PerfectSlayer, if you download with your browser any apps you will get only the app store (it is 18MB).

Aptoide, as i read, use a safe way (i hope) to scan own apps. Their adaway version 4.07 gives a issue with the mismatch sign. Now i'm using the xda version downloaded here.
[Android Apps and Games] Thratchen:
Sadly this refuses to install on my new OnePlus 6 with OxygenOS 5.1.8. :(
[Android Apps and Games] ktmom:
More information would be useful. A logcat covering the effort to install is the minimum to report a problem.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] jawz101:
just following back up with you . it was yt3.ggpht.com that was blocking YouTube user images and I've removed it from my list. Sorry for the late reply.
[Android Apps and Games] DroidShift79:
No issues here on the rooted OnePlus 6 with OOS 5.1.9

Works as espected.
[Android Apps and Games] ktmom:
No, Adaway can not remove spaces for ads.

That requires a change to the HTML code that the browser sees. You can use something like uBlock origin in Firefox.

The webserver answers the inquiry made to blocked domains reducing the timeout that occurs when a a domain is blocked.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] The Lord Vader:
Since unified adhosts module for Magisk from now on is abandoned from dev, I've tried to install Adaway 4. It has support for Magisk.

The problem is I can't install Adaway 4, installation failes every time. Adaway 3.2 is by default a part of my rom (Galaxy S8+ CARHDROM), tried to uninstall and freeze in TB, but every reboot it returns from the dead, stopping installation of the new version.

Need some help, please.
[Android Apps and Games] mitchdickson:
Delete the apk from the system app folder.
[Android Apps and Games] drive2droad:
When did adaway version 4 came out? Can you please share the link for v4.
[Android Apps and Games] ipdev:
https://xdaforums.com/showpost.php?p=77300476&postcount=11578