AdguardTeam / AdGuardVPNForAndroid

AdGuard VPN Android app open bug tracker
https://adguard-vpn.com/
138 stars 12 forks source link

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

Closed nik2ads closed 4 months ago

nik2ads commented 10 months ago

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

AdGuard VPN version

2.6.25

Operating mode

VPN

Environment

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

Root access

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

ghost commented 10 months ago

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.

flo-m commented 10 months ago

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 💚

maxikuzmin commented 10 months ago

@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.

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

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

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

maxikuzmin commented 9 months ago

@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?

ghost commented 9 months ago

@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.

nik2ads commented 9 months ago

@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 commented 9 months ago

@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.

Iamz commented 9 months ago

@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.

maxikuzmin commented 9 months ago

@Iamz thanks! We'll look into your logs

flo-m commented 9 months ago

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

maxikuzmin commented 9 months ago

@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 commented 9 months ago

@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

Nietsnut commented 9 months ago

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

flo-m commented 9 months ago

yes, can also confirm: it works fine now !

ghost commented 9 months ago

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.

maxikuzmin commented 9 months ago

@DevSergio02 okay, we're waiting for feedback

flo-m commented 9 months ago

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.

ghost commented 9 months ago

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 commented 9 months ago

@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.

maxikuzmin commented 9 months ago

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

ghost commented 9 months ago

@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.

Emtp563 commented 9 months ago

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

flo-m commented 9 months ago

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

Nietsnut commented 9 months ago

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

rak-rak commented 9 months ago

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.

maxikuzmin commented 8 months ago

@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

enakr commented 8 months ago
flo-m commented 8 months ago

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

maxikuzmin commented 8 months ago

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

ghost commented 7 months ago

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 😢😢

maxikuzmin commented 7 months ago

@DevSergio02 we are trying to resolve the issue, I apologize for the long wait. I hope that in the next update we will be able to resolve this issue

tkhquang commented 7 months ago

Any updates on this? I have a S23 Ultra and Adguard VPN never let my phone go to deep sleep. Please fix this, I had no other choice but to uninstall Adguard VPN for now.

maxikuzmin commented 7 months ago

@tkhquang in the process of being resolved. Tentatively planned to be solved by the next 2.8 update

dnw3039 commented 7 months ago

I am using AdGuard VPN v2.8 Nightly 1 this is still a problem , on a Google Pixel 5, Android 14

ghost commented 6 months ago

I see that the problem has been marked as fixed... is there an Adguard VPN build coming soon that contains the new changes???

rak-rak commented 6 months ago

Same question. Nothing changed until now, no update. Still v2.7.25. Issue persists for many users

flo-m commented 6 months ago

Yeah its unbelievable that adguard team is not willing to fix this issue asap...

ameshkov commented 6 months ago

The issue will be gone in the next beta version, we apologize for it taking too long to publish.

Emtp563 commented 6 months ago

How about you send me a private beta .APK?

On Thu, Apr 4, 2024, 07:35 Andrey Meshkov @.***> wrote:

The issue will be gone in the next beta version, we apologize for it taking too long to publish.

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdGuardVPNForAndroid/issues/391#issuecomment-2036927926, or unsubscribe https://github.com/notifications/unsubscribe-auth/A27K4LPWKIEO5CNNI34SQW3Y3U3J7AVCNFSM6AAAAABAEUG5P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWHEZDOOJSGY . You are receiving this because you were mentioned.Message ID: @.***>

ameshkov commented 6 months ago

@Emtp563 you can check the nightly version instead, follow the instruction here: https://adguard-vpn.com/en/beta.html?platform=android&release=nightly

rak-rak commented 6 months ago

@ameshkov And what about users like us who paid for subscription and expect regular versions?

The first time I wrote here was January 4th. Three months ago.

Adguard VPN drains >10% of my battery, when it's not used.

Sorry, but I'm not happy anymore about this.

ameshkov commented 5 months ago

@rak-rak it took us much longer than anticipated to troubleshoot and figure out what's causing this. At this point we have to push it as a part of a regular update and not a fix. The problem is that the fix is built on top of many changes in v2.8 update. If we decide to push it "as is" there's a great risk of introducing new bugs.

The temporary solution for everyone affected right now is to upgrade to a nightly version (or wait a few days until the beta is out). But I'd suggest to do it only temporarily and switch back to stable once it's out.

Again, I apologize for the whole situtation, we should've prioritized it differently and spent more time on troubleshooting exactly when it was reported and not a month later.

rak-rak commented 5 months ago

Thanks for reply. We waited for 3 months now. Hopefully we will get an update soon.

ghost commented 5 months ago

I've been running Adguard 2.8 Nightly 2 (the latest beta version from the Play Store) for a few days now, and so far the bug has completely disappeared.

rak-rak commented 5 months ago

@DevSergio02 Play Store still shows v2.7.25 for me. Registered as beta user.

And you got a nightly version from play store?

ghost commented 5 months ago

@ameshkov For some reason, the bug is back. It had been fixed in Adguard 2.8 nightly 2, but when updating to Adguard 2.8 beta 1, the apphas returned to consume battery disproportionately without using it. What happened????

artemiv4nov commented 5 months ago

@DevSergio02 please send 1 day debug logs to our devteam@adguard.com

ghost commented 5 months ago

@DevSergio02 please send 1 day debug logs to our devteam@adguard.com

I'm very sorry, but at the moment I can't send logs of a full day, because letting Adguard VPN drain for a day makes the difference between getting to the end of the day with battery and getting to the end of the day without battery, and I need the phone for work purposes 😕

At the weekend I can send logs, but I think the problem is that the fix has not been included in Adguard 2.8 Beta 1, because in the Nightly 2 version it is completely fixed.

dnw3039 commented 5 months ago

I have recently done a factory reset on my Pixel 5 phone and the and the sleep problem has gone away. The device has 64% deep sleep over 9 days. Previously it was about 5%. Battery function is much better. So it may not have been an Adguard problem.

ghost commented 5 months ago

I have recently done a factory reset on my Pixel 5 phone and the and the sleep problem has gone away. The device has 64% deep sleep over 9 days. Previously it was about 5%. Battery function is much better. So it may not have been an Adguard problem.

In Adguard 2.8 Beta 1???