Skip to content

Commit e6cf4a9

Browse files
tshirtmanAndreMiras
authored andcommitted
allow setting the value for android:allowBackup
1 parent 0092491 commit e6cf4a9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

doc/source/recipes.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ be compiled for Android with the correct architecture.
1313

1414
python-for-android comes with many recipes for popular modules. No
1515
recipe is necessary for Python modules which have no
16-
compiled components; these are installed automaticaly via pip.
17-
16+
compiled components; these are installed automatically via pip.
1817
If you are new to building recipes, it is recommended that you first
1918
read all of this page, at least up to the Recipe reference
2019
documentation. The different recipe sections include a number of

pythonforandroid/bootstraps/sdl2/build/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ def parse_args(args=None):
518518
help='Add this Java class as an Activity to the manifest.')
519519
ap.add_argument('--activity-launch-mode', dest='activity_launch_mode',
520520
help='Set the launch mode of the main activity in the manifest.')
521+
ap.add_argument('--allow-backup', dest='allow_backup', default='true',
522+
help="if set to 'false', then android won't backup the application.")
521523

522524
if args is None:
523525
args = sys.argv[1:]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
-->
5454
<application android:label="@string/app_name"
5555
android:icon="@drawable/icon"
56-
android:allowBackup="true"
56+
android:allowBackup="{{ args.allow_backup }}"
5757
android:theme="@android:style/Theme.NoTitleBar{% if not args.window %}.Fullscreen{% endif %}"
5858
android:hardwareAccelerated="true" >
5959

0 commit comments

Comments
 (0)