1、monkey命令格式
直接adb shell进入后输入monkey [options] <eventcount>
或者每次输入adb shell monkey [options] <eventcount>
2、monkey -help 列车简单的用法
3、monkey x 随机操作x次
1)-v :用于指定信息级别总共有三级,默认是0级。提供测试启动、完整、最终结果和点击、触摸的操作百分比
2)-v -v :1级,提供较为详细的测试信息,包括每个发送到activity的事件的信息
3)-v -v -v :2级,提供最为详细的信息,包活选中和未选中的activity信息
4)-p :monkey -p 包名 x 指定包名。如果指定包名则随机操作该app x次。如果不指定包名则对系统随机操作。可以同时指定多个包,则需要加多个-p,一个-p后面跟一个包名。具体查看手机中 有什么包或者那个app的包名是什么参考笔者的adb命令
5)-s:伪随机数生成器的seed值,常常用于复现问题。如果seed值相同则生成的事件序列也是相同的
6)--throtle:monkey --throttle xx 事件的延迟,即每次操作的时候中间都会有xx毫秒时间的延迟。如果不设置则以最快的速度运行
7)--ignore-crashes:忽略崩溃,即在运行时遇到程序崩溃或者出现异常不会停止操作,直到到达设置的操作数
8)--ignore-timeouts:忽略超时
9)--ignore-security-exception:忽略安全异常
10)--kill-process-after-error:发生错误后直接杀掉进程
11)--monitor-native-crashes:指定是否监视并报告应用程序发生崩溃的本地代码
12)--pct-touch xx(百分比):调整触摸事件的百分比(触摸事件是一个down-up事件,它发生在屏幕上的某单一位置),monkey -p com.xxx.yyy --pct-touch 5 300
13)--pct-motion xx(百分比):调整动作事件的百分比(动作事件由屏幕上某处的一个down事件、一系列的伪随件机事和一个up事件组成)
14)--pct-trackball xx(百分比):调整轨迹事件的百分比(轨迹事件由一个或几个随机的移动组成,有时还伴随有点击)
15)--pct-nav xx(百分比):调整“基本”导航事件的百分比(导航事件由来自方向输入设备的up/down/left/right组成)
16)--pct-majornav xx(百分比):调整“主要”导航事件的百分比(这些导航事件通常引发图形界面中的动作)
17)>/User/testlog.txt:输入log。将log输出在/User/下的testlog.txt文件中
4、简单的操作
monkey -p com.xxx.yyy -v -v 3000
对com.xxx.yyy包进行3000次随机操作,并将log以2级的记录
5、复杂的操作
monkey --throttle 1 -s 23 -p com.xxx.yyy --ignore-crashes --ignore-timeouts -v -v -v 60000>/User/local/log.txt 2>&1 &
对com.xxx.yyy包进行60000次随机操作,每个事件延迟1ms,种子序列为23,忽略异常,忽略超时。将结果以最详细的方式记录并且输出在/User/local/路径下的log.txt文档中。2>&1固定写法,将忽略内容的日志也写进结果中。最后一个&表示如果是真机则拔掉usb线monkey继续操作不会停止,直到事件操作完60000次。除非关机不然monkey不会停止
6、测试及结果
monkey -p com.tencent.qqlive -s 23 --throttle 2 --ignore-crashes --ignore-timeouts -v -v -v 300 2>&1 &
结果:
:Monkey: seed=23 count=300
:AllowPackage: com.tencent.qqlive
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
// Selecting main activities from category android.intent.category.LAUNCHER
// - NOT USING main activity com.android.gallery3d.vivo.GalleryTabActivity (from package com.vivo.gallery)
// - NOT USING main activity com.android.contacts.DialtactsContactsEntryActivity (from package com.android.contacts)
// - NOT USING main activity com.android.dialer.TwelveKeyDialer (from package com.android.dialer)
// - NOT USING main activity com.vivo.email.activity.Welcome (from package com.android.email)
// - NOT USING main activity com.android.mms.ui.ConversationList (from package com.android.mms)
// - NOT USING main activity com.android.settings.Settings (from package com.android.settings)
// - NOT USING main activity com.android.bbksoundrecorder.SoundRecorder (from package com.android.bbksoundrecorder)
// - NOT USING main activity com.android.VideoPlayer.VideoPlayer (from package com.android.VideoPlayer)
// - NOT USING main activity com.bbk.calendar.MainActivity (from package com.bbk.calendar)
// - NOT USING main activity com.android.camera.CameraActivity (from package com.android.camera)
// - NOT USING main activity com.bbk.theme.Theme (from package com.bbk.theme)
// - NOT USING main activity com.android.bbkmusic.WidgetToTrackActivity (from package com.android.bbkmusic)
// - NOT USING main activity com.chaozh.iReader.ui.activity.WelcomeActivity (from package com.chaozh.iReader)
// - NOT USING main activity com.didi.es.biz.startpage.StartActivity (from package com.didi.es.psngr)
// - NOT USING main activity com.sohu.inputmethod.sogou.SogouIMELauncher (from package com.sohu.inputmethod.sogou)
// - NOT USING main activity com.cto51.student.loading.LoadingActivity (from package com.cto51.student)
// - NOT USING main activity com.android.bbkcalculator.Calculator (from package com.android.bbkcalculator)
// - NOT USING main activity com.android.filemanager.FileManagerActivity (from package com.android.filemanager)
// - NOT USING main activity com.android.notes.Notes (from package com.android.notes)
// - NOT USING main activity com.android.BBKClock.Timer (from package com.android.BBKClock)
// - NOT USING main activity com.vivo.weather.WeatherMain (from package com.vivo.weather)
// - NOT USING main activity com.vivo.compass.CalibrationActivity (from package com.vivo.compass)
// - NOT USING main activity com.vivo.Tips.MainActivity (from package com.vivo.Tips)
// - NOT USING main activity com.bbk.cloud.activities.BBKCloudHomeScreen (from package com.bbk.cloud)
// - NOT USING main activity com.vivo.space.ui.LogoActivity (from package com.vivo.space)
// - NOT USING main activity com.vivo.browser.BrowserActivity (from package com.vivo.browser)
// - NOT USING main activity com.bbk.appstore.ui.AppStore (from package com.bbk.appstore)
// - NOT USING main activity com.vivo.game.ui.LogoActivity (from package com.vivo.game)
// - NOT USING main activity com.iqoo.secure.MainGuideActivity (from package com.iqoo.secure)
// - NOT USING main activity com.kingroot.kinguser.activitys.SliderMainActivity (from package com.kingroot.kinguser)
// - NOT USING main activity com.tencent.mm.ui.LauncherUI (from package com.tencent.mm)
// - NOT USING main activity com.baidu.netdisk.ui.Navigate (from package com.baidu.netdisk)
// - NOT USING main activity cmb.pb.ui.PBInitActivity (from package cmb.pb)
// + Using main activity com.tencent.qqlive.ona.activity.WelcomeActivity (from package com.tencent.qqlive)
// - NOT USING main activity cn.wps.moffice.documentmanager.PreStartActivity (from package cn.wps.moffice_eng)
// - NOT USING main activity com.play.taptap.ui.MainAct (from package com.taptap)
// - NOT USING main activity com.autonavi.map.activity.SplashActivity (from package com.autonavi.minimap)
// - NOT USING main activity com.youku.phone.ActivityWelcome (from package com.youku.phone)
// - NOT USING main activity com.google.android.apps.authenticator.AuthenticatorActivity (from package com.dlka.android.apps.authenticator2)
// - NOT USING main activity com.hangzhou.h890.main_module.activity.LaunchActivity (from package com.hangzhou.h890.EPSchool)
// - NOT USING main activity com.tencent.wework.launch.LaunchSplashActivity (from package com.tencent.wework)
// - NOT USING main activity com.tencent.mobileqq.activity.SplashActivity (from package com.tencent.mobileqq)
// - NOT USING main activity com.epicgames.ue4.SplashActivity (from package com.tencent.tmgp.pubgmhd)
// - NOT USING main activity com.alibaba.android.rimet.biz.SplashActivity (from package com.alibaba.android.rimet)
// - NOT USING main activity com.eg.android.AlipayGphone.AlipayLogin (from package com.eg.android.AlipayGphone)
// - NOT USING main activity com.kaixin.android.vertical_3_maobizi.ui.LaunchActivity (from package com.kaixin.android.vertical_3_maobizi)
// - NOT USING main activity com.lantern.launcher.ui.MainActivity (from package com.snda.wifilocating)
// - NOT USING main activity com.netease.cloudmusic.activity.LoadingActivity (from package com.netease.cloudmusic)
// - NOT USING main activity tv.douyu.view.activity.SplashActivity (from package air.tv.douyu.android)
// Selecting main activities from category android.intent.category.MONKEY
// - NOT USING main activity com.android.settings.Settings$RunningServicesActivity (from package com.android.settings)
// - NOT USING main activity com.android.settings.Settings$StorageUseActivity (from package com.android.settings)
// - NOT USING main activity com.bbk.launcher2.Launcher (from package com.bbk.launcher2)
// - NOT USING main activity com.bbk.scene.launcher.theme.SceneLauncherThemeMainActivity (from package com.bbk.scene.launcher.theme)
// - NOT USING main activity com.iqoo.engineermode.EngineerMode (from package com.iqoo.engineermode)
// Seeded: 23
// Event percentages:
// 0: 15.0%
// 1: 10.0%
// 2: 2.0%
// 3: 15.0%
// 4: -0.0%
// 5: 25.0%
// 6: 15.0%
// 7: 2.0%
// 8: 2.0%
// 9: 1.0%
// 10: 13.0%
:Switch: #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.tencent.qqlive/.ona.activity.WelcomeActivity;end
// Allowing start of Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.tencent.qqlive/.ona.activity.WelcomeActivity } in package com.tencent.qqlive
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(-2.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-5.0)
:Sending Trackball (ACTION_MOVE): 0:(-4.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(4.0,-5.0)
:Sending Trackball (ACTION_MOVE): 0:(-4.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,-5.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,2.0)
:Sending Touch (ACTION_DOWN): 0:(584.0,774.0)
:Sending Touch (ACTION_UP): 0:(585.7691,775.6711)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 20 // KEYCODE_DPAD_DOWN
// Allowing start of Intent { cmp=com.tencent.qqlive/.ona.activity.HomeActivity } in package com.tencent.qqlive
// activityResuming(com.tencent.qqlive)
// Allowing start of Intent { cmp=com.tencent.qqlive/.tad.splash.AdLandingPageActivity } in package com.tencent.qqlive
:Sending Key (ACTION_UP): 20 // KEYCODE_DPAD_DOWN
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 263 // KEYCODE_CUSTOM_GESTURE
:Sending Key (ACTION_UP): 263 // KEYCODE_CUSTOM_GESTURE
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 82 // KEYCODE_MENU
:Sending Key (ACTION_UP): 82 // KEYCODE_MENU
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 3 // KEYCODE_HOME
:Sending Key (ACTION_UP): 3 // KEYCODE_HOME
// Rejecting start of Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] cmp=com.bbk.launcher2/.Launcher } in package com.bbk.launcher2
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(184.0,133.0)
:Sending Touch (ACTION_UP): 0:(185.19217,130.19762)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 20 // KEYCODE_DPAD_DOWN
:Sending Key (ACTION_UP): 20 // KEYCODE_DPAD_DOWN
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 23 // KEYCODE_DPAD_CENTER
:Sending Key (ACTION_UP): 23 // KEYCODE_DPAD_CENTER
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(368.0,1855.0)
:Sending Touch (ACTION_UP): 0:(358.06006,1841.4702)
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(-1.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-4.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,-5.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-4.0,4.0)
:Sending Touch (ACTION_DOWN): 0:(827.0,1387.0)
:Sending Touch (ACTION_MOVE): 0:(826.84424,1374.7859)
:Sending Touch (ACTION_MOVE): 0:(826.6829,1357.699)
:Sending Touch (ACTION_MOVE): 0:(819.34204,1349.8777)
:Sending Touch (ACTION_MOVE): 0:(809.8629,1346.0884)
:Sending Touch (ACTION_MOVE): 0:(797.5764,1327.3578)
:Sending Touch (ACTION_MOVE): 0:(793.1108,1308.8129)
:Sending Touch (ACTION_UP): 0:(793.0643,1293.0918)
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(-4.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-4.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,1.0)
:Sending Key (ACTION_DOWN): 262 // KEYCODE_WAKEUP_SWIPE
:Sending Key (ACTION_UP): 262 // KEYCODE_WAKEUP_SWIPE
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(36.0,1008.0)
:Sending Touch (ACTION_UP): 0:(40.47904,1013.71045)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 4 // KEYCODE_BACK
:Sending Key (ACTION_UP): 4 // KEYCODE_BACK
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(336.0,1703.0)
:Sending Touch (ACTION_UP): 0:(339.1865,1703.8208)
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(981.0,1662.0)
:Sending Touch (ACTION_UP): 0:(963.8276,1651.3307)
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(0.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(-2.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(-2.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,-2.0)
:Sending Key (ACTION_DOWN): 23 // KEYCODE_DPAD_CENTER
// activityResuming(com.tencent.qqlive)
:Sending Key (ACTION_UP): 23 // KEYCODE_DPAD_CENTER
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 82 // KEYCODE_MENU
:Sending Key (ACTION_UP): 82 // KEYCODE_MENU
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(3.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,-1.0)
:Sending Touch (ACTION_DOWN): 0:(199.0,1238.0)
:Sending Touch (ACTION_POINTER_DOWN 1): 0:(199.08803,1237.9673) 1:(44.0,936.0)
:Sending Touch (ACTION_MOVE): 0:(199.38306,1237.1512) 1:(56.633686,934.4007)
:Sending Touch (ACTION_MOVE): 0:(199.4032,1232.6906) 1:(70.932396,931.53827)
:Sending Touch (ACTION_MOVE): 0:(199.47067,1232.6262) 1:(84.74173,909.7497)
:Sending Touch (ACTION_MOVE): 0:(200.05933,1224.0697) 1:(104.3616,908.0494)
:Sending Touch (ACTION_POINTER_UP 1): 0:(200.56824,1216.1976) 1:(117.07631,907.2735)
:Sending Touch (ACTION_UP): 0:(200.68095,1208.8142)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 228 // KEYCODE_12
//[calendar_time:2018-05-21 09:18:48.997 system_uptime:450692748]
// Sending event #100
:Sending Key (ACTION_UP): 228 // KEYCODE_12
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(918.0,982.0)
:Sending Touch (ACTION_MOVE): 0:(910.02106,987.6015)
:Sending Touch (ACTION_MOVE): 0:(909.90607,1007.29004)
:Sending Touch (ACTION_MOVE): 0:(902.4735,1009.3603)
:Sending Touch (ACTION_MOVE): 0:(899.16034,1014.9257)
:Sending Touch (ACTION_MOVE): 0:(892.8468,1025.72)
:Sending Touch (ACTION_MOVE): 0:(888.47064,1042.8936)
:Sending Touch (ACTION_UP): 0:(881.6432,1053.1315)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 82 // KEYCODE_MENU
// Injection Failed
:Sending Key (ACTION_UP): 82 // KEYCODE_MENU
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 23 // KEYCODE_DPAD_CENTER
:Sending Key (ACTION_UP): 23 // KEYCODE_DPAD_CENTER
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(4.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-2.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(-2.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(-2.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(-4.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,-1.0)
:Sending Key (ACTION_DOWN): 238 // KEYCODE_TV_SATELLITE_BS
:Sending Key (ACTION_UP): 238 // KEYCODE_TV_SATELLITE_BS
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 23 // KEYCODE_DPAD_CENTER
:Sending Key (ACTION_UP): 23 // KEYCODE_DPAD_CENTER
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(-2.0,-5.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(-2.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(4.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,1.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,-1.0)
:Sending Flip keyboardOpen=false
Got IOException performing flipjava.io.IOException: write failed: EINVAL (Invalid argument)
// Injection Failed
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(692.0,365.0)
:Sending Touch (ACTION_UP): 0:(696.411,354.99133)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 21 // KEYCODE_DPAD_LEFT
:Sending Key (ACTION_UP): 21 // KEYCODE_DPAD_LEFT
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(3.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,-5.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(-2.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,-3.0)
:Sending Touch (ACTION_DOWN): 0:(108.0,370.0)
:Sending Touch (ACTION_MOVE): 0:(112.930046,370.1433)
:Sending Touch (ACTION_MOVE): 0:(113.56628,371.7848)
:Sending Touch (ACTION_MOVE): 0:(114.19526,375.22922)
:Sending Touch (ACTION_UP): 0:(116.88367,378.2378)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 123 // KEYCODE_MOVE_END
:Sending Key (ACTION_UP): 123 // KEYCODE_MOVE_END
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 260 // KEYCODE_TS_LARGE_SUPPRESSION
:Sending Key (ACTION_UP): 260 // KEYCODE_TS_LARGE_SUPPRESSION
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 157 // KEYCODE_NUMPAD_ADD
:Sending Key (ACTION_UP): 157 // KEYCODE_NUMPAD_ADD
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(-4.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(4.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,-5.0)
:Sending Trackball (ACTION_MOVE): 0:(4.0,-1.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-4.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-4.0)
:Sending Touch (ACTION_DOWN): 0:(326.0,1831.0)
:Sending Touch (ACTION_UP): 0:(313.87247,1843.9445)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 82 // KEYCODE_MENU
:Sending Key (ACTION_UP): 82 // KEYCODE_MENU
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 82 // KEYCODE_MENU
:Sending Key (ACTION_UP): 82 // KEYCODE_MENU
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 23 // KEYCODE_DPAD_CENTER
:Sending Key (ACTION_UP): 23 // KEYCODE_DPAD_CENTER
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 19 // KEYCODE_DPAD_UP
:Sending Key (ACTION_UP): 19 // KEYCODE_DPAD_UP
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(735.0,1137.0)
:Sending Touch (ACTION_UP): 0:(729.31134,1142.0072)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 74 // KEYCODE_SEMICOLON
:Sending Key (ACTION_UP): 74 // KEYCODE_SEMICOLON
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 82 // KEYCODE_MENU
:Sending Key (ACTION_UP): 82 // KEYCODE_MENU
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(910.0,740.0)
:Sending Touch (ACTION_UP): 0:(920.1081,741.1603)
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(820.0,745.0)
:Sending Touch (ACTION_UP): 0:(810.5797,745.5154)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 23 // KEYCODE_DPAD_CENTER
:Sending Key (ACTION_UP): 23 // KEYCODE_DPAD_CENTER
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 23 // KEYCODE_DPAD_CENTER
:Sending Key (ACTION_UP): 23 // KEYCODE_DPAD_CENTER
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(-1.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,-3.0)
:Sending Trackball (ACTION_MOVE): 0:(-2.0,1.0)
//[calendar_time:2018-05-21 09:18:51.028 system_uptime:450694731]
// Sending event #200
:Sending Trackball (ACTION_MOVE): 0:(2.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,4.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(4.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(4.0,0.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,0.0)
:Sending Trackball (ACTION_DOWN): 0:(0.0,0.0)
:Sending Trackball (ACTION_UP): 0:(0.0,0.0)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 19 // KEYCODE_DPAD_UP
:Sending Key (ACTION_UP): 19 // KEYCODE_DPAD_UP
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 20 // KEYCODE_DPAD_DOWN
:Sending Key (ACTION_UP): 20 // KEYCODE_DPAD_DOWN
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(493.0,602.0)
:Sending Touch (ACTION_POINTER_DOWN 1): 0:(489.3213,600.8783) 1:(971.0,1679.0)
:Sending Touch (ACTION_MOVE): 0:(482.8369,596.66223) 1:(964.7397,1692.8387)
:Sending Touch (ACTION_MOVE): 0:(478.49704,594.0172) 1:(963.5418,1701.5529)
:Sending Touch (ACTION_MOVE): 0:(471.4184,590.4491) 1:(958.0889,1706.068)
:Sending Touch (ACTION_MOVE): 0:(464.647,586.8379) 1:(956.5534,1713.3955)
:Sending Touch (ACTION_POINTER_UP 1): 0:(459.91425,581.6231) 1:(953.19196,1725.8336)
:Sending Touch (ACTION_UP): 0:(458.05426,575.6825)
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(378.0,1532.0)
:Sending Touch (ACTION_POINTER_DOWN 1): 0:(377.84912,1517.4033) 1:(1077.0,1290.0)
:Sending Touch (ACTION_MOVE): 0:(377.7412,1507.8181) 1:(1079.7617,1273.7279)
:Sending Touch (ACTION_MOVE): 0:(377.59314,1493.3823) 1:(1080.0,1269.2837)
:Sending Touch (ACTION_MOVE): 0:(377.3333,1479.5858) 1:(1080.0,1248.4834)
:Sending Touch (ACTION_MOVE): 0:(377.0882,1468.5681) 1:(1080.0,1245.4327)
:Sending Touch (ACTION_MOVE): 0:(376.8815,1455.04) 1:(1080.0,1221.7372)
:Sending Touch (ACTION_MOVE): 0:(376.79596,1439.7148) 1:(1080.0,1199.1908)
:Sending Touch (ACTION_MOVE): 0:(376.7334,1429.693) 1:(1080.0,1178.0173)
:Sending Touch (ACTION_POINTER_UP 1): 0:(376.64453,1420.4636) 1:(1080.0,1167.6306)
:Sending Touch (ACTION_UP): 0:(376.40424,1409.9125)
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(199.0,1832.0)
:Sending Touch (ACTION_MOVE): 0:(198.4573,1845.8867)
// Injection Failed
:Sending Touch (ACTION_MOVE): 0:(194.82933,1848.9222)
// Injection Failed
:Sending Touch (ACTION_MOVE): 0:(186.27072,1863.8077)
// Injection Failed
:Sending Touch (ACTION_MOVE): 0:(180.5924,1868.0641)
// Injection Failed
:Sending Touch (ACTION_MOVE): 0:(171.16846,1877.9966)
// Injection Failed
:Sending Touch (ACTION_MOVE): 0:(163.72751,1889.2833)
// Injection Failed
:Sending Touch (ACTION_MOVE): 0:(153.96924,1890.8129)
// Injection Failed
:Sending Touch (ACTION_UP): 0:(147.82706,1908.2029)
// Injection Failed
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 23 // KEYCODE_DPAD_CENTER
:Sending Key (ACTION_UP): 23 // KEYCODE_DPAD_CENTER
Sleeping for 2 milliseconds
:Switch: #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.tencent.qqlive/.ona.activity.WelcomeActivity;end
// Allowing start of Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.tencent.qqlive/.ona.activity.WelcomeActivity } in package com.tencent.qqlive
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(517.0,1332.0)
// Injection Failed
:Sending Touch (ACTION_UP): 0:(518.09045,1328.0283)
// Injection Failed
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 25 // KEYCODE_VOLUME_DOWN
// activityResuming(com.tencent.qqlive)
:Sending Key (ACTION_UP): 25 // KEYCODE_VOLUME_DOWN
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 297 // 297
:Sending Key (ACTION_UP): 297 // 297
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(1070.0,441.0)
:Sending Touch (ACTION_UP): 0:(1070.6196,423.70654)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 268 // 268
:Sending Key (ACTION_UP): 268 // 268
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 22 // KEYCODE_DPAD_RIGHT
:Sending Key (ACTION_UP): 22 // KEYCODE_DPAD_RIGHT
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 140 // KEYCODE_F10
:Sending Key (ACTION_UP): 140 // KEYCODE_F10
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(325.0,1219.0)
:Sending Touch (ACTION_UP): 0:(332.37204,1216.1332)
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(909.0,1381.0)
:Sending Touch (ACTION_MOVE): 0:(908.5926,1358.3804)
:Sending Touch (ACTION_UP): 0:(888.16626,1344.9875)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 19 // KEYCODE_DPAD_UP
:Sending Key (ACTION_UP): 19 // KEYCODE_DPAD_UP
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 14 // KEYCODE_7
:Sending Key (ACTION_UP): 14 // KEYCODE_7
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(588.0,1012.0)
:Sending Touch (ACTION_UP): 0:(598.9902,1004.4162)
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(986.0,19.0)
:Sending Touch (ACTION_UP): 0:(986.7857,32.59584)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 21 // KEYCODE_DPAD_LEFT
:Sending Key (ACTION_UP): 21 // KEYCODE_DPAD_LEFT
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 259 // KEYCODE_HELP
:Sending Key (ACTION_UP): 259 // KEYCODE_HELP
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 22 // KEYCODE_DPAD_RIGHT
:Sending Key (ACTION_UP): 22 // KEYCODE_DPAD_RIGHT
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 49 // KEYCODE_U
:Sending Key (ACTION_UP): 49 // KEYCODE_U
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(857.0,412.0)
:Sending Touch (ACTION_UP): 0:(876.2802,403.5798)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 21 // KEYCODE_DPAD_LEFT
:Sending Key (ACTION_UP): 21 // KEYCODE_DPAD_LEFT
Sleeping for 2 milliseconds
:Sending Touch (ACTION_DOWN): 0:(668.0,1330.0)
:Sending Touch (ACTION_UP): 0:(655.6692,1320.9884)
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 256 // KEYCODE_TV_CONTENTS_MENU
:Sending Key (ACTION_UP): 256 // KEYCODE_TV_CONTENTS_MENU
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 19 // KEYCODE_DPAD_UP
:Sending Key (ACTION_UP): 19 // KEYCODE_DPAD_UP
Sleeping for 2 milliseconds
:Sending Key (ACTION_DOWN): 21 // KEYCODE_DPAD_LEFT
:Sending Key (ACTION_UP): 21 // KEYCODE_DPAD_LEFT
Sleeping for 2 milliseconds
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(0.0,-4.0)
:Sending Trackball (ACTION_MOVE): 0:(1.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(-1.0,2.0)
:Sending Trackball (ACTION_MOVE): 0:(3.0,-5.0)
:Sending Trackball (ACTION_MOVE): 0:(2.0,3.0)
:Sending Trackball (ACTION_MOVE): 0:(-3.0,-2.0)
:Sending Trackball (ACTION_MOVE): 0:(-5.0,-4.0)
Events injected: 300
:Sending rotation degree=0, persist=false
:Dropped: keys=1 pointers=10 trackballs=0 flips=1 rotations=0
## Network stats: elapsed time=4407ms (0ms mobile, 0ms wifi, 4407ms not connected)
// Monkey finished