Age | Commit message (Collapse) | Author |
|
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
|
|
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
|
|
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
|
|
Bug: 77922188
Test: manual
Change-Id: I65bd1be64166764fed5b8f3fb7e90f3858173636
|
|
Bug: 76009740
Test: pair and unlock w/ Mojave
Change-Id: Id436a7c26b1680a53126615b77899859e7de69a7
|
|
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
|
|
Bug: 74397597
Test: run on test board
Change-Id: Icce6b3ebe531de06d27a7f23016721a99734d550
|
|
Bug: 74193712
Test: run on Mojave
Change-Id: I2f0ea08c148551cc336c8429e5a33fe94e1477c5
|
|
Adds documentation for system config and permissions that are needed to
run this sample correctly.
Bug: 33458687
Tested with javadoc tool.
Change-Id: I2e3846015eb825931d723b9dcf2228e89ef26945
|
|
First pass, added licenses and log guards, will make another
pass soon.
Test: Manually verified.
Change-Id: I31fcf1783fb4cb9c3d5617d9f31f840196ca49ac
|
|
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
|
|
Original sha1: 7014aa9053e3fb1d60a5e4069adb8e6f47cf5218
Credits:
victorchan@
Bug: 32118797
Test: Manual.
Change-Id: Ia498d0019b2e88add1957b1ed863dbbf17305913
|