OSDN Git Service

Import translations. DO NOT MERGE am: 47749a01d7 -s ours am: 27d4c36a3d -s ours...
[android-x86/frameworks-base.git] / packages / MtpDocumentsProvider / AndroidManifest.xml
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:excludeFromRecents="true">
26             <intent-filter>
27                 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
28             </intent-filter>
29             <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
30                        android:resource="@xml/device_filter" />
31         </activity>
32
33         <receiver android:name=".UsbIntentReceiver" android:exported="true">
34             <intent-filter>
35                 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
36                 <action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
37             </intent-filter>
38             <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
39                        android:resource="@xml/device_filter" />
40         </receiver>
41     </application>
42 </manifest>