AdAway / AdAway

AdAway is a free and open source ad blocker for Android.
https://adaway.org
GNU General Public License v3.0
7.18k stars 575 forks source link

App suddenly goes inactive, not close/remove from tasklist. Sometimes even the the VPN turns off. #3948

Open COALROCK8642 opened 1 year ago

COALROCK8642 commented 1 year ago

Is there an existing issue for this?

Current Behavior

  1. I start the app,
  2. I then set it, active mode,
  3. Let it be in background task
  4. Ignoring and seeing my VPN notification I do my other things.
  5. All of a sudden it get stops, (you can make notification of app going inactive.)

Expected Behavior

  1. I start the app,
  2. I then set it, active mode,
  3. Let it be in background task
  4. Ignoring and seeing my VPN notification I do my other things.
  5. Enjoy

Steps To Reproduce

No response

Device Configuration

Additional context and screenshots

It can be my low memory phone just disables the task, (changing settings in phone right now) I have set this adaway-VPN tobe always connected mode. Let's see for a week.

Still I will comment that my low memory phone is just killing the process, how to solve this issue? I did remove from battery saver, let it to go background. Still checking and changing settings to perform.

guerda commented 1 year ago

I have the same issue with 6.1.1 on a Pixel 7 with Android 13. Since the latest version this error occurs after several minutes and you have to deactivate and activate the VPN again for it to be working.

guerda commented 1 year ago

I observed this behavior now for a couple of days already. I activated extended debugging logs but don't know how to access them. Or are they already sent to sentry?

GKid94 commented 1 year ago

I have the same problem Screenshot_2023-07-20-12-59-13-055_com miui home Screenshot_2023-07-20-12-59-17-952_org adaway Screenshot_2023-07-20-12-59-32-668_com android settings Screenshot_2023-07-20-12-59-53-230_org adaway Screenshot_2023-07-20-13-02-26-888_com miui securitycenter Screenshot_2023-07-20-13-04-23-997_com android settings

GKid94 commented 1 year ago

Found a fix, try disabling the private DNS in settings of the phone Screenshot_2023-07-22-06-09-45-076_com android settings

guerda commented 1 year ago

I didn't have it activated and still face the problem.

GKid94 commented 1 year ago

I didn't have it activated and still face the problem.

Try restarting the phone

guerda commented 1 year ago

I tried restarting the phone and today, the app silently exited again without any notice.

After the silent exit, the app is in a strange state: VPN connection is inactive, but the app shows the pause button, thinking it's active. I have to "pause" the connection and then start the VPN again in order to establish the VPN again . It feels like the app does not observe the VPN state correctly.

I would love to provide more details but don't know how. Any idea what to provide as additional information, @GKid94 ?

GKid94 commented 1 year ago

I tried restarting the phone and today, the app silently exited again without any notice.

After the silent exit, the app is in a strange state: VPN connection is inactive, but the app shows the pause button, thinking it's active. I have to "pause" the connection and then start the VPN again in order to establish the VPN again . It feels like the app does not observe the VPN state correctly.

I would love to provide more details but don't know how. Any idea what to provide as additional information, @GKid94 ?

Try disabling the battery optimization Screenshot_2023-07-24-19-58-38-667_com miui powerkeeper Screenshot_2023-07-24-19-58-50-980_com miui securitycenter

guerda commented 1 year ago

Battery optimization is off, today the VPN quit again.

GKid94 commented 1 year ago

Battery optimization is off, today the VPN quit again.

Then it's a phone system problem

GKid94 commented 1 year ago

Also turn this on Screenshot_2023-07-28-14-26-57-540_com android settings

guerda commented 1 year ago

I have this on, too. I have a Pixel 7 with stock Android, all updates. I'm wondering which system would be better suited

TheShadowRunner commented 1 year ago

"After the silent exit, the app is in a strange state: VPN connection is inactive, but the app shows the pause button, thinking it's active. I have to "pause" the connection and then start the VPN again in order to establish the VPN again . It feels like the app does not observe the VPN state correctly."

Exactly the same issue here, running Android 10 on Sony xz2 compact.

TheShadowRunner commented 1 year ago

So this seems to be helping.. I haven't lost VPN yet since unrestricting. _20230808_022722

WidowmakerPT commented 9 months ago

I have this issue but it presents itself differently. I'm in VPN mode and on my phone and this issue IS specific to this phone/rom ( Poco F3 on official MIUI Global 14.0.9 ). It doesn't seem to happen with any other phone I used or use. With my phone ( Poco F3 ) in a specific network Adaway's VPN gets turned off after a few minutes. Only on my company's free wifi I get this issue. With another phone ( Samsung A14 ) works flawlessly. In any other network on this phone ( Poco F3 ) I don't have issues. So I am confident that it is something with this combination of phone/ROM but what I can't seem to figure it out.

Edit: I have everything setup correctly ( battery mode/optimization/app locked/etc. ).

radu-gs commented 8 months ago

I tried restarting the phone and today, the app silently exited again without any notice.

After the silent exit, the app is in a strange state: VPN connection is inactive, but the app shows the pause button, thinking it's active. I have to "pause" the connection and then start the VPN again in order to establish the VPN again . It feels like the app does not observe the VPN state correctly.

I would love to provide more details but don't know how. Any idea what to provide as additional information, @GKid94 ?

Same here. Asus Zenfone 10, Android 13, all optimizations off. Using the quick connect tile does not change the app's state when frozen, I have to manually open the app to restore its functionality. I've been using AdAway since September and it only started acting out like this around December. I don't think it's related to battery optimization at all. For the past week it's been doing this while using the phone, even a few minutes after restarting the app.