health: detect status file path

Un-hardcode the path to status file by walking /sys/class/power_supply
directories and retaining the first status file found.

Code based on SoMainline lights HAL.

Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
1 file changed
tree: 817a0a5841db1e2a5c4b4945470b7a238a6de551
  1. axolotl/
  2. beryllium/
  3. build/
  4. enchilada/
  5. shared/
  6. Android.bp
  7. Android.mk
  8. AndroidProducts.mk
  9. README.md
README.md

device/generic/sdm845 (AOSP device config for SDM845 devices)

This device repo aims to support booting AOSP on SDM845 devices supported by the mainline Linux kernel.

For more information, please check out the wiki.