XXX XXX - 1 year ago 110
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
mount -t rfs -o remount,rw /dev/block/stl9 /system
cp /sdcard/MyApp.apk /system/app/MyApp.apk

Answer Source

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