Skip to content

Commit

Permalink
zygisk: Clarify unloading in non-GMS processes
Browse files Browse the repository at this point in the history
  • Loading branch information
kdrag0n committed Jun 27, 2022
1 parent ebc54d8 commit 532a92a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zygisk/module/jni/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ class SafetyNetFixModule : public zygisk::ModuleBase {
}

void preSpecialize(const std::string& process) {
// Only take action for GMS, otherwise unload
// Only touch GMS
if (process.rfind("com.google.android.gms", 0) != 0) {
// If this isn't GMS, bail out and unload.
api->setOption(zygisk::DLCLOSE_MODULE_LIBRARY);
return;
}
Expand Down

0 comments on commit 532a92a

Please sign in to comment.