Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>See this topic about dumpsys utility maybe run programmatically and read IO output buffer. I found few C++ sources you to look for. Running dumpsys may need root privileges.</p> <p><a href="https://stackoverflow.com/questions/11201659/android-adb-shell-dumpsys-tool">What&#39;s the Android ADB shell &quot;dumpsys&quot; tool and what are its benefits?</a></p> <p><a href="http://source.android.com/tech/input/dumpsys.html" rel="nofollow noreferrer">http://source.android.com/tech/input/dumpsys.html</a></p> <p><a href="http://code.metager.de/source/xref/android/4.1.1/frameworks/base/services/java/com/android/server/BatteryService.java" rel="nofollow noreferrer">http://code.metager.de/source/xref/android/4.1.1/frameworks/base/services/java/com/android/server/BatteryService.java</a></p> <p><a href="http://code.metager.de/source/xref/android/4.1.1/frameworks/native/cmds/dumpsys/dumpsys.cpp" rel="nofollow noreferrer">http://code.metager.de/source/xref/android/4.1.1/frameworks/native/cmds/dumpsys/dumpsys.cpp</a></p> <p><a href="http://code.metager.de/source/xref/android/4.1.1/frameworks/base/services/jni/com_android_server_BatteryService.cpp" rel="nofollow noreferrer">http://code.metager.de/source/xref/android/4.1.1/frameworks/base/services/jni/com_android_server_BatteryService.cpp</a></p> <p><a href="http://code.metager.de/source/xref/android/4.1.1/frameworks/base/services/jni/onload.cpp" rel="nofollow noreferrer">http://code.metager.de/source/xref/android/4.1.1/frameworks/base/services/jni/onload.cpp</a></p> <p>C++ sources, if Im right, reads /sys/class/power_supply virtual directory but what then happens someone may tell you more about the inner details of Linux system. Most of the code seems to be JNI interface stuff, updating private member fields in BatteryService.java class. OnLoad class registers jni&lt;->java hooks but thats not what you need to know, just for reference here.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload