- 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?
adb shell dumpsys batterystats
. You would need [tag:adb] setup in PC and USB debugging enabled in the device. – Firelord Nov 29 '15 at 09:04dumpsys batterystats
from within a terminal app. – Izzy Nov 29 '15 at 09:11BATTERY_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 09:17android.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 09:21DUMP
, protection-level "development", and (quote) "Not for use by third-party applications." So a terminal app wanting to accessdumpsys
would need to be at least pre-installed. And yes, I was blind here: "The information accessible with this permission is most likely comparable of that retrieved by the dumpsys command-line tool." (quoted my own permission description here ;) – Izzy Nov 29 '15 at 09:30com.android.terminal
app to access batterystats service and I got the permission error alike to terminal emulator. @Izzy – Firelord Nov 29 '15 at 09:38u0a118
. Tell me, do you have root access? When you tell me that, please provide the output ofadb shell dumpsys procstats
andadb shell dumpsys location
. – Firelord Nov 29 '15 at 10:23adb shell dumpsys package kr.co.kweather
,adb shell dumpsys package com.google.android.dialer
,adb shell dumpsys package com.aws.android
,adb shell dumpsys package com.wisemobile.openweather
? – Firelord Nov 29 '15 at 11:20