From 36cbcb30b69fd8cbe703ff356f05d3e1ebd4c759 Mon Sep 17 00:00:00 2001 From: bachinger Date: Fri, 19 Feb 2021 10:57:47 +0000 Subject: [PATCH] Set explicit export attributes in all demo apps Starting with Android 12 all components of an app that have an intent filter need to have an explicit attribute android:export that is set to either true or false. If a component filters for the MAIN or a VIEW action it needs the attribute explicitly set to true. Prior to Android 12 these were exported implicitly. See https://medium.com/androiddevelopers/lets-be-explicit-about-our-intent-filters-c5dbe2dbdce0 PiperOrigin-RevId: 358368785 --- demos/cast/src/main/AndroidManifest.xml | 3 ++- demos/main/src/main/AndroidManifest.xml | 6 ++++-- demos/surface/src/main/AndroidManifest.xml | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/demos/cast/src/main/AndroidManifest.xml b/demos/cast/src/main/AndroidManifest.xml index d92d9e2303..6bb16ed734 100644 --- a/demos/cast/src/main/AndroidManifest.xml +++ b/demos/cast/src/main/AndroidManifest.xml @@ -31,7 +31,8 @@ + android:theme="@style/Theme.AppCompat" + android:exported="true"> diff --git a/demos/main/src/main/AndroidManifest.xml b/demos/main/src/main/AndroidManifest.xml index 053665502b..39a2ec1709 100644 --- a/demos/main/src/main/AndroidManifest.xml +++ b/demos/main/src/main/AndroidManifest.xml @@ -41,7 +41,8 @@ + android:theme="@style/Theme.AppCompat" + android:exported="true"> @@ -65,7 +66,8 @@ android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode" android:launchMode="singleTop" android:label="@string/application_name" - android:theme="@style/PlayerTheme"> + android:theme="@style/PlayerTheme" + android:exported="true"> diff --git a/demos/surface/src/main/AndroidManifest.xml b/demos/surface/src/main/AndroidManifest.xml index c33a9e646b..5fd2890915 100644 --- a/demos/surface/src/main/AndroidManifest.xml +++ b/demos/surface/src/main/AndroidManifest.xml @@ -21,7 +21,8 @@ + android:label="@string/application_name" + android:exported="true">