Skip to content
  • There are no suggestions because the search field is empty.

How to Create a Log File with ADB

Description

This guide explains how to create a log file from a device using the Android Debug Bridge (ADB) tool.

Requirements

  • Android Platform Tools (ADB)
  • Workstation (PC or laptop) on the same network as the device
  • Port 5555 open between the device and the workstation

Connecting with ADB

  1. Download the Android Platform Tools from: https://developer.android.com/tools/releases/platform-tools

    Please note that ADB is already integrated into the TEOS On-Premise version. Therefore, this step is not required when using TEOS On-Premise. The adb.exe file is located within the TEOS installation folder: C:\Program Files\TEOS Manage\www\backbone\adb
  2. Extract the downloaded file to a folder. By default, this will be:
    C:\Users\Administrator\Downloads\platform-tools-latest-windows\platform-tools
  3. Open a Command Prompt window (CMD).
  4. In the Command Prompt window, type the following to start the ADB process:
    cd (the folder that contains the adb.exe file)
    adb devices
  5. Execute the following command to connect to a device:
    adb connect
  6. Once the device is connected, use the following command to start creating a log file:
    adb -s logcat > filename.txt
    The file name can be anything, as long as there are no spaces between words or numbers.
  7. To stop the log file from running, press CTRL + C on your keyboard.
  8. The log file can be found in the ADB folder.

You have now successfully created a log file using ADB.