From 3acbfa64efd2b62da4b96ebd1107e6fbf4501120 Mon Sep 17 00:00:00 2001
From: drahba <87763283+drahba@users.noreply.github.com>
Date: Sun, 6 Feb 2022 01:07:07 +0300
Subject: [PATCH 1/4] Update AndroidManifest.tmpl.xml
For the apps targeting api level 31 (A12) and contain activities, services, or broadcast receivers that use intent filters, you must explicitly declare the android:exported attribute for these app components. If an activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't be installed on a device that runs Android 12 or higher. (https://developer.android.com/about/versions/12/behavior-changes-12). I added three changes accordingly with the requirements.
---
.../webview/build/templates/AndroidManifest.tmpl.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml
index 9691bec9fb..b922560c7f 100644
--- a/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml
+++ b/pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml
@@ -65,6 +65,7 @@
android:label="@string/app_name"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode{% if args.min_sdk_version >= 8 %}|uiMode{% endif %}{% if args.min_sdk_version >= 13 %}|screenSize|smallestScreenSize{% endif %}{% if args.min_sdk_version >= 17 %}|layoutDirection{% endif %}{% if args.min_sdk_version >= 24 %}|density{% endif %}"
android:screenOrientation="{{ args.orientation }}"
+ android:exported="true"
{% if args.activity_launch_mode %}
android:launchMode="{{ args.activity_launch_mode }}"
{% endif %}
@@ -91,7 +92,8 @@
+ android:process=":pythonbillingreceiver"
+ android:exported="false">
From 102b9501a745e8ab69c43595094fda73bdbd1ac2 Mon Sep 17 00:00:00 2001
From: drahba <87763283+drahba@users.noreply.github.com>
Date: Sun, 6 Feb 2022 01:08:57 +0300
Subject: [PATCH 2/4] Update AndroidManifest.tmpl.xml
For the apps targeting api level 31 (A12) and contain activities, services, or broadcast receivers that use intent filters, you must explicitly declare the android:exported attribute for these app components. If an activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't be installed on a device that runs Android 12 or higher. (https://developer.android.com/about/versions/12/behavior-changes-12). I added three changes accordingly with the requirements.
---
.../service_only/build/templates/AndroidManifest.tmpl.xml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pythonforandroid/bootstraps/service_only/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/service_only/build/templates/AndroidManifest.tmpl.xml
index 05ee254c9e..e3f17842cc 100644
--- a/pythonforandroid/bootstraps/service_only/build/templates/AndroidManifest.tmpl.xml
+++ b/pythonforandroid/bootstraps/service_only/build/templates/AndroidManifest.tmpl.xml
@@ -61,7 +61,7 @@
+ android:exported="true">
@@ -86,7 +86,8 @@
+ android:process=":pythonbillingreceiver"
+ android:exported="false">
From 73e1f27ffda0dbb5fcc6986501ed17c101c5cf51 Mon Sep 17 00:00:00 2001
From: drahba <87763283+drahba@users.noreply.github.com>
Date: Sun, 6 Feb 2022 01:10:59 +0300
Subject: [PATCH 3/4] Update AndroidManifest.tmpl.xml
For the apps targeting api level 31 (A12) and contain activities, services, or broadcast receivers that use intent filters, you must explicitly declare the android:exported attribute for these app components. If an activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't be installed on a device that runs Android 12 or higher. (https://developer.android.com/about/versions/12/behavior-changes-12). I added three changes accordingly with the requirements.
---
.../sdl2/build/templates/AndroidManifest.tmpl.xml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml
index dae6e1197a..9da2253e51 100644
--- a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml
+++ b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml
@@ -75,6 +75,7 @@
android:label="@string/app_name"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode{% if args.min_sdk_version >= 8 %}|uiMode{% endif %}{% if args.min_sdk_version >= 13 %}|screenSize|smallestScreenSize{% endif %}{% if args.min_sdk_version >= 17 %}|layoutDirection{% endif %}{% if args.min_sdk_version >= 24 %}|density{% endif %}"
android:screenOrientation="{{ args.orientation }}"
+ android:exported="true"
{% if args.activity_launch_mode %}
android:launchMode="{{ args.activity_launch_mode }}"
{% endif %}
@@ -101,7 +102,8 @@
{% if args.launcher %}
+ android:label="@string/app_name"
+ android:exported="true">
@@ -127,7 +129,8 @@
+ android:process=":pythonbillingreceiver"
+ android:exported="false">
From 3dab253924ef4b737de3c0941f0cee4529d42ba0 Mon Sep 17 00:00:00 2001
From: drahba <87763283+drahba@users.noreply.github.com>
Date: Sun, 6 Feb 2022 23:16:34 +0300
Subject: [PATCH 4/4] Update AndroidManifest.tmpl.xml
For the apps targeting api level 31 (A12) and contain activities, services, or broadcast receivers that use intent filters, you must explicitly declare the android:exported attribute for these app components. If an activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't be installed on a device that runs Android 12 or higher. (https://developer.android.com/about/versions/12/behavior-changes-12). I added three changes accordingly with the requirements.
---
.../sdl2/build/templates/AndroidManifest.tmpl.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml
index 9da2253e51..07e30503dd 100644
--- a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml
+++ b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml
@@ -75,7 +75,7 @@
android:label="@string/app_name"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode{% if args.min_sdk_version >= 8 %}|uiMode{% endif %}{% if args.min_sdk_version >= 13 %}|screenSize|smallestScreenSize{% endif %}{% if args.min_sdk_version >= 17 %}|layoutDirection{% endif %}{% if args.min_sdk_version >= 24 %}|density{% endif %}"
android:screenOrientation="{{ args.orientation }}"
- android:exported="true"
+ android:exported="true"
{% if args.activity_launch_mode %}
android:launchMode="{{ args.activity_launch_mode }}"
{% endif %}
@@ -103,7 +103,7 @@
+ android:exported="true">
@@ -130,7 +130,7 @@
android:process=":pythonbilling" />
+ android:exported="false">