mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-15 02:54:09 -04:00
Updates
- android storage assignment - build instructions
This commit is contained in:
parent
4ec4a9911f
commit
ef404e3fc1
4 changed files with 13 additions and 4 deletions
|
@ -78,4 +78,10 @@ test notes:
|
||||||
3) built apks worked on android 7 and android 8.
|
3) built apks worked on android 7 and android 8.
|
||||||
(no newer devices had been available)
|
(no newer devices had been available)
|
||||||
|
|
||||||
LB221118.
|
4) on fdroid, that provided a light weight build server
|
||||||
|
with debian bullseye the following additional packages had
|
||||||
|
to be installed (apt-get):
|
||||||
|
- ant autoconf build-essential ccache gettext imagemagick
|
||||||
|
- libffi-dev libltdl-dev libssl-dev libtool python3-tk
|
||||||
|
- virtualenv wget zlib1g-dev
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ android.api = 32
|
||||||
|
|
||||||
# (str) Extra xml to write directly inside the <manifest><application> tag of AndroidManifest.xml
|
# (str) Extra xml to write directly inside the <manifest><application> tag of AndroidManifest.xml
|
||||||
# use that parameter to provide a filename from where to load your custom XML arguments:
|
# use that parameter to provide a filename from where to load your custom XML arguments:
|
||||||
#android.extra_manifest_application_arguments = ./src/android/extra_manifest_application_arguments.xml
|
android.extra_manifest_application_arguments = ./src/manifest/extra_attributes.xml
|
||||||
|
|
||||||
# (str) Full name including package path of the Java class that implements Python Service
|
# (str) Full name including package path of the Java class that implements Python Service
|
||||||
# use that parameter to set custom Java class instead of PythonService
|
# use that parameter to set custom Java class instead of PythonService
|
||||||
|
|
1
buildozer/src/manifest/extra_attributes.xml
Normal file
1
buildozer/src/manifest/extra_attributes.xml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
android:requestLegacyExternalStorage="true"
|
|
@ -140,10 +140,12 @@ def getprefdir(package):
|
||||||
plat = get_platform()
|
plat = get_platform()
|
||||||
if plat == 'android':
|
if plat == 'android':
|
||||||
from pysollib.kivy.androidperms import getStoragePerm
|
from pysollib.kivy.androidperms import getStoragePerm
|
||||||
|
from android.storage import primary_external_storage_path
|
||||||
|
from android.storage import app_storage_path
|
||||||
if getStoragePerm():
|
if getStoragePerm():
|
||||||
os.environ['HOME'] = '/sdcard'
|
os.environ['HOME'] = primary_external_storage_path()
|
||||||
else:
|
else:
|
||||||
os.environ['HOME'] = '.'
|
os.environ['HOME'] = app_storage_path()
|
||||||
|
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
return win32_getprefdir(package)
|
return win32_getprefdir(package)
|
||||||
|
|
Loading…
Add table
Reference in a new issue