android_system_core/healthd
Abhijeet Dharmapurikar 7cd8f3162a healthd: Reinitialize mChargerNames for every battery update
Booting up the device without usb, the kernel sets the usb power supply
type as UNKNOWN. The type of usb power supply changes at run-time as
various chargers are plugged in/out. However, healthd initilizes the
charger list only at bootup. Change it such that it checks for charger
type changes with every battery or usb uevent.

While at it, the kernel may have a power supply type which is not known
to healthd. This is perfectly fine. Update healthd to not print a
warning.

Change-Id: I2ec9f9a420ca61814d43c316b418ce94de3691bc

Former-commit-id: 08a453898adf2f5bfb594396d6d915d68ebb67b8
Change-Id: I7d5675b4e9a8a23228b0255071dd6965cdd43d6d
2023-10-19 12:54:36 +00:00
..
api Update sysprop_library API txt 2020-10-15 04:04:15 +00:00
images
include/healthd BatteryMonitor: support battery health INCONSISTENT from health status 2023-05-29 18:30:58 +08:00
include_charger/charger charger: fix secondary display not turning off after first display was off 2022-09-20 02:53:16 +00:00
testdata [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
Android.bp BatteryMonitor: fix build error with health hal v2 updraged 2023-01-21 15:28:23 +08:00
AnimationParser.cpp Fix AnimationParser remove_prefix test 2020-08-05 20:00:09 -07:00
AnimationParser.h Fix AnimationParser remove_prefix test 2020-08-05 20:00:09 -07:00
AnimationParser_test.cpp Convert healthd_test to Soong 2020-08-05 20:00:09 -07:00
BatteryMonitor.cpp healthd: Reinitialize mChargerNames for every battery update 2023-10-19 12:54:36 +00:00
BatteryMonitor_v1.cpp BatteryMonitor: fix build error with health hal v2 updraged 2023-01-21 15:28:23 +08:00
HealthServiceDefault.cpp
OWNERS healthd: remove hridya@ from OWNERS file 2022-01-06 16:56:57 -08:00
TEST_MAPPING Add healthd to hwasan-postsubmit 2022-03-18 21:19:00 +00:00
android.hardware.health@2.0-service.rc health: Add CAP_BLOCK_SUSPEND 2020-10-15 14:46:08 -07:00
animation.h charger: Load default resources from /system 2020-08-07 17:07:09 -07:00
charger.cpp charger: separate UI and HAL access. 2021-11-01 12:38:56 -07:00
charger.sysprop
charger_test.cpp charger: separate UI and HAL access. 2021-11-01 12:38:56 -07:00
charger_utils.cpp
charger_utils.h
healthd_draw.cpp charger: fix secondary display not turning off after first display was off 2022-09-20 02:53:16 +00:00
healthd_draw.h charger: fix secondary display not turning off after first display was off 2022-09-20 02:53:16 +00:00
healthd_mode_charger.cpp Merge UP1A.230406.001 2023-04-08 06:00:40 +00:00
healthd_mode_charger_hidl.cpp charger: Add API to replace ro.charger.enable_suspend 2021-11-01 12:38:56 -07:00
healthd_mode_charger_hidl.h charger: Add API to replace ro.charger.enable_suspend 2021-11-01 12:38:56 -07:00
healthd_mode_charger_nops.cpp
healthd_mode_charger_nops.h
healthd_mode_charger_test.cpp charger: separate UI and HAL access. 2021-11-01 12:38:56 -07:00