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
0
votes
1 answer

Dumpsys Battery History Tags

I am studying battery profiling with batterystats logs and there is a section called "Battery History" with a bunch of informations. Is there a list with all tags that can appear on it? (ex: "job=", "screen", "audio", "running" etc) I could not…
0
votes
1 answer

dumpsys activity | grep -i run not listing activity

adb dumpsys activity | grep -i run not listing running activity. It shows below output, m11q:/ $ dumpsys activity | grep -i run service_reset_run_duration=60000 -> 13014:com.sec.spp.push:remoteRuna/u0a63 s1/1 u0/0 +9m54s749ms *…
Amit Yadav
  • 32,664
  • 6
  • 42
  • 57
0
votes
1 answer

Print string with variables in AWK

I am trying to parse android package list from phone. Sample data is as shown below. Package [com.google.android.as] (9faf0bc): userId=10320 pkg=Package{299f845 com.google.android.as} …
0
votes
1 answer

replace function offset with source code line number in output of "adb dumpsys meminfo --unreachable"

To find memory leaks of the native C code of my app I run the following command adb shell dumpsys meminfo --unreachable $(adb shell pidof com.mycompany.myapp) I get the following output 6 bytes unreachable at ee1551b0 and 654 similar unreachable…
Stéphane Padovani
  • 1,157
  • 2
  • 9
  • 16
0
votes
1 answer

how access current and focused window in android adb

I am using Android API 30 adb adb shell dumpsys window windows but it is not showing mCurrentFocused and mFocused app Kindly help me out
Umair Khan
  • 11
  • 3
0
votes
1 answer

Why does "dumpsys activity top" list "fragment" in its output while I did not use fragment?

The SecondActivity only has simple layout which is set as ContentView in its onCreate() method: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_second); } And the…
hasanghaforian
  • 13,858
  • 11
  • 76
  • 167
0
votes
4 answers

dumpsys window windows | grep -E 'mCurrentFocus' command is not giving me any result

I am giving dumpsys window windows | grep -E 'mCurrentFocus | mFocusedApp' command in the command prompt and it is not giving any results.enter image description here
chandu2798
  • 3
  • 1
  • 3
0
votes
1 answer

Interpreting dumpsys bluetoothmanager result

I am trying to understand dumpsys bluetooth_manager results. More specifically, I would like to figure out about different states of Bluetooth adapter by looking at the dumpsys output. For example, if bluetooth is enabled/disabled, if it is…
Reyhan
  • 1
  • 1
0
votes
1 answer

Finding all available activities/fragments for an app that's not yours

When decompiling an app, I find lately, that a few apps' manifests do not seem to have designated activities for the view I want. For example, if com.example.app is on the view I want and I run the following command: dumpsys window windows | grep -E…
0
votes
1 answer

dumpsys cpuinfo not reporting updated information on LG WATCH R

I'm reading CPU usage details of my app using dumpsys cpuinfo command, however, it seems like its not updating the information. For example, the output is as follow: CPU usage from 886396ms to 613049ms ago: Which means that the last update was…
utengr
  • 3,225
  • 3
  • 29
  • 68
0
votes
1 answer

To what do the Android 'adb shell dumpsys package' hashes refer to?

When I use the dumpsys debugging tool like adb shell dumpsys package com.example.testapp.first I get the result for the single package like this (Nexus 6P, 7.1.1): Packages: Package [com.example.testapp.first] (2036fd1): userId=10225 …
Patrick
  • 33,984
  • 10
  • 106
  • 126
0
votes
1 answer

TOP command vs dumpsys cpuinfo: Which one is more accurate?

I want to look at the cpu usage of my app in Android. For which, I used both top and dumpsys cpuinfo. I calculated the average of 5 minutes for top command (1 second interval between cpu measurements). For example, once I got 19% for my app over 5…
utengr
  • 3,225
  • 3
  • 29
  • 68
0
votes
1 answer

Why my app info empty about Draw, Process, Execute adb shell dumpsys gfxinfo

I Used, adb shell dumpsys gfxinfo Why my app info empty about Draw, Process, Execute adb shell dumpsys gfxinfo? I dont understand why empty that stats. Help me pls. ** Graphics info for pid 3213 [com.kabam.marvelbattle] ** Recent DisplayList…
0
votes
1 answer

how to get fps value of games in android devices

Recently,i studied to how to record fps value of games in android devices.Finally,i found three ways to get the value. adb shell dumpsys SurfaceFlinger --latency SurfaceView adb shell dumpsys gfxinfo adb shell service call SurfaceFlinger 1013 When…
kikujiang
  • 13
  • 4
0
votes
1 answer

How to compile dumpsys as an standalone application with Android NDK?

I would like to compile dumpsys as an standalone application using Android NDK. However, when I enter the command ndk-build I encounter the following error: fatal error: utils/Log.h: No such file or directory Is it at all possible to compile dumpsys…
Matt
  • 796
  • 12
  • 25