android.cheat 978 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. % android, device
  2. # Logcat
  3. adb -s <device> logcat -v time
  4. # Get property
  5. adb -s <device> shell getprop <property>
  6. # Install APK
  7. adb -s <device> install -r <path>
  8. # Uninstall package
  9. adb -s <device> uninstall -r <package>
  10. # Clear user data for package
  11. adb -s <device> shell pm clear <package>
  12. # Dispatch a deep-link / open URI
  13. adb -s <device> shell am start <uri>
  14. $ device: adb devices | grep -v devices | grep device | cut -f 1
  15. % android, emulator
  16. # Start emulator
  17. "$ANDROID_HOME/tools/emulator" -avd <emulator> -netdelay none -netspeed full
  18. $ emulator: "$ANDROID_HOME/tools/emulator" -list-avds
  19. % android, Firebase Crashlytics Test
  20. # Enable debug logging on your device
  21. adb -s <device> shell setprop log.tag.CrashlyticsCore DEBUG
  22. # View the logs in the device logs
  23. adb -s <device> logcat -s Fabric CrashlyticsCore
  24. # Disable debug mode
  25. adb -s <device> shell setprop log.tag.CrashlyticsCore INFO
  26. $ device: adb devices | grep -v devices | grep device | cut -f 1