Sunday, October 19, 2014

charging - Battery Stats Are Vastly Incorrect


After updating to 6.0.1 (MMB29K) from 6.0.0 (MRA58R) I have come to face a very odd and never seen before issue. My battery stats are wildly wrong. My stats show 4k% or higher and no battery stat monitor, such as the system battery monitor or GSAM for example can see anything correctly.


Here is an image of what the battery stat shows:


enter image description here



Here is the power manager:


enter image description here


Has anyone encountered this issue and if so what's causing this? I have not found anything so far that would explain it. Although I have not yet had a chance to fully comb the source code of the latest release, I don't suspect they would release it with such a glaring issue, so I am wondering how it has come to be.


Some FYI, Its a Nexus 6 device, fully rooted and not that its relevant but also fully encrypted. Anything else you wish to know, let me know. The apps and configurations have been the same on this device (+/- occasional test app that is usually removed within a day or so) since its stock 5.0 OS (which was unlocked and rooted immediately upon receipt).


UPDATE: 12/20/15


I want to begin with many thanks to @beeshyams to offering assistance and providing possibilities to consider. Although the problem was not entirely covered by our discussion, I did figure out what the issue was because of the decision we made to reflash the boot.img and that revealed the problem. Short version, reflashed the stock 6.0.1 boot.img and it resolved the issue. Long version, read below:


TL/DR/RL


The systemless method by which the boot is being done beginning with M (6.0) was to use the SuperSU zip update to root the system without actually modifying the system partition, making for a potentially cleaner or if you will less hacky way of getting root than in the past using the system exploit. Feel free to follow the process by @chainfire here: [WIP][2015.12.20] Android 6.0 Marshmallow [v2.64] but simply put it would use a modified boot.img and a special version of the SuperSU and achieve the root. However as the project gained momentum and new methodology was tested, it was decided in favor of abandoning the use of the modified boot.img and allowing the improved SuperSU binary to handle the internally required modifications. I had forgotten to change the batch file I use to automate the process to remove the patching of the modified boot on top of the stock boot and that's in simplified term what caused the issue. I reverted the boot to the stock and applied the SuperSu binary again to modify the stock properly and it fixed the issue. Thank you for everyone's attention and I hope that this will help others in some way.




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...