Tech Blog

Android, Testing

Generate DumpState logs On Samsung Android Devices

By Sandeep Kadam3 min read
← Back to blog

Capture dumpstate logs on the Samsung devices:

An issue or bug in software can cause the system to fail or behave in an unintended way. Whenever a critical issue is observed or found by the QA team, it is important for them to reproduce the issue and share the required logs with the app developers in order to identify and fix the bug early in the software development life cycle. 

The app developer needs a log report from the Android device in order to troubleshoot and fix the issue. The log files required by the app developers are dumpsys (diagnostic output for system services), dumpstate (error logs), and logcat (system message logs).

The following are the steps to collect the “Dumpstate logs” from the Samsung devices.  

  1. Take a Samsung Android device and Launch the Phone Application.
  1. Enter *#9900#. It will open the “SysDump tool” as shown in the below screenshot
  1. Below are some of the important options available in the “SysDump tool.”
    a. Run dumpstate/logcat/modem log – Use this option to run and generate the dumpstate/logcat/modem logs.
    b. Run dumpstate/logcat – Use this option to run and generate the dumpstate/logcat logs.
    c. Run CP based log – Use this option to run and generate the CP based logs.
    d. Delete dumpstate/logcat – Use this option to delete the dumpstate/logcat logs.
    e. Debug Level Disabled/Low – Use this option to set debug level to Mid or Low. This action will restart the device.
    f. Run dumpstate & copy to sdcard – Use this option to run and generate the dumpstate/logcat logs and store them in the user-defined path.
    g. Exit – Use this option to exit the SysDump tool.
  1. Change the debug level to “MID” by tapping on the “Debug Level Disabled/Low.” 
  2. Tap on the “Delete dumpstate/logcat” to delete the existing dumpstate/logcat logs.
  3. Now reproduce the issue for which dumpstate logs are required. 
  4. Re-open the “SysDump tool” by entering the *#9900# into the Phone application.
  5. Tap on the “Run dumpstate/logcat” option.
  6. It will generate the log file successfully and display the following message 
  1.  The dumpstate/logcat will be stored in the path- /data/log/<filename>.zip
  2. Copy the log file and share it with the app development team. 
  3. Reset the debug level to “Low” from the “Debug Level Disabled/Low” option.
  4. Exit the SysDump tool by tapping on the “Exit” option.

Note : 

  1. Please note that the device’s log buffer will be cleared after 15 minutes, so generate and download the log file within this period of time.
  2. On the Samsung tablet (WiFi Only) devices, where the phone app is not available, use the Calculator app to generate the logs. Enter the code “(+30012012732+” on the keypad and then enter *#9900# on the number pad in the DRParser activity as shown in the below screenshot.

Capture dumpstate logs on the Samsung Wearable devices:

The following are the steps to collect the “Dumpstate logs” from the Samsung Wearable devices.  

Pre-requisite: Connect the wearable device to the Mobile device by using the “Galaxy Wearable app.”

  1. Open the Settings app on the Wearable device
  2. Tap on the “About Watch”
  3. Tap 5 times on the “Serial Number”
  4. It will open a number pad. Enter *#9900# into the number pad
  5. Tap on the “Run LOG_DUMP”
  6. On completion of the log generation, tap on the “Extract LOG_DUMP”
  7. The dumpstate log files will be stored under the “Internal storage > Pictures > Watch”
  8. Copy the log file and share it with the app development team

Keep reading

You may be interested in

Browse all articles →
Introduction to Cookie Testing
September 21, 20225 min read

Introduction to Cookie Testing

1.Cookie Testing is mainly used to test the cookies that are saved in the web browser.2.When ever a web application is being accessed by the use of a server then The term cookie can be defined as the portion of data saved in the form of text in the browser history.3. It is used to […]

By Lokesh CheekurthiRead More →
Generate Bug Report on Android Devices
December 24, 20213 min read

Generate Bug Report on Android Devices

A bug or issue in software can cause the system to fail or behave in an unintended way. It is very important for an app developer to identify and fix these bugs early in the software development life cycle. In order to troubleshoot the bug, the app developer needs a bug report from the Android […]

By Sandeep KadamRead More →
Android Download file with Data URL
July 23, 20241 min read

Android Download file with Data URL

What is a Data URL? Data URLs are the type of URL scheme that is used to embed usually small types of files. In this URL, inline files are prefixed with the data: MIME type. data:[<mediatype>][;base64],<data> To download files having Data URLs inside Android: Firstly, we need to get an extension of the file from […]

By Bansari PanditRead More →