element-hq / element-hq/element-android

Battery drained from 100% to 5% with zero interaction

Open
#7,052 2 comments 1 reaction 0 assignees View on GitHub
A-Performance O-Uncommon S-Major T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

1. Install Element on your phone
1. Phone is charged and go to bed
1. Wake up with 5% battery

Yes, YouTube took a chunk before bed but then Element just drains it overnight

. | . | . | . | . | . | .
--- | --- | --- | --- | --- | --- | ---
![](https://user-images.githubusercontent.com/558581/188497542-e535a0b9-bfbf-4436-b641-0f11e3c3951f.png) | ![](https://user-images.githubusercontent.com/558581/188497545-2bbfa787-882f-4b37-8a64-efa17fad839e.png) | ![](https://user-images.githubusercontent.com/558581/188497549-298baf60-62cf-4164-9a62-9fe5c3a1351c.png) | ![](https://user-images.githubusercontent.com/558581/188497550-9df5bef6-e2cf-4dc6-9374-41efb3506bb8.png) | ![](https://user-images.githubusercontent.com/558581/188497551-33177615-3eb1-4a87-b9ba-d697534f8180.png) | ![](https://user-images.githubusercontent.com/558581/188497552-76ed9c2d-f92f-4edf-8bc3-05de32311c86.png) | ![](https://user-images.githubusercontent.com/558581/188497541-ad6e93cf-c09a-49f6-b320-5de7329be363.png)

Related issues:

- https://github.com/vector-im/element-android/issues/3884
- https://github.com/vector-im/element-android/issues/2733
- https://github.com/vector-im/element-android/issues/4967
- https://github.com/vector-im/element-android/issues/5640

### Outcome

#### What did you expect?

Battery usage is reasonable and should be practically zero when not using the app (only notifications).

#### What happened instead?

Battery is drained

Debug logs from reproductions that past few nights:

- https://github.com/matrix-org/element-android-rageshakes/issues/42622
- https://github.com/matrix-org/element-android-rageshakes/issues/42663

### Your phone model

Pixel 4a

### Operating system version

Android 13

### Application version and app store

Element Android v1.4.34 [40104342] (G-ba6f7c42-2022-08-23 17:00:11 +0200) (from Google Play)

### Homeserver

matrix.org

### Will you send logs?

Yes

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.