Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ayasa520 authored Apr 29, 2023
1 parent dc311ac commit 6e83355
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@
############################################

umask 022
##########
# Presets
##########

OUTFD=$2
ZIPFILE="$3";

NVBASE=/data/adb
TMPDIR=/dev/tmp
export MAGISK_VER=25.2
export MAGISK_VER_CODE=25200
# Detect whether in boot mode
[ -z $BOOTMODE ] && ps | grep zygote | grep -qv grep && BOOTMODE=true
[ -z $BOOTMODE ] && ps -A 2>/dev/null | grep zygote | grep -qv grep && BOOTMODE=true
[ -z $BOOTMODE ] && BOOTMODE=false

ui_print() {
if $BOOTMODE; then
echo "$1"
Expand Down Expand Up @@ -342,6 +354,7 @@ install_module() {
MODNAME=`grep_prop name $TMPDIR/module.prop`
MODAUTH=`grep_prop author $TMPDIR/module.prop`
MODPATH=$MODULEROOT/$MODID


# Create mod paths
rm -rf $MODPATH
Expand Down Expand Up @@ -418,15 +431,5 @@ install_module() {
ui_print "- Done"
}

##########
# Presets
##########

# Detect whether in boot mode
[ -z $BOOTMODE ] && ps | grep zygote | grep -qv grep && BOOTMODE=true
[ -z $BOOTMODE ] && ps -A 2>/dev/null | grep zygote | grep -qv grep && BOOTMODE=true
[ -z $BOOTMODE ] && BOOTMODE=false
install_module

NVBASE=/data/adb
TMPDIR=/dev/tmp
BBDIR="/tmp/busybox";

0 comments on commit 6e83355

Please sign in to comment.