Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve logs from an Android device

Overview

Use Android Debug Bridge (ADB) to capture device logs (logcat) for troubleshooting.

If you can reproduce the issue in a controlled environment, capture logs right around the failing flow.

If you need SDK runtime logs that stay inside the application sandbox, use LogService instead. See Collect logs with LogService.

Prerequisites

Before you can retrieve the log files from an Android device, ensure that you have done the following setup:

  • Install Android Debug Bridge (ADB) on the host machine.

  • Enable USB debugging on the device under test.

  • Connect the Android device to the host machine using a USB cable.

  • Install the device USB driver on Windows (if required).

To verify the setup, run:

adb devices

The device is reachable when you see an entry with status device:

List of devices attached
228b0e100d047ece device

If you do not see the device, re-check the prerequisites. For ADB setup and troubleshooting, see the official Android documentation: Android Debug Bridge (adb).

  1. Clear device log buffers:

  2. Start capturing logs (millisecond timestamps, all priorities):

  3. Reproduce the issue in your digital wallet application.

  4. Stop capture and collect the file:

    • Press CTRL+C.

    • Retrieve TestLogFileName.txt from the folder where you ran the command.

For the most detailed logs, reproduce using a build of your digital wallet application that integrates the NFC Wallet SDK dev build.

See Deliverables for supported build types.

Capture logs only around the failing flow. Start right before the steps. Stop right after.

Verifying the setup

You can verify the setup by running a flow that calls the SDK API, for example Retrieve card list in Display digital cards.

With the recommended command, the log file should have:

  • A timestamp with millisecond precision on each line.

  • Log priority letters up to V (Verbose) after the PID and TID fields.

  • A line containing PublicAPI::Start of DigitalizedCardManager.getAllCards.

The following example shows the log snippet demonstrating such features:

Last updated

Was this helpful?