-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMonkey.html
111 lines (110 loc) · 4.62 KB
/
Monkey.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="zh_cn">
<head>
<meta charset="UTF-8">
<title>Monkey</title>
<style type="text/css">
table#input {
width:100%;
margin-left: 20px;
}
tr.row {
width:100%;
margin:10px;
height: 65px;
}
.row td{
<!--width:30%;-->
}
div.button {
width:50%;
margin-left: 60%;
margin-top: 10px;
margin-bottom: 10px;
}
button{
margin-left: 20px;
}
#other {
height: 2em;
width: 90%;
}
#help {
font-size: 12px;
}
#help div span{
margin-left: 20px;
}
</style>
<script type="text/javascript" src="./qwebchannel.js"></script>
<script src="https://img.highcharts.com.cn/highcharts/highcharts.js"></script>
<script src="https://img.highcharts.com.cn/highcharts/modules/exporting.js"></script>
<script src="http://cdn.hcharts.cn/highcharts/modules/offline-exporting.js"></script>
<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
</head>
<body>
<h3 style="text-align: center;">APP Monkey</h3>
<table id="input">
<tbody>
<tr class="row">
<td><span>包 名: </span><input type="text" id="package" value="com.miui.calculator"></td>
<td><span>seed: </span><input type="text" id="seed" value="23"></td>
<td id="help" rowspan="6">
<div>usage: monkey [-p ALLOWED_PACKAGE [-p ALLOWED_PACKAGE] ...]</div>
<div> [-c MAIN_CATEGORY [-c MAIN_CATEGORY] ...]</div>
<div> [--ignore-crashes] [--ignore-timeouts]</div>
<div> [--ignore-security-exceptions]</div>
<div> [--monitor-native-crashes] [--ignore-native-crashes]</div>
<div> [--kill-process-after-error] [--hprof]</div>
<div> [--pct-touch PERCENT] [--pct-motion PERCENT]</div>
<div> [--pct-trackball PERCENT] [--pct-syskeys PERCENT]</div>
<div> [--pct-nav PERCENT] [--pct-majornav PERCENT]</div>
<div> [--pct-appswitch PERCENT] [--pct-flip PERCENT]</div>
<div> [--pct-anyevent PERCENT] [--pct-pinchzoom PERCENT]</div>
<div> [--pct-permission PERCENT]</div>
<div> [--pkg-blacklist-file PACKAGE_BLACKLIST_FILE]</div>
<div> [--pkg-whitelist-file PACKAGE_WHITELIST_FILE]</div>
<div> [--wait-dbg] [--dbg-no-events]</div>
<div> [--setup scriptfile] [-f scriptfile [-f scriptfile] ...]</div>
<div> [--port port] <span>[-s SEED] [-v [-v] ...]</span></div>
<div> [--throttle MILLISEC] [--randomize-throttle]</div>
<div> [--profile-wait MILLISEC]</div>
<div> [--device-sleep-time MILLISEC]</div>
<div> [--randomize-script]</div>
<div> [--script-log] <span>[--bugreport]</span></div>
<div> [--periodic-bugreport]</div>
<div> [--permission-target-system]</div>
<div> COUNT</div>
</td>
</tr>
<tr class="row">
<td><span>延 迟: </span><input type="text" id="throttle" value="150"></td>
<td><span>日 志: </span><input type="text" id="v" value="-v -v -v"></td>
</tr>
<tr class="row">
<td><span>touch: </span><input type="text" id="touch" value="30"></td>
<td><span>motion: </span><input type="text" id="motion" value="10"></td>
</tr>
<tr class="row">
<td><span>syskeys: </span><input type="text" id="syskeys" value="0"></td>
<td><span>appswitch: </span><input type="text" id="appswitch" value="0"></td>
</tr>
<tr class="row">
<td><span>次 数: </span><input type="text" id="times" value="1000"></td>
</tr>
<tr>
<td colspan="2"><div>其 它: </div><textarea id="other"></textarea></td>
</tr>
</tbody>
</table>
<div class="button">
<button onclick="run();">运行</button>
<button onclick="monitor();">监控</button>
<button onclick="stopIt();">停止监控</button>
</div>
<div id="container" style="min-width:600px;height:300px"></div>
<div id="mem" style="min-width:600px;height:300px"></div>
<script src="./monkey.js"></script>
</body>
</html>