aboutsummaryrefslogtreecommitdiff
path: root/car-lib/src/android
diff options
context:
space:
mode:
authorHongwei Wang <hwwang@google.com>2018-06-05 16:42:06 -0700
committerHongwei Wang <hwwang@google.com>2018-06-21 14:36:19 -0700
commit25fa6f2e47fc034cc6bef7be6d0fae6889194f1d (patch)
tree537e7b22f40dc18377baa765765d6221b53ca338 /car-lib/src/android
parent12eecfd9600c0f48b3652733f60c29e70ad6650b (diff)
downloadCar-25fa6f2e47fc034cc6bef7be6d0fae6889194f1d.tar.gz
Associate user id with unlock token handle
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
Diffstat (limited to 'car-lib/src/android')
-rw-r--r--car-lib/src/android/car/trust/ICarTrustAgentBleService.aidl3
1 files changed, 3 insertions, 0 deletions
diff --git a/car-lib/src/android/car/trust/ICarTrustAgentBleService.aidl b/car-lib/src/android/car/trust/ICarTrustAgentBleService.aidl
index 8b50fd379a..4dec6a0a43 100644
--- a/car-lib/src/android/car/trust/ICarTrustAgentBleService.aidl
+++ b/car-lib/src/android/car/trust/ICarTrustAgentBleService.aidl
@@ -58,4 +58,7 @@ interface ICarTrustAgentBleService {
void onEscrowTokenAdded(in byte[] token, long handle, int uid);
void onEscrowTokenRemoved(long handle, boolean successful);
void onEscrowTokenActiveStateChanged(long handle, boolean active);
+
+ /** Management */
+ int getUserIdByEscrowTokenHandle(long tokenHandle);
}