From 3a9ff52b28598ad9375470096e5c86ddd6ae643b Mon Sep 17 00:00:00 2001 From: drahba <87763283+drahba@users.noreply.github.com> Date: Mon, 17 Jan 2022 22:58:22 +0300 Subject: [PATCH] Update AndroidManifest.tmpl.xml 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..07e30503dd 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">