Skip to content

Commit 2f35ec1

Browse files
committed
Upload file
1 parent cce444e commit 2f35ec1

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
# Dọn dẹp tmp
44
rm -fr $TMPDIR/* $HOME/cache/* $START_DIR/cache/* $TEMP/documents $TEMP/WebView &
55

6+
(
7+
# Cấp quyền tự động nếu đã root
8+
if [ "$ROT" == 1 ];then
9+
# Thêm không giới hạn tiết kiệm pin
10+
dumpsys deviceidle whitelist +$PACKAGE_NAME
11+
12+
# Cấp quyền ở miui, hyper
13+
# Danh sách các ứng dụng đã cài đặt
14+
cmd appops set $PACKAGE_NAME 10022 allow
15+
# Phím tắt màn hình chính
16+
cmd appops set $PACKAGE_NAME 10017 allow
17+
fi
18+
) &
19+
620
# Khởi động các file shell ở add-on
721
for vadd in $AON/*/early_start.sh $AOK/*/early_start.sh; do
822
if [ -f "$vadd" ];then

pio/src/main/assets/home/etc/tool-tree.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,8 +1105,8 @@ checktime
11051105
<group>
11061106
<action icon="'`urlpng restore_sign`'">
11071107
<title>'$restore_apk_text_3'</title>
1108-
<param name="FILE" title="'$restore_apk_text_1'" value-sh="glog apk_restore_sign" option-sh="findfile 10 $PTAD" required="true" />
1109-
<param name="FILE2" title="'$restore_apk_text_2'" value-sh="glog apk_restore_sign2" option-sh="findfile 10 $PTAD" required="true" />
1108+
<param name="FILE" title="'$restore_apk_text_1'" value-sh="glog apk_restore_sign" option-sh="findfile 10 $PTAD" required="true" label="'$option_text'"/>
1109+
<param name="FILE2" title="'$restore_apk_text_2'" value-sh="glog apk_restore_sign2" option-sh="findfile 10 $PTAD" required="true" label="'$option_text'"/>
11101110
<set>
11111111
slog apk_restore_sign "$FILE"
11121112
slog apk_restore_sign2 "$FILE2"

0 commit comments

Comments
 (0)