Skip to content

Commit 1366e65

Browse files
committed
Upload file
1 parent 03c75f6 commit 1366e65

6 files changed

Lines changed: 24 additions & 4 deletions

File tree

common/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}
3737
repositories {
3838
mavenCentral()

common/src/main/java/com/omarea/common/shell/ShellTranslation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
-1.12 KB
Binary file not shown.

pio/src/main/assets/home/etc/lang/default.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ doc_text="Document"
2020
addon_text="Add-on"
2121
home_text="Home"
2222
checktime="Total time"
23-
begin_start="Installing data"
23+
begin_start="Installing data..."
2424
trademark_text="Brand"
2525
version_text="Version"
2626
default_text="Default"

pio/src/main/assets/home/etc/lang/vi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ doc_text="Văn bản"
2020
addon_text="Add-on"
2121
home_text="Trang chủ"
2222
checktime="Tổng thời gian"
23-
begin_start="Đang cài đặt dữ liệu"
23+
begin_start="Đang cài đặt..."
2424
trademark_text="Thương hiệu"
2525
version_text="Phiên bản"
2626
default_text="Mặc định"

pio/src/main/assets/home/etc/start-early.rc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
# Dọn dẹp tmp
44
rm -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
828
if [ "$ROT" == 1 ];then

0 commit comments

Comments
 (0)