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']' [[('Lair/com/tragsatec/mobile/IEPNB/WebViewActivity;', 'getWebView', '()V'), ('Landroid/webkit/WebSettings;', 'setJavaScriptEnabled', '(Z)V')]]

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

Method air.com.tragsatec.mobile.IEPNB.WebViewActivity.getWebView():


    public void getWebView()
    {
        this.mWebView = ((android.webkit.WebView) this.findViewById(2131230990));
        this.mWebView.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.WebViewActivity$HelloWebViewClient(this, 0));
        this.mWebView.getSettings().setJavaScriptEnabled(1);
        this.mWebView.loadUrl(this.URL);
        return;
    }

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

Method air.com.tragsatec.mobile.IEPNB.MapActivity.goInfoCapaPrev() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    public void goInfoCapaPrev(android.view.View p10)
    {
        try {
            this.actualInfoCapa = (this.actualInfoCapa - 1);
        } catch (String v10_3) {
            v10_3.printStackTrace();
            return;
        }
        if (this.actualInfoCapa < (this.maxInfoCapa - 1)) {
            this.imgSiguiente.setVisibility(0);
        }
        if (this.actualInfoCapa == 0) {
            this.imgAnterior.setVisibility(8);
        }
        String v10_7 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v3 = v10_7.getLayername();
        String v2 = v10_7.getTitle();
        String v4 = v10_7.getUrl();
        this.tvTitleCapaInfo.setText(v2);
        String v10_9 = this.leeGetinfoLayer(v2, v3, v4, this.dblxInfo, this.dblyInfo);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v10_9);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.MapActivity.goInfoCapaNext() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    public void goInfoCapaNext(android.view.View p10)
    {
        try {
            this.actualInfoCapa = (this.actualInfoCapa + 1);
        } catch (String v10_2) {
            v10_2.printStackTrace();
            return;
        }
        if (this.actualInfoCapa != 0) {
            this.imgAnterior.setVisibility(0);
        }
        if (this.actualInfoCapa == (this.maxInfoCapa - 1)) {
            this.imgSiguiente.setVisibility(8);
        }
        String v10_6 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v3 = v10_6.getLayername();
        String v2 = v10_6.getTitle();
        String v4 = v10_6.getUrl();
        this.tvTitleCapaInfo.setText(v2);
        String v10_8 = this.leeGetinfoLayer(v2, v3, v4, this.dblxInfo, this.dblyInfo);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v10_8);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.MapActivity.addTabCapas() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    private void addTabCapas(double p12, double p14)
    {
        this.dblxInfo = p12;
        this.dblyInfo = p14;
        this.maxInfoCapa = 0;
        this.actualInfoCapa = 0;
        int v1_6 = this.readLayersFromFileLocal();
        this.listaCapasCargadas = new java.util.ArrayList();
        try {
            int v2_1 = new org.json.JSONArray(v1_6);
            int v1_0 = 0;
        } catch (Exception) {
            return;
        }
        while (v1_0 < v2_1.length()) {
            air.com.tragsatec.mobile.IEPNB.MapActivity v3_3 = new air.com.tragsatec.mobile.IEPNB.model.ItemLayer();
            v3_3.setId(v2_1.getJSONObject(v1_0).getString("layerid"));
            v3_3.setTitle(v2_1.getJSONObject(v1_0).getString("title"));
            v3_3.setIcono(v2_1.getJSONObject(v1_0).getString("imagename"));
            v3_3.setAlpha(v2_1.getJSONObject(v1_0).getString("alpha"));
            v3_3.setVisible(v2_1.getJSONObject(v1_0).getString("visible"));
            v3_3.setUrl(v2_1.getJSONObject(v1_0).getString("url"));
            v3_3.setSrs(v2_1.getJSONObject(v1_0).getString("srs"));
            v3_3.setLayername(v2_1.getJSONObject(v1_0).getString("layername"));
            v3_3.setLegend(v2_1.getJSONObject(v1_0).getString("legend"));
            v3_3.setLayer(((com.esri.android.map.ogc.WMSLayer) this.map.getLayerByURL(v2_1.getJSONObject(v1_0).getString("url"))));
            v3_3.setMap(this.map);
            if (v3_3.getVisible().equalsIgnoreCase("SI")) {
                this.listaCapasCargadas.add(v3_3);
            }
            v1_0++;
        }
        this.maxInfoCapa = this.listaCapasCargadas.size();
        if (this.maxInfoCapa > 1) {
            this.imgSiguiente.setVisibility(0);
        }
        android.widget.TextView v0_3 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v5_4 = v0_3.getLayername();
        String v4_10 = v0_3.getTitle();
        String v6_1 = v0_3.getUrl();
        this.tvTitleCapaInfo.setText(v4_10);
        String v12_1 = this.leeGetinfoLayer(v4_10, v5_4, v6_1, p12, p14);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v12_1);
        return;
    }

Method com.esri.android.oauth.OAuthView.a() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    private void a(android.content.Context p4, android.util.AttributeSet p5)
    {
        if (p5 != null) {
            int v0_0 = 0;
            while (v0_0 < p5.getAttributeCount()) {
                if ("clientid".compareToIgnoreCase(p5.getAttributeName(v0_0)) != 0) {
                    if ("portalUrl".compareToIgnoreCase(p5.getAttributeName(v0_0)) == 0) {
                        this.o = p5.getAttributeValue(v0_0);
                    }
                } else {
                    this.n = p5.getAttributeValue(v0_0);
                }
                v0_0++;
            }
        }
        if (android.text.TextUtils.isEmpty(this.n)) {
            throw new com.esri.core.io.EsriServiceException("OAuthView requires an App ID.");
        } else {
            if (android.text.TextUtils.isEmpty(this.o)) {
                throw new com.esri.core.io.EsriServiceException("OAuthView requires a portal URL.");
            } else {
                this.getSettings().setJavaScriptEnabled(1);
                this.getSettings().setBuiltInZoomControls(1);
                this.setFocusable(1);
                this.setWebViewClient(new ark>com.esri.android.oauth.OAuthViewark>$1(this, p4));
                this.a(this.a());
                return;
            }
        }
    }

Method air.com.tragsatec.mobile.IEPNB.WebViewActivity.getWebView() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    public void getWebView()
    {
        this.mWebView = ((android.webkit.WebView) this.findViewById(2131230990));
        this.mWebView.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.WebViewActivity$HelloWebViewClient(this, 0));
        this.mWebView.getSettings().setJavaScriptEnabled(1);
        this.mWebView.loadUrl(this.URL);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.IndicadoresActivity.onCreate() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    protected void onCreate(android.os.Bundle p3)
    {
        super.onCreate(p3);
        this.setContentView(2131361825);
        this.tf = android.graphics.Typeface.createFromAsset(this.getAssets(), this.getString(2131492918));
        android.webkit.WebView v3_4 = ((android.webkit.WebView) this.findViewById(2131230997));
        String v0_0 = v3_4.getSettings();
        v0_0.setJavaScriptEnabled(1);
        v0_0.setBuiltInZoomControls(1);
        v0_0.setSupportZoom(1);
        v0_0.setUseWideViewPort(1);
        v0_0.setLoadWithOverviewMode(1);
        v3_4.setInitialScale(1);
        v3_4.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        v3_4.loadUrl("https://www.mapama.gob.es/es/biodiversidad/temas/inventarios-nacionales/inventario-espanol-patrimonio-natural-biodiv/sistema-indicadores/Indicadores_estado.aspx");
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.FullDescriActivity.onCreate() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    protected void onCreate(android.os.Bundle p8)
    {
        super.onCreate(p8);
        this.setContentView(2131361823);
        this.tf = android.graphics.Typeface.createFromAsset(this.getAssets(), this.getString(2131492918));
        this.idLayer = this.getIntent().getStringExtra("ID_LAYER");
        this.tituloLayer = this.getIntent().getStringExtra("TITLE_LAYER");
        this.icoLayer = this.getIntent().getStringExtra("ICO_LAYER");
        String v8_10 = ((android.widget.ImageView) this.findViewById(2131230816));
        String v0_5 = ((android.widget.TextView) this.findViewById(2131230953));
        android.widget.TextView v1_2 = ((android.widget.TextView) this.findViewById(2131230952));
        android.webkit.WebView v2_2 = ((android.webkit.WebView) this.findViewById(2131230996));
        v0_5.setTypeface(this.tf);
        v1_2.setTypeface(this.tf);
        v8_10.setImageResource(this.getResources().getIdentifier(this.icoLayer, "drawable", this.getPackageName()));
        v0_5.setText(this.tituloLayer);
        v1_2.setText(this.getString(2131492938));
        v2_2.getSettings().setJavaScriptEnabled(1);
        String v8_17 = new StringBuilder();
        v8_17.append("file:///android_asset/html/details");
        v8_17.append(this.idLayer);
        v8_17.append(".html");
        v2_2.loadUrl(v8_17.toString());
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.AcercaDeActivity.onCreate() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    protected void onCreate(android.os.Bundle p3)
    {
        super.onCreate(p3);
        this.setContentView(2131361819);
        android.webkit.WebView v3_4 = ((android.webkit.WebView) this.findViewById(2131230995));
        v3_4.getSettings().setJavaScriptEnabled(1);
        v3_4.loadUrl("file:///android_asset/html/acerca-de.html");
        return;
    }

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

Couldn't retrieve source code

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


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

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


    private android.content.Intent createIntentFromSuggestion(android.database.Cursor p9, int p10, String p11)
    {
        try {
            android.support.v7.widget.SearchView v1_6 = android.support.v7.widget.SuggestionsAdapter.getColumnString(p9, "suggest_intent_action");
        } catch (android.content.Intent v10_1) {
            try {
                String v9_1 = p9.getPosition();
            } catch (RuntimeException) {
                v9_1 = -1;
            }
            android.support.v7.widget.SearchView v1_9 = new StringBuilder();
            v1_9.append("Search suggestions cursor at row ");
            v1_9.append(v9_1);
            v1_9.append(" returned exception.");
            android.util.Log.w("SearchView", v1_9.toString(), v10_1);
            return 0;
        }
        if (v1_6 == null) {
            v1_6 = this.mSearchable.getSuggestIntentAction();
        }
        if (v1_6 == null) {
            v1_6 = "android.intent.action.SEARCH";
        }
        String v2_0 = v1_6;
        android.support.v7.widget.SearchView v1_2 = android.support.v7.widget.SuggestionsAdapter.getColumnString(p9, "suggest_intent_data");
        if (v1_2 == null) {
            v1_2 = this.mSearchable.getSuggestIntentData();
        }
        if (v1_2 != null) {
            android.net.Uri v3_1 = android.support.v7.widget.SuggestionsAdapter.getColumnString(p9, "suggest_intent_data_id");
            if (v3_1 != null) {
                String v4_1 = new StringBuilder();
                v4_1.append(v1_2);
                v4_1.append("/");
                v4_1.append(android.net.Uri.encode(v3_1));
                v1_2 = v4_1.toString();
            }
        }
        android.net.Uri v3_2;
        if (v1_2 != null) {
            v3_2 = android.net.Uri.parse(v1_2);
        } else {
            v3_2 = 0;
        }
        return this.createIntent(v2_0, v3_2, android.support.v7.widget.SuggestionsAdapter.getColumnString(p9, "suggest_intent_extra_data"), android.support.v7.widget.SuggestionsAdapter.getColumnString(p9, "suggest_intent_query"), p10, p11);
    }

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


    public static android.net.Uri getReferrer(android.app.Activity p2)
    {
        if (android.os.Build$VERSION.SDK_INT < 22) {
            int v2_5 = p2.getIntent();
            String v0_4 = ((android.net.Uri) v2_5.getParcelableExtra("android.intent.extra.REFERRER"));
            if (v0_4 == null) {
                int v2_1 = v2_5.getStringExtra("android.intent.extra.REFERRER_NAME");
                if (v2_1 == 0) {
                    return 0;
                } else {
                    return android.net.Uri.parse(v2_1);
                }
            } else {
                return v0_4;
            }
        } else {
            return p2.getReferrer();
        }
    }

Method com.esri.android.oauth.OAuthView$1.shouldOverrideUrlLoading() calling method android.net.Uri.parse()


    public boolean shouldOverrideUrlLoading(android.webkit.WebView p13, String p14)
    {
        try {
            android.content.Intent v0_10 = android.net.Uri.parse(p14);
            int v1_13 = v0_10.getScheme();
        } catch (android.content.Context v14_8) {
            if (com.esri.android.oauth.OAuthView.a(this.b) != null) {
                com.esri.android.oauth.OAuthView.a(this.b).onError(v14_8);
            }
            return 0;
        }
        if (v1_13 != 0) {
            if (!v1_13.startsWith("http")) {
                if (v1_13.startsWith("mailto")) {
                    android.content.Intent v0_11 = this.b.getContext().getApplicationContext().getPackageName();
                    int v1_12 = this.a("oauthview_email_subject", "Technical support", v0_11);
                    String v2_6 = this.a("oauthview_email_body", "What\'s your problem?", v0_11);
                    android.content.Intent v0_12 = this.a("oauthview_action_chooser_title", "Sending to", v0_11);
                    android.content.Intent v4_7 = new java.net.URI(p14.substring("mailto:".length()));
                    android.content.Context v14_11 = new String[] {"support@esri.com"});
                    if (v4_7.getPath() != null) {
                        v14_11 = v4_7.getPath().split(",");
                    }
                    String[] v8_1;
                    android.content.Intent v4_8 = v4_7.getQuery();
                    String v5_4 = 0;
                    if (v4_8 == null) {
                        v8_1 = 0;
                    } else {
                        android.content.Intent v4_9 = v4_8.split("&");
                        String v6_1 = v4_9.length;
                        String[] v7_1 = 0;
                        v8_1 = 0;
                        String v5_0 = v2_6;
                        String v2_0 = v1_12;
                        int v1_0 = 0;
                        while (v1_0 < v6_1) {
                            String v9_3 = v4_9[v1_0].split("=");
                            if (v9_3.length == 2) {
                                if (!"subject".equalsIgnoreCase(v9_3[0])) {
                                    if (!"body".equalsIgnoreCase(v9_3[0])) {
                                        if (!"cc".equalsIgnoreCase(v9_3[0])) {
                                            if ("bcc".equalsIgnoreCase(v9_3[0])) {
                                                v8_1 = v9_3[1].split(",");
                                            }
                                        } else {
                                            v7_1 = v9_3[1].split(",");
                                        }
                                    } else {
                                        v5_0 = v9_3[1];
                                    }
                                } else {
                                    v2_0 = v9_3[1];
                                }
                            } else {
                            }
                            v1_0++;
                        }
                        v1_12 = v2_0;
                        v2_6 = v5_0;
                        v5_4 = v7_1;
                    }
                    android.content.Intent v4_11 = new android.content.Intent("android.intent.action.SEND");
                    v4_11.setType("text/plain");
                    v4_11.putExtra("android.intent.extra.EMAIL", v14_11);
                    v4_11.putExtra("android.intent.extra.SUBJECT", v1_12);
                    v4_11.putExtra("android.intent.extra.TEXT", v2_6);
                    if (v5_4 != null) {
                        v4_11.putExtra("android.intent.extra.CC", v5_4);
                    }
                    if (v8_1 != null) {
                        v4_11.putExtra("android.intent.extra.BCC", v8_1);
                    }
                    this.b.getContext().startActivity(android.content.Intent.createChooser(v4_11, v0_12));
                }
            } else {
                android.content.Context v14_2 = v0_10.getQueryParameter("error");
                int v1_2 = v0_10.getQueryParameter("error_description");
                android.content.Intent v0_2 = v0_10.getQueryParameter("code");
                if (!android.text.TextUtils.isEmpty(v14_2)) {
                    String v2_3 = new StringBuilder();
                    v2_3.append("Unable to retrieve authcode due to: ");
                    if (android.text.TextUtils.isEmpty(v1_2)) {
                        v1_2 = "unknown reason";
                    }
                    v2_3.append(v1_2);
                    v2_3.append(".");
                    android.content.Context v14_5 = new com.esri.core.io.EsriServiceException(v2_3.toString());
                    if (com.esri.android.oauth.OAuthView.a(this.b) == null) {
                        throw v14_5;
                    } else {
                        com.esri.android.oauth.OAuthView.a(this.b).onError(v14_5);
                    }
                }
                if (!android.text.TextUtils.isEmpty(v0_2)) {
                    com.esri.core.internal.tasks.e.c.execute(new com.esri.android.oauth.OAuthView$1$1(this, v0_2));
                } else {
                    return 0;
                }
            }
            return 1;
        } else {
            return 0;
        }
    }

Method com.esri.android.map.popup.ArcGISMediaFullScreenPageAdapter$a$2$1.onSingleTapConfirmed() calling method android.net.Uri.parse()


    public boolean onSingleTapConfirmed(android.view.MotionEvent p4)
    {
        android.content.Context v4_5 = this.a.c.d.a.b.formatValue(this.a.c.d.a.a.mFeatureType, ((com.esri.core.map.popup.PopupImageMediaValue) this.a.c.d.a.getItem(this.a.b).getValue()).getLinkURL(), 0);
        if ((v4_5 != null) && (v4_5.length() > 0)) {
            android.content.Intent v0_7 = new android.content.Intent("android.intent.action.VIEW", android.net.Uri.parse(v4_5));
            v0_7.addFlags(268435456);
            this.a.getContext().getApplicationContext().startActivity(v0_7);
        }
        return 1;
    }

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


    public android.support.v4.media.MediaDescriptionCompat getDescription()
    {
        if (this.mDescription == null) {
            android.support.v4.media.MediaDescriptionCompat v0_5 = this.getString("android.media.metadata.MEDIA_ID");
            boolean v1_5 = new CharSequence[3];
            long v2_13 = this.getText("android.media.metadata.DISPLAY_TITLE");
            if (android.text.TextUtils.isEmpty(v2_13)) {
                long v2_4 = 0;
                int v3_1 = 0;
                while ((v2_4 < v1_5.length) && (v3_1 < android.support.v4.media.MediaMetadataCompat.PREFERRED_DESCRIPTION_ORDER.length)) {
                    android.support.v4.media.MediaDescriptionCompat$Builder v8_0 = (v3_1 + 1);
                    int v3_3 = this.getText(android.support.v4.media.MediaMetadataCompat.PREFERRED_DESCRIPTION_ORDER[v3_1]);
                    if (!android.text.TextUtils.isEmpty(v3_3)) {
                        android.net.Uri v7_5 = (v2_4 + 1);
                        v1_5[v2_4] = v3_3;
                        v2_4 = v7_5;
                    }
                    v3_1 = v8_0;
                }
            } else {
                v1_5[0] = v2_13;
                v1_5[1] = this.getText("android.media.metadata.DISPLAY_SUBTITLE");
                v1_5[2] = this.getText("android.media.metadata.DISPLAY_DESCRIPTION");
            }
            long v2_9 = 0;
            while(true) {
                int v3_6;
                android.net.Uri v7_6 = 0;
                if (v2_9 >= android.support.v4.media.MediaMetadataCompat.PREFERRED_BITMAP_ORDER.length) {
                    break;
                }
                v3_6 = this.getBitmap(android.support.v4.media.MediaMetadataCompat.PREFERRED_BITMAP_ORDER[v2_9]);
                if (v3_6 == 0) {
                    v2_9++;
                }
                long v2_10 = 0;
                while (v2_10 < android.support.v4.media.MediaMetadataCompat.PREFERRED_URI_ORDER.length) {
                    android.support.v4.media.MediaDescriptionCompat$Builder v8_5 = this.getString(android.support.v4.media.MediaMetadataCompat.PREFERRED_URI_ORDER[v2_10]);
                    if (android.text.TextUtils.isEmpty(v8_5)) {
                        v2_10++;
                    } else {
                        long v2_11 = android.net.Uri.parse(v8_5);
                    }
                    android.support.v4.media.MediaDescriptionCompat$Builder v8_7 = this.getString("android.media.metadata.MEDIA_URI");
                    if (!android.text.TextUtils.isEmpty(v8_7)) {
                        v7_6 = android.net.Uri.parse(v8_7);
                    }
                    android.support.v4.media.MediaDescriptionCompat$Builder v8_9 = new android.support.v4.media.MediaDescriptionCompat$Builder();
                    v8_9.setMediaId(v0_5);
                    v8_9.setTitle(v1_5[0]);
                    v8_9.setSubtitle(v1_5[1]);
                    v8_9.setDescription(v1_5[2]);
                    v8_9.setIconBitmap(v3_6);
                    v8_9.setIconUri(v2_11);
                    v8_9.setMediaUri(v7_6);
                    android.support.v4.media.MediaDescriptionCompat v0_10 = new android.os.Bundle();
                    if (this.mBundle.containsKey("android.media.metadata.BT_FOLDER_TYPE")) {
                        v0_10.putLong("android.media.extra.BT_FOLDER_TYPE", this.getLong("android.media.metadata.BT_FOLDER_TYPE"));
                    }
                    if (this.mBundle.containsKey("android.media.metadata.DOWNLOAD_STATUS")) {
                        v0_10.putLong("android.media.extra.DOWNLOAD_STATUS", this.getLong("android.media.metadata.DOWNLOAD_STATUS"));
                    }
                    if (!v0_10.isEmpty()) {
                        v8_9.setExtras(v0_10);
                    }
                    this.mDescription = v8_9.build();
                    return this.mDescription;
                }
                v2_11 = 0;
            }
            v3_6 = 0;
        } else {
            return this.mDescription;
        }
    }

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


    static java.util.Map getDataResultsFromIntent(android.content.Intent p6, String p7)
    {
        boolean v6_1 = android.support.v4.app.RemoteInputCompatJellybean.getClipDataIntentFromIntent(p6);
        java.util.HashMap v0 = 0;
        if (v6_1) {
            java.util.HashMap v1_1 = new java.util.HashMap();
            java.util.Iterator v2_0 = v6_1.getExtras().keySet().iterator();
            while (v2_0.hasNext()) {
                android.net.Uri v3_2 = ((String) v2_0.next());
                if (v3_2.startsWith("android.remoteinput.dataTypeResultsData")) {
                    String v4_4 = v3_2.substring("android.remoteinput.dataTypeResultsData".length());
                    if ((v4_4 != null) && (!v4_4.isEmpty())) {
                        android.net.Uri v3_4 = v6_1.getBundleExtra(v3_2).getString(p7);
                        if ((v3_4 != null) && (!v3_4.isEmpty())) {
                            v1_1.put(v4_4, android.net.Uri.parse(v3_4));
                        }
                    }
                }
            }
            if (!v1_1.isEmpty()) {
                v0 = v1_1;
            }
            return v0;
        } else {
            return 0;
        }
    }

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


    static java.util.Map getDataResultsFromIntent(android.content.Intent p6, String p7)
    {
        boolean v6_1 = android.support.v4.app.RemoteInputCompatApi20.getClipDataIntentFromIntent(p6);
        java.util.HashMap v0 = 0;
        if (v6_1) {
            java.util.HashMap v1_1 = new java.util.HashMap();
            java.util.Iterator v2_0 = v6_1.getExtras().keySet().iterator();
            while (v2_0.hasNext()) {
                android.net.Uri v3_2 = ((String) v2_0.next());
                if (v3_2.startsWith("android.remoteinput.dataTypeResultsData")) {
                    String v4_4 = v3_2.substring("android.remoteinput.dataTypeResultsData".length());
                    if ((v4_4 != null) && (!v4_4.isEmpty())) {
                        android.net.Uri v3_4 = v6_1.getBundleExtra(v3_2).getString(p7);
                        if ((v3_4 != null) && (!v3_4.isEmpty())) {
                            v1_1.put(v4_4, android.net.Uri.parse(v3_4));
                        }
                    }
                }
            }
            if (!v1_1.isEmpty()) {
                v0 = v1_1;
            }
            return v0;
        } else {
            return 0;
        }
    }

Method com.esri.core.portal.Portal.fetchTxtFileContents() calling method org.apache.http.client.HttpClient.execute()


    public java.io.InputStream fetchTxtFileContents()
    {
        try {
            org.apache.http.impl.client.DefaultHttpClient v1_3 = new StringBuilder();
            v1_3.append(this.getUrl());
            v1_3.append("/arcgismobile.txt");
            int v0_4 = new org.apache.http.impl.client.DefaultHttpClient().execute(new org.apache.http.client.methods.HttpGet(v1_3.toString())).getEntity().getContent();
        } catch (Exception) {
            v0_4 = 0;
        }
        return v0_4;
    }

Method air.com.tragsatec.mobile.IEPNB.MapActivity.goInfoCapaPrev() calling method android.webkit.WebView.setWebViewClient()


    public void goInfoCapaPrev(android.view.View p10)
    {
        try {
            this.actualInfoCapa = (this.actualInfoCapa - 1);
        } catch (String v10_3) {
            v10_3.printStackTrace();
            return;
        }
        if (this.actualInfoCapa < (this.maxInfoCapa - 1)) {
            this.imgSiguiente.setVisibility(0);
        }
        if (this.actualInfoCapa == 0) {
            this.imgAnterior.setVisibility(8);
        }
        String v10_7 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v3 = v10_7.getLayername();
        String v2 = v10_7.getTitle();
        String v4 = v10_7.getUrl();
        this.tvTitleCapaInfo.setText(v2);
        String v10_9 = this.leeGetinfoLayer(v2, v3, v4, this.dblxInfo, this.dblyInfo);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v10_9);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.MapActivity.goInfoCapaNext() calling method android.webkit.WebView.setWebViewClient()


    public void goInfoCapaNext(android.view.View p10)
    {
        try {
            this.actualInfoCapa = (this.actualInfoCapa + 1);
        } catch (String v10_2) {
            v10_2.printStackTrace();
            return;
        }
        if (this.actualInfoCapa != 0) {
            this.imgAnterior.setVisibility(0);
        }
        if (this.actualInfoCapa == (this.maxInfoCapa - 1)) {
            this.imgSiguiente.setVisibility(8);
        }
        String v10_6 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v3 = v10_6.getLayername();
        String v2 = v10_6.getTitle();
        String v4 = v10_6.getUrl();
        this.tvTitleCapaInfo.setText(v2);
        String v10_8 = this.leeGetinfoLayer(v2, v3, v4, this.dblxInfo, this.dblyInfo);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v10_8);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.MapActivity.addTabCapas() calling method android.webkit.WebView.setWebViewClient()


    private void addTabCapas(double p12, double p14)
    {
        this.dblxInfo = p12;
        this.dblyInfo = p14;
        this.maxInfoCapa = 0;
        this.actualInfoCapa = 0;
        int v1_6 = this.readLayersFromFileLocal();
        this.listaCapasCargadas = new java.util.ArrayList();
        try {
            int v2_1 = new org.json.JSONArray(v1_6);
            int v1_0 = 0;
        } catch (Exception) {
            return;
        }
        while (v1_0 < v2_1.length()) {
            air.com.tragsatec.mobile.IEPNB.MapActivity v3_3 = new air.com.tragsatec.mobile.IEPNB.model.ItemLayer();
            v3_3.setId(v2_1.getJSONObject(v1_0).getString("layerid"));
            v3_3.setTitle(v2_1.getJSONObject(v1_0).getString("title"));
            v3_3.setIcono(v2_1.getJSONObject(v1_0).getString("imagename"));
            v3_3.setAlpha(v2_1.getJSONObject(v1_0).getString("alpha"));
            v3_3.setVisible(v2_1.getJSONObject(v1_0).getString("visible"));
            v3_3.setUrl(v2_1.getJSONObject(v1_0).getString("url"));
            v3_3.setSrs(v2_1.getJSONObject(v1_0).getString("srs"));
            v3_3.setLayername(v2_1.getJSONObject(v1_0).getString("layername"));
            v3_3.setLegend(v2_1.getJSONObject(v1_0).getString("legend"));
            v3_3.setLayer(((com.esri.android.map.ogc.WMSLayer) this.map.getLayerByURL(v2_1.getJSONObject(v1_0).getString("url"))));
            v3_3.setMap(this.map);
            if (v3_3.getVisible().equalsIgnoreCase("SI")) {
                this.listaCapasCargadas.add(v3_3);
            }
            v1_0++;
        }
        this.maxInfoCapa = this.listaCapasCargadas.size();
        if (this.maxInfoCapa > 1) {
            this.imgSiguiente.setVisibility(0);
        }
        android.widget.TextView v0_3 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v5_4 = v0_3.getLayername();
        String v4_10 = v0_3.getTitle();
        String v6_1 = v0_3.getUrl();
        this.tvTitleCapaInfo.setText(v4_10);
        String v12_1 = this.leeGetinfoLayer(v4_10, v5_4, v6_1, p12, p14);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v12_1);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.WebViewActivity.getWebView() calling method android.webkit.WebView.setWebViewClient()


    public void getWebView()
    {
        this.mWebView = ((android.webkit.WebView) this.findViewById(2131230990));
        this.mWebView.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.WebViewActivity$HelloWebViewClient(this, 0));
        this.mWebView.getSettings().setJavaScriptEnabled(1);
        this.mWebView.loadUrl(this.URL);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.IndicadoresActivity.onCreate() calling method android.webkit.WebView.setWebViewClient()


    protected void onCreate(android.os.Bundle p3)
    {
        super.onCreate(p3);
        this.setContentView(2131361825);
        this.tf = android.graphics.Typeface.createFromAsset(this.getAssets(), this.getString(2131492918));
        android.webkit.WebView v3_4 = ((android.webkit.WebView) this.findViewById(2131230997));
        String v0_0 = v3_4.getSettings();
        v0_0.setJavaScriptEnabled(1);
        v0_0.setBuiltInZoomControls(1);
        v0_0.setSupportZoom(1);
        v0_0.setUseWideViewPort(1);
        v0_0.setLoadWithOverviewMode(1);
        v3_4.setInitialScale(1);
        v3_4.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        v3_4.loadUrl("https://www.mapama.gob.es/es/biodiversidad/temas/inventarios-nacionales/inventario-espanol-patrimonio-natural-biodiv/sistema-indicadores/Indicadores_estado.aspx");
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.MapActivity.goInfoCapaPrev() calling method android.webkit.WebView.loadUrl()


    public void goInfoCapaPrev(android.view.View p10)
    {
        try {
            this.actualInfoCapa = (this.actualInfoCapa - 1);
        } catch (String v10_3) {
            v10_3.printStackTrace();
            return;
        }
        if (this.actualInfoCapa < (this.maxInfoCapa - 1)) {
            this.imgSiguiente.setVisibility(0);
        }
        if (this.actualInfoCapa == 0) {
            this.imgAnterior.setVisibility(8);
        }
        String v10_7 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v3 = v10_7.getLayername();
        String v2 = v10_7.getTitle();
        String v4 = v10_7.getUrl();
        this.tvTitleCapaInfo.setText(v2);
        String v10_9 = this.leeGetinfoLayer(v2, v3, v4, this.dblxInfo, this.dblyInfo);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v10_9);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.MapActivity.goInfoCapaNext() calling method android.webkit.WebView.loadUrl()


    public void goInfoCapaNext(android.view.View p10)
    {
        try {
            this.actualInfoCapa = (this.actualInfoCapa + 1);
        } catch (String v10_2) {
            v10_2.printStackTrace();
            return;
        }
        if (this.actualInfoCapa != 0) {
            this.imgAnterior.setVisibility(0);
        }
        if (this.actualInfoCapa == (this.maxInfoCapa - 1)) {
            this.imgSiguiente.setVisibility(8);
        }
        String v10_6 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v3 = v10_6.getLayername();
        String v2 = v10_6.getTitle();
        String v4 = v10_6.getUrl();
        this.tvTitleCapaInfo.setText(v2);
        String v10_8 = this.leeGetinfoLayer(v2, v3, v4, this.dblxInfo, this.dblyInfo);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v10_8);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.MapActivity.addTabCapas() calling method android.webkit.WebView.loadUrl()


    private void addTabCapas(double p12, double p14)
    {
        this.dblxInfo = p12;
        this.dblyInfo = p14;
        this.maxInfoCapa = 0;
        this.actualInfoCapa = 0;
        int v1_6 = this.readLayersFromFileLocal();
        this.listaCapasCargadas = new java.util.ArrayList();
        try {
            int v2_1 = new org.json.JSONArray(v1_6);
            int v1_0 = 0;
        } catch (Exception) {
            return;
        }
        while (v1_0 < v2_1.length()) {
            air.com.tragsatec.mobile.IEPNB.MapActivity v3_3 = new air.com.tragsatec.mobile.IEPNB.model.ItemLayer();
            v3_3.setId(v2_1.getJSONObject(v1_0).getString("layerid"));
            v3_3.setTitle(v2_1.getJSONObject(v1_0).getString("title"));
            v3_3.setIcono(v2_1.getJSONObject(v1_0).getString("imagename"));
            v3_3.setAlpha(v2_1.getJSONObject(v1_0).getString("alpha"));
            v3_3.setVisible(v2_1.getJSONObject(v1_0).getString("visible"));
            v3_3.setUrl(v2_1.getJSONObject(v1_0).getString("url"));
            v3_3.setSrs(v2_1.getJSONObject(v1_0).getString("srs"));
            v3_3.setLayername(v2_1.getJSONObject(v1_0).getString("layername"));
            v3_3.setLegend(v2_1.getJSONObject(v1_0).getString("legend"));
            v3_3.setLayer(((com.esri.android.map.ogc.WMSLayer) this.map.getLayerByURL(v2_1.getJSONObject(v1_0).getString("url"))));
            v3_3.setMap(this.map);
            if (v3_3.getVisible().equalsIgnoreCase("SI")) {
                this.listaCapasCargadas.add(v3_3);
            }
            v1_0++;
        }
        this.maxInfoCapa = this.listaCapasCargadas.size();
        if (this.maxInfoCapa > 1) {
            this.imgSiguiente.setVisibility(0);
        }
        android.widget.TextView v0_3 = ((air.com.tragsatec.mobile.IEPNB.model.ItemLayer) this.listaCapasCargadas.get(this.actualInfoCapa));
        String v5_4 = v0_3.getLayername();
        String v4_10 = v0_3.getTitle();
        String v6_1 = v0_3.getUrl();
        this.tvTitleCapaInfo.setText(v4_10);
        String v12_1 = this.leeGetinfoLayer(v4_10, v5_4, v6_1, p12, p14);
        this.webviewInfo.getSettings().setJavaScriptEnabled(1);
        this.webviewInfo.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        this.webviewInfo.loadUrl(v12_1);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.WebViewActivity.getWebView() calling method android.webkit.WebView.loadUrl()


    public void getWebView()
    {
        this.mWebView = ((android.webkit.WebView) this.findViewById(2131230990));
        this.mWebView.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.WebViewActivity$HelloWebViewClient(this, 0));
        this.mWebView.getSettings().setJavaScriptEnabled(1);
        this.mWebView.loadUrl(this.URL);
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.WebViewActivity$HelloWebViewClient.shouldOverrideUrlLoading() calling method android.webkit.WebView.loadUrl()


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

Method air.com.tragsatec.mobile.IEPNB.IndicadoresActivity.onCreate() calling method android.webkit.WebView.loadUrl()


    protected void onCreate(android.os.Bundle p3)
    {
        super.onCreate(p3);
        this.setContentView(2131361825);
        this.tf = android.graphics.Typeface.createFromAsset(this.getAssets(), this.getString(2131492918));
        android.webkit.WebView v3_4 = ((android.webkit.WebView) this.findViewById(2131230997));
        String v0_0 = v3_4.getSettings();
        v0_0.setJavaScriptEnabled(1);
        v0_0.setBuiltInZoomControls(1);
        v0_0.setSupportZoom(1);
        v0_0.setUseWideViewPort(1);
        v0_0.setLoadWithOverviewMode(1);
        v3_4.setInitialScale(1);
        v3_4.setWebViewClient(new air.com.tragsatec.mobile.IEPNB.webclient.CustomWebClient(this));
        v3_4.loadUrl("https://www.mapama.gob.es/es/biodiversidad/temas/inventarios-nacionales/inventario-espanol-patrimonio-natural-biodiv/sistema-indicadores/Indicadores_estado.aspx");
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.FullDescriActivity.onCreate() calling method android.webkit.WebView.loadUrl()


    protected void onCreate(android.os.Bundle p8)
    {
        super.onCreate(p8);
        this.setContentView(2131361823);
        this.tf = android.graphics.Typeface.createFromAsset(this.getAssets(), this.getString(2131492918));
        this.idLayer = this.getIntent().getStringExtra("ID_LAYER");
        this.tituloLayer = this.getIntent().getStringExtra("TITLE_LAYER");
        this.icoLayer = this.getIntent().getStringExtra("ICO_LAYER");
        String v8_10 = ((android.widget.ImageView) this.findViewById(2131230816));
        String v0_5 = ((android.widget.TextView) this.findViewById(2131230953));
        android.widget.TextView v1_2 = ((android.widget.TextView) this.findViewById(2131230952));
        android.webkit.WebView v2_2 = ((android.webkit.WebView) this.findViewById(2131230996));
        v0_5.setTypeface(this.tf);
        v1_2.setTypeface(this.tf);
        v8_10.setImageResource(this.getResources().getIdentifier(this.icoLayer, "drawable", this.getPackageName()));
        v0_5.setText(this.tituloLayer);
        v1_2.setText(this.getString(2131492938));
        v2_2.getSettings().setJavaScriptEnabled(1);
        String v8_17 = new StringBuilder();
        v8_17.append("file:///android_asset/html/details");
        v8_17.append(this.idLayer);
        v8_17.append(".html");
        v2_2.loadUrl(v8_17.toString());
        return;
    }

Method air.com.tragsatec.mobile.IEPNB.AcercaDeActivity.onCreate() calling method android.webkit.WebView.loadUrl()


    protected void onCreate(android.os.Bundle p3)
    {
        super.onCreate(p3);
        this.setContentView(2131361819);
        android.webkit.WebView v3_4 = ((android.webkit.WebView) this.findViewById(2131230995));
        v3_4.getSettings().setJavaScriptEnabled(1);
        v3_4.loadUrl("file:///android_asset/html/acerca-de.html");
        return;
    }