XXX XXX - 6 months ago 22
Bash Question

Executing shell commands programmatically

I want to execute this shell commands by program. How can I do it?

cd C:\android-sdk\platform-tools
adb shell
su
mount -t rfs -o remount,rw /dev/block/stl9 /system
cp /sdcard/MyApp.apk /system/app/MyApp.apk

Answer

You Should write the exact syntax you used here in a .bat file, and then just execute it.

Comments