Kevin Crossan | d428549 | 2016-11-28 18:40:43 -0800 | [diff] [blame] | 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" |
rishb | 0d843f6 | 2020-05-08 16:51:41 +0200 | [diff] [blame] | 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"/> |
Ashwini Oruganti | 4d49813 | 2020-03-24 12:33:29 -0700 | [diff] [blame] | 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"/> |
minagranic | 1002c82 | 2020-05-15 08:09:58 +0000 | [diff] [blame] | 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"/> |
Ashwini Oruganti | 4d49813 | 2020-03-24 12:33:29 -0700 | [diff] [blame] | 28 | <uses-permission android:name="android.permission.MANAGE_USERS"/> |
| 29 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> |
rishb | 0d843f6 | 2020-05-08 16:51:41 +0200 | [diff] [blame] | 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"> |
Kevin Crossan | d428549 | 2016-11-28 18:40:43 -0800 | [diff] [blame] | 44 | <activity android:name=".UsbHostManagementActivity" |
rishb | 0d843f6 | 2020-05-08 16:51:41 +0200 | [diff] [blame] | 45 | android:theme="@android:style/Theme.DeviceDefault.Dialog" |
| 46 | android:launchMode="standard"> |
| 47 | <meta-data |
| 48 | android:name="distractionOptimized" |
| 49 | android:value="true"/> |
Justin Paupore | 6cf91b0 | 2019-01-08 16:01:59 -0800 | [diff] [blame] | 50 | </activity> |
tadvana | 0851dab | 2019-04-24 11:59:27 -0700 | [diff] [blame] | 51 | <service android:name=".BootUsbService" |
rishb | 0d843f6 | 2020-05-08 16:51:41 +0200 | [diff] [blame] | 52 | android:exported="false" |
| 53 | android:singleUser="true"> |
tadvana | 0851dab | 2019-04-24 11:59:27 -0700 | [diff] [blame] | 54 | </service> |
tadvana | 63f42f4 | 2019-03-26 17:25:21 -0700 | [diff] [blame] | 55 | <receiver android:name=".BootUsbScanner" |
rishb | 0d843f6 | 2020-05-08 16:51:41 +0200 | [diff] [blame] | 56 | android:directBootAware="true"> |
Kevin Crossan | d428549 | 2016-11-28 18:40:43 -0800 | [diff] [blame] | 57 | <intent-filter> |
Ashwini Oruganti | 4d49813 | 2020-03-24 12:33:29 -0700 | [diff] [blame] | 58 | <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/> |
Kevin Crossan | d428549 | 2016-11-28 18:40:43 -0800 | [diff] [blame] | 59 | </intent-filter> |
| 60 | </receiver> |
| 61 | </application> |
| 62 | </manifest> |