zygisk: Always unload from system_server

This commit is contained in:
Danny Lin 2021-10-30 19:48:08 -07:00
parent 69e2aae3d8
commit daefe159e3
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC

View File

@ -35,6 +35,11 @@ public:
}
}
void preServerSpecialize(zygisk::ServerSpecializeArgs *args) override {
// Never tamper with system_server
api->setOption(zygisk::DLCLOSE_MODULE_LIBRARY);
}
private:
zygisk::Api *api;
JNIEnv *env;