V3.6.2a - possible fix of Android 10 log file permissions problem?

This commit is contained in:
Graham Jones
2020-12-10 13:50:41 +00:00
parent 277f6f68c5
commit c4094b25dd
6 changed files with 6 additions and 15 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1,19 +1,17 @@
{
"version": 1,
"version": 2,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "uk.org.openseizuredetector",
"variantName": "release",
"variantName": "processReleaseResources",
"elements": [
{
"type": "SINGLE",
"filters": [],
"properties": [],
"versionCode": 83,
"versionName": "3.6.1",
"enabled": true,
"versionName": "3.6.2a",
"outputFile": "app-release.apk"
}
]

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
package="uk.org.openseizuredetector"
android:versionCode="83"
android:versionName="3.6.2">
android:versionName="3.6.2a">
<!-- android:allowBackup="false" -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

View File

@@ -430,15 +430,7 @@ public class OsdUtil implements ActivityCompat.OnRequestPermissionsResultCallbac
public File getDataStorageDir() {
// Get the directory for the user's public directory.
File file =
new File(Environment.getExternalStorageDirectory()
, "OpenSeizureDetector");
if (!file.isDirectory()) {
Log.i(TAG, "getDataStorageDir() - creating directory");
if(!file.mkdirs()) {
Log.e(TAG, "Failed to create directory");
}
}
File file = mContext.getExternalFilesDir(null);
return file;
}

View File

@@ -2,6 +2,7 @@
<resources>
<string name="app_name">OpenSeizureDetector</string>
<string name="changelog">
\n V3.6.2 - Fix of issue with log file permissions on some Android 10 devices.
\n V3.6.1 - Possible fix for issue with shutting down system and expanded Polish translation to all settings screens.
\n V3.6 - Added phone sensor data source for testing without a watchs
\n V3.5 - Added support for SMS Annunciator App