commit | 8e4d982d52db6a8ffcd6e3c73ae1eb98cc154d32 | [log] [tgz] |
---|---|---|
author | Kazuhiro Inaba <kinaba@google.com> | Wed Jun 12 13:46:08 2019 +0900 |
committer | Kazuhiro Inaba <kinaba@google.com> | Mon Mar 16 12:50:42 2020 +0900 |
tree | dfd16b48453faedc30a2957e21b0fe0156548297 | |
parent | 01c8eccca3f7c7ed9f08fdc7bb641ab40ac833d1 [diff] |
healthd: Don't take device-scoped battery as the main system battery. Some devices expose the battery state of stylus etc in sysfs, in addition to the whole system's main battery. Android only recognizes the first battery enumerated here. We need to filter out such HID-specific battery to let Android correctly monitor the main battery status. Bug: 136111013 Test: CtsBatterySavingTestCases on arcada Change-Id: I4cbf6e3bf883fb3d107bedd2849d8ad525538629