yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ipdev:
Sorry all for a bit of OT. 🙃

OT for this thread but, slightly relevant with the last few comments/posts.

It is odd though. :confused:

The toolbox binary is depreciated but, still exists in Android 12L builds.

getprop (for example) is reverted back to toolbox for some reason. 🙃

Note:

Stock Google.

The command is only included in toolbox if not available/(or reverting) the one available in toybox.

Spoiler content hidden.

Spoiler content hidden.

---

When I was going though the toybox updates.

I laughed out loud when I saw they where Douglas Adams fans like me. :p

Including one of my favorite lines from the books. 🙃

"We are now cruising at a level of two to the power of twenty-five thousand to one against and falling, and we will be restoring normality just as soon as we are sure what is normal anyway."

- The Hitchhiker's Guide to the Galaxy​

Cheers all. :cowboy:
[Android Apps and Games] gallegonovato:
Good morning:

First of all thank you very much for the Adaway update.

I wanted to ask a question if I may. It turns out that on a terminal with lineageos 17.1 , Adaway in its latest version and root mode. I notice that it takes more time to search, process the updates of the host lists. In synchronizing the host lists. Even in creating and copying a new host.

That was faster in the previous version of Adaway.

Even some people I know tell me the same thing in other terminals.

And I notice that it does the same with wifi or data. It is as if version 5.12.1 was slower doing these things than the previous version of Adaway. Without having changed the host source lists or anything. Only after upgrading Adaway

I do not know if it happens to you too?

Best regards and thanks for your time and help.
[Android Apps and Games] m0han:
i'm experiencing the same. don't know about 6.0.0b, though. haven't updated yet.
[Android Apps and Games] gallegonovato:
Good afternoon @m0han

But 6.0.0b is still a beta.

What also notice that slowdown is with lineageos 18.1. And in Adaway root mode.

Because for example one person tested on Android without any modification, on his Samsung with Android 12 and Adaway in Vpn and sometimes he notices it and sometimes not.

So I don't know. I don't know if @PerfectSlayer @zgfg @ipdev knows anything and can shed some light?.

At the moment I went back to the previous version and it blew up Adaway again.

Best regards
[Android Apps and Games] zgfg:
As I have stated several times, I use root mode but with all auto updates disabled. Every day or two, or three, I open AdAway and let it update through the hosts sources. I have to reboot anyway (for Magisk to mount new hosts file) hence I see no use of letting the AdAway auto-updating in the background by itself

As that, when I open AdAway to update, I browse or read XDA in parallell and hence I didn't pay attention and/or didn't observe any noticable/important difference with 5.12.1 compared to the previous versions

Btw, I never run a huge hosts sources list and my blocked list is not so big (reading your posts I see that you still experiment with the new and new hosts sources, hence I would expect you to have a substantially bigger hosts sources list, huge blocked list etc -and probably with auto updates enabled)

It also depends on the memory available (updating a huge hosts sources list with a big blocked list would definitely struggle if not enough memory is available)
[Android Apps and Games] gallegonovato:
Good afternoon @zgfg

First of all thank you very much for your help and time.

I don't have the automatic updates active either. I do the same as you. I open Adaway and hit check for updates, and let Adaway do what it has to do.

But I do notice a difference from the last version to this new version. For example a list like 1 hosts updated it without any problem. And small lists were updated, like children eat jelly beans hahaha.

But now it takes much longer. I even downgraded to the previous version and you can see the difference, from one to another.

That's why I was asking. Since I didn't change anything from one version to another, nor host file lists. Nor in the way to update. And magisk with the plugin installed. And so far I never had problems with it creating and copying the new hosts.

What a colleague says is that Adaway chokes again with the screen rotation activated. That if it goes from horizontal to vertical, and the other way around it stops or crashes. But this I can not say since I always use it in portrait mode.

A hug
[Android Apps and Games] zgfg:
I'm not saying I don't believe you that maybe the new version updates slower. I just say that I didn't observe something to be concerned about. And Im to lazy too install now an older version to use it over a couple of days to be able to compare

But if you push things to the limit, huge blocked list to be updated, old phone with small RAM, the phone/app will behave weirdly

Btw, I have 8 GB RAM, and usually running with 5+ GB RAM free, and my Blocked list is 215 K - as on the screenshot
[Android Apps and Games] Nergal di Cuthah:
No orientation crashes on six and my four lists update as fast as ever (didn't notice anything like this on stable either). Do you have a lot of lists? big lists? Maybe the time increase has to do with the duplicates (triplicate etc) being removed. Computers aren't instantaneous with large tasks.
[Android Apps and Games] ipdev:
I did not noticed a difference in the speed of checking/updating hosts files.

AdAway v6.0.0

I run root-mode on my Nexus 7 and non-root (VPN) mode on my Pixel 3a.

I still have a few minor issues with VPN mode but, I have not had time to log and test to report them yet.

I did double check the orientation change on my Nexus 7 (2013) tonight.

I cleared all hosts and updated so I had no blocked hosts.

Then re-selected the sources and updated.

I switched between portrait and landscape a few times while the sources were downloading and it did not seem to affect AdAway.

If you are using hosts sources that do not offer a Last-modified header, like Codeberg and NixNet.

Last-modified header missing -- time-stamps turned off.

That might be causing an added delay in checking/updating hosts files. :unsure:

Now that I type this, GitHub and GitLab links might also have a slight delay.

Do to the workaround to overcome the missing Last-modified header from GitHub/GitLab. :unsure:​

I am a minimalist when it comes to hosts sources.

Currently I have 18,353 blocked. Even that seems a little high to me. 🙃

The sources I am use are all websites.

AdAway official hosts - Pete Lowe blocklist hosts - Personal hosts - mvps (winhelp2002) hosts

Wish I had a better answer for you. 🙃

Cheers. :cowboy:
[Android Apps and Games] zgfg:
@PerfectSlayer, I tested the orientation change couple of times with 5.12.1 and it seems I found a problem:

When you switch from portrait to landscape while updating hosts sources, the third line: "Checking ... hosts source for update" disappears.

And when you switch back from landscape to portrait, that third line does not come back

It continues updating, just it doesn't display the third line to show what's doing now (hence if it takes long for somebody, he might wrongly think that it stopped or something)

And when it finishes the update the third line is still missing to show that either "No source update found" or to show "Hosts file updated successfully"

Hence I don't see that changing the orientation affects the update but it does affect the user interface

Screenshots attached
[Android Apps and Games] PerfectSlayer:
Thanks for the report.

I think I have an idea why it behaves like this and I will see how I can fix it.

For the others experiencing slow down, can you pin down the version that introduce the regression so I can check what changed from this version?
[Android Apps and Games] gallegonovato:
Good afternoon:

First of all thank you very much for your time and help.

I was able to check the horientacion and no problems. I do not know why this colleague of mine says he has failures....

I did notice the speed adjustment by going back to Adaway 5.12.0.

In Adaway version 5.12.1 it took forever to do the pricesis. And in the previous one without problems.

The ram of my movkl, so I don't know exactly. I think 3 Gb (LPDDR4). It is a Huawei Nexus 6p. But I never had problems running Adaway in all versions, and I've been using it for years. With magisk in sh latest version and the module for magisk for dl hosts.

I don't use automatic upgrades. Gago as always. By wiffi or datox, I upgrade and it was always very fast. I don't know if it's because the new version of Adawag was updated by fdroid.

Pefo in version 5.12.0 goes like a Ferrari or a Bugati.

Best regards and thanks to all
[Android Apps and Games] Redrum777:
How can i deactivate the root version only on twitter?

Spoiler content hidden.

These are my authorized persons and the problem I encounter. does anyone know how to help me? I don't want to deactivate adaway every time I enter Twitter and reactivate it when I exit, also because with the root version it does not load the page immediately and the problem persists for a couple of minutes before showing me the page. please help me !!

{Mod edit: Spoiler & thumbnails used for better reading and scrolling experiences - Oswald Boelcke}
[Android Apps and Games] DiamondJohn:
@Redrum777 (andothers) oh please.... thimb nails!if not toi help people to help you (overview of all in one page), then for others.
[Android Apps and Games] Redrum777:
I am sorry. i have tried everything before. I searched around and tried everything. if I wrote here it is because only you can help me! I apologize
[Android Apps and Games] DiamondJohn:
its not where, its when inserting the image from your uploaded files, you have the choice for full or thumnail.
[Android Apps and Games] Oswald Boelcke:
Hello and welcome to XDA, @Redrum777

I hope you'll always find and get the support your require.

I assumed your permission and have edited your post in question i.e. I used thumbnails and placed them into a spoiler additionally.

Regards

Oswald Boelcke
[Android Apps and Games] gaja22:
Hello, I've got the same issue with Twitter, I can't open link to browser. How to solve issue please? Regards.
[Android Apps and Games] Gordietm:
Add "t.co" to your whitelist.
[Android Apps and Games] osm0sis:
Yes, seems like the behavior changed in Twitter recently; it used to only force the t.co the first time you followed a link, but now it does it every time.
[Android Apps and Games] gaja22:
Works very fine, thank you. 🥰
[Android Apps and Games] rodken:
ads-twitter.com
[*]periscope.tv
[*]pscp.tv
[*]t.co
[*]tweetdeck.com
[*]twimg.com
[*]twitpic.com
[*]twitter.co
[*]twitter.com
[*]twitterinc.com
[*]twitteroauth.com
[*]twitterstat.us
[*]twttr.com
[Android Apps and Games] m0han:
can only mods place pics into a spoiler? how can users do that?
[Android Apps and Games] Oswald Boelcke:
No, every on can do this easily by the use of the provided "tools" or original BB Code.

@sd_shadow Did you describe this in your guide already? If not I'll take some screenshots when I find the time.
[Android Apps and Games] sd_shadow:
I haven’t covered Thumbnail/Original options yet

Edit:

Choosing image size for attachments using the default WYSIWYG editor
[Android Apps and Games] Lughnasadh:
I've seen people already directed you to whitelist t.co. Also, I've found that it is either the Adaway official hosts or Pete Lowe's list which is causing this problem with Twitter, I believe. Using just Steven Black's hosts I had no problem with Twitter links without having to whitelist t.co. Didn't test to see which one (or both) caused the problem, because things...
[Android Apps and Games] sd_shadow:
Choosing image size for attachments using the default WYSIWYG editor

Using Spoiler tags to hide text, images, code...
[Android Apps and Games] m0han:
is it that 'hiding' images is possible only with 'insert' option and not 'attach' option?
[Android Apps and Games] User_99:
Thx very very much.

Solution was so essy ;)
[Android Apps and Games] Redrum777:
Thank you all! I have not done the various tests but I have limited myself to deactivating the basic host packages, leaving only Steven black and I have added * t.co in the white list. advice for those who have the root version, restart the phone after making the changes!
[Android Apps and Games] PerfectSlayer:
Hi all,

The new 6.x beta was downloaded thousands time and feedback seems good.

So it's time to push the next changes that upgrades how ad-blocker works with root.

I updated the libsu and no more relies on its I/O module but only on device toolbox/toybox.

Again, don't forget to report if you encounter any issue!

If you like the project, feel free to show your support or become sponsor 💖

Changelog:

Improve screen rotation handling on home screen

Update libsu

Update mongoose web server

Update Android gradle plugin

Update third party libraries

Update translations

Thanks:

Special thanks to kubalav and zgfg for their bug reports.

Download:

AdAway 6.0.1
[Android Apps and Games] gallegonovato:
Good morning:

I wanted to ask you a question, if I may, about Adaway. I was told by a friend if I could pass it on to you.

It turns out that he was looking with App Manager (https://f-droid.org/packages/io.github.muntashirakon.AppManager/ or https://github.com/MuntashirAkon/AppManager), comment that it is not spam k ls advertising application. I put the links so you know ls app that said. I beg your pardon if I did something wrong.

Well I commented that reviewing Adaway in that application, you get permidos of Adaway as:

Assit-screenshot

Alamr

Bluetooth

Master volume

Bluetooth volume

Alarm volume

Access volume

Master volume

Media volume

Noti volume

Ring volume

Voice volume

Coarse location

Mute microphone

Play audio

Read media audio/images/ video

Write wallpaper

Location

And let me know if you can disable these permissions for Adaway. I don't really understand why you get those permissions.

Thanks a lot for your time and help.

Pd:

Good afternoon:

I missed commenting that it is a rooted phone, with lineageos and without any gaps (or google stuff). And most importantly I forgot to comment that Adaway uses it in root mode and App Manager with superuser permissions in Magisk.

Then you always download things from Fdroid. And also XprivacyLua where I remove permissions so to speak, or access almost better expressed. To some applications to x things.

A hug

Pd2: Is Adaway version 6 already stable or is it still in beta?
[Android Apps and Games] d3xt3r:
Hello. I'm using adaway in root mode. Certificate also installed. The ad blanks doesn't seem to be going away at the first app launch. I need to open the app, close it from my recents, and again relaunch it. After this it takes a bit of time before the gaps are removed. Is this the intended behaviour?
[Android Apps and Games] biontx:
Running on pixel 3a android 12; rooted Magisk (2106751e) (24315):

WelcomeMethodFragment.java

Please change to:

private void checkRoot(@nullable View view) {

//NOT WORKING

//// notifyVpnDisabled();

//// if (TRUE.equals(Shell.isAppGrantedRoot())) {

//// notifyRootEnabled();

//// } else {

//// notifyRootDisabled(true);

//// }

Boolean isRooted;

notifyVpnDisabled();

isRooted = Shell.isAppGrantedRoot();

if (isRooted == null) {

// valid!

notifyRootEnabled();

} else {

if (isRooted) {

notifyRootEnabled();

} else {

notifyRootDisabled(true);

}

}

}

tx for your great work! (y):)

​
[Android Apps and Games] halloth:
I added dozens of entries to the user blockedlist and how could I delete them all at once? o_O
[Android Apps and Games] Nergal di Cuthah:
To my knowledge you cannot
[Android Apps and Games] halloth:
That means I can only long press and delete them one by one?
[Android Apps and Games] zgfg:
For that reason, for the next time, it's better to create your blocking txt file, save it to the phone and include to your hosts sources list as (local) File.

Then you would just disable your local hosts (your blocked list)

I'll not go now into details how-to, it's been mentioned several times
[Android Apps and Games] PerfectSlayer:
A null value for isRooted means indeterminate state. So it's not valid.

I pushed an update to fix root detection for new users that broke in 6.0.1.
[Android Apps and Games] biontx:
tx ! :)
[Android Apps and Games] DiamondJohn:
You could clear the data of vanced, and start from scratch.

Or, you could export the config to to a JSon file, which is a text file, edit the text file, clear the data and then re-import your config JSon file.
[Android Apps and Games] selemine:
Does this use etags and last-modified headers and 304 status code to avoid downloading host files that haven't changed since the last download?
[Android Apps and Games] rwhryz:
Is there a chance that updating the source breaks Play Protect certification? For some weird reason, I cannot update an app saying its not supported while i was just using it this morning. The last thing I remember I did on the phone is to update the source.

I was using the stable version, non rooted version.

Tried uninstalling Adaway, cleared Google Play storage and cache, reboot, and still the same. Device not certified.

Thanks!
[Android Apps and Games] Xyphoseos:
Hi, I have adaway installed on my rooted S20 5G and I come here because since a few weeks I cant open link given in tweets. While I click on them, they are blocked by Adaway.

What can I do?
[Android Apps and Games] zgfg:
What to do - take few minutes and go through the last twenty+ posts to find the same questions and the answer
[Android Apps and Games] Xyphoseos:
Is it good like this?View attachment 5634103
[Android Apps and Games] zgfg:
Maybe, I don't use Twitter. But it was all posted one or two pages back

And don't forget to reboot whenever you apply any changes
[Android Apps and Games] User_99:
*t.co should do the trick
[Android Apps and Games] DiamondJohn:
that sounds risky. That would enable www.screwupyourphonet.co
[Android Apps and Games] ipdev:
From previous posts by others, you need to add t.co to your allow list.

- Starting from Post #16,900

Confirmed by the next few posts.

I do not use twitter so I am not sure if that is the only one you need to allow for twitter but, it should fix your issue of opening links. 🙃

Cheers. :cowboy:
[Android Apps and Games] ipdev:
Hi all. 🙂

I do not use facebook(meta) or twitter. 🙃

I added twitter to the AdAway WiKi ProblematicApps section.

[GitHub] - [ProblematicApps] - twitter

Not sure if that is all that is needed for twitter?

--

With the switch from facebook to meta, I am not sure if domains changed?

[GitHub] - [ProblematicApps] - Facebook

--

Can someone who uses facebook(meta) or twitter verify them. 🙃

Cheers all. :cowboy:
[Android Apps and Games] PerfectSlayer:
I don't use FB / META but I can confirm t.co is enough for Twitter links to work.

They used to be blocked for the first load, then go to the real target when refreshed.

Now, Twitter forced links to go through their t.co redirection :(
[Android Apps and Games] Morghoth:
I am rooted with Magisk but after installing AdAway (tried versions 6 and 5) there is no request popup to grant root permission. So I am stuck at the opening screen. Clicking on the root option (on the left) does not help, also tried uninstalls and reboots, no luck. I am using Lineage OS 19.1 (Android 12). Other apps ask for root permission without problem.
[Android Apps and Games] Nergal di Cuthah:
Have you added systemless hosts in magisk
[Android Apps and Games] Morghoth:
Yes, I have clicked on the Systemless hosts button, no change. Can't pass the first screen of AdAway.
[Android Apps and Games] Lughnasadh:
Have you tried to install 6.0.0 rather than 6.0.1? I had the same problem you had when first installing 6.0.1 (albeit on Android 13), so I uninstalled that and installed 6.0.0 and that worked fine. Then I just updated to 6.0.1.
[Android Apps and Games] Morghoth:
This worked, thank you!
[Android Apps and Games] Lughnasadh:
No problem 👍
[Android Apps and Games] DiamondJohn:
what version of Magisk? is it stable or a test or/canary build?
[Android Apps and Games] m0han:
i've had the issue of 'no request popup to grant root permission' while trying to do a clean install of v6.0.1b. the msg that popped up said i'm not rooted, but i'm rooted using the latest magisk canary (25001). i've gone back to v6.0.0.
[Android Apps and Games] ciaoant1:
Hello,

I have the non-root version installed on a Xiaomi mi10t lite, running the latest MIUI version (android 12).

When I disable my 5G data connection, and enable wifi (or vice versa), most of the time the new connection doesn't actually work, and I have to disable the WiFi (or 5G) connection, and then enable it again, in order for it to actually connect to the internet.

With AdAway disabled, this issue never happens.

Any ideas on what could be causing this?

Thank you
[Android Apps and Games] crossmanx:
i have modified aosp 12.1 rom with adaway installed into system partition, so it will be available since the first boot. but i dont know how to give it superuser priviledge so it can modify hosts file. i dont want to use magisk or any root solutions. i only want that adaway can perform blocking by replacing or updating hosts file to block ads.

i think it can be possible using selinux context. some one please explain how to do this. how to set permission so the app can access and modify system files.

thanks in advance.
[Android Apps and Games] DiamondJohn:
even if you switch to SELinu permissive (ie remove ALL SELinux bloks/restrictions), that does NOT suddenly give you superuser/root permissions.
[Android Apps and Games] ipdev:
Not sure if it is a change in Magisk, Android or something else.

There are two open issues on GitHub about it.

AdAway - Issues.

#3,269

#3,272​

I posted logcat(s) and screenshot(s) in #3,269.

Hope it helps PerfectSlayer figure it out. 🙃

Cheers all. :cowboy:
[Android Apps and Games] DiamondJohn:
I havent read the issue posts , however, I have a root app distributed here on XDA, and a few people once complained they were not getting the root request. When I questioned them, it became clear they were running the canary release. A week or two later, a fix was applied to Magisk, and the issue was resolved; ie no change by me / the dev of the app not triggering the root request. There was an (tiny) uproar that I had to "fix my app" :poop:. ie My guess is that the issue in this case is not with AdAway but more likely a Magisk Canary issue (and thats probably what the posts @ipdev linked to are about). And hence I asked the question. It surprising how many people run a test/canary build of their rooting app/method, and then question when their rooting app fails, on other rooted app threads.
[Android Apps and Games] PerfectSlayer:
Hi all,

Sorry for the trouble. I already identified this issue and fixed it but I didn't think so many users will encounter it (you use the app for the first time, by installing the 6.0.1 beta). So I just pushed a small update to fix it and update translations.

Enjoy the beta!

Feedback:

Sure, complete bug reports definitely help a lot! 🙏

This time, it was my fault 😅 It comes from the migration to the latest libsu version that change the root detection method. Using isAppGrantedRoot() does not request root access. It only validates if the app was already granted (returning a three states boolean 😑) I now start a root shell to trigger root access when selecting root ad-block method.

Changelog:

Fix wizard ad-block method check

Update translations

Thanks:

Special thanks to Dandu32, ipdev, Morghoth and zhmstar0310 for theirs helpful bug reports.

Download:

AdAway 6.0.2
[Android Apps and Games] m0han:
all fine now. keep up the good work.
[Android Apps and Games] revized:
V4 on Android 7 doesn't show log request :(
[Android Apps and Games] PerfectSlayer:
Hi, you do not see any request or only the blocked requests are missing? Any logcat?
[Android Apps and Games] revized:
Nothing shows up , v4 does show request on my note20 , not on note8 . I will check the logcat, thank you
[Android Apps and Games] muhschaf:
Forget about anything, have far bigger problems after updateing.