Monkey: Set the name of the process to distinguish from generic name (app_process)

Change-Id: If58ff437bfbea421dc00a2d85547267c010871e4
This commit is contained in:
Vairavan Srinivasan
2010-08-03 10:00:55 -07:00
parent b86b7f72db
commit 83c57574b7

View File

@@ -357,6 +357,8 @@ public class Monkey {
// Set ro.monkey if it's not set yet.
SystemProperties.set("ro.monkey", "true");
Process.setArgV0("com.android.commands.monkey");
int resultCode = (new Monkey()).run(args);
System.exit(resultCode);
}