Android 开发常用工具

  1. adb 连接夜神模拟器
    adb connect 127.0.0.1:62001

  2. adb shell dumpsys activity top

  3. adb shell dumpsys package ai.servicewall.sdk.dev

  4. adb devices

启动一个 Activity

  1. adb shell am start ai.servicewall.sdk.dev/ai.servicewall.sdk.sample.HomeActivity

adb shell /system/bin/screencap -p /sdcard/screenshot.png //截图保存到/sdcard/screenshot.png adb pull /sdcard/screenshot.png xxx //导出
adb shell screenrecord /sdcard/myrecord.mp4

adb shell dumpsys meminfo ai.servicewall.sdk.dev

keytool -printcert -jarfile sample-v1.0.7-RAW-debug.apk

adb shell getenforce

adb shell setenforce 0 //设置后即Permissive adb shell setenforce 1 //设置后即Enforcing

// 查看 android api levels 列表 https://apilevels.com/

// android 源码 https://cs.android.com/android/platform/superproject/+/master:bionic/linker/linker_main.cpp;l=352

http://aospxref.com/

http://aosp.opersys.com/#

adb uninstall ai.servicewall.sdk.dev

adb shell am start ai.servicewall.sdk.dev/ai.servicewall.sdk.sample.HomeActivity

./gradlew assembleDebug installDebug

刷机

https://blog.csdn.net/csdn546229768/article/details/120355818