- adb命令
功能 | 命令 |
---|---|
查看最上层Activity | adb shell dumpsys activity | findstr “mFocusedActivity” |
得到ANR的trace文件 | adb pull /data/anr/traces.txt ./ |
生成签名文件 | keytool -genkey -alias android.keystore -keyalg RSA -validity 20000 -keystore debug.keystore |
断开服务 | adb kill-server |
启动服务 | adb start-server |
- git命令
功能 | 命令 |
---|---|
账号修改后 | git config --system --unset credential.helper 再重新输入用户名密码(如果不行先输入git config --global http.emptyAuth true) |
输入账号 | git config --global user.name [username] |
输入密码 | git config --global user.email [debug.keystore] |