BramBonne / privacypolice

Source code for Wi-Fi Privacy Police, available on Google Play at https://play.google.com/store/apps/details?id=be.uhasselt.privacypolice
GNU General Public License v2.0
159 stars 17 forks source link

High battery drain on OnePlus 5 (after OxygenOS v5.0.1 update) #54

Open attie opened 6 years ago

attie commented 6 years ago

I've used your app for quite some time now, and I'm sure I've used it on my Pixel with Android 8.0 in the past without issues, though this would have been up to ~mid September 2017

Unfortunately the recent OTA update for the OnePlus 5 has a significant battery drain issue when this app is installed.

Model: ONEPLUS A5000 OxygenOS: v5.0.1 Android: v8.0.0 App: v2.2.4 (from Play)

The screenshot below covers an 8-hour period where I installed and removed the app every so often. As you can see the "Awake" bar is solid when the app is installed, and significantly more empty when the app is not installed, additionally the battery discharge curve is significantly steeper with the app installed... which is what drew my attention to the problem in the first place (significantly shorter battery life).

I would be happy to collect more data if you like, though I'm afraid I'll need guiding.

2018-01-20 21 11 22

BramBonne commented 6 years ago

Thanks for reporting this, attie!

Unfortunately, I'm currently unable to actively work on Wi-Fi PrivacyPolice due to time constraints and other work. However, I'm happy to take and check any pull requests sent my way, and incorporate them into a quick release!

Kind regards, Bram

attie commented 6 years ago

No problem - thanks for your reply.

Unfortunately I'm not well positioned to debug and produce a fix... but I'm happy to test if someone else is able.

Attie

kenshin33 commented 6 years ago

this keeps repeating over and over again in logcat :

02-08 21:24:22.410  6446  6446 I PrivacyPolice: Enabling "ACCESS_POINT"
02-08 21:24:22.410  1424  1967 E WifiConfigManager: UID 10213 does not have permission to update configuration "ACCESS_POINT"WPA_PSK