diff options
author | Ashwini Oruganti <ashfall@google.com> | 2020-03-23 15:45:56 -0700 |
---|---|---|
committer | Ashwini Oruganti <ashfall@google.com> | 2020-03-23 15:45:56 -0700 |
commit | ef1a285ed636f35f3488dc464bf3737d4f22f4d8 (patch) | |
tree | 6259701826ebab20f5c66fa50c6b04ff5f58c32b | |
parent | 414210769cbe3ab244ec4af9eef1648e4933f863 (diff) | |
download | SampleLocationAttribution-ef1a285ed636f35f3488dc464bf3737d4f22f4d8.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: Iac3b317de596c56fc01f83ae018ee8d9ba840590
-rw-r--r-- | AndroidManifest.xml | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 04029ca..c6acaf6 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -14,32 +14,35 @@ See the License for the specific language governing permissions and limitations under the License. --> + <manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.example.android.locationattribution"> + package="com.example.android.locationattribution"> - <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> - <!-- Requires permission "Allow all the time" and not just "Allow only while the app is in use" --> - <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> + <!-- Requires permission "Allow all the time" + and not just "Allow only while the app is in use" + --> + <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/> - <application - android:allowBackup="true" - android:icon="@mipmap/ic_launcher" - android:label="@string/app_name" - android:roundIcon="@mipmap/ic_launcher_round" - android:supportsRtl="true" - android:theme="@style/AppTheme"> - <activity android:name=".MainActivity"> + <application android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name=".MainActivity" + android:exported="true"> <intent-filter> - <action android:name="android.intent.action.MAIN" /> - <category android:name="android.intent.category.LAUNCHER" /> + <action android:name="android.intent.action.MAIN"/> + <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> <intent-filter> - <action android:name="android.intent.action.APPLICATION_PREFERENCES" /> - <category android:name="android.intent.category.DEFAULT" /> + <action android:name="android.intent.action.APPLICATION_PREFERENCES"/> + <category android:name="android.intent.category.DEFAULT"/> </intent-filter> <intent-filter> - <action android:name="com.example.android.locationattribution.intent.action.NON_FRAMEWORK_LOCATION" /> - <category android:name="android.intent.category.DEFAULT" /> + <action android:name="com.example.android.locationattribution.intent.action.NON_FRAMEWORK_LOCATION"/> + <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> </application> |