[Android Pro] app_process command in Android

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.