Commit 72cf5f3f authored by topjohnwu's avatar topjohnwu

Temporary disable module bootloop prevention

Some devices don't like it, need further tests before pushing to production
parent 6f9d493a
......@@ -530,6 +530,7 @@ void startup() {
unblock_boot_process();
}
#if 0
// Increment boot count
int boot_count = 0;
FILE *cf = fopen(BOOTCOUNT, "r");
......@@ -543,6 +544,7 @@ void startup() {
cf = xfopen(BOOTCOUNT, "w");
fprintf(cf, "%d", boot_count);
fclose(cf);
#endif
// No uninstaller or core-only mode
if (access(DISABLEFILE, F_OK) != 0) {
......
......@@ -14,9 +14,11 @@ const char magiskrc[] =
" rm "UNBLOCKFILE"\n"
"\n"
#if 0
"on property:sys.boot_completed=1\n"
" start magisk_bc\n"
"\n"
#endif
// Services
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment