Skip to content

Instantly share code, notes, and snippets.

@ramonaharrison
Last active February 11, 2017 21:20
Show Gist options
  • Save ramonaharrison/6c5e51a51f24a407fa4cbf0ebb493e13 to your computer and use it in GitHub Desktop.
Save ramonaharrison/6c5e51a51f24a407fa4cbf0ebb493e13 to your computer and use it in GitHub Desktop.

Enable Developer Mode / USB Debugging on your device

  • On the device, go to Settings. If you don't see Developer Options in the list:
  • Go to About Phone. Scroll to the bottom and tap on Build Number 7 times to enable developer mode.
  • Go back to the main Settings screen. Select Developer Options, scroll to USB Debugging and enable the switch.
  • Plug in the device to your computer using a USB data cable.
  • You may be prompted to accept the RSA Fingerprint, tap Yes.

Install ADB + add it to your path

  1. Download "SDK Platform-Tools for Mac" here: https://developer.android.com/studio/releases/platform-tools.html.

  2. Unzip and move the platform-tools folder to your home (~/) directory.

  3. Add platform-tools to your path. On the command line, from your home (~/) directory:

  • Enter vim .bash_profile to open the ~/.bash_profile file in vim
  • In vim, pressing i enters insert mode and allows you to edit the file.
  • Add export PATH=$PATH:/Users/$USER/platform-tools as a new line in the file.
  • In vim, pressing esc exits insert mode and allows you to save (:w + enter) / quit (:q + enter).
  1. Restart your terminal.

Load the APK onto the device.

  1. Download the APK file to your computer.

  2. With the device plugged in and USB debugging enabled, on the command line, run adb install /path/to/file.apk

Install / Open Vysor

  1. Install the Vysor Chrome extension and open it to cast your device.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment