mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
27 lines
551 B
Text
27 lines
551 B
Text
% android, device
|
|
|
|
# Get property
|
|
adb -s <device> shell getprop <property>
|
|
|
|
# Install APK
|
|
adb -s <device> install -r <path>
|
|
|
|
# Uninstall package
|
|
adb -s <device> uninstall -r <package>
|
|
|
|
# Clear user data for package
|
|
adb -s <device> shell pm clear <package>
|
|
|
|
# Dispatch a deep-link / open URI
|
|
adb -s <device> shell am start <uri>
|
|
|
|
$ device: adb devices --- --headers 1 --column 1
|
|
|
|
|
|
|
|
% android, emulator
|
|
|
|
# Start emulator
|
|
"$ANDROID_HOME/tools/emulator" -avd <emulator> -netdelay none -netspeed full
|
|
|
|
$ emulator: "$ANDROID_HOME/tools/emulator" -list-avds
|