- Download and install the Android Developer SDK from https://developer.android.com/studio/index.html
- Scroll down to the bottom and locate the section labeled Get just the command line tools
- Select the platform you wish to use.
- Once the installation is completed, you will need to launch the “SDK Manager” in the “Android SDK Tools” program group. You will need to install a few components.
- Select the following components to install.
- Under Tools, select Android SDK Tools > Android SDK Platform-Tools
- Under Extras, select Google USB Driver.
- Once the device is recognized and the SDK is installed, open a command prompt and run the following commands.
- Enable the Developer Options on the device.
- On the Android device, open the Settings app.
- Scroll down to the bottom of the page and locate the About tablet or About Phone section and tap on it.
- Scroll down to the bottom and locate the Build number section and tap on it seven times.
- You will see a message indicated that you have activated the Developer options.
- Go back one screen and locate the Developer options menu option.
- Open the page. Ensure the feature is On at the top of the page.
- Locate USB debugging and activate the feature.
cd C:\Program Files (x86)\Android\android-sdk\platform-tools
: This is on a Windows 10 x64 machine. The path may be different depending on the version of the operating system. Search for adb.exe to locate the file. You will need to change to that directory to run the application.
Depending on the operating system, you may need to install specific device drivers for the Android device. If the PC does not recognize the device and does not install the missing drivers, this will need to be resolved before proceeding. Consult the device manufacturer’s documentation how to resolve this issue.
- Run the following command below:
- This will list the connected device and confirm that adb can see the following device. If no device is listed, verify that the operating system is seeing the device correctly. Open Device Manager to determine if it is installed correctly.
- Once the device is accessible from adb, run the following command:
adb logcat > c:\temp\logcat.txt
- Let the command run; do not break out of it until you have reproduced the issue.
For example, install Pulse Secure, then register the device and get it to the point of failure. Once that has been done, return to the command prompt and hit <CTRL> C to exit the adb application. A copy the file will exist in C:\temp and send this file to Pulse Secure Support for further evaluation.