yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] slyydrr:
Okay well that's good then. Aside from applications and frozen apps, the only other difference between our devices looks to be the firmware. How is your Android OS usage?

EDIT: FYI, I just confirmed that eclipse was not causing my devices to constantly return false. Closing eclipse and connecting through adb to dump the logcat still showed false.
[Galaxy S II Original Android Development] The_Revenge:
Android OS is on 13% for me.

its been connected to my pc for about 5 hours now, with me playing a bit around a bit a few times, but most of the time it was idle.

actually i get a pretty good battery life, since yesterday to today it was disconnected from charging for about 12hours, and it dropped from 100% to ~80% in that time. (i did use it in that 12hours time with low/average use and all the syncing from social hub, facebook, twitter, talk, gmail enabled)

actually, i have no frozen apps, im even using social hub with sync etc...
[Galaxy S II Original Android Development] kaassema:
I just flashed to the new firmware... And I'm almost certain that it fixed the drain issue! Used to get a fair battery usagegraph for several hours, then suddenly taking a more steep approach towards 0%, meanwhile seeing android—os taking up an ever increasing percentage of the powerconsumption, usually triggered by some general usage (turning wifi/gps on/off, etc).

Since the new firmware: Already for 7 hours pretty intensive usage (wifi, gps, apps), without the batterygraph taking the oh so familiar steep-creep line downwards! Just a steady line to 83% :)

...fingers still crossed...
[Galaxy S II Original Android Development] Nuhvok:
100% to 80% in 12 hours is how it's supposed to be. Good to have someone without the problem.

Did you install any apps from the market? Did you root your phone?
[Galaxy S II Original Android Development] The_Revenge:
yeah, my device is rooted, and i have installed dozens of apps from market :)

like 10 full pages of apps in touchwiz
[Galaxy S II Original Android Development] EleCtrOx666:
I'm on KE1 and have the same thing happening! But I got only like 10 of this messages and none incoming, and my Android OS is @ 7%.
[Galaxy S II Original Android Development] slyydrr:
I'm going to install a fresh copy of KE1 tonight, check the logs, and then do a fresh install of KE2 and also compare. Hopefully that should tell us something. Quick question - being that I'm new to Samsung devices, what is the proper way to do a full system wipe when installing a new firmware through Odin? The only option I can think of is to do a System restore before/after.
[Galaxy S II Original Android Development] Nuhvok:
Are you running the new firmware, or the old one?
[Galaxy S II Original Android Development] DocRambone:
I do not think the android os bug and dormancy is connected.

I can trigger high os drain. even without any simcard.
[Galaxy S II Original Android Development] BeelzeM:
FastDormancy is still part of the OS though. It might be active even without a simcard.

Anyone ran logcat without a sim?
[Galaxy S II Original Android Development] crypticc:
Hi. There's a fix in progress for this specific issue. Original o2 settings looked screwed. Any chance you could pull nwk_info.db and post it here.... Can then mock up fix for older phones

http://xdaforums.com/showthread.php?t=1086599

Thanks
[Galaxy S II Original Android Development] robstunner:
My biggest drainer according to android booster is MTP application.
[Galaxy S II Original Android Development] nilezon:
I agree.

I think I managed to fix the Android OS bug on my phone, but the Fast Dormancy is still running, without any drain.

Previously: battery lasted 10h tops, AndroidOS at 60%

Now: battery at 87% after 9h uptime and 30min talk time. AndroidOS at 17% (after Display and Phone).

How did I do it? I'm not sure.

However, it seems that some WIFI driver bug refuses the phone to fully suspend, making the suspend process go crazy and consume 70% CPU. No sleep and high CPU usage result in high battery drain.

I tried to solve this by freezing 27 apps with Titanium Backup and simply stop turning on WIFI (I know, it sucks).

I can't guarantee that this will work for everyone, but if you are desperate, have a try :)

This is the list of my currently frozen apps:

com.orange.authentification.simcard.permission
com.samsung.app.playreadyui
com.sec.android.app.lcdtest
CrashNotifier
The AP news app (ver 11.04.17.01) - don't know the English name for it
DRM-contents (don't know the exact English translation)
DRM-protected storage (don't know the exact English translation)
EncryptApp
Factory Test
Google Backup Transport
Helv Neue S
IMEITracker
Kies air
Kies via WiFi
MTP Application
SNS 1.5
SNSAccount*
SnsImageCache
Social Hub (two versions)
Theft tracking (ver. 1.0, don't know the exact English translation)
Wi-Fi sharing manager
Wi-Fi-sharing (don't know the exact English translation)
[Galaxy S II Original Android Development] slyydrr:
I would agree with this as my results back this idea up. I think the initial polling rate of FastDormancy seen in KE1 was likely hindering overall battery life. However, I'd also say it's not the sole cause of high Android OS usage, or even the biggest cause for that matter.

It's also worth noting that FastDormancy polling and consistently returning false does NOT prevent the phone from going to sleep. Looking at the battery usage and seeing the phone not awake for extremely long periods of time is proof of this. It's also worth noting that in general, CPU usage doesn't necessarily wake the phone up either, depending on the type of usage.

From what I can tell, system-related CPU usage doesn't translate to the phone being "awake", where as application-related usage does.
[Galaxy S II Original Android Development] crypticc:
Right and if you look at my other posts there's a known bug in android debug bridge fixed in 2.3.4 but required kernel patches are known for 2.3.3 kernels
[Galaxy S II Original Android Development] tamarian:
My logs are closest to the supporting network sample in the OP, except, there's no "after" line trace in the logs, just "before".

What could that mean? Is FD supported here?

Here's a sample:

D/FastDormancy( 2868): before ======= ENTER DORMANCY =======
D/FastDormancy( 2868): [FD] ON default: true
D/FastDormancy( 2868): Before mDormFlag: true in getCapaDormancy()
D/FastDormancy( 2868): before ======= ENTER DORMANCY =======
D/FastDormancy( 2868): [FD] ON default: true
D/FastDormancy( 2868): Before mDormFlag: true in getCapaDormancy()
D/FastDormancy( 2868): before ======= ENTER DORMANCY =======
D/FastDormancy( 2868): [FD] ON default: true
D/FastDormancy( 2868): Before mDormFlag: true in getCapaDormancy()
D/FastDormancy( 2868): before ======= ENTER DORMANCY =======
D/FastDormancy( 2868): [FD] ON default: true
D/FastDormancy( 2868): Before mDormFlag: true in getCapaDormancy()
D/FastDormancy( 2868): [FD] INTENT ACTION android.intent.action.SCREEN_OFF
D/FastDormancy( 2868): [FD] mIsScreenOn: false
D/FastDormancy( 2868): [FD] INTENT ACTION android.intent.action.SCREEN_ON
D/FastDormancy( 2868): [FD] mIsScreenOn: true
D/FastDormancy( 2868): before ======= ENTER DORMANCY =======
D/FastDormancy( 2868): [FD] ON default: true
D/FastDormancy( 2868): Before mDormFlag: true in getCapaDormancy()
D/FastDormancy( 2868): before ======= ENTER DORMANCY =======
D/FastDormancy( 2868): [FD] ON default: true
D/FastDormancy( 2868): Before mDormFlag: true in getCapaDormancy()
D/FastDormancy( 2868): before ======= ENTER DORMANCY =======
[Galaxy S II Original Android Development] dryspuri:
OKay just to give you update!!!

fastdormancy is again coming with phone trying to enter dormacy and returning false value again going on and on...............:mad::mad::mad:

this stops if i deactivate data and wifi :confused::confused:

again, with that thing going my phone was going crazy with dalvikm process 20265 trying to free memory even when screen is off, when I tried to uninstall programs to find out whats causing this......... there was wifi sharing on in my process list, I did forcestop it........... and that process has gone>>> sammy messed up again with beautiful hardware!!!

Really sammy how much difficult this could be, I am surgeon & still can figure out whats going on>>> why can't you!!!!

One more thing.

when I turn the wifi off but 3g data is on phone is going on with fastdormancy( screen turned off)

when I turn wifi on & phone goes to sleep there is no fastdormancy messages, and it appears quite!!

I am more confused than ever"""!!!! what the hell is going on??????????????
[Galaxy S II Original Android Development] fade1d:
FD and android os

I don't think they are related either (Android OS and Fast dorm).

I have two SGS2s here, both on AT&T, both set up the same way.

One of them has 20 hours on the battery, 10 mins of phone, and 3 hours of display and at 30%. Android OS at 26 minutes.

The other one has 10 hours on battery, 10 minutes of phone, 45 minutes of display and at 30%. Android OS at 26 minutes too.

Clearly something is going on.

Both are KE2, have been factory reseted, etc.

Same settings, but one gets like triple the battery life.
[Galaxy S II Original Android Development] dryspuri:
Just to give you further update!!

*#*#9900#*#* you enter screen to disable fastdormancy, i disabled it then also it continued with false value

i again entered the code, made it enabled!! and hey phone is giving true in fastdormacy, no more error messages continuing!!! will see battery life and will report back!!

i think i am close to this

:rolleyes:
[Galaxy S II Original Android Development] slyydrr:
This is very interesting, thanks for posting this. I am going to turn on FastDormancy from this menu to see what my results are as well.
[Galaxy S II Original Android Development] tamarian:
I tried this, disable FD, then enable, and my logs now show before and after FD traces, mostly "before" and occasionaly "after, while previously I only spot the "before" part.

Still not sure what this means, but hopefully someone will :)
[Galaxy S II Original Android Development] mouki_9:
Would the new update fix this? KE7 I believe
[Galaxy S II Original Android Development] dryspuri:
Thanks for confirming this, this is what my phone is showing, fingers crossed, please report battery performance!!!:)
[Galaxy S II Original Android Development] malavan:
where did you find KE7?
[Galaxy S II Original Android Development] simonk83:
Rolling out in kies now.
[Galaxy S II Original Android Development] mathieulh:
KE7 seems to fix the android OS battery drain for me.
[Galaxy S II Original Android Development] robstunner:
Great to hear, installing now!
[Galaxy S II Original Android Development] EmilianM:
in what country is this available?
[Galaxy S II Original Android Development] robstunner:
Beats me... USA with unlocked SGS2 = me. now im on KE7 with Supercurio Kernel with Root.
[Galaxy S II Original Android Development] robstunner:
Im calling foul ball here.

Total on time =14min.

Android OS = 36% at 1m 27s
[Galaxy S II Original Android Development] dryspuri:
here is link for KE7 from samsung firmawareshttp://www.samfirmware.com/apps/blog/show/7124400-new-firmwares-omnia-7-and-galaxy-s-ii-
[Galaxy S II Original Android Development] mathieulh:
Hum... I was at 18% before updating, now I am around 6%
[Galaxy S II Original Android Development] robstunner:
how many minutes of usage do you have vs battery time?
[Galaxy S II Original Android Development] mathieulh:
Over 6 hours now
[Galaxy S II Original Android Development] robstunner:
Minutes of os vs minutes of battery
[Galaxy S II Original Android Development] Andrmgic:
My phone has been idle for the last 15 hours.. battery is at 89% (I removed it from the charger at 99%)

Android OS has had 19 minutes 41 seconds of cpu time and has consumed 37% of the total power consumption. Cell standby is the next highest percentage at 27%..
[Galaxy S II Original Android Development] simonk83:
Anything running in the background? Google sync (mail, calendar etc), Twitter updates, weather updates?
[Galaxy S II Original Android Development] fluke2k:
I may be out on a limb here, but could the erratic behavour have something to do with the tracking service @ www.samsungdive.com?

Source: http://v2.samsungdive.com/help/faq.do

This security is embedded deep into the phone I guess..

They probably use GPS, WiFi and/or mobile data to fix the phones position. If you turn them all off, maybe it starts hammering the OS to get a fix? (either GPS/WiFi/3G)

I'll bet this service goes under the "Android OS" tab, since it's a Sammy service. (ontop of the android system)

From battery usage: (My hunch)

Android OS = Services/processes that are running ontop of the core android OS. (i.e. MDM (Mobile Device Management), TuchWiz features etc)

Android-system = Services/processes that are generic for core Android OS like God (Google) made them;-)

Could this be the explanation for the erratic behaviour of "Android OS" with the high percentage usage?
[Galaxy S II Original Android Development] Andrmgic:
Google mail and contact sync, probably weather updates.. but that's it, I think.

GPS was enabled.

Most samsung apps are frozen

I felt that it was awesome to only drop 10% in 15 hours.. what kind of life are you all getting?
[Galaxy S II Original Android Development] leedavis:
Sorry this is an SGS2 forum. We don't discuss iPhones here! ;)
[Galaxy S II Original Android Development] vitalij:
almost exactly the same what i got on ke7 firmware.
[Galaxy S II Original Android Development] waldzias:
Right, I've got 2 mobiles at the moment with same software configuration (2G networks only, brightness 25%, sync on, wifi - occassionally, K-9 Mail checking messages from 3 accounts every 15 minutes) running on different Android versions:

1. ZTE Blade (Orange San Fransisco) on Froyo (Swedish Spring RLS5)

Top consumers: Cell standby - 48%, Phone idle - 40%

Battery drop over night: 8% (8 hours)

2. Galaxy SII on stock Gingerbread (KE1) rooted (Samsung bloatware + Wifi sharing frozen)

Top consumers: Android OS - 72% (!!!WTF???), Cell standby - 11%, Display - 9%

Battery drop over night: 19% (8 hours)

Is it just me or is it really something wrong??
[Galaxy S II Original Android Development] knightnz:
If it was just you, then this thread wouldn't be 22 pages long already.
[Galaxy S II Original Android Development] waldzias:
Don't get me wrong, but i mean that most of the people here got Android os usage between 40 and 60% and it is already high. Mine is above 70% with two ALMOST identical configurations. Funny thing is that this percentage raise up from 49% in two days after freezing Samsung bloatware and setting up fast dormancy check to 15 seconds.

Sent from my GT-I9100
[Galaxy S II Original Android Development] robstunner:
Using my infuse for a little bit gives me 3% android os, then I switch to the sgs2 and I hit 50%. Sigh
[Galaxy S II Original Android Development] dryspuri:
I know, samsung needs to take cognizance and address this issue
[Galaxy S II Original Android Development] lgkahn:
Till I can get oem spare batteries and s wall charger.. I am back to using the Sgs as my daily driver.
[Galaxy S II Original Android Development] ke3pup:
some are reporting that KE7 improved Android OS battery drain for them!

For me its the opposite. Only after upgrading to KE7 I've noticed a massive spike on android OS usage. before (KE2) it used to sit on no more that %10, now if I'm lucky it sits on 31% , but been checking past two days and mostly it says %37 percent. I have frozen all samsung apps, nothing in background and only one gmail account sync.

My first experience with android coming from iphone. love the phone but could do without the hassle of worrying if my phone will make it past 6PM :(I hope Samsung is listening, but hopefully Devs from xda will come to save the battery soon. .
[Galaxy S II Original Android Development] chalid:
who cares about the percentage? take a look at the actual time active in minutes (when you tap it). up to 2 minutes per hour is okay and not a bug.

android os active for 23 minutes:
[Galaxy S II Original Android Development] robstunner:
50 minutes battery time. 4 minutes os. So far
[Galaxy S II Original Android Development] jacobnorth:
I had a really strange thing a few days ago (see attached screenshots). My battery stats showed a sudden drop in battery levels of 30%!! As you can see, my battery lasts long enough, so I don't think it's the usual bug, but this is still strange.

A probable cause:

My phone freezes on rare occasions. The screen stays on, but it doesn't respond and neither do any of the dedicated buttons. The only solution is to pull the battery and reboot. I had one of these crashes at the same day, but I don't know for sure if it was precisely at the same time.

Firmware version: XWKE2.

Screenshots of the battery stats:
[Galaxy S II Original Android Development] lgkahn:
Bs its ok my Sgs I hd 10 sec in suspend over last 2 hrs and 56 secs over 8 hrs.
[Galaxy S II Original Android Development] Thijs96:
Source: Eldar Murtazin (Twitter)
[Galaxy S II Original Android Development] nikzDHD:
Your not the only one!

Happened on KE7 weird not sure what caused it though!
[Galaxy S II Original Android Development] winwiz:
did you flash a new rom or kernel? i get these drops when i re-flash
[Galaxy S II Original Android Development] chalid:
so what? your SGS1 isn't an SGS2. who knows what samsung changed in the kernel and the system itself. we simply don't know what the "Android OS"-process includes.

completely normal batterylife for a phone this powerful and a screen of that size:
[Galaxy S II Original Android Development] aussiebum:
That's a weird drop! I've never seen anything like that on Villian ROM (KE2-based).

Looks like it might be your battery charge levels reporting wrong in Android and need resetting? Worth turning off your phone completely, charging until full, then turning phone on to fix that.
[Galaxy S II Original Android Development] lgkahn:
Yes we do I know.exactly that is why I run systempanel it tells you what exactly is running under system and how long for each. I can tell you suspend has not changed that is a STD android process and it should not be taking that much CPU time.
[Galaxy S II Original Android Development] simonk83:
Yep. Hopefully we get 2.3.4 sooner rather than later.
[Galaxy S II Original Android Development] CandyAndy:
I got something similar. Not so huge drop thou.

I noticed that some of the apps/functions didn't work properly and eventually my phone made a quick reboot byitself. I am assuming that the drop in the charging happened during that time.
[Galaxy S II Original Android Development] mouki_9:
yesterday i was all day in belgium, so had data disabled for roaming. In 9 hours only dropped 1-2%! Okay, didn't touch the phone much because of work, but impressive! Even received a call of a few minutes.

I'm on KE7 latest firmware.

Tomorrow i'm in belgium again and i will try to make a screenshot at the end of the day if i don't forget :P

When i got back in holland and data was on again, android OS began consuming again......

I believe it has something to do with mobile data? Applications that use internet are still running in background, just no data communication.
[Galaxy S II Original Android Development] xos84292:
Do you wipe the battery file?
[Galaxy S II Original Android Development] mouki_9:
Battery on 94 % after soo many hours in belgium, roaming, so no data...
[Galaxy S II Original Android Development] lgkahn:
read this for a good explanation of the bug and why samsung needs to fix it.

the galaxy s i has the bug in gb also... that is why i am still running froyo so i can get 3 days out of my batteries

http://xdaforums.com/showpost.php?p=13247149&postcount=57
[Galaxy S II Original Android Development] slyydrr:
Yep, this is it. Very good explanation. Updating the first post. Thank you sir :)
[Galaxy S II Original Android Development] aurelm:
I don't buy google's response. Since the bug is present in all gingerbread phones sooner or later and NOT in froyo there must be something that google can address, that can revert back to froyo state.

Anyway, the bug is really really annoying. There's nothing I can do to get rid of it. The wi-fi is set to never, I keep data off all the times, I removed all bloatware, I uninstalled software update, even did the fast dormancy fix wich is unrelated anyway.

Come on, there is nothing that can be done about it ? It's draining the the battery and joy of using my sgs 2 with constantly worrying about the android os and having to restart from time to time. Which only helps for very little.
[Galaxy S II Original Android Development] lgkahn:
not necessrily google only puts out the o/s.. the low level drivers are written be each phone manuf. for their paticular phones hardware. .and i know for a fact that many of they WERE rewritten for GB after froyo.. so if as they say the problem is in one of these drivers.. than the phone manuf. has to fix. it..

But you may have a point why all of a sudden in GB is the issue cropping up on all different phones when it didnt happen in froyo. All of a sudden there a rash of bad drivers? I doubt it.. More likely a few cases google researched it and that was the issue, but their may also be some more underlying issue why it is only in gbif they bothered to keep researching the issue.
[Galaxy S II Original Android Development] manuvaidya:
i am dying to get android 2.3.4 on my SGS2.... any idea when is it coming ???

nexus has already got it, SGS too tasted it through nightly builds from cyanogen & htc device also has got it.... but why not SGS2 ???

whats wrong with it ??? this is ridiculous.... come on samsung... release 2.3.4 for SGS2 & have a glorified victory in terms of successful marketing.... the issue is growing in an alarming way, correct it befor eit hits ur sales pls....
[Galaxy S II Original Android Development] robstunner:
After a week of not messing with anything for a week my battery is doing great. I can go about 16-18 hours with moderate usage including web browsing and a little Pandora. Currently android os is at 14%. Ke7 with some frozen apps.
[Galaxy S II Original Android Development] mynameisjon:
using litening rom, and using *#*#9900#*#* to disable FD, then going back in to re-enable has led to my logs showing that my phone can finally enter FD without a "false" entry. All FD related entries show "true".

will report back on battery life.
[Galaxy S II Original Android Development] NoOneCanHelpMe:
i did the same as you and I can confirm that the FastDormancy bug is gone I get no errors now in catlog and my phone has been with 3G ON for the past hour and battery hasnt dropped at all!!! I was shocked :D

ps: before I did this fix, the moment I turn on 3G the battery was going down with 1% every 5 min or less :X
[Galaxy S II Original Android Development] mynameisjon:
1 Day, 4 hours and 35% remaining.
[Galaxy S II Original Android Development] aurelm:
Just when I tought nothing wrong went anymore, it happened, but much much worse.

Android OS bug drained in 40minutes my battery from 45% to 1%

I turned off the phone and put it on charger. When It was 100% I did not remove it from the charger but started it.

In 1 hour the battery was at 70%, pluged in and it was HOT AS HELL, to the point where it was hard to be kept in the hand.

Where is that damn update ?
[Galaxy S II Original Android Development] rheza02:
What happen if i just completely disable FastDormancy ?, do you guys think it will be bad for the battery ?
[Galaxy S II Original Android Development] dryspuri:
And how do u propose to disable FD?

I will also try to follow u?
[Galaxy S II Original Android Development] rheza02:
type this on dialer. *#*#9900#*#*, choose disable FD.
[Galaxy S II Original Android Development] (•.•):
anyone tryd to disable the "wifi sharing" apk

it seems that it drains alot of battary..

look at this.

Not confirmed yet by anyone else, but testing.