4
  • Phone : nexus 5 version 2013
  • Android version : 6.0
  • Kernel version : 3.4.0-g2aa165e
  • Build number : MRA58N

For the last few days, 10118 has been draining my phone's battery. It drains battery by using GPS. I typed 'ps' in a terminal emulator, and there was no application with PID 10118. I don't know what exactly 10118 is. My guess is that it's one of recently installed weather apps.

How can I fix this?

screenshot screenshot
Screenshots (click images for larger variants)

  • 3
    That appears to be UID to me. See if you can find the associated package name using that as UID. This may help: How to know app name by UID Also, use a paste service (such as pastebin) to give us the output of adb shell dumpsys batterystats. You would need adb setup in PC and USB debugging enabled in the device. – Firelord Nov 29 '15 at 9:04
  • 1
    @Firelord I was thinking about that. But while there's a permission to collect BATTERY_STATS, I found none to access them. I've not tried it either. So you have and it didn't work ("permission denied" or any other error)? – Izzy Nov 29 '15 at 9:17
  • 1
    Interesting info. I think you're right about that. The proper denial message I receive is that user (user in terminal app) doesn't have the permission android.permissions.DUMP. So I guess two permissions would be required for successful execution of the command: permission to dump and permission to gather batterystats, or at least the first one to access dumpsys tool. – Firelord Nov 29 '15 at 9:21
  • 1
    The intriguing fact is that you can execute dumpsys alone without any problem. You won't get the error about that specific dump permission. All that would happen is you would see permission denial error for every available service there. I used com.android.terminal app to access batterystats service and I got the permission error alike to terminal emulator. @Izzy – Firelord Nov 29 '15 at 9:38
  • 1
    @Firelord The output of 'adb shell dumpsys batterystats' is on gist.github.com/crocket/1ac5999ef4679cbf542e The gist will be deleted after weeks. – crocket Nov 29 '15 at 10:04
2

It's the UID of a removed app.

For such a number like 10118, it is the Unix UID for a user app (u0_a118).

There must have been a power-intensive app like a big game and you uninstalled it. Then there's nothing but its UID left, which is used in system logging.

Android does not log by app (for user apps), but its UID instead. So when you view battery usage, Android tells you the list by process UIDs, which contains one that has no app associated to it. Android cannot determine what app that UID is for, so it chooses to give you the UID directly, and that's the number you see.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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