1[ 2 { 3 "DEVICE_1":[5, 6, 7, 8, 9], 4 "DEVICE_2":[1, 2, 3, 4], 5 "recent-x-y":[513, 1244], 6 "recent_del-x-y":[360, 1170], 7 "permisson_ok-x-y":[516, 686], 8 "wlan-x-y":[300, 300], 9 "wlan_button-x-y":[640, 200], 10 "note_content-x-y":[500, 310], 11 "kill_keyboard-x-y":[690, 690], 12 "take_photos-x-y":[360, 1095], 13 "convert_to_video-x-y":[430, 980], 14 "convert_to_photos-x-y":[200, 1095], 15 "last_photos-x-y":[100, 220], 16 "stop_video-x-y":[320, 1095], 17 "phone-x-y":[645, 1060], 18 "screenshot-x-y":[115,480], 19 "remount":["mount -o rw,remount"], 20 "stop_hilog":["hilog -w stop"], 21 "cmp_cmd-level":["", 50], 22 "get_file_from_dev":[""], 23 "send_file_to_dev":["", ""] 24 }, 25 { 26 "app_name": "settings_wifi", 27 "entry": "aa start -a com.ohos.settings.MainAbility -b com.ohos.settings", 28 "crop_range":[140, 450, 30, 500], 29 "kill_settings": ["killall com.ohos.settings"], 30 "all_actions": [ 31 [1, "shot_cmd", "settings"], [1, "cmp_cmd-level", "settings"], [1, "kill_settings"] 32 ] 33 }, 34 { 35 "app_name": "crash_check", 36 "entry": "", 37 "compress_file_recv":["cd /data/log/faultlog/temp && tar -cf crash_log.tar cppcrash*"], 38 "all_actions": [ 39 [1, "remount"], [1, "process_crash_check", "foundation"], [1, "process_crash_check", "render_service"], [1, "process_crash_check", "appspawn"], [1, "compress_file_recv"], 40 [1, "get_file_from_dev", "/data/log/faultlog/temp/crash_log.tar"] 41 ] 42 }, 43 { 44 "app_name": "notification_bar", 45 "entry": "", 46 "pull_down_cmd":["uinput -T -m 500 0 500 80"], 47 "swipe_up_cmd":["uinput -T -m 500 500 500 300"], 48 "all_actions": [ 49 [2, "pull_down_cmd"], [2, "pull_down_cmd"], [1, "shot_cmd", "notification_bar"], [1, "cmp_cmd-level", "notification_bar", 50], [1, "swipe_up_cmd"], [1, "swipe_up_cmd"] 50 ] 51 }, 52 { 53 "app_name": "photos", 54 "entry": "", 55 "pull_down_cmd":["uinput -T -m 500 0 550 30"], 56 "start_screenshot": ["aa start -a com.ohos.screenshot.ServiceExtAbility -b com.ohos.screenshot"], 57 "start_photos": ["aa start -a com.ohos.photos.MainAbility -b com.ohos.photos"], 58 "process_check": ["ps -elf", "com.ohos.medialibrary.medialibrarydata"], 59 "kill_photos": ["killall com.ohos.photos"], 60 "all_actions": [ 61 [5, "start_photos"], [1, "shot_cmd", "photos"], [1, "cmp_cmd-level", "photos", 50], 62 [1, "process_check"], [2, "sandbox_path_check"], [1, "kill_photos"] 63 ] 64 }, 65 { 66 "app_name": "camera", 67 "entry": "", 68 "check_result":["cd /data/log/hilog && grep -nr PreviewOutputCallback", "OnFrameStarted"], 69 "compress_log":["cd /data/log/hilog && tar -cf camera_log.tar *"], 70 "open_camera_log":["rm -rf /data/log/hilog/* && hilog -b X;hilog -b D -T CAMERA;hilog -r"], 71 "start_camera":["aa start -a com.ohos.camera.MainAbility -b com.ohos.camera"], 72 "recover_log":["cd data/log/hilog/;hilog -x > camera_log.txt;hilog -b D"], 73 "check_photos":["aa dump -a | grep com.ohos.photos.MainAbility", "com.ohos.photos"], 74 "kill_camera": ["killall com.ohos.camera"], 75 "kill_photos": ["killall com.ohos.photos"], 76 "all_actions": [ 77 [1, "open_camera_log"], [5, "start_camera"], [3, "take_photos-x-y"], [2, "convert_to_video-x-y"], [3, "take_photos-x-y"], [2, "stop_video-x-y"], [11, "convert_to_photos-x-y"], 78 [1, "recover_log"], [1, "check_result"], [1, "shot_cmd", "camera"], [1, "compress_log"], [1, "check_photos"], [1, "get_file_from_dev", "/data/log/hilog/camera_log.tar"], 79 [1, "kill_camera"], [1, "kill_photos"] 80 ] 81 }, 82 { 83 "app_name": "note", 84 "entry": "aa start -a MainAbility -b com.ohos.note", 85 "kill_note": ["killall com.ohos.note"], 86 "all_actions": [ 87 [2, "kill_keyboard-x-y"], [5, "note_content-x-y"], [2, "note_content-x-y"], [1, "shot_cmd", "note"], [1, "cmp_cmd-level", "note", 50], [2, "recent-x-y"], [1, "recent_del-x-y"] 88 ] 89 }, 90 { 91 "app_name": "contacts", 92 "entry": "aa start -a com.ohos.contacts.MainAbility -b com.ohos.contacts", 93 "kill_contacts": ["killall com.ohos.contacts"], 94 "all_actions": [ 95 [2, "phone-x-y"], [2, "phone-x-y"], [1, "shot_cmd", "contacts"], [1, "cmp_cmd-level", "contacts"], [1, "kill_contacts"] 96 ] 97 }, 98 { 99 "app_name": "mms", 100 "entry": "aa start -a com.ohos.mms.MainAbility -b com.ohos.mms", 101 "kill_mms": ["killall com.ohos.mms"], 102 "all_actions": [ 103 [1, "shot_cmd", "mms"], [1, "cmp_cmd-level", "mms"], [1, "kill_mms"] 104 ] 105 }, 106 { 107 "app_name": "distributedmusicplayer", 108 "entry": "aa start -a ohos.samples.distributedmusicplayer.MainAbility -b ohos.samples.distributedmusicplayer", 109 "kill_distributedmusicplayer": ["killall ohos.samples.distributedmusicplayer"], 110 "all_actions": [ 111 [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [1, "shot_cmd", "distributedmusicplayer"], [1, "cmp_cmd-level", "distributedmusicplayer"], [1, "kill_distributedmusicplayer"] 112 ] 113 } 114] 115