1<?xml version="1.0" encoding="utf-8"?>
2
3<manifest android:versionCode="40030"
4        android:versionName="1.1.40030"
5        xmlns:android="http://schemas.android.com/apk/res/android"
6        package="com.android.gallery3d">
7
8    <original-package android:name="com.android.gallery3d" />
9
10    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="28" />
11
12    <permission android:name="com.android.gallery3d.permission.GALLERY_PROVIDER"
13            android:protectionLevel="signatureOrSystem" />
14
15    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
16    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
17    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
18    <uses-permission android:name="android.permission.CAMERA" />
19    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
20    <uses-permission android:name="android.permission.INTERNET" />
21    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
22    <uses-permission android:name="android.permission.NFC" />
23    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
24    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
25    <uses-permission android:name="android.permission.RECORD_AUDIO" />
26    <uses-permission android:name="android.permission.SET_WALLPAPER" />
27    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
28    <uses-permission android:name="android.permission.VIBRATE" />
29    <uses-permission android:name="android.permission.WAKE_LOCK" />
30    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
31    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
32    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
33    <uses-permission android:name="com.android.gallery3d.permission.GALLERY_PROVIDER" />
34    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
35
36    <supports-screens android:smallScreens="false"
37            android:normalScreens="true" android:largeScreens="true"
38            android:anyDensity="true" />
39
40    <application android:icon="@mipmap/ic_launcher_gallery" android:label="@string/app_name"
41            android:name="com.android.gallery3d.app.GalleryAppImpl"
42            android:theme="@style/Theme.Gallery"
43            android:logo="@mipmap/ic_launcher_gallery"
44            android:hardwareAccelerated="true"
45            android:largeHeap="true"
46            android:restoreAnyVersion="true"
47            android:supportsRtl="true"
48            android:requestLegacyExternalStorage="true"
49            usesCleartextHttp="true">
50        <uses-library android:name="com.google.android.media.effects" android:required="false" />
51        <uses-library android:name="org.apache.http.legacy" android:required="false" />
52        <activity android:name="com.android.gallery3d.app.MovieActivity"
53                android:label="@string/movie_view_label"
54                android:exported="true"
55                android:configChanges="orientation|keyboardHidden|screenSize">
56            <intent-filter>
57                <action android:name="android.intent.action.VIEW" />
58                <category android:name="android.intent.category.DEFAULT" />
59                <category android:name="android.intent.category.BROWSABLE" />
60                <data android:scheme="rtsp" />
61             </intent-filter>
62             <intent-filter>
63                <action android:name="android.intent.action.VIEW" />
64                <category android:name="android.intent.category.DEFAULT" />
65                <category android:name="android.intent.category.BROWSABLE" />
66                <data android:scheme="http" />
67                <data android:scheme="https" />
68                <data android:scheme="content" />
69                <data android:scheme="file" />
70                <data android:mimeType="video/mpeg4" />
71                <data android:mimeType="video/mp4" />
72                <data android:mimeType="video/3gp" />
73                <data android:mimeType="video/3gpp" />
74                <data android:mimeType="video/3gpp2" />
75                <data android:mimeType="video/webm" />
76                <data android:mimeType="video/avi" />
77             </intent-filter>
78             <intent-filter>
79                <!-- HTTP live support -->
80                <action android:name="android.intent.action.VIEW" />
81                <category android:name="android.intent.category.DEFAULT" />
82                <category android:name="android.intent.category.BROWSABLE" />
83                <data android:scheme="http" />
84                <data android:scheme="https" />
85                <data android:mimeType="audio/x-mpegurl" />
86                <data android:mimeType="audio/mpegurl" />
87                <data android:mimeType="application/vnd.apple.mpegurl" />
88                <data android:mimeType="application/x-mpegurl" />
89             </intent-filter>
90        </activity>
91
92        <activity android:name="com.android.gallery3d.app.GalleryActivity" android:label="@string/app_name"
93                android:exported="true"
94                android:configChanges="keyboardHidden|orientation|screenSize">
95            <intent-filter>
96                <action android:name="android.intent.action.MAIN" />
97                <category android:name="android.intent.category.DEFAULT" />
98                <category android:name="android.intent.category.LAUNCHER" />
99                <category android:name="android.intent.category.APP_GALLERY" />
100            </intent-filter>
101            <intent-filter>
102                <action android:name="android.intent.action.GET_CONTENT" />
103                <category android:name="android.intent.category.OPENABLE" />
104                <data android:mimeType="vnd.android.cursor.dir/image" />
105            </intent-filter>
106            <intent-filter>
107                <action android:name="android.intent.action.GET_CONTENT" />
108                <category android:name="android.intent.category.OPENABLE" />
109                <category android:name="android.intent.category.DEFAULT" />
110                <data android:mimeType="image/*" />
111                <data android:mimeType="video/*" />
112            </intent-filter>
113            <!-- We do NOT support the PICK intent, we add these intent-filter for
114                 backward compatibility. Handle it as GET_CONTENT. -->
115            <intent-filter>
116                <action android:name="android.intent.action.PICK" />
117                <category android:name="android.intent.category.DEFAULT" />
118                <data android:mimeType="image/*" />
119                <data android:mimeType="video/*" />
120            </intent-filter>
121            <intent-filter>
122                <action android:name="android.intent.action.PICK" />
123                <category android:name="android.intent.category.DEFAULT" />
124                <data android:mimeType="vnd.android.cursor.dir/image" />
125                <data android:mimeType="vnd.android.cursor.dir/video" />
126            </intent-filter>
127            <intent-filter>
128                <action android:name="android.intent.action.VIEW" />
129                <category android:name="android.intent.category.DEFAULT" />
130                <data android:mimeType="vnd.android.cursor.dir/image" />
131                <data android:mimeType="vnd.android.cursor.dir/video" />
132            </intent-filter>
133            <intent-filter>
134                <action android:name="android.intent.action.VIEW" />
135                <action android:name="com.android.camera.action.REVIEW" />
136                <category android:name="android.intent.category.DEFAULT" />
137                <category android:name="android.intent.category.BROWSABLE" />
138                <data android:scheme="" />
139                <data android:scheme="http" />
140                <data android:scheme="https" />
141                <data android:scheme="content" />
142                <data android:scheme="file" />
143                <data android:mimeType="image/*" />
144                <data android:mimeType="application/vnd.google.panorama360+jpg" />
145            </intent-filter>
146            <intent-filter>
147                <action android:name="com.android.camera.action.REVIEW" />
148                <category android:name="android.intent.category.DEFAULT" />
149                <category android:name="android.intent.category.BROWSABLE" />
150                <data android:scheme="http" />
151                <data android:scheme="https" />
152                <data android:scheme="content" />
153                <data android:scheme="file" />
154                <data android:mimeType="video/mpeg4" />
155                <data android:mimeType="video/mp4" />
156                <data android:mimeType="video/3gp" />
157                <data android:mimeType="video/3gpp" />
158                <data android:mimeType="video/3gpp2" />
159            </intent-filter>
160        </activity>
161
162        <!-- This activity acts as a trampoline to the new Gallery activity,
163             so that existing shortcuts are preserved. -->
164        <activity android:name="com.android.gallery3d.app.Gallery"
165            android:exported="true"
166            android:theme="@style/android:Theme.NoDisplay">
167            <intent-filter>
168                <action android:name="android.intent.action.MAIN" />
169                <category android:name="android.intent.category.DEFAULT" />
170            </intent-filter>
171        </activity>
172
173        <!-- we add this activity-alias for shortcut backward compatibility -->
174        <!-- Note: The alias must put after the target activity -->
175        <activity-alias android:name="com.cooliris.media.Gallery"
176                android:targetActivity="com.android.gallery3d.app.GalleryActivity"
177                android:configChanges="keyboardHidden|orientation|screenSize"
178                android:exported="true"
179                android:label="@string/app_name">
180            <intent-filter>
181                <action android:name="android.intent.action.MAIN" />
182            </intent-filter>
183        </activity-alias>
184
185        <!-- This activity acts as a trampoline to the new Camera activity
186             in com.android.camera2 package, so that existing shortcuts
187             are preserved. -->
188        <activity android:name="com.android.camera.CameraActivity"
189            android:icon="@mipmap/ic_launcher_camera"
190            android:label="@string/camera_label"
191            android:taskAffinity="com.android.camera.CameraActivity"
192            android:theme="@style/android:Theme.NoDisplay" />
193        <activity-alias android:name="com.android.camera.CameraLauncher"
194            android:label="@string/camera_label"
195            android:exported="true"
196            android:targetActivity="com.android.camera.CameraActivity">
197            <intent-filter>
198                <action android:name="android.intent.action.MAIN" />
199                <category android:name="android.intent.category.DEFAULT" />
200            </intent-filter>
201        </activity-alias>
202
203         <!-- This activity receives USB_DEVICE_ATTACHED intents and allows importing
204         media from attached MTP devices, like cameras and camera phones -->
205        <activity android:launchMode="singleInstance"
206            android:taskAffinity="" android:name="com.android.gallery3d.ingest.IngestActivity"
207            android:configChanges="orientation|screenSize"
208            android:exported="true"
209            android:label="@string/app_name">
210            <intent-filter>
211                <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
212            </intent-filter>
213            <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
214                android:resource="@xml/device_filter" />
215        </activity>
216        <service android:name="com.android.gallery3d.ingest.IngestService" />
217
218        <activity android:name="com.android.gallery3d.app.Wallpaper"
219                android:configChanges="keyboardHidden|orientation|screenSize"
220                android:exported="true"
221                android:theme="@style/android:Theme.Translucent.NoTitleBar">
222            <intent-filter android:label="@string/app_name">
223                <action android:name="android.intent.action.SET_WALLPAPER" />
224                <category android:name="android.intent.category.DEFAULT" />
225            </intent-filter>
226            <meta-data android:name="android.wallpaper.preview"
227                    android:resource="@xml/wallpaper_picker_preview" />
228        </activity>
229        <activity android:name="com.android.gallery3d.app.TrimVideo"
230                android:exported="true"
231                android:label="@string/trim_label">
232            <intent-filter android:label="@string/crop_label">
233                <action android:name="com.android.camera.action.TRIM" />
234                <category android:name="android.intent.category.DEFAULT" />
235                <data android:scheme="content" />
236                <data android:scheme="file" />
237                <data android:mimeType="video/*" />
238            </intent-filter>
239        </activity>
240
241        <provider
242            android:name="com.android.gallery3d.filtershow.provider.SharedImageProvider"
243            android:authorities="com.android.gallery3d.filtershow.provider.SharedImageProvider"
244            android:grantUriPermissions="true"
245            android:readPermission="com.android.gallery3d.filtershow.permission.READ"
246            android:writePermission="com.android.gallery3d.filtershow.permission.WRITE" />
247
248        <service
249                android:name=".filtershow.pipeline.ProcessingService"
250                android:exported="false" />
251
252        <provider
253            android:name="androidx.core.content.FileProvider"
254            android:authorities="${applicationId}.provider"
255            android:exported="false"
256            android:grantUriPermissions="true">
257            <meta-data
258                android:name="android.support.FILE_PROVIDER_PATHS"
259                android:resource="@xml/provider_paths" />
260        </provider>
261
262        <activity
263            android:name="com.android.gallery3d.filtershow.FilterShowActivity"
264            android:label="@string/title_activity_filter_show"
265            android:theme="@style/Theme.FilterShow"
266            android:exported="true"
267            android:configChanges="keyboardHidden|orientation|screenSize">
268            <intent-filter>
269                <action android:name="android.intent.action.EDIT" />
270                <category android:name="android.intent.category.DEFAULT" />
271                <data android:mimeType="image/*" />
272            </intent-filter>
273            <intent-filter>
274                <action android:name="action_nextgen_edit" />
275                <category android:name="android.intent.category.DEFAULT" />
276                <data android:mimeType="image/*" />
277            </intent-filter>
278        </activity>
279
280        <activity
281            android:name="com.android.gallery3d.filtershow.crop.CropActivity"
282            android:label="@string/crop"
283            android:theme="@style/Theme.Crop"
284            android:exported="true"
285            android:configChanges="keyboardHidden|orientation|screenSize">
286           <intent-filter android:label="@string/crop_label">
287                <action android:name="com.android.camera.action.CROP" />
288                <data android:scheme="content" />
289                <data android:scheme="file" />
290                <data android:mimeType="image/*" />
291                <category android:name="android.intent.category.DEFAULT" />
292                <category android:name="android.intent.category.ALTERNATIVE" />
293                <category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
294            </intent-filter>
295        </activity>
296
297        <uses-library android:name="com.google.android.media.effects"
298                android:required="false" />
299
300        <activity android:name="com.android.gallery3d.settings.GallerySettings"
301                android:theme="@style/Theme.Gallery"
302                android:configChanges="orientation|keyboardHidden|screenSize" />
303
304        <provider android:name="com.android.gallery3d.provider.GalleryProvider"
305                android:syncable="false"
306                android:grantUriPermissions="true"
307                android:exported="true"
308                android:permission="com.android.gallery3d.permission.GALLERY_PROVIDER"
309                android:authorities="com.android.gallery3d.provider" />
310        <provider
311                android:name="com.android.photos.data.PhotoProvider"
312                android:authorities="com.android.gallery3d.photoprovider"
313                android:syncable="false"
314                android:exported="false"/>
315        <activity android:name="com.android.gallery3d.gadget.WidgetClickHandler" />
316        <activity android:name="com.android.gallery3d.app.DialogPicker"
317                android:configChanges="keyboardHidden|orientation|screenSize"
318                android:theme="@style/DialogPickerTheme"/>
319        <activity android:name="com.android.gallery3d.app.AlbumPicker"
320                android:configChanges="keyboardHidden|orientation|screenSize"
321                android:theme="@style/DialogPickerTheme"/>
322        <activity android:name="com.android.gallery3d.gadget.WidgetTypeChooser"
323                android:configChanges="keyboardHidden|orientation|screenSize"
324                android:theme="@style/Theme.Gallery.Dialog"/>
325
326        <receiver android:name="com.android.gallery3d.gadget.PhotoAppWidgetProvider"
327                android:exported="true"
328                android:label="@string/appwidget_title">
329            <intent-filter>
330                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
331            </intent-filter>
332            <meta-data android:name="android.appwidget.provider"
333                    android:resource="@xml/widget_info" />
334        </receiver>
335        <receiver android:name="com.android.gallery3d.app.PackagesMonitor"
336            android:exported="true">
337            <intent-filter>
338                <action android:name="android.intent.action.PACKAGE_ADDED"/>
339                <action android:name="android.intent.action.PACKAGE_REMOVED"/>
340                <action android:name="android.intent.action.PACKAGE_CHANGED"/>
341                <data android:scheme="package"/>
342            </intent-filter>
343        </receiver>
344        <service android:name="com.android.gallery3d.app.PackagesMonitor$AsyncService"
345                 android:permission="android.permission.BIND_JOB_SERVICE"
346                 android:exported="true"/>
347        <service android:name="com.android.gallery3d.gadget.WidgetService"
348                android:permission="android.permission.BIND_REMOTEVIEWS"/>
349        <activity android:name="com.android.gallery3d.gadget.WidgetConfigure"
350                android:configChanges="keyboardHidden|orientation|screenSize"
351                android:exported="true"
352                android:theme="@style/android:Theme.Translucent.NoTitleBar">
353            <intent-filter>
354                <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
355            </intent-filter>
356        </activity>
357        <service android:name="com.android.gallery3d.app.BatchService" />
358
359        <receiver android:name="com.android.camera.DisableCameraReceiver"
360            android:exported="true">
361            <intent-filter>
362                <action android:name="android.intent.action.BOOT_COMPLETED" />
363            </intent-filter>
364        </receiver>
365
366        <service android:name="com.android.camera.MediaSaveService" />
367    </application>
368</manifest>
369