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
0 answers

What does setApplicationHiddenSettingAsUser mean?

I did a system dump on my Galaxy A12 and in my recovered _pm_bug_info.txt file this seems to be a common theme. Can anyone tell me what exactly this means? I’ve tried googling the answer to this but still can’t seem to find the exact answer.
0
votes
0 answers

Not able to get the dumpsys wifi Logs (Can't find service : wifi) but with other command it works "dumpsys display", "dumpsys cpuinfo" etc

When I run "adb shell dumpsys wifi" on the android studio terminal I am able to see logs but when I am trying to do it using java and trying to save it in another file it does not work. With other dumpsys commands such as "dumpsys display", "dumpsys…
NiJ
  • 23
  • 6
0
votes
1 answer

Android: How to interpret pwi (Power Use Item) from battery stats dumpsys

I am currently trying to understand the output of my batterystats after following the instructions listed here by Google: https://developer.android.com/studio/command-line/dumpsys#inspect_machine-friendly_output In the identifiers section there is…
Belphegor
  • 1,683
  • 4
  • 23
  • 44
0
votes
0 answers

elastic_transport.ObjectApiResponse is not JSON serializable

This is my code for the elasticsearch, throws an error of json not serializable when we try to json.dumps ret = es.indices.create(index='wiki-index', ignore=400, mappings=b) print("ret: ", type(ret)) print(json.dumps(ret, indent=4)) I tried…
0
votes
0 answers

dumpsys prints nothing for a service

I have a service that shows up in the list when I run dumpsys -l but when I run dumpsys it prints nothing at all. What does this tell me about ? Is the service not running? And if that is the case, why does it still…
E_Chadwick
  • 17
  • 4
0
votes
0 answers

i am getting this error when i typing this command

C:\Users\hp>adb shell dumpsys window | find "mCurrentFocus" 'find' is not recognized as an internal or external command, operable program or batch file. C:\Users\hp>adb shell dumpsys window | find "mCurrentFocus" 'find' is not recognized as an…
0
votes
0 answers

How would you parse the output from adb shell dumpsys in typescript?

This is the output from that command adb shell dumpsys com.android.phone. It tantalizingly seems like it should parse like yaml, but there are frustratingly a bunch of bits that don't parse properly when i feed it to online yaml parsers, so i'm…
TinyGrasshopper
  • 2,190
  • 2
  • 17
  • 28
0
votes
1 answer

Is it possible to fetch current battery level via ADB shell command?

Suppose If change the battery level to any desired value(say from current 50 to 20) adb shell dumpsys battery set level 20 Now I want adb command to fetch the current battery level(ie 20). With the below command I can reset to original value(50 in…
Shoaib Akhtar
  • 1,393
  • 5
  • 17
  • 46
0
votes
0 answers

How to provide separate network name spaces for android applications in android 7.0 AOSP?

I am working on a rooted AOSP based Android product which is based on Android 7.0. This embedded device has a number of wireless networks (5 to be specific) of different generations (3G, LTE 4G, 5G,...) with different network operators (cellular…
0
votes
1 answer

What is the definition of type A and type B Android services?

While inspecting the Total PSS usage by OOM adjustment via dumpsys meminfo oom I came across the categories "A Services" and "B Services". Do you know what is the exact meaning of these 2 categories? Maybe it has something to do with the service's…
Jordan
  • 1,375
  • 14
  • 17
0
votes
1 answer

How to get the full name of fragments using "adb shell dumpsys activity"

For a testing purpose, I use adb shell dumpsys activity to dump the information of the fragments in the foreground activity. The problem is that the dumped fragment name only contains the class name rather than its full name (full…
Richard Hu
  • 811
  • 5
  • 18
0
votes
0 answers

How to understand the view hierarchy dumped by "adb shell dumpsys activity"?

I use adb shell dumpsys activity / to dump the view hierarchy of the activity. In the output, there is a section called View Hierarchy: and I can see the hierarchy tree. But I found difficulties to understand some part of…
Richard Hu
  • 811
  • 5
  • 18
0
votes
2 answers

Incorrect button location in dumpsys activity on emulator

On a new Virtual Device (Pixel 4, api version 30, Android 11) I open Chrome, and click "Accept & Continue" on the Welcome to Chrome Screen. At this point Chrome in is on "Turn on Sync" screen and there is a "No thanks" button on the screen. Then I…
Dmitrii Dovgopolyi
  • 6,231
  • 2
  • 27
  • 44
0
votes
1 answer

Android: How to process output of Runtime.getRuntime().exec() calling dumpsys on rooted phone

I am working on a small proof of concept on a rooted phone, which relys on being able to read dumpsys output. If I call dumpsys on my (rooted) phone running Android 11 like this, using adb: adb shell dumpsys telephony.registry | grep "mCi=" I get a…
michpohl
  • 852
  • 8
  • 30
0
votes
1 answer

dumpsys battery only works when executed from PC

I've built a small app with the purpose of running dumpsys commands on device as a development helper. I've granted it the permission DUMP and PACKAGE_USAGE_STATS via adb and the app is installed as system app. It runs commands just fine, but often…
BlazeCodeDev
  • 631
  • 1
  • 7
  • 27