mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 15:30:46 -05:00
committed by
John Wu
co-authored by
残页
parent
e48afff5e8
commit
3a4fe53f27
@@ -10,7 +10,7 @@
|
||||
#endif
|
||||
|
||||
__attribute__((constructor))
|
||||
static void zygisk_loader() {
|
||||
static void zygisk_loader(void) {
|
||||
android_dlextinfo info = {
|
||||
.flags = ANDROID_DLEXT_FORCE_LOAD
|
||||
};
|
||||
@@ -20,5 +20,9 @@ static void zygisk_loader() {
|
||||
if (entry) {
|
||||
entry(handle);
|
||||
}
|
||||
void (*unload)(void) = dlsym(handle, "unload_first_stage");
|
||||
if (unload) {
|
||||
__attribute__((musttail)) return unload();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user