ksud_overlayfs: removed custom_sparse_size text file extension

This commit is contained in:
Rifat Azad
2025-05-04 19:39:06 +06:00
committed by GitHub
parent 86fbed60eb
commit 48e533f660

View File

@@ -401,7 +401,7 @@ fn _install_module(zip: &str) -> Result<()> {
}
fn get_sparse_image_size() -> u64 {
let default_size = 6 << 30; // 6GB
let custom_size_file = "/data/adb/ksu/custom_sparse_size.txt";
let custom_size_file = "/data/adb/ksu/custom_sparse_size";
match fs::read_to_string(custom_size_file) {
Ok(contents) => match parse_size(&contents) {
Ok(size) => size,