Commit 6eb7c0b5 authored by topjohnwu's avatar topjohnwu

Add new util functions for new template version

parent 0b3c078a
......@@ -184,7 +184,7 @@ if ! $BOOTMODE; then
recovery_cleanup
fi
# rm -rf $TMPDIR
rm -rf $TMPDIR
ui_print "- Done"
exit 0
......@@ -191,6 +191,10 @@ request_size_check() {
reqSizeM=$((reqSizeM / 1024 + 1))
}
request_zip_size_check() {
reqSizeM=`unzip -l "$1" | tail -n 1 | awk '{ print int($1 / 1048567 + 1) }'`
}
image_size_check() {
SIZE="`$MAGISKBIN/magisk --imgsize $IMG`"
curUsedM=`echo "$SIZE" | cut -d" " -f1`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment