commit | 377bdd6f3359e36b3628407385c674adfb6ce72f | [log] [tgz] |
---|---|---|
author | Anthony Chen <ajchen@google.com> | Mon Jun 24 15:03:23 2019 -0700 |
committer | Anthony Chen <ajchen@google.com> | Mon Jun 24 15:03:23 2019 -0700 |
tree | 9f58d7dcd8deac4b036685c6d23c3d81e09e9039 | |
parent | 5a5c058c9fac9de4fea8e7cb675c93e88002a628 [diff] |
Only reset encryption when a device disconnects. Encryption was being reset too early. Specifically, it was reset but there still needed to be an ACK message sent to the car. This was throwing an exception. Now, just rely on device disconnection to reset encryption. Otherwise, while the device is connected, it should still be able to send messages. Test: Verify that sending the ACK after unlock completed does not throw exception. Bug: 135931998 Change-Id: I0aa338769c73219e0c7fa3eb5e4e4e552a0d4a55
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.