Home | History | Annotate | Download | only in MtpDocumentsProvider
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
      3           package="com.android.mtp"
      4           android:sharedUserId="android.media">
      5     <uses-feature android:name="android.hardware.usb.host" />
      6     <uses-permission android:name="android.permission.MANAGE_USB" />
      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"
     13             android:permission="android.permission.MANAGE_DOCUMENTS">
     14             <intent-filter>
     15                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
     16             </intent-filter>
     17         </provider>
     18 
     19         <service android:name=".MtpDocumentsService" />
     20 
     21         <activity android:name=".ReceiverActivity"
     22                   android:label="@string/downloads_app_label"
     23                   android:icon="@mipmap/ic_launcher_download"
     24                   android:theme="@android:style/Theme.NoDisplay"
     25                   android:screenOrientation="locked"
     26                   android:excludeFromRecents="true">
     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"
     31                        android:resource="@xml/device_filter" />
     32         </activity>
     33 
     34         <receiver android:name=".UsbIntentReceiver" android:exported="true">
     35             <intent-filter>
     36                 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
     37                 <action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
     38             </intent-filter>
     39             <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
     40                        android:resource="@xml/device_filter" />
     41         </receiver>
     42     </application>
     43 </manifest>
     44