blob: 2dd49ab0782f8cf9179a3bfe68ebbdac91a24c12 [file] [log] [blame]
Daichi Hirono9a05d6b2015-07-09 15:36:42 +09001<?xml version="1.0" encoding="utf-8"?>
Daichi Hironoc00d5d42015-05-28 11:17:41 -07002<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 package="com.android.mtp"
4 android:sharedUserId="android.media">
Daichi Hirono2efe4ca2015-07-27 16:47:46 +09005 <uses-feature android:name="android.hardware.usb.host" />
Daichi Hirono47518802015-12-08 09:51:19 +09006 <uses-permission android:name="android.permission.MANAGE_USB" />
Daichi Hironoc00d5d42015-05-28 11:17:41 -07007 <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 Hironob8639902015-12-09 10:04:13 +090013 android:permission="android.permission.MANAGE_DOCUMENTS">
Daichi Hironoc00d5d42015-05-28 11:17:41 -070014 <intent-filter>
15 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
16 </intent-filter>
17 </provider>
Daichi Hirono163e4b62016-01-18 18:05:17 +090018
Daichi Hironoa57d9ed2015-12-07 10:52:42 +090019 <service android:name=".MtpDocumentsService" />
Daichi Hirono163e4b62016-01-18 18:05:17 +090020
21 <activity android:name=".ReceiverActivity"
22 android:theme="@android:style/Theme.NoDisplay"
23 android:screenOrientation="locked"
24 android:excludeFromRecents="true">
Daichi Hironodf3f2e62015-07-27 16:48:44 +090025 <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 Hirono163e4b62016-01-18 18:05:17 +090029 android:resource="@xml/device_filter" />
30 </activity>
31
32 <receiver android:name=".UsbIntentReceiver" android:exported="true">
Daichi Hirono163e4b62016-01-18 18:05:17 +090033 <intent-filter>
34 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
Daichi Hironofda74742016-02-01 13:00:31 +090035 <action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
Daichi Hirono163e4b62016-01-18 18:05:17 +090036 </intent-filter>
37 <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
38 android:resource="@xml/device_filter" />
Daichi Hironoa57d9ed2015-12-07 10:52:42 +090039 </receiver>
Daichi Hironoc00d5d42015-05-28 11:17:41 -070040 </application>
41</manifest>