How to Install and Collect ADB logs on android device

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
  1. Download the SDK platform for your platform (windows /mac) from this link : https://developer.android.com/studio/releases/platform-tools.html
  2. Unzip the folder and ensure that the adb.exe file is there
  3. 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 
    • User-added image
  4. This will open the command prompt with correct path from adb .exe file or you .
    • ​​User-added image
  5.  Enable USB debugging on your Android phone: 
    1. Phone>Settings>About Phone>Tap the "Build Number" seven times. You should see get the message saying you are now a developer.
    2. Go to Developer options on phone and turn on USB debugging.
    3. User-added image
  6. Connect the device to the system and trust/allow the system 
    • User-added image
  7. 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 . 
    • User-added image
  8. Run the following command "Adb logcat -v threadtime >logcat.txt" and reproduce the issue
    • User-added image
  9. Once the issue is reproduced press Ctrl+C this will stop the log 
  10. The log file will be same directory which was extracted in the second step
    • User-added image

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.