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.
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 devicesThe device is reachable when you see an entry with status device:
List of devices attached
228b0e100d047ece deviceIf you do not see the device, re-check the prerequisites. For ADB setup and troubleshooting, see the official Android documentation: Android Debug Bridge (adb).
Some devices require enabling device logging in a vendor-specific menu.
For example, on some Huawei devices you can access the menu by dialing *#*#2846579#*#*. See Huawei logcat not showing the log for my app for context.
Capture logs (recommended)
Clear device log buffers:
Start capturing logs (millisecond timestamps, all priorities):
Reproduce the issue in your digital wallet application.
Stop capture and collect the file:
Press
CTRL+C.Retrieve
TestLogFileName.txtfrom the folder where you ran the command.
Avoid logcat filters. They often hide the lines needed for root-cause analysis.
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?