Commit Graph

7 Commits

Author SHA1 Message Date
Steven Moreland
9b959cb514 Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
2019-10-02 12:49:15 -07:00
Jack Wu
2fa48ee4fe battery learned capacity: backup/restore to/from persist data
Test:
    - delete file /persist/battery/qcom_charge_full
    - adb logcat to check code flow related health@2.0
    - adb bugreport
    - no "avc: denied" on health vendor service
    - check learned capacity in both
      /sys/class/power_supply/bms/charge_full
      /persist/battery/qcom_charge_full
      -- decrease /sys/class/power_supply/bms/charge_full
         to check backup to /persist/battery/qcom_charge_full
      -- increase /sys/class/power_supply/bms/charge_full
         to check restore from /persist/battery/qcom_charge_full
         (simluate the reset condition)

Bug: 78883741
Change-Id: Ib17bc0938d3a4b78376140a8a1008b4fc82220af
Signed-off-by: Jack Wu <wjack@google.com>
2018-05-10 09:13:50 -07:00
Yifan Hong
fb257f8c76 Revert "health HAL: overrides healthd."
This reverts commit 6c41af4807.
This is a partial revert; CleanSpec.mk is not reverted.

Reason for revert: prevents boot with O-MR1 vendor + P system

Test: boots

Change-Id: Ib573f525da836f12201fd0f9793441a9fed31969
Fixes: 78550051
2018-04-25 14:18:57 -07:00
Yifan Hong
6c41af4807 health HAL: overrides healthd.
healthd should not be installed on the device

Test: lshal -i | grep IHealth/backup fails
Test: lshal debug android.hardware.health@2.0::IHealth/backup
      shows nothing
Test: vts_treble_vintf_test shows nothing about /backup
      instance

Bug: 77541952
Change-Id: I1479da3394ee7bb0f3fba8b6bcb4e12b50ed8190
2018-04-05 19:06:54 -07:00
Thierry Strudel
fa1279bd6b battery cycle counts: backup/restore + update dumpstate
Tests:
  - pts-tradefed run pts -a arm64-v8a -m PtsHardwareInfoHostTestCases
  - adb bugreport
  - no "avc: denied" on health vendor service
  - cycle count stored in /persist/battery/qcom_cycle_counts_bins

Bug: 72776338
Bug: 77498107
Change-Id: Ia1a58441fff511c60278b5d97806655c34aec610
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-04-04 09:23:39 -07:00
Yifan Hong
d27f55d8c6 health: remove duplicate HealthServiceCommon code.
Test: boots
Bug: 63702641
Change-Id: I028ed6a4223517279117ac2c276d32c829dea7bb
2018-01-22 12:32:10 -08:00
Hridya Valsaraju
c5a707bc2f Add health service for Wahoo
Bug: 68388678
Test: vts-tradefed run vts -m VtsHalHealthV2_0

Change-Id: I37c2c66d26b1af04ccfedb59a24bb4e4aa492041
2018-01-11 10:43:09 -08:00