Skip to content

Commit bf96a65

Browse files
authored
changed name, added filler lines to log
I guess that I should use a more distinct name, and also the log is way easier to skim this way.
1 parent d17904b commit bf96a65

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Magisk BootloopSaver
1+
# Simple BootloopSaver
22

33

44
## About
@@ -17,9 +17,9 @@ It's Magisk module, flash it in **Magisk** app
1717
## Usage
1818

1919
### Auto detect
20-
Usually, bootloop occurs because zygote doesn't start properly or stuck at restarting.
20+
Usually, bootloop occurs because zygote doesn't start properly or is stuck restarting.
2121
The script run in `late_start` mode. It will check Zygote's Process ID 3 times every 15 seconds.
22-
And if Zygote's Process ID doesn't match for 3 times, check the Process ID for next 15 seconds to make sure and if it's different again, the script will disable all modules and reboot the your device.
22+
And if Zygote's Process ID doesn't match for 3 times, check the Process ID for next 15 seconds to make sure, and if it's different again, the script will disable all modules and reboot the your device.
2323

2424

2525
## Known issues

module.prop

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=simple_bootloopsaver
2-
name=Magisk Bootloop Protector
3-
version=v1
4-
versionCode=1
2+
name=Simple Bootloop Saver
3+
version=v1.1
4+
versionCode=2
55
author=ez-me
66
description=Protect your system from bootloop caused by Magisk modules by turning off all your modules and restart your system if bootloop is detected.
77
changeBoot=false

service.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ disable_modules(){
3636
echo "Disabled modules at $(date -Is)" > "$MODPATH/msg.txt"
3737
rm -rf /cache/.system_booting /data/unencrypted/.system_booting /metadata/.system_booting /persist/.system_booting /mnt/vendor/persist/.system_booting
3838
log "Rebooting"
39+
log ""
3940
reboot
4041
exit
4142
}
@@ -70,7 +71,7 @@ then
7071
ZYGOTE_PID4=$(pidof "$ZYGOTE_NAME")
7172
log "PID4: $ZYGOTE_PID4"
7273

73-
if [ "$ZYGOTE_PID3" != "$ZYGOTE_PID4" ]
74+
if [ "$ZYGOTE_PID1" != "$ZYGOTE_PID4" ]
7475
then
7576
log "They don't match..."
7677
disable_modules
@@ -79,4 +80,5 @@ fi
7980

8081
# If we reached this section we should be fine
8182
log "looks good to me!"
83+
log """
8284
exit

0 commit comments

Comments
 (0)