commit | 258c8af1e5d966e021319a7475e11a6bfba665fc | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Feb 13 16:00:43 2019 -0800 |
committer | Yifan Hong <elsk@google.com> | Wed Mar 27 15:35:39 2019 -0700 |
tree | 66b6a419e15041ac07dcea9c751a610199681fe3 | |
parent | 96cf453355a774b9dd35e5746ce6cf0c4cd6e0a4 [diff] |
Shutdown device gracefully when net discharging Instead of checking the presence of power supplies, check battery status to determine whether it should shutdown. In detail, shutdown if battery level == 0 && status != charging Change-Id: Ie3d93d305e40f2f45d60538e7831f00be0380544 Fixes: 115715604 Test: boots