summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorConnor O'Brien <connoro@google.com>2017-02-27 16:41:35 -0800
committerSteven Moreland <smoreland@google.com>2017-03-31 00:24:00 +0000
commit0ecd08bdd005591ef409ec65236e29db91cd0917 (patch)
tree96e9c93c2e93e28556328b70657f1f9240e39339 /tools/aapt2/diff/Diff.cpp
parent7a0fef9324c1e3ef1d79f0bce650879bc4563692 (diff)
Recover cleanly from power HAL service crashes
Currently if the binderized power HAL service crashes, services that call the HAL will crash as well. To fix this: - Before calling power HAL functions, check that the handle to the power HAL service is still valid, and reload using getService() if necessary. - When a call to a power HAL function fails, log the failure and mark the handle as invalid. Bug: 35728909 Test: adb shell kill -9 $(adb shell pidof android.hardware.power@1.0-service) Change-Id: Id2dd1a6507b9f5044d928483cdb6b736c701f8ba Signed-off-by: Connor O'Brien <connoro@google.com> (cherry picked from commit 578eb7fee3a28ff9ca309e741b5a647637896ba1)
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions