6 Commits

Author SHA1 Message Date
Yawasau
bf58f2f7b2 bugfix 2025-07-06 17:35:19 +08:00
Yawasau
6fb9d0314b bugfix 2025-05-01 20:19:36 +08:00
Yawasau
705f2b67e6 bugfix 2025-04-26 16:32:18 +08:00
Yawasau
c7dd741657 bugfix 2025-04-26 16:07:55 +08:00
Yawasau
c016118af6 bugfix 2025-04-26 00:23:48 +08:00
Yawasau
307db2ae1d bugfix 2025-04-24 15:28:28 +08:00
13 changed files with 901 additions and 642 deletions

View File

@@ -12,6 +12,10 @@ background_execution=0
#1簡體中文 0繁體中文
Shell_LANG=
#備份開始後偽裝亮屏
#1開啟 0關閉
setDisplayPowerMode=0
#自定義備份文件輸出位置 支持相對路徑(留空則默認當前路徑)
Output_path=""
@@ -22,6 +26,12 @@ list_location=""
#1開啟 0關閉
update=1
#自動更新的cdn節點針對國內用戶使用無牆或是使用VPN請設置0
#0 直鏈下載
#1 https://ghfast.top
#2 https://shrill-pond-3e81.hunsh.workers.dev
cdn=1
#自定義屏蔽外部掛載點 例OTG 虛擬SD等 多個掛載點請使用 | 區隔
#屏蔽後不會提示音量鍵選擇不影響Output_path指定外置存儲位置
mount_point="rannki|0000-1"
@@ -35,7 +45,7 @@ user=0
#此外設置0時將同時忽略appList.txt的!與任何黑名單設置(包括黑名單列表)
Backup_Mode=1
#執行生成應用列表.sh時輸出用於recovery救援的卡刷包
#執行start.sh時輸出用於recovery救援的卡刷包
#1輸出 0不輸出
recovery_flash=0
@@ -47,19 +57,17 @@ Backup_obb_data=1
#是否在應用數據備份完成後備份自定義目錄
#1開啟 0關閉
backup_media=1
backup_media=0
#存在進程忽略備份(1忽略0備份)
Background_apps_ignore=0
#假設你遇到列表輸出異常問題請將此設為1
debug_list=0
#添加自定義備份路徑 例Download DCIM等文件夾 請使用絕對路徑,請勿刪除""
Custom_path="
/storage/emulated/0/Pictures/
/storage/emulated/0/Download/
/storage/emulated/0/DCIM/
#/storage/emulated/0/Pictures/
#/storage/emulated/0/Download/
#/storage/emulated/0/Music
#/storage/emulated/0/DCIM/
/data/adb
"
@@ -68,8 +76,7 @@ blacklist_mode=0
#備份黑名單(備份策略由「黑名單模式」控制,此處只作為黑名單應用列表)
blacklist="
com.esunbank
com.esunbank.ESUNWALLET
#com.esunbank
#com.chailease.tw.app.android.ccfappcust"
#位於data的預裝應用白名單 例:相冊 錄音機 天氣 計算器等(默認屏蔽備份預裝應用,如需備份請添加預裝應用白名單)

9
start.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/system/bin/sh
if [ -f "${0%/*}/tools/tools.sh" ]; then
MODDIR="${0%/*}"
conf_path="${0%/*}/backup_settings.conf"
[ ! -f "${0%/*}/backup_settings.conf" ] && . "${0%/*}/tools/tools.sh"
else
echo "${0%/*}/tools/tools.sh遺失"
fi
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt"

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
tools/cmd Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -1,18 +0,0 @@
[ "$(echo "${0%/*}" | grep -o 'bin.mt.plus/temp')" != "" ] && echo "你媽沒告訴你腳本要解壓縮嗎?傻逼玩兒" && exit 2
if [ -f "${0%/*}/tools/tools.sh" ]; then
MODDIR="${0%/*}"
operate="backup"
conf_path="${0%/*}/backup_settings.conf"
Update_backup="1"
[ ! -f "${0%/*}/backup_settings.conf" ] && . "${0%/*}/tools/tools.sh"
case $(grep -o 'background_execution=.*' "$conf_path" | awk -F '=' '{print $2}') in
0)
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt" ;;
1)
{
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt"
} & ;;
esac
else
echo "${0%/*}/tools/tools.sh遺失"
fi

View File

@@ -1,18 +0,0 @@
[ "$(echo "${0%/*}" | grep -o 'bin.mt.plus/temp')" != "" ] && echo "你媽沒告訴你腳本要解壓縮嗎?傻逼玩兒" && exit 2
if [ -f "${0%/*}/tools/tools.sh" ]; then
MODDIR="${0%/*}"
operate="backup"
conf_path="${0%/*}/backup_settings.conf"
Update_backup=""
[ ! -f "${0%/*}/backup_settings.conf" ] && . "${0%/*}/tools/tools.sh"
case $(grep -o 'background_execution=.*' "$conf_path" | awk -F '=' '{print $2}') in
0)
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt" ;;
1)
{
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt"
} & ;;
esac
else
echo "${0%/*}/tools/tools.sh遺失"
fi

View File

@@ -1,18 +0,0 @@
[ "$(echo "${0%/*}" | grep -o 'bin.mt.plus/temp')" != "" ] && echo "你媽沒告訴你腳本要解壓縮嗎?傻逼玩兒" && exit 2
if [ -f "${0%/*}/tools/tools.sh" ]; then
MODDIR="${0%/*}"
operate="backup_media"
conf_path="${0%/*}/backup_settings.conf"
Update_backup=""
[ ! -f "${0%/*}/backup_settings.conf" ] && . "${0%/*}/tools/tools.sh"
case $(grep -o 'background_execution=.*' "$conf_path" | awk -F '=' '{print $2}') in
0)
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt" ;;
1)
{
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt"
} & ;;
esac
else
echo "${0%/*}/tools/tools.sh遺失"
fi

View File

@@ -1,18 +0,0 @@
[ "$(echo "${0%/*}" | grep -o 'bin.mt.plus/temp')" != "" ] && echo "你媽沒告訴你腳本要解壓縮嗎?傻逼玩兒" && exit 2
if [ -f "${0%/*}/tools/tools.sh" ]; then
MODDIR="${0%/*}"
operate="Getlist"
conf_path="${0%/*}/backup_settings.conf"
Update_backup=""
[ ! -f "${0%/*}/backup_settings.conf" ] && . "${0%/*}/tools/tools.sh"
case $(grep -o 'background_execution=.*' "$conf_path" | awk -F '=' '{print $2}') in
0)
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt" ;;
1)
{
. "${0%/*}/tools/tools.sh" | tee "${0%/*}/log.txt"
} & ;;
esac
else
echo "${0%/*}/tools/tools.sh遺失"
fi

View File

@@ -1,12 +0,0 @@
if [ -f "${0%/*}/tools/tools.sh" ]; then
MODDIR="${0%/*}"
operate="kill_script"
conf_path="${0%/*}/backup_settings.conf"
. "$MODDIR/tools/tools.sh"
echoRgb "等待腳本停止中,請稍後....."
kill_Serve && echoRgb "腳本終止"
exit
else
[[ $(echo "${0%/*}" | grep -o 'bin.mt.plus/temp') != "" ]] && echo "你媽沒告訴你腳本要解壓縮嗎?傻逼玩兒" && exit 2
echo "${0%/*}/tools/tools.sh遺失"
fi