How to get android's native methods source code

teoREtik picture teoREtik · Apr 27, 2011 · Viewed 14.5k times · Source

Is it possible to get and watch at Android's program component's native methods code. If anyone knows how to, please let me know.

Answer

Idolon picture Idolon · Jul 18, 2011

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.