Make denylist work when zygisk is disabled

Co-authored-by: topjohnwu <topjohnwu@gmail.com>
This commit is contained in:
vvb2060
2024-04-08 23:00:50 -07:00
committed by John Wu
co-authored by topjohnwu
parent 652a26d5d9
commit 60e8415369
9 changed files with 302 additions and 32 deletions
+1 -2
View File
@@ -53,8 +53,7 @@ void denylist_handler(int client, const sock_cred *cred) {
ls_list(client);
return;
case DenyRequest::STATUS:
res = (zygisk_enabled && denylist_enforced)
? DenyResponse::ENFORCED : DenyResponse::NOT_ENFORCED;
res = denylist_enforced ? DenyResponse::ENFORCED : DenyResponse::NOT_ENFORCED;
break;
default:
// Unknown request code