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: I68bc68f0313b4a8fbd5acb1480470d990bea5aa7
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e311197..32b9114 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -15,30 +15,30 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.android.spare_parts">
- <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" />
- <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
- <uses-permission android:name="android.permission.WRITE_SETTINGS" />
-
- <application android:label="@string/app_label"
- android:icon="@mipmap/app_icon">
+ package="com.android.spare_parts">
+ <uses-permission android:name="android.permission.SET_ANIMATION_SCALE"/>
+ <uses-permission android:name="android.permission.CHANGE_CONFIGURATION"/>
+ <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
- <activity
- android:name="SpareParts"
- android:enabled="false">
+ <application android:label="@string/app_label"
+ android:icon="@mipmap/app_icon">
+
+ <activity android:name="SpareParts"
+ android:enabled="false"
+ android:exported="true">
<intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.DEFAULT" />
- <category android:name="android.intent.category.LAUNCHER" />
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.DEFAULT"/>
+ <category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
- <receiver
- android:name="Enabler">
+ <receiver android:name="Enabler"
+ android:exported="true">
<intent-filter>
- <action android:name="android.intent.action.ADVANCED_SETTINGS" />
+ <action android:name="android.intent.action.ADVANCED_SETTINGS"/>
</intent-filter>
</receiver>
-
+
</application>
</manifest>