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": { "artifactType": {
"type": "APK", "type": "APK",
"kind": "Directory" "kind": "Directory"
}, },
"applicationId": "uk.org.openseizuredetector", "applicationId": "uk.org.openseizuredetector",
"variantName": "release", "variantName": "processReleaseResources",
"elements": [ "elements": [
{ {
"type": "SINGLE", "type": "SINGLE",
"filters": [], "filters": [],
"properties": [],
"versionCode": 83, "versionCode": 83,
"versionName": "3.6.1", "versionName": "3.6.2a",
"enabled": true,
"outputFile": "app-release.apk" "outputFile": "app-release.apk"
} }
] ]

View File

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

View File

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

View File

@@ -2,6 +2,7 @@
<resources> <resources>
<string name="app_name">OpenSeizureDetector</string> <string name="app_name">OpenSeizureDetector</string>
<string name="changelog"> <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.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.6 - Added phone sensor data source for testing without a watchs
\n V3.5 - Added support for SMS Annunciator App \n V3.5 - Added support for SMS Annunciator App