[Captivate Android Development] techniq35:
Battery

I've been using Axura since Master's first CE release and it is by far my favorite, but the past few releases (I think starting at 2.2) my battery has been draining very fast (10% - 15% an hour). I've done the following trying to find out why (and more importantly, fix it)

I always flash at 100% (with and without bump charging) as well as flashing to JF6 with I897UCJF6-final-OCD-REV0.exe and master clear

Reset my battery stats many times (with and without bump charging)

tried both setiron's (1.4.x) and xcaliburinhand kernels

different modems

analyzed logcat by having alogcat write to SD

checked my battery usage and history

I have not found a definitive source to my fast battery drain. It seems to be due to something running in the background, but I've checked CPU usage throughout the day and never find anything out of line. Looking at the attached screenshots, you can see something has been running 43.6% of the time, even though my screen has only been on for 20.8%.

A few guesses are:

1.) 'suspend' is the second highest CPU user after Android System (although not much). An issue has been posted at AOSP (http://code.google.com/p/android/issues/detail?id=11126) with people having similar issues with suspend (with no idea as to the cause) -- I just read to try to turn off the screen from automatically turning off, so I might try that next.

2.) Maybe a rouge sensor... if you look at the sensor usage screenshot, it shows Android System with alot of usage (4h 6m 33s when pressed on it) and the Running (43.6%) time on the other usage screen has been on for 4h 33m 48s). Hmm.

3.) I see alot of entries to DBG_WSS_DM in my logcat throwing the following exception:

12-17 01:35:24.969 E/DBG_WSS_DM(21864): Warning!!! [wssdmdb.java Line:1557] _smlFileOpen java.io.FileNotFoundException: /data/fota/fota_delta_dp1 (No such file or directory)
12-17 01:35:24.969 W/System.err(21864): java.io.FileNotFoundException: /data/fota/fota_delta_dp1 (No such file or directory)
12-17 01:35:24.981 W/System.err(21864):	at org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method)
12-17 01:35:24.981 W/System.err(21864):	at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:152)
12-17 01:35:24.981 W/System.err(21864):	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:145)
12-17 01:35:24.981 W/System.err(21864):	at com.wssyncmldm.database.wssdmdb._smldmFactoryDeltaFileCreateTMO(wssdmdb.java:1412)
12-17 01:35:24.981 W/System.err(21864):	at com.wssyncmldm.cust.wssdmTask.__smlTaskInit(wssdmTask.java:98)
12-17 01:35:24.981 W/System.err(21864):	at com.wssyncmldm.cust.wssdmTask.smlTaskHandler(wssdmTask.java:147)
12-17 01:35:24.981 W/System.err(21864):	at com.wssyncmldm.cust.wssdmTask$1.handleMessage(wssdmTask.java:66)
12-17 01:35:24.981 W/System.err(21864):	at android.os.Handler.dispatchMessage(Handler.java:99)
12-17 01:35:24.981 W/System.err(21864):	at android.os.Looper.loop(Looper.java:123)
12-17 01:35:24.981 W/System.err(21864):	at com.wssyncmldm.cust.wssdmTask.run(wssdmTask.java:74)
12-17 01:35:24.981 W/System.err(21864):	at java.lang.Thread.run(Thread.java:1096)
12-17 01:35:25.005 E/DBG_WSS_DM(21864): Warning!!! [wssdmdb.java Line:1333] smldmdbDummyDeltaFileCreate Dummy delta file name : data/fota/fota_delta_dp2
12-17 01:35:25.017 E/DBG_WSS_DM(21864): Warning!!! [wssdmdb.java Line:1351] smldmdbDummyDeltaFileCreate java.io.FileNotFoundException: /data/fota/fota_delta_dp2 (No such file or directory)
12-17 01:35:25.117 E/DBG_WSS_DM(21864): Warning!!! [wsspushdminitadapter.java Line:167] _smldmInitAdpCheckNetworkReady NETWORK SERVICE is READY!!![0]

This appears to be an update service for the Vibrant/Tmobile. Is it possible to remove this service as it can't work with the Captivate/AT&T?

4.) I'm also seeing alot of entries for FlurryAgent, but haven't tried down what it is yet (probably something I've installed). I see 55 entries between 2:23 and 3:20 today of the following (there are more in other time ranges, just the time range for the log file I had open)

12-17 02:24:00.023 W/FlurryAgent(22138): onStartSession called with duplicate context, use a specific Activity or Service as context instead of using a global context

5.) Every time I press a button (menu/home/back/search), the following error gets logged twice:

12-17 02:24:59.883 E/imdg81 ( 2850): IsShutDownStarted()

I see 30 entries between 2:23 and 3:20 today.

I can supply my log files as well for the day, but I'm not sure what sensitive info might be available in them I haven't seen myself.

Anyone have any ideas?

**Update - Something else I'm going to try per forum (even though its a DroidX forum)... keep the GPS off via the notification button when I don't need it (maybe have Tasker toggle it for Maps / My Tracks / Camera /etc - http://androidforums.com/droid-x-su...428-battery-drain-due-software-bug-w-gps.html