|
|
@@ -10,11 +10,14 @@ install_tools () {
|
|
|
)
|
|
|
}
|
|
|
copy_scripts () {
|
|
|
- echo $1
|
|
|
sed "s/AGENCY_ID/${1}/g" exec.sh.in > exec.sh
|
|
|
adb push exec.sh /sdcard/wechat/exec.sh
|
|
|
adb push crontab /sdcard/
|
|
|
adb push start.sh /sdcard/start.sh
|
|
|
+ adb shell "su - [ -d /data/data/com.termux/files/home ]"
|
|
|
+ if [ "$?" = "1" ]; then
|
|
|
+ read -p "Launch Termux for its bootstraping, press any key when completed"
|
|
|
+ fi
|
|
|
adb shell 'su - mv -f /sdcard/start.sh /data/data/com.termux/files/home/start.sh'
|
|
|
adb shell 'su - chmod 555 /data/data/com.termux/files/home/start.sh'
|
|
|
echo "Final step: install Busybox MANUALLY and execute ./start.sh in Termux at every time startup"
|