blob: c0a59b3badbfa215faf160aabe09dd518ae8d444 [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" />
Dianne Hackborndd027b32018-01-19 17:44:46 -08006 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Daichi Hirono47518802015-12-08 09:51:19 +09007 <uses-permission android:name="android.permission.MANAGE_USB" />
Daichi Hironoc00d5d42015-05-28 11:17:41 -07008 <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 Hironob8639902015-12-09 10:04:13 +090014 android:permission="android.permission.MANAGE_DOCUMENTS">
Daichi Hironoc00d5d42015-05-28 11:17:41 -070015 <intent-filter>
16 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
17 </intent-filter>
18 </provider>
Daichi Hirono01e236b2016-03-23 11:07:29 +090019
Daichi Hironoa57d9ed2015-12-07 10:52:42 +090020 <service android:name=".MtpDocumentsService" />
Daichi Hirono163e4b62016-01-18 18:05:17 +090021
22 <activity android:name=".ReceiverActivity"
Daichi Hirono01e236b2016-03-23 11:07:29 +090023 android:label="@string/downloads_app_label"
24 android:icon="@mipmap/ic_launcher_download"
Daichi Hirono163e4b62016-01-18 18:05:17 +090025 android:theme="@android:style/Theme.NoDisplay"
Daichi Hirono163e4b62016-01-18 18:05:17 +090026 android:excludeFromRecents="true">
Daichi Hironodf3f2e62015-07-27 16:48:44 +090027 <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 Hirono163e4b62016-01-18 18:05:17 +090031 android:resource="@xml/device_filter" />
32 </activity>
33
34 <receiver android:name=".UsbIntentReceiver" android:exported="true">
Daichi Hirono163e4b62016-01-18 18:05:17 +090035 <intent-filter>
36 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
Daichi Hironofda74742016-02-01 13:00:31 +090037 <action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
Daichi Hirono163e4b62016-01-18 18:05:17 +090038 </intent-filter>
39 <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
40 android:resource="@xml/device_filter" />
Daichi Hironoa57d9ed2015-12-07 10:52:42 +090041 </receiver>
Daichi Hironoc00d5d42015-05-28 11:17:41 -070042 </application>
43</manifest>