Lenovo P2 Nougat 7.0 AccuBattery unable to get battery usage measurements

sling-shot

Senior Member
Jul 6, 2012
190
33
58
Wanderlust
After updating to Nougat, AccuBattery application says that it is unable to get battery consumption measurements. It was working fine while on Marshmallow. Has Lenovo disabled access to these statistics in Nougat?
 
  • Like
Reactions: retoricx

Treboeth

Senior Member
Jul 6, 2013
425
184
63
Same problem here,it states "power usage measurements not available".
I find Accubattery figures dubious to say the least, inaccurate reporting of drain missing segments in history tab.
I really only use it as an alarm to charge the phone to 80% to help battery life.
Used it on MM and Nougat.

Sent from my Lenovo P2a42 using Tapatalk
 

sling-shot

Senior Member
Jul 6, 2012
190
33
58
Wanderlust
Same problem here,it states "power usage measurements not available".
I find Accubattery figures dubious to say the least, inaccurate reporting of drain missing segments in history tab.
I really only use it as an alarm to charge the phone to 80% to help battery life.
Used it on MM and Nougat.

Sent from my Lenovo P2a42 using Tapatalk
As a full battery alarm, AccuBattery is poor because all it does is just a short beep.

Go for 'Full battery & theft alarm' which will keep shouting till you shut it off.
Warning - it is full of ads, hence use Greenify to keep it hibernated when not in use.
 

dadodaja

Member
May 7, 2012
11
1
0
After updating to Nougat, AccuBattery application says that it is unable to get battery consumption measurements. It was working fine while on Marshmallow. Has Lenovo disabled access to these statistics in Nougat?
Switch SELinux enforcing mode to permissive mode, than AccuBattery application will work...
You must install SELinuxModeChanger app to do that... will need root access
 
Last edited:

M4jQ

Senior Member
Dec 4, 2012
65
9
38
Warsaw
Can you help me write policy in selinux to get this app working in enforce mode?

Code:
type=1400 audit(1555911549.919:1299): avc: denied { getattr } for uid=10100 pid=7185 comm="Thread-10" path="/sys/devices/soc/qpnp-fg-18/power_supply/bms/current_now" dev="sysfs" ino=27338 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone