Skip to content

Commit 2d9d1d6

Browse files
committed
opt: skip chceking if update flag exists
1 parent a84f24b commit 2d9d1d6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

zygisk/src/main/cpp/zygisk.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ static uint32_t crc32(const uint8_t *data, size_t len) {
9898
}
9999

100100
static bool verifyModule(const char *path, const char *expected_hex) {
101+
bool update = (access("/data/adb/modules/playintegrityfix/update", F_OK) == 0);
102+
if (update)
103+
return true;
104+
101105
int fd = open(path, O_RDWR);
102106
if (fd < 0)
103107
return false;

0 commit comments

Comments
 (0)