mirror of
https://github.com/tiann/KernelSU.git
synced 2025-02-20 11:43:32 +08:00
ksud: Only use resetprop, remove magisk binary
This commit is contained in:
parent
0c6de7a1ed
commit
7c3a78b83f
Binary file not shown.
@ -190,8 +190,8 @@ pub fn exec_post_fs_data() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
const RESETPROP: &[u8] = include_bytes!("./magisk64");
|
||||
const RESETPROP_PATH: &str = concatcp!(defs::WORKING_DIR, "/magisk64");
|
||||
const RESETPROP: &[u8] = include_bytes!("./resetprop");
|
||||
const RESETPROP_PATH: &str = concatcp!(defs::WORKING_DIR, "/resetprop");
|
||||
|
||||
fn ensure_resetprop() -> Result<()> {
|
||||
if Path::new(RESETPROP_PATH).exists() {
|
||||
@ -223,7 +223,7 @@ pub fn load_system_prop() -> Result<()> {
|
||||
|
||||
// resetprop --file system.prop
|
||||
Command::new(RESETPROP_PATH)
|
||||
.arg("resetprop")
|
||||
.arg("-n")
|
||||
.arg("--file")
|
||||
.arg(&system_prop)
|
||||
.status()
|
||||
|
BIN
userspace/ksud/src/resetprop
Executable file
BIN
userspace/ksud/src/resetprop
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user