Questions tagged [dumpsys]

The dumpsys is a tool that runs on the device and dumps interesting information about the status of system services.

The Android input subsystem supports many different device classes, including keyboard, joystick, trackball, mouse and touch screen.

The dumpsys is a tool that runs on the device and dumps interesting information about the status of system services. Among its main features, the following could be highlighted:

  1. Get system information in a simple string representation.
  2. Use dumped CPU, RAM, Battery, storage stats for a pretty charts, which will allow you to check how your application affects the overall device.
81 questions
2
votes
0 answers

Difference between ActivityManager::getProcessMemoryInfo and dumpsys meminfo

Although I find a lot topies about this question, but I still feel confused about the difference between the api in SDK and usage of dumpsys meminfo. I am sorry. I'am writting an android demo to monitor its own memory usage. Firstly: I will malloc…
Siven
  • 21
  • 3
2
votes
0 answers

Android device FPS calculation

I'm was using gfxinfo for calculating the app FPS, but apparently that does not work with games, as they don't use UIKit for drawing. I tried to use SurfaceFlinger, but somehow it does not provide any frame information, only gives a refresh period.…
Fahri Azimov
  • 11,470
  • 2
  • 21
  • 29
2
votes
0 answers

Android 7 + - Stack #0 vs Stack #1

I wanted to resolve some multi-activity issues in android and someone pointed to me a command to analyze the currently active activities using : adb shell dumpsys activity activities From what I understand, Nougat has 2 stacks : Stack #0 and Stack…
iammrmehul
  • 730
  • 1
  • 14
  • 35
2
votes
0 answers

Why dumpsys meminfo returns Pss (KB) is Zero?

I want to analysis my app memory. But when I use adb dumpsys meminfo myapp it returns: App Summary Pss(KB) ------ Java Heap: 0 Native Heap: 0 Code: …
LauJJJ
  • 21
  • 2
2
votes
0 answers

What "Stack" means in 'adb shell dumpsys activity'?

Running adb shell dumpsys activity activities shows the current tasks and its activities. But the tasks are grouped by "Stacks" (eg. Stack #0, Stack #1). What those Stacks means? The following result below shows an example. I've opened Play Store…
Samuel T.
  • 194
  • 3
  • 13
2
votes
1 answer

Failed to connect to dumpstate service: No such file or directory

I try to run bugreport from Runtime exec and I get the following error: FAIL:Failed to connect to dumpstate service: No such file or directory I looked into bugreport code here , and it looks like it failed to open a tcp socket to dumpstate…
Zach Bublil
  • 857
  • 10
  • 28
2
votes
1 answer

SERVICE 'meminfo' DUMP TIMEOUT (10s) EXPIRED

when I execute command line: dumpsys meminfo in my android shell enviroment (Android 8.1) I got the output: * SERVICE 'meminfo' DUMP TIMEOUT (10s) EXPIRED * Does Anyone can tell me how to avoid the issue without rebooting the device? Because I am…
Henry.Woo
  • 21
  • 1
  • 3
2
votes
2 answers

ADB shell command to cancel and remove all jobs in my app

With improper enquing jobs, there can be easily mess, is there any adb command to remove all pending and active jobs (showed by adb shell dumpsys jobscheduler)
Yhdista
  • 77
  • 7
2
votes
1 answer

dumpsys window windows output

I'm trying to list all UI elements being displayed on an Android device. I'm doing this by running "dumpsys window windows | grep "Window #" in an adb shell. This gives me a list of windows from window n to 0. I'd like to know how the output order…
user1118764
  • 9,255
  • 18
  • 61
  • 113
2
votes
1 answer

Total Memory Usage in "adb shell dumpsys gfxinfo"

One of the metrics in the UI Performance testing in android is "Total Memory Usage". What is it exactly? The command is adb shell dumpsys gfxinfo A sample dumpsys is available here :…
500865
  • 6,920
  • 7
  • 44
  • 87
2
votes
0 answers

Foreground App detection of Firefox OS

In Android, we can use "dumpsys activity top" to obtain the Foreground App information. But in Firefox OS, the dumpsys command not provide the Foreground App information. Dose their have any way to detect which Foreground App are running?
Hank
  • 31
  • 2
1
vote
1 answer

How to dump DozeParameters of systemUI by adb command?

The dump function is implemented here: https://cs.android.com/android/platform/superproject/+/master:frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java;l=449 Is it possible to call it by any adb shell…
progquester
  • 1,228
  • 14
  • 23
1
vote
1 answer

How to understand the output of "adb shell dumpsys activity activities"

I implemented an automated testing tool to test my Android app. I need to frequently check the back stack of activities. So I use the following command to show it: adb shell dumpsys activity activities | sed -En -e '/Stack #/p' -e '/Running…
Richard Hu
  • 811
  • 5
  • 18
1
vote
1 answer

How to use Android dumpsys framestats

I want to measure the FPS of my Android Augmented Reality app. I am trying to follow the documentation for using dumpsys framestats. This is my procedure: connect device (Galaxy Tab S5e) via USB to computer (MacBook Pro) Launch application Open…
pookie
  • 3,796
  • 6
  • 49
  • 105
1
vote
1 answer

adb shell dumpsys window windows output not showing mCurrentFocused

I am using adb shell dumpsys window windows command but the output is not showing mCurrentFocused using Virtual device Nexus 6P API 30 Kindly help me out or alternate command
Umair Khan
  • 11
  • 3