Skip to content

Commit c851ed9

Browse files
committed
Fix: className should be NULL in Zygote
1 parent c952eae commit c851ed9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app_main2.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,11 @@ int main(int argc, char* const argv[])
351351
set_process_name(niceName.string());
352352
}
353353

354-
isXposedLoaded = xposed::initialize(zygote, startSystemServer, className, argc, argv);
355354
if (zygote) {
355+
isXposedLoaded = xposed::initialize(true, startSystemServer, NULL, argc, argv);
356356
runtimeStart(runtime, isXposedLoaded ? XPOSED_CLASS_DOTS_ZYGOTE : "com.android.internal.os.ZygoteInit", args, zygote);
357357
} else if (className) {
358+
isXposedLoaded = xposed::initialize(false, false, className, argc, argv);
358359
runtimeStart(runtime, isXposedLoaded ? XPOSED_CLASS_DOTS_TOOLS : "com.android.internal.os.RuntimeInit", args, zygote);
359360
} else {
360361
fprintf(stderr, "Error: no class name or --zygote supplied.\n");

0 commit comments

Comments
 (0)