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:
LoveSy
2023-12-17 03:12:08 +08:00
committed by topjohnwu
parent a003336497
commit f41994cb52
3 changed files with 16 additions and 12 deletions

View File

@@ -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());
}
}