mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-31 07:01:35 -08:00
Skip svc for ro properties
ro properties' triggers should only be triggered once, otherwise it may undefined behaviour. This patch avoids triggering ro properties' actions again when using resetprop to modify them. Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
This commit is contained in:
@@ -245,8 +245,8 @@ void reset_zygisk(bool restore) {
|
||||
if (native_bridge.length() > strlen(ZYGISKLDR)) {
|
||||
native_bridge_orig = native_bridge.substr(strlen(ZYGISKLDR));
|
||||
}
|
||||
set_prop(NBPROP, native_bridge_orig.data(), true);
|
||||
set_prop(NBPROP, native_bridge_orig.data());
|
||||
} else {
|
||||
set_prop(NBPROP, native_bridge.data(), true);
|
||||
set_prop(NBPROP, native_bridge.data());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user