ksud: make tmpfs and magic mount optional

- Create /data/adb/ksu/{.notmpfs,.nomount} to disable them.
This commit is contained in:
5ec1cff
2024-12-31 13:48:25 +08:00
parent ec383ed661
commit c5ec2ff94b
2 changed files with 16 additions and 5 deletions

View File

@@ -39,3 +39,6 @@ pub const VERSION_NAME: &str = include_str!(concat!(env!("OUT_DIR"), "/VERSION_N
pub const KSU_BACKUP_DIR: &str = WORKING_DIR;
pub const KSU_BACKUP_FILE_PREFIX: &str = "ksu_backup_";
pub const BACKUP_FILENAME: &str = "stock_image.sha1";
pub const NO_TMPFS_PATH: &str = concatcp!(WORKING_DIR, ".notmpfs");
pub const NO_MOUNT_PATH: &str = concatcp!(WORKING_DIR, ".nomount");