Skip to content

Issue with reflection Implementation #2

@shivapbhusal

Description

@shivapbhusal

In class LeakSms, This method is called using reflection:

public String getSMS()
    {
        String str = "";
        Uri inboxURI = Uri.parse("content://sms/inbox");
        Cursor cur = getContentResolver().query(inboxURI, null, null, null, null);
        if (cur.moveToFirst()) {
            str = cur.getString(cur.getColumnIndexOrThrow("body"));
        }
        str=str.replace(" ","_");
        return str;

        }

If I just return a dummy string, it works properly. If I implement the entire SMS extracting part, it simply doesn't work.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions