diff options
author | Ashwini Oruganti <ashfall@google.com> | 2020-03-24 16:01:07 -0700 |
---|---|---|
committer | Ashwini Oruganti <ashfall@google.com> | 2020-03-24 16:01:07 -0700 |
commit | 27c234dfe9a5b8b8e90ac11a110550eafb7cdf2b (patch) | |
tree | e3f20b80d2e7468658e58643d3b764f1c8a63f82 /power_profile | |
parent | 8b20af65492c40293b4ab351fecbf55bc1ea8294 (diff) | |
download | extras-27c234dfe9a5b8b8e90ac11a110550eafb7cdf2b.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 future versions. 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: I273c2fa10b59183a0e3e540fbc2bb6e71fbf28a8
Diffstat (limited to 'power_profile')
3 files changed, 28 insertions, 25 deletions
diff --git a/power_profile/camera_avg/Application/src/main/AndroidManifest.xml b/power_profile/camera_avg/Application/src/main/AndroidManifest.xml index 65aa029c..a4c73a33 100644 --- a/power_profile/camera_avg/Application/src/main/AndroidManifest.xml +++ b/power_profile/camera_avg/Application/src/main/AndroidManifest.xml @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2014 The Android Open Source Project @@ -16,23 +16,24 @@ --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.example.android.powerprofile.cameraavg"> + package="com.example.android.powerprofile.cameraavg"> - <uses-permission android:name="android.permission.CAMERA" /> + <uses-permission android:name="android.permission.CAMERA"/> - <uses-feature android:name="android.hardware.camera" /> - <uses-feature android:name="android.hardware.camera.autofocus" /> + <uses-feature android:name="android.hardware.camera"/> + <uses-feature android:name="android.hardware.camera.autofocus"/> <application android:allowBackup="true" - android:label="@string/app_name" - android:icon="@drawable/ic_launcher" - android:theme="@style/Theme.AppCompat.Light.NoActionBar"> + android:label="@string/app_name" + android:icon="@drawable/ic_launcher" + android:theme="@style/Theme.AppCompat.Light.NoActionBar"> <activity android:name=".CameraActivity" - android:label="@string/app_name"> + android:label="@string/app_name" + 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> </activity> </application> diff --git a/power_profile/camera_flashlight/Application/src/main/AndroidManifest.xml b/power_profile/camera_flashlight/Application/src/main/AndroidManifest.xml index 11b73c7b..02f0e831 100644 --- a/power_profile/camera_flashlight/Application/src/main/AndroidManifest.xml +++ b/power_profile/camera_flashlight/Application/src/main/AndroidManifest.xml @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2014 The Android Open Source Project @@ -16,16 +16,17 @@ --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.example.android.powerprofile.cameraflashlight"> + package="com.example.android.powerprofile.cameraflashlight"> <application android:allowBackup="true" - android:label="@string/app_name"> + android:label="@string/app_name"> <activity android:name=".FlashlightActivity" - android:label="@string/app_name"> + android:label="@string/app_name" + 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> </activity> </application> diff --git a/power_profile/gps_on/Application/src/main/AndroidManifest.xml b/power_profile/gps_on/Application/src/main/AndroidManifest.xml index 607fc200..83f40411 100644 --- a/power_profile/gps_on/Application/src/main/AndroidManifest.xml +++ b/power_profile/gps_on/Application/src/main/AndroidManifest.xml @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2014 The Android Open Source Project @@ -16,20 +16,21 @@ --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.example.android.powerprofile.gpson"> + package="com.example.android.powerprofile.gpson"> - <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> - <uses-feature android:name="android.hardware.location.gps" /> + <uses-feature android:name="android.hardware.location.gps"/> <application android:allowBackup="true" - android:label="@string/app_name"> + android:label="@string/app_name"> <activity android:name=".GpsActivity" - android:label="@string/app_name"> + android:label="@string/app_name" + 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> </activity> </application> |