Linux 解压缩
tar -zcvf 压缩文件名 .tar.gz 被压缩文件名
tar -zxvf 压缩文件名.tar.gz
查找
find . -name "*.in" | xargs grep "thermcontact"
AOSP编译
make -j24 2>&1 | tee log.txt
adb
adb -s device-id install apk //多台设备存在时安装app
adb shell am force-stop package.name //强制性关闭app
adb shell screencap /mnt/sdcard/shortcut.png //截屏
adb shell am start -a com.genymobile.gnirehtet.START -n com.genymobile.gnirehtet/.GnirehtetActivity //通过包名和类名打开APK
adb logcat > c:\Users\local\Desktop\log.log \\将log保存到本地文件
adb logcat | grep "-e TAG" > c:\Users\local\Desktop\log.log\\过滤打印log中的TAG
adb shell getprop ro.product.cpu.abi //查询CPU是多少位的,比如:arm64-v8a
adb shell dumpsys meminfo //查询进程运行状况,比如Foreground, Visible, Perceptible, A Services, B Services
参考:
https://blog.csdn.net/Dr_Unknown/article/details/76837708
https://www.52pojie.cn/forum.php?mod=viewthread&tid=683104
https://blog.csdn.net/viking_xhg/article/details/80000081