This commit is contained in:
Yawasau
2024-03-24 13:09:32 +08:00
parent 927590b095
commit 0963b30a34

View File

@@ -326,12 +326,6 @@ case $LANG in
alias ts="app_process /system/bin --nice-name=appinfo han.core.order.ChineseConverter -t $@" ;; alias ts="app_process /system/bin --nice-name=appinfo han.core.order.ChineseConverter -t $@" ;;
esac esac
alias LS="toybox ls -Zd" alias LS="toybox ls -Zd"
#[[ $1 = --help ]] && appinfo --help
#appinfo -o pn -u | while read; do
# case $REPLY in
# *camera*) cmd package install-existing "$REPLY" ;;
# esac
#done
Set_back_0() { Set_back_0() {
return 0 return 0
} }
@@ -714,7 +708,7 @@ else
fi fi
case $operate in case $operate in
Getlist|Restore2|Restore3|dumpname|check_file|backup_media|convert|Device_List) ;; Getlist|Restore2|Restore3|dumpname|check_file|backup_media|convert|Device_List) ;;
*)isBoolean "$Lo" "Lo" && Lo="$nsx" ;; *) isBoolean "$Lo" "Lo" && Lo="$nsx" ;;
esac esac
cdn=2 cdn=2
#settings get system system_locales #settings get system system_locales
@@ -1406,10 +1400,12 @@ Check_archive() {
Set_screen_pause_seconds () { Set_screen_pause_seconds () {
if [[ $1 = on ]]; then if [[ $1 = on ]]; then
#獲取系統設置的無操作息屏秒數 #獲取系統設置的無操作息屏秒數
Get_dark_screen_seconds="$(settings get system screen_off_timeout)" if [[ $Get_dark_screen_seconds = "" ]]; then
#設置30分鐘後息屏 Get_dark_screen_seconds="$(settings get system screen_off_timeout)"
settings put system screen_off_timeout 1800000 #設置30分鐘後息屏
echo_log "設置無操作息屏時間30分鐘" settings put system screen_off_timeout 1800000
echo_log "設置無操作息屏時間30分鐘"
fi
elif [[ $1 = off ]]; then elif [[ $1 = off ]]; then
if [[ $Get_dark_screen_seconds != "" ]]; then if [[ $Get_dark_screen_seconds != "" ]]; then
settings put system screen_off_timeout "$Get_dark_screen_seconds" settings put system screen_off_timeout "$Get_dark_screen_seconds"