commit | 241b383ba11f72f8618a4f2c69f100d9a0dc06ee | [log] [tgz] |
---|---|---|
author | Ram Periathiruvadi <ramperry@google.com> | Tue Aug 13 10:06:55 2019 -0700 |
committer | Ram Periathiruvadi <ramperry@google.com> | Tue Aug 13 10:06:55 2019 -0700 |
tree | 735b14669c64342cdf58e4390a956042fda5935f | |
parent | f83c1a4147ff77ae643d11989c49b41668956b6b [diff] |
Have the trust agent check if car service is available. CarBleTrustAgent is started onDeviceLocked from TrustManagerService. But Car Service itself might be null if it had crashed. CarBleTrustAgent should check the Car services for null before accessing them. Bug: 138325765 Test: Multiple reboots with pin enabled. Change-Id: I365273f2c6f298c1876b73061e6b44e4c5cc6d8e
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.