Android
- 关机 adb shell reboot -p
- 查看overlay adb shell cmd overlay list
- adb shell dumpsys SurfaceFlinger > sf.txt
- adb shell dumpsys Window > wm.txt
- run cts -m 包名 -t case名 -skip-preconditions
- run cts -m CtsWidgetTestCases -t android.widget.cts.ListPopupWindowTest#testDismissalOutsideNonModal -s 设备名 --skip-preconditions
- sourcesetenv.sh xxxproject userdebug && make -j48 2>&1 | tee build.txt
- 查看所有进程线程对应 adb shell ps -T -A > d:\ps_T_A.txt
- repo forall -c git clean -fd && repo forall -c git reset --hard HEAD && repo sync -cj4 --no-tags
- 导出 R.java 到文件 find . -name R.java 2>&1 | tee R.test
- 关闭单个模块 odex 优化 LOCAL_DEX_PREOPT := false
- 全模块 monkey: adb shell monkey --ignore-crashes --ignore-timeouts --throttle 500 --ignore-security-exceptions --monitor-native-crashes --ignore-native-crashes 100000000 >
- 查看apk位置 adb shell pm path com.android.mms
- 查看宏控的值 adb shell settings put global enable_xxx_support
- 改名:rename 's/ilaoda_/os_/' ilaoda_*
- 替换文本内容:
sed -i "s/ilaoda/test/g"grep ilaoda -rl --include="*.java" .
(针对特定的文件)
sed -i "s/ilaoda/test/g"grep ilaoda -rl .
(任何文件) - Setting下开发者选项的动画缩放因子查看:
adb shell dumpsys window w -a - 查看内存信息: adb shell dumpsys meminfo 包名
- 可分配的最大内存: adb shell getprop | grep dalvik.vm.heapsize
- 查看当前焦点:adb shell "dumpsys window | grep mCurrentFocus"
- 查看顶部的Activity: adb shell dumpsys activity top
- 获取手机的eng user 版本:adb shell getprop ro.build.type
- 打开mtklog: adb shell am start -n com.mediatek.mtklogger/com.mediatek.mtklogger.MainActivity
- egrep -irn 'fd' ./
- egrep -irn --color 'leak' ./
Maven
- Clean命令: ./gradlew xxx:clean
- 打包: ./gradlew xxxx:assembleRelease
- 上传: ./gradlew xxxx:upload
网友评论