Install Android Studio
- Navigate to http://developer.android.com/sdk/index.html and download Android Studio
- Run the Android Studio installer.
- Navigate to http://www.oracle.com/technetwork/java/javase/downloads/index.html and download the most recent version of the Java Development Kit (JDK).
- Run the JDK installer.
Create a System Variable
- Select Start.
- Right-click Computer, and select Properties.
- Select Advanced System Settings.
- Select Environment Variables.
- Under System Variables, select New.
- For Variable Name, enter “JAVA_HOME” (no quotes).
- For Variable Value, enter the path to the JDK top-level folder (e.g. “C:\Program Files\Java\jdk1.8.0_25” (no quotes)).
- Select OK to exit the Environment Variables screen.
- Select OK to exit the Advanced System Settings screen.
Install Device Drivers
Device-specific drivers will need to be installed on your PC in order to properly interface with the device. Generally these drivers can be installed from the manufacturer’s website, but an example of downloading the drivers for the Samsung Galaxy S3s (SGL-T999L) is provided below.
- For T-Mobile Samsung Galaxy S3s (SGL-T999L), navigate to http://www.samsung.com/us/support/owners/product/SGH-T999ZWATMB.
- Under Manuals and Downloads, click the Download (EXE) link for “USB (Driver) ver.184.108.40.206 - Win XP/Vista/Win 7/Win 8/Win 8.1 (32bit,64bit) (EN, 15.27 MB)”.
- For other devices, please download the respective drivers from the manufacturer’s website.
- Run the installer.
Enable USB Debugging
- Enable Developer Options if this is already not enabled:
- Navigate to Settings -> About Device/Phone.
- Tap Build Number 7 times to enable Developer Options.
- Navigate to Developer Options (Settings -> Developer Options).
- Check the option that reads “USB Debugging”.
Actually Gather Logs
- Plug your device into your computer. Accept any trust messages that come up.
- Open Android Studio.
- Navigate to Tools -> Android Device Monitor.
- Select your device in the upper left-hand panel.
- Select LogCat in the bottom panel.
- If everything was configured properly, Android Studio should now be collecting logs from your device via ADB.