mirror of
https://github.com/topjohnwu/Magisk
synced 2024-11-13 20:54:12 +01:00
Temporary disable module bootloop prevention
Some devices don't like it, need further tests before pushing to production
This commit is contained in:
parent
6f9d493a18
commit
72cf5f3f9f
@ -530,6 +530,7 @@ void startup() {
|
|||||||
unblock_boot_process();
|
unblock_boot_process();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
// Increment boot count
|
// Increment boot count
|
||||||
int boot_count = 0;
|
int boot_count = 0;
|
||||||
FILE *cf = fopen(BOOTCOUNT, "r");
|
FILE *cf = fopen(BOOTCOUNT, "r");
|
||||||
@ -543,6 +544,7 @@ void startup() {
|
|||||||
cf = xfopen(BOOTCOUNT, "w");
|
cf = xfopen(BOOTCOUNT, "w");
|
||||||
fprintf(cf, "%d", boot_count);
|
fprintf(cf, "%d", boot_count);
|
||||||
fclose(cf);
|
fclose(cf);
|
||||||
|
#endif
|
||||||
|
|
||||||
// No uninstaller or core-only mode
|
// No uninstaller or core-only mode
|
||||||
if (access(DISABLEFILE, F_OK) != 0) {
|
if (access(DISABLEFILE, F_OK) != 0) {
|
||||||
|
@ -14,9 +14,11 @@ const char magiskrc[] =
|
|||||||
" rm "UNBLOCKFILE"\n"
|
" rm "UNBLOCKFILE"\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
|
#if 0
|
||||||
"on property:sys.boot_completed=1\n"
|
"on property:sys.boot_completed=1\n"
|
||||||
" start magisk_bc\n"
|
" start magisk_bc\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user