Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 of 4 tasks
nik2ads opened this issue Dec 3, 2023 · 60 comments
Open
3 of 4 tasks

Comments

@nik2ads
Copy link

nik2ads commented Dec 3, 2023

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

  • I am running the latest version
  • I checked the documentation and found no answer
  • 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 nik2ads added the Bug Something isn't working label Dec 3, 2023
@DevSergio02
Copy link

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
Copy link

flo-m commented Dec 5, 2023

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 💚

@adguard-bot adguard-bot assigned maxikuzmin and unassigned Versty Dec 5, 2023
@maxikuzmin
Copy link
Contributor

@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
Copy link
Contributor

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

@DevSergio02
Copy link

@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
Copy link
Author

nik2ads commented Dec 7, 2023

@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
Copy link
Author

nik2ads commented Dec 7, 2023

@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
Copy link

Iamz commented Dec 11, 2023

@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
Copy link
Contributor

@Iamz thanks! We'll look into your logs

@flo-m
Copy link

flo-m commented Dec 13, 2023

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
Copy link
Contributor

@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
Copy link
Contributor

@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
Copy link

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

@flo-m
Copy link

flo-m commented Dec 27, 2023

yes, can also confirm: it works fine now !

@DevSergio02
Copy link

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
Copy link
Contributor

@DevSergio02 okay, we're waiting for feedback

@flo-m
Copy link

flo-m commented Dec 28, 2023

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.

@DevSergio02
Copy link

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.

@DevSergio02
Copy link

@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
Copy link
Contributor

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

@DevSergio02
Copy link

@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
Copy link

Emtp563 commented Dec 29, 2023

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

@DevSergio02
Copy link

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
Copy link

rak-rak commented Apr 4, 2024

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

@flo-m
Copy link

flo-m commented Apr 4, 2024

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

@ameshkov
Copy link
Member

ameshkov commented Apr 4, 2024

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

@Emtp563
Copy link

Emtp563 commented Apr 4, 2024 via email

@ameshkov
Copy link
Member

ameshkov commented Apr 4, 2024

@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
Copy link

rak-rak commented Apr 4, 2024

@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
Copy link
Member

ameshkov commented Apr 5, 2024

@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
Copy link

rak-rak commented Apr 5, 2024

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

@DevSergio02
Copy link

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
Copy link

rak-rak commented Apr 8, 2024

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

And you got a nightly version from play store?

@adguard-bot adguard-bot added this to the 2.8 milestone Apr 11, 2024
@DevSergio02
Copy link

DevSergio02 commented Apr 15, 2024

@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
Copy link
Contributor

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

@DevSergio02
Copy link

@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
Copy link

dnw3039 commented Apr 16, 2024

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.

@DevSergio02
Copy link

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

@dnw3039
Copy link

dnw3039 commented Apr 19, 2024 via email

@GreenJeans
Copy link

GreenJeans commented Apr 19, 2024

I can confirm the bug seems to be back. A few days ago the issue seemed to have been resolved, but today I noticed extremely high battery drain overnight to find Adguard VPN with extremely high wakelock usage. v2.8 beta 1

@GreenJeans
Copy link

@DevSergio02 I performed a data/cache clear and then signed back in to the app. I will collect logs throughout today and send them in 12 or 24 hours.

@TPS
Copy link

TPS commented Apr 19, 2024

We really could use the Battery usage page that's available in AGa in AGVPNa, too.

Official example

@GreenJeans
Copy link

@DevSergio02 logs emailed

@DevSergio02
Copy link

@artemiv4nov The stable version of Adguard VPN 2.8 has just been released. Have you checked that the bug no longer occurs in this version, as it did in Beta 1? I will still try this version to confirm whether the bug has disappeared or not.

@DevSergio02
Copy link

@artemiv4nov The stable version of Adguard VPN 2.8 has just been released. Have you checked that the bug no longer occurs in this version, as it did in Beta 1? I will still try this version to confirm whether the bug has disappeared or not.

Update: the stable version of Adguard 2.8 still has exactly the same problem as Beta 1, it still drains battery. The bug had been fixed in Nightly 2 as I had explained before, but it is back.

I'm very sorry but seeing that this bug has been going on for 6 months and it doesn't seem to change much, I'm uninstalling Adguard VPN from my phone until this bug is fixed. It's a bit frustrating to see how you pay for a VPN client and they don't fix a bug as important as this one, which significantly affects the battery life of our phones.

I will leave the phone for 1 hour draining the battery in idle and I will send the extended logs of Adguard VPN, but I will uninstall the application until this problem is solved.

@artemiv4nov
Copy link
Contributor

@DevSergio02 Hi! Are you sure you just use a release version, not a beta version? In the release version, everything should be okay. Also, the fix has already been sent to Nightly track, you can check there.

@DevSergio02
Copy link

@DevSergio02 Hi! Are you sure you just use a release version, not a beta version? In the release version, everything should be okay. Also, the fix has already been sent to Nightly track, you can check there.

Hello again! I just checked today, and apparently the stable version of Adguard VPN no longer drains battery. Yesterday when I installed it I saw that it started to increase consumption a bit, but I reinstalled the app and it hasn't drained again since.

For my part, the problem is now solved (and I'm very happy about it) 😄

@GreenJeans
Copy link

@DevSergio02 @artemiv4nov After testing for 24hrs the issue appears resolved for me in v2.8.1 Nightly 4 as well! Thank you to the dev team for finally tackling this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests