aboutsummaryrefslogtreecommitdiff
path: root/TrustAgent/AndroidManifest.xml
diff options
context:
space:
mode:
authorVictor Chan <victorchan@google.com>2017-03-01 19:03:10 -0800
committerVictor Chan <victorchan@google.com>2017-03-02 14:49:44 -0800
commit77e5e49cf9dcceb69b07510c380ae2a9285ebfee (patch)
tree27f4c7db60f42ac5b1fddd8489f20ccd20661079 /TrustAgent/AndroidManifest.xml
parent3c5e8e9041a255a141ccf34de827d4ab0180d369 (diff)
downloadCar-77e5e49cf9dcceb69b07510c380ae2a9285ebfee.tar.gz
First pass of BLE escrow token user unlock.
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
Diffstat (limited to 'TrustAgent/AndroidManifest.xml')
-rw-r--r--TrustAgent/AndroidManifest.xml61
1 files changed, 56 insertions, 5 deletions
diff --git a/TrustAgent/AndroidManifest.xml b/TrustAgent/AndroidManifest.xml
index b499a738f7..24560fa996 100644
--- a/TrustAgent/AndroidManifest.xml
+++ b/TrustAgent/AndroidManifest.xml
@@ -17,25 +17,76 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.car.trust">
<uses-permission android:name="android.permission.BLUETOOTH" />
- <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17"/>
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
+
+ <!-- Needed to unlock user -->
+ <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
+ <uses-permission android:name="android.permission.MANAGE_USERS" />
+
+ <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
+
+ <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23"/>
<uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
<uses-permission android:name="android.permission.PROVIDE_TRUST_AGENT" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+
<application android:label="@string/app_name">
<service
- android:name=".CarBluetoothTrustAgent"
+ android:name=".CarBleTrustAgent"
android:label="@string/app_name"
android:permission="android.permission.BIND_TRUST_AGENT"
+ android:directBootAware="true"
android:exported="true">
<intent-filter>
<action android:name="android.service.trust.TrustAgentService" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
+ <!-- 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. -->
+ <meta-data android:name="android.service.trust.trustagent"
+ android:resource="@xml/car_sample_trust_agent"/>
</service>
- <receiver android:name=".BootupReceiver">
+
+ <!-- CarUnlockService needs to be direct boot aware, since the trust agent
+ binds to it during direct boot.-->
+ <service android:name=".CarUnlockService"
+ android:directBootAware="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. -->
+ <meta-data android:name="android.service.trust.trustagent"
+ android:resource="@xml/car_sample_trust_agent"/>
+ </service>
+
+ <service android:name=".CarEnrolmentService"/>
+
+ <activity
+ android:name=".MainActivity"
+ android:label="@string/app_name"
+ android:exported="true"
+ android:launchMode="singleInstance">
<intent-filter>
- <action android:name="android.intent.action.BOOT_COMPLETED" />
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
- </receiver>
+ </activity>
+
+ <activity
+ android:name=".CarEnrolmentActivity"
+ android:label="Car Client1">
+ </activity>
+
+ <activity
+ android:name=".PhoneEnrolmentActivity"
+ android:label="Phone Enrolment Client">
+ </activity>
+
+ <activity
+ android:name=".PhoneUnlockActivity"
+ android:label="Phone Unlock Client">
+ </activity>
</application>
</manifest>