File tree Expand file tree Collapse file tree
src/main/java/com/omarea/common/shell
pio/src/main/assets/home/etc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ dependencies {
3232 implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2"
3333 implementation ' androidx.appcompat:appcompat:1.7.1'
3434 implementation ' androidx.core:core:1.17.0'
35- implementation ' androidx.recyclerview:recyclerview:1.4.0'
35+ implementation ' androidx.recyclerview:recyclerview:1.4.0'
3636}
3737repositories {
3838 mavenCentral()
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ class ShellTranslation(val context: Context) {
336336 } else if (args.isNotEmpty()) {
337337 onAm(args)
338338 }
339- return null
339+ return " "
340340 }
341341
342342 var result = originRow
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ doc_text="Document"
2020addon_text=" Add-on"
2121home_text=" Home"
2222checktime=" Total time"
23- begin_start=" Installing data"
23+ begin_start=" Installing data... "
2424trademark_text=" Brand"
2525version_text=" Version"
2626default_text=" Default"
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ doc_text="Văn bản"
2020addon_text=" Add-on"
2121home_text=" Trang chủ"
2222checktime=" Tổng thời gian"
23- begin_start=" Đang cài đặt dữ liệu "
23+ begin_start=" Đang cài đặt... "
2424trademark_text=" Thương hiệu"
2525version_text=" Phiên bản"
2626default_text=" Mặc định"
Original file line number Diff line number Diff line change 33# Dọn dẹp tmp
44rm -fr $TMPDIR /* $HOME /cache/* $START_DIR /cache/* $TEMP /documents $TEMP /WebView &
55
6+ (
7+ # Tải về nhật ký
8+ echo " Download the log and the latest version..." & >> $TEMP /Install.log
9+ timeout 20 Taive ' https://raw.githubusercontent.com/Zenlua/Tool-Tree/refs/heads/main/Version.md' $TEMP /Version.md & >> $TEMP /Install.log
10+ text_num_1=" $( grep -nm1 Version: $TEMP /Version.md | tail -1 | cut -d: -f1) "
11+ text_num_2=" $( grep -nm4 Version: $TEMP /Version.md | tail -1 | cut -d: -f1) "
12+ sed -n " $text_num_1 ,$(( text_num_2 - 1 )) p" $TEMP /Version.md | sed -e " s|\*\*||g" -e " s|+|•|g" | trans -b " $LANGUAGE -$COUNTRY " > $TEMP /version.txt
13+
14+ # Thông báo cập nhật
15+ websum=" $( Xem https://api.github.com/repos/Zenlua/Tool-Tree/releases/latest | jq -r .assets[0].digest | cut -d: -f2) "
16+ if [[ " $websum " != " $( checksum " $PATH_APK " ) " ]]; then
17+ if [ ! -f $TEMP /update ] && [ -n " $websum " ]; then
18+ notiservice --am --id $RANDOM --message " $update_text_6 "
19+ echo " $websum " > $TEMP /update
20+ fi
21+ else
22+ [ -f $TEMP /update ] && rm -f $TEMP /update
23+ fi
24+ ) &
25+
626(
727# Cấp quyền tự động nếu đã root
828if [ " $ROT " == 1 ]; then
You can’t perform that action at this time.
0 commit comments