diff --git a/platform/android/Rhodes/jni/src/fileapi.cpp b/platform/android/Rhodes/jni/src/fileapi.cpp index 590752e159..7bf8a1f39d 100644 --- a/platform/android/Rhodes/jni/src/fileapi.cpp +++ b/platform/android/Rhodes/jni/src/fileapi.cpp @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -636,6 +637,11 @@ RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_file_RhoFileApi_nativeInit if (!midReloadStatTable) return; midDeleteRecursively = getJNIClassStaticMethod(env, clsFileApi, "deleteRecursively", "(Ljava/lang/String;)I"); if (!midDeleteRecursively) return; + // Disable fdsan to prevent crashes. + if (android_fdsan_set_error_level) { + android_fdsan_set_error_level(ANDROID_FDSAN_ERROR_LEVEL_WARN_ONCE); + } + // End disabling fdsan #if defined(__aarch64__) const char *libc = "/system/lib64/libc.so";