Reference to:http://blog.csdn.net/wangkaiblog/article/details/46050587
It was thought that the monkey, input, am and other adb shell commands stored under/systen/bin/were binary executables, and occasionally cat input found not binary files, as follows:
" input " which Has a very rudimentary# shell. #base=/systemexport CLASSPATH= $base/framework/input.jarexecapp_ Process $base/bin com.android.commands.input.Input $*
The purpose of this script is to start the Input.jar file placed under/system/farmework/with the App_process tool. I looked in the following framework folder and there are Input.jar files.
What's this app_process
Although not the popular "app_process" command is used heavily on Android, for example The well know "AM" script is using it. Everybody knows how to start a application from adb shell:
am start-n yourpackagename/.activityname
However "AM" I s just a shell script and what stays in the base of the AM script are our app_process binary:
[email protected]:/# cat /system/bin/ am cat /system/bin/ " am " on the device, which has a very rudimentary# shell.base =/ systemexport CLASSPATH = $base/framework//bin com.android.commands.am.Am " [email protected] [email Protected]: /#
So app_process are the binary used to start Java code. All the apps, instrumentations or installations is tarted using this.
Lets See the official usage output:
[Email protected]:/ # app_processusage:app_process [java-options] cmd-dir start-class-name [ Options]not quite complete as usual:)
[Android Pro] app_process command in Android