android - How can i see native code for java? -
inputstream = getassets().open("test"); int size = is.available(); byte[] buffer = new byte[size]; is.read(buffer); is.close();
this java function. but, internal code c/c++ code function.
so, how can see native code function in android framework source code?
if goal inform yourself, go ahead, android aosp available @ address https://android.googlesource.com if decide modify fit needs, need rebuild android , flash device.
for case, read() method comes java.io.inputstream (check imports) if search on google inputstream source should find class, example: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/io/inputstream.java
android android-ndk native
No comments:
Post a Comment