yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] my_former_self:
CM6 Nandroid/Bart

Thanks for the post. I just re-read through my original post and I think I may not have been clear. I did a Bart backup on CM508 for her G1 and it worked just fine. What didn't work was a backup on CM6 (again, I don't think I made that clear at all in my post, sorry). After I got her CM6 all nice and set up with her apps back, app2sd (thanks, rat!) and a bootswap setup, etc., that's when it wouldn't do either backup. I was just doing a backup after I got it the way I wanted it as a, you know...well...a backup :D

But, dude, thanks for taking the time to post, though. Sorry again I wasn't too clear (it was late).

Yeah, she likes her pink Carebear. :rolleyes: Amon's 1.6.2 Bart actually does work in CM5 - it's what I used a few times to backup and restore from for her phone - but yeah, it definitely does not work in CM6 nor does nandroid+ext, either, of course.

As far as the fix to keep her pink bear, I think I'll go that route (creating the mount point). Thanks again for the help. My wife's pink care bear thanks you, too :rolleyes:
[G1 Android Development] my_former_self:
Russ is right, moto. The Android SDK is available for Linux, as well as Windows (and Mac). But I would add, if your computer "is super old and messed up," I'd go with Lubuntu rather than normal Ubuntu. It's a fairly new (less than a year) flavor of Ubuntu that is made especially for older than dirt hardware; it can run on as low as a Pentium II or Celeron system with 128MB of RAM (and that is truly older than dirt).

It might work better for your computer, given what you said (vanilla Ubuntu could bog down your particular machine). It's just the difference in GUI, basically, that makes the performance difference; Gnome vs LXDE. Either run it off a live CD, like Russ said, or you can do a persistent install ("persistent" = save changes and data) to a 2GB+ flash drive straight from Windows. Then boot from the flash drive (either configure your bios or just tap F12 like a mad man after a restart until you get the screen to choose where to boot from) and run it as "Live." Either will not change or affect your Windows install, hard drive, etc, in any way at all. It uses your flash drive as a hard drive. Depending on how old your machine is, though, you may have to use a Live CD (older hardware doesn't always support booting from USB).

And if you already know all that about Live installs, sorry for the tutorial :D

Anyways, enough with the geek talk (I love Linux). Good advice, Russ. Go with it, Moto.

P.S. - As an IT guy...

I find this...interesting. Hmmm... :rolleyes: If it is your computer, though, then this might help.
[G1 Android Development] :
The phrase 'You should have gone to spec savers' jumps to mind :D

Re-read my post, it states CM6 and exactly the problems you are describing, thats why I buggered off from it and back to Super D ;)
[G1 Android Development] my_former_self:
Hey, Super D was based off CM508, right? I'm guessing that's be why you went back; none of the problems of CM6.

So far, CM6 is working well on both my wife's G1 and my MT3G, but it did take a considerable amount of tweaking; removing the useless system apps like Twitter, Live Wallpapers, Setup Wizard, etc.; getting apps2sd up and running; throwing in a bootswap; fine tuning all the performance tweaks and such. But once it was done, I have to say, CM6 flies. Although, I think I will swap out the 3D Gallery for the 2D; too many issues and weird rendering when rotating.

I will admit that the whole Nandroid debacle and just the whole Froyo2sd implementation alone (I know that was Google's doing) is really annoying. I'm about to try Firerat's suggestion of adding the mount point so that the nandroid/bart works again (and so my wife can retain her wonderful pink care bear recovery...sigh). I'm glad Firerat came around with the apps2sd script, especially; if he hadn't, I'd be straight back to CM508 in a hurry (or Super D).

All that to say, I like CM6 a lot, but I don't blame you for going to Super D, either.
[G1 Android Development] my_former_self:
The added mount point worked like a charm (as if I ever doubted you!). The pink care bear lives! :D

Thanks again, rat (more so, my wife and her pink care bear recovery thank you).

P.S. - And thanks for your apps2sd script, as well. My wife has told me that she will use her G1 "until it dies, even if it's using old software." Thanks for keeping her running on the latest and greatest.
[Galaxy S I9000 General] n646464:
After flashing Odin several times (through trial and error) i noticed that my battery depletes or empties allot faster than before.

after doing some research it became apparent that the phone is not displaying the correct battery level. To solve this i had to wipe the battery stats after fully discharging and fully charging it to show the correct battery levels.

You can use any battery intensive applications to discharge the battery, after which you should fully charge it till you get a message telling you that the battery is full.

then run the following commands

su

rm /data/system/batterystats.bin

that should fix the incorrect battery meter although i wish we had a good custom recovery like HTC Other devices....:mad:

Enjoy
[Galaxy S I9000 General] bratfink:
Hi i have also noticed yesterday that when my phone was charged to 100% i did not get the remove charger message. Could you please provide a step by step method to how you should go about correctly recalibrating the battery. This would be much appreciated. Thanks
[Galaxy S I9000 General] ash99:
I did this hack today. Lets see how we get on :-)
[Galaxy S I9000 General] fua:
Its my 3rd recharge after flashing and i get opposite problem now. 27h since charging, with 3h display on and battery level is 100% :confused:
[Galaxy S I9000 General] bratfink:
LOL

LOL the result was even easier than i thought.

I drained the battery down to 5%, plugged in the phone and can the command as in the first post. Turned the phone off than on again and when turned on instead of showing 4% (to be exact) it showed 23%. So i just gained 19% of my battery back. Woo :D
[Galaxy S I9000 General] TommyBeretta:
Is it necessary to totaly discharge the device till it turns off ?! So i did, then charged it to 100 % , turned the device on and immediately typed the command's into the shell, but nothing seemed to happen :( . Did i do anything wrong ?!
[Galaxy S I9000 General] n646464:
Ok so here is the instructions step by step

1) Charge the battery to full till you get the full battery message

2) Use the phone till it is totally empty (stops turning on)

3)Charge again to full till you get the message again

4) Download and install a terminal shell application from the market

5) Enter the following "su" press enter

6) Enter the following "rm /data/system/batterystats.bin" press enter

Best to Preform steps 4-6 while in charger

Enjoy
[Galaxy S I9000 General] TommyBeretta:
Thank you very very much :)
[Galaxy S I9000 General] Kilack:
What is a good app to run to drain a battery quickly ?
[Galaxy S I9000 General] n646464:
There is an app forgot what it is called though. but it did not work i just turned on all the hardware that was faster:)
[Galaxy S I9000 General] TommyBeretta:
Last Question: When charging the device, should it be turned on or off ?!
[Galaxy S I9000 General] n646464:
I did mine when it was on i do not believe there could be a difference
[Galaxy S I9000 General] TommyBeretta:
ok, thx again, i think it works now :)
[Galaxy S I9000 General] jjwa:
Thanks for starting this topic :). Because today I noticed that for hours after I unplugged it, it did not use any power on the battery graph. Aka, it looks like it thinks it's a lot fuller by default.
[Galaxy S I9000 General] Waky:
thanks for the info, but does it need to be rooted to complete these steps?
[Galaxy S I9000 General] MagicOnline:
yes, rooted! only rooted u get access to this path.
[Galaxy S I9000 General] Onraad:
Very anxious to try this! It really feels like my battery sucks balls!

Thanks for the tip

Edit: I just tried it, with my battery at 47% because I have no patience at all.. Nothing seems to have changed though, battery was still at 47%
[Galaxy S I9000 General] omzart:
Do you have to root the phone to install a terminal shell? thanks.
[Galaxy S I9000 General] haiku:
I don't think that you need to be root to install the terminal application, however, i do think that without root you cannot run the "su" - super user command.

I could be wrong however.

Edit:

Ok, i just rooted my phone, it's actualy much safer than i thought. The "Superuser permission" application actually alerts you so that you decide whether you'll grant super user permissions to application. If i knew that i would have rooted my phone earlier :) Yay :)

For this very purpose i installed Terminal emulator and after typing "su" the "Superuser permission" application actually alerts you if you want to grant terminal super user rights.

I was just testing this, i need to empty my battery first and then charge it full, then i'll try to delete the above mentioned file.
[Galaxy S I9000 General] omzart:
Ok and wich terminal shell is the best on the market?
[Galaxy S I9000 General] haiku:
I just installed the application with name »Terminal emulator«, the top one with highest rating in Market.
[Galaxy S I9000 General] JuWa:
I used the same. I think it`s ok app. I just did this "hack", cause I also saw, that the battery status on the notification bar was lying after flash. It also showed blue all the time, so I hope this helps...(unless it`s the new function on this fw).
[Galaxy S I9000 General] WGPaf:
Hi guys,

I installed Terminal Emulator. "su" tells "su: not found"

(whereas "ls" displays list of folders/files)

Any idea ?
[Galaxy S I9000 General] omzart:
Hi, so i did use the battery untill no possibility to turn on, i fully recharged, and use the battery again, and now i'm charging it to apply this " fix " but strange thing:

when the battery is fully empty, the progress bar of charging says ' 42%' whereas it is 0% since it was empty, so does it mean it read wrong the battery level or that the phone wont turn on if the battery is under 42%?

if it is the second one it means there could be near 50% of the battery unlockable!

someone can answer me ? thanks.
[Galaxy S I9000 General] haiku:
I think you need to root your phone in order to be able to run su - superuser command.

Sent from my GT-I9000
[Galaxy S I9000 General] JuWa:
Have u rooted your phone? You need superuser permission!
[Galaxy S I9000 General] exitido:
How i know if i made the fix correctly?

when i write "SU" Superuser ask me for allow permissions, but when i write the second line i dont receive any confirmation...

Thanks
[Galaxy S I9000 General] Roy Ngan:
i didn't root the phone, but i've downloaded Battery Indicator application to monitor the battery level.
[Galaxy S I9000 General] Onraad:
Yeah I was kind of wondering the same thing.. Because I didn't notice any change in battery level after..

My battery drains really fast, like last night, in 7 hours or less it went from 30% to empty :(
[Galaxy S I9000 General] omzart:
Any idea?
[Galaxy S I9000 General] Onraad:
It sounds to me like you just got back 42% of your battery back, since the display went from 0% to 42% after applying the fix.. Or did I read your post wrong?
[Galaxy S I9000 General] omzart:
No, i didnt explain well.

before i apply the fix, when my battery was 0 %, and when i started charging it , it says 42%, not 0%. you get it?

I'm gonna see if when it will be fully uncharged it will say 0 or 42% when i charge it.
[Galaxy S I9000 General] JuWa:
This didn't help me. I tried twice, but my battery indicator shows still full even I have 82% battery left. It should have took a level out when it was in 90%. Soooo... what I'm doing wrong..? Should I just use this normal way and do the calibration in every 30 charge (make the battery empty and then charge it full, without this hack)?
[Galaxy S I9000 General] omzart:
Hi i did this fix , and it took a level out at 75-70% ;)

samsung change the way the phone manage the battery indicator( i guess )

Any way, any idea about my previous post?
[Galaxy S I9000 General] omzart:
up to that
[Galaxy S I9000 General] n646464:
Guys....After several tests i can confirm that this works best when you fully charge your phone when its turned off (no need to discharge) then turn on the phone and run the hack.

P.S i got better result when i did it after again after another full charge (over night). You can do this from the custom recovery now no need for terminal

Enjoy!!!!!!!!!!!!!
[Galaxy S I9000 General] omzart:
Wich custom recovery ?

So you say it works better if:

-discharge ( not needed but...)

-fully charge turned off

-turn on the phone ( still charging or not?) run the hack

-discharge

-fully charge turned off AGAIN

-turn on the phone ( stil chargin or not?) run the hack AGAIN

is that right? do we need to run the hack 3,4,5 time again?

Thanks!
[Galaxy S I9000 General] omzart:
Hi can you answer to that?

I actually found something, when i charge it turned on it says 42% ( wich is wrong ) but when i charge it turned off the progress bar is at his lowest stage wich seems to means that it charges better turned off.
[Galaxy S I9000 General] rithvikgv:
Help

Could anyone tell me what the path would be after applying the MCR lag fix?
[Galaxy S I9000 General] hnr2802:
im on JM2, run the mentioned commands but still not reporting correct battery level.. is there any other method?
[Galaxy S I9000 General] dereknas:
After keyin the command and press enter, there's no success or other message, the cursor just goes to the next line. Is this the normal outcome?
[Galaxy S I9000 General] n646464:
yes it is normal
[Galaxy S I9000 General] android53:
this seemed to have done nothing on my phone. I entered the command both in adb shell and terminal, battery % didn't change
[Galaxy S I9000 General] azreil24:
This procedure doesn`t do anything, it just deletes the file that contains the stats of the consumed battery current, file that resets itself when you reset the phone. Look at the baterry usage every time you reset the phone and you will see that the stats are new ones.
[Galaxy S I9000 General] android53:
The only way i got this to do anything on JM2 is by discharging the battery, fully charging it, running it low (20% or less) and then running the command

This made by battery jump from 21% to 44%

Running a test now to see if it actually gave me more useable power back
[Galaxy S I9000 General] Qazz~:
any possibility that this can be turned into an app?
[Galaxy S I9000 General] Qazz~:
Fixed problem, so we only have to do it and nothing else? will a phone restart be necessary?
[Galaxy S I9000 General] Will.1:
I second this, would be very useful
[Galaxy S I9000 General] EarlZ:
Turning this into an application would be great, heck im pretty sure a lot of people will donate for this!
[Galaxy S I9000 General] nickporwal:
cant we just delete the file using rootexplorer (rooted phone) app?

i think it would be same as deleting using terminal.
[Galaxy S I9000 General] Benjamin Dobell:
Just thought I'd let people know that I had this problem pretty badly after flashing with Odin. I was getting less than 7 hours idle time. However I didn't have to delete any files to fix it. I don't know exactly what fixed it but this is what I did.

I let the phone run flat (or what it thought was flat) then plugged it in to charge. Charged the phone to 10% and then let it idle for 30 mins or so. Then I turned the phone off. I think plugged the phone in to charge and turned it back on whilst it was on the charged. I let the phone fully charge and haven't had a problem since.

I have no idea exactly what fixed the issue however it looks as though the phone will fix (or at least is capable of fixing) itself.
[Galaxy S I9000 General] Benjamin Dobell:
It appears I may have spoken too soon. My device/battery was functioning correctly until I powered it down and started it back up. It appears the data my phone was using to establish the correct battery usage was not persistent. I'll give the fix outlined in this thread a go and report back.
[Galaxy S I9000 General] Benjamin Dobell:
Nope this didn't work at all, nor do I see how it could possibly work. Here is why...

Here is a diagram representing the capacity of a battery.

0% --------------------- 100%

____________________

|********************|

---------------------------

However the phone sees this:

0% --- 100%

____________________

|******|*************|

---------------------------

Or possibly this:

---- 0% ------- 100%

____________________

|****|*********|*****|

---------------------------

The only way to fix this is to show the phone the true capacity of the battery by showing it true 0% and true 100%. However the phone will turn off when it thinks it's out of battery (preventing you getting to true zero). Also you can't show the phone true 100% because (presumably) the phone stops taking in charge when the OS thinks it is full. However, if the phone still takes on charge when the OS thinks it is fully charged then you can show the phone true 100% just by leaving your phone on the charger for a long time, then you just need to hope that what the phone thinks is 0% is actually true 0%.

Otherwise the only other way to teach the phone true 0% and true 100% is to put your battery in another phone and fully charge it (true 100%) or fully discharge it (true 0%).
[Galaxy S I9000 General] vosszaa:
I have an issue with inaccurate battery reading after flash. I flat out the battery, fully charged then remove batterystats.bin but still not accurate. The battery indicator on the status bar shows i have 4/5 full but when i check battery info in settings it says "56%"

any idea?
[Galaxy S I9000 General] sturmeh:
Do not flat out the battery first, full charge the battery delete the stats then flat it out.
[Galaxy S I9000 General] JuWa:
This abviously does not work for me. My battery first baerly last ~10h after flash and lag fix. Then I calibrate the battery letting it go empty in normal use and full charge couple times. Battery lasted about 1½ day hard use, which is good. Then I tried this batterystatus.bin and the battery lost 70% energy in 1 NIGHT! I didn't use the phone at all in that time and phoen was just rebooted.

So, I think this "hack" is complitely rubbish and all you need to do is calibrate the battery in normal way.
[Galaxy S I9000 General] °Dexter°:
I used this fix after a full charge and now it depletes faster...how can i fix it (besides a new full charge from 1-2% to 100)?
[Galaxy S I9000 General] Adevem:
maybe that's my problem. had hardcore battery issues since i'm very into flashing ;p addiction i tell you! it's got way better battery life now but it wouldn't hurt to confirm. gonna let it drain through the day and let you know! thanks :D
[Galaxy S I9000 General] Aylarth:
How many times did you guys flash your phone to get this error with the battery reception? I did like 6 times 'till now and it seems to be working properly.
[Galaxy S I9000 General] Adevem:
I think I'll just do the old school charging up from 1%ish to full with my phone off. since it's bad for the battery to drain out completely.
[Galaxy S I9000 General] EarlZ:
Sorry for the noob question but where do i type in these commands, under terminal emulator ?
[Galaxy S I9000 General] mazsuper:
If Your a NooB like me

don't forget to leave a space after rm

i got file not found untill i made a space

Earlz - run your terminal app and just type it in.
[Galaxy S I9000 General] EarlZ:
Alright, so all i need is a rooted phone, terminal emulator and just type the commands in.. how about the adb function, does it need another application or sdk ?
[Galaxy S I9000 General] mazsuper:
Earlz

adb did not work for me so i got a terminal app from the market,

use the one click root
[Galaxy S I9000 General] °Dexter°:
Well,i fell asleep tonight with headset in my ears,and phone on the bed (argh!),and i found it shutdown...i thought it ran out of battery during night (it was at 37%),i plugged the charger and,after boot,it showed 60%!

Did i gain all that charge back?anyway,i charged to full,and now it still drains a bit faster than before (to 91% in less than a hour using 20 minutes of 3g connection)...or not?
[Galaxy S I9000 General] EarlZ:
Earlier when my battery was at about 15%, i charged my phone with the wall charger and left it for 1hr+ and it shot up to a 100% but upon using it just by staying at the application drawer for 1:15s eats the battery 1%

So now what I did was reflash the phone to JM5 + partition ticked so i would assume this will wipe the battery stats as well... turned off the phone and charged the battery till it says 100%, removed the battery for 1min and recharged it again.. it went to charging state for about 5mins and said 100% , went into download mode and reflash the phone again with partition ticked.. hopefully this will correct the battery stats.
[Galaxy S I9000 General] snapper.fishes:
This thread should be stickied.
[Galaxy S I9000 General] ivanchin99:
Mine was from 5% shut down, and when i power it back on it became 37% :eek::cool:
[Galaxy S I9000 General] tytdfn:
So i was looking at this thread and was bothered at how much sense this post made. So i did some more research and stumbled on this thread:

http://androidforums.com/all-things-root-behold-2/76853-idea-great-battery-life.html

Basically if your too lazy to read it says that whoever supposedly can't hit their correct 0% spot should use the batterystats.bin file of someone who is sure they are hitting theirs.

I specially like the results of post #6:

"it definitely helps before this i got roughly 7 hours from a full charge using warheads since this morning i am at 15 hours 17 minutes and i am now at 22 percent this is coming from a guy who never got better than 9 hours since i bought the phone definitely would recommend this"

and #7:

"A fluke? it helped mine too. First thing I noticed is that at the end of my battery life, it says I have a minute left. Well, 2 hours later it finally died. If my math is right, I just gained 2 hours. I'll cycle my battery some more and see the final outcome."

I thought you guys should give it a try. I would readily offer mine but it seems that i can't find it on my phone with astro and i don't have root explorer and I also don't wanna plug in my phone to the computer because when i do my wireless adapter stops working.
[Galaxy S I9000 General] Benjamin Dobell:
Using someone else's batterystats.bin definitely makes more sense than deleting the one on your device and just expecting it to work itself out. Each battery is probably slightly different so it may not match exactly but it's better than constantly getting 7 hours of battery.

Ideally I recommend people don't flash their phone unless they're fully charged. Kies won't let you do this, as we've witnessed, it has a reason for it. However if you aren't going to wait or if you'd like to be extra safe then I recommend backing up your own batterystats.bin before flashing and then reapplying it after the flash.
[Galaxy S I9000 General] rakem:
I have this issue after a flashing spree over the weekend. I went to JM5, had a bunch of issues getting it to work, so flashed back to my default (JG4). Then gave JM5 another try and finally got it to work.

Today i have not touched the phone much, and after a full overnight charge its down to 20%.

I will give this method a try tonight and hopefully it fixes it up.

(Galaxy S)
[Galaxy S I9000 General] °Dexter°:
Should i take care of something before replacing batterystats (i.e. remaining charge)?
[Galaxy S I9000 General] EarlZ:
I was flashing my device saturday evening so i decided to do it like this

1.)Flashed to JM5, from 53% i got to 66%

2.)Charged the phone while it was off.. to a 100%

3.)Flashed to JM5 again, powered off the phone and it was charing again for a couple of mins then it said 100%

4.)powered on the phone, powered it off removed the battery for like 1min and charged it again to 100% (2-3mins)

I think anyone can just substitute flashing to just deleting the battery stats, It would be great if we have an external charger unit.. that way the battery will always be at a 100%