AdGuardVPNForAndroid icon indicating copy to clipboard operation
AdGuardVPNForAndroid copied to clipboard

AdGuard VPN on Andriod consume high battery during my sleep period even not connect VPN.

Open nik2ads opened this issue 1 year ago • 62 comments

Please answer the following questions for yourself before submitting an issue.

  • [X] I am running the latest version
  • [X] I checked the documentation and found no answer
  • [X] I checked to make sure that this issue has not already been filed

AdGuard VPN version

2.6.25

Operating mode

VPN

Environment

- OS: Android 13
- Device: POCO F3
- Firmware:

Root access

  • [ ] Yes, I have it.

Issue Details

Steps to reproduce:

  1. Go to Android setting
  2. Select 'Battery'
  3. Select ' AdGuardVPN'

Expected Behavior

No response

Screenshots

95383

Additional Information

No response

nik2ads avatar Dec 03 '23 08:12 nik2ads

This bug has been reported on Reddit (https://www.reddit.com/r/Adguard/comments/17vid44/sudden_and_seemingly_temporary_drain_issue_with/), and I even reported it myself to the Adguard developers a few weeks ago. Apparently, the bug is that the application has an endless loop to check the integration mode with Adguard. This does not happen in the previous version of Adguard.

ghost avatar Dec 04 '23 17:12 ghost

i can confirm the issue... heavy battery drain even while not connected. Reported this two times. Support told me that they are aware of this and have created an issue on github, but linked this to an adguard app instead vpn problem...

Hello!

As we mentioned in our previous message, we're aware of that issue and going to fix it in future updates.

Also, we've created the GitHub issue for this problem. So if the issue is still relevant for you, please report it as a comment in this issue. This way, you'll be able to communicate directly with our developers.

Best, AdGuard Support 💚

flo-m avatar Dec 05 '23 05:12 flo-m

@nik2ads @DevSergio02 @flo-m thanks! Unfortunately this problem is now being observed for both AdGuard and AdGuard VPN, but for some reason not on all devices. We are indeed aware of this issue and are trying to figure out the cause. It will take us some more time to resolve this issue. Please continue to monitor the power consumption on your devices. Whenever you see a recurrence of high power consumption, please send us the logs, it will be very helpful.

  • Enable debug logging:

Settings -> General -> Advanced -> Logging level -> Extended

  • Reproduce the issue related to the button behaviour, then remember the exact time when it happened

  • Collect logs:

Settings -> General -> Advanced -> Export logs and system info

mention the 391 number in the subject specify the exact time when the issue occurred

maxikuzmin avatar Dec 06 '23 14:12 maxikuzmin

@nik2ads @DevSergio02 @flo-m The unusual thing about this consumption is also that the compatibility mode block has not changed in any way since AdGuard VPN version 2.3. Have you observed this behavior before? Or did it only start with version 2.6?

maxikuzmin avatar Dec 07 '23 08:12 maxikuzmin

@nik2ads @DevSergio02 @flo-m The unusual thing about this consumption is also that the compatibility mode block has not changed in any way since AdGuard VPN version 2.3. Have you observed this behavior before? Or did it only start with version 2.6?

The problem occurs from version 2.6 onwards. On my phone I had to downgrade to version 2.5, where the problem does not happen.

ghost avatar Dec 07 '23 13:12 ghost

@nik2ads @DevSergio02 @flo-m The unusual thing about this consumption is also that the compatibility mode block has not changed in any way since AdGuard VPN version 2.3. Have you observed this behavior before? Or did it only start with version 2.6?

For me, this problem occurs from version 2.6 onward.

nik2ads avatar Dec 07 '23 16:12 nik2ads

@nik2ads @DevSergio02 @flo-m thanks! Unfortunately this problem is now being observed for both AdGuard and AdGuard VPN, but for some reason not on all devices. We are indeed aware of this issue and are trying to figure out the cause. It will take us some more time to resolve this issue. Please continue to monitor the power consumption on your devices. Whenever you see a recurrence of high power consumption, please send us the logs, it will be very helpful.

  • Enable debug logging:

Settings -> General -> Advanced -> Logging level -> Extended

  • Reproduce the issue related to the button behaviour, then remember the exact time when it happened
  • Collect logs:

Settings -> General -> Advanced -> Export logs and system info

mention the 391 number in the subject specify the exact time when the issue occurred

I can't collect logging in debug mode for you. Because AdGuard VPN was crash during 'Export logs and system info' process. My symptoms occur during my sleep time. So, the log size might be huge.

nik2ads avatar Dec 07 '23 16:12 nik2ads

@nik2ads @DevSergio02 @flo-m thanks! Unfortunately this problem is now being observed for both AdGuard and AdGuard VPN, but for some reason not on all devices. We are indeed aware of this issue and are trying to figure out the cause. It will take us some more time to resolve this issue. Please continue to monitor the power consumption on your devices. Whenever you see a recurrence of high power consumption, please send us the logs, it will be very helpful.

  • Enable debug logging:

Settings -> General -> Advanced -> Logging level -> Extended

  • Reproduce the issue related to the button behaviour, then remember the exact time when it happened
  • Collect logs:

Settings -> General -> Advanced -> Export logs and system info

mention the 391 number in the subject specify the exact time when the issue occurred

I believe I can consistently reproduce the issue on my Z Fold 5 running Android 14. I have collected and sent the logs to the email address.

Iamz avatar Dec 11 '23 02:12 Iamz

@Iamz thanks! We'll look into your logs

maxikuzmin avatar Dec 11 '23 11:12 maxikuzmin

in my case, all previous version do also consume battery (even tough much less than 2.6). From 2.6, there is a wakelock held by: com.adguard.vpn/androidx.work.impl.background.systemjob.SystemJobService This one is not present in e.g. 2.5 See held active in gsam (adguard vpn is holding the device active 2h of 8h): Screenshot_2023-12-13-06-16-20-024_com gsamlabs bbm

See Process details: Screenshot_2023-12-13-06-14-02-956_com gsamlabs bbm

flo-m avatar Dec 13 '23 05:12 flo-m

@nik2ads @DevSergio02 @flo-m we found what the problem is. It will be fixed in an upcoming update. Thank you very much for your information!

maxikuzmin avatar Dec 18 '23 17:12 maxikuzmin

@nik2ads @DevSergio02 @flo-m please test this in AdGuard VPN 2.7 Beta 1 released today or wait for the release version tomorrow, please let us know the results

maxikuzmin avatar Dec 26 '23 19:12 maxikuzmin

Yes, no battery drain in 2.7 beta. Adguard VPN is usable again 👍🏻

Nietsnut avatar Dec 27 '23 11:12 Nietsnut

yes, can also confirm: it works fine now !

flo-m avatar Dec 27 '23 19:12 flo-m

I'm testing with 2.7 Beta 1 and so far I still notice that it constantly runs in the background and starts consuming battery power again, just like version 2.6 did. I will try to install the 2.7 stable version, which is now available and report back if it keeps happening.

ghost avatar Dec 27 '23 19:12 ghost

@DevSergio02 okay, we're waiting for feedback

maxikuzmin avatar Dec 27 '23 20:12 maxikuzmin

I can confirm that the issue ist still present in Version 2.7.8, while IT was fixed in 2.7 Beta.

Can someone else also confirm? Update: 2.7.6 (which seems to be 2.7 beta 1) is working fine. 2.7.8 (which is the new stable) has the same old issue with wakelock.

flo-m avatar Dec 28 '23 09:12 flo-m

I can confirm that the issue ist still present in Version 2.7.8, while IT was fixed in 2.7 Beta.

Can someone else also confirm? Update: 2.7.6 (which seems to be 2.7 beta 1) is working fine. 2.7.8 (which is the new stable) has the same old issue with wakelock.

I have had the same wakelock even in version 2.7 Beta 1, in One UI's Device Care, it marks that the app is constantly in the background doing "something", something that in version 2.5 is usually never in the background, or sometimes it appears but for a very short time.

ghost avatar Dec 28 '23 12:12 ghost

@DevSergio02 okay, we're waiting for feedback

Unfortunately, the problem still occurs in the stable version of Adguard VPN 2.7. I have just sent the logs with the new version to the Adguard email you indicated above.

What I have been able to observe in the logs is that a kind of "refresh" of network parameters is constantly repeated because supposedly the "link properties has changed":

14:43:17.661 [pool-5-thread-1] DEBUG com.adguard.vpnclient.VpnCore - Link properties changed
14:43:17.662 [pool-5-thread-1] DEBUG com.adguard.vpnclient.VpnCoreUtils - Refreshing network parameters

I don't know if this has to do with the Adguard integration mode or not.

ghost avatar Dec 28 '23 14:12 ghost

@DevSergio02 @flo-m we looking into the problem. Have you also updated AdGuard to the latest version 4.3.1?

maxikuzmin avatar Dec 28 '23 17:12 maxikuzmin

@DevSergio02 @flo-m we looking into the problem. Have you also updated AdGuard to the latest version 4.3.1?

Yes, I have done the tests with Adguard 4.3.1.

ghost avatar Dec 28 '23 17:12 ghost

No change for me. Excessive battery usage. Adguard 4.3.1/VPN 2.7.8

Emtp563 avatar Dec 29 '23 05:12 Emtp563

i have to admit that the both beta + stable 2.7 is having the same issue (wakelock) after some time...

flo-m avatar Dec 29 '23 17:12 flo-m

Yes, at first it seemed resolved, but the problem returned

Nietsnut avatar Jan 01 '24 16:01 Nietsnut

Hi, found this by searching. I just want to confirm the issue on two devices: Samsung S22+ / Tab S9 (both Android 14 stock) Adguard 4.3.1 and Adguard VPN 2.7.8

High battery consumption of Adguard VPN while not using it.

rak-rak avatar Jan 04 '24 08:01 rak-rak

@rak-rak @Nietsnut @flo-m @Emtp563 @DevSergio02 we are looking into this, thanks for the info. If there are any new logs, please send them in

maxikuzmin avatar Jan 09 '24 18:01 maxikuzmin

  • CRM 854336

enakr avatar Jan 19 '24 05:01 enakr

the newly release beta 2.8.12 still has the same wakelock issue...

flo-m avatar Jan 25 '24 05:01 flo-m

@flo-m we're still looking into the issue

maxikuzmin avatar Jan 26 '24 18:01 maxikuzmin

Is there any news on when you are going to fix the problem? I (as well as many others) are stuck on version 2.5, and at some point it will stop working due to some "major" change that requires a higher version to use Adguard VPN 😢😢

ghost avatar Feb 09 '24 13:02 ghost