diff options
| author | 2022-05-05 22:11:31 +0000 | |
|---|---|---|
| committer | 2022-05-11 03:10:04 +0000 | |
| commit | 79de06e6b80301fd336a339199014da82d45bbfc (patch) | |
| tree | 8cf90aeb5c2a9dd882e68d482664e625cff2cfa2 /libs/androidfw/Util.cpp | |
| parent | f1f44551ac99ce47a1a3b2b17e4723c8e381a6e8 (diff) | |
[CDM perm sync] Send and receive messages integration
Send message flow (will remain unchanged):
1. A companion app calls startSystemDataTransfer
2. SystemDataTransferProcessor creates the permission backup file and
send it CompanionMessageProcessor
3. CompanionMessageProcessor paginate the message and send them to
CompanionSecureCommsManager
4. CompanionSecureCommsManager encrypts the messages and send them to the
app.
This CL changes the logic to bind to the app if it's unbind. Previously
CompanionSecureCommsManager would throw an exception if it's unbind.
Receive message flow (newly integrated in this CL):
1. A companion app calls dispatchMessageToSystem
2. CompanionSecureCommsManager receives the message and decrypts it.
3. CompanionMessageProcessor receives the message via listener
and may return the complete message to SystemDataTransferProcessor
via listener.
4. SystemDataTransferProcessor processes the decrypted complete message.
Bug: 231474219
Test: manually tested the sender and receiver flows.
Change-Id: I0eb920103080fcb708614e636c6afec4fc69d92c
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions