Merge pull request #530 from KOWX712/inject
Some checks failed
Android CI / build (push) Has been cancelled

Recognize `!` and `?` format
This commit is contained in:
chiteroman 2025-02-09 09:17:39 +01:00 committed by GitHub
commit 731c9e5abf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,8 +173,14 @@ static void playIntegrityApiHandleNewChecks() {
if (len > 0 && line[len - 1] == '\n') {
line[len - 1] = '\0';
}
if (strcmp(line, "android") == 0) android_found = true;
else if (strcmp(line, "com.android.vending") == 0) vending_found = true;
if (strcmp(line, "android") == 0 || strcmp(line, "android!") == 0 || strcmp(line, "android?") == 0) {
android_found = true;
}
if (strcmp(line, "com.android.vending") == 0 || strcmp(line, "com.android.vending!") == 0 || strcmp(line, "com.android.vending?") == 0) {
vending_found = true;
}
}
fseek(file, 0, SEEK_END);