Skip to content

Commit

Permalink
Fix: className should be NULL in Zygote
Browse files Browse the repository at this point in the history
  • Loading branch information
rovo89 committed Jul 8, 2016
1 parent c952eae commit c851ed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app_main2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,11 @@ int main(int argc, char* const argv[])
set_process_name(niceName.string());
}

isXposedLoaded = xposed::initialize(zygote, startSystemServer, className, argc, argv);
if (zygote) {
isXposedLoaded = xposed::initialize(true, startSystemServer, NULL, argc, argv);
runtimeStart(runtime, isXposedLoaded ? XPOSED_CLASS_DOTS_ZYGOTE : "com.android.internal.os.ZygoteInit", args, zygote);
} else if (className) {
isXposedLoaded = xposed::initialize(false, false, className, argc, argv);
runtimeStart(runtime, isXposedLoaded ? XPOSED_CLASS_DOTS_TOOLS : "com.android.internal.os.RuntimeInit", args, zygote);
} else {
fprintf(stderr, "Error: no class name or --zygote supplied.\n");
Expand Down

0 comments on commit c851ed9

Please sign in to comment.