Skip to content

Instantly share code, notes, and snippets.

@Noitidart
Last active April 19, 2019 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Noitidart/53d15976031e3d7bb8225335190cac85 to your computer and use it in GitHub Desktop.
Save Noitidart/53d15976031e3d7bb8225335190cac85 to your computer and use it in GitHub Desktop.
How to record Android device screen

CLI Record Screen Video

Android

adb shell screenrecord /sdcard/test.mp4

iOS

xcrun simctl io booted recordVideo --type=mp4 screen.mp4

CLI Show Dev/Shake Menu

Android

adb shell input keyevent 82

also

adb shell input keyevent KEYCODE_MENU
@Noitidart
Copy link
Author

Testing deep link on Android

adb shell am start -W -a android.intent.action.VIEW -d "https://playground.trustedfamily.net/" com.trustedfamily

@Noitidart
Copy link
Author

@Noitidart
Copy link
Author

Noitidart commented Apr 18, 2019

Make localhost accessible from device:

Android: adb reverse tcp:1337 tcp:1337 - must re-run if you disconnect/reconnect the device from the USB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment