[G2 and Desire Z Android Development] J-Hop2o6:
Did u ever find the cmd code to check ADJ grouping & minfree? Oh and I checked what was causing my phone to stay awake via AlarmDump:

Alarm Stats:
com.google.android.location
30541ms running, 1 wakeups
1 alarms: act=com.google.android.location.ALARM_WAKEUP_LOCATOR flg=0x14
com.s0up.goomanager
20248ms running, 0 wakeups
1 alarms: flg=0x14
android
208061ms running, 32 wakeups
6 alarms: act=com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD flg=0x14
599 alarms: act=android.intent.action.TIME_TICK flg=0x40000014
20 alarms: act=com.android.server.action.NETWORK_STATS_POLL flg=0x14
58 alarms: act=com.android.server.ThrottleManager.action.POLL flg=0x14
9 alarms: act=android.app.backup.intent.RUN flg=0x40000014
17 alarms: act=android.content.syncmanager.SYNC_ALARM flg=0x14
com.levelup.beautifulwidgets
466220ms running, 8 wakeups
8 alarms: act=com.levelup.beautifulwidgets.ACTION_UPDATEWEATHER flg=0x14
2392 alarms: act=com.levelup.beautifulwidgets.ACTION_UPDATECLOCK flg=0x14
ccc71.bmw
38231ms running, 599 wakeups
599 alarms: flg=0x14
com.google.android.apps.maps
549ms running, 10 wakeups
9 alarms: flg=0x4 cmp=com.google.android.apps.maps/com.google.googlenav.prefetch.android.PrefetcherService
1 alarms: act=com.google.android.location.ALARM_WAKEUP_ACTIVE_COLLECTOR flg=0x14
com.android.phone
9169ms running, 138 wakeups
138 alarms: act=com.android.internal.telephony.gprs-data-stall flg=0x14
com.google.android.gsf
4062ms running, 63 wakeups
20 alarms: flg=0x14
31 alarms: act=com.google.android.intent.action.MCS_HEARTBEAT flg=0x14
12 alarms: act=com.google.android.intent.action.SEND_IDLE flg=0x14
com.facebook.katana
418ms running, 20 wakeups
1 alarms: act=com.facebook.katana.service.19 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
3 alarms: flg=0x14 cmp=com.facebook.katana/com.facebook.orca.analytics.AnalyticsPeriodicReporter$ReporterBroadcastReceiver
3 alarms: act=com.facebook.katana.service.12 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.24 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.14 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.22 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.13 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.16 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.15 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.18 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.17 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
2 alarms: act=com.facebook.katana.service.10 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
2 alarms: act=com.facebook.katana.service.5 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
2 alarms: act=com.facebook.katana.service.4 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.20 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
1 alarms: act=com.facebook.katana.service.3 flg=0x4 cmp=com.facebook.katana/.service.FacebookService
com.feelingtouch.dragon.hd
121ms running, 1 wakeups
1 alarms: act=com.feelingtouch.bannerad.ACTION_PUSHAD flg=0x4
com.android.vending
2029ms running, 5 wakeups
1 alarms: flg=0x4 cmp=com.android.vending/com.google.android.finsky.services.DailyHygiene
4 alarms: flg=0x4 cmp=com.android.vending/com.google.android.finsky.services.ContentSyncService
com.asksven.betterbatterystats_xdaedition
7187ms running, 0 wakeups
13 alarms: act=BBS_WIDGET_UPDATE flg=0x14
com.levelup.touiteur
7217ms running, 10 wakeups
10 alarms: flg=0x14
39 alarms: act=com.levelup.touiteur.intent.action.STREAM_ALIVE flg=0x14
com.android.providers.calendar
18109ms running, 7 wakeups
7 alarms: act=com.android.providers.calendar.intent.CalendarProvider2 flg=0x14
com.google.android.gm
274ms running, 0 wakeups
4 alarms: act=com.google.android.gm.intent.provider.INDEX_MESSAGE_CONTENT dat=content://gmail-ls/xxxxxxxxxx@xxxxx.com/indexer flg=0x4 cmp=com.google.android.gm/.provider.MailIndexerService
com.swype.android.inputmethod
151ms running, 0 wakeups
2 alarms: flg=0x4 cmp=com.swype.android.inputmethod/com.swype.android.connect.ConnectClient

Above is 7 hours of unplugged time and mostly screen off (since I went to sleep). Woke back up and checked usage and noticed it was awake most of the time in short intervals. From what I see its mainly Beatiful Widgets (mainly ACTION_UPDATECLOCK - 2392alarms) - 466sec., and Android (mainly TIME_TICK - 599alarms) - 208sec.. What can u tell me about this? And it dropped ~ 5% while I was sleep.