<div dir="ltr"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#000000">Hi Everyone,</font><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><div><font face="arial, helvetica, sans-serif" color="#000000">I have recently started reading about and experimenting with FlowDroid. I was wondering if FlowDroid </font><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">(or a combination of FlowDroid and other tools) can be used to track the sources of data passed to the native code (whether it is custom or existing native libraries).</span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">For example, in the following function of an Android app:</span></div><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><font face="monospace, monospace" color="#741b47"><b>private native void</b></font><font face="monospace, monospace"><font color="#000000"> nativeNotifyError(</font><b style=""><font color="#741b47">int</font></b><font color="#000000"> </font><font color="#bf9000">var1</font><font color="#000000">, </font><b style=""><font color="#741b47">String</font></b><font color="#000000"> </font><font color="#bf9000">var2</font><font color="#000000">);</font></font></div><div><font face="arial, helvetica, sans-serif" color="#000000"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000">I want to track the sources of the variables </font><span style="color:rgb(191,144,0);font-family:monospace,monospace">var1 </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">and </span><span style="color:rgb(191,144,0);font-family:monospace,monospace">var2 </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">to know what values are passed to the </span><span style="color:rgb(0,0,0);font-family:monospace,monospace">nativeNotifyError </span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">function.</span></div></div><div><font color="#000000" face="arial, helvetica, sans-serif">It seems that FlowDroid has a <b>Native Call Handling</b> component but I'm not quite sure if it serves this purpose?</font></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">Thanks,</span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">Sumaya</span></div></div></div>