mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
fix Magisk install on ODROID-N2/C4
add /dev/block/dtbs support
This commit is contained in:
parent
f9ff814955
commit
7188462c55
@ -109,7 +109,7 @@ case $((STATUS & 3)) in
|
|||||||
if [ -d $BACKUPDIR ]; then
|
if [ -d $BACKUPDIR ]; then
|
||||||
ui_print "- Restoring stock boot image"
|
ui_print "- Restoring stock boot image"
|
||||||
flash_image $BACKUPDIR/boot.img.gz $BOOTIMAGE
|
flash_image $BACKUPDIR/boot.img.gz $BOOTIMAGE
|
||||||
for name in dtb dtbo; do
|
for name in dtb dtbo dtbs; do
|
||||||
[ -f $BACKUPDIR/${name}.img.gz ] || continue
|
[ -f $BACKUPDIR/${name}.img.gz ] || continue
|
||||||
IMAGE=`find_block $name$SLOT`
|
IMAGE=`find_block $name$SLOT`
|
||||||
[ -z $IMAGE ] && continue
|
[ -z $IMAGE ] && continue
|
||||||
|
@ -409,7 +409,7 @@ flash_image() {
|
|||||||
patch_dtb_partitions() {
|
patch_dtb_partitions() {
|
||||||
local result=1
|
local result=1
|
||||||
cd $MAGISKBIN
|
cd $MAGISKBIN
|
||||||
for name in dtb dtbo; do
|
for name in dtb dtbo dtbs; do
|
||||||
local IMAGE=`find_block $name$SLOT`
|
local IMAGE=`find_block $name$SLOT`
|
||||||
if [ ! -z $IMAGE ]; then
|
if [ ! -z $IMAGE ]; then
|
||||||
ui_print "- $name image: $IMAGE"
|
ui_print "- $name image: $IMAGE"
|
||||||
@ -571,7 +571,7 @@ run_migrations() {
|
|||||||
|
|
||||||
# Stock backups
|
# Stock backups
|
||||||
LOCSHA1=$SHA1
|
LOCSHA1=$SHA1
|
||||||
for name in boot dtb dtbo; do
|
for name in boot dtb dtbo dtbs; do
|
||||||
BACKUP=/data/adb/magisk/stock_${name}.img
|
BACKUP=/data/adb/magisk/stock_${name}.img
|
||||||
[ -f $BACKUP ] || continue
|
[ -f $BACKUP ] || continue
|
||||||
if [ $name = 'boot' ]; then
|
if [ $name = 'boot' ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user