Potentially 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
[TAINT] Const '1' ==>>> Sink '['Landroid/webkit/WebSettings;', 'setJavaScriptEnabled', '(Z)V', '0', 'HTTP_NETWORKING_SINK']' [[('Lgob/defensa/prensa/ui/fragments/WebFragment;', 'onCreateView', '(Landroid/view/LayoutInflater; Landroid/view/ViewGroup; Landroid/os/Bundle;)Landroid/view/View;'), ('Landroid/webkit/WebSettings;', 'setJavaScriptEnabled', '(Z)V')]]

JavaScript in Webview is enabled. setJavaScriptEnabled is set to true:

Method gob.defensa.prensa.ui.fragments.WebFragment.onCreateView():


    public android.view.View onCreateView(android.view.LayoutInflater p7, android.view.ViewGroup p8, android.os.Bundle p9)
    {
        if (this.root != null) {
            android.view.ViewGroup v1_1 = ((android.view.ViewGroup) this.root.getParent());
            if (v1_1 != null) {
                v1_1.removeView(this.root);
            }
        }
        try {
            this.root = p7.inflate(2130903118, p8, 0);
        } catch (android.view.InflateException v0) {
            v0.printStackTrace();
        }
        this.mUrl = this.getArguments().getString("url");
        ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).changeNavigateButtonToBack(this.getString(2131165241));
        this.loading = ((android.widget.ProgressBar) this.root.findViewById(2131558554));
        this.webView = ((android.webkit.WebView) this.root.findViewById(2131558641));
        this.webView.setBackgroundColor(0);
        this.webView.getSettings().setJavaScriptEnabled(1);
        this.webView.getSettings().setLoadWithOverviewMode(1);
        this.webView.getSettings().setUseWideViewPort(1);
        this.webView.getSettings().setDomStorageEnabled(1);
        this.webView.setWebViewClient(new gob.defensa.prensa.ui.fragments.WebFragment$1(this));
        this.webView.setWebChromeClient(new android.webkit.WebChromeClient());
        this.webView.loadUrl(this.mUrl);
        return this.root;
    }

Method android.webkit.WebSettings.setJavaScriptEnabled() not found.

[TAINT] Const '1' ==>>> Sink '['Landroid/webkit/WebSettings;', 'setJavaScriptEnabled', '(Z)V', '0', 'HTTP_NETWORKING_SINK']' [[('Lgob/defensa/prensa/ui/fragments/InfoFragment;', 'onCreateView', '(Landroid/view/LayoutInflater; Landroid/view/ViewGroup; Landroid/os/Bundle;)Landroid/view/View;'), ('Landroid/webkit/WebSettings;', 'setJavaScriptEnabled', '(Z)V')]]

JavaScript in Webview is enabled. setJavaScriptEnabled is set to true:

Method gob.defensa.prensa.ui.fragments.InfoFragment.onCreateView():


    public android.view.View onCreateView(android.view.LayoutInflater p6, android.view.ViewGroup p7, android.os.Bundle p8)
    {
        if (this.root != null) {
            android.view.ViewGroup v0_1 = ((android.view.ViewGroup) this.root.getParent());
            if (v0_1 != null) {
                v0_1.removeView(this.root);
            }
        }
        try {
            this.root = p6.inflate(2130903091, p7, 0);
        } catch (android.view.View v1) {
        }
        ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).changeNavigateButtonToBack(this.getActivity().getString(2131165241));
        this.infoList = gob.defensa.prensa.helpers.DataHelper.getInfos();
        this.suscribeTab = ((android.widget.RelativeLayout) this.root.findViewById(2131558594));
        this.contactTab = ((android.widget.RelativeLayout) this.root.findViewById(2131558595));
        this.sellTab = ((android.widget.RelativeLayout) this.root.findViewById(2131558596));
        this.suscribeTab.setOnClickListener(this);
        this.contactTab.setOnClickListener(this);
        this.sellTab.setOnClickListener(this);
        this.dataWebView = ((android.webkit.WebView) this.root.findViewById(2131558597));
        this.dataWebView.getSettings().setJavaScriptEnabled(1);
        this.dataWebView.setBackgroundColor(this.getActivity().getResources().getColor(2131492970));
        this.loadContent(((gob.defensa.prensa.model.InfoModel) this.infoList.get(1)).getValue());
        return this.root;
    }

Method android.webkit.WebSettings.setJavaScriptEnabled() not found.

Method gob.defensa.prensa.ui.fragments.WebFragment.onCreateView() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    public android.view.View onCreateView(android.view.LayoutInflater p7, android.view.ViewGroup p8, android.os.Bundle p9)
    {
        if (this.root != null) {
            android.view.ViewGroup v1_1 = ((android.view.ViewGroup) this.root.getParent());
            if (v1_1 != null) {
                v1_1.removeView(this.root);
            }
        }
        try {
            this.root = p7.inflate(2130903118, p8, 0);
        } catch (android.view.InflateException v0) {
            v0.printStackTrace();
        }
        this.mUrl = this.getArguments().getString("url");
        ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).changeNavigateButtonToBack(this.getString(2131165241));
        this.loading = ((android.widget.ProgressBar) this.root.findViewById(2131558554));
        this.webView = ((android.webkit.WebView) this.root.findViewById(2131558641));
        this.webView.setBackgroundColor(0);
        this.webView.getSettings().setJavaScriptEnabled(1);
        this.webView.getSettings().setLoadWithOverviewMode(1);
        this.webView.getSettings().setUseWideViewPort(1);
        this.webView.getSettings().setDomStorageEnabled(1);
        this.webView.setWebViewClient(new gob.defensa.prensa.ui.fragments.WebFragment$1(this));
        this.webView.setWebChromeClient(new android.webkit.WebChromeClient());
        this.webView.loadUrl(this.mUrl);
        return this.root;
    }

Method gob.defensa.prensa.ui.fragments.InfoFragment.onCreateView() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    public android.view.View onCreateView(android.view.LayoutInflater p6, android.view.ViewGroup p7, android.os.Bundle p8)
    {
        if (this.root != null) {
            android.view.ViewGroup v0_1 = ((android.view.ViewGroup) this.root.getParent());
            if (v0_1 != null) {
                v0_1.removeView(this.root);
            }
        }
        try {
            this.root = p6.inflate(2130903091, p7, 0);
        } catch (android.view.View v1) {
        }
        ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).changeNavigateButtonToBack(this.getActivity().getString(2131165241));
        this.infoList = gob.defensa.prensa.helpers.DataHelper.getInfos();
        this.suscribeTab = ((android.widget.RelativeLayout) this.root.findViewById(2131558594));
        this.contactTab = ((android.widget.RelativeLayout) this.root.findViewById(2131558595));
        this.sellTab = ((android.widget.RelativeLayout) this.root.findViewById(2131558596));
        this.suscribeTab.setOnClickListener(this);
        this.contactTab.setOnClickListener(this);
        this.sellTab.setOnClickListener(this);
        this.dataWebView = ((android.webkit.WebView) this.root.findViewById(2131558597));
        this.dataWebView.getSettings().setJavaScriptEnabled(1);
        this.dataWebView.setBackgroundColor(this.getActivity().getResources().getColor(2131492970));
        this.loadContent(((gob.defensa.prensa.model.InfoModel) this.infoList.get(1)).getValue());
        return this.root;
    }

Method gob.defensa.prensa.ui.MainActivity.showInfoWeb() calling method android.net.Uri.parse()


    public void showInfoWeb()
    {
        android.content.Intent v0_1 = new android.content.Intent("android.intent.action.VIEW");
        v0_1.setData(android.net.Uri.parse(this.getString(2131165277)));
        this.startActivity(v0_1);
        return;
    }

Method gob.defensa.prensa.BaseFragmentActivity.downloadFileToSd() calling method android.net.Uri.parse()


    public void downloadFileToSd(String p7, String p8)
    {
        this.createFolderInSd();
        this.fileName = p8;
        this.downloadManager = ((android.app.DownloadManager) this.getSystemService("download"));
        android.app.DownloadManager$Request v2_0 = new android.app.DownloadManager$Request(android.net.Uri.parse(p7));
        v2_0.setAllowedNetworkTypes(3);
        v2_0.setAllowedOverRoaming(0);
        v2_0.setTitle(this.getString(2131165247));
        v2_0.setDescription(p8);
        v2_0.setDestinationUri(android.net.Uri.fromFile(new java.io.File(new StringBuilder().append(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_DOWNLOADS)).append(java.io.File.separator).append("/defensa/").append(java.io.File.separator).append(p8).toString())));
        this.downloadReference = this.downloadManager.enqueue(v2_0);
        return;
    }

Method gob.defensa.prensa.ui.fragments.MenuFragment.onClick() calling method android.net.Uri.parse()


    public void onClick(android.view.View p6)
    {
        this.menuGroup.clearCheck();
        ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).toggle();
        switch (p6.getId()) {
            case 2131558601:
                ((gob.defensa.prensa.ui.widgets.MenuButton) p6).setChecked(1);
                ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).showNewsFragment();
                break;
            case 2131558602:
                ((gob.defensa.prensa.ui.widgets.MenuButton) p6).setChecked(1);
                if (((gob.defensa.prensa.ui.MainActivity) this.getActivity()).getFavorites(this.getActivity()).size() <= 0) {
                    this.favoriteButton.setChecked(0);
                    android.widget.Toast.makeText(this.getActivity(), this.getActivity().getString(2131165258), 0).show();
                } else {
                    ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).showFavoritesFragment();
                }
                break;
            case 2131558603:
                ((gob.defensa.prensa.ui.widgets.MenuButton) p6).setChecked(1);
                ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).showCatalogFragment();
                break;
            case 2131558604:
                ((gob.defensa.prensa.ui.widgets.MenuButton) p6).setChecked(1);
                ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).showBODFragment();
                break;
            case 2131558605:
                ((gob.defensa.prensa.ui.widgets.MenuButton) p6).setChecked(1);
                ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).showInfoFragment();
                break;
            case 2131558606:
                ((gob.defensa.prensa.ui.widgets.MenuButton) p6).setChecked(1);
                ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).showTwitterFragment();
                break;
            case 2131558607:
                ((gob.defensa.prensa.ui.widgets.MenuButton) p6).setChecked(1);
                ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).showSubscriptionFragment();
                break;
            case 2131558608:
                android.content.Intent v0_1 = new android.content.Intent("android.intent.action.VIEW");
                v0_1.setFlags(268435456);
                v0_1.setData(android.net.Uri.parse(this.getString(2131165277)));
                this.startActivity(v0_1);
                break;
        }
        return;
    }

Method android.support.v7.widget.SuggestionsAdapter.getDrawableFromResourceValue() calling method android.net.Uri.parse()


    private android.graphics.drawable.Drawable getDrawableFromResourceValue(String p10)
    {
        if ((p10 != null) && ((!p10.isEmpty()) && (!"0".equals(p10)))) {
            try {
                int v3 = Integer.parseInt(p10);
                String v1 = new StringBuilder().append("android.resource://").append(this.mProviderContext.getPackageName()).append("/").append(v3).toString();
                android.graphics.drawable.Drawable v0 = this.checkIconCache(v1);
            } catch (android.content.res.Resources$NotFoundException v2) {
                android.util.Log.w("SuggestionsAdapter", new StringBuilder().append("Icon resource not found: ").append(p10).toString());
                v0 = 0;
            } catch (android.content.res.Resources$NotFoundException v2) {
                v0 = this.checkIconCache(p10);
                if (v0 == null) {
                    v0 = this.getDrawable(android.net.Uri.parse(p10));
                    this.storeInIconCache(p10, v0);
                }
            }
            if (v0 == null) {
                v0 = android.support.v4.content.ContextCompat.getDrawable(this.mProviderContext, v3);
                this.storeInIconCache(v1, v0);
            }
        } else {
            v0 = 0;
        }
        return v0;
    }

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.google.android.gms.common.images.WebImage.zza() calling method android.net.Uri.parse()


    private static android.net.Uri zza(org.json.JSONObject p2)
    {
        android.net.Uri v0 = 0;
        if (p2.has("url")) {
            try {
                v0 = android.net.Uri.parse(p2.getString("url"));
            } catch (org.json.JSONException v1) {
            }
        }
        return v0;
    }

Method com.google.android.gms.common.data.DataHolder.parseUri() calling method android.net.Uri.parse()


    public final android.net.Uri parseUri(String p2, int p3, int p4)
    {
        android.net.Uri v0_1;
        android.net.Uri v0_0 = this.getString(p2, p3, p4);
        if (v0_0 != null) {
            v0_1 = android.net.Uri.parse(v0_0);
        } else {
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.google.android.gms.auth.api.signin.GoogleSignInAccount.fromJsonString() calling method android.net.Uri.parse()


    public static com.google.android.gms.auth.api.signin.GoogleSignInAccount fromJsonString(String p14)
    {
        com.google.android.gms.auth.api.signin.GoogleSignInAccount v10 = 0;
        if (!android.text.TextUtils.isEmpty(p14)) {
            int v6;
            org.json.JSONObject v11_1 = new org.json.JSONObject(p14);
            com.google.android.gms.auth.api.signin.GoogleSignInAccount v0_9 = v11_1.optString("photoUrl", 0);
            if (android.text.TextUtils.isEmpty(v0_9)) {
                v6 = 0;
            } else {
                v6 = android.net.Uri.parse(v0_9);
            }
            long v12 = Long.parseLong(v11_1.getString("expirationTime"));
            java.util.HashSet v9_1 = new java.util.HashSet();
            String v1_1 = v11_1.getJSONArray("grantedScopes");
            String v2_0 = v1_1.length();
            com.google.android.gms.auth.api.signin.GoogleSignInAccount v0_4 = 0;
            while (v0_4 < v2_0) {
                v9_1.add(new com.google.android.gms.common.api.Scope(v1_1.getString(v0_4)));
                v0_4++;
            }
            v10 = com.google.android.gms.auth.api.signin.GoogleSignInAccount.create(v11_1.optString("id"), v11_1.optString("tokenId", 0), v11_1.optString("email", 0), v11_1.optString("displayName", 0), v11_1.optString("givenName", 0), v11_1.optString("familyName", 0), v6, Long.valueOf(v12), v11_1.getString("obfuscatedIdentifier"), v9_1).setServerAuthCode(v11_1.optString("serverAuthCode", 0));
        }
        return v10;
    }

Method com.google.android.gms.internal.stable.zzg.<clinit>() calling method android.net.Uri.parse()


    static zzg()
    {
        com.google.android.gms.internal.stable.zzg.CONTENT_URI = android.net.Uri.parse("content://com.google.settings/partner");
        return;
    }

Method android.support.v7.widget.SearchView.createIntentFromSuggestion() calling method android.net.Uri.parse()


    private android.content.Intent createIntentFromSuggestion(android.database.Cursor p13, int p14, String p15)
    {
        try {
            String v1 = android.support.v7.widget.SuggestionsAdapter.getColumnString(p13, "suggest_intent_action");
        } catch (RuntimeException v8) {
            try {
                int v11 = p13.getPosition();
            } catch (RuntimeException v9) {
                v11 = -1;
            }
            android.util.Log.w("SearchView", new StringBuilder().append("Search suggestions cursor at row ").append(v11).append(" returned exception.").toString(), v8);
            android.content.Intent v0_12 = 0;
            return v0_12;
        }
        if (v1 == null) {
            v1 = this.mSearchable.getSuggestIntentAction();
        }
        if (v1 == null) {
            v1 = "android.intent.action.SEARCH";
        }
        String v7 = android.support.v7.widget.SuggestionsAdapter.getColumnString(p13, "suggest_intent_data");
        if (v7 == null) {
            v7 = this.mSearchable.getSuggestIntentData();
        }
        if (v7 != null) {
            String v10 = android.support.v7.widget.SuggestionsAdapter.getColumnString(p13, "suggest_intent_data_id");
            if (v10 != null) {
                v7 = new StringBuilder().append(v7).append("/").append(android.net.Uri.encode(v10)).toString();
            }
        }
        android.net.Uri v2;
        if (v7 != null) {
            v2 = android.net.Uri.parse(v7);
        } else {
            v2 = 0;
        }
        v0_12 = this.createIntent(v1, v2, android.support.v7.widget.SuggestionsAdapter.getColumnString(p13, "suggest_intent_extra_data"), android.support.v7.widget.SuggestionsAdapter.getColumnString(p13, "suggest_intent_query"), p14, p15);
        return v0_12;
    }

Method android.support.v4.app.ActivityCompat.getReferrer() calling method android.net.Uri.parse()


    public static android.net.Uri getReferrer(android.app.Activity p5)
    {
        int v1_0;
        if (android.os.Build$VERSION.SDK_INT < 22) {
            android.content.Intent v0 = p5.getIntent();
            v1_0 = ((android.net.Uri) v0.getParcelableExtra("android.intent.extra.REFERRER"));
            if (v1_0 == 0) {
                String v2 = v0.getStringExtra("android.intent.extra.REFERRER_NAME");
                if (v2 == null) {
                    v1_0 = 0;
                } else {
                    v1_0 = android.net.Uri.parse(v2);
                }
            }
        } else {
            v1_0 = p5.getReferrer();
        }
        return v1_0;
    }

Method com.koushikdutta.urlimageviewhelper.ContentUrlDownloader$1.doInBackground() calling method android.net.Uri.parse()


    protected varargs Void doInBackground(Void[] p8)
    {
        try {
            this.val$callback.onDownloadComplete(this.this$0, this.val$context.getContentResolver().openInputStream(android.net.Uri.parse(this.val$url)), 0);
        } catch (Throwable v1) {
            v1.printStackTrace();
        }
        return 0;
    }

Method com.koushikdutta.urlimageviewhelper.ContactContentUrlDownloader$1.doInBackground() calling method android.net.Uri.parse()


    protected varargs Void doInBackground(Void[] p8)
    {
        try {
            this.val$callback.onDownloadComplete(this.this$0, android.provider.ContactsContract$Contacts.openContactPhotoInputStream(this.val$context.getContentResolver(), android.net.Uri.parse(this.val$url)), 0);
        } catch (Throwable v1) {
            v1.printStackTrace();
        }
        return 0;
    }

Method com.google.android.gms.internal.stable.zzi.<clinit>() calling method android.net.Uri.parse()


    static zzi()
    {
        com.google.android.gms.internal.stable.zzi.CONTENT_URI = android.net.Uri.parse("content://com.google.android.gsf.gservices");
        com.google.android.gms.internal.stable.zzi.zzagv = android.net.Uri.parse("content://com.google.android.gsf.gservices/prefix");
        com.google.android.gms.internal.stable.zzi.zzagw = java.util.regex.Pattern.compile("^(1|true|t|on|yes|y)$", 2);
        com.google.android.gms.internal.stable.zzi.zzagx = java.util.regex.Pattern.compile("^(0|false|f|off|no|n)$", 2);
        com.google.android.gms.internal.stable.zzi.zzagy = new java.util.concurrent.atomic.AtomicBoolean();
        com.google.android.gms.internal.stable.zzi.zzagz = new java.util.HashMap();
        com.google.android.gms.internal.stable.zzi.zzaha = new java.util.HashMap();
        com.google.android.gms.internal.stable.zzi.zzahb = new java.util.HashMap();
        com.google.android.gms.internal.stable.zzi.zzahc = new java.util.HashMap();
        String[] v0_16 = new String[0];
        com.google.android.gms.internal.stable.zzi.zzahf = v0_16;
        return;
    }

Method com.google.android.gms.gcm.zzd.zze() calling method android.net.Uri.parse()


    final boolean zze(android.os.Bundle p14)
    {
        android.app.Notification v1_2;
        StringBuilder v4_0 = 0;
        android.app.Notification v0_59 = this.zze(p14, "gcm.n.title");
        if (!android.text.TextUtils.isEmpty(v0_59)) {
            v1_2 = v0_59;
        } else {
            v1_2 = this.zzk.getApplicationInfo().loadLabel(this.zzk.getPackageManager());
        }
        String v2_9;
        String v7 = this.zze(p14, "gcm.n.body");
        String v2_1 = com.google.android.gms.gcm.zzd.zzd(p14, "gcm.n.icon");
        if (android.text.TextUtils.isEmpty(v2_1)) {
            android.app.Notification v0_62 = this.zzk.getApplicationInfo().icon;
            if (v0_62 == null) {
                v0_62 = 17301651;
            }
            v2_9 = v0_62;
        } else {
            int v3_5 = this.zzk.getResources();
            android.app.Notification v0_53 = v3_5.getIdentifier(v2_1, "drawable", this.zzk.getPackageName());
            if (v0_53 == null) {
                android.app.Notification v0_57 = v3_5.getIdentifier(v2_1, "mipmap", this.zzk.getPackageName());
                if (v0_57 == null) {
                    android.util.Log.w("GcmNotification", new StringBuilder((String.valueOf(v2_1).length() + 57)).append("Icon resource ").append(v2_1).append(" not found. Notification will use app icon.").toString());
                } else {
                    v2_9 = v0_57;
                }
            } else {
                v2_9 = v0_53;
            }
        }
        int v3_4;
        String v8 = com.google.android.gms.gcm.zzd.zzd(p14, "gcm.n.color");
        android.app.Notification v0_65 = com.google.android.gms.gcm.zzd.zzd(p14, "gcm.n.sound2");
        if (!android.text.TextUtils.isEmpty(v0_65)) {
            if (("default".equals(v0_65)) || (this.zzk.getResources().getIdentifier(v0_65, "raw", this.zzk.getPackageName()) == 0)) {
                v3_4 = android.media.RingtoneManager.getDefaultUri(2);
            } else {
                int v3_1 = this.zzk.getPackageName();
                v3_4 = android.net.Uri.parse(new StringBuilder(((String.valueOf(v3_1).length() + 24) + String.valueOf(v0_65).length())).append("android.resource://").append(v3_1).append("/raw/").append(v0_65).toString());
            }
        } else {
            v3_4 = 0;
        }
        StringBuilder v5_10;
        StringBuilder v5_12;
        StringBuilder v5_7 = com.google.android.gms.gcm.zzd.zzd(p14, "gcm.n.click_action");
        if (android.text.TextUtils.isEmpty(v5_7)) {
            android.app.Notification v0_9 = this.zzk.getPackageManager().getLaunchIntentForPackage(this.zzk.getPackageName());
            if (v0_9 != null) {
                v5_10 = v0_9;
                android.app.Notification v0_14 = new android.os.Bundle(p14);
                com.google.android.gms.gcm.GcmListenerService.zzd(v0_14);
                v5_10.putExtras(v0_14);
                String v6_4 = v0_14.keySet().iterator();
                while (v6_4.hasNext()) {
                    android.app.Notification v0_55 = ((String) v6_4.next());
                    if ((v0_55.startsWith("gcm.n.")) || (v0_55.startsWith("gcm.notification."))) {
                        v5_10.removeExtra(v0_55);
                    }
                }
                v5_12 = android.app.PendingIntent.getActivity(this.zzk, this.zzm.getAndIncrement(), v5_10, 1073741824);
            } else {
                android.util.Log.w("GcmNotification", "No activity found to launch app");
                v5_12 = 0;
            }
        } else {
            android.app.Notification v0_12 = new android.content.Intent(v5_7);
            v0_12.setPackage(this.zzk.getPackageName());
            v0_12.setFlags(268435456);
            v5_10 = v0_12;
        }
        if ((!com.google.android.gms.common.util.PlatformVersion.isAtLeastO()) || (this.zzk.getApplicationInfo().targetSdkVersion < 26)) {
            android.app.Notification v0_28 = new android.support.v4.app.NotificationCompat$Builder(this.zzk).setAutoCancel(1).setSmallIcon(v2_9);
            if (!android.text.TextUtils.isEmpty(v1_2)) {
                v0_28.setContentTitle(v1_2);
            }
            if (!android.text.TextUtils.isEmpty(v7)) {
                v0_28.setContentText(v7);
            }
            if (!android.text.TextUtils.isEmpty(v8)) {
                v0_28.setColor(android.graphics.Color.parseColor(v8));
            }
            if (v3_4 != 0) {
                v0_28.setSound(v3_4);
            }
            if (v5_12 != null) {
                v0_28.setContentIntent(v5_12);
            }
            android.app.Notification v1_6 = v0_28.build();
        } else {
            String v6_8 = com.google.android.gms.gcm.zzd.zzd(p14, "gcm.n.android_channel_id");
            if (com.google.android.gms.common.util.PlatformVersion.isAtLeastO()) {
                android.app.Notification v0_35 = ((android.app.NotificationManager) this.zzk.getSystemService(android.app.NotificationManager));
                if (!android.text.TextUtils.isEmpty(v6_8)) {
                    if (v0_35.getNotificationChannel(v6_8) == null) {
                        android.util.Log.w("GcmNotification", new StringBuilder((String.valueOf(v6_8).length() + 122)).append("Notification Channel requested (").append(v6_8).append(") has not been created by the app. Manifest configuration, or default, value will be used.").toString());
                    } else {
                        v4_0 = v6_8;
                        android.app.Notification v0_42 = new android.app.Notification$Builder(this.zzk).setAutoCancel(1).setSmallIcon(v2_9);
                        if (!android.text.TextUtils.isEmpty(v1_2)) {
                            v0_42.setContentTitle(v1_2);
                        }
                        if (!android.text.TextUtils.isEmpty(v7)) {
                            v0_42.setContentText(v7);
                            v0_42.setStyle(new android.app.Notification$BigTextStyle().bigText(v7));
                        }
                        if (!android.text.TextUtils.isEmpty(v8)) {
                            v0_42.setColor(android.graphics.Color.parseColor(v8));
                        }
                        if (v3_4 != 0) {
                            v0_42.setSound(v3_4);
                        }
                        if (v5_12 != null) {
                            v0_42.setContentIntent(v5_12);
                        }
                        if (v4_0 != null) {
                            v0_42.setChannelId(v4_0);
                        }
                        v1_6 = v0_42.build();
                        String v2_3 = com.google.android.gms.gcm.zzd.zzd(p14, "gcm.n.tag");
                        if (android.util.Log.isLoggable("GcmNotification", 3)) {
                            android.util.Log.d("GcmNotification", "Showing notification");
                        }
                        android.app.Notification v0_52 = ((android.app.NotificationManager) this.zzk.getSystemService("notification"));
                        if (android.text.TextUtils.isEmpty(v2_3)) {
                            v2_3 = new StringBuilder(37).append("GCM-Notification:").append(android.os.SystemClock.uptimeMillis()).toString();
                        }
                        v0_52.notify(v2_3, 0, v1_6);
                        return 1;
                    }
                }
                if (this.zzl == null) {
                    this.zzl = this.zze().getString("com.google.android.gms.gcm.default_notification_channel_id");
                    if (android.text.TextUtils.isEmpty(this.zzl)) {
                        android.util.Log.w("GcmNotification", "Missing Default Notification Channel metadata in AndroidManifest. Default value will be used.");
                    } else {
                        if (v0_35.getNotificationChannel(this.zzl) == null) {
                            android.util.Log.w("GcmNotification", "Notification Channel set in AndroidManifest.xml has not been created by the app. Default value will be used.");
                        } else {
                            v4_0 = this.zzl;
                        }
                    }
                    if (v0_35.getNotificationChannel("fcm_fallback_notification_channel") == null) {
                        v0_35.createNotificationChannel(new android.app.NotificationChannel("fcm_fallback_notification_channel", this.zzk.getString(com.google.android.gms.gcm.R$string.gcm_fallback_notification_channel_label), 3));
                    }
                    this.zzl = "fcm_fallback_notification_channel";
                    v4_0 = this.zzl;
                } else {
                    v4_0 = this.zzl;
                }
            }
        }
    }

Method com.google.android.gms.dynamite.DynamiteModule.getQueryUri() calling method android.net.Uri.parse()


    public static android.net.Uri getQueryUri(String p3, boolean p4)
    {
        android.net.Uri v0_0;
        if (!p4) {
            v0_0 = "api";
        } else {
            v0_0 = "api_force_staging";
        }
        return android.net.Uri.parse(new StringBuilder(((String.valueOf(v0_0).length() + 42) + String.valueOf(p3).length())).append("content://com.google.android.gms.chimera/").append(v0_0).append("/").append(p3).toString());
    }

Method com.google.android.gms.common.internal.GmsIntents.getPlayStoreUri() calling method android.net.Uri.parse()


    public static android.net.Uri getPlayStoreUri(String p2)
    {
        return android.net.Uri.parse("https://play.google.com/store/apps/details").buildUpon().appendQueryParameter("id", p2).build();
    }

Method com.google.android.gms.common.internal.GmsIntents.createShowProfileIntent() calling method android.net.Uri.parse()


    public static android.content.Intent createShowProfileIntent(android.content.Context p3, String p4)
    {
        Object[] v1_1 = new Object[1];
        v1_1[0] = p4;
        return com.google.android.gms.common.internal.GmsIntents.zza(p3, android.net.Uri.parse(String.format("https://plus.google.com/%s/about", v1_1)));
    }

Method com.google.android.gms.common.internal.GmsIntents.createPlayStoreLightPurchaseFlowIntent() calling method android.net.Uri.parse()


    public static android.content.Intent createPlayStoreLightPurchaseFlowIntent(android.content.Context p6, String p7, String p8)
    {
        android.content.Intent v0_2 = new android.content.Intent("com.android.vending.billing.PURCHASE");
        v0_2.addCategory("android.intent.category.DEFAULT");
        v0_2.setPackage("com.android.vending");
        if (!android.text.TextUtils.isEmpty(p7)) {
            v0_2.putExtra("authAccount", p7);
        }
        v0_2.putExtra("backend", 3);
        v0_2.putExtra("document_type", 1);
        v0_2.putExtra("full_docid", p8);
        v0_2.putExtra("backend_docid", p8);
        v0_2.putExtra("offer_type", 1);
        if (!com.google.android.gms.common.internal.GmsIntents.isIntentResolvable(p6.getPackageManager(), v0_2)) {
            v0_2 = new android.content.Intent("android.intent.action.VIEW");
            Object[] v3_1 = new Object[2];
            v3_1[0] = p8;
            v3_1[1] = Integer.valueOf(1);
            v0_2.setData(android.net.Uri.parse(String.format(java.util.Locale.US, "https://play.google.com/store/apps/details?id=%1$s&rdid=%1$s&rdot=%2$d", v3_1)));
            v0_2.setPackage("com.android.vending");
            v0_2.putExtra("use_direct_purchase", 1);
        }
        return v0_2;
    }

Method com.google.android.gms.common.internal.GmsIntents.createPlayStoreIntent() calling method android.net.Uri.parse()


    public static android.content.Intent createPlayStoreIntent(String p3, String p4)
    {
        android.content.Intent v0_1 = new android.content.Intent("android.intent.action.VIEW");
        int v1_1 = android.net.Uri.parse("market://details").buildUpon().appendQueryParameter("id", p3);
        if (!android.text.TextUtils.isEmpty(p4)) {
            v1_1.appendQueryParameter("pcampaignid", p4);
        }
        v0_1.setData(v1_1.build());
        v0_1.setPackage("com.android.vending");
        v0_1.addFlags(524288);
        return v0_1;
    }

Method com.google.android.gms.common.internal.GmsIntents.createPlayStoreGamesIntent() calling method android.net.Uri.parse()


    public static android.content.Intent createPlayStoreGamesIntent(android.content.Context p4)
    {
        int v0_3;
        int v1_1 = new android.content.Intent("android.intent.action.VIEW");
        v1_1.setData(android.net.Uri.parse("http://play.google.com/store/apps/category/GAME"));
        v1_1.addFlags(524288);
        v1_1.setPackage("com.android.vending");
        if (p4.getPackageManager().resolveActivity(v1_1, 65536) != null) {
            v0_3 = v1_1;
        } else {
            v0_3 = new android.content.Intent(v1_1.getAction(), v1_1.getData());
            v0_3.setFlags(v1_1.getFlags());
        }
        return v0_3;
    }

Method com.google.android.gms.common.internal.GmsIntents.<clinit>() calling method android.net.Uri.parse()


    static GmsIntents()
    {
        android.net.Uri v0_3 = android.net.Uri.parse("https://plus.google.com/");
        com.google.android.gms.common.internal.GmsIntents.zztz = v0_3;
        com.google.android.gms.common.internal.GmsIntents.zzua = v0_3.buildUpon().appendPath("circles").appendPath("find").build();
        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 v19_17;
        if (this.mDescription == null) {
            String v12 = this.getString("android.media.metadata.MEDIA_ID");
            android.support.v4.media.MediaDescriptionCompat v0_4 = new CharSequence[3];
            CharSequence[] v16 = v0_4;
            CharSequence v8 = 0;
            android.net.Uri v9 = 0;
            CharSequence v6 = this.getText("android.media.metadata.DISPLAY_TITLE");
            if (android.text.TextUtils.isEmpty(v6)) {
                int v17 = 0;
                int v10 = 0;
                while ((v17 < v16.length) && (v10 < android.support.v4.media.MediaMetadataCompat.PREFERRED_DESCRIPTION_ORDER.length)) {
                    int v11 = (v10 + 1);
                    String v15_0 = this.getText(android.support.v4.media.MediaMetadataCompat.PREFERRED_DESCRIPTION_ORDER[v10]);
                    if (!android.text.TextUtils.isEmpty(v15_0)) {
                        int v18 = (v17 + 1);
                        v16[v17] = v15_0;
                        v17 = v18;
                    }
                    v10 = v11;
                }
            } else {
                v16[0] = v6;
                v16[1] = this.getText("android.media.metadata.DISPLAY_SUBTITLE");
                v16[2] = this.getText("android.media.metadata.DISPLAY_DESCRIPTION");
            }
            int v7_0 = 0;
            while (v7_0 < android.support.v4.media.MediaMetadataCompat.PREFERRED_BITMAP_ORDER.length) {
                String v15_1 = this.getBitmap(android.support.v4.media.MediaMetadataCompat.PREFERRED_BITMAP_ORDER[v7_0]);
                if (v15_1 == null) {
                    v7_0++;
                } else {
                    v8 = v15_1;
                    break;
                }
            }
            int v7_1 = 0;
            while (v7_1 < android.support.v4.media.MediaMetadataCompat.PREFERRED_URI_ORDER.length) {
                String v15_2 = this.getString(android.support.v4.media.MediaMetadataCompat.PREFERRED_URI_ORDER[v7_1]);
                if (android.text.TextUtils.isEmpty(v15_2)) {
                    v7_1++;
                } else {
                    v9 = android.net.Uri.parse(v15_2);
                    break;
                }
            }
            android.net.Uri v13 = 0;
            String v14 = this.getString("android.media.metadata.MEDIA_URI");
            if (!android.text.TextUtils.isEmpty(v14)) {
                v13 = android.net.Uri.parse(v14);
            }
            android.support.v4.media.MediaDescriptionCompat$Builder v4_1 = new android.support.v4.media.MediaDescriptionCompat$Builder();
            v4_1.setMediaId(v12);
            v4_1.setTitle(v16[0]);
            v4_1.setSubtitle(v16[1]);
            v4_1.setDescription(v16[2]);
            v4_1.setIconBitmap(v8);
            v4_1.setIconUri(v9);
            v4_1.setMediaUri(v13);
            android.os.Bundle v5_1 = new android.os.Bundle();
            if (this.mBundle.containsKey("android.media.metadata.BT_FOLDER_TYPE")) {
                v5_1.putLong("android.media.extra.BT_FOLDER_TYPE", this.getLong("android.media.metadata.BT_FOLDER_TYPE"));
            }
            if (this.mBundle.containsKey("android.media.metadata.DOWNLOAD_STATUS")) {
                v5_1.putLong("android.media.extra.DOWNLOAD_STATUS", this.getLong("android.media.metadata.DOWNLOAD_STATUS"));
            }
            if (!v5_1.isEmpty()) {
                v4_1.setExtras(v5_1);
            }
            this.mDescription = v4_1.build();
            v19_17 = this.mDescription;
        } else {
            v19_17 = this.mDescription;
        }
        return v19_17;
    }

Method android.support.v4.app.RemoteInput.getDataResultsFromIntent() calling method android.net.Uri.parse()


    public static java.util.Map getDataResultsFromIntent(android.content.Intent p10, String p11)
    {
        java.util.Map v7 = 0;
        if (android.os.Build$VERSION.SDK_INT < 26) {
            if (android.os.Build$VERSION.SDK_INT < 16) {
                android.util.Log.w("RemoteInput", "RemoteInput is only supported from API Level 16");
            } else {
                android.content.Intent v1 = android.support.v4.app.RemoteInput.getClipDataIntentFromIntent(p10);
                if (v1 != null) {
                    java.util.Map v5_1 = new java.util.HashMap();
                    boolean v8_2 = v1.getExtras().keySet().iterator();
                    while (v8_2.hasNext()) {
                        String v3_1 = ((String) v8_2.next());
                        if (v3_1.startsWith("android.remoteinput.dataTypeResultsData")) {
                            String v4 = v3_1.substring("android.remoteinput.dataTypeResultsData".length());
                            if (!v4.isEmpty()) {
                                String v6 = v1.getBundleExtra(v3_1).getString(p11);
                                if ((v6 != null) && (!v6.isEmpty())) {
                                    v5_1.put(v4, android.net.Uri.parse(v6));
                                }
                            }
                        }
                    }
                    if (v5_1.isEmpty()) {
                        v5_1 = 0;
                    }
                    v7 = v5_1;
                }
            }
        } else {
            v7 = android.app.RemoteInput.getDataResultsFromIntent(p10, p11);
        }
        return v7;
    }

Method gob.defensa.prensa.BaseFragmentActivity.downloadFileToSd() calling method android.app.DownloadManager$Request.setAllowedNetworkTypes()


    public void downloadFileToSd(String p7, String p8)
    {
        this.createFolderInSd();
        this.fileName = p8;
        this.downloadManager = ((android.app.DownloadManager) this.getSystemService("download"));
        android.app.DownloadManager$Request v2_0 = new android.app.DownloadManager$Request(android.net.Uri.parse(p7));
        v2_0.setAllowedNetworkTypes(3);
        v2_0.setAllowedOverRoaming(0);
        v2_0.setTitle(this.getString(2131165247));
        v2_0.setDescription(p8);
        v2_0.setDestinationUri(android.net.Uri.fromFile(new java.io.File(new StringBuilder().append(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_DOWNLOADS)).append(java.io.File.separator).append("/defensa/").append(java.io.File.separator).append(p8).toString())));
        this.downloadReference = this.downloadManager.enqueue(v2_0);
        return;
    }

Method gob.defensa.prensa.helpers.RemoteFacade.sendSubscription() calling method org.apache.http.client.HttpClient.execute()


    public static String sendSubscription(android.content.Context p17, String p18, String p19)
    {
        org.apache.http.impl.client.DefaultHttpClient v4_1 = new org.apache.http.impl.client.DefaultHttpClient();
        org.apache.http.client.methods.HttpPost v5_1 = new org.apache.http.client.methods.HttpPost("http://213.134.53.72:80/pdefensa/api/proxy/sendSuscription");
        java.util.ArrayList v10_1 = new java.util.ArrayList();
        v10_1.add(new org.apache.http.message.BasicNameValuePair("token", p18));
        if (p19 != null) {
            v10_1.add(new org.apache.http.message.BasicNameValuePair("subscriptions", p19));
        }
        try {
            v5_1.setEntity(new org.apache.http.client.entity.UrlEncodedFormEntity(v10_1));
            try {
                java.io.BufferedReader v1_1 = new java.io.BufferedReader(new java.io.InputStreamReader(v4_1.execute(v5_1).getEntity().getContent()));
                StringBuilder v11_1 = new StringBuilder();
            } catch (org.apache.http.client.ClientProtocolException v3) {
                System.out.println(new StringBuilder().append("First Exception caz of HttpResponese :").append(v3).toString());
                v3.printStackTrace();
                String v14_5 = 0;
                return v14_5;
            } catch (java.io.IOException v9) {
                System.out.println(new StringBuilder().append("Second Exception caz of HttpResponse :").append(v9).toString());
                v9.printStackTrace();
            }
            while(true) {
                String v2 = v1_1.readLine();
                if (v2 == null) {
                    break;
                }
                v11_1.append(v2);
            }
            v14_5 = v11_1.toString();
            return v14_5;
        } catch (java.io.UnsupportedEncodingException v12) {
            System.out.println(new StringBuilder().append("An Exception given because of UrlEncodedFormEntity argument :").append(v12).toString());
            v12.printStackTrace();
        }
    }

Method gob.defensa.prensa.helpers.RemoteFacade.registerDevice() calling method org.apache.http.client.HttpClient.execute()


    public static String registerDevice(android.content.Context p17, String p18)
    {
        org.apache.http.impl.client.DefaultHttpClient v4_1 = new org.apache.http.impl.client.DefaultHttpClient();
        org.apache.http.client.methods.HttpPost v5_1 = new org.apache.http.client.methods.HttpPost("http://213.134.53.72:80/pdefensa/api/proxy/registerDevice");
        java.util.ArrayList v10_1 = new java.util.ArrayList();
        v10_1.add(new org.apache.http.message.BasicNameValuePair("token", p18));
        v10_1.add(new org.apache.http.message.BasicNameValuePair("type", "1"));
        try {
            v5_1.setEntity(new org.apache.http.client.entity.UrlEncodedFormEntity(v10_1));
            try {
                java.io.BufferedReader v1_1 = new java.io.BufferedReader(new java.io.InputStreamReader(v4_1.execute(v5_1).getEntity().getContent()));
                StringBuilder v11_1 = new StringBuilder();
            } catch (org.apache.http.client.ClientProtocolException v3) {
                System.out.println(new StringBuilder().append("First Exception caz of HttpResponese :").append(v3).toString());
                v3.printStackTrace();
                String v14_5 = 0;
                return v14_5;
            } catch (java.io.IOException v9) {
                System.out.println(new StringBuilder().append("Second Exception caz of HttpResponse :").append(v9).toString());
                v9.printStackTrace();
            }
            while(true) {
                String v2 = v1_1.readLine();
                if (v2 == null) {
                    break;
                }
                v11_1.append(v2);
            }
            v14_5 = v11_1.toString();
            return v14_5;
        } catch (java.io.UnsupportedEncodingException v12) {
            System.out.println(new StringBuilder().append("An Exception given because of UrlEncodedFormEntity argument :").append(v12).toString());
            v12.printStackTrace();
        }
    }

Method gob.defensa.prensa.helpers.RemoteFacade.pushCategories() calling method org.apache.http.client.HttpClient.execute()


    public static String pushCategories(android.content.Context p17, String p18)
    {
        org.apache.http.impl.client.DefaultHttpClient v4_1 = new org.apache.http.impl.client.DefaultHttpClient();
        org.apache.http.client.methods.HttpPost v5_1 = new org.apache.http.client.methods.HttpPost("http://213.134.53.72:80/pdefensa/api/proxy/registerDevice");
        java.util.ArrayList v10_1 = new java.util.ArrayList();
        v10_1.add(new org.apache.http.message.BasicNameValuePair("token", p18));
        try {
            v5_1.setEntity(new org.apache.http.client.entity.UrlEncodedFormEntity(v10_1));
            try {
                java.io.BufferedReader v1_1 = new java.io.BufferedReader(new java.io.InputStreamReader(v4_1.execute(v5_1).getEntity().getContent()));
                StringBuilder v11_1 = new StringBuilder();
            } catch (org.apache.http.client.ClientProtocolException v3) {
                System.out.println(new StringBuilder().append("First Exception caz of HttpResponese :").append(v3).toString());
                v3.printStackTrace();
                String v14_3 = 0;
                return v14_3;
            } catch (java.io.IOException v9) {
                System.out.println(new StringBuilder().append("Second Exception caz of HttpResponse :").append(v9).toString());
                v9.printStackTrace();
            }
            while(true) {
                String v2 = v1_1.readLine();
                if (v2 == null) {
                    break;
                }
                v11_1.append(v2);
            }
            v14_3 = v11_1.toString();
            return v14_3;
        } catch (java.io.UnsupportedEncodingException v12) {
            System.out.println(new StringBuilder().append("An Exception given because of UrlEncodedFormEntity argument :").append(v12).toString());
            v12.printStackTrace();
        }
    }

Method gob.defensa.prensa.ui.fragments.WebFragment.onCreateView() calling method android.webkit.WebView.setWebViewClient()


    public android.view.View onCreateView(android.view.LayoutInflater p7, android.view.ViewGroup p8, android.os.Bundle p9)
    {
        if (this.root != null) {
            android.view.ViewGroup v1_1 = ((android.view.ViewGroup) this.root.getParent());
            if (v1_1 != null) {
                v1_1.removeView(this.root);
            }
        }
        try {
            this.root = p7.inflate(2130903118, p8, 0);
        } catch (android.view.InflateException v0) {
            v0.printStackTrace();
        }
        this.mUrl = this.getArguments().getString("url");
        ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).changeNavigateButtonToBack(this.getString(2131165241));
        this.loading = ((android.widget.ProgressBar) this.root.findViewById(2131558554));
        this.webView = ((android.webkit.WebView) this.root.findViewById(2131558641));
        this.webView.setBackgroundColor(0);
        this.webView.getSettings().setJavaScriptEnabled(1);
        this.webView.getSettings().setLoadWithOverviewMode(1);
        this.webView.getSettings().setUseWideViewPort(1);
        this.webView.getSettings().setDomStorageEnabled(1);
        this.webView.setWebViewClient(new gob.defensa.prensa.ui.fragments.WebFragment$1(this));
        this.webView.setWebChromeClient(new android.webkit.WebChromeClient());
        this.webView.loadUrl(this.mUrl);
        return this.root;
    }

Method gob.defensa.prensa.ui.fragments.WebFragment.onCreateView() calling method android.webkit.WebView.loadUrl()


    public android.view.View onCreateView(android.view.LayoutInflater p7, android.view.ViewGroup p8, android.os.Bundle p9)
    {
        if (this.root != null) {
            android.view.ViewGroup v1_1 = ((android.view.ViewGroup) this.root.getParent());
            if (v1_1 != null) {
                v1_1.removeView(this.root);
            }
        }
        try {
            this.root = p7.inflate(2130903118, p8, 0);
        } catch (android.view.InflateException v0) {
            v0.printStackTrace();
        }
        this.mUrl = this.getArguments().getString("url");
        ((gob.defensa.prensa.ui.MainActivity) this.getActivity()).changeNavigateButtonToBack(this.getString(2131165241));
        this.loading = ((android.widget.ProgressBar) this.root.findViewById(2131558554));
        this.webView = ((android.webkit.WebView) this.root.findViewById(2131558641));
        this.webView.setBackgroundColor(0);
        this.webView.getSettings().setJavaScriptEnabled(1);
        this.webView.getSettings().setLoadWithOverviewMode(1);
        this.webView.getSettings().setUseWideViewPort(1);
        this.webView.getSettings().setDomStorageEnabled(1);
        this.webView.setWebViewClient(new gob.defensa.prensa.ui.fragments.WebFragment$1(this));
        this.webView.setWebChromeClient(new android.webkit.WebChromeClient());
        this.webView.loadUrl(this.mUrl);
        return this.root;
    }

Method gob.defensa.prensa.ui.fragments.WebFragment$1.shouldOverrideUrlLoading() calling method android.webkit.WebView.loadUrl()


    public boolean shouldOverrideUrlLoading(android.webkit.WebView p2, String p3)
    {
        p2.loadUrl(p3);
        return 1;
    }