Skip to content

Commit 2e55400

Browse files
drahbaaccumulator
authored andcommitted
Update AndroidManifest.tmpl.xml (kivy#2551)
* 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. * 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. * 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. * 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.
1 parent f189e0d commit 2e55400

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
android:label="@string/app_name"
7676
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 %}"
7777
android:screenOrientation="{{ args.orientation }}"
78+
android:exported="true"
7879
{% if args.activity_launch_mode %}
7980
android:launchMode="{{ args.activity_launch_mode }}"
8081
{% endif %}
@@ -101,7 +102,8 @@
101102
{% if args.launcher %}
102103
<activity android:name="org.kivy.android.launcher.ProjectChooser"
103104
android:icon="@mipmap/icon"
104-
android:label="@string/app_name">
105+
android:label="@string/app_name"
106+
android:exported="true">
105107

106108
<intent-filter>
107109
<action android:name="android.intent.action.MAIN" />
@@ -127,7 +129,8 @@
127129
<service android:name="org.kivy.android.billing.BillingReceiver"
128130
android:process=":pythonbilling" />
129131
<receiver android:name="org.kivy.android.billing.BillingReceiver"
130-
android:process=":pythonbillingreceiver">
132+
android:process=":pythonbillingreceiver"
133+
android:exported="false">
131134
<intent-filter>
132135
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
133136
<action android:name="com.android.vending.billing.RESPONSE_CODE" />

pythonforandroid/bootstraps/service_only/build/templates/AndroidManifest.tmpl.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<activity android:name="org.kivy.android.PythonActivity"
6262
android:label="@string/app_name"
6363
android:configChanges="keyboardHidden|orientation{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"
64-
>
64+
android:exported="true">
6565
<intent-filter>
6666
<action android:name="android.intent.action.MAIN" />
6767
<category android:name="android.intent.category.LAUNCHER" />
@@ -86,7 +86,8 @@
8686
<service android:name="org.kivy.android.billing.BillingReceiver"
8787
android:process=":pythonbilling" />
8888
<receiver android:name="org.kivy.android.billing.BillingReceiver"
89-
android:process=":pythonbillingreceiver">
89+
android:process=":pythonbillingreceiver"
90+
android:exported="false">
9091
<intent-filter>
9192
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
9293
<action android:name="com.android.vending.billing.RESPONSE_CODE" />

pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
android:label="@string/app_name"
6666
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 %}"
6767
android:screenOrientation="{{ args.orientation }}"
68+
android:exported="true"
6869
{% if args.activity_launch_mode %}
6970
android:launchMode="{{ args.activity_launch_mode }}"
7071
{% endif %}
@@ -91,7 +92,8 @@
9192
<service android:name="org.kivy.android.billing.BillingReceiver"
9293
android:process=":pythonbilling" />
9394
<receiver android:name="org.kivy.android.billing.BillingReceiver"
94-
android:process=":pythonbillingreceiver">
95+
android:process=":pythonbillingreceiver"
96+
android:exported="false">
9597
<intent-filter>
9698
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
9799
<action android:name="com.android.vending.billing.RESPONSE_CODE" />

0 commit comments

Comments
 (0)