Android dumpsys batteryinfo vs android dumpsys batterystats

Can someone tell me how it works adb shell dumpsysinside? I suppose this command reads /procfs somehow , but this is just my understanding.

It seems that android sdk 19 onwards, the following command is not supported -

adb shell dumpsys batteryinfo

He was replaced by

adb shell dumpsys batterystats

I would like to know if any documentation is available (link), where you can find detailed information about this.

+4
source share
1 answer

dumpsys, , dump() ( IBinder), STDOUT args:

sp<IServiceManager> sm = defaultServiceManager();
...
sp<IBinder> service = sm->checkService(services[i]);
...
int err = service->dump(STDOUT_FILENO, args); 

, , batteryinfo batterystats

+2

Source: https://habr.com/ru/post/1545948/


All Articles