From 68255f3601d0ae5141462645dcfa2d5b2a8f3125 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Tue, 4 Feb 2025 15:03:42 +0800 Subject: [PATCH] add recognize `!` and `?` format --- app/src/main/cpp/main.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/main.cpp b/app/src/main/cpp/main.cpp index 741742f..8ad6edb 100644 --- a/app/src/main/cpp/main.cpp +++ b/app/src/main/cpp/main.cpp @@ -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);