2
0
mirror of https://github.com/topjohnwu/Magisk synced 2025-09-01 14:15:30 +00:00

Add boot actions

This commit is contained in:
topjohnwu
2017-08-12 16:44:58 +08:00
parent 29895ff474
commit 750872cc37
3 changed files with 17 additions and 5 deletions

View File

@@ -121,6 +121,15 @@ api_level_arch_detect() {
if [ "$ABILONG" = "x86_64" ]; then ARCH=x64; IS64BIT=true; fi;
}
boot_actions() {
if [ ! -d /dev/magisk/mirror/bin ]; then
mkdir -p /dev/magisk/mirror/bin
mount -o bind $MAGISKBIN /dev/magisk/mirror/bin
fi
MAGISKBIN=/dev/magisk/mirror/bin
$MAGISKBIN/magisk magiskpolicy --live "allow fsck * * *"
}
recovery_actions() {
# TWRP bug fix
mount -o bind /dev/urandom /dev/random