Call graph nodes missing in android analysis using WALA -
i using wala build call graph "oncreate" method simple android application. here code snippets:
protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); camera mcamera = camera.open(); mcamera.release(); }
however, there missing nodes in call graph. call graph this:
oncreate(...)
-oncreate(...)
-setcontentview(...)
-open(...)
as can see release() missing.
how can happen? suggestions welcomed.
you need include in analysis android.jar (supplied sdk). in order wala able recognize packages. sure use android.jar version matches code level.
you can add primordial or application nodes depends on needs.
however if planning on analyzing android api well, need find full android.jar 1 supplied in sdk has stub methods. this project has full android.jar ready. android.jar sdk if need analyze application code alone without api calls.
Comments
Post a Comment