mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 13:17:39 +02:00
Add new boot service: boot-complete
This commit is contained in:
@ -50,7 +50,7 @@ static void usage() {
|
||||
" --clone-attr SRC DEST clone permission, owner, and selinux context\n"
|
||||
"\n"
|
||||
"Supported init triggers:\n"
|
||||
" startup, post-fs-data, service\n"
|
||||
" startup, post-fs-data, service, boot-complete\n"
|
||||
"\n"
|
||||
"Supported applets:\n");
|
||||
|
||||
@ -111,6 +111,10 @@ int magisk_main(int argc, char *argv[]) {
|
||||
int fd = connect_daemon();
|
||||
write_int(fd, LATE_START);
|
||||
return read_int(fd);
|
||||
} else if (strcmp(argv[1], "--boot-complete") == 0) {
|
||||
int fd = connect_daemon();
|
||||
write_int(fd, BOOT_COMPLETE);
|
||||
return read_int(fd);
|
||||
}
|
||||
|
||||
// Applets
|
||||
|
Reference in New Issue
Block a user