The command set
Android
start Android Settings
1
| adb shell am start -n com.android.settings/.Settings
|
start or stop bluetooth
1 2
| adb shell service call bluetooth_manager 8 adb shell service call bluetooth_manager 6
|
Android kill force app
1
| adb shell am force-stop packageName
|
Android dump memory
1
| adb shell dumpsys meminfo <packageName>
|
Android packages list with path
1
| adb shell pm list packages -f
|
Android connect wifi by adb
1 2 3 4 5
| adb shell am startservice \ -n com.google.wifisetup/.WifiSetupService \ -a WifiSetupService.Connect \ -e ssid SSID \ -e passphrase password
|
To build AOSP meet out of memory error with jack
1 2 3
| export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g" ./prebuilts/sdk/tools/jack-admin kill-server ./prebuilts/sdk/tools/jack-admin start-server
|
Linux
Linux Read-only system
Mac
software update
Vim
Replace
Search
command mode |
func |
* |
搜索当前游标下的单词 |
# |
搜索当前游标下的单词(向上) |
Tips
find & xargs & grep
Ex:
1
| find -name '*.java' | xargs grep 'extends ActivityManagerNative'
|