【APP测试初体验】android测试命令----adb常用命令
--adb shell 命令
adb devices 查看设备
adb shell
adb shell "ls -al /system/bin" >e:\a.txt
sample_rw 1 sid 13f1e2f4ed814690a918ac85f600458d 刷设备ID
sample_rw 2 sid 查看设备ID
adb shell input text "xingsuqin@fuzegame.tv" 发送文本
adb shell input keyevent "" 发送事件
adb logcat 实时打印日志
adb logcat -d -v time >e:\aaa.txt
adb remount 重新挂在root权限
支持的命令包括
adb am app_process applypatch applypatch_static asan asanwrapper atrace audioloop awk bdt blkid bmgr bootanimation bu bugreport cat chcon check_prereq chmod chown cjpeg clatd clear cluster cluster_get.sh cluster_set.sh cmp codec content corrupt_gdt_free_blocks cp dalvikvm date dcc dd debuggerd dex2oat dexopt df dhcpcd djpeg dmesg dnsmasq drmserver du dumpstate dumpsys e2fsck find flash_image fsck.ext4 fsck_msdos gdbjithelper gdbserver getenforce getevent getprop getsebool glgps_nvidiaTegra2android gps_select.sh gpslogd grep gsm0710muxd gzip hd hdd_cfg.sh hdd_fmt.sh hdd_init.sh hostapd hostapd_cli hotplug id ifconfig iftop ime init_lbh.sh input input_cfboost_init.sh insmod installd inv_self_test ioctl ionice ip ip6tables iptables keystore keystore_cli kill linker ln load_policy log logcat logwrapper ls lsmod lsof make_ext4fs md5 mdnsd media mediaserver mkdir mkfs.ext4 mksh mkswap monkey mount mount_debugfs.sh mtk_agpsd mtpd muxer mv nandread ndc netcfg netd netstat newfs_msdos notify oatdump parted patch perf ping ping6 pm pngtest pppd printenv ps python r racoon radiooptions raydium_selftest readlink reboot record recordvideo recovery renice requestsync restorecon rm rm_test rm_ts_server rmdir rmmod route run-as runcon sample_rw schedtest schedtop screencap screenrecord screenshot sdcard sendevent sensorservice service servicemanager set_ext4_err_bit set_hwui_params.sh set_light_sensor_perm.sh setconsole setenforce setprop setsebool settings setup_fs sf2 sh showlease sleep smd stagefright start stop stop_start stream surfaceflinger svc swapoff swapon sync tc test-wvdrmplugin tinycap tinymix tinyplay toolbox top touch uiautomator umount updater uptime ussr_setup.sh vdc vmstat vold watchprops wipe wlbwservice wm wpa_cli wpa_supplicant xaplay xargs