dalvik - Android : Logging all API calls -


i'm working on collage project security in android. 1 part of project attempts capture , log api function called selected apk. can't done external programs in project working android source code modify rom.

at present time have 2 possible solutions:

dvm jni bridge

the api java code so, obviously, dalvik virtual machine needs bridge execute jni code. function handle cases dvmcalljnimethod(const u4* args, jvalue* presult, const method* method, thread* self). in function can name , class of called function.

this function can log jni code executed, includes api calls. there no easy way distinct between private calls , api calls. and, if wanted execute code depending on risk of api call executed, have create huge , inefficient switch.

api framework

another solution log api calls creating new interface framework. new logging class , simple inheritance should easy log calls , add risk parameter. mean changing lot of code. also, java code has worst performance c, might not efficient way.

more over, ask few questions android dvm , api.

1.which call flow between dvm , api? 2.could dvm monitor idea log calls? 3.which role have shared libraries in of this? 4.are api calls java code?

thanks time.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -