1. Overview of this blog
The intent of this document is to provide a step by step process to collect Android device logs for troubleshooting issues related to XenMobile.
1) Java JDK (Java Development Kit)
2) Android Debug Bridge/ Android SDK
3) Windows or Mac machine.
2. Installing Java JDK.
- Before installing the Android SDK, you’ll have to install Oracle’s Java development kit.You can download it from the following link: http://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/
Note: Ensure you download the right version of JDK depending up on the version of your operating systems if it is 64 Bit or 32 Bit.
- After you have downloaded the right JDK version, double click on the exe file to install JDK.
- Click next twice and complete the JDK installation process.
3. Installing and setting up Android SDK.
- With the Java JDK installed, you can now download the Android SDK from Google and install it on your computer. If you see a Java-related error during installation, ensure you downloaded and installed the x86 version of the JDK, not the x64 one
Android SDK can be downloaded from the following link: http://developer.android.com/sdk/index.html#top
Double click on the exe file to install Android SDK.
- Once the Android SDK is downloaded and installed, launch the SDK Manager application from your Start menu.
- Enable the Android SDK Platform-tools checkbox and click the Install button. This downloads and installs the platform-tools package, which contains ADB and other utilities.
Also download Google USB Drivers.
- To use ADB with your Android device, you must enable USB debugging on your Android device. You’ll find this option under Developer Options on your device’s Settings screen.
- Locate the android-sdk’s folder. Note the SDK path displayed at the top of the SDK Manager window.
If you used the default install location, you’ll find ADB in the following directory: C:\Users\NAME\AppData\Local\Android\android- sdk\platform-tools. If you used a different install location, you’ll find ADB in the platform-tools directory inside your android-sdk directory
- Browse to this directory, hold Shift and right-click inside it, and select Open command window here.
- To test whether ADB is working properly, connect your Android device to your computer using a USB cable and run the following command: adb devices
You should see a device in the list.
- Once you’ve got your drivers correctly installed and the adb devices command indicates it can communicate with your Android smartphone or tablet, you can start using ADB.
Reproduce Android XenMobile issue and run the following command to capture the device logs:
adb logcat –d > “Name and Location of the Log file”
Example: adb logcat –d > “C:\Android Logs\Logs.txt”
- You will see a log file created at the location provided in the above command. Open that file in Notepad or Notepad ++ to see Android device logs and search with the name of the app (i.e. WorxHome, Sharefile, WorxMail, etc..)