1<?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" 17 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 <!-- 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"/> 28 <uses-permission android:name="android.permission.MANAGE_USERS"/> 29 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> 30 <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"> 44 <activity android:name=".UsbHostManagementActivity" 45 android:theme="@android:style/Theme.DeviceDefault.Dialog" 46 android:launchMode="standard"> 47 <meta-data 48 android:name="distractionOptimized" 49 android:value="true"/> 50 </activity> 51 <service android:name=".BootUsbService" 52 android:exported="false" 53 android:singleUser="true"> 54 </service> 55 <receiver android:name=".BootUsbScanner" 56 android:directBootAware="true"> 57 <intent-filter> 58 <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/> 59 </intent-filter> 60 </receiver> 61 </application> 62</manifest> 63