Bug 394818 - Adverse battery usage on Android P
Summary: Adverse battery usage on Android P
Status: RESOLVED WORKSFORME
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-29 04:59 UTC by Mal Haak
Modified: 2020-12-27 04:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mal Haak 2018-05-29 04:59:45 UTC
Hi all,

I've got a Pixel and am running Android P.

KDEConnect app on android has started behaving oddly and using all the battery.

I'm on the testing stream of KDEConnect android (according to PlayStore)

What is actually happening is, when my phone is not connected to the laptop the "not connected" notification is appearing. But it looks like every time KDEConnect checks its "refreshing" the notifcation causing my phone to vibrate. This is happening every 30-120 seconds. (Not 100% sure of the exact time frame it does seem to change). So the vibrations alone are a tad annoying.

What it looks like is something has changed in how Android P is backgrounding the task and it is now not sleeping and just endlessly polling for my laptop. It was fine on the previous version of Android.

I have debug mode enabled on my handset and am happy to help however I can with getting logs/dumps or whaterver. 

My device is a Google Pixel 128GB edition. My laptop is running a fully updated Arch linux.

Please let me know what else you need to help debug/diagnose.
Comment 1 Nicolas Fella 2018-05-29 10:12:21 UTC
The vibration is something that should be fixed in the latest beta version.

The notification itself is a requirement of Android Oreo for things running in the background for longer times. You can hide it though.

As for the battery consumption: Do you actually know that the battery is drained or does your phone tell you that?
Comment 2 Mal Haak 2018-05-30 01:58:49 UTC
Upgraded to Android P. Battery started lasting till 11am when removed from charge at 8am.

Android P has a different battery stats page.

KDEConnect was listed as being active the whole 3 hour period. 

Uninstalled and battery life went back to full day on a single charge.

Reinstalled last night after your update to this ticket. Can confirm the vibrations have stopped. It's 11:56 and my battery again is at 10%. 

Checked the battery stats and it's reporting KDEConnect as being active the whole time.

Have uninstalled again. 

What logs or other details can I get for you to assist with debug?
Comment 3 Mal Haak 2018-05-30 02:50:14 UTC
Since uninstall, with battery saver forced off battery drain has been <2%. Before uninstall estimated battery time remaining was 15 mins
Comment 4 Justin Zobel 2020-11-27 02:04:24 UTC
I've had kdeconnect on my Pixel 3a for a while now and haven't noticed any battery drain issues.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I've set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 5 Bug Janitor Service 2020-12-12 04:33:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2020-12-27 04:34:23 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!