AdguardTeam / AdguardForAndroid

Open bug tracker for Android version of AdGuard.
https://adguard.com/
1.36k stars 90 forks source link

Higher battery consumption since v4.6 ( NOT fixed yet ! ) #5460

Closed derKief closed 1 week ago

derKief commented 1 month ago

Please answer the following questions for yourself before submitting an issue

AdGuard version

v4.6.x

Environment

HTTPS filtering

Root access

Integration with AdGuard VPN

Routing mode

Local VPN

Ad Blocking

AdGuard Base filter

Privacy

AdGuard Tracking Protection filter

Social

AdGuard Social Media filter

Annoyances

AdGuard Annoyances filter

Security

No response

Language-specific

AdGuard German filter

Other

AdGuard DNS filter

Which DNS server do you use?

Cloudflare DNS

DNS protocol

DNS-over-TLS

Custom DNS

No response

What Stealth Mode options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Install v.4.6.x
  2. wait a llittle and check battery drain with battery tools like GSAM, Samsung Battery Tracker
  3. Adgaurd is top of the list

Expected Behavior

When updating to v4.6 i expect same behaviour as with v4.5

Actual Behavior

High battery drain

Screenshots

Screenshot 1

Additional Information

Since the first version 4.6 I have noticed an increase in battery consumption. Even the newer versions do not solve this problem. Only a downgrade to v4.5 helps me. On Reddit you can read about some people who have the same problem. I have this with a Samsung Galaxy S24 and Samsung Galaxy A25

DBotThePony commented 1 month ago

Don't know about 4.5, but im on 4.6 and was experiencing high battery drain during stand-by (-4%/hour or 200 mAh), disabling adguard drastically improved battery life while smartphone is on stand-by.

Using top in adb shell shows adguard process occasionally spiking CPU usage to 90% (out of 800%), which i suspect is making performance cores to wake up

TheWrathRF commented 1 month ago

+1 having the same draining issue as well

derKief commented 1 month ago

@DBotThePony and @TheWrathRF what device are you using ?

TheWrathRF commented 1 month ago

@DBotThePony and @TheWrathRF what device are you using ?

Using Poco X6 Pro. %20 of battery draining caused by Adguard.

DBotThePony commented 1 month ago

what device are you using ?

Note 9 Pro Max

Versty commented 1 month ago

@derKief Thank you for reporting!

@TheWrathRF @DBotThePony Could you provide a screenshot of Battery usage screen from AdGuard application on your device?

Note: Battery usage screen is located in Statistics tab.

DBotThePony commented 1 month ago

That's the catch - it doesn't report usage as originating from adguard itself.

Versty commented 1 month ago

@DBotThePony Can this drain be visible on the battery usage screen in the system settings?

If screenshots contain any sensitive data, please sent it to our email qa@adguard.com, mention the [android] keyword and 5460 number in the subject line.

DBotThePony commented 1 month ago
Screenshots ![Screenshot_2024-09-23-22-24-32-846_com miui securitycenter-edit](https://github.com/user-attachments/assets/1757741a-c228-4edc-b33f-1292f74b5f7b) ![Screenshot_2024-09-23-22-24-19-112_com miui securitycenter-edit](https://github.com/user-attachments/assets/987844c0-0379-46b4-86c8-06b8c33a2faf) For reference: ![Screenshot_2024-09-23-22-26-05-943_com miui securitycenter-edit](https://github.com/user-attachments/assets/115a16f4-a3ad-4c05-baed-4de0fa357b58)
0xrxL commented 1 month ago

Last nightly installed today 🫠

Screenshot_20241008_002712_Device care

0xrxL commented 1 month ago

4 hours of full CPU usage...really weird

Screenshot_20241008_002850_Device care

0xrxL commented 3 weeks ago

@derKief @DBotThePony

I downgraded to this version, install it you too and let me know if the battery drain is fixed.

EDIT: Seems that every version, either the early 4.7 nightlies from July, are affected by this bug. I sent an issue request through app. See what will happens...🙄

0xrxL commented 3 weeks ago

@Versty This issue is really annoying. All versions are affected, I can't install stable nor beta and nightly.

derKief commented 3 weeks ago

For me v4.5 Stable works without issues. Meanwhile i use that as a "dirty" workaround. But as a paying customer I am disappointed how long it takes to fix this error.

Versty commented 3 weeks ago

@0xrxL @DBotThePony Thank you! We are currently working on this issue. Will do our best to fix this bug in the upcoming version.

If you have any application logs to send to us, please mail it to qa@adguard.com. Mention the [android] keyword and 5460 number in the subject.

0xrxL commented 3 weeks ago

@0xrxL @DBotThePony Thank you! We are currently working on this issue. Will do our best to fix this bug in the upcoming version.

If you have any application logs to send to us, please mail it to qa@adguard.com. Mention the [android] keyword and 5460 number in the subject.

Hope it will be available soon, because I'm currently surfing without adguard enabled...and its terrible.

0xrxL commented 2 weeks ago

@derKief @Versty This is my current situation with 4.5 version. So, I can confirm the (infinitely) less drain.

Screenshot_20241019_204512_Device care

lupusthunder commented 1 week ago

Same problem Pixel 8 pro Did a clean install yesterday and even over night got battery drain. [Adguard turned off]

1000015390 1000015389

khezuu commented 1 week ago

I have this issue since a few days too. It drains about 30% battery every 4 hours. Uninstall app and battery gets me through the day again.

it started with 4.7 for me I think on Pixel 6a

Versty commented 1 week ago

@khezuu @lupusthunder @0xrxL @derKief @TheWrathRF Thank you for your patience. The fix is available in AdGuard for Android 4.7 nightly 39, we highly recommend to install this version and keep an eye on battery consumption.

Please, let me know about any progress.

lupusthunder commented 1 week ago

Ok, installed. Will keep an eye on battery

danielkoller commented 1 week ago

Same for me with a Pixel 9XL Pro. I installed the latest Nightly. Let's hope that this fixes the issue. Screenshot_20241028-140815

0xrxL commented 1 week ago

First partial results:

Screenshot_20241028_223844_Device care Screenshot_20241028_223925_AdGuard

1) The discharge graph remained linear for 4 hours (and it also increased during standby).

2) The device worked at normal temperatures (during this time was just became sightly warm, instead hotter).

3) AdGuard use percentage remained low, instead exceeding 4% just after 10 minutes or few more.

I'll check if the following behavior can be replicated tomorrow, meanwhile other users post their results too

lupusthunder commented 1 week ago

Seems normal again

1000015406 1000015405

danielkoller commented 1 week ago

The latest Nightly also fixed the high battery drainage with my device (Pixel 9XL Pro).

Smultie commented 1 week ago

Fixed the issue for me too. My curiosity is triggered though, what caused the issue?

On Tue, Oct 29, 2024, 10:11 Daniel Koller @.***> wrote:

The latest Nightly also fixed the high battery drainage with my device (Pixel 9XL Pro).

— Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/5460#issuecomment-2443646974, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3XGUYAWXJMDEEBVEZGI6DZ55GKPAVCNFSM6AAAAABOBRERXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBTGY2DMOJXGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Guguloi commented 1 week ago

Last week I've switched from P30 to Pixel 8 Pro. Same version of Adguard 4.6.3. On P30 never saw a problem with battery but on Pixel it was a problem so I switched to 4.5 version and battery is back to normal. Yesterday evening I saw this Nightly version so I jump on it. Until now things looks normal with my battery. nightly

0xrxL commented 1 week ago

@Versty @artemiv4nov

Battery drain is still here...unfortunately 😪

Screenshot_20241030_224905_Device care

derKief commented 1 week ago

I installed the new stable version 4.6.4 on both my devices today but unfortunately I quickly realized that the problem with the high battery consumption has not been resolved. On the contrary, I even have the feeling that it has gotten worse. Furthermore, new problems have arisen. One of the two devices suddenly started charging very slowly and it felt very sluggish. After the downgrade to version 4.5 everything is fine again and the problems listed no longer exist.

For now I have gone back again to version 4.5 on both devices.

@Versty and @artemiv4nov please remove the labels Status: Resolved and Resolution: Fixed because unfortunately the problem does not seem to be solved and Fixed. @0xrxL also reported back that it is not resolved for him

0xrxL commented 1 week ago

Downgraded back to 4.5, and the battery consuption returned to less 1% (with a high SoT):

Screenshot_20241101_001312_Device care

derKief commented 1 week ago

Why this is closed now ? Issue is not solved resp. Fixed !!!!!