SecUSo / privacy-friendly-pedometer

Privacy Friendly App that counts your steps on Android devices.
GNU General Public License v3.0
201 stars 55 forks source link

Potential high battery drain #15

Open Yonjuni opened 7 years ago

Yonjuni commented 7 years ago

Reported for Version 1.0.1 Android 6

jokay commented 7 years ago

I can confirm this for 3 devices and Version 1.0.4.

2x CyanogenMod 12.1 (Android 5.1.1) 1x Stock Sony ROM (Android 6.0.1)

The battery drain was incredible. Had to uninstall the app to be able to use the device again.

May be the option "Keep processor awake" which is activated by default is the problem?

Yonjuni commented 7 years ago

@x-jokay Thanks for reporting.

jokay commented 7 years ago

I can confirm it's because of the activated option "Keep processor awake".

With this option deactivated, battery consumption seems back to normal, but the step count of the app is three times less compared to the step count of my smartwatch.

licaon-kter commented 7 years ago

@x-jokay You did except the app in Doze/battery settings and the step counter still is wrong?

jokay commented 7 years ago

Battery mode is on balanced.

And the option "Enable per-app profiles" is deactivated.

jokay commented 7 years ago

As for now the difference for today between the smartwatch and the app is 1126 steps.

Yonjuni commented 7 years ago

I guess regarding @x-jokay device and OS combination the app uses the hardware step counter. Unfortunately, programmers do not have that much influence regarding things like sensitivity and so on.

I have compared the app with different setting combinations on different devices and with several other apps on the market in the same pocket and the difference was about 3% percent. I don't know much about the step detection on smart watches, but this difference surprises me, how many steps did you walk in total if I may ask.

Regarding the battery problem. We are working on a solution also together with the switch on/off feature. Thanks for reporting and testing :)

natrius commented 7 years ago

Samsung Galaxy S5 - Stock - shealth - 1244 steps Oneplus 3 - SlimRom - pedometer - 1138 steps at the same time. If wanted / needed i can try it out with another app. Or with pedometer on the s5 too. EDIT: Sorry, somehow thought this issue was about the difference. Just delete if you want.

Yonjuni commented 7 years ago

@natrius Thanks for reporting. There currently are reports regarding not matching step numbers distributed in many issues ;) Even if it is the same app in the same pocket it is highly unlikely that the same number of steps will be counted.