Just for what it's worth, I've been having the batt drain problem in my HTC magic after updating to 2.2.1 (downloaded from google, couldn't wait for the OTA

).
For several days the battery would last forever but since I had to horrible weeks of being unable to keep the phone on the whole night (unplugged that is) in airplane mode or just G network.
After much reading one of the things I have pretty much clear is that it is a kernel problem, probably related to USB, since it seems to happen when charging via USB (which I suppose means when using the provided cable that allows you to share files with the pc and not a regular cable).
Another thing I have clear is it doesn't affect one phone or another but all of them.
This morning, after finding the phone dead again

, I let it charge to full with the wall charger, then turned it on, let it load, wait a while with the green light, turned it off and booted into recovery mode.
It seemed doing a battery wipe would help some people, but in stock ROM there's not such option, so I just cleaned the cache partition, which I suppose is kind of the swap partition and thought it wouldn't harm and possibly help since it seems installing 2.2.1 after a factory reset or a clean system doesn't have the draining problem.
Well, in the end, after booting the system again, the phone's been on since around 12 midday until now, 9pm and still at 100% (even made one or two calls and looked something up on google)

(yippiee!).
HOPE IT LASTS
