[Galaxy S I9000 Android Development] yken:
From other threads, none of them mine.

Advice and troubleshooting battery issues. Any contributions welcome, please see

links in "Other Resorcess" for detailed information.

Disable HSDPA

In the phone dialer enter code: *#301279#

Click [2] CHANGE HSPA REVISION

Click [1] HSPA OFF

Battery Calibration

Remember, always flash with a full battery.

USE phone heavily. Use it till the system turns OFF automatically

Turn OFF phone

Charge till it says it is FULL

Start phone in RECOVERY Mode

Select Advanced CWM Features

Select Wipe Battery Stats

RESTART phone

Other Modem

The JPD modem has been reported to give better battery life.

Gallery Issues

Thumbnails and some database's could get corrupted making the media scanner running berserk, resulting in battery drain.

Delete the following:

dbdata/databases/com.android.providers.media

dbdata/databases/com.cooliris.media

And clear the thumbnails folders on sd cards.

I have created a CWM script to do this for you - Gallery Cleaner

Bump Charging

One technique that has gained popularity in the user community is "bump charging." To bump charge a device do the following:

Turn it off completely

Plug it into a charger.

Wait until the green battery sign says 100% . DO NOT turn the device back on.

Disconnect and immediately reconnect the power cord. (The device will now accept more charge before saying it is full.)

50% Battery without Signal

Well Known Froyo bug that started from the very first firmware release shows phone as 50% time without signal on cell standby when you check in Settings > About phone > Battery use

Apparently this can occur anytime after unplugging your phone from charge so I always do 2 things to fix this and so do many other users.

Turning Flight mode off and on.

In the phone dialer enter code: *#*#4636#*#* > Scroll down a bit >

Select Phone Info

Select "Turn off radio"

Select "Turn on radio"

Exit

*****************************

.shut down your phone and take out the battery ( its important) , memory card and sim card if you can (just to be on the safe side)

2.wait for 5 mins and put all of these back and start your phone in recovery

3. wipe cache partition and dalvik cache in CWM

4. restart your phone and DOWNLOAD THE APPLICATION CALLED AUTOSTART ( it has a car icon)

(it is a payed one so don't be a tightass)

5.disable the bold applications from following list (as per Autostarts):

Maps:

- After Startup

- Application replaced

- Widget updating (Traffic)

- Widget updating (Latitude)

- Widget updating (Rate Places)

Software update:

- After Startup

- Application installed

- Application removed

- SMS received

- Secret Code entered (credit -- ceriko for autostarts thing )

6. go to settings applications and running services and kill SOFTWARE UPDATE , GMAIL ( if u r not using ) , MAPS AND NAVIGATION , MARKET , AND ALL OTHER except system apps

7. after applying the settings in autostarts as per point 6. , and following point 7 , restart your phone and see in running services that what apps are there running . if there are any unsued ( however after configuring autostatrs you will not see any that you have disabled )

8. now this is the time to re-callibrate your battery

******************************************

Hi people.

One way to get longer battery life is to disable HSPA and just use 3G. 3G (UMTS) is not as slow as EDGE/GPRS but doesn't use as much power as HSPA.

Here's a quick comparison of *typical* download speeds:

GPRS: 48 kbit/s, EDGE: 150-200 kbit/s, 3G: 384 kbit/s, HSDPA: 1000 kbit/s

After some searching, I've found a method that actually works for our Galaxy S:

Go to the phone dialer pad and enter this code: *#301279#

Click [2] CHANGE HSPA REVISION

Click [1] RELEASE 99 (HSPA OFF)

Then you should see something like:

CHANGE_R99

HSDPA OFF, HSUPA OFF

Done!

Press the BACK button to exit, or press MENU button then END.

The setting should take effect shortly after you exit the menu. To be sure that the setting take effect, toggle Flight/Airplane mode.

You could store that number in your phone book or speed dial for a quick way to toggle HSPA.

The setting STAYS ACROSS REBOOTS!

If you want to enable HSPA again just go back to the same menu and choose [3] RELEASE 6 (HSDPA/HSUPA).

Just tested it with the XXJPP radio and it really works.

Longer battery life at last!

**********************************************

1. Run the device down until it turns itself off.

2. Turn it back on and wait for it to turn itself off again.

3. Remove the battery for 10 seconds.

4. Replace the battery, but leave the device off.

5. Charge the device until full and then for another hour.

6. Boot into recovery and reset battery stats (or, go to console and type “su” enter, followed by “rm /data/system/batterystats.bin”)

7. Run the device’s battery down until it turns itself off.

8. Charge to full while off.

9. Restart and use as normal.

********************************************

Turn your device ON and Charge the device for 8 hours or more

Unplug the device and Turn the phone OFF and charge for 1 hour

Unplug the device Turn ON wait 2 minutes and Turn OFF and charge for another hour

Your battery life should almost double

**************************************************

There is a lot of threads going on about battery life related problems, let's try and keep everything in one place.

First we'll see how to fix some Gingerbread specific problems (JVB & JVK), followed by a bunch of general recommendations to save power on all ROMs (Eclair, Froyo, Gingerbread) and there is a guide to calibrate the battery.

Android OS bug on Gingerbread ROMs

This is the most annoying Samsung/Android bug.

A good few people have been seeing battery drain on Gingerbread. It comes randomly and apparently once it starts the only way to stop it is to reboot... But it comes back after a while

You can identify this drain by checking the Battery Use in Settings : if Android OS is above 20%, often between 40 and 60% of the battery consumption while your phone has been idle most of the time, then that's it.

The good news is that there is a fix found in XDA: 2 system apps are responsible for this leak, here's what to do using Titanium Backup :

Find Software Update & Samsung Account, select them one by one and "Clear Data". Now you need to freeze Software Update (if you have the Pro version of Titanium Backup) or to backup the app and delete it. Since you don't delete the backup, it's like a freeze. (But keep the backup in case you want it back for some obscure reason)

Or simply use the default app manager to clear the data and Root Explorer to backup/delete Software Update.

If the Android OS battery drain comes back after freezing/deleting the 2 apps above then I suggest you read about the app below. You can back it up and delete it as well and see if it improves:

wssyncmlnps.apk (info) - make a backup in case.

Please share your findings posting in this thread so everybody can know.

Tricks for all Android versions

Other important things to improve battery life:

- Set Wifi sleep policy to "never" in Settings > Wireless > Wifi > Menu key > Advanced > Wifi sleep policy.

- Set Settings > Display > Animations to "NO or SOME animations" (thanks to Phazeman for that), you will still have the overglow effect and the CRT screen-off animations is you select "some"

Now a little bit of magic:

Toggle the airplane mode on/off 3 times in a row, that will reduce your Cell Standby battery usage (thanks to Phazeman for that).

It should only be necessary to do it once after flashing but if you think Cell Standby uses too much power at some stage you could toggle again the airplane mode

Usual, basic recommendations :

- The best advice ever is to always flash with 100% battery

- Avoid having too many widgets,

- Avoid using live wallpapers,

- Avoid using energy saving apps (they actually run non-stop in the background, hence they use battery),

- Set your screen time-out to an acceptable low value, like 30 seconds,

- Brightness: use a low value (between min and 25%) or tick auto-brightness,

- Try different modems (as they are responsible for networks and networks use a lot of power) in this guide (bykakado74)

- Buy a 10% higher capacity battery (1650mAh) made by Samsung for SGS devices (fits perfectly of course )

- Calibrate your battery.

Battery Calibration

(not needed if you flashed with 100% battery and let it deplete/recharge fully 2 or 3 times)

Sometimes the battery isn't being used to its full extent, or it shows wrong values. This is due to some wrong data stored in a file called batterystats.bin stored in /data/system. The steps below will show you how to stretch the battery use and delete the file in CWM (ClockWorkMod) in order to start with a full battery and fresh stats.

- Charge your battery full, bump charge to get the highest level possible ; note that it's not a big deal if it shows 97% when you unplug after bump-charging, more info in this article,

- Drain your battery to 0% until it shuts down by itself (without plugging the charger or connecting the phone to a pc),

- Wait 2 minutes and reboot the phone to ensure the battery is completely flat (it might reboot fully, half way, not at all, don't worry) until it dies again,

- Remove the battery and wait 2 minutes,

- Replace the battery and plug the charger without switching the phone on until it shows 100%,

- When phone shows 100%, boot in recovery (volume up + home + power) and go to > Advanced > Wipe Battery Stats > Confirm (move up/down using the volume keys),

- Reboot the phone and unplug the charger when the "battery full notification" comes (wait for the notification before you unplug the charger!!!!!),

- Now use your phone until the battery is flat again and charge full (no need to have it turned off, unless you it to charge faster). Repeat 2 or 3 times and your battery will be calibrated,

- Only wipe battery stats once, run a few cycles of full charge / discharge and after that just use your phone as normal (i.e. no need to deplete / charge fully anymore).

Some explanations

The battery calibration tutorial I offer has been elaborated after a lot of reading. By draining the battery flat (completely flat) your kernel somehow learns from that and charging full while off will teach your phone the full battery range available to your phone once you turn it on.

For example for some people the battery indicates 1% left and they can still play 1hr with it before it shuts-down by itself, that's because the phone didn't know the full range of the battery (I don't know why though)

So if they recharged their phone as soon as they reached 10 - 5% then they never used the full potential of their battery. This is where the battery calibration does its work, it will not purely increase the battery lifetime but show accurate percentage left. And it will become more accurate after a few cycles.

Instead of doing this calibration you could also keep charging your phone full and empty the battery fully each time and that would also calibrate your battery after time.

Anyway I repeat that the best thing to do is to Odin-flash with 100% battery and let the phone discharge fully at least once, then let it charge full. I reckon this is enough and painfree.