ksud: Only use resetprop, remove magisk binary
This commit is contained in:
Binary file not shown.
@@ -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
BIN
userspace/ksud/src/resetprop
Executable file
Binary file not shown.
Reference in New Issue
Block a user