APP测试初体验android测试命令----adb常用命令

男儿欲遂平生志,五经勤向窗前读。这篇文章主要讲述APP测试初体验android测试命令----adb常用命令相关的知识,希望能为你提供帮助。
--adb shell 命令
adb devices查看设备
adb shell
adb shell "ls -al /system/bin" > e:\a.txt
sample_rw 1 sid13f1e2f4ed814690a918ac85f600458d刷设备ID
sample_rw 2 sid查看设备ID

adb shell input text "[email  protected]"   发送文本
【APP测试初体验android测试命令----adb常用命令】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   tctest-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  
 

    推荐阅读