mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
parent
605eae21bc
commit
c849759682
2
build.py
2
build.py
@ -491,7 +491,7 @@ def patch_avd_ramdisk(args):
|
||||
'scripts/avd_patch.sh', '/data/local/tmp'])
|
||||
if proc.returncode != 0:
|
||||
error('adb push failed!')
|
||||
proc = execv([adb_path, 'push', backup, '/data/local/tmp/ramdisk.cpio.gz'])
|
||||
proc = execv([adb_path, 'push', backup, '/data/local/tmp/ramdisk.cpio.tmp'])
|
||||
if proc.returncode != 0:
|
||||
error('adb push failed!')
|
||||
|
||||
|
@ -57,7 +57,7 @@ for file in lib*.so; do
|
||||
mv "$file" "${file:3:${#file}-6}"
|
||||
done
|
||||
|
||||
gzip -d ramdisk.cpio.gz
|
||||
./magiskboot decompress ramdisk.cpio.tmp ramdisk.cpio
|
||||
cp ramdisk.cpio ramdisk.cpio.orig
|
||||
|
||||
touch config
|
||||
@ -84,4 +84,4 @@ export KEEPFORCEENCRYPT=true
|
||||
"add 000 .backup/.magisk config"
|
||||
|
||||
rm -f ramdisk.cpio.orig config magisk*.xz
|
||||
gzip -9 ramdisk.cpio
|
||||
./magiskboot compress=gzip ramdisk.cpio ramdisk.cpio.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user