barscaret-downcaret-leftcaret-rightcaret-upcheckchevron-leftchevron-rightfile-pdfinfosign-in-altsignin text-widthtimesyoutube


Installing and collecting ADB logs on an Android device

Created on January 30th, 2023

This article will explain how to install and collect ADB logs on an android device.


  • Windows device
  • USB cable


  1. Download SDK Platform Tools to your Windows device from Android website.
  2. Unzip the folder by right-clicking the downloaded zip file and selecting Extract all as seen below.
    Select Extract all to unzip the downloaded Platform Tools to the desired location,
  3. Start Command prompt. You can do so by pressing the Windows button on your keyboard or selecting the Windows menu from the toolbar. Once the menu is open you can either select Command Prompt from the menu or simply type cmd for it to match it with the application as seen below on Windows 11.
    Command Prompt application in the Windows menu.
  4. On your Android device activate “Developer options” from “Settings > About phone > Software information” by tapping “Build number” for many times until a notification appears on the screen saying that developer mode is being turned on. This would also make Developer options to appear under Settings as seen below.
    Developer Options appearing on the Samsung test device.
  5. Connect the device to your PC with a USB cable. Worth noting that the cable should be connected directly to the computer and not via a hub for example for it to function properly.
  6. On your Android device enable ”USB debugging” from the device “Settings > Developer options > USB debugging and allow the action as seen below.
    Press OK to allow USB debugging.
  7. Type Adb logcat -v threadtime >logcat.txt to command prompt.
  8. Press Ctrl+C to stop the log from running and you will now see the following on your screen.
    Adb running on Command Prompt (installed on drive Y on this example).
  9. Logcat.txt file will now appear in the folder where you have installed Platform Tools.



USB cable

When connecting the device to your PC with a USB cable make sure that the cable is connected directly to the computer and not via a hub for example for it to function properly.


If USB debugging has been disabled from the server ADB will not work properly.

Previous Article:

Next Article: