댓글 쓰기 권한이 없습니다. 로그인 하시겠습니까?
Android
2014.07.30 14:16
adb monkey script
조회 수 16534 댓글 0
0. keycode http://developer.android.com/reference/android/view/KeyEvent.html http://developer.android.com/tools/help/monkey.html 1. monkey script 작성
DispatchPointer(0, 0, 0, 180,460, 0,0,0,0,0,0,0) adb shell monkey -f /storage/sdcard0/script.txt 10 ---------------------------------------------------------------------- [android/development/cmds/monkey/src/com/android/commands/monkey/MonkeySourceScript.java] // event key word in the capture log private static final String EVENT_KEYWORD_POINTER = "DispatchPointer"; private static final String EVENT_KEYWORD_TRACKBALL = "DispatchTrackball"; private static final String EVENT_KEYWORD_ROTATION = "RotateScreen"; private static final String EVENT_KEYWORD_KEY = "DispatchKey"; private static final String EVENT_KEYWORD_FLIP = "DispatchFlip"; private static final String EVENT_KEYWORD_KEYPRESS = "DispatchPress"; private static final String EVENT_KEYWORD_ACTIVITY = "LaunchActivity"; private static final String EVENT_KEYWORD_INSTRUMENTATION = "LaunchInstrumentation"; private static final String EVENT_KEYWORD_WAIT = "UserWait"; private static final String EVENT_KEYWORD_LONGPRESS = "LongPress"; private static final String EVENT_KEYWORD_POWERLOG = "PowerLog"; private static final String EVENT_KEYWORD_WRITEPOWERLOG = "WriteLog"; private static final String EVENT_KEYWORD_RUNCMD = "RunCmd"; private static final String EVENT_KEYWORD_TAP = "Tap"; private static final String EVENT_KEYWORD_PROFILE_WAIT = "ProfileWait"; private static final String EVENT_KEYWORD_DEVICE_WAKEUP = "DeviceWakeUp"; private static final String EVENT_KEYWORD_INPUT_STRING = "DispatchString"; private static final String EVENT_KEYWORD_PRESSANDHOLD = "PressAndHold"; private static final String EVENT_KEYWORD_DRAG = "Drag"; private static final String EVENT_KEYWORD_PINCH_ZOOM = "PinchZoom"; private static final String EVENT_KEYWORD_START_FRAMERATE_CAPTURE = "StartCaptureFramerate"; private static final String EVENT_KEYWORD_END_FRAMERATE_CAPTURE = "EndCaptureFramerate"; private static final String EVENT_KEYWORD_START_APP_FRAMERATE_CAPTURE = "StartCaptureAppFramerate"; private static final String EVENT_KEYWORD_END_APP_FRAMERATE_CAPTURE = "EndCaptureAppFramerate"; ---------------------------------------------------------------------- Monkey Script – Example# Start of Script Dreamy의 코드 스크랩내가 모으고 내가 보는
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Designed by sketchbooks.co.kr / sketchbook5 board skin
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5