天天看點

[Android Pro] app_process command in Android

本來以為存放在/systen/bin/下的monkey、input、am等adb shell指令都是二進制可執行程,偶爾cat input下,發現不是二進制檔案,内容如下:

這段腳本的作用就是通過app_process工具啟動放在/system/farmework/下的input.jar 檔案。我檢視了下framework檔案夾裡面的确有input.jar檔案。

What is this app_process

Although not that popular “app_process” command is used heavily in Android, for example the well know “am” script is using it. Everybody knows how to start an application from adb shell:

am start -n yourpackagename/.activityname

However “am” is just a shell script and what stays in the base of the am script is our app_process binary:

[Android Pro] app_process command in Android
[Android Pro] app_process command in Android

So app_process is the binary used to start java code. All the apps, instrumentations or installations are tarted using this.

Lets see the official usage output:

本文轉自demoblog部落格園部落格,原文連結http://www.cnblogs.com/0616--ataozhijia/p/4993148.html如需轉載請自行聯系原作者

demoblog

繼續閱讀