Skip to content

Commit 476aad1

Browse files
committed
Upload file
1 parent 5d9a22b commit 476aad1

8 files changed

Lines changed: 28 additions & 18 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
- Instruct: **[No-Root](https://zenlua.github.io/Tool-Tree/website/Guide.html)**
1212

13+
- Home path after root: /data/local/Tool-Tree
14+
1315
- If the application has root privileges, it will run faster you can copy the path directly from the log to access it directly.
1416

1517
- Report: **[Issues](https://github.com/Zenlua/Tool-Tree/issues)** or **[Telegram](https://t.me/tooltree)**

add-on/Apkon.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Apk-on
1+
## Apk-on
22

33
- List of add-ons in utilities tab
44

5-
#### Jre21 lite
5+
#### Jre21 Lite
66

77
- update Java 21 jre
88

99
- [Download](https://github.com/Zenlua/Tool-Tree/releases/download/V1/jre21.add)
1010

11-
#### Jre25 lite
11+
#### Jre25 Lite
1212

1313
- update Java 25 jre
1414

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '2.2.0'
4+
ext.kotlin_version = '2.3.0'
55

66
repositories {
77
mavenCentral()

pio/src/main/assets/home/bin/repack_img

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,14 @@ for fstab in $listfab; do
128128
if [ -f "$fstab" ];then
129129
if [ "$2" == 1 ];then
130130
if [[ -n $(cat "$fstab" | grep -v "avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey" | grep -i "avb") ]]; then
131-
sed -i "s/avb,//g; s/,avb=vbmeta_system//; s/,avb=vbmeta//; s/,,/,/g" "$fstab"
131+
sed -i "s/avb,//g; s/,avb=vbmeta//g; s/,avb=.*system//g; s/,avb=.*vendor//g; s/,avb=.*vbmeta//g; s/,avb_keys.*key//g; s/,avb//g; s/,,/,/g" "$fstab"
132132
echo "Deleted avb in fstab: ${fstab##*/}"
133-
else
134-
echo "avb_key not found: ${fstab##*/}"
135133
fi
136134
if [[ -n $(cat "$fstab" | egrep -i "fileencryption|keydirectory") ]]; then
137135
sed -i 's/fileencryption=[^,]*,//' "$fstab"
138136
sed -i 's/keydirectory=[^,]*,//' "$fstab"
139137
sed -i 's/metadata_encryption=[^,]*,//' "$fstab"
140138
echo "Decrypted data: ${fstab##*/}"
141-
else
142-
echo "No data encryption found in: ${fstab##*/}"
143139
fi
144140
fi
145141
fi

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@ xml_print '
2424
<action icon="'`urlpng input_decom`'" shell="hidden" >
2525
<title>'$project_text_1'</title>
2626
<summary sh="echo -n '"'$folder_text: '"'; glog PTSD | sed '"'s|$SDCARD_PATH|\/sdcard|'"'" />
27-
<param name="Name" readonly="1" label="'$setting_text_3'" value-sh="glog PTSH" type="text"/>
27+
<param name="Name" label="'$setting_text_3'" option-sh="findfile for $SDH" value-sh="glog PTSH"/>
2828
<param name="Folder" value-sh="glog PTSD" type="folder" editable="true" required="true"/>
2929
<set>
30+
if [ ! -d "$Folder" ] || [ ! -d "$SDH/${Folder##*/}" ];then
3031
slog PTSD "$Folder"
3132
slog PTSH "${Folder##*/}"
3233
mkdir -p "$SDH/${Folder##*/}" "$Folder"
34+
elif [ -d "$SDH/$Name" ];then
35+
slog PTSH "$Name"
36+
slog PTSD "$SDCARD_PATH/$Name"
37+
fi
3338
</set>
3439
</action>'
3540
}
@@ -39,12 +44,17 @@ xml_print '
3944
<action icon="'`urlpng build_decom`'" shell="hidden" >
4045
<title>'$project_text_2'</title>
4146
<summary sh="echo -n '"'$folder_text: '"'; glog PTAD | sed '"'s|$SDCARD_PATH|\/sdcard|'"'" />
42-
<param name="Name" readonly="1" label="'$setting_text_3'" value-sh="glog PTAH" type="text"/>
47+
<param name="Name" label="'$setting_text_3'" option-sh="findfile for $APK" value-sh="glog PTAH"/>
4348
<param name="Folder" value-sh="glog PTAD" type="folder" editable="true" required="true"/>
4449
<set>
50+
if [ ! -d "$Folder" ] || [ ! -d "$APK/${Folder##*/}" ];then
4551
slog PTAD "$Folder"
4652
slog PTAH "${Folder##*/}"
4753
mkdir -p "$APK/${Folder##*/}" "$Folder"
54+
elif [ -d "$APK/$Name" ];then
55+
slog PTAH "$Name"
56+
slog PTAD "$SDCARD_PATH/$Name"
57+
fi
4858
</set>
4959
</action>'
5060
}

website/Guide.md

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

3-
Application user guide
3+
**Application user guide**
44

55
- If you don't have root, you can see the following image so that **[MT Manager](https://mt2.cn/download)** can access the tool memory above.
66

77
- Can copy rom, and apk to following folder for decryption: `ROM` `APK`
88

99
> `/sdcard/TREE`
10+
> `/storage/emulated/0/TREE`
1011
1112
- Where to store decrypted roms and apk: `TREE` `TOOL`
1213

14+
> `/storage/xxxx-xxxx/data/files/home`
1315
> `/data/data/com.tool.tree/files/home`
1416
1517
- More discover it yourself

website/Information.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
**Donate**
1818

1919
+ [Paypal](https://paypal.me/kakathic)
20-
20+
2121
+ Techcombank Vietnam: `19034902604017` (VTCBVNVX)
2222

2323
**Thank you for visiting**

website/Instruct.md

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

3-
Add-on file format
3+
**Add-on file format**
44

55
- Is a compressed file in .zip or .7z format
66

77
- After compression is complete, rename the extension to file.add
88

9-
Internal structure of add-on file
9+
**Internal structure of add-on file**
1010

1111
```
1212
file.add
@@ -21,7 +21,7 @@ file.add
2121
└── language.sh # subfile of index.sh to add language
2222
```
2323

24-
Contents of addon.prop file
24+
**Contents of addon.prop file**
2525

2626
```
2727
# is a shell script file
@@ -39,13 +39,13 @@ versionCode=100
3939
root=false
4040
```
4141

42-
Add-on icon
42+
**Add-on icon**
4343

4444
- The icon.png file is an image file that can be 100x100 ~ 500x500 in size
4545

4646
- Can also rename icon_true.png, icon_false.png, true is dark mode, false is light mode.
4747

48-
Content inside index.sh, index.xml
48+
**Content inside index.sh, index.xml**
4949

5050
- There are many things that are difficult to say that can only be found out by yourself.
5151

0 commit comments

Comments
 (0)