Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amandroid not detecting data flows to Anonymous Inner class #60

Open
mukut007 opened this issue Jun 7, 2019 · 1 comment
Open

Amandroid not detecting data flows to Anonymous Inner class #60

mukut007 opened this issue Jun 7, 2019 · 1 comment

Comments

@mukut007
Copy link

mukut007 commented Jun 7, 2019

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);
         
        }
    });
@fgwei
Copy link
Contributor

fgwei commented Jul 27, 2019

You can check whether the dummy env method is generated correctly by looking at

def getEnvMap: Map[JawaType, (Signature, String)] = this.envProcMap.toMap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants