diff --git a/app/src/main/java/com/dazuoye/filemanager/compose/RequirePermissionActivity.kt b/app/src/main/java/com/dazuoye/filemanager/compose/RequirePermissionActivity.kt index da0500b..84e70a3 100644 --- a/app/src/main/java/com/dazuoye/filemanager/compose/RequirePermissionActivity.kt +++ b/app/src/main/java/com/dazuoye/filemanager/compose/RequirePermissionActivity.kt @@ -112,18 +112,6 @@ fun checkPermissions(context: Context): Boolean { if (!Environment.isExternalStorageManager()) { return false } - if (VERSION.SDK_INT >= VERSION_CODES.TIRAMISU) { - val perm33 = arrayOf( - permission.READ_MEDIA_AUDIO, - permission.READ_MEDIA_VIDEO, - permission.READ_MEDIA_IMAGES - ) - perm33.forEach { - if (context.checkSelfPermission(it) != PackageManager.PERMISSION_GRANTED) { - return false - } - } - } } else { val permissions = arrayOf(permission.READ_EXTERNAL_STORAGE, permission.WRITE_EXTERNAL_STORAGE) permissions.forEach { diff --git a/app/src/main/rust/libsysinfo/Cargo.toml b/app/src/main/rust/libsysinfo/Cargo.toml index abae465..52c2400 100644 --- a/app/src/main/rust/libsysinfo/Cargo.toml +++ b/app/src/main/rust/libsysinfo/Cargo.toml @@ -9,4 +9,4 @@ page_size = "0.6.0" sysinfo = "0.32.0" [lib] -crate_type = ["cdylib"] +crate-type = ["cdylib"] diff --git a/app/src/main/rust/libsysinfo/build.rs b/app/src/main/rust/libsysinfo/build.rs index 67bc190..be2f036 100644 --- a/app/src/main/rust/libsysinfo/build.rs +++ b/app/src/main/rust/libsysinfo/build.rs @@ -1,4 +1,4 @@ fn main() { println!("cargo:rustc-link-arg=-z"); - println!("cargo:rustc-link-arg=max-page-size=16384"); + println!("cargo:rustc-link-arg=max-page-size={}",1024*16); }