health: Catch all setCharging*() exceptions

Technically, this should be fixed device side, but random failure when
HAL side fails shouldn't crash the system either.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/8391
Change-Id: Iedd869cbd74e4a5535655c977b8ead74e8d5868d
2 files changed
tree: fa69b8d68c906556012571260262ca9b4865bd65
  1. lib/
  2. LICENSES/
  3. lineage/
  4. packages/
  5. sdk/
  6. Android.bp
  7. REUSE.toml