yashsingh1/xdaforums huggingface dataset:
[Xperia Z General] Spitfire400:
End Of Day Result

I have flashed .244 stock ROM using flashtool to start from scratch. Then re-installed same from SEUS ( repaired device software effectively). After this, I flashed firmware again in flashtool but only kernel and baseband. Decided to gain root to use Battery Calibration app (doomlord new method for this firmware), as after all these steps used device did not want to charge to full. Getting stuck at 99% and under 4200mV. After root, flashed just the kernel again to be sure. Will report back when device reaches below 30% tomorrow and I attempt to switch off and power device back on again.
[Xperia Z General] viswavj:
I flashed the firmware after full reset I did the full wipe and didn't exclude anything in flashtool.....
[Xperia Z General] boyq:
I was installing dualrecovery at 29% battery. When phone rebooted, it hit 59%. Seems like .244 didn't fix the bug.

-sent from that phone below
[Xperia Z General] fareeed:
I think this could be a kernel related issue because I experienced the same bug on Cyanogenmod. I was watching YouTube videos and had about 30% batter (or so it seemed) then the phone suddenly died. Had to plug it in and wait for a few minutes before it turned on again :p Same thing happened a few days later. As far as I know, Cyanonogenmod recently rebased to the AOSP kernel provided by Sony, this leads me to believe that the bug is also present in that kernel as well What do you think :)

Edit: Now that I think about it, I was running stock before Cyanogenmod, and also the bug hasn't cropped up on the latest nightlies. Although I did do a factory reset before flashing CM. I don't know haha, this is one strange bug! :D
[Xperia Z General] Don MC:
I am on .244. Booted the phone with 30% battery and it went up to 60%. But within 10 minutes, it dropped back to 30%. I can live with that.
[Xperia Z General] ron3000:
I'm on. 244 and my battery was on 24% then completely died on me dunno why
[Xperia Z General] Spitfire400:
Life Goes On

First of all apologies for having taken so long to post again, but I guess testing does take some time. And the whole time I have been trying to get evidence of this battery bug, my normal life with my fiancee and two baby daughters has continued. Not that it gets in the way at all, but they do take precedence over my phone.

So I will attach a screenshot from earlier today, showing a few reboots where nothing happened, followed by a final reboot at 36% battery, when device powered on again it had 56% battery. This hasn't stopped me from using the new .244 firmware on my device, in fact I have just finished flash again from scratch, rooting, then installing dual recovery. It's just I, and possibly others, will now be wary of rebooting phone when battery low, and possibly not letting it die completely.

The whole time, these bugs are being reported to Sony through their own forums it seems, and no statement or update on what is causing the situation, and how they hope to resolve it for us all.
[Xperia Z General] Ahmed Wael:
iam on CM it is take 2 h to charge from 5% to 100% and stil with me for 6 hour if i use the phone hardly and 1 day if i dont use it
[Xperia Z General] kkd28:
yes, just keep the mobile on when the battery is low, and keep the faith that sony is going to release the fix shortly...
[Xperia Z General] Nanohearted:
I am on .244 custom rom and still have the battery bug. I think the battery calibrate itself when the level is around 30% so yesterday it suddenly went down to 17% and I thought because of the custom rom. However, I just remembered when I flashed the custom rom with battery level 50%, I noticed it showed wrongly as 70% after flashing.
[Xperia Z General] ransz28:
I do NOT have the bug. I have a 6606. Flashed a 6603BE. 244, then rooted. I rebooted at 20% and 17% and 14% and the same battery level came back each time.
[Xperia Z General] gm007:
So after 4 days the bug appeared,was on 36% and after a normal reboot it jump to 56%

Stock rom,not rooted.
[Xperia Z General] zirado:
http://xdaforums.com/showthread.php?p=44272772

Maybe this [MENTION=1062326]monx[/MENTION] ROM will fix bug, according to change log.
[Xperia Z General] kkd28:
plz do some test, this is a kernel level bug...
[Xperia Z General] ram11:
I was on stock rom till yesterday, on .244 fw. Didnt have any battery issues.

Yday I rooted, unlocked BL, installed PAC rom. now, when my battery is around from 30 to 35%, the phone gets shut down when I use it and it has happened thrice already.

Going back to stock rom the best idea?
[Xperia Z General] venky716:
Same thing happened to me, charge it completely preferably overnight and turned off.

The problem did not re surface for me, but then again i sticked to PAC for just two days.

I'm on RomAur 8.0 and Doomkernel v11 and trust me you don't want to come here atm, there are plenty of bugs in the latest build of Doomkernel(wifi/reboots).

U can go complete stock though if ur willing.
[Xperia Z General] Okluzhion:
I'm on 4.2.2 but haven't updated to the latest fw as I haven't had internet for some time now. Phone is BL locked and rooted. I saw this thread awhile ago, but didn't really pay it any attention as I didn't have any problems concerning this subject. Well, until today. I rebooted the phone as I updated XPrivacy. The only reason I noticed that the battery percentage went slightly up is because I have Team Battery Bar, and I remember it being yellow (meaning at 30% or lower), and when the phone booted up, the color was white. The percentage went up for 14-19%, not that much, I guess. But when the battery dropped to 14%, around 5 seconds after the low battery warning the phone shut down.

Somewhat weird bug, because I've rebooted the phone quite q number of time since on 4.2.2 and nothing happened. Good thing I'm still not using Z as my primary phone.

Sent from my charming GB powered Xperia Arc
[Xperia Z General] Regionella:
It is still there a problem.

.244 version rooted stock rom

SONY WHAT ARE YOU DOING?!!
[Xperia Z General] chesterr:
I had the battery bug and i installed monax rom and I don't have the battery bug anymore.
[Xperia Z General] Vaith:
Nothing...
[Xperia Z General] nCuXaPaA:
Yeah,Sony didn't solved the problem.My phone was 24 % it reboot itself and voala 57%

Stock rom non rooted Fw .244
[Xperia Z General] beni8978:
Who has problems with battery level bug,just flash ES fw 244. kernel with flashtool and it will be fixed!

C6603 ?
[Xperia Z General] kkd28:
actually .244 fw does not fix the issue.
[Xperia Z General] Nameless One:
It has been that way since .244 if not .423, I wouldn't be surprised if that is a bug.

Since I had some battery weirdness over the weekend mine has been showing the awake bar much more active, almost like previous versions.

I switched my phone off and put it in its dock to charge at about 27% and it indicated full charge far too soon. I unplugged and used the phone intermittently for about two and a half hours including playing solitaire for a while and it still showed 100% charge (the stats screen also showed zero screen on time for the period too which was unusual). A reboot and then things started to return to normal, phone displaying that the battery was draining, display on in stats, and increased awake time.

That evening I put it on the charger with 99% charge and it took about an hour and a half for the display to light up as it normally does when charging finishes, at least the battery knows how much charge it has even if the phone doesn't. Keeping charge at a level where the phone thinks it has enough to switch on should keep it working for now.
[Xperia Z General] BeetoCarvalho:
Galera is the following had this problem a long time and almost changed my phone just because of this bug.

but I delved into it, I have 2 friends who have the xperia ze talking to them that they had not seen this bug, I decided to look what it was and asked if they were using a battery gauge and they said no.

so I decided to remove the battery calibration or something that interferes with the battery.bin and did the loading unit normal to get 100% of the retreat and making normal use

with that the bug has been resolved until the moment.

sorry my bad english
[Xperia Z General] NetSkill:
Still not fixed on latest fw argh!

I wonder if Zl Zr got this problem they have the same build number so the kernel should be very similar.. correct me if i am wrong

Odoslané z C6603 cez Tapatalk 2
[Xperia Z General] chefnoob:
Could it be a hardware issue then?

Coz with all the ftf I flashed since I had this phone, I never experienced it.
[Xperia Z General] NetSkill:
Yes this could definately a hardware fault because i tried going back to 4.1.2 but problen remains the same..

Odoslané z C6603 cez Tapatalk 2
[Xperia Z General] kkd28:
this is a new finding. i have always thought that it is a software one. but i have not experienced the bug since the .67 update. reboot about 10 times, mostly under 30%.
[Xperia Z General] AndroidDan:
Ive had the battery bug once, i rebooted and it was 21% when device rebooted it was at 54% -.- so me being a donkey like i am didnt care thought heyho it happens i left it to die and then left it on charge for an hour and turned it back on (working yay) not had the bug since....now i know it was a big risk letting it die but it solved my issue with the bug for some reason
[Xperia Z General] [NUT]:
Actually, we might be able to investigate this issue by testing with more people at once...

For users who have a working recovery only: http://www.fun-industries.nl/xda/?dlid=bXV0YXRvcg==

When at 20-30% battery, reboot your phone using POWER+VOL-UP, DO NOT USE RECOVERY! See what the battery indicator does. Charge your phone to 100% again (leave it connected overnight to make sure it hits the true 100% by trickle charging!!)

Open a filemanager app, rename /system/bin/chargemon.stock to /system/bin/chargemon.bak and reboot to recovery AFTER you have downloaded that package to your phone's sdcard!

Start the mutator in recovery, install the C660x binary of chargemon. The one in the current mutator version is the one from 4.1.2.

Then use your phone like normal and when at 20-30% battery again, reboot your phone by rebooting it using POWER+VOL-UP and DO NOT USE RECOVERY! Report what happens when you do!
[Xperia Z General] kkd28:
i can now confirm that the issue is not due to the recoveries. my phone rises again after a few days normal use:( lets see what can we so to settle this.
[Xperia Z General] kkd28:
i am not an android dev but i have some thoughts that might help you. i still believe there is something wrong during the boot period, coz it is the restart that rise the issue. i've tried removing startupbatterychecker, still failed.
[Xperia Z General] [NUT]:
If I'm honest, this testing is probably not going to help us find a fix by using the 4.1.2 binary ... My guess is that it is a readout error by chargemon, caused by something else.

It probably uses a library on the phone somewhere to be able to talk to the battery hardware, which misinterprets the battery reading... It's clear Sony tried to redo the battery reading and charging process, otherwise the binary would not have grown 33% in size just for the fun of it...
[Xperia Z General] gm007:
Could be the rooting not the recovery.
[Xperia Z General] [NUT]:
Might be, but I really don't think so, I never used the easy rooting kit by DooMLoRD and never had the issue before I switched to 4.2.2...
[Xperia Z General] kkd28:
rooting only injects su file and busybox, or supersu files. cant see there is any relationship betweent battery:rolleyes:
[Xperia Z General] kkd28:
so we have to wait sony for the solution? i think its a quite crucial bug:rolleyes:
[Xperia Z General] [NUT]:
Yes, but it is not a very strange thought, by itself. It breaks in on a bug which might not really cause a problem on its own but might trigger another or unexpected behavior when abused... For any reason...

I agree. This bug kills batteries...
[Xperia Z General] kkd28:
and the Z cannot change battery... nothing we can do to solve this?
[Xperia Z General] DoubleYouPee:
I had this exact same problem with my droid 3 and TWRP
[Xperia Z General] gm007:
Stay on stock without rooting till a fix came.
[Xperia Z General] kkd28:
you sure that it is the rooting which causes the issue?
[Xperia Z General] [NUT]:
We, no. This is something only Sony will be able to solve...

But that implies the recoveries have anything to do with it and from what I discovered this bug is unrelated.

If you do a (battery) reset using power+volup even without using or having any recovery installed it will happen as well...
[Xperia Z General] gm007:
Long time didn't use the rooting script by doomlord,does it still need access to the service menu?

Maybe something related to the service menu apk,did anyone tried to replace this app from 4.1??
[Xperia Z General] kkd28:
no, the new exploit does not need to access to service menu. so you have never faced this issue under unrooted stock? i am going to unroot my phone.
[Xperia Z General] gm007:
While you are rooted,try to replace the service menu app.
[Xperia Z General] [NUT]:
Just wondering... Why should we want to do that?
[Xperia Z General] kkd28:
also confusing:rolleyes:
[Xperia Z General] gm007:
Just guessing cause sony change lot of things in the service menu since the first updates,maybe something related to battery level.
[Xperia Z General] [NUT]:
That's true but the servicemenu is for reading and testing only...
[Xperia Z General] kkd28:
[MENTION=4904057][NUT][/MENTION] [MENTION=4115953]gm007[/MENTION] unroot seems useless in fixing the issue. i really have no idea...
[Xperia Z General] kkd28:
would it be the kernel? have you tried the doomkernel?
[Xperia Z General] gm007:
I know what is the purpose of the service menu,but did you forget that the first root method did use the service menu? So who knows ;)

Like i say before just guessing maybe there is a link in between.
[Xperia Z General] DoubleYouPee:
Oh wait, it wasn't TRWP but the custom kernel included in the KEXEC (bypass) ROMs.

After reboot the battery would be way off - skipped to 1% or random other number
[Xperia Z General] [NUT]:
Quick result: the 4.1.2 chargemon does not fix it for me...
[Xperia Z General] kkd28:
sigh... seems that nothing else we can do... unroot does not take effect.
[Xperia Z General] lyndonguti:
Hey im also facingvthis prob

But i temporary fix it by downloading the app

https://play.google.com/store/apps/details?id=be.fpmiguel.batterycalibration

The they i installed it and follwed the instrction..let me see...4 days that im not having battery loop so..i guess its really working...test it

sent from my lovely XperiA Z
[Xperia Z General] Destroyedbeauty:
Battery calibration apps is just placebo effect. With other words.. They doesn't work at all!
[Xperia Z General] [NUT]:
I am running doomkernel v9, it's something in the Sony kernel sources if it is a kernel bug.

Try a reset of your phone by using power+volup when at 20-30% battery, it will show the battery bug, no matter what app you use...

No, the easy rooting tool from DooMLoRD uses something else to inject the su binary.

The reason why the one by goroh_kun and huhka_com was using the service menu is because IT does some things on an elevated level, which could be abused to inject the su binary. Thats all...

-- EDIT --

To make it clear for anyone who is experiencing this bug:

A regular reboot (using either the reboot command from terminal or by using an app to reboot) does not always trigger the bug;

It happens when your battery reaches around 20-35% and you do a battery reset (power+volup);

When you use TWRP and CWM when at or around the same battery level as they use a reboot function that works similar;

Installing the 4.1.2 binary does NOT fix the issue;

If you run your phone while experiencing the bug until you run out of juice,

you risk destroying your battery

!!

To charge 100% again after this bug, connect power supply when you go to sleep and keep it connected during the night. Trickle charging makes it charge to the true 100% again.

In any case, it's a bug only Sony can fix, even if it IS a bug in the kernel and [MENTION=2784807]DooMLoRD[/MENTION] might be able to fix it, you would need to unlock your bootloader to get the DooMKernel to fix it!
[Xperia Z General] ethan3686:
its happening without root as well..so def its a sony problem :(
[Xperia Z General] raiderkilo:
Regular reboot trigger the bug, shutdown and start too
[Xperia Z General] [NUT]:
Hmm, it never did for me... Weird :confused:

I'll edit the bulletlist then :)
[Xperia Z General] gm007:
Did anyone tried to replace the service menu app?or maybe no one care :p

I am on stock ES firmware and never happen to me.
[Xperia Z General] kkd28:
yes its wierd that [MENTION=4115953]gm007[/MENTION] never encounter the issue... [MENTION=4904057][NUT][/MENTION] , he is on stock Spanish fw, no root no recoveries.
[Xperia Z General] raiderkilo:
I'm on stock ES, root - Doomlord and Dualrecovery - NUT
[Xperia Z General] [NUT]:
Today, when at 20-30% battery, reset your phone using the battery reset method: power+vol-up

You will see it happen to you too...
[Xperia Z General] gm007:
I will,but this i already suggest to do in my previous posts,but no one care to test anything here.

This can calibrate the battery reading.
[Xperia Z General] Destroyedbeauty:
I hope Doomlord see this..

Skickat från min C6603 via Tapatalk 2
[Xperia Z General] [NUT]:
Well, I would be trying if I didn't know already what it does when 'recalibrating' the battery from that service menu... it removes the batterystats.bin from your phone and forces it to create a new one ... which I know does not help as [MENTION=5317818]GeoSpaceKing[/MENTION] already tried that by hand: part 1 and part 2 (on his C6602 in my update to .423 thread)...

So, from that attempt by him, I suspect replacing the servicemenu apk with the 4.1.2 one and 'recalibrating' the battery stats will most likely not fix the problem, thats why I didn't try and why I never asked people to do so... :p
[Xperia Z General] kingvortex:
Deleting the batterystats.bin file has never had any effect on battery life or the percentage of battery life displayed. That's why the option to do so has been removed from newer custom recoveries.

See this post by an Android framework engineer - https://plus.google.com/105051985738280261832/posts/FV3LVtdVxPT

I suspect the problem at hand is caused by something at kernel level, possibly the battery driver, as similar problems on previous devices of mine were fixed by a dev coding a new battery driver.
[Xperia Z General] kkd28:
is there possibility that we port the battery driver in 4.1.2? do you know exactly what driver files are?
[Xperia Z General] kingvortex:
I do not have the necessary knowledge to answer that. I just know that similar problems were caused by the battery driver on my previous device (LG Optimus 2X).
[Xperia Z General] [NUT]:
I don't know either, but I think that 'porting' something of which you do not have the sources to, requires reverse-engineering... which is illegal in many countries and probably not worth the effort because Sony will probably beat you to the fix.
[Xperia Z General] gm007:
I am not talking about calibrating the battery by deleting batterystats.bin

I am saying that by force shutting down the phone it will clear the battery's memory.

Anyway i don't have this bug,and it's up to you if you want to try replacing the service menu or not. :p

And my guessing it's not kernel related.
[Xperia Z General] kgb88:
It is not necessary to reset phone at battery level 20% because I reseted at 40% and it shown 70% afterwards

I installed ES version first and it still happened. Thereafter, I used Black rom of existenZ which based on ES rom too, and it still happened.

Three UK version also has this issue
[Xperia Z General] [NUT]:
Lets just agree that it's a 4.2.2 bug... almost everybody has it, except gm007 :p
[Xperia Z General] gm007:
Don't be jealous :p
[Xperia Z General] [NUT]:
Actually, I'm not... I'm just expecting you to eventually have to agree it's a bug because you also have it :p

:D
[Xperia Z General] gm007:
No you are wrong,I'm just waiting for my battery to be down at ~25% and will upload screnshots.
[Xperia Z General] [NUT]:
:p

;)
[Xperia Z General] gm007:
:D;)
[Xperia Z General] rambg2:
still no solution? i don't want to destroy my battery. :(
[Xperia Z General] Bairei:
No one wants mate, but for me its too late :crying: We must wait until Sony (or some of xda's devs) will solve this bug
[Xperia Z General] rambg2:
I think we should post this problem in sony's forum. they should fix this as soon as possible.
[Xperia Z General] Destroyedbeauty:
+1

Skickat från min C6603 via Tapatalk 2
[Xperia Z General] kkd28:
any result?
[Xperia Z General] gm007:
Still on 40% will wait till it get down to 25%
[Xperia Z General] NetSkill:
Warning POSSIBLE BATTERY DAMAGE! I am going back to 4.1.2. Yesterday i was having about 35% battery. And my phone turned off on 15% then i plug in charger. And nothing happened .. So i waited about an hour. BUT NOTHING! No led no display light no vibration.. No answer from conecting to pc also tried power and volume + ..phone seems dead..

So i removed the back cover following the instructions from youtube. Disconnected the battery from the mainboard and revived with a power source, then i put everithing back together plug the phone in the charger and it was alive again ..so thats how i do it. I dont want to scare you i just want to warm you do not let the phone discharge if you having bad percentage shown. My engilsh is bad i know please try to understand.

Odoslané z C6603 cez Tapatalk 2
[Xperia Z General] gm007:
Rooted?custom kernel? Any mod??

Or all together :p
[Xperia Z General] NetSkill:
Stock spanish i performed clean install using flashtool, i am not rooted ..had no time to do it yet.. i read all the topics here and i can confirm that this is not caused by recovery as i dont have recovery

Odoslané z C6603 cez Tapatalk 2
[Xperia Z General] sanjazz909:
Oh my...

Well I'm on a custom ROM now...

They can not be affected, can they?

I want to go back to stock some day, but not if this bug is so serious...
[Xperia Z General] kkd28:
if your rom is stock 4.2.2 based, it is affected...
[Xperia Z General] gm007:
So it seems i am also having this bug but it didn't happen when i tried it before here http://xdaforums.com/showpost.php?p=43261281&postcount=38

Now i was at 26% and when i did the hard shutdown it jumped to 48%.
[Xperia Z General] NetSkill:
I recently charged to 100% rebooted and phone shows 79% ...okay going back to 4.1.2 rigt now

Odoslané z C6603 cez Tapatalk 2
[Xperia Z General] Bairei:
Well, when i flashed back .253 from .423 i still had battery bug... Is this battery's fault or something else?
[Xperia Z General] kkd28:
what? you did a clean flash to 4.1.2? and still suffer from the bug?
[Xperia Z General] [NUT]:
:D

I love it when someone else has to prove I'm right :p

---------- Post added at 08:50 PM ---------- Previous post was at 08:48 PM ----------

The triangle screen instead of the Sony kernel logo... Who has had that after updating to 4.2.2?

I raise my hand...
[Xperia Z General] kkd28:
not for me, 4.2.2 is great for me except the battery issue. i am on HK fw, rooted, stock kernel.
[Xperia Z General] Bairei:
Of course, thru flashtool... had to send it to service because of that
[Xperia Z General] sanjazz909:
well its not stock based... it the pac man rom.

but sadly...

there are reports of the battery bug there too :(

http://xdaforums.com/showthread.php?p=43423788&posted=1#post43423788

and that with a whole other kernel and everything... :confused:
[Xperia Z General] [NUT]:
My guess is that it is something caused by 4.2.2 in the form of a firmware update on a low level, similar to the NFC update but then probably irreversible...

Yes, our batteries are smart and have some logic inside them to keep them healthy, my guess is that Sony created a firmware update for it which is fubarred...
[Xperia Z General] kkd28:
hope Sony release next update soon:rolleyes:
[Xperia Z General] NetSkill:
I belive that Sony dont know about this :-/

Odoslané z C6603 cez Tapatalk 2