secure-software-engineering / FlowDroid

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

Question: How to modify the code of a targeted function of an app? #294

Open heulaoyoutiao opened 3 years ago

heulaoyoutiao commented 3 years ago

I want to use Flowdroid to design a program to achieve the following functions: input an apk file of an app, specify function F1 and F2, Function F1 calls function F2. After the program finish, F1 calls F3, and F3 calls F2, the F3 is another function. The output is a new apk, and it works the same as the input except for the relations among F1, F2, and F3. How can I do that?

JordanSamhi commented 3 years ago

Hello @heulaoyoutiao,

I think that what you want to achieve has nothing to do with Flowdroid. Maybe what you want is code instrumentation with Soot: https://github.com/soot-oss/soot/wiki/Instrumenting-Android-Apps-with-Soot

Cheers,

Jordan