diff options
author | Ashwini Oruganti <ashfall@google.com> | 2020-03-23 15:25:25 -0700 |
---|---|---|
committer | Ashwini Oruganti <ashfall@google.com> | 2020-03-23 15:25:25 -0700 |
commit | 1416833e3697e076f17eccf12d02be30b14da2eb (patch) | |
tree | 5bdb9bbd6f1ce9fc9ef5ef66f7800c6d59a887f6 | |
parent | 391d25e4a27dd73f38a5bc20d96717360e09626f (diff) | |
download | Gallery-1416833e3697e076f17eccf12d02be30b14da2eb.tar.gz |
Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.
These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.
Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: I6bb79c3233a639edc59463a68cc211c4f26e5fdf
-rw-r--r-- | AndroidManifest.xml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 5ebdd07..d2b0947 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -23,6 +23,7 @@ android:configChanges="orientation|keyboardHidden" android:icon="@drawable/ic_launcher_gallery" android:clearTaskOnLaunch="true" + android:exported="true" android:taskAffinity="android.task.pictures"> <intent-filter> <action android:name="android.intent.action.MAIN" /> @@ -33,6 +34,7 @@ <activity android:name="com.android.camera.ImageGallery" android:label="@string/gallery_label" android:configChanges="orientation|keyboardHidden" + android:exported="true" android:icon="@drawable/ic_launcher_gallery"> <intent-filter> <action android:name="android.intent.action.MAIN" /> @@ -76,6 +78,7 @@ android:name="com.android.camera.CropImage" android:process=":CropImage" android:configChanges="orientation|keyboardHidden" + android:exported="true" android:label="@string/crop_label"> <intent-filter android:label="@string/crop_label"> <action android:name="com.android.camera.action.CROP" /> @@ -88,6 +91,7 @@ <activity android:name="com.android.camera.ViewImage" android:label="@string/view_label" android:screenOrientation="behind" + android:exported="true" android:configChanges="orientation|keyboardHidden"> <intent-filter> <action android:name="android.intent.action.VIEW" /> @@ -99,6 +103,7 @@ android:label="@string/movieviewlabel" android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden" + android:exported="true" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"> <intent-filter> <action android:name="android.intent.action.VIEW" /> @@ -129,6 +134,7 @@ </activity> <activity android:name="com.android.camera.GallerySettings" + android:exported="true" android:label="@string/preferences_label"> <intent-filter> <action android:name="android.intent.action.MAIN" /> @@ -138,6 +144,7 @@ <activity android:name="com.android.camera.Wallpaper" android:label="@string/camera_setas_wallpaper" + android:exported="true" android:icon="@drawable/ic_launcher_gallery"> <intent-filter> <action android:name="android.intent.action.ATTACH_DATA" /> @@ -148,6 +155,7 @@ <activity android:name="com.android.camera.PickWallpaper" android:label="@string/camera_pick_wallpaper" + android:exported="true" android:icon="@drawable/ic_launcher_gallery"> <intent-filter> <action android:name="android.intent.action.SET_WALLPAPER" /> @@ -156,6 +164,7 @@ </activity> <receiver android:name="com.android.camera.PhotoAppWidgetProvider" android:label="@string/gadget_title" + android:exported="true" android:icon="@drawable/ic_launcher_gallery"> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> @@ -165,7 +174,8 @@ </receiver> <!-- We configure a widget by asking to pick a photo, then crop it, and store the config internally --> - <activity android:name="com.android.camera.PhotoAppWidgetConfigure"> + <activity android:name="com.android.camera.PhotoAppWidgetConfigure" + android:exported="true"> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" /> </intent-filter> |