bug fix
This commit is contained in:
@@ -18,7 +18,7 @@ if [[ -d $(magisk --path 2>/dev/null) ]]; then
|
||||
else
|
||||
echo "Magisk busybox Path does not exist"
|
||||
fi ; export PATH="$PATH"
|
||||
backup_version="V11.5 2021/11/15-23:30"
|
||||
backup_version="V11.5"
|
||||
#設置二進制命令目錄位置
|
||||
[[ $bin_path = "" ]] && echo "未正確指定bin.sh位置" && exit 2
|
||||
#bin_path="${bin_path/'/storage/emulated/'/'/data/media/'}"
|
||||
@@ -30,6 +30,7 @@ busybox2="$bin_path/busybox"
|
||||
#排除自身
|
||||
exclude="
|
||||
busybox_path
|
||||
tag
|
||||
bin.sh"
|
||||
if [[ ! -d $filepath ]]; then
|
||||
mkdir -p "$filepath"
|
||||
|
||||
BIN
tools/bin/curl
Normal file
BIN
tools/bin/curl
Normal file
Binary file not shown.
2
tools/bin/down
Normal file
2
tools/bin/down
Normal file
@@ -0,0 +1,2 @@
|
||||
export CLASSPATH="${0%/*}/down.dex"
|
||||
exec app_process /system/bin --nice-name=down Han.download.Down "$@"
|
||||
BIN
tools/bin/down.dex
Normal file
BIN
tools/bin/down.dex
Normal file
Binary file not shown.
BIN
tools/bin/jq
Normal file
BIN
tools/bin/jq
Normal file
Binary file not shown.
1
tools/bin/tag
Normal file
1
tools/bin/tag
Normal file
@@ -0,0 +1 @@
|
||||
V11.4
|
||||
@@ -127,7 +127,7 @@ while [[ $i -le $r ]]; do
|
||||
case $(find "$TMPDIR" -maxdepth 1 -name "*.apk" -type f 2>/dev/null | wc -l) in
|
||||
1)
|
||||
echoRgb "恢復普通apk"
|
||||
pm install --user 0 -r "$TMPDIR"/*.apk >/dev/null 2>&1
|
||||
pm install -i com.android.vending --user 0 -r "$TMPDIR"/*.apk >/dev/null 2>&1
|
||||
echo_log "Apk安裝"
|
||||
;;
|
||||
0)
|
||||
@@ -135,9 +135,9 @@ while [[ $i -le $r ]]; do
|
||||
;;
|
||||
*)
|
||||
echoRgb "恢復split apk"
|
||||
b="$(pm install-create --user 0 | grep -E -o '[0-9]+')"
|
||||
b="$(pm install-create -i -i com.android.vending --user 0 | grep -E -o '[0-9]+')"
|
||||
if [[ -f $TMPDIR/nmsl.apk ]]; then
|
||||
pm install --user 0 -r "$TMPDIR/nmsl.apk" >/dev/null 2>&1
|
||||
pm install -i com.android.vending --user 0 -r "$TMPDIR/nmsl.apk" >/dev/null 2>&1
|
||||
echo_log "nmsl.apk安裝"
|
||||
fi
|
||||
find "$TMPDIR" -maxdepth 1 -name "*.apk" -type f | grep -v 'nmsl.apk' | while read; do
|
||||
|
||||
@@ -43,7 +43,7 @@ if [[ $(pm path "$name") = "" ]]; then
|
||||
case $(find "$TMPDIR" -maxdepth 1 -name "*.apk" -type f 2>/dev/null | wc -l) in
|
||||
1)
|
||||
echoRgb "恢復普通apk"
|
||||
pm install --user 0 -r "$TMPDIR"/*.apk >/dev/null 2>&1
|
||||
pm install -i com.android.vending --user 0 -r "$TMPDIR"/*.apk >/dev/null 2>&1
|
||||
echo_log "Apk安裝"
|
||||
;;
|
||||
0)
|
||||
@@ -51,7 +51,7 @@ if [[ $(pm path "$name") = "" ]]; then
|
||||
;;
|
||||
*)
|
||||
echoRgb "恢復split apk"
|
||||
b="$(pm install-create --user 0 | grep -Eo '[0-9]+')"
|
||||
b="$(pm install-create -i com.android.vending --user 0 | grep -Eo '[0-9]+')"
|
||||
if [[ -f $TMPDIR/nmsl.apk ]]; then
|
||||
pm install --user 0 -r "$TMPDIR/nmsl.apk" >/dev/null 2>&1
|
||||
echo_log "nmsl.apk安裝"
|
||||
|
||||
Reference in New Issue
Block a user