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

This commit is contained in:
Jean-Baptiste Queru
2010-08-16 09:19:10 -07:00
committed by Android Code Review

View File

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