Skip to content

Commit ed7a1af

Browse files
committed
Upload file
1 parent ea8cfb3 commit ed7a1af

15 files changed

Lines changed: 186 additions & 24 deletions

File tree

Version.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# [Tool-Tree](https://zenlua.github.io/Tool-Tree)
22

3-
**Version: 1.2.9 (dev action)**
3+
**Version: 1.2.9 (8-2-2026)**
44

55
+ Allows quick project selection
66
+ Fix the fstab patch code.
7+
+ Fix checksum code.
78

89
**Version: 1.2.8 (5-2-2026)**
910

add-on/Addon.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
11
## Add-on
22

33
- List of add-ons in favorites tab
4-
5-
#### Payload dumper online
6-
7-
- Import ROM file path for faster download
8-
9-
- [Download](https://github.com/Zenlua/Tool-Tree/releases/download/V1/payload_online.add)
10-
11-
#### Merge system-root
12-
13-
- Merge partitions into system_root
14-
15-
- [Download](https://github.com/Zenlua/Tool-Tree/releases/download/V1/Merge-System.add)

pio/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ android {
1919
resourceConfigurations += ['zh', 'vi', 'ru', 'hu']
2020
minSdkVersion 23
2121
targetSdkVersion 28
22-
// versionCode Integer.parseInt(new java.text.SimpleDateFormat("yyMMddHH").format(new Date()))
23-
versionCode 26020807
22+
versionCode Integer.parseInt(new java.text.SimpleDateFormat("yyMMddHH").format(new Date()))
23+
// versionCode 26020807
2424
versionName "1.2.9"
2525
}
2626
signingConfigs {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fi
2626
) &>>$TEMP/Install.log &
2727

2828
# Khởi động các file shell ở add-on
29+
chmod 777 $AON/*/* $AOK/*/*
2930
for vadd in $AON/*/early_start.sh $AOK/*/early_start.sh; do
3031
if [ -f "$vadd" ];then
3132
(
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Add-on
2+
3+
id=merge-system
4+
name=Merge system-root
5+
author=Kakathic
6+
description=Merge partitions into system_root
7+
version=1.0
8+
versionCode=100
9+
root=false
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/data/data/com.tool.tree/files/home/bin/bash
2+
[[ -z "$1" ]] && exit 1
3+
MPAT="${0%/*}"
4+
5+
# Run code
6+
for v in $3 $4; do
7+
hcdgv=$(($hcdgv + 2))
8+
9+
progress $hcdgv/12
10+
unpak_img -i "$PTSD/$v" -o "$MPAT/tmp" -n 0 -d $1
11+
tm="$(echo "$v" | cut -d "/" -f2 | cut -d "." -f1 \
12+
| sed -e 's|.img||' -e 's|.new.img||')"
13+
if [ "$tm" != "system" ];then
14+
fc="$MPAT/tmp/config/${tm}_file_contexts"
15+
fcc="$MPAT/tmp/config/${tm}_fs_config"
16+
sfc="$MPAT/tmp/config/system_file_contexts"
17+
sfcc="$MPAT/tmp/config/system_fs_config"
18+
cat "$fc" | sed -e "/\/ u:/d" -e "/\/$tm(\/.*)? u:/d" \
19+
-e "s|/$tm/|/system/$tm/|" >> "$sfc"
20+
cat "$fcc" | sed -e "/\/ 0 0 0755/d" -e "/$tm\/ 0 0 0755/d" \
21+
-e "s|$tm/|system/$tm/|" >> "$sfcc"
22+
rm -fr $MPAT/tmp/system/$tm
23+
mv -f $MPAT/tmp/$tm $MPAT/tmp/system
24+
fi
25+
done
26+
27+
progress "-1/0"
28+
if [ "$5" == 1 ];then
29+
repack_img -i "$MPAT/tmp/system" -o "$MPAT/out" -k $dang_file -d $1
30+
rm -fr "$MPAT/tmp"
31+
fi
10.9 KB
Loading
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/data/data/com.tool.tree/files/home/bin/bash
2+
# Kakathic
3+
4+
MPAT="${0%/*}"
5+
echo '<?xml version="1.0" encoding="UTF-8" ?><page>'
6+
# lấy dữ liệu ngôn ngữ
7+
source $MPAT/language.sh
8+
9+
echo '<group>
10+
<action icon="'`icpng merge_system $ETC/icon`'" interruptible="false">
11+
<title>'$name_text'</title>
12+
<set>
13+
slog silencekd "$silence"
14+
slog dang_filehd "$dang_file"
15+
'$MPAT'/combine_img.sh $silence $dang_file "$MUTIIMG" "$IMAGE" 1
16+
echo
17+
echo "'$save_text $MPAT/out'"
18+
echo
19+
checktime
20+
</set>
21+
<param name="silence" value-sh="glog silencekd" label="'$delete_text'" type="checkbox" />
22+
<param name="dang_file" value-sh="glog dang_filehd" label="'$option_text'" desc="'$merge_partition_1'" options-sh="echo -e '"'0|$default_text\n1|erofs\n3|ext4'"'"/>
23+
<param name="MUTIIMG" label="'$option_text'" options-sh="findfile 6 $PTSD" desc="'$merge_partition_3'" required="true" />
24+
<param name="IMAGE" options-sh="findfile 3 $PTSD | sed '"'/system\./d'"'" desc="'$merge_partition_5'" required="true" multiple="true"/>
25+
</action>
26+
</group>' | sed -z -e 's|\&|\&amp;|g' -e 's|§|\&#xA;|g'
27+
28+
# kết thúc
29+
echo '</page>'
30+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# kakathic
2+
3+
# Ngôn ngữ riêng
4+
langEn(){
5+
name_text="Merge system-root"
6+
option_text="Option"
7+
default_text="Default"
8+
save_text="Save in:"
9+
delete_text="Delete the original file after completion"
10+
merge_partition_1="File save format"
11+
merge_partition_3="Select system to merge other partitions"
12+
merge_partition_5="Select partitions to merge into system"
13+
}
14+
15+
langVi(){
16+
name_text="Hợp nhất system-root"
17+
option_text="Lựa chọn"
18+
default_text="Mặc định"
19+
save_text="Lưu ở:"
20+
delete_text="Xoá tệp tin gốc sau khi hoàn thành"
21+
merge_partition_1="Định dạng lưu file"
22+
merge_partition_3="Chọn system để các phân vùng khác gộp vào"
23+
merge_partition_5="Chọn các phân vùng để gộp vào system"
24+
}
25+
26+
case "$LANGUAGE" in
27+
"vi")
28+
langVi;
29+
;;
30+
*)
31+
langEn;
32+
;;
33+
esac

pio/src/main/assets/module/ZADD/online_features/early_start.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)