盒子开启adb命令后的相关执行命令
断开连接:
adb disconnect 172.26.187.3
启动menu键,输入:
C:\Users\Administrator>adb shell
aaa@qq.com:/ # input keyevent 82
aaa@qq.com:/ # input text 192.168.2.183:8081
aaa@qq.com:/data/data # rm -rf com.amt.launcherah_special
aaa@qq.com:/ # cd system/app
adb push C:\Users\Administrator\Desktop\金典版\ahjd\4K.png /data/pic
C:\Users\Administrator>adb remount
## remount ‘/system’分区 as read-write
adb devices
adb install xxx.apk
adb uninstall (-k) 包名
adb shell pm uninstall
-k com.amt.launcherah_special
pm uninstall com.amt.launcherah
am start -n com.amtgd.launcher/com.amtgd.launcher.HomeActivity
adb -s emulator-5554 shell
aaa@qq.com:/data/data # rm -rf com.amt.launcherah_special
aaa@qq.com:/ # cd system/app
adb logcat -c && adb logcat -v time >D:iii.log
(用命令抓log)
抓网络包命令:tcpdump -i any -p -s 0 -w /mnt/sda/sda1/2.pcap &
加权限
adb shell mount -o remount /system
查找文件:
aaa@qq.com:/ # busybox find . -name
“libztestbcfg_jni.so”
mount -o remount,rw rootfs /system/
截图:
adb shell /system/bin/screencap -p /sdcard/screenshot.png
adb pull /sdcard/screenshot.png E:\
查看安装应用的 version:
dumpsys package com.android.smart.terminal.ctsh.launcher | grep version
dumpsys package
com.amt.vdou
dumpsys meminfo
com.android.smart.terminal.ctsh.launcher 查看内存
aaa@qq.com:/ # getprop dalvik.vm.heapgrowthlimit
96m
aaa@qq.com:/ # getprop dalvik.vm.heapsize
256m
aaa@qq.com:/ # getprop dalvik.vm.heapstartsize
5m
下一篇: 最长不递减子序列
推荐阅读