diff --git a/src/homeform.cpp b/src/homeform.cpp index d72941e7f..ccd21a1bf 100644 --- a/src/homeform.cpp +++ b/src/homeform.cpp @@ -546,8 +546,8 @@ homeform::homeform(QQmlApplicationEngine *engine, bluetooth *bl) { } #ifdef Q_OS_ANDROID - // Android 14 restrics access to /Android/data folder - if (QOperatingSystemVersion::current() >= QOperatingSystemVersion(QOperatingSystemVersion::Android, 14)) { + // from sept 2023 android restrics access to /Android/data folder + { QDirIterator itAndroid(getAndroidDataAppDir(), QDirIterator::Subdirectories); QDir().mkdir(getWritableAppDir()); QDir().mkdir(getProfileDir()); @@ -868,13 +868,9 @@ void homeform::pelotonWorkoutChanged(const QString &name, const QString &instruc QString homeform::getWritableAppDir() { QString path = QLatin1String(""); #if defined(Q_OS_ANDROID) - // Android 14 restrics access to /Android/data folder - if (QOperatingSystemVersion::current() >= QOperatingSystemVersion(QOperatingSystemVersion::Android, 14)) { - path = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/QZ/"; - QDir().mkdir(path); - } else { - path = getAndroidDataAppDir() + "/"; - } + // from sept 2023 android restrics access to /Android/data folder + path = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/QZ/"; + QDir().mkdir(path); #elif defined(Q_OS_MACOS) || defined(Q_OS_OSX) path = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation) + "/"; #elif defined(Q_OS_IOS)