diff options
author | cretin45 <cretin45@gmail.com> | 2015-04-30 15:34:55 -0700 |
---|---|---|
committer | Ed Carrigan <cretin45@gmail.com> | 2015-05-08 17:12:51 +0000 |
commit | 718020d5c8580652bc2890944f42e61e70273a4c (patch) | |
tree | c47179d2fa0c8f4d5321287fad5fa70c63ae46e7 | |
parent | 43906409518dfb3f48a13f089009c9556f699297 (diff) | |
download | android_packages_apps_Gallery2-stable/cm-12.1-YOG3C.tar.gz android_packages_apps_Gallery2-stable/cm-12.1-YOG3C.tar.bz2 android_packages_apps_Gallery2-stable/cm-12.1-YOG3C.zip |
Gallery2: Use a slimmed down manifest on .inc buildsstable/cm-12.1-YOG3C
Change-Id: I482c46947397a5ffb7e7086088bfab1c1c0c6b65
(cherry picked from commit ef794533fb42f842353be20169bc514201d5e69a)
-rwxr-xr-x | Android.mk | 6 | ||||
-rw-r--r-- | slim_manifest/AndroidManifest.xml | 216 |
2 files changed, 222 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk index 8721c36da..9443cfba3 100755 --- a/Android.mk +++ b/Android.mk @@ -32,6 +32,12 @@ ifeq ($(TARGET_TS_MAKEUP), true) LOCAL_REQUIRED_MODULES := libts_detected_face_jni libts_face_beautify_jni endif +ifeq ($(WITH_SLIM_GALLERY2), true) + LOCAL_MANIFEST_FILE := slim_manifest/AndroidManifest.xml +else + LOCAL_MANIFEST_FILE := AndroidManifest.xml +endif + LOCAL_PROGUARD_FLAG_FILES := proguard.flags LOCAL_MULTILIB := 32 diff --git a/slim_manifest/AndroidManifest.xml b/slim_manifest/AndroidManifest.xml new file mode 100644 index 000000000..1359310c0 --- /dev/null +++ b/slim_manifest/AndroidManifest.xml @@ -0,0 +1,216 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. + Not a Contribution. + + Copyright (C) 2007 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<manifest android:versionCode="40030" + android:versionName="1.1.40030" + xmlns:android="http://schemas.android.com/apk/res/android" + package="com.android.gallery3d"> + + <original-package android:name="com.android.gallery3d" /> + + <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" /> + + <permission android:name="com.android.gallery3d.permission.GALLERY_PROVIDER" + android:protectionLevel="signatureOrSystem" /> + + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> + <uses-permission android:name="android.permission.CAMERA" /> + <uses-permission android:name="android.permission.GET_ACCOUNTS" /> + <uses-permission android:name="android.permission.INTERNET" /> + <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> + <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> + <uses-permission android:name="android.permission.NFC" /> + <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> + <uses-permission android:name="android.permission.RECORD_AUDIO" /> + <uses-permission android:name="android.permission.SET_WALLPAPER" /> + <uses-permission android:name="android.permission.USE_CREDENTIALS" /> + <uses-permission android:name="android.permission.VIBRATE" /> + <uses-permission android:name="android.permission.WAKE_LOCK" /> + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> + <uses-permission android:name="android.permission.WRITE_SETTINGS" /> + <uses-permission android:name="android.permission.WRITE_APN_SETTINGS"/> + <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" /> + <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE"/> + <uses-permission android:name="com.android.gallery3d.permission.GALLERY_PROVIDER" /> + <uses-permission android:name="android.permission.BLUETOOTH" /> + + <supports-screens android:smallScreens="false" + android:normalScreens="true" android:largeScreens="true" + android:anyDensity="true" /> + + <application android:icon="@mipmap/ic_launcher_gallery" android:label="@string/app_name" + android:name="com.android.gallery3d.app.GalleryAppImpl" + android:theme="@style/Theme.Gallery" + android:logo="@mipmap/ic_launcher_gallery" + android:hardwareAccelerated="true" + android:largeHeap="true" + android:restoreAnyVersion="true" + android:supportsRtl="true"> + <uses-library android:name="com.google.android.media.effects" android:required="false" /> + + <activity android:name="com.android.gallery3d.app.Wallpaper" + android:configChanges="keyboardHidden|orientation|screenSize" + android:theme="@style/android:Theme.Translucent.NoTitleBar"> + <intent-filter android:label="@string/camera_setas_wallpaper"> + <action android:name="android.intent.action.ATTACH_DATA" /> + <data android:mimeType="image/*" /> + <category android:name="android.intent.category.DEFAULT" /> + </intent-filter> + <intent-filter android:label="@string/app_name"> + <action android:name="android.intent.action.SET_WALLPAPER" /> + <category android:name="android.intent.category.DEFAULT" /> + </intent-filter> + <meta-data android:name="android.wallpaper.preview" + android:resource="@xml/wallpaper_picker_preview" /> + </activity> + <activity android:name="com.android.gallery3d.app.TrimVideo" + android:label="@string/trim_label"> + <intent-filter android:label="@string/crop_label"> + <action android:name="com.android.camera.action.TRIM" /> + <category android:name="android.intent.category.DEFAULT" /> + <data android:scheme="content" /> + <data android:scheme="file" /> + <data android:mimeType="video/*" /> + </intent-filter> + </activity> + + <permission android:name="com.android.gallery3d.filtershow.permission.READ" + android:protectionLevel="signature" /> + + <permission android:name="com.android.gallery3d.filtershow.permission.WRITE" + android:protectionLevel="signature" /> + + <provider + android:name="com.android.gallery3d.filtershow.provider.SharedImageProvider" + android:authorities="com.android.gallery3d.filtershow.provider.SharedImageProvider" + android:grantUriPermissions="true" + android:readPermission="com.android.gallery3d.filtershow.permission.READ" + android:writePermission="com.android.gallery3d.filtershow.permission.WRITE" /> + + <service + android:name=".filtershow.pipeline.ProcessingService" + android:exported="false" /> + + <activity + android:name="com.android.gallery3d.filtershow.FilterShowActivity" + android:label="@string/title_activity_filter_show" + android:theme="@style/Theme.FilterShow" + android:configChanges="keyboardHidden|orientation|screenSize"> + <intent-filter> + <action android:name="android.intent.action.EDIT" /> + <category android:name="android.intent.category.DEFAULT" /> + <data android:mimeType="image/*" /> + </intent-filter> + <intent-filter> + <action android:name="action_nextgen_edit" /> + <category android:name="android.intent.category.DEFAULT" /> + <data android:mimeType="image/*" /> + </intent-filter> + </activity> + + <activity + android:name="com.android.gallery3d.filtershow.crop.CropActivity" + android:label="@string/crop" + android:theme="@style/Theme.Crop" + android:configChanges="keyboardHidden|orientation|screenSize"> + <intent-filter android:label="@string/crop_label"> + <action android:name="com.android.camera.action.CROP" /> + <data android:scheme="http" /> + <data android:scheme="https" /> + <data android:scheme="content" /> + <data android:scheme="file" /> + <data android:mimeType="image/*" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.ALTERNATIVE" /> + <category android:name="android.intent.category.SELECTED_ALTERNATIVE" /> + </intent-filter> + </activity> + + <uses-library android:name="com.google.android.media.effects" + android:required="false" /> + + <activity android:name="com.android.gallery3d.settings.GallerySettings" + android:theme="@style/Theme.Gallery" + android:configChanges="orientation|keyboardHidden|screenSize" /> + + <activity android:name="com.android.gallery3d.util.ViewGifImage" + android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" + android:configChanges="orientation|keyboardHidden|screenSize|keyboard|navigation"> + <intent-filter> + <action android:name="com.android.gallery3d.VIEW_GIF" /> + <data android:mimeType="image/gif" /> + <category android:name="android.intent.category.DEFAULT" /> + </intent-filter> + </activity> + + <provider android:name="com.android.gallery3d.provider.GalleryProvider" + android:syncable="false" + android:grantUriPermissions="true" + android:exported="true" + android:permission="com.android.gallery3d.permission.GALLERY_PROVIDER" + android:authorities="com.android.gallery3d.provider" /> + <provider + android:name="com.android.photos.data.PhotoProvider" + android:authorities="com.android.gallery3d.photoprovider" + android:syncable="false" + android:exported="false"/> + <activity android:name="com.android.gallery3d.gadget.WidgetClickHandler" /> + <activity android:name="com.android.gallery3d.app.DialogPicker" + android:configChanges="keyboardHidden|orientation|screenSize" + android:theme="@style/DialogPickerTheme"/> + <activity android:name="com.android.gallery3d.app.AlbumPicker" + android:configChanges="keyboardHidden|orientation|screenSize" + android:theme="@style/DialogPickerTheme"/> + <activity android:name="com.android.gallery3d.gadget.WidgetTypeChooser" + android:configChanges="keyboardHidden|orientation|screenSize" + android:theme="@style/Theme.Gallery.Dialog"/> + + <receiver android:name="com.android.gallery3d.gadget.PhotoAppWidgetProvider" + android:label="@string/appwidget_title"> + <intent-filter> + <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> + </intent-filter> + <meta-data android:name="android.appwidget.provider" + android:resource="@xml/widget_info" /> + </receiver> + <receiver android:name="com.android.gallery3d.app.PackagesMonitor"> + <intent-filter> + <action android:name="android.intent.action.PACKAGE_ADDED"/> + <action android:name="android.intent.action.PACKAGE_REMOVED"/> + <action android:name="android.intent.action.PACKAGE_CHANGED"/> + <data android:scheme="package"/> + </intent-filter> + </receiver> + <service android:name="com.android.gallery3d.app.PackagesMonitor$AsyncService"/> + <service android:name="com.android.gallery3d.gadget.WidgetService" + android:permission="android.permission.BIND_REMOTEVIEWS"/> + <activity android:name="com.android.gallery3d.gadget.WidgetConfigure" + android:configChanges="keyboardHidden|orientation|screenSize" + android:theme="@style/android:Theme.Translucent.NoTitleBar"> + <intent-filter> + <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" /> + </intent-filter> + </activity> + <service android:name="com.android.gallery3d.app.BatchService" /> + + </application> +</manifest> |