You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Refine codes
This commit is contained in:
@@ -14,6 +14,6 @@ Zygisk loader for KernelSU, which allows Zygisk modules to run without Magisk en
|
||||
|
||||
It is possible to run Zygisksu on Magisk with a few steps:
|
||||
|
||||
1. `mkdir /data/adb/ksu`
|
||||
2. `ln -s /data/adb/modules /data/adb/ksu/modules`
|
||||
3. `cp $(which resetprop) /data/adb/ksu/resetprop`
|
||||
1. `mkdir -p /data/adb/ksu/bin`
|
||||
2. `ln -s /data/adb/modules /data/adb/ksu/`
|
||||
3. `cp $(which resetprop) /data/adb/ksu/bin/resetprop`
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-builtins"
|
||||
#include <parallel_hashmap/phmap.h>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#include <misc.hpp>
|
||||
#include <sys/mman.h>
|
||||
#include "misc.hpp"
|
||||
|
||||
namespace jni_hook {
|
||||
|
||||
@@ -8,5 +8,5 @@ export NATIVE_BRIDGE=$(getprop ro.dalvik.vm.native.bridge)
|
||||
[ "$DEBUG" = true ] && export RUST_BACKTRACE=1
|
||||
|
||||
log -p i -t "zygisksu" "Start watchdog"
|
||||
/data/adb/ksu/resetprop ro.dalvik.vm.native.bridge libzygiskloader.so
|
||||
/data/adb/ksu/bin/resetprop ro.dalvik.vm.native.bridge libzygiskloader.so
|
||||
exec "$MODDIR/bin/zygiskwd" >/dev/null 2>&1
|
||||
|
||||
@@ -28,7 +28,7 @@ pub fn get_native_bridge() -> String {
|
||||
}
|
||||
|
||||
pub fn restore_native_bridge() -> Result<()> {
|
||||
Command::new("/data/adb/ksu/resetprop")
|
||||
Command::new("/data/adb/ksu/bin/resetprop")
|
||||
.arg(constants::PROP_NATIVE_BRIDGE)
|
||||
.arg(get_native_bridge())
|
||||
.spawn()?.wait()?;
|
||||
|
||||
Reference in New Issue
Block a user