mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05: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:
committed by
topjohnwu
co-authored by
5ec1cff
parent
a003336497
commit
f41994cb52
@@ -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