aboutsummaryrefslogtreecommitdiff
path: root/TrustAgent/src
AgeCommit message (Collapse)Author
2018-06-21Associate user id with unlock token handleHongwei Wang
Note: this assumes user-0 is always unlocked otherwise one would not be able to access shared preference for user-0 when cold booted to lock screen. To test this CL, turn on the following system property android.car.systemuser.headless=true This build flag will make Android boot into a headless user-0 model and user-0 will always be unlocked. Bluetooth stack gets restarted every time switching user. This CL also ensures the BLE trust agent service is started after bluetooth finishes rebooting. Current limitations: - Unlock token works only if user sets password - Unlock token is not activated till user finishes lock-unlock once Bug: 78602296 Bug: 77854782 Test: unlock user by trust device on Mojave Change-Id: Ifc2bf97593adbb77d518d6b11c06ea5234a4ebbd
2018-04-24Deprecate the LocalBroadcastManagerHongwei Wang
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
2018-04-17Merges CarEnrolmentService and CarUnlockServiceHongwei Wang
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
2018-04-11Retry certain times till BLE service is ONHongwei Wang
Bug: 77922188 Test: manual Change-Id: I65bd1be64166764fed5b8f3fb7e90f3858173636
2018-04-09Run CarTrustAgentService in singleUser modeHongwei Wang
Bug: 76009740 Test: pair and unlock w/ Mojave Change-Id: Id436a7c26b1680a53126615b77899859e7de69a7
2018-04-03Migrate to androidx.* dependencies.Anthony Chen
Note, that the EmbeddedKitchenSinkApp has not been migrated because it depends on car support library. The car support library target is not yet ready to be migrated. Also, clean up that app so that it no longer depends on car-stream-ui-lib. Test: build and flash Bug: 77483560 Change-Id: I80f532b7ac2e328b22bf45f0dacc5d2b43a6cb6e
2018-03-08Consolidates the log tagHongwei Wang
Bug: 74397597 Test: run on test board Change-Id: Icce6b3ebe531de06d27a7f23016721a99734d550
2018-03-05Removes the client portion of CarTrustAgentHongwei Wang
Bug: 74193712 Test: run on Mojave Change-Id: I2f0ea08c148551cc336c8429e5a33fe94e1477c5
2017-09-06Add docs on permissions and configs.Bryan Eyler
Adds documentation for system config and permissions that are needed to run this sample correctly. Bug: 33458687 Tested with javadoc tool. Change-Id: I2e3846015eb825931d723b9dcf2228e89ef26945
2017-03-07Partial cleanup of Ble trust agent.Rakesh Iyer
First pass, added licenses and log guards, will make another pass soon. Test: Manually verified. Change-Id: I31fcf1783fb4cb9c3d5617d9f31f840196ca49ac
2017-03-02First pass of BLE escrow token user unlock.Victor Chan
The CarBleTrustAgent has now been updated to use the latest escrow token and synthetic password framework API's. The tokens are transfered via BLE between a phone and a car head unit. Note this only works on FBE enabled devices. config_strongAuthRequiredOnBoot should also be disabled so that unlocking the user will also cause the keyguard to be dropped. Test: Manual on sailfish build. Not tested on Mojave Change-Id: I6aba6cd3299e34389dca68c78047b8ebb9f1a884
2016-10-20Add car trust agent.Rakesh Iyer
Original sha1: 7014aa9053e3fb1d60a5e4069adb8e6f47cf5218 Credits: victorchan@ Bug: 32118797 Test: Manual. Change-Id: Ia498d0019b2e88add1957b1ed863dbbf17305913