Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
remove sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Mar 12, 2019
1 parent db67f7b commit 3a1231c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions riru-core/jni/main/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,14 @@ static void load_modules() {

if (module->getApiVersion) {
module->apiVersion = ((getApiVersion_t) module->getApiVersion)();

LOGI("%s: api=%d", module->name, module->apiVersion);
}

void *sym = dlsym(handle, "riru_set_module_name");
if (sym)
((void (*)(const char *)) sym)(module->name);

#ifdef __LP64__
LOGI("module loaded: %s (api %d) %lu", module->name, module->apiVersion, get_modules()->size());
LOGI("module loaded: %s (api %d), count=%lu", module->name, module->apiVersion, get_modules()->size());
#else
LOGI("module loaded: %s %u", module->name, get_modules()->size());
#endif
Expand Down
3 changes: 0 additions & 3 deletions riru-core/jni/zygote_restart/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ int main(int argc, char **argv) {
if (fork() != 0)
return 1;

LOGV("sleep 2s");
sleep(2);

pid_t pid;
while ((pid = get_pid_by_name_and_uid(ZYGOTE_NAME, 0)) == -1) {
LOGV(ZYGOTE_NAME " not started, wait 1s");
Expand Down
2 changes: 1 addition & 1 deletion riru-core/template_override/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ MODDIR=${0%/*}
# This script will be executed in late_start service mode
# More info in the main Magisk thread
ZYGOTE_RESTART=/data/misc/riru/bin/zygote_restart
exec $ZYGOTE_RESTART
$ZYGOTE_RESTART

0 comments on commit 3a1231c

Please sign in to comment.