Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have found that UID=10058 using battery much in "battery history"
How can I know app name by UID=10058

share|improve this question
up vote 16 down vote accepted

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:


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:

<package name="com.adobe.reader" codePath="/mnt/asec/com.adobe.reader-1/pkg.apk" flags="262144" ts="1300539048000" version="37149" userId="10034" installer="">
<sigs count="1">
<cert index="21" key="... very long random string ..." />
<perms />

My phone have assigned userId="10034" to Adobe Reader.

For applications that have requested to share user id with another application, say Handcent:

<package name="com.handcent.nextsms" codePath="/system/app/HandcentSMS.apk" flags="1" ts="1217592000000" version="373" sharedUserId="10064">
<sigs count="1">
<cert index="17" key="... very long random string ..." />

then the attribute you're looking for is sharedUserId="10064"

share|improve this answer

Install a terminal emulator, launch it and run:

ps | grep 10058

ps lists the processes and grep filters for the ID you want.

But this only works if the application is running when you run the command.

share|improve this answer
I try this, but it doesn't works, because such app is not already running – azat Apr 19 '11 at 13:54
This is for PID, the asker was referring to UID – Lie Ryan Apr 19 '11 at 17:21
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) – Art Swri Jun 12 '13 at 16:09

In ADB shell (or terminal emulator) use the following command:

cat /proc/<your_process_id_here>/status

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"

share|improve this answer
10058 is supposed to be the PID here while OP gave us UID. – Firelord Oct 2 '15 at 11:02

Setup on PC, enable USB debugging in device, connect the device into PC, launch a shell on PC and enter:

adb shell dumpsys package | grep -A1 "userId=UID" | tail -n -1| awk '{print $2}' | tr -d '}'

Replace UID with the ID you're looking for, such as 10137.

You would get the package name of the app associated with that UID. You can do adb shell dumpsys package PKG_NAME (PKG_NAME → package name of an app) to know more details about that package/app.

Note: To get info from dumpsys my Android 4.2.1 needs root access but Kitkat and above doesn't.

However, we are interested in the title/label of the app and not the package name. In that case, see the bullet points at the bottom of my answer here.

share|improve this answer
Forgot to mention that the command would work on *nix systems only. For Windows, you've to sort the output of adb shell dumpsys package on your own. – Firelord Oct 2 '15 at 11:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.