File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33if [ "$UID" != "0" ] && [ "$UID" != "1000" ] && [ "$UID" != "2000" ]; then
44export CLASSPATH="$ETC/am.apk"
5+ if [ $(getprop ro.build.version.sdk) -ge 34 ]; then
56chmod 0400 "$CLASSPATH"
7+ fi
68exec /system/bin/app_process -Xnoimage-dex2oat /system/bin \
79 com.termux.termuxam.Am "$@"
810else
Original file line number Diff line number Diff line change 1+ #! /data/data/com.tool.tree/files/home/bin/bash
2+ DEX=" $ETC " /rish_shizuku.dex
3+
4+ if [ ! -f " $DEX " ]; then
5+ echo " Cannot find $DEX , please check the tutorial in Shizuku app"
6+ exit 1
7+ fi
8+
9+ if [ $( getprop ro.build.version.sdk) -ge 34 ]; then
10+ if [ -w $DEX ]; then
11+ chmod 400 $DEX
12+ fi
13+ if [ -w $DEX ]; then
14+ echo " Cannot remove the write permission of $DEX ."
15+ echo " You can copy to file to terminal app's private directory (/data/data/<package>, so that remove write permission is possible"
16+ exit 1
17+ fi
18+ fi
19+
20+ # Replace "PKG" with the application id of your terminal app
21+ [ -z " $RISH_APPLICATION_ID " ] && export RISH_APPLICATION_ID=" com.tool.tree"
22+ if [ " $1 " == ' -c' ] && [ " $2 " ]; then
23+ /system/bin/app_process -Djava.class.path=" $DEX " /system/bin --nice-name=rish rikka.shizuku.shell.ShizukuShellLoader " $@ " &
24+ wait
25+ else
26+ /system/bin/app_process -Djava.class.path=" $DEX " /system/bin --nice-name=rish rikka.shizuku.shell.ShizukuShellLoader " $@ "
27+ fi
You can’t perform that action at this time.
0 commit comments