| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2016 The Android Open Source Project |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License |
| --> |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| package="com.android.car.trust"> |
| <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23"/> |
| |
| <!-- Need Bluetooth LE --> |
| <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" /> |
| <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" /> |
| <!-- TODO(b/77717079) INTERACT_ACROSS_USERS_FULL should have granted INTERACT_ACROSS_USERS --> |
| <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> |
| <uses-permission android:name="android.permission.MANAGE_USERS" /> |
| <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" |
| android:theme="@style/Theme.Car.NoActionBar" |
| android:supportsRtl="true"> |
| |
| <service |
| android:name=".CarBleTrustAgent" |
| android:permission="android.permission.BIND_TRUST_AGENT" |
| android:directBootAware="true" |
| android:exported="true" |
| android:singleUser="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> |
| |
| <!-- CarTrustAgentBleService needs to be direct boot aware, since the trust agent |
| binds to it during direct boot.--> |
| <service |
| android:name=".CarTrustAgentBleService" |
| 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. --> |
| <meta-data android:name="android.service.trust.trustagent" |
| android:resource="@xml/car_sample_trust_agent"/> |
| </service> |
| |
| <activity |
| android:name=".CarEnrolmentActivity" |
| android:label="@string/app_name" |
| android:exported="true" |
| android:launchMode="singleInstance"> |
| <intent-filter> |
| <action android:name="android.intent.action.MAIN" /> |
| <category android:name="android.intent.category.LAUNCHER" /> |
| </intent-filter> |
| </activity> |
| |
| </application> |
| </manifest> |