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" /> |
Daichi Hirono | 4751880 | 2015-12-08 09:51:19 +0900 | [diff] [blame] | 6 | <uses-permission android:name="android.permission.MANAGE_USB" /> |
Daichi Hirono | c00d5d4 | 2015-05-28 11:17:41 -0700 | [diff] [blame] | 7 | <application android:label="@string/app_label"> |
| 8 | <provider |
| 9 | android:name=".MtpDocumentsProvider" |
| 10 | android:authorities="com.android.mtp.documents" |
| 11 | android:grantUriPermissions="true" |
| 12 | android:exported="true" |
Daichi Hirono | b863990 | 2015-12-09 10:04:13 +0900 | [diff] [blame] | 13 | android:permission="android.permission.MANAGE_DOCUMENTS"> |
Daichi Hirono | c00d5d4 | 2015-05-28 11:17:41 -0700 | [diff] [blame] | 14 | <intent-filter> |
| 15 | <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> |
| 16 | </intent-filter> |
| 17 | </provider> |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 18 | |
Daichi Hirono | a57d9ed | 2015-12-07 10:52:42 +0900 | [diff] [blame] | 19 | <service android:name=".MtpDocumentsService" /> |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 20 | |
| 21 | <activity android:name=".ReceiverActivity" |
| 22 | android:theme="@android:style/Theme.NoDisplay" |
| 23 | android:screenOrientation="locked" |
| 24 | android:excludeFromRecents="true"> |
Daichi Hirono | df3f2e6 | 2015-07-27 16:48:44 +0900 | [diff] [blame] | 25 | <intent-filter> |
| 26 | <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> |
| 27 | </intent-filter> |
| 28 | <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 29 | android:resource="@xml/device_filter" /> |
| 30 | </activity> |
| 31 | |
| 32 | <receiver android:name=".UsbIntentReceiver" android:exported="true"> |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 33 | <intent-filter> |
| 34 | <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> |
Daichi Hirono | fda7474 | 2016-02-01 13:00:31 +0900 | [diff] [blame] | 35 | <action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" /> |
Daichi Hirono | 163e4b6 | 2016-01-18 18:05:17 +0900 | [diff] [blame] | 36 | </intent-filter> |
| 37 | <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" |
| 38 | android:resource="@xml/device_filter" /> |
Daichi Hirono | a57d9ed | 2015-12-07 10:52:42 +0900 | [diff] [blame] | 39 | </receiver> |
Daichi Hirono | c00d5d4 | 2015-05-28 11:17:41 -0700 | [diff] [blame] | 40 | </application> |
| 41 | </manifest> |