- 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] |