diff options
author | Ashwini Oruganti <ashfall@google.com> | 2020-03-23 14:11:12 -0700 |
---|---|---|
committer | Ashwini Oruganti <ashfall@google.com> | 2020-03-23 14:11:12 -0700 |
commit | 21ee272bc207e34de8094a0aca8876be6546ece5 (patch) | |
tree | 69d3c87cb9a33deb24e53db947c7e37584e7642e /TestMediaApp/AndroidManifest.xml | |
parent | 614c639c73544813d59ee0490a2b934cae7210b5 (diff) | |
download | tests-21ee272bc207e34de8094a0aca8876be6546ece5.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: I28be966bd827bf7d7372b4fc4743021d60f49517
Diffstat (limited to 'TestMediaApp/AndroidManifest.xml')
-rw-r--r-- | TestMediaApp/AndroidManifest.xml | 66 |
1 files changed, 32 insertions, 34 deletions
diff --git a/TestMediaApp/AndroidManifest.xml b/TestMediaApp/AndroidManifest.xml index 911145e..59069c4 100644 --- a/TestMediaApp/AndroidManifest.xml +++ b/TestMediaApp/AndroidManifest.xml @@ -14,51 +14,47 @@ * 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.android.car.media.testmediaapp" > + package="com.android.car.media.testmediaapp"> - <uses-feature - android:name="android.hardware.type.automotive" - android:required="true"/> + <uses-feature android:name="android.hardware.type.automotive" + android:required="true"/> - <application - android:allowBackup="true" - android:label="@string/app_name" - android:supportsRtl="true" - android:theme="@style/TestMediaAppTheme" > + <application android:allowBackup="true" + android:label="@string/app_name" + android:supportsRtl="true" + android:theme="@style/TestMediaAppTheme"> <!-- This provider is read-only, only returns album art, and is not a security risk --> - <provider - android:name=".TmaPublicProvider" - android:exported="true" - android:authorities="com.android.car.media.testmediaapp.public"/> + <provider android:name=".TmaPublicProvider" + android:exported="true" + android:authorities="com.android.car.media.testmediaapp.public"/> - <service - android:name=".TmaBrowser" - android:icon="@drawable/ic_app_icon" - android:exported="true" - android:label="@string/app_name"> + <service android:name=".TmaBrowser" + android:icon="@drawable/ic_app_icon" + android:exported="true" + android:label="@string/app_name"> <intent-filter> - <action android:name="android.media.browse.MediaBrowserService" /> + <action android:name="android.media.browse.MediaBrowserService"/> <action android:name="android.intent.action.MEDIA_BUTTON"/> </intent-filter> </service> - <service - android:name=".TmaBrowser2" - android:icon="@mipmap/ic_launcher" - android:exported="true" - android:label="@string/broken_service"> + <service android:name=".TmaBrowser2" + android:icon="@mipmap/ic_launcher" + android:exported="true" + android:label="@string/broken_service"> <intent-filter> - <action android:name="android.media.browse.MediaBrowserService" /> + <action android:name="android.media.browse.MediaBrowserService"/> <action android:name="android.intent.action.MEDIA_BUTTON"/> </intent-filter> </service> - <activity - android:name=".prefs.TmaPrefsActivity" - android:label="@string/app_name"> + <activity android:name=".prefs.TmaPrefsActivity" + android:label="@string/app_name" + android:exported="true"> <intent-filter> <action android:name="android.intent.action.APPLICATION_PREFERENCES"/> </intent-filter> @@ -68,18 +64,20 @@ <!-- To use the app on a phone. --> <meta-data android:name="com.google.android.gms.car.application" - android:resource="@xml/automotive_app_desc"/> + android:resource="@xml/automotive_app_desc"/> - <activity android:name=".phone.TmaLauncherActivity" > + <activity android:name=".phone.TmaLauncherActivity" + 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> - <receiver android:name="androidx.media.session.MediaButtonReceiver" > + <receiver android:name="androidx.media.session.MediaButtonReceiver" + android:exported="true"> <intent-filter> - <action android:name="android.intent.action.MEDIA_BUTTON" /> + <action android:name="android.intent.action.MEDIA_BUTTON"/> </intent-filter> </receiver> |