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: I64ad04cea80f1f8f09b66b04bd21d283e12d3d48
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e51ac15..d6d7759 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,38 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.android.wallpaperpicker"
- android:versionCode="1"
- android:versionName="1.0"
- >
+ package="com.android.wallpaperpicker"
+ android:versionCode="1"
+ android:versionName="1.0">
- <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="29" />
+ <uses-sdk android:minSdkVersion="16"
+ android:targetSdkVersion="29"/>
- <uses-permission android:name="android.permission.SET_WALLPAPER" />
+ <uses-permission android:name="android.permission.SET_WALLPAPER"/>
<application>
- <activity
- android:name="com.android.wallpaperpicker.WallpaperPickerActivity"
- android:theme="@style/WallpaperTheme.Picker"
- android:label="@string/pick_wallpaper"
- android:icon="@mipmap/ic_launcher_wallpaper"
- android:finishOnCloseSystemDialogs="true">
+ <activity android:name="com.android.wallpaperpicker.WallpaperPickerActivity"
+ android:theme="@style/WallpaperTheme.Picker"
+ android:label="@string/pick_wallpaper"
+ android:icon="@mipmap/ic_launcher_wallpaper"
+ android:finishOnCloseSystemDialogs="true"
+ android:exported="true">
<intent-filter>
- <action android:name="android.intent.action.SET_WALLPAPER" />
- <category android:name="android.intent.category.DEFAULT" />
+ <action android:name="android.intent.action.SET_WALLPAPER"/>
+ <category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
- <activity
- android:name="com.android.wallpaperpicker.WallpaperCropActivity"
- android:theme="@style/WallpaperTheme"
- android:label="@string/crop_wallpaper"
- android:icon="@mipmap/ic_launcher_wallpaper"
- android:finishOnCloseSystemDialogs="true">
+ <activity android:name="com.android.wallpaperpicker.WallpaperCropActivity"
+ android:theme="@style/WallpaperTheme"
+ android:label="@string/crop_wallpaper"
+ android:icon="@mipmap/ic_launcher_wallpaper"
+ android:finishOnCloseSystemDialogs="true"
+ android:exported="true">
<intent-filter>
- <action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER" />
- <category android:name="android.intent.category.DEFAULT" />
- <data android:mimeType="image/*" />
+ <action android:name="android.service.wallpaper.CROP_AND_SET_WALLPAPER"/>
+ <category android:name="android.intent.category.DEFAULT"/>
+ <data android:mimeType="image/*"/>
</intent-filter>
</activity>
</application>