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

Commit 3a1231c

Browse files
committed
remove sleep
1 parent db67f7b commit 3a1231c

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

riru-core/jni/main/init.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,14 @@ static void load_modules() {
8787

8888
if (module->getApiVersion) {
8989
module->apiVersion = ((getApiVersion_t) module->getApiVersion)();
90-
91-
LOGI("%s: api=%d", module->name, module->apiVersion);
9290
}
9391

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

9896
#ifdef __LP64__
99-
LOGI("module loaded: %s (api %d) %lu", module->name, module->apiVersion, get_modules()->size());
97+
LOGI("module loaded: %s (api %d), count=%lu", module->name, module->apiVersion, get_modules()->size());
10098
#else
10199
LOGI("module loaded: %s %u", module->name, get_modules()->size());
102100
#endif

riru-core/jni/zygote_restart/main.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ int main(int argc, char **argv) {
122122
if (fork() != 0)
123123
return 1;
124124

125-
LOGV("sleep 2s");
126-
sleep(2);
127-
128125
pid_t pid;
129126
while ((pid = get_pid_by_name_and_uid(ZYGOTE_NAME, 0)) == -1) {
130127
LOGV(ZYGOTE_NAME " not started, wait 1s");

riru-core/template_override/post-fs-data.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ MODDIR=${0%/*}
66
# This script will be executed in late_start service mode
77
# More info in the main Magisk thread
88
ZYGOTE_RESTART=/data/misc/riru/bin/zygote_restart
9-
exec $ZYGOTE_RESTART
9+
$ZYGOTE_RESTART

0 commit comments

Comments
 (0)