查看当前包名及activity信息:
adb shell dumpsys window | findstr mCurrentFocus
adb shell dumpsys activity top | findstr ACTIVITY
获取系统版本:
adb shell getprop ro.build.version.release
获取系统api版本:
adb shell getprop ro.build.version.sdk
adb无线连接多台Android设备:
adb -s 8681-M02-0xe7a1142f tcpip 6667
adb -s d51ad9ff shell ifconfig wlan0
adb connect ip地址:6667
查看淘宝性能信息:
adb shell top -n 1| findstr com.taobao.taobao
清空缓存:
adb shell pm clear com.taobao.taobao
查找进程:
adb shell ps|findstr test
安装为系统app:
adb push demo.apk /sdcard/
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cat /sdcard/app_sms_control-release.apk > /system/app/app_sms_control- release.apk
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
查看系统app:
adb shell ls /system/app/
删除文件:
rm -r test.apk
传输文件
adb pull /sdcard/Download/test.txt
C:\Users\Administrator\Desktop\
查看包名路径:
adb shell pm path com.ogrelogic.mm
/data/app/com.ogrelogic.mm-1/mn
清理系统信息日志:
adb logcat -c -b events #清理系统事件信息日志
adb logcat -c -b main -b events -b radio -b system #清理手机内所有日志的命令
itest启动命令:
adb shell dalvikvm -cp /sdcard/start.dex Start
top命令:
adb shell top -m 10 -n 1 -s 9
修改权限:
mont
mount -o remount -rw /system
adb push F:\hash.0 /system/etc/security/cacerts
monkeytest命令:
adb shell monkey -p com.android.browser -v 500000