How to Install and Collect ADB logs on android device
book
Article ID: CTX232375
calendar_today
Updated On:
Description
Requirement is to download the ADB software in order to take real time logs from the Android device.
Instructions
Please find the Steps as Below
- Download the SDK platform for your platform (windows /mac) from this link : https://developer.android.com/studio/releases/platform-tools.html
- Unzip the folder and ensure that the adb.exe file is there
- Press shift and right click the mouse icon , select "Open Command window here" or you can run the command prompt and enter the path of where the adb.exe file is located
-

- This will open the command prompt with correct path from adb .exe file or you .
-

- Enable USB debugging on your Android phone:
- Phone>Settings>About Phone>Tap the "Build Number" seven times. You should see get the message saying you are now a developer.
- Go to Developer options on phone and turn on USB debugging.

- Connect the device to the system and trust/allow the system
- To test whether adb is working properly, connect your Android device to your computer using a USB cable and run following command "adb devices" this will show the devices connected to the system .
- Run the following command "Adb logcat -v threadtime >logcat.txt" and reproduce the issue
- Once the issue is reproduced press Ctrl+C this will stop the log
- The log file will be same directory which was extracted in the second step
Issue/Introduction
This article summarizes the steps that needs to be followed in order to collect adb logs from anrdoid
Additional Information
How to collect XCode and ADB logs :
https://support.citrix.com/article/CTX206989
Please note-If the customer has disabled the USB debugging options from the server, ADB will not work.
Was this article helpful?
thumb_up
Yes
thumb_down
No