80 questions
1
vote
0
answers
156
views
Jankstats or dumpsys gfxinfo which is more accurate
My Android app is multi screen app having native and web components. I want to measure UI performance for my app. I measure UI performance for my app on CI pipeline for nightly builds and if I see any ...
0
votes
0
answers
169
views
Android Dumpsys - How to obtain power on/off data from a year ago
Is it possible to run a command in adb shell, dumpsys perhaps that will show the power on off dates and times from a year ago ?
I have run dumpsys and it has created a huge file with loads, 100's of ...
0
votes
1
answer
102
views
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-...
0
votes
1
answer
1k
views
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 ...
0
votes
2
answers
3k
views
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 ...
0
votes
1
answer
191
views
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 ...
0
votes
0
answers
24
views
How to understand the view hierarchy dumped by "adb shell dumpsys activity"? [duplicate]
I use adb shell dumpsys activity <package_name>/<activityName> to dump the view hierarchy of the activity.
In the output, there is a section called View Hierarchy: and I can see the ...
1
vote
1
answer
4k
views
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 ...
1
vote
1
answer
6k
views
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 ...
0
votes
1
answer
318
views
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:...
0
votes
1
answer
304
views
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
173
views
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 ...
2
votes
2
answers
2k
views
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 ...
2
votes
0
answers
536
views
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 ...
1
vote
0
answers
321
views
Using python script to get fps from device
I'm attempting to get a plotted graph for fps from dtmilano using his script
https://medium.com/@dtmilano/analyzing-android-ui-performance-52beb577c421
#! /usr/bin/env python
# -*- coding: utf-8 -*-
...
0
votes
4
answers
7k
views
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
0
votes
1
answer
3k
views
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 ...
2
votes
0
answers
264
views
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
...
1
vote
0
answers
584
views
I want to kill a process but zygote relaunches it
I use android and I know the process I want to kill but everytime I kill it the zygote launches it back I don't know what deamon is monitoring the process neither which calls the zygote socket, please ...
2
votes
1
answer
3k
views
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 ...
1
vote
1
answer
1k
views
An app to read a value from a known memory address
I Know memory's address in android, that I got using game guardian, let say is AD58DBFC.
I'm trying to read the value from that address in my app, that I will built via android studio further. Is ...
2
votes
2
answers
3k
views
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)
1
vote
0
answers
288
views
Android calendar provider schedules clock alarm automatically
I am making an activity which gets the next alarm clock with the method getNextAlarmClock(). It works perfectly and shows as expected the earlier alarm clock set in the system (in my case from the ...
1
vote
2
answers
968
views
What the JobScheduler stats indicate
I have a repeating job scheduled using JobScheduler API in Android 7.0.
Please help me understand the following output of command:
adb shell dumpsys jobscheduler
u0a66 / < pkg >: 58x pending 5% ...
2
votes
1
answer
2k
views
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 ...