Skip to content
Commit 4d1ad408 authored by Karthik Ravi Shankar's avatar Karthik Ravi Shankar
Browse files

Add crash recovery logic to HardwarePropertiesManagerService



The HardwarePropertiesManagerService-JNI communicates with the thermal
HAL to expose temperature and other thermal data to Java services. When
Thermal HAL died, there was no recovery mechanism in place. This change
adds that recovery mechanism.

Bug: 67769672
Test:
1) Rebooted the device multiple times and checked that VrCore is able
to get the thermal information correctly.
2) Enter and exit VR mode multiple times killing thermalHal by design
   and ensure that we're getting thermal temperatures correctly.

10-16 10:05:19.605  1099  1600 E HardwarePropertiesManagerService-JNI:
ThermalHAL just died
...
10-16 10:05:29.761  3459  3459 D ThermalWarningManager: THERMAL:
ThermalInfo: [current temp=33.0, VR throttling temp (soft exit)=52.0, VR
hard exit temp=54.0, VR warning temp=51.0, last throttling warning wall
time=n/a, last soft 'exit VR' flow wall time=n/a, last hard 'exit VR'
flow wall time=n/a]

Change-Id: I55d8eae31526e1bd1a232afea5bd02cb0afca142
Signed-off-by: default avatarKarthik Ravi Shankar <karthikrs@google.com>
parent 0d2d6b6a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment