diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index e4ce3bb29f..006af4f3a0 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -44,8 +44,7 @@ android:label="@string/app_name" android:logo="@drawable/ic_banner" android:isGame="true" - android:banner="@drawable/tv_banner" - android:requestLegacyExternalStorage="true"> + android:banner="@drawable/tv_banner"> = 14000000) { @@ -59,7 +59,7 @@ android { new File("versioncode.txt").write(androidGitVersion.code().toString()) minSdkVersion 9 - targetSdkVersion 29 + targetSdkVersion 30 if (project.hasProperty("ANDROID_VERSION_CODE") && project.hasProperty("ANDROID_VERSION_NAME")) { versionCode ANDROID_VERSION_CODE versionName ANDROID_VERSION_NAME diff --git a/android/jni/app-android.cpp b/android/jni/app-android.cpp index 2fad162248..c1fe1b5699 100644 --- a/android/jni/app-android.cpp +++ b/android/jni/app-android.cpp @@ -96,7 +96,7 @@ struct JNIEnv {}; bool useCPUThread = true; // We'll turn this on when we target Android 12. -bool useScopedStorageIfRequired = false; +bool useScopedStorageIfRequired = true; enum class EmuThreadState { DISABLED, @@ -499,7 +499,7 @@ bool System_GetPropertyBool(SystemProperty prop) { case SYSPROP_CAN_JIT: return true; case SYSPROP_ANDROID_SCOPED_STORAGE: - if (useScopedStorageIfRequired && androidVersion >= 28) + if (useScopedStorageIfRequired && androidVersion >= 29) // 29 is Android 10. return true; default: return false;