2011-04-19 08:50:56 8 Comments
In "battery history" I have found that the app with UID 10058 is using a lot of battery.
How can I find the name of the app with UID equal to 10058?
Related Questions
Sponsored Content
1 Answered Questions
Get common name of an app given its package name
- 2013-08-10 05:20:12
- Robert Siemer
- 1677 View
- 1 Score
- 1 Answer
- Tags: applications adb command-line
1 Answered Questions
[SOLVED] What is the name of the app in the screenshot?
- 2019-09-22 10:00:06
- DAF
- 45 View
- 0 Score
- 1 Answer
- Tags: applications battery battery-life battery-history
7 Answered Questions
[SOLVED] View app's full package name?
- 2012-09-04 15:05:33
- AnDroDroo
- 190338 View
- 86 Score
- 7 Answer
- Tags: applications
2 Answered Questions
[SOLVED] How to find app based on package name?
- 2012-02-24 11:17:17
- aligf
- 6509 View
- 7 Score
- 2 Answer
- Tags: applications adb malware
1 Answered Questions
[SOLVED] Where are UID for each application stored?
- 2017-03-28 21:33:40
- Zulgrib
- 4174 View
- 3 Score
- 1 Answer
- Tags: applications system
1 Answered Questions
[SOLVED] Get new installed app name with Tasker
- 2015-12-25 11:24:54
- user127476
- 1287 View
- 2 Score
- 1 Answer
- Tags: applications installation tasker
2 Answered Questions
[SOLVED] How does the App "Battery Repair" work?
- 2012-09-12 19:30:51
- minicookie
- 40666 View
- 10 Score
- 2 Answer
- Tags: battery
3 Answered Questions
[SOLVED] Battery usage by certain applications
- 2012-06-23 17:05:41
- xralf
- 213 View
- 2 Score
- 3 Answer
- Tags: battery
6 comments
@Alec Istomin 2017-04-05 05:32:20
To find "everything" by UID (or GroupID) on a rooted phone, including running processes, system apps and hardware sensors:
Example 1:
Example 2
@dbarros 2016-11-19 03:26:34
I had a similar issue with Android 6.0, Moto G 2nd Gen from 2014. I happened to have upgraded the ES File Explorer application and I noticed it was bloated as hell and sucking up a lot of battery. I removed the application from the system, but the application let a zombie process taking up CPU. The UID was similar to yours 10118, and it listed in the battery statistics as the most hungry resource process.
Then I installed an app named "OS Monitor" and noticed that a .esfm file was actually the only process taking up 60% of CPU. I immediately had known that it had to do with ES File Explorer, but wait... I HAD uninstalled ES File Explorer. Yes. The only thing I didn't do was to RESTART the smartphone. Believe me, I was thinking about crazy things, like going root and beat the crap out of that process, throw the phone against the wall, and even started to believe that my battery reached end of life. To my surprise, I simply restarted the phone and the process was gone.
So before taking any drastic measures, try to figure out which app is giving you a bad time, uninstall it and then restart the phone. Check on OS Monitor the CPU usage list, and you should be fine.
@Firelord 2015-09-10 18:58:15
Set up adb in a PC, connect the device to the PC, launch a shell on the PC and enter:
Replace
UID
with the ID you're looking for, such as 10102.Example:
The line containing
Package{
would show the package name of the app in between whitespace and}
. You can doadb shell dumpsys package PKG_NAME
(PKG_NAME
→ package name of an app) to know more details about that package/app.If the Android is rooted, from adb shell or a terminal emulator app, you can do:
In the output, anything before the UID is the package name.
Example:
Alternatively, if you've Busybox or Toybox installed and available under PATH variable, from a terminal emulator or adb shell do:
Example:
Since we are interested in the label of the app and not the package name, proceed with the answer from GAThrawn or from Izzy.
@Firelord 2016-04-19 21:27:44
Use
find /data/data/ -user UID -type d -maxdepth 1 | xargs basename
if you're getting multiple results in the firstfind
command.@Anubian Noob 2016-05-05 06:36:29
This works for me without root.
@Lie Ryan 2011-04-19 18:24:32
Android assigns each application a UID (User ID) at install time; unlike PID (Process ID) which is transient and keeps changing all the time, UID stays constant as long as the application is not reinstalled. The UID should be unique to each application, except when the application explicitly requests to share a userid with another application (there are security restrictions around this, the two applications must be signed with the same private key, i.e. comes from the same developer).
These applications claims to show UID of applications:
EDIT:
Try looking at
/data/system/packages.xml
(you need root to view this file), each installed application should have an entry there. Say, I have Adobe Reader installed in my phone:My phone have assigned
userId="10034"
to Adobe Reader.For applications that have requested to share user id with another application, say Handcent:
then the attribute you're looking for is
sharedUserId="10064"
@Chahk 2011-04-19 13:28:34
In ADB shell (or terminal emulator) use the following command:
and look in the "Name" field. This should be the name of the process. So in your case it would be "cat /proc/10058/status"
@Firelord 2015-10-02 11:02:16
10058 is supposed to be the PID here while OP gave us UID.
@Snark 2011-04-19 09:19:38
Install a terminal emulator, launch it and run:
ps
lists the processes andgrep
filters for the ID you want.But this only works if the application is running when you run the command.
@azat 2011-04-19 13:54:59
I try this, but it doesn't works, because such app is not already running
@Lie Ryan 2011-04-19 17:21:17
This is for PID, the asker was referring to UID
@Art Swri 2013-06-12 16:09:17
The UID is shown in the ps output as well as the PID. The ps output typically has lines like '12345 app_118...' where 12345 is the PID and app_118 is the UID (corresponding to userId=10118 in /data/system/packages.xml)