secure-software-engineering / FlowDroid

FlowDroid Static Data Flow Tracker
GNU Lesser General Public License v2.1
1.02k stars 292 forks source link

Fix bug in instrumentOnBind method at ServiceEntryPointCreator.java #694

Closed DannyGooo closed 4 months ago

DannyGooo commented 4 months ago

During the instrumentOnBind process, the sm.hasActiveBody() function consistently yields a null result. This is because the body retrieval for the activeBody hasn't occurred at that moment. Consequently, despite the onBind method being overridden within the corresponding service component, the activeBody within the "onbind" method always remains null. Flowdroid's instrumentOnBind function in ServiceEntryPointCreator will rewrite all methods with the subsignature "android.os.IBinder onBind(android.content.Intent). So that the corresponding callgraph for each onBind method in the Service component would suffer.