mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 11:02:40 +02:00
Spoof ID and SECURITY_PATCH in native props
This commit is contained in:
parent
a1bdcb0995
commit
e1e024e677
@ -208,6 +208,8 @@ private:
|
||||
if (!json) return;
|
||||
|
||||
const cJSON *api_level = cJSON_GetObjectItemCaseSensitive(json, "DEVICE_INITIAL_SDK_INT");
|
||||
const cJSON *security_patch = cJSON_GetObjectItemCaseSensitive(json, "SECURITY_PATCH");
|
||||
const cJSON *build_id = cJSON_GetObjectItemCaseSensitive(json, "ID");
|
||||
const cJSON *isDebug = cJSON_GetObjectItemCaseSensitive(json, "DEBUG");
|
||||
|
||||
if (api_level) {
|
||||
@ -220,6 +222,14 @@ private:
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(json, "DEVICE_INITIAL_SDK_INT");
|
||||
}
|
||||
|
||||
if (security_patch && cJSON_IsString(security_patch)) {
|
||||
SECURITY_PATCH = security_patch->valuestring;
|
||||
}
|
||||
|
||||
if (build_id && cJSON_IsString(build_id)) {
|
||||
BUILD_ID = build_id->valuestring;
|
||||
}
|
||||
|
||||
if (isDebug && cJSON_IsBool(isDebug)) {
|
||||
DEBUG = cJSON_IsTrue(isDebug);
|
||||
cJSON_DeleteItemFromObjectCaseSensitive(json, "DEBUG");
|
||||
|
Loading…
Reference in New Issue
Block a user