TrackerControl / tracker-control-android

TrackerControl Android: monitor and control trackers and ads.
https://trackercontrol.org/
GNU General Public License v3.0
1.89k stars 82 forks source link

Apps mistakenly think they have no internet access #297

Open Milliw opened 2 years ago

Milliw commented 2 years ago

Do you use TrackerControl from Google Play/F-Droid/other? 2022.02.10-fdroid

Describe the bug I'm using this app since months now and I've having an issue since then but I always thought that sometime with an OS update it will go away maybe. It has not yet. The issue is, that quite often some apps are reporting no Internet connection. I then have to toggle WiFi off and on or toggle tc off and back on again to resolve this issue. I am using Android 10 on a Sony (suzuran) device. Latest official /e/ OS (dev?) build which base is Los 17 if I'm correct. Seems not to occure afair.

To Reproduce

  1. Use any user installed app like ebay Kleinanzeigen, Naldo, ALDI life Musik
  2. App reports randomly no network connection
  3. Disable/Enable TC
  4. Go back to app and problem solved
kasnder commented 2 years ago

This is pretty weird indeed.

Do you have monitoring of system apps enabled? Does this happen in a fresh install of TC, too?

Milliw commented 2 years ago

So I reinstalled the app and monitored the behavior for a few days.

The issue still persists but the behavior is somehow different. Apps still don´t have network connection randomly but sometimes they don´t "recognise" it which means they don´t tell that they don´t have network connection but instead just don´t play music titles in case of "Aldi Musik" eg or don´t load images in case of "Ebay Kleinanzeigen" and so on.

I also thought that it might have to do with that I disabled the permanent notification of TC in the top menu but atm I did not disable it so that´s not an source of issue.

kasnder commented 2 years ago

This explains a bit more! Do you have monitoring of system apps enabled though?

Milliw commented 2 years ago

This explains a bit more! Do you have monitoring of system apps enabled though?

Nope. But I have "strong blocking" activated.

kasnder commented 2 years ago

This explains a bit more! Do you have monitoring of system apps enabled though?

Nope. But I have "strong blocking" activated.

This shouldn't be an issue... I'll investigate, but please bear with me that it'll take some time.

oliverguenther commented 2 years ago

This happens to me as well occasionally through a number of apps. Sometimes closing and reoping the apps also seem to help.

I always work around the issue by using the 10min quick shut off through the sticky notification.

Please let me know if you have any ideas I can try to help in debugging it.

kasnder commented 2 years ago

I could imagine that some app ping google.com or some other blocked server to check internet access?

kasnder commented 2 years ago

Could someone check the 'Traffic Log' of TC to see if those apps contact any domains which might get blocked?

The new version of TC even highlights those domains that are related to tracking in bold.

Milliw commented 2 years ago

So I took a look into the traffic log for a couple of times but I did not see any blocked entries there.

But I have to say also, that I do not have any issues anymore since quite a while now. I think that it has/had something to do with the OS. Because since last or second last there was no issue anymore.

Furthermore /e/ OS just released version 1.0 of their system which introduced some integrated anti tracking functionalities so for now I switched TC off to try this instead. And it works so far except some apps do not work well with all antitracking functions enabled but this is a different topic. =)

kasnder commented 2 years ago

So I took a look into the traffic log for a couple of times but I did not see any blocked entries there.

But I have to say also, that I do not have any issues anymore since quite a while now. I think that it has/had something to do with the OS. Because since last or second last there was no issue anymore.

Furthermore /e/ OS just released version 1.0 of their system which introduced some integrated anti tracking functionalities so for now I switched TC off to try this instead. And it works so far except some apps do not work well with all antitracking functions enabled but this is a different topic. =)

Oh, that's great that they have integrated this now!

SekhGulamMainuddin commented 2 years ago

Facing a similar kinda issue with Api level 27 but works fine with Api level 31

kasnder commented 2 years ago

Facing a similar kinda issue with Api level 27 but works fine with Api level 31

Thanks for reporting!

mmoya commented 1 year ago

In my case the reporting of no internet is consistent across app and the OS internet connection status.

Sometimes the OS reports no connection (the '!' in the 4G bar icons). When that happens applications reports that there is no connectivity (with the notably exception of Telegram, that is able to work normally).

I can fix it by disabling TrackerControl, activating airplane mode, waiting some seconds, deactivating airplane mode and the reactivating TrackerControl.

For me it "feels" like TC is interfering with some connectivity check service (I've checked in the list of monitored applications and there is nothing like that) that is only used with data connection. And in that situation the traditional applications don't check connectivity by themselves and just ask the OS if there is connectivity.

It never happens with WiFi. For the time being, I've activated Traffic Log and will be looking at it

I'm using version TC 2022.10.25.

hista commented 1 year ago

Hi, I have the same issue. Some apps aren't affected (like Telegram), many others are. Do you have any idea how to solve this issue? Thanks for your kind help :)