diff --git a/build.gradle b/build.gradle
index 37df00d5..5e831210 100644
--- a/build.gradle
+++ b/build.gradle
@@ -43,13 +43,13 @@ ext {
/* Android */
- androidCompileSdkVersion = 30
+ androidCompileSdkVersion = 29
- androidBuildToolsVersion = "30.0.2"
+ androidBuildToolsVersion = "29.0.2"
androidMinSdkVersion = 21 // TODO: fix SSLv3 / TLS and set back to 16
- androidTargetSdkVersion = 30
+ androidTargetSdkVersion = 29
fileChooserDialogVersion = "1.3.0-androidx"
diff --git a/ui/BankingAndroidApp/src/main/AndroidManifest.xml b/ui/BankingAndroidApp/src/main/AndroidManifest.xml
index e8552e3c..0a13382e 100644
--- a/ui/BankingAndroidApp/src/main/AndroidManifest.xml
+++ b/ui/BankingAndroidApp/src/main/AndroidManifest.xml
@@ -10,6 +10,10 @@
+
+
+
+
@@ -25,6 +29,7 @@
android:supportsRtl="true"
android:hardwareAccelerated="true"
android:theme="@style/AppTheme"
+ android:requestLegacyExternalStorage="true"
>
+ // TODO: remove again as soon as bug that no files are displayed in FileChooserDialog (on Android 10 and higher?) is fixed
+ log.info("config.initialDirectory = ${presenter.appSettings.lastSelectedOpenPdfFolder}, Environment.getExternalStorageDirectory() = ${Environment.getExternalStorageDirectory()}, " +
+ "Downloads dir = ${Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)}")
+ log.info("External storage files: ${Environment.getExternalStorageDirectory()?.listFiles()?.map { it.name }}")
+ log.info("getExternalStorageState() = ${Environment.getExternalStorageState()}, isExternalStorageEmulated() = ${Environment.isExternalStorageEmulated()}, " +
+ "isExternalStorageRemovable() = ${Environment.isExternalStorageRemovable()}")
+
val config = FileChooserDialogConfig(listOf("*.pdf"), presenter.appSettings.lastSelectedOpenPdfFolder.toFile())
FileChooserDialog().showOpenSingleFileDialog(activity, permissionsService, config) { _, selectedFile ->