blob: bcd997507b950005d8ddd4373121eb7efc5fc0c5 [file] [log] [blame]
Kevin Crossand4285492016-11-28 18:40:43 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<manifest xmlns:android="http://schemas.android.com/apk/res/android"
rishbdf22af32020-05-06 13:07:37 +020017 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
18 package="android.car.usb.handler">
19 <uses-sdk
20 android:minSdkVersion="25"
21 android:targetSdkVersion="29"/>
22 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
23 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
24 <uses-permission android:name="android.permission.MANAGE_USB"/>
25 <uses-permission android:name="android.permission.MANAGE_USERS"/>
26 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
27 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
28
29 <!-- "queries" to specify what car-usb-handler will query for due to Android 11's
30 package visibility update. -->
31 <queries>
32 <intent>
33 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
34 </intent>
35 </queries>
36
37 <application
38 android:label="@string/app_name"
39 android:icon="@drawable/ic_launcher"
40 android:directBootAware="true">
Kevin Crossand4285492016-11-28 18:40:43 -080041 <activity android:name=".UsbHostManagementActivity"
tadvanaa06f70e2019-06-14 19:26:58 -070042 android:theme="@android:style/Theme.DeviceDefault.Dialog"
tadvanaa87e2472019-08-22 15:26:55 -070043 android:launchMode="standard">
Justin Paupore6cf91b02019-01-08 16:01:59 -080044 <meta-data
45 android:name="distractionOptimized"
rishbdf22af32020-05-06 13:07:37 +020046 android:value="true"/>
Justin Paupore6cf91b02019-01-08 16:01:59 -080047 </activity>
tadvana0851dab2019-04-24 11:59:27 -070048 <service android:name=".BootUsbService"
49 android:exported="false"
50 android:singleUser="true">
51 </service>
tadvana63f42f42019-03-26 17:25:21 -070052 <receiver android:name=".BootUsbScanner"
tadvana0851dab2019-04-24 11:59:27 -070053 android:directBootAware="true">
Kevin Crossand4285492016-11-28 18:40:43 -080054 <intent-filter>
rishbdf22af32020-05-06 13:07:37 +020055 <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
Kevin Crossand4285492016-11-28 18:40:43 -080056 </intent-filter>
57 </receiver>
58 </application>
59</manifest>