1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2016 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17<manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.android.car.trust"> 19 <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23"/> 20 21 <!-- Need Bluetooth LE --> 22 <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" /> 23 24 <uses-permission android:name="android.permission.BLUETOOTH" /> 25 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 26 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> 27 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 28 29 <!-- Needed to unlock user --> 30 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> 31 <!-- TODO(b/77717079) INTERACT_ACROSS_USERS_FULL should have granted INTERACT_ACROSS_USERS --> 32 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 33 <uses-permission android:name="android.permission.MANAGE_USERS" /> 34 <uses-permission android:name="android.permission.CONTROL_KEYGUARD" /> 35 <uses-permission android:name="android.permission.PROVIDE_TRUST_AGENT" /> 36 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 37 38 <application android:label="@string/app_name"> 39 <service 40 android:name=".CarBleTrustAgent" 41 android:permission="android.permission.BIND_TRUST_AGENT" 42 android:directBootAware="true" 43 android:exported="true" 44 android:singleUser="true"> 45 <intent-filter> 46 <action android:name="android.service.trust.TrustAgentService" /> 47 <category android:name="android.intent.category.DEFAULT" /> 48 </intent-filter> 49 <!-- Warning: the meta data must be included if the service is direct boot aware. 50 If not included, the device will crash before boot completes. Rendering the 51 device unusable. --> 52 <meta-data android:name="android.service.trust.trustagent" 53 android:resource="@xml/car_sample_trust_agent"/> 54 </service> 55 56 <!-- CarTrustAgentBleService needs to be direct boot aware, since the trust agent 57 binds to it during direct boot.--> 58 <service 59 android:name=".CarTrustAgentBleService" 60 android:directBootAware="true" 61 android:singleUser="true"> 62 <!-- Warning: the meta data must be included if the service is direct boot aware. 63 If not included, the device will crash before boot completes. Rendering the device 64 unusable. --> 65 <meta-data android:name="android.service.trust.trustagent" 66 android:resource="@xml/car_sample_trust_agent"/> 67 </service> 68 69 <activity 70 android:name=".CarEnrolmentActivity" 71 android:label="@string/app_name" 72 android:exported="true" 73 android:launchMode="singleInstance"> 74 <intent-filter> 75 <action android:name="android.intent.action.MAIN" /> 76 <category android:name="android.intent.category.LAUNCHER" /> 77 </intent-filter> 78 </activity> 79 80 </application> 81</manifest> 82