Revert "Shutdown when capacity is 0% and no charging or when battery is dead"
authorJean-Baptiste Queru <jbq@google.com>
Tue, 31 Aug 2010 19:29:16 +0000 (12:29 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Tue, 31 Aug 2010 19:32:55 +0000 (12:32 -0700)
commitd3e803ae28c369996f9acf6036ea99af5561949c
tree3f2aa4474ca70b5d6efe5630c5e852894a11dd0b
parent12dbee827353ecdb690d27c3f52e26afc71e0774
Revert "Shutdown when capacity is 0% and no charging or when battery is dead"

This reverts commit fd04143a47770256dabcfa4d8447127b3ec8b2bf.

This break most automated tests because with this change, if the
device is fully charged, it will simply turn off the screen, regardless
if USB is connected to hsot PC or not; so for our tests, most of them
are always connected to host PC, and fully charged 99% of the time,
as soon as the screen turns off, the front-end test Activity will be
suspended.

Change-Id: I1e6590611af43812f1bac223dd31570d1d90cfc5
services/java/com/android/server/BatteryService.java