1. adb
1) adb devices 列出当前连接到PC的设备(模拟器或真机)
2) adb install xxx.apk 首次安装某个程序到当前连接的设备中
3) adb install -r xxx.apk 更新安装某个程序到当前连接的设备中
4) adb -d install xxx.apk 以debug模式安装某个程序到当前连接的设备中
5) adb -e install xxx.apk 以for 模拟器模式安装某个程序到当前连接的设备(模拟器)中
6) adb shell pm list packages 列出当前设备的所有已安装程序的包名
7) adb -e logcat 查看日志
8) adb -d logcat 查看日志
9) adb logcat appID:V *:S 查看某个应用的日志
10) adb logcat appID:V ActivityManager:| *:S
11) adb logcat|grep "I.air" 仅查看包含 "I.air" 的日志
12) adb logcat|grep "hello" application name 仅查看某应用包含 "I.air" 的日志
13) adb logcat -c 清空logcat缓存
2. ddms
1) ddms 打开 Dalvik Debug Monitor 控制台
1) adb devices 列出当前连接到PC的设备(模拟器或真机)
2) adb install xxx.apk 首次安装某个程序到当前连接的设备中
3) adb install -r xxx.apk 更新安装某个程序到当前连接的设备中
4) adb -d install xxx.apk 以debug模式安装某个程序到当前连接的设备中
5) adb -e install xxx.apk 以for 模拟器模式安装某个程序到当前连接的设备(模拟器)中
6) adb shell pm list packages 列出当前设备的所有已安装程序的包名
7) adb -e logcat 查看日志
8) adb -d logcat 查看日志
9) adb logcat appID:V *:S 查看某个应用的日志
10) adb logcat appID:V ActivityManager:| *:S
11) adb logcat|grep "I.air" 仅查看包含 "I.air" 的日志
12) adb logcat|grep "hello" application name 仅查看某应用包含 "I.air" 的日志
13) adb logcat -c 清空logcat缓存
2. ddms
1) ddms 打开 Dalvik Debug Monitor 控制台