How to get Android system boot time

浪尽此生 提交于 2019-12-01 01:03:10

问题


How can I get the absolute system boot time within the shell? i tried cat/proc/uptime, but this only returns the time since reboot.


回答1:


It's basically:

java.lang.System.currentTimeMillis() - android.os.SystemClock.elapsedRealtime();


来源:https://stackoverflow.com/questions/15342301/how-to-get-android-system-boot-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!