History log of /packages/services/Car/TrustAgent/src/com/android/car/trust/CarTrustAgentBleService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
78fa6bbdefec2fc8ac0336be27b851f1fe98f0fc 13-Apr-2018 Hongwei Wang <hwwang@google.com> Deprecate the LocalBroadcastManager

LocalBroadcastManager works within one process and since the car trust
agent runs in user-0 as a singleton, secondary users won't be able to
use LocalBroadcastManager to communicate with the underlying service.

This also reduces the final apk size due to the removal of support
library.

Due to the asynchronous nature of TrustAgentService in framework,
for intance, the result of addEscrowToken would be delivered in a
separate onEscrowTokenAdded callback.

When enrolment client tries to add escrow token, followings would happen

- Enrolment client calls
CarTrustAgentBleService.setTokenResponseCallback and sets itself as the
callback
- Enrolment client calls CarTrustAgentBleService.addEscrowToken
- CarTrustAgentBleService delegates the call to TrustAgentService
- onEscrowTokenAdded is delivered to TrustAgentService and callbacks to
enrolment client

What's next:
- CarEnrolmentActivity should not store the handle information,
it should be CarTrustAgentBleService's responsibility
- Associate the token/handle with user id, see b/77854782

Bug: 76008345
Test: manual
Change-Id: I9f28f14cd7ae08786ef3b2825735b15c7de80507
/packages/services/Car/TrustAgent/src/com/android/car/trust/CarTrustAgentBleService.java
779f513f6a40a9ae041fc64d5f55a98b1ffe558b 12-Apr-2018 Hongwei Wang <hwwang@google.com> Merges CarEnrolmentService and CarUnlockService

This is a major overhaul of car TrustAgent component for I/O 2018 trust
device demo

Highlights:
- Reduces the number of services from 3 to 2. Would like to be one but
CarBleTrustAgent[TrustAgent] declares its onBind method as final
- CarEnrolmentActivity lives as a reference how to communicate with
CarTrustAgentBleService and maybe removed from the final release
- Both CarBleTrustAgent[TrustAgent] and CarEnrolmentActivity talk to the
CarTrustAgentBleService for token exchanging

What's next:
- Simplify the reference CarEnrolmentActivity, it currently holds
implementations should live in underlying service

Bug: 76008345
Test: manual
Change-Id: I54090db88c1f701b1e79f623ac0c415be55f59b9
/packages/services/Car/TrustAgent/src/com/android/car/trust/CarTrustAgentBleService.java