Daichi Hirono | 9a05d6b | 2015-07-09 15:36:42 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Daichi Hirono | c00d5d4 | 2015-05-28 11:17:41 -0700 | [diff] [blame] | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | package="com.android.mtp" |
| 4 | android:sharedUserId="android.media"> |
Daichi Hirono | 2efe4ca | 2015-07-27 16:47:46 +0900 | [diff] [blame] | 5 | <uses-feature android:name="android.hardware.usb.host" /> |
Dianne Hackborn | dd027b3 | 2018-01-19 17:44:46 -0800 | [diff] [blame] | 6 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> |
Daichi Hirono | 4751880 | 2015-12-08 09:51:19 +0900 | [diff] [blame] | 7 | <uses-permission android:name="android.permission.MANAGE_USB" /> |
Daichi Hirono | c00d5d4 | 2015-05-28 11:17:41 -0700 | [diff] [blame] | 8 | <application android:label="@string/app_label"> |
| 9 | <provider |
| 10 | android:name=".MtpDocumentsProvider" |
| 11 | android:authorities="com.android.mtp.documents" |
| 12 | android:grantUriPermissions="true" |
| 13 | android:exported="true" |
Daichi Hirono | b863990 | 2015-12-09 10:04:13 +0900 | [diff] [blame] | 14 | android:permission="android.permission.MANAGE_DOCUMENTS"> |
Daichi Hirono | c00d5d4 | 2015-05-28 11:17:41 -0700 | [diff] [blame] | 15 | <intent-filter> |
| 16 | <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> |
| 17 | </intent-filter> |
| 18 | </provider> |
Daichi Hirono | 01e236b | 2016-03-23 11:07:29 +0900 | [diff] [blame] | 19 | |
Daichi Hirono | a57d9ed | 2015-12-07 10:52:42 +0900 | [diff] [blame] | 20 | <service android:name=".MtpDocumentsService" /> |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 21 | |
| 22 | <activity android:name=".ReceiverActivity" |
Daichi Hirono | 01e236b | 2016-03-23 11:07:29 +0900 | [diff] [blame] | 23 | android:label="@string/downloads_app_label" |
| 24 | android:icon="@mipmap/ic_launcher_download" |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 25 | android:theme="@android:style/Theme.NoDisplay" |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 26 | android:excludeFromRecents="true"> |
Daichi Hirono | df3f2e6 | 2015-07-27 16:48:44 +0900 | [diff] [blame] | 27 | <intent-filter> |
| 28 | <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> |
| 29 | </intent-filter> |
| 30 | <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 31 | android:resource="@xml/device_filter" /> |
| 32 | </activity> |
| 33 | |
| 34 | <receiver android:name=".UsbIntentReceiver" android:exported="true"> |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 35 | <intent-filter> |
| 36 | <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> |
Daichi Hirono | fda7474 | 2016-02-01 13:00:31 +0900 | [diff] [blame] | 37 | <action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" /> |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 38 | </intent-filter> |
| 39 | <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" |
| 40 | android:resource="@xml/device_filter" /> |
Daichi Hirono | a57d9ed | 2015-12-07 10:52:42 +0900 | [diff] [blame] | 41 | </receiver> |
Daichi Hirono | c00d5d4 | 2015-05-28 11:17:41 -0700 | [diff] [blame] | 42 | </application> |
| 43 | </manifest> |