secure-software-engineering / FlowDroid

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

(Question) Doses FlowDroid support encode to binary xml?? #689

Open DuyLong97 opened 5 months ago

DuyLong97 commented 5 months ago

First, I want to express my heartfelt gratitude to each and every member of FlowDroid team. I have found FlowDroid project last week and it's was amazing. But still one question I want to ask @StevenArzt. Does FlowDroid project support encode to binary XML? In my case I want to encode the AndroidManifest.xml file to binary XML. Hope can receive your feedback soon. Thank you.

StevenArzt commented 5 months ago

Thank you for your kind words on FlowDroid.

FlowDroid uses the axml library to read binary XML files. We essentially wrap axml to give convenient access to the Android manifest and other relevant files. There is no feature to write changes back from these abstraction, because nobody needed it yet.

However, you can directly use axml to implement writing as well. There is a class AXmlWriter that you can use. If you want to add convenient support for writing back manifest changes, you can also extend our ProcessManifest class. Feel free to create a merge request.

DuyLong97 commented 5 months ago

Thank for replying me. I have a last question "Can we write ARSCFileParser to file"?

StevenArzt commented 5 months ago

Unfortunately, we have no way to write out the Android resource database. The ARSCFileParser is only intended for reading. It cannot write.

DuyLong97 commented 5 months ago

I see. Thank you @StevenArzt