zygisk: Clarify unloading in non-GMS processes

This commit is contained in:
Danny Lin 2022-06-27 02:41:09 -07:00
parent ebc54d8ccd
commit 532a92a0b6
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC

View File

@ -84,9 +84,8 @@ private:
}
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;
}