How to get android's native methods source code

怎甘沉沦 提交于 2019-12-02 16:12:11
Idolon

You can find source code for Android native methods using Google Code Search one of the following services:

The search for "SystemClock || android*SystemClock" in AndroidXref will point you to the android_os_SystemClock.cpp file which in turn forwards many of its methods to SystemClock.cpp

Other Android .cpp or .h files with native methods implementations could be found in a similar way.

mudit

If you are looking for android SDK code then you can find it here:
https://android.googlesource.com

luc.chante

https://android.googlesource.com

git clone https://android.googlesource.com/platform/frameworks/base

For Google application look at platform/packages/apps/[APP name]

Beside the Android Open Source Project you can find the code just by using google, e.g. search for:

android SystemClock source code

I got links to grepcode (SystemClock). I find it more compfortable to browse the code here (be careful which version of code you are browsing).

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