mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 07:20:47 -05:00
Migrate zygisk handler to Rust
This commit is contained in:
@@ -429,3 +429,12 @@ bool is_deny_target(int uid, string_view process) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void update_deny_flags(int uid, rust::Str process, uint32_t &flags) {
|
||||
if (is_deny_target(uid, { process.begin(), process.end() })) {
|
||||
flags |= +ZygiskStateFlags::ProcessOnDenyList;
|
||||
}
|
||||
if (denylist_enforced) {
|
||||
flags |= +ZygiskStateFlags::DenyListEnforced;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user