Home | History | Annotate | Download | only in TrustAgent
      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     <uses-permission android:name="android.permission.MANAGE_USERS" />
     32     <uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
     33     <uses-permission android:name="android.permission.PROVIDE_TRUST_AGENT" />
     34     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
     35 
     36     <application android:label="@string/app_name">
     37         <service
     38                 android:name=".CarBleTrustAgent"
     39                 android:label="@string/app_name"
     40                 android:permission="android.permission.BIND_TRUST_AGENT"
     41                 android:directBootAware="true"
     42                 android:exported="true">
     43             <intent-filter>
     44                 <action android:name="android.service.trust.TrustAgentService" />
     45                 <category android:name="android.intent.category.DEFAULT" />
     46             </intent-filter>
     47             <!-- Warning: the meta data must be included if the service is direct boot aware.
     48                  If not included, the device will crash before boot completes. Rendering the
     49                  device unusable. -->
     50             <meta-data android:name="android.service.trust.trustagent"
     51                        android:resource="@xml/car_sample_trust_agent"/>
     52         </service>
     53 
     54         <!-- CarUnlockService needs to be direct boot aware, since the trust agent
     55              binds to it during direct boot.-->
     56         <service android:name=".CarUnlockService"
     57                  android:directBootAware="true">
     58             <!-- Warning: the meta data must be included if the service is direct boot aware.
     59                  If not included, the device will crash before boot completes. Rendering the device
     60                  unusable. -->
     61             <meta-data android:name="android.service.trust.trustagent"
     62                        android:resource="@xml/car_sample_trust_agent"/>
     63         </service>
     64 
     65         <service android:name=".CarEnrolmentService"/>
     66 
     67         <activity
     68                 android:name=".MainActivity"
     69                 android:label="@string/app_name"
     70                 android:exported="true"
     71                 android:launchMode="singleInstance">
     72             <intent-filter>
     73                 <action android:name="android.intent.action.MAIN" />
     74                 <category android:name="android.intent.category.LAUNCHER" />
     75             </intent-filter>
     76         </activity>
     77 
     78         <activity android:name=".CarEnrolmentActivity"
     79             android:exported="false" />
     80 
     81         <activity android:name=".PhoneEnrolmentActivity"
     82             android:exported="false" />
     83 
     84         <activity android:name=".PhoneUnlockActivity"
     85             android:exported="false" />
     86     </application>
     87 </manifest>
     88