How to disable batt_health process in MotoG4 RR

sreeku

Member
Oct 15, 2008
7
0
0
Hi,
This is related to a previous thread where internal memory gets full, which was solved temporarily.
https://forum.xda-developers.com/moto-g4-plus/help/rr5-8-4-athene-internal-memory-filled-t3678840

I am using
[ROM][OFFICIAL] Resurrection Remix v5.8.5 [7.1.2_r29][XT16xx][athene] + Magisk + ElementalX on Moto G4 Plus with 128 GB SD card as adopted storage.

The internal memory was getting full within a week, and with the help of suggestions received, I located that /data/power_supply_logger had .csv log files which were 20GB+ in size. So I deleted them and solved the problem at the time.

Then it repeated in a week I had the same issue. the log files grow about 2 MB every minute. I removed write permissions to the folder and deleted the file.

I noticed that since I removed the permissions to write, the battery life really got longer and the phone also charges much quickly now. Some users pointed out that battery was charging slowly in RR - I faced that problem too and it looks like has gone away. I would like to make it a bit cleaner - a process making an attempt to write every minute and failing is got a good work around.

Using AppsSD I found that /system/bin/batt_health running as mot_pwric user is attempting to write every minute and now that the permission is removed the attempt is failing.

Is there a way I can disable this process - it is not listed in Apps or System apps.
Or if anyone knows how to disable logging by batt_health, that would be better.


Thanks
Sreekumar
 

sreeku

Member
Oct 15, 2008
7
0
0
/system/bin/batt_health running as mot_pwric user is the process logging it. How to disable this process - or if it is spawned by an app, how to locate the parent app.
 

strongst

Forum Moderator
Staff member
Sep 18, 2007
11,655
8,643
253
prolific location
prolific-page.com
/system/bin/batt_health running as mot_pwric user is the process logging it. How to disable this process - or if it is spawned by an app, how to locate the parent app.
My suggestion: Just install the rom and gapps mini/pico or beans mini and see if it logs again. If not: install ONE of your 3rd party apps, see if it happens again. If not, install the next one and so on.

Maybe you have switched something on in Rom settings?
 
  • Like
Reactions: sreeku

DgnrtnX

Senior Member
Feb 4, 2015
488
160
73
Mumbai
Hi,
This is related to a previous thread where internal memory gets full, which was solved temporarily.
https://forum.xda-developers.com/moto-g4-plus/help/rr5-8-4-athene-internal-memory-filled-t3678840

I am using
[ROM][OFFICIAL] Resurrection Remix v5.8.5 [7.1.2_r29][XT16xx][athene] + Magisk + ElementalX on Moto G4 Plus with 128 GB SD card as adopted storage.

The internal memory was getting full within a week, and with the help of suggestions received, I located that /data/power_supply_logger had .csv log files which were 20GB+ in size. So I deleted them and solved the problem at the time.

Then it repeated in a week I had the same issue. the log files grow about 2 MB every minute. I removed write permissions to the folder and deleted the file.

I noticed that since I removed the permissions to write, the battery life really got longer and the phone also charges much quickly now. Some users pointed out that battery was charging slowly in RR - I faced that problem too and it looks like has gone away. I would like to make it a bit cleaner - a process making an attempt to write every minute and failing is got a good work around.

Using AppsSD I found that /system/bin/batt_health running as mot_pwric user is attempting to write every minute and now that the permission is removed the attempt is failing.

Is there a way I can disable this process - it is not listed in Apps or System apps.
Or if anyone knows how to disable logging by batt_health, that would be better.


Thanks
Sreekumar
I too have this folder and is showing 1.01mb in size.
I cut out read acces to batt_health and it seems nothing has changed.
Also i search folders for battery stats and all are nrml to me.
All of them combined also im not getting more than 10+mbs.
Idk what u have been using or any particular reason for you
I'll suggest clean flash your rom. Use verified gapps and restore backup of apps only and not data. If and if only you need that data restore it.
Use device for 3 to 4 days and see if problem exist.
 
  • Like
Reactions: sreeku
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