Argus-SAF icon indicating copy to clipboard operation
Argus-SAF copied to clipboard

Amandroid not detecting data flows to Anonymous Inner class

Open mukut007 opened this issue 5 years ago • 1 comments

Amandroid is not detecting data flows to sinks that goes to anonymous innerclass from a source defined outside the innerclass. Did somebody face the same issue or can somebody tell me what to fix? Thank you.

I am attaching a sample code for testing. The source is findViewById and sink is Log.i

    final EditText et = (EditText)findViewById(R.id.editText);
    final Button bt = (Button)findViewById(R.id.button);

    bt.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            
            String text = et.getText().toString();
            Log.d(text,text);
         
        }
    });

mukut007 avatar Jun 07 '19 16:06 mukut007

You can check whether the dummy env method is generated correctly by looking at https://github.com/arguslab/Argus-SAF/blob/df2557a9654260d5dd933a15f52143bbd6da1f6d/amandroid/src/main/scala/org/argus/amandroid/core/model/ApkModel.scala#L169

fgwei avatar Jul 27 '19 03:07 fgwei