Remove path suffix

This commit is contained in:
Nullptr
2023-02-02 22:21:27 +08:00
parent 0cd714dcd7
commit 673eca8025
4 changed files with 26 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ pub fn get_native_bridge() -> String {
}
pub fn restore_native_bridge() -> Result<()> {
Command::new("/data/adb/ksu/bin/resetprop")
Command::new("resetprop")
.arg(constants::PROP_NATIVE_BRIDGE)
.arg(get_native_bridge())
.spawn()?.wait()?;

View File

@@ -182,7 +182,7 @@ fn create_daemon_socket(is64: bool) -> Result<UnixListener> {
fn handle_daemon_action(mut stream: UnixStream, context: &Context) -> Result<()> {
let action = stream.read_u8()?;
let action = DaemonSocketAction::try_from(action)?;
log::debug!("New daemon action {:?}", action);
log::trace!("New daemon action {:?}", action);
match action {
DaemonSocketAction::PingHeartbeat => {
restore_native_bridge()?;