diff options
author | Hongwei Wang <hwwang@google.com> | 2018-03-20 10:26:03 -0700 |
---|---|---|
committer | Hongwei Wang <hwwang@google.com> | 2018-04-09 10:22:36 -0700 |
commit | fb1e3ec6d10ba3a426c9d09bf653b1b360c9ac2d (patch) | |
tree | edf7cfb55f275b08f89e0282eee924439de8b669 /TrustAgent/AndroidManifest.xml | |
parent | 3f22a073729192cb43d0c6312c716b06190a3177 (diff) | |
download | Car-fb1e3ec6d10ba3a426c9d09bf653b1b360c9ac2d.tar.gz |
Run CarTrustAgentService in singleUser mode
Bug: 76009740
Test: pair and unlock w/ Mojave
Change-Id: Id436a7c26b1680a53126615b77899859e7de69a7
Diffstat (limited to 'TrustAgent/AndroidManifest.xml')
-rw-r--r-- | TrustAgent/AndroidManifest.xml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/TrustAgent/AndroidManifest.xml b/TrustAgent/AndroidManifest.xml index 0825044338..31080e4c3c 100644 --- a/TrustAgent/AndroidManifest.xml +++ b/TrustAgent/AndroidManifest.xml @@ -19,7 +19,7 @@ <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23"/> <!-- Need Bluetooth LE --> - <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" /> + <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" /> <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> @@ -36,10 +36,10 @@ <application android:label="@string/app_name"> <service android:name=".CarBleTrustAgent" - android:label="@string/app_name" android:permission="android.permission.BIND_TRUST_AGENT" android:directBootAware="true" - android:exported="true"> + android:exported="true" + android:singleUser="true"> <intent-filter> <action android:name="android.service.trust.TrustAgentService" /> <category android:name="android.intent.category.DEFAULT" /> @@ -53,8 +53,10 @@ <!-- CarUnlockService needs to be direct boot aware, since the trust agent binds to it during direct boot.--> - <service android:name=".CarUnlockService" - android:directBootAware="true"> + <service + android:name=".CarUnlockService" + android:directBootAware="true" + android:singleUser="true"> <!-- Warning: the meta data must be included if the service is direct boot aware. If not included, the device will crash before boot completes. Rendering the device unusable. --> @@ -62,7 +64,9 @@ android:resource="@xml/car_sample_trust_agent"/> </service> - <service android:name=".CarEnrolmentService"/> + <service + android:name=".CarEnrolmentService" + android:singleUser="true"/> <activity android:name=".CarEnrolmentActivity" |