blob: 75617c9958dee605440c90dc1fc40181706565ef [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"
rishb0d843f62020-05-08 16:51:41 +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"/>
Ashwini Oruganti4d498132020-03-24 12:33:29 -070022 <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"/>
minagranic1002c822020-05-15 08:09:58 +000025 <!-- Needed for Build.getSerial(), which is used to send a unique number for serial, per HUIG. -->
26 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
27 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
Ashwini Oruganti4d498132020-03-24 12:33:29 -070028 <uses-permission android:name="android.permission.MANAGE_USERS"/>
29 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
rishb0d843f62020-05-08 16:51:41 +020030 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
31
32 <!-- "queries" to specify what car-usb-handler will query for due to Android 11's
33 package visibility update. -->
34 <queries>
35 <intent>
36 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
37 </intent>
38 </queries>
39
40 <application
41 android:label="@string/app_name"
42 android:icon="@drawable/ic_launcher"
43 android:directBootAware="true">
Kevin Crossand4285492016-11-28 18:40:43 -080044 <activity android:name=".UsbHostManagementActivity"
rishb0d843f62020-05-08 16:51:41 +020045 android:theme="@android:style/Theme.DeviceDefault.Dialog"
46 android:launchMode="standard">
47 <meta-data
48 android:name="distractionOptimized"
49 android:value="true"/>
Justin Paupore6cf91b02019-01-08 16:01:59 -080050 </activity>
tadvana0851dab2019-04-24 11:59:27 -070051 <service android:name=".BootUsbService"
rishb0d843f62020-05-08 16:51:41 +020052 android:exported="false"
53 android:singleUser="true">
tadvana0851dab2019-04-24 11:59:27 -070054 </service>
tadvana63f42f42019-03-26 17:25:21 -070055 <receiver android:name=".BootUsbScanner"
rishb0d843f62020-05-08 16:51:41 +020056 android:directBootAware="true">
Kevin Crossand4285492016-11-28 18:40:43 -080057 <intent-filter>
Ashwini Oruganti4d498132020-03-24 12:33:29 -070058 <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
Kevin Crossand4285492016-11-28 18:40:43 -080059 </intent-filter>
60 </receiver>
61 </application>
62</manifest>