Skip to content

Commit

Permalink
Always spoof to Key Attestation app
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainThrowback committed Aug 10, 2024
1 parent b9eb0cc commit 0cc03a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ class KeystoreInjection : public zygisk::ModuleBase {
env->ReleaseStringUTFChars(args->app_data_dir, rawDir);
env->ReleaseStringUTFChars(args->nice_name, rawName);

if (!dir.ends_with("/io.github.vvb2060.keyattestation")) {
api->setOption(zygisk::DLCLOSE_MODULE_LIBRARY);
return;
}

if (!dir.ends_with("/com.google.android.gms")) {
api->setOption(zygisk::DLCLOSE_MODULE_LIBRARY);
return;
Expand Down

0 comments on commit 0cc03a4

Please sign in to comment.