adb uninstall --user 0 com.youku.phone.qiku
SELECT * FROM app WHERE pkg_name =="com.tencent.mtt" AND level_id == "2"
SELECT * FROM app WHERE (level_id =="2" OR level_id == "1") AND pkg_name =="com.icbc"
adb logcat -v time > d:\log\150611.txt
adb devices
adb -s fa41d881 install
adblogcat >123.txt
adbpush index.html /udisk/
adbpull /sdcard/waptest.html
adbpush libwebcore.so /system/lib/libwebcore.so
adbshell rm /system/app/CP_BrowserUI.apk
adbuninstall com.android.browser
adbinstall CP_BrowserUI.apk
linux下相关命令:
查看内存:
procrank
catproc/pid/smaps
adbshell showmap -t pid >123.txt
adbpull /proc/pid/smaps 123.txt
adbshell dumpsys meminfo pid >123.txt
其中
/proc/meminfo机器的内存使用情况
/proc/pid/statm 进程所占用的内存
top命令可以查看cpu和内存使用
top-m 2 -d 10
常用的命令:
top| grep app名称
ps| grep app名称
procrank| grep app名称
dumpsysmeminfo app名称
F:\develop_tool\SDK2.3\android-sdk-windows\tools
adbshell setprop libc.debug.malloc 1
adbshell stop
adbshell start
adbshell getprop
catcompile.txt | sed "s/ out\/target\/product/\r\nout\/target\/product/g" > compile1.txt
catcompile.txt | sed "s/ -/\r\n-/g" > compile1.txt
catmaia.css | sed "s/}/}\r\n/g" > maia_1.css
tarzxvf xx.tar.gz -C /mnt/...
tar.bz2格式使用 tar -jxvf 来解压
find-name "*.mk" |xargs grep -r "QC_PROP"
rm-rf dirName //删除目录
adbshell input text ""
调试死机堆栈:
adbshell debuggerd pid
卸载虚拟机加密软件
sudopkill smartsec
sudouninstall_smartsec
查看启动耗时
adb shell am start -W -n com.android.browser/.BrowserActivity
com.tencent.mtt/.SplashActivity