Info Call to dangerous WebView settings API

Description

List of all WebView methods used in the application.

Recommendation

If your application accesses sensitive data with a WebView, you may want to use the clearCache() method to delete any files stored locally.

Any URI received via an intent from outside a trust-boundary should be validated before rendering it with WebView

Technical details

Method android.support.v4.widget.SimpleCursorAdapter.setViewImage() calling method android.net.Uri.parse()


    public void setViewImage(android.widget.ImageView p3, String p4)
    {
        try {
            p3.setImageResource(Integer.parseInt(p4));
        } catch (NumberFormatException v0) {
            p3.setImageURI(android.net.Uri.parse(p4));
        }
        return;
    }

Method com.afwsamples.testdpc.cosu.CosuUtils.startDownload() calling method android.net.Uri.parse()


    public static Long startDownload(android.app.DownloadManager p6, android.os.Handler p7, String p8)
    {
        Long v0 = Long.valueOf(p6.enqueue(new android.app.DownloadManager$Request(android.net.Uri.parse(p8))));
        p7.sendMessageDelayed(p7.obtainMessage(2, v0), 120000);
        return v0;
    }

Method com.afwsamples.testdpc.common.MediaDisplayFragment.onCreate() calling method android.net.Uri.parse()


    public void onCreate(android.os.Bundle p3)
    {
        super.onCreate(p3);
        if (this.getArguments() != null) {
            this.mDisplayRequest = this.getArguments().getInt("argDisplayRequest");
            this.mMediaUri = android.net.Uri.parse(this.getArguments().getString("argMediaUri"));
        }
        this.getActivity().getActionBar().setTitle(2131165310);
        return;
    }

Method android.support.v4.media.MediaMetadataCompat.getDescription() calling method android.net.Uri.parse()


    public android.support.v4.media.MediaDescriptionCompat getDescription()
    {
        android.support.v4.media.MediaDescriptionCompat v12_29;
        if (this.mDescription == null) {
            String v7 = this.getString("android.media.metadata.MEDIA_ID");
            CharSequence[] v9 = new CharSequence[3];
            CharSequence v3 = 0;
            android.net.Uri v4 = 0;
            CharSequence v1 = this.getText("android.media.metadata.DISPLAY_TITLE");
            if (android.text.TextUtils.isEmpty(v1)) {
                int v10 = 0;
                int v5 = 0;
                while ((v10 < v9.length) && (v5 < android.support.v4.media.MediaMetadataCompat.PREFERRED_DESCRIPTION_ORDER.length)) {
                    int v6 = (v5 + 1);
                    String v8_0 = this.getText(android.support.v4.media.MediaMetadataCompat.PREFERRED_DESCRIPTION_ORDER[v5]);
                    if (!android.text.TextUtils.isEmpty(v8_0)) {
                        int v11 = (v10 + 1);
                        v9[v10] = v8_0;
                        v10 = v11;
                    }
                    v5 = v6;
                }
            } else {
                v9[0] = v1;
                v9[1] = this.getText("android.media.metadata.DISPLAY_SUBTITLE");
                v9[2] = this.getText("android.media.metadata.DISPLAY_DESCRIPTION");
            }
            int v2_0 = 0;
            while (v2_0 < android.support.v4.media.MediaMetadataCompat.PREFERRED_BITMAP_ORDER.length) {
                String v8_1 = this.getBitmap(android.support.v4.media.MediaMetadataCompat.PREFERRED_BITMAP_ORDER[v2_0]);
                if (v8_1 == null) {
                    v2_0++;
                } else {
                    v3 = v8_1;
                    break;
                }
            }
            int v2_1 = 0;
            while (v2_1 < android.support.v4.media.MediaMetadataCompat.PREFERRED_URI_ORDER.length) {
                String v8_2 = this.getString(android.support.v4.media.MediaMetadataCompat.PREFERRED_URI_ORDER[v2_1]);
                if (android.text.TextUtils.isEmpty(v8_2)) {
                    v2_1++;
                } else {
                    v4 = android.net.Uri.parse(v8_2);
                    break;
                }
            }
            android.support.v4.media.MediaDescriptionCompat$Builder v0_1 = new android.support.v4.media.MediaDescriptionCompat$Builder();
            v0_1.setMediaId(v7);
            v0_1.setTitle(v9[0]);
            v0_1.setSubtitle(v9[1]);
            v0_1.setDescription(v9[2]);
            v0_1.setIconBitmap(v3);
            v0_1.setIconUri(v4);
            this.mDescription = v0_1.build();
            v12_29 = this.mDescription;
        } else {
            v12_29 = this.mDescription;
        }
        return v12_29;
    }