forked from organicmaps/organicmaps
This system permission must not be used by regular apps. The only one potential user of battery level information is util/BatteryState class. This class uses `Intent.ACTION_BATTERY_CHANGED` intent which doesn't require any additional permissions [1]. The updated version without BATTERY_STATS permission works well up to API 21. There is no difference at all. It is not clear why this permission was needed at all. Please note that this code is only called in "Automatic" power-save mode enabled in settings. [1]: https://developer.android.com/training/monitoring-device-state/battery-monitoring.html Signed-off-by: Roman Tsisyk <roman@tsisyk.com> |
||
---|---|---|
.. | ||
assets | ||
flavors | ||
gradle/wrapper | ||
jni | ||
res | ||
script | ||
src | ||
tests | ||
.gitignore | ||
AndroidManifest.xml | ||
build.gradle | ||
code_style_scheme.xml | ||
debug.keystore | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
HOW_TO_USE_GRADLE.txt | ||
ic_launcher-playstore.png | ||
multidex-config.txt | ||
proguard-mwm.txt |