命令

2020-07-28  本文已影响0人  WangRain1

monkey命令:adb shell monkey --pct-syskeys 0 --throttle 1500 --ignore-crashes --ignore-timeouts --monitor-native-crashes -v -v 1000000000

根据包名查询apk在手机上的安装路径:dumpsys package 包名 | grep codePath

修改 Settings.system.里面的参数:adb shell settings put system "key" 1

过滤日志:adb logcat | grep ParkingSystem

过滤crash日志:adb logcat -B crash

安装.deb:sudo dpkg -i '/home/ts/Desktop/wps-office_11.1.0.9505_amd64.deb'

查看activity:adb shell dumpsys activity activities

查看activity 的view层级 : adb shell dumpsys activity top

打开一个文件:cat id_rsa.pub

查找java对应的native方法:grep -rns '"currentThread"'

模拟器:sudo chown ts -R /dev/kvm

刷新系统app:adb root

adb remount

adb push xxx.apk xxxpath

adb reboot

fastboot刷机:

adb reboot bootloader

fastboot flash system system.img

fastboot reboot

fastboot flash system system.img && fastboot flash boot boot.img && fastboot flash cache cache.img && fastboot flash persist persist.img && fastboot flash recovery recovery.img && fastboot flash userdata userdata.img && fastboot flash vendor vendor.img

编译源码:

source build/envsetup.xx

lunch xxx那个版本

make -j8/16

查看当前activity栈:adb shell dumpsys activity

查看java对应的jni注册方法:grep -rns '"currentThread"'.

git/linux(源码编译、刷机、android相关:日志,启动service/activity,分析内存等)/mk/

上一篇下一篇

猜你喜欢

热点阅读