The Standard Monkey command
For example:
-
Generates 500 random events that act on all the activity in the system (not all activity, but the activity that contains intent.category_launcher or Intent.category_monkey).
The above is just a simple example, there are usually a lot of options available in the actual situation
Order category
Divided into common options, event options, constraint options, debugging options
1: Common options
--Help: Printing assistance information 0 .
2: Event Options
$ --pct-Touch: Specifies the percentage of touch events, such as:--pct-touch5 , related to the following option:-- Pct-motion <percent> (Slide event),--pct-trackball <percent> (Trackball event),--pct-nav <percent> (navigation event up/down/ Left/right),--pct-majornav <percent> (main navigation event back key, Menu key),--pct-syskeys <percent> (System key event Home, back , Startcall, Endcall, Volumecontrol),--pct-appswitch <percent> (toggle between activity),--pct-anyevent <percent> (Any event)
3: Constraint options
-P: Specifies a valid package (if not specified, it is valid for all package in the system), and one-p corresponds to a valid package, such as:-P com.ckt-p Com.ckt.asura; C:activity must contain at least one specified category in order to be activated, otherwise it will not start;
4: Debug Options
--dbg-no-Events: Initializes the activated activity, but does not produce any events. --hprof: An analysis report is generated immediately before and after the event sequence is specified--it is generally recommended that the item be specified. --ignore-crashes: Ignore crash --ignore-Timeouts: Ignore timeout --ignore-security-Exceptions: Ignore security exception -Kill-process-after-error: Kill the process directly after an error --monitor-native-crashes: Tracing the crash of the local method -- Wait-dbg: Know that the debugger is connected to perform the monkey test.
Monkey Command Explanation