1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
- android storage assignment
- build instructions
This commit is contained in:
lufebe16 2022-12-14 10:46:37 +01:00
parent 4ec4a9911f
commit ef404e3fc1
4 changed files with 13 additions and 4 deletions

View file

@ -78,4 +78,10 @@ test notes:
3) built apks worked on android 7 and android 8.
(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

View file

@ -151,7 +151,7 @@ android.api = 32
# (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:
#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
# use that parameter to set custom Java class instead of PythonService

View file

@ -0,0 +1 @@
android:requestLegacyExternalStorage="true"

View file

@ -140,10 +140,12 @@ def getprefdir(package):
plat = get_platform()
if plat == 'android':
from pysollib.kivy.androidperms import getStoragePerm
from android.storage import primary_external_storage_path
from android.storage import app_storage_path
if getStoragePerm():
os.environ['HOME'] = '/sdcard'
os.environ['HOME'] = primary_external_storage_path()
else:
os.environ['HOME'] = '.'
os.environ['HOME'] = app_storage_path()
if os.name == "nt":
return win32_getprefdir(package)