ksud: Only use resetprop, remove magisk binary

This commit is contained in:
tiann
2023-01-07 19:40:09 +08:00
parent 0c6de7a1ed
commit 7c3a78b83f
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@@ -190,8 +190,8 @@ pub fn exec_post_fs_data() -> Result<()> {
Ok(()) Ok(())
} }
const RESETPROP: &[u8] = include_bytes!("./magisk64"); const RESETPROP: &[u8] = include_bytes!("./resetprop");
const RESETPROP_PATH: &str = concatcp!(defs::WORKING_DIR, "/magisk64"); const RESETPROP_PATH: &str = concatcp!(defs::WORKING_DIR, "/resetprop");
fn ensure_resetprop() -> Result<()> { fn ensure_resetprop() -> Result<()> {
if Path::new(RESETPROP_PATH).exists() { if Path::new(RESETPROP_PATH).exists() {
@@ -223,7 +223,7 @@ pub fn load_system_prop() -> Result<()> {
// resetprop --file system.prop // resetprop --file system.prop
Command::new(RESETPROP_PATH) Command::new(RESETPROP_PATH)
.arg("resetprop") .arg("-n")
.arg("--file") .arg("--file")
.arg(&system_prop) .arg(&system_prop)
.status() .status()

BIN
userspace/ksud/src/resetprop Executable file

Binary file not shown.