Skip to content

Instantly share code, notes, and snippets.

@rahman541
Created October 19, 2017 16:51
Show Gist options
  • Save rahman541/95a01cfeedb2da4d933bb2ea7ce256fa to your computer and use it in GitHub Desktop.
Save rahman541/95a01cfeedb2da4d933bb2ea7ce256fa to your computer and use it in GitHub Desktop.
Get log via ADB

Retrieve logcat dump:

  1. Enable USB debugging. Go into Settings > Applications > Development, and enable the USB debugging option.

  2. Install the Android SDK. You'll need a desktop tool called adb that will help you get error logs.

  3. Make sure your phone can connect. Follow the instructions here to make sure that adb can talk with your device: http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware

  4. Dump logcat data. From your desktop console, type ./adb -d logcat | grep -i SSHTunnel, example app is SSHTunnel.

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