[HTC Sensation] bladez:
So, I've had this problem on 2 ROM's so far, [ROM] CM10.1-RC2 AOSP 4.2.2 Jellybean [KANG] and [ROM] Elelinux AOKP ROM THREAD 2013-05-14

Basically, my battery does not last for more than 7 or 8 hours from full charge and I can't figure out what's the problem. Battery stats just show "Android OS" as the culprit, and here's a screenshot

I know it still can be an app's fault, so I did the "dumpsys alarm > AlarmDump.txt" but I can't seem to make heads or tails with the results. Anyone willing to help?

Current Alarm Manager state:

Realtime wakeup (now=2013-05-19 12:07:13):
RTC_WAKEUP #16: Alarm{4170d738 type 0 com.google.android.partnersetup}
type=0 when=+6d6h1m49s852ms repeatInterval=0 count=0
operation=PendingIntent{4170d728: PendingIntentRecord{416fdeb0 com.google.android.partnersetup startService}}
RTC_WAKEUP #15: Alarm{41944a20 type 0 com.google.android.gsf}
type=0 when=+5d18h18m45s749ms repeatInterval=551309000 count=0
operation=PendingIntent{41965f78: PendingIntentRecord{41a54290 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #14: Alarm{41c9a560 type 0 com.google.android.gsf}
type=0 when=+5d18h18m45s749ms repeatInterval=551309000 count=0
operation=PendingIntent{41c902f8: PendingIntentRecord{41b17308 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #13: Alarm{41cb7dc8 type 0 com.google.android.gsf}
type=0 when=+5d18h18m45s749ms repeatInterval=551309000 count=0
operation=PendingIntent{41cb7db8: PendingIntentRecord{41de4238 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #12: Alarm{41a637c0 type 0 com.google.android.gsf}
type=0 when=+5d18h18m45s749ms repeatInterval=551309000 count=0
operation=PendingIntent{41866978: PendingIntentRecord{41ae4060 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #11: Alarm{40db4590 type 0 com.google.android.gsf}
type=0 when=+5d18h18m45s749ms repeatInterval=551309000 count=0
operation=PendingIntent{41255a88: PendingIntentRecord{41dba5f0 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #10: Alarm{41c99908 type 0 com.android.vending}
type=0 when=+23h50m38s978ms repeatInterval=0 count=0
operation=PendingIntent{42147800: PendingIntentRecord{41d2ebb8 com.android.vending startService}}
RTC_WAKEUP #9: Alarm{4161d4f0 type 0 com.google.android.gms}
type=0 when=+14h8m48s756ms repeatInterval=86400000 count=1
operation=PendingIntent{415d3d38: PendingIntentRecord{4158d400 com.google.android.gms startService}}
RTC_WAKEUP #8: Alarm{4175fa98 type 0 com.google.android.gms}
type=0 when=+10h36m48s922ms repeatInterval=0 count=0
operation=PendingIntent{4175ac68: PendingIntentRecord{414bb758 com.google.android.gms broadcastIntent}}
RTC_WAKEUP #7: Alarm{42079d08 type 0 android}
type=0 when=+10h30m51s314ms repeatInterval=0 count=0
operation=PendingIntent{41ca6828: PendingIntentRecord{4159b360 android broadcastIntent}}
RTC_WAKEUP #6: Alarm{41aefd08 type 0 com.cyanogenmod.lockclock}
type=0 when=+7h52m46s678ms repeatInterval=0 count=0
operation=PendingIntent{4166c848: PendingIntentRecord{41890438 com.cyanogenmod.lockclock startService}}
RTC_WAKEUP #5: Alarm{41721fd8 type 0 com.android.providers.calendar}
type=0 when=+4h3m0s933ms repeatInterval=0 count=0
operation=PendingIntent{411d1348: PendingIntentRecord{41721e20 com.android.providers.calendar broadcastIntent}}
RTC_WAKEUP #4: Alarm{4208bda8 type 0 com.cyanogenmod.lockclock}
type=0 when=+3h41m41s738ms repeatInterval=0 count=0
operation=PendingIntent{40ef88e8: PendingIntentRecord{420edaf8 com.cyanogenmod.lockclock startService}}
RTC_WAKEUP #3: Alarm{40d6b3c0 type 0 com.google.android.apps.genie.geniewidget}
type=0 when=+2h16m4s256ms repeatInterval=21600000 count=1
operation=PendingIntent{40d571b0: PendingIntentRecord{40ee7268 com.google.android.apps.genie.geniewidget broadcastIntent}}
RTC_WAKEUP #2: Alarm{41b6a860 type 0 android}
type=0 when=+45m40s624ms repeatInterval=3603896 count=0
operation=PendingIntent{40e13f30: PendingIntentRecord{41142398 android broadcastIntent}}
RTC_WAKEUP #1: Alarm{413b6b40 type 0 com.google.android.gsf}
type=0 when=+12m59s199ms repeatInterval=1800000 count=0
operation=PendingIntent{41726400: PendingIntentRecord{40da6b18 com.google.android.gsf broadcastIntent}}
RTC_WAKEUP #0: Alarm{41647338 type 0 com.nuance.swype.beta}
type=0 when=+9s441ms repeatInterval=0 count=0
operation=PendingIntent{41e55450: PendingIntentRecord{41bf28d0 com.nuance.swype.beta startService}}
RTC #8: Alarm{41fc5fd8 type 1 com.nuance.swype.beta}
type=1 when=+330d13h38m55s678ms repeatInterval=0 count=0
operation=PendingIntent{4174ec08: PendingIntentRecord{41fba8d0 com.nuance.swype.beta startService}}
RTC #7: Alarm{417c9d80 type 1 com.nuance.swype.beta}
type=1 when=+5d14h34m25s985ms repeatInterval=0 count=0
operation=PendingIntent{416ffb48: PendingIntentRecord{41af79c8 com.nuance.swype.beta startService}}
RTC #6: Alarm{41e42990 type 1 com.nuance.swype.beta}
type=1 when=+3d23h41m48s503ms repeatInterval=0 count=0
operation=PendingIntent{41db16f8: PendingIntentRecord{41e428f0 com.nuance.swype.beta startService}}
RTC #5: Alarm{41a34488 type 1 android}
type=1 when=+23h52m46s678ms repeatInterval=0 count=0
operation=PendingIntent{4106bcd0: PendingIntentRecord{4114eb78 android broadcastIntent}}
RTC #4: Alarm{416ec9b0 type 1 com.facebook.katana}
type=1 when=+23h35m36s610ms repeatInterval=0 count=0
operation=PendingIntent{414bcb40: PendingIntentRecord{4160d038 com.facebook.katana broadcastIntent}}
RTC #3: Alarm{422988d8 type 1 com.android.calendar}
type=1 when=+11h52m46s678ms repeatInterval=0 count=0
operation=PendingIntent{42259da8: PendingIntentRecord{413a6960 com.android.calendar broadcastIntent}}
RTC #2: Alarm{4219cf08 type 1 com.nuance.swype.beta}
type=1 when=+2h46m57s602ms repeatInterval=0 count=0
operation=PendingIntent{42025af8: PendingIntentRecord{42001c80 com.nuance.swype.beta startService}}
RTC #1: Alarm{41e36250 type 1 com.nuance.swype.beta}
type=1 when=+2h46m57s89ms repeatInterval=0 count=0
operation=PendingIntent{41ad7818: PendingIntentRecord{41df3020 com.nuance.swype.beta startService}}
RTC #0: Alarm{41882de8 type 1 com.facebook.katana}
type=1 when=+2h35m38s49ms repeatInterval=0 count=0
operation=PendingIntent{4177ee88: PendingIntentRecord{4187da20 com.facebook.katana startService}}

Elapsed realtime wakeup (now=+17h58m54s829ms):
ELAPSED_WAKEUP #7: Alarm{40e6dfa0 type 2 com.google.android.gms}
type=2 when=+999d23h59m59s999ms repeatInterval=0 count=0
operation=PendingIntent{40f2b130: PendingIntentRecord{41281c58 com.google.android.gms broadcastIntent}}
ELAPSED_WAKEUP #6: Alarm{412b51e8 type 2 com.google.android.gms}
type=2 when=+20d9h38m25s657ms repeatInterval=0 count=0
operation=PendingIntent{4123c2e0: PendingIntentRecord{410c11f0 com.google.android.gms startService}}
ELAPSED_WAKEUP #5: Alarm{41d71fc0 type 2 android}
type=2 when=+11h29m13s104ms repeatInterval=0 count=0
operation=PendingIntent{40df0fa8: PendingIntentRecord{41a4fe20 android broadcastIntent}}
ELAPSED_WAKEUP #4: Alarm{423e3600 type 2 com.google.android.location}
type=2 when=+4h19m7s993ms repeatInterval=0 count=0
operation=PendingIntent{4227a980: PendingIntentRecord{4161f9e0 com.google.android.location broadcastIntent}}
ELAPSED_WAKEUP #3: Alarm{420eb848 type 2 com.google.android.gms}
type=2 when=+2h36m49s423ms repeatInterval=0 count=0
operation=PendingIntent{41f6bdc0: PendingIntentRecord{415ca530 com.google.android.gms broadcastIntent}}
ELAPSED_WAKEUP #2: Alarm{421f8fe0 type 2 android}
type=2 when=+1h41m38s682ms repeatInterval=0 count=0
operation=PendingIntent{40ff7b40: PendingIntentRecord{40e81588 android broadcastIntent}}
ELAPSED_WAKEUP #1: Alarm{411738a8 type 2 com.google.android.location}
type=2 when=+35m17s887ms repeatInterval=0 count=0
operation=PendingIntent{41215098: PendingIntentRecord{4161f760 com.google.android.location broadcastIntent}}
ELAPSED_WAKEUP #0: Alarm{41e00f48 type 2 com.google.android.gsf}
type=2 when=+13m7s55ms repeatInterval=0 count=0
operation=PendingIntent{418bb828: PendingIntentRecord{42205480 com.google.android.gsf broadcastIntent}}
ELAPSED #9: Alarm{4220d5f8 type 3 com.facebook.katana}
type=3 when=+1d23h35m38s549ms repeatInterval=0 count=0
operation=PendingIntent{42201d48: PendingIntentRecord{4220d558 com.facebook.katana startService}}
ELAPSED #8: Alarm{41f859d0 type 3 android}
type=3 when=+23h58m4s527ms repeatInterval=0 count=0
operation=PendingIntent{410406a8: PendingIntentRecord{411bb558 android broadcastIntent}}
ELAPSED #7: Alarm{41934958 type 3 com.facebook.katana}
type=3 when=+23h46m5s171ms repeatInterval=86400000 count=0
operation=PendingIntent{41af1b68: PendingIntentRecord{4191ed78 com.facebook.katana startService}}
ELAPSED #6: Alarm{412c6e88 type 3 com.android.phone}
type=3 when=+6h16m5s171ms repeatInterval=28800000 count=1
operation=PendingIntent{40f368e0: PendingIntentRecord{412c6d98 com.android.phone broadcastIntent}}
ELAPSED #5: Alarm{41f7a050 type 3 com.facebook.katana}
type=3 when=+2h46m5s171ms repeatInterval=10800000 count=1
operation=PendingIntent{41f9dbf8: PendingIntentRecord{41f9dbc0 com.facebook.katana startService}}
ELAPSED #4: Alarm{4189c090 type 3 com.facebook.katana}
type=3 when=+37m52s467ms repeatInterval=0 count=0
operation=PendingIntent{418fd760: PendingIntentRecord{418bda10 com.facebook.katana startService}}
ELAPSED #3: Alarm{412e93f8 type 3 android}
type=3 when=+16m5s171ms repeatInterval=1800000 count=1
operation=PendingIntent{41178120: PendingIntentRecord{412a71c8 android broadcastIntent}}
ELAPSED #2: Alarm{41ca6dc0 type 3 android}
type=3 when=+3m7s606ms repeatInterval=0 count=0
operation=PendingIntent{41328fc0: PendingIntentRecord{41328f20 android broadcastIntent}}
ELAPSED #1: Alarm{425febf0 type 3 com.mhuang.overclocking}
type=3 when=+2m23s934ms repeatInterval=0 count=0
operation=PendingIntent{40fa9d08: PendingIntentRecord{425fe4a0 com.mhuang.overclocking broadcastIntent}}
ELAPSED #0: Alarm{419e8730 type 3 android}
type=3 when=+46s632ms repeatInterval=0 count=0
operation=PendingIntent{41138fc8: PendingIntentRecord{41140e28 android broadcastIntent}}

Broadcast ref count: 0

Top Alarms:
+3m40s38ms running, 0 wakeups, 1079 alarms: android
act=android.intent.action.TIME_TICK
+12s305ms running, 1 wakeups, 1 alarms: com.android.providers.calendar
act=com.android.providers.calendar.intent.CalendarProvider2
+11s13ms running, 0 wakeups, 200 alarms: com.mhuang.overclocking
act=setcpu.intent.action.updatewidget cmp={com.mhuang.overclocking/com.mhuang.overclocking.appwidget.Widget}
+3s441ms running, 0 wakeups, 36 alarms: android
act=com.android.server.action.NETWORK_STATS_POLL
+1s602ms running, 0 wakeups, 107 alarms: android
act=com.android.server.ThrottleManager.action.POLL
+1s385ms running, 0 wakeups, 2 alarms: com.android.calendar
act=com.android.calendar.APPWIDGET_SCHEDULED_UPDATE
+1s265ms running, 36 wakeups, 36 alarms: com.google.android.gsf
cmp={com.google.android.gsf/com.google.android.gsf.checkin.EventLogService$Receiver}
+914ms running, 1 wakeups, 1 alarms: com.mobitobi.android.gentlealarm
act=com.mobitobi.android.gentlealarm.ALARM_INIT
+652ms running, 4 wakeups, 4 alarms: com.google.android.gsf
act=com.google.android.intent.action.GTALK_RECONNECT
+643ms running, 3 wakeups, 3 alarms: com.google.android.apps.genie.geniewidget
cmp={com.google.android.apps.genie.geniewidget/com.google.android.apps.genie.geniewidget.miniwidget.UpdateReceiver}

Alarm Stats:
com.google.android.location +477ms running, 17 wakeups:
+453ms 15 wakes 15 alarms: act=com.google.android.location.nlp.ALARM_WAKEUP_LOCATOR
+24ms 2 wakes 2 alarms: act=com.google.android.location.nlp.ALARM_WAKEUP_CACHE_UPDATER
com.android.calendar +1s385ms running, 0 wakeups:
+1s385ms 0 wakes 2 alarms: act=com.android.calendar.APPWIDGET_SCHEDULED_UPDATE
android +3m45s603ms running, 29 wakeups:
+3m40s38ms 0 wakes 1079 alarms: act=android.intent.action.TIME_TICK
+3s441ms 0 wakes 36 alarms: act=com.android.server.action.NETWORK_STATS_POLL
+1s602ms 0 wakes 107 alarms: act=com.android.server.ThrottleManager.action.POLL
+540ms 0 wakes 1 alarms: act=android.intent.action.DATE_CHANGED
+318ms 17 wakes 17 alarms: act=com.android.server.WifiManager.action.DELAYED_DRIVER_STOP
+78ms 7 wakes 7 alarms: act=android.app.backup.intent.RUN
+45ms 0 wakes 3 alarms: act=com.android.server.NetworkTimeUpdateService.action.POLL
+40ms 3 wakes 3 alarms: act=android.content.syncmanager.SYNC_ALARM
+17ms 2 wakes 2 alarms: act=com.android.server.action.UPDATE_TWILIGHT_STATE
com.oasisfeng.greenify +30ms running, 1 wakeups:
+30ms 1 wakes 1 alarms: act=com.oasisfeng.greenify.CLEAN_NOW
com.cyanogenmod.lockclock +219ms running, 7 wakeups:
+161ms 3 wakes 3 alarms: act=com.cyanogenmod.lockclock.action.REFRESH_CALENDAR cmp={com.cyanogenmod.lockclock/com.cyanogenmod.lockclock.ClockWidgetService}
+58ms 4 wakes 4 alarms: cmp={com.cyanogenmod.lockclock/com.cyanogenmod.lockclock.weather.WeatherUpdateService}
com.nuance.swype.beta +169ms running, 2 wakeups:
+169ms 2 wakes 14 alarms: cmp={com.nuance.swype.beta/com.nuance.swype.connect.ConnectClient}
com.android.phone +126ms running, 0 wakeups:
+126ms 0 wakes 2 alarms: act=com.android.phone.UPDATE_CALLER_INFO_CACHE cmp={com.android.phone/com.android.phone.CallerInfoCacheUpdateReceiver}
com.google.android.apps.genie.geniewidget +643ms running, 3 wakeups:
+643ms 3 wakes 3 alarms: cmp={com.google.android.apps.genie.geniewidget/com.google.android.apps.genie.geniewidget.miniwidget.UpdateReceiver}
com.google.android.gsf +2s221ms running, 48 wakeups:
+1s265ms 36 wakes 36 alarms: cmp={com.google.android.gsf/com.google.android.gsf.checkin.EventLogService$Receiver}
+652ms 4 wakes 4 alarms: act=com.google.android.intent.action.GTALK_RECONNECT
+304ms 8 wakes 8 alarms: act=com.google.android.intent.action.SEND_IDLE
com.mhuang.overclocking +11s13ms running, 0 wakeups:
+11s13ms 0 wakes 200 alarms: act=setcpu.intent.action.updatewidget cmp={com.mhuang.overclocking/com.mhuang.overclocking.appwidget.Widget}
com.mobitobi.android.gentlealarm +914ms running, 1 wakeups:
+914ms 1 wakes 1 alarms: act=com.mobitobi.android.gentlealarm.ALARM_INIT
com.facebook.katana +366ms running, 0 wakeups:
+205ms 0 wakes 6 alarms: act=com.facebook.orca.database.ACTION_ALARM cmp={com.facebook.katana/com.facebook.contacts.database.AddressBookPeriodicRunner$LocalBroadcastReceiver}
+38ms 0 wakes 1 alarms: act=com.facebook.katana.service.5 cmp={com.facebook.katana/com.facebook.katana.service.FacebookService}
+33ms 0 wakes 1 alarms: act=com.facebook.katana.service.4 cmp={com.facebook.katana/com.facebook.katana.service.FacebookService}
+26ms 0 wakes 1 alarms: act=com.facebook.katana.service.11 cmp={com.facebook.katana/com.facebook.katana.service.FacebookService}
+25ms 0 wakes 1 alarms: act=com.facebook.katana.service.15 cmp={com.facebook.katana/com.facebook.katana.service.FacebookService}
+21ms 0 wakes 1 alarms: cmp={com.facebook.katana/com.facebook.orca.sms.MmsSmsLogExternalMessagesLogic$MmsSmsLogExternalMessagesService}
+18ms 0 wakes 1 alarms: act=com.facebook.katana.service.3 cmp={com.facebook.katana/com.facebook.katana.service.FacebookService}
com.android.vending +306ms running, 12 wakeups:
+207ms 7 wakes 7 alarms: cmp={com.android.vending/com.google.android.finsky.services.ContentSyncService}
+99ms 5 wakes 5 alarms: cmp={com.android.vending/com.google.android.finsky.services.DailyHygiene}
com.android.providers.calendar +12s305ms running, 1 wakeups:
+12s305ms 1 wakes 1 alarms: act=com.android.providers.calendar.intent.CalendarProvider2
com.google.android.gms +847ms running, 8 wakeups:
+602ms 4 wakes 4 alarms: act=com.google.android.gms.recovery.WAKEUP
+174ms 2 wakes 2 alarms: act=com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVE_COLLECTOR
+46ms 1 wakes 1 alarms: act=com.google.android.gms.icing.INDEX_RECURRING_MAINTENANCE cmp={com.google.android.gms/com.google.android.gms.icing.impl.IndexService}
+25ms 1 wakes 1 alarms: act=com.google.android.gms.nlp.ALARM_WAKEUP_CACHE_UPDATER

This is what BetterBatteryStats are showing

If I can catch it before it turns off from discharging, the "proximity" can show up to 99% of the time it has spent on battery (like, phone discharged from 100% to 0% in 8 hours, proximity will be spend 7hours and 50something minutes woke up.