mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 09:41:52 +00:00
Check block dev ro status
magisk is shared object, use static busybox instead
This commit is contained in:
@@ -30,10 +30,16 @@ direct_install() {
|
||||
rm -f $MAGISKBIN/new-boot.img
|
||||
echo "- Flashing new boot image"
|
||||
flash_image $1/new-boot.img $2
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "! Insufficient partition size"
|
||||
return 1
|
||||
fi
|
||||
case $? in
|
||||
1)
|
||||
echo "! Insufficient partition size"
|
||||
return 1
|
||||
;;
|
||||
2)
|
||||
echo "! $2 is read only"
|
||||
return 2
|
||||
;;
|
||||
esac
|
||||
rm -rf $1
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user