summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshwini Oruganti <ashfall@google.com>2020-03-23 15:43:44 -0700
committerAshwini Oruganti <ashfall@google.com>2020-03-23 15:43:44 -0700
commitdb937558b4f8dd93867c6e3019243155c14ac02e (patch)
tree5a27ddbef54f10c8ec545f0f5f82e03002a84b3d
parent277f2db1a9099d5aaf96d4f3ca8daaeeeeef4e6f (diff)
downloadProtips-db937558b4f8dd93867c6e3019243155c14ac02e.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: I83e7ea32663cfd126590153af0f4957024fe1567
-rw-r--r--AndroidManifest.xml29
1 files changed, 17 insertions, 12 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 145aee1..f8a512a 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,23 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.android.protips"
- android:versionCode="1"
- android:versionName="1.0">
+ package="com.android.protips"
+ android:versionCode="1"
+ android:versionName="1.0">
- <uses-sdk android:minSdkVersion="3" />
+ <uses-sdk android:minSdkVersion="3"/>
<application android:label="@string/widget_name"
- android:icon="@drawable/icon">
- <receiver android:name=".ProtipWidget" android:label="@string/widget_name">
+ android:icon="@drawable/icon">
+ <receiver android:name=".ProtipWidget"
+ android:label="@string/widget_name"
+ android:exported="true">
<intent-filter>
- <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
- <action android:name="com.android.protips.NEXT_TIP" />
- <action android:name="com.android.protips.HEE_HEE" />
+ <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
+ <action android:name="com.android.protips.NEXT_TIP"/>
+ <action android:name="com.android.protips.HEE_HEE"/>
</intent-filter>
<intent-filter>
- <action android:name="android.provider.Telephony.SECRET_CODE" />
- <data android:scheme="android_secret_code" android:host="8477" />
+ <action android:name="android.provider.Telephony.SECRET_CODE"/>
+ <data android:scheme="android_secret_code"
+ android:host="8477"/>
</intent-filter>
- <meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_build" />
+ <meta-data android:name="android.appwidget.provider"
+ android:resource="@xml/widget_build"/>
</receiver>
</application>
</manifest>