mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
parent
8c9d0314fb
commit
6c47d8f556
@ -69,16 +69,24 @@ RANDOMSEED=$(tr -dc 'a-f0-9' < /dev/urandom | head -c 16)
|
|||||||
echo "RANDOMSEED=0x$RANDOMSEED" >> config
|
echo "RANDOMSEED=0x$RANDOMSEED" >> config
|
||||||
cat config
|
cat config
|
||||||
|
|
||||||
./magiskboot compress=xz magisk32 magisk32.xz
|
SKIP32="#"
|
||||||
./magiskboot compress=xz magisk64 magisk64.xz
|
SKIP64="#"
|
||||||
|
if [ -f magisk64 ]; then
|
||||||
|
./magiskboot compress=xz magisk64 magisk64.xz
|
||||||
|
unset SKIP64
|
||||||
|
fi
|
||||||
|
if [ -f magisk32 ]; then
|
||||||
|
./magiskboot compress=xz magisk32 magisk32.xz
|
||||||
|
unset SKIP32
|
||||||
|
fi
|
||||||
./magiskboot compress=xz stub.apk stub.xz
|
./magiskboot compress=xz stub.apk stub.xz
|
||||||
|
|
||||||
./magiskboot cpio ramdisk.cpio \
|
./magiskboot cpio ramdisk.cpio \
|
||||||
"add 0750 init magiskinit" \
|
"add 0750 init magiskinit" \
|
||||||
"mkdir 0750 overlay.d" \
|
"mkdir 0750 overlay.d" \
|
||||||
"mkdir 0750 overlay.d/sbin" \
|
"mkdir 0750 overlay.d/sbin" \
|
||||||
"add 0644 overlay.d/sbin/magisk32.xz magisk32.xz" \
|
"$SKIP32 add 0644 overlay.d/sbin/magisk32.xz magisk32.xz" \
|
||||||
"add 0644 overlay.d/sbin/magisk64.xz magisk64.xz" \
|
"$SKIP64 add 0644 overlay.d/sbin/magisk64.xz magisk64.xz" \
|
||||||
"add 0644 overlay.d/sbin/stub.xz stub.xz" \
|
"add 0644 overlay.d/sbin/stub.xz stub.xz" \
|
||||||
"patch" \
|
"patch" \
|
||||||
"backup ramdisk.cpio.orig" \
|
"backup ramdisk.cpio.orig" \
|
||||||
|
Loading…
Reference in New Issue
Block a user