Info Call to dangerous WebView settings API

Description

List of all WebView methods used in the application.

Recommendation

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

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

Technical details

Method com.ramco.ramcoerp.ReportPageActivity.onCreate() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    public void onCreate(android.os.Bundle p8)
    {
        if ((VB.c(this) ^ 1) == 0) {
            this.setRequestedOrientation(0);
        } else {
            this.setRequestedOrientation(1);
        }
        super.onCreate(p8);
        this.setContentView(2131427359);
        this.L = this.j();
        String v8_9 = this.L;
        if (v8_9 != null) {
            v8_9.d(1);
            this.L.b(2131624019);
        }
        String v8_24;
        this.r = com.ramco.ramcoerp.RamcoApplication.a();
        String v0_6 = new Object[1];
        v0_6[0] = this.r.d().b().b();
        this.C = String.format("%s_msg", v0_6);
        if (!this.r.c(this.C)) {
            v8_24 = "";
        } else {
            v8_24 = this.getString(2131624065);
        }
        String v8_7;
        this.q = wB.a(this, v8_24, 0, 1, 0);
        this.z = new YA(this, this, this.r);
        String v8_31 = ((android.widget.ListView) this.findViewById(2131230855));
        this.F = new com.ramco.ramcoerp.ReportPageActivity$a(this, this, 2131427382, this.D);
        v8_31.setAdapter(this.F);
        this.H = ((android.print.PrintManager) this.getSystemService("print"));
        this.v();
        v8_31.setOnItemClickListener(this);
        this.G = ((android.widget.FrameLayout) this.findViewById(2131230777));
        ((android.widget.Button) this.findViewById(2131230764)).setOnClickListener(this);
        ((android.widget.Button) this.findViewById(2131230760)).setOnClickListener(this);
        this.B = ((com.github.barteksc.pdfviewer.PDFView) this.findViewById(2131230889));
        this.y = ((android.webkit.WebView) this.findViewById(2131230898));
        String v8_49 = this.y.getSettings();
        v8_49.setJavaScriptEnabled(1);
        v8_49.setAppCacheEnabled(1);
        v8_49.setDomStorageEnabled(1);
        v8_49.setJavaScriptCanOpenWindowsAutomatically(1);
        v8_49.setLayoutAlgorithm(android.webkit.WebSettings$LayoutAlgorithm.NORMAL);
        v8_49.setLoadWithOverviewMode(1);
        v8_49.setUseWideViewPort(1);
        this.y.setDownloadListener(this);
        this.y.setWebChromeClient(new JB(this));
        this.y.setWebViewClient(new KB(this, this));
        String v8_6 = this.getIntent().getExtras();
        if (v8_6 == null) {
            v8_7 = 0;
        } else {
            v8_7 = v8_6.getString("reportpagedetail");
        }
        if (android.text.TextUtils.isEmpty(v8_7)) {
            this.y.loadData("<html><head></head><body>Error</body></html>", "text/html", "utf-8");
        } else {
            String v0_2 = android.webkit.URLUtil.guessFileName(v8_7, 0, 0);
            android.webkit.WebView v3_8 = android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension(android.webkit.MimeTypeMap.getFileExtensionFromUrl(v8_7));
            if ((android.text.TextUtils.isEmpty(v3_8)) || (!((String) java.util.Objects.requireNonNull(v3_8)).contains("image"))) {
                this.y.loadUrl(v8_7);
            } else {
                android.webkit.WebView v3_12 = this.y;
                Object[] v6_4 = new Object[4];
                v6_4[0] = v0_2;
                v6_4[1] = v8_7;
                v6_4[2] = "%";
                v6_4[3] = "%";
                v3_12.loadData(String.format("<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=0.1\"><title>%s</title></head><body style=\"margin: 0px;\"><img style=\"-webkit-user-select: none\" src=\"%s\" width=\"100%s\" height=\"100%s\"></body></html>", v6_4), "text/html", "utf-8");
            }
        }
        return;
    }

Method org.apache.cordova.engine.SystemWebViewEngine.initWebViewSettings() calling method android.webkit.WebSettings.setJavaScriptEnabled()


    private void initWebViewSettings()
    {
        this.webView.setInitialScale(0);
        this.webView.setVerticalScrollBarEnabled(0);
        android.content.Context v0_3 = this.webView.getSettings();
        v0_3.setJavaScriptEnabled(1);
        v0_3.setJavaScriptCanOpenWindowsAutomatically(1);
        v0_3.setLayoutAlgorithm(android.webkit.WebSettings$LayoutAlgorithm.NORMAL);
        v0_3.setSaveFormData(0);
        v0_3.setSavePassword(0);
        v0_3.setAllowUniversalAccessFromFileURLs(1);
        v0_3.setMediaPlaybackRequiresUserGesture(0);
        String v1_2 = this.webView.getContext().getApplicationContext().getDir("database", 0).getPath();
        v0_3.setDatabaseEnabled(1);
        v0_3.setDatabasePath(v1_2);
        if (((this.webView.getContext().getApplicationContext().getApplicationInfo().flags & 2) != 0) && (android.os.Build$VERSION.SDK_INT >= 19)) {
            this.enableRemoteDebugging();
        }
        v0_3.setGeolocationDatabasePath(v1_2);
        v0_3.setDomStorageEnabled(1);
        v0_3.setGeolocationEnabled(1);
        v0_3.setAppCacheMaxSize(5242880);
        v0_3.setAppCachePath(v1_2);
        v0_3.setAppCacheEnabled(1);
        String v1_3 = v0_3.getUserAgentString();
        android.content.BroadcastReceiver v2_1 = this.preferences.getString("OverrideUserAgent", 0);
        if (v2_1 == null) {
            android.content.BroadcastReceiver v2_3 = this.preferences.getString("AppendUserAgent", 0);
            if (v2_3 != null) {
                StringBuilder v3_14 = new StringBuilder();
                v3_14.append(v1_3);
                v3_14.append(" ");
                v3_14.append(v2_3);
                v0_3.setUserAgentString(v3_14.toString());
            }
        } else {
            v0_3.setUserAgentString(v2_1);
        }
        String v1_7 = new android.content.IntentFilter();
        v1_7.addAction("android.intent.action.CONFIGURATION_CHANGED");
        if (this.receiver == null) {
            this.receiver = new xK(this, v0_3);
            this.webView.getContext().registerReceiver(this.receiver, v1_7);
        }
        return;
    }

Method com.ramco.ramcoerp.ReportPageActivity.m() calling method android.net.Uri.parse()


    public final void m()
    {
        String v0_0 = this.A;
        java.io.FileOutputStream v1_0 = "Error. Contant system Administator";
        if ((v0_0 == null) || ((android.text.TextUtils.isEmpty(v0_0.f())) || ((v0_0.c() == null) || (v0_0.c().length <= 0)))) {
            this.b(v1_0);
        } else {
            if (v0_0.e() != 2) {
                String v0_1 = v0_0.b();
                if (!android.text.TextUtils.isEmpty(v0_1)) {
                    java.io.FileOutputStream v1_1 = new Object[1];
                    v1_1[0] = v0_1;
                    v1_0 = String.format("%s. Contant system Administator", v1_1);
                }
            } else {
                java.io.FileOutputStream v1_4 = android.net.Uri.parse(v0_0.f()).getQueryParameter("FilePath");
                if (android.text.TextUtils.isEmpty(v1_4)) {
                    v1_4 = this.p();
                }
                android.util.Log.d("reportpage", v1_4);
                this.s = new java.io.File(this.getCacheDir(), v1_4);
                String v0_3 = v0_0.c();
                try {
                    java.io.FileOutputStream v1_6 = new java.io.FileOutputStream(this.s);
                    v1_6.write(v0_3, 0, v0_3.length);
                    v1_6.close();
                } catch (String v0_4) {
                    v0_4.printStackTrace();
                }
                if (!this.s.exists()) {
                    this.b("File not found");
                } else {
                    android.widget.Toast.makeText(this, "SUCCESSFUL", 1).show();
                    this.u();
                }
            }
        }
        return;
    }

Method dl.b() calling method android.net.Uri.parse()

Couldn't retrieve source code

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


    public static com.google.android.gms.auth.api.signin.GoogleSignInAccount b(String p13)
    {
        if (!android.text.TextUtils.isEmpty(p13)) {
            int v8;
            String v0_2 = new org.json.JSONObject(p13);
            com.google.android.gms.auth.api.signin.GoogleSignInAccount v13_10 = v0_2.optString("photoUrl", 0);
            if (android.text.TextUtils.isEmpty(v13_10)) {
                v8 = 0;
            } else {
                v8 = android.net.Uri.parse(v13_10);
            }
            String v2_1 = Long.parseLong(v0_2.getString("expirationTime"));
            java.util.HashSet v11_1 = new java.util.HashSet();
            com.google.android.gms.auth.api.signin.GoogleSignInAccount v13_5 = v0_2.getJSONArray("grantedScopes");
            String v4_0 = v13_5.length();
            String v5_0 = 0;
            while (v5_0 < v4_0) {
                v11_1.add(new com.google.android.gms.common.api.Scope(v13_5.getString(v5_0)));
                v5_0++;
            }
            com.google.android.gms.auth.api.signin.GoogleSignInAccount v13_9 = com.google.android.gms.auth.api.signin.GoogleSignInAccount.a(v0_2.optString("id"), v0_2.optString("tokenId", 0), v0_2.optString("email", 0), v0_2.optString("displayName", 0), v0_2.optString("givenName", 0), v0_2.optString("familyName", 0), v8, Long.valueOf(v2_1), v0_2.getString("obfuscatedIdentifier"), v11_1);
            v13_9.h = v0_2.optString("serverAuthCode", 0);
            return v13_9;
        } else {
            return 0;
        }
    }

Method org.apache.cordova.camera.CameraLauncher.onRestoreStateForActivityResult() calling method android.net.Uri.parse()


    public void onRestoreStateForActivityResult(android.os.Bundle p3, org.apache.cordova.CallbackContext p4)
    {
        this.destType = p3.getInt("destType");
        this.srcType = p3.getInt("srcType");
        this.mQuality = p3.getInt("mQuality");
        this.targetWidth = p3.getInt("targetWidth");
        this.targetHeight = p3.getInt("targetHeight");
        this.encodingType = p3.getInt("encodingType");
        this.mediaType = p3.getInt("mediaType");
        this.numPics = p3.getInt("numPics");
        this.allowEdit = p3.getBoolean("allowEdit");
        this.correctOrientation = p3.getBoolean("correctOrientation");
        this.saveToPhotoAlbum = p3.getBoolean("saveToPhotoAlbum");
        if (p3.containsKey("croppedUri")) {
            this.croppedUri = android.net.Uri.parse(p3.getString("croppedUri"));
        }
        if (p3.containsKey("imageUri")) {
            this.imageUri = new oK(android.net.Uri.parse(p3.getString("imageUri")));
        }
        this.callbackContext = p4;
        return;
    }

Method org.apache.cordova.camera.CameraLauncher.checkForDuplicateImage() calling method android.net.Uri.parse()


    private void checkForDuplicateImage(int p6)
    {
        android.content.ContentResolver v0_0 = this.whichContentStore();
        android.database.Cursor v1 = this.queryImgDB(v0_0);
        int v2_4 = v1.getCount();
        int v4 = 1;
        if ((p6 == 1) && (this.saveToPhotoAlbum)) {
            v4 = 2;
        }
        if ((v2_4 - this.numPics) == v4) {
            v1.moveToLast();
            android.net.Uri v6_6 = Integer.valueOf(v1.getString(v1.getColumnIndex("_id"))).intValue();
            if (v4 == 2) {
                v6_6--;
            }
            int v2_2 = new StringBuilder();
            v2_2.append(v0_0);
            v2_2.append("/");
            v2_2.append(v6_6);
            this.cordova.getActivity().getContentResolver().delete(android.net.Uri.parse(v2_2.toString()), 0, 0);
            v1.close();
        }
        return;
    }

Method org.apache.cordova.CordovaWebViewImpl.showWebPage() calling method android.net.Uri.parse()


    public void showWebPage(String p4, boolean p5, boolean p6, java.util.Map p7)
    {
        String v7_1 = new Object[3];
        v7_1[0] = p4;
        v7_1[1] = Boolean.valueOf(p5);
        v7_1[2] = Boolean.valueOf(p6);
        org.apache.cordova.LOG.d("CordovaWebViewImpl", "showWebPage(%s, %b, %b, HashMap)", v7_1);
        if (p6 != null) {
            this.engine.clearHistory();
        }
        if (p5 == null) {
            if (!this.pluginManager.shouldAllowNavigation(p4)) {
                android.content.ActivityNotFoundException v5_4 = new StringBuilder();
                v5_4.append("showWebPage: Refusing to load URL into webview since it is not in the <allow-navigation> whitelist. URL=");
                v5_4.append(p4);
                org.apache.cordova.LOG.w("CordovaWebViewImpl", v5_4.toString());
            } else {
                this.loadUrlIntoView(p4, 1);
            }
        }
        if (this.pluginManager.shouldOpenExternalUrl(p4).booleanValue()) {
            try {
                android.content.ActivityNotFoundException v5_10 = new android.content.Intent("android.intent.action.VIEW");
                v5_10.addCategory("android.intent.category.BROWSABLE");
                android.app.Activity v6_5 = android.net.Uri.parse(p4);
            } catch (android.content.ActivityNotFoundException v5_11) {
                android.app.Activity v6_7 = new StringBuilder();
                v6_7.append("Error loading url ");
                v6_7.append(p4);
                org.apache.cordova.LOG.e("CordovaWebViewImpl", v6_7.toString(), v5_11);
                return;
            }
            if (!"file".equals(v6_5.getScheme())) {
                v5_10.setData(v6_5);
            } else {
                v5_10.setDataAndType(v6_5, this.resourceApi.getMimeType(v6_5));
            }
            this.cordova.getActivity().startActivity(v5_10);
            return;
        } else {
            android.content.ActivityNotFoundException v5_13 = new StringBuilder();
            v5_13.append("showWebPage: Refusing to send intent for URL since it is not in the <allow-intent> whitelist. URL=");
            v5_13.append(p4);
            org.apache.cordova.LOG.w("CordovaWebViewImpl", v5_13.toString());
            return;
        }
    }

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


    public final android.content.Intent a(android.database.Cursor p9, int p10, String p11)
    {
        try {
            ark>android.support.v7.widget.SearchViewark> v1_6 = dl.a(p9, "suggest_intent_action");
        } catch (RuntimeException v10_1) {
            try {
                android.content.Intent v9_1 = p9.getPosition();
            } catch (RuntimeException) {
                v9_1 = -1;
            }
            String v11_2 = new StringBuilder();
            v11_2.append("Search suggestions cursor at row ");
            v11_2.append(v9_1);
            v11_2.append(" returned exception.");
            android.util.Log.w("SearchView", v11_2.toString(), v10_1);
            return 0;
        }
        if (v1_6 == null) {
            v1_6 = this.ga.getSuggestIntentAction();
        }
        if (v1_6 == null) {
            v1_6 = "android.intent.action.SEARCH";
        }
        String v2 = v1_6;
        ark>android.support.v7.widget.SearchViewark> v1_2 = dl.a(p9, "suggest_intent_data");
        if (v1_2 == null) {
            v1_2 = this.ga.getSuggestIntentData();
        }
        if (v1_2 != null) {
            android.net.Uri v3_1 = dl.a(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.a(v2, v3_2, dl.a(p9, "suggest_intent_extra_data"), dl.a(p9, "suggest_intent_query"), p10, p11);
    }

Method YA.a() calling method android.net.Uri.parse()


    public void a(String p9, String p10, String p11, String p12)
    {
        if (this.a(this.d)) {
            this.c = p9;
            try {
                android.net.Uri v1_5 = android.net.Uri.parse(p9);
                boolean v4_1 = v1_5.getScheme().equalsIgnoreCase("https");
                android.net.Uri v1_3 = v1_5.buildUpon().appendQueryParameter("_dc", this.b.e()).build();
                PB v5_2 = v1_3.toString();
                this.c = v5_2;
                try {
                    ZF v9_3 = new wG$a();
                } catch (ZF v9_1) {
                    v9_1.printStackTrace();
                    this.a.a(new MB(v9_1, 1, 0, v5_2));
                    return;
                }
                if (p10.equalsIgnoreCase("GET")) {
                    v9_3.a(p10, 0);
                } else {
                    if (!p10.equalsIgnoreCase("HEAD")) {
                        if (!android.text.TextUtils.isEmpty(p11)) {
                            android.util.Log.i("HttpHanlder", p11);
                            v9_3.a(p10, this.a(this.a(p12), p11));
                        } else {
                            v9_3.a("GET", 0);
                        }
                    } else {
                    }
                }
                tG v10_5;
                v9_3.b(v5_2);
                v9_3.a("User-Agent", XA.c());
                v9_3.a(XA.b());
                ZF v9_4 = v9_3.a();
                if (!XA.d()) {
                    v10_5 = 0;
                } else {
                    v10_5 = this.b.c();
                }
                tG v10_9 = XA.a(v4_1, v1_3.getHost(), this.d, v10_5);
                android.util.Log.i("HttpHanlder", v5_2);
                android.util.Log.i("HttpHanlder", "Start Request");
                v10_9.a(v9_4).a(this);
                return;
            } catch (tG v10_1) {
                v5_2 = p9;
                v9_1 = v10_1;
            }
        } else {
            this.a.a(new MB(new java.io.IOException("No network connection."), 1, 0, p9));
            return;
        }
    }

Method YA.a() calling method android.net.Uri.parse()


    public void a(ZF p7, zG p8)
    {
        MB v0_1 = new MB();
        try {
            if (!p8.m()) {
                if (!p8.n()) {
                    Exception v7_9 = p8.j();
                    if (v7_9 != 401) {
                        if (v7_9 != 407) {
                            if (v7_9 != 404) {
                                v0_1.a(new Exception(p8.o()), 1, this.c);
                            } else {
                                Object[] v4_0 = new Object[2];
                                v4_0[0] = android.net.Uri.parse(this.c).getLastPathSegment();
                                v4_0[1] = p8.o();
                                v0_1.a(new Exception(String.format("File %s %s", v4_0)), 1, this.c);
                            }
                        } else {
                        }
                    }
                    v0_1.a(4);
                    v0_1.a(this.c);
                    XA.a(1);
                    this.b.a(0);
                } else {
                    Exception v7_22 = this.b.c();
                    if (v7_22 != null) {
                        v7_22.a(p8.s().a("Authorization"));
                        this.b.a(v7_22);
                    }
                    if (!p8.s().e().equalsIgnoreCase("HEAD")) {
                        Exception v7_26 = p8.a();
                        if (v7_26 == null) {
                            v0_1.a(0);
                        } else {
                            v0_1.a(v7_26.a());
                        }
                    }
                    v0_1.a(this.c);
                    v0_1.a(2);
                }
            } else {
                Exception v7_29;
                Exception v2_6 = java.net.URI.create(this.c);
                String v8_5 = p8.a("Location", "");
                if (v8_5 == null) {
                    v7_29 = v2_6.resolve("");
                } else {
                    v7_29 = v2_6.resolve(v8_5);
                }
                Object[] v4_2 = new Object[2];
                v4_2[0] = v2_6.toString();
                v4_2[1] = v7_29.toString();
                v0_1.a(String.format("%s~!~%s", v4_2).getBytes());
                v0_1.a(this.c);
                v0_1.a(3);
            }
        } catch (Exception v7_6) {
            v7_6.printStackTrace();
            v0_1.a(v7_6, 1, this.c);
        }
        android.util.Log.i("HttpHanlder", "End Request");
        this.a.a(v0_1);
        return;
    }

Method EB.shouldInterceptRequest() calling method android.net.Uri.parse()


    public android.webkit.WebResourceResponse shouldInterceptRequest(android.webkit.WebView p5, String p6)
    {
        try {
            String v1_0 = android.net.Uri.parse(p6);
        } catch (String v1_2) {
            v1_2.printStackTrace();
            v1_0 = 0;
        }
        boolean v2_5 = new Object[1];
        v2_5[0] = p6;
        android.util.Log.d("RamcoCWViewClient", String.format("Intercept request : %s", v2_5));
        if (v1_0 == null) {
            return super.shouldInterceptRequest(p5, p6);
        } else {
            String v1_1 = v1_0.getLastPathSegment();
            if (!android.text.TextUtils.isEmpty(v1_1)) {
                if (!v1_1.equalsIgnoreCase("favicon.ico")) {
                    java.io.File v0_2 = this.a.d(v1_1.toLowerCase());
                    if (v0_2 == null) {
                        return super.shouldInterceptRequest(p5, p6);
                    } else {
                        return this.a(v0_2);
                    }
                } else {
                    return new android.webkit.WebResourceResponse("image/png", 0, 0);
                }
            } else {
                return super.shouldInterceptRequest(p5, p6);
            }
        }
    }

Method zt.<clinit>() calling method android.net.Uri.parse()


    static zt()
    {
        zt.a = android.net.Uri.parse("content://com.google.android.gsf.gservices");
        zt.b = android.net.Uri.parse("content://com.google.android.gsf.gservices/prefix");
        zt.c = java.util.regex.Pattern.compile("^(1|true|t|on|yes|y)$", 2);
        zt.d = java.util.regex.Pattern.compile("^(0|false|f|off|no|n)$", 2);
        zt.e = new java.util.concurrent.atomic.AtomicBoolean();
        zt.g = new java.util.HashMap();
        zt.h = new java.util.HashMap();
        zt.i = new java.util.HashMap();
        zt.j = new java.util.HashMap();
        String[] v0_14 = new String[0];
        zt.m = v0_14;
        return;
    }

Method org.apache.cordova.engine.SystemWebViewClient.shouldInterceptRequest() calling method android.net.Uri.parse()


    public android.webkit.WebResourceResponse shouldInterceptRequest(android.webkit.WebView p7, String p8)
    {
        try {
            if (this.parentEngine.pluginManager.shouldAllowRequest(p8)) {
                android.webkit.WebResourceResponse v3_0 = this.parentEngine.resourceApi;
                boolean v8_1 = android.net.Uri.parse(p8);
                String v4_0 = v3_0.remapUri(v8_1);
                if ((v8_1.equals(v4_0)) && (!org.apache.cordova.engine.SystemWebViewClient.needsSpecialsInAssetUrlFix(v8_1))) {
                    if (!org.apache.cordova.engine.SystemWebViewClient.needsKitKatContentUrlFix(v8_1)) {
                        return 0;
                    } else {
                    }
                }
                boolean v8_4 = v3_0.openForRead(v4_0, 1);
                return new android.webkit.WebResourceResponse(v8_4.mimeType, "UTF-8", v8_4.inputStream);
            } else {
                android.webkit.WebResourceResponse v3_4 = new StringBuilder();
                v3_4.append("URL blocked by whitelist: ");
                v3_4.append(p8);
                org.apache.cordova.LOG.w("SystemWebViewClient", v3_4.toString());
                return new android.webkit.WebResourceResponse("text/plain", "UTF-8", 0);
            }
        } catch (boolean v8_9) {
            if (!(v8_9 instanceof java.io.FileNotFoundException)) {
                org.apache.cordova.LOG.e("SystemWebViewClient", "Error occurred while loading a file (returning a 404).", v8_9);
            }
            return new android.webkit.WebResourceResponse("text/plain", "UTF-8", 0);
        }
    }

Method org.apache.cordova.camera.FileHelper.getRealPathFromURI_API11_And_Above() calling method android.net.Uri.parse()


    public static String getRealPathFromURI_API11_And_Above(android.content.Context p5, android.net.Uri p6)
    {
        boolean v0_11;
        if (android.os.Build$VERSION.SDK_INT < 19) {
            v0_11 = 0;
        } else {
            v0_11 = 1;
        }
        android.net.Uri v3_1 = 0;
        if ((!v0_11) || (!android.provider.DocumentsContract.isDocumentUri(p5, p6))) {
            if (!"content".equalsIgnoreCase(p6.getScheme())) {
                if ("file".equalsIgnoreCase(p6.getScheme())) {
                    return p6.getPath();
                }
            } else {
                if (!org.apache.cordova.camera.FileHelper.isGooglePhotosUri(p6)) {
                    return org.apache.cordova.camera.FileHelper.getDataColumn(p5, p6, 0, 0);
                } else {
                    return p6.getLastPathSegment();
                }
            }
        } else {
            if (!org.apache.cordova.camera.FileHelper.isExternalStorageDocument(p6)) {
                if (!org.apache.cordova.camera.FileHelper.isDownloadsDocument(p6)) {
                    if (org.apache.cordova.camera.FileHelper.isMediaDocument(p6)) {
                        String v6_2 = android.provider.DocumentsContract.getDocumentId(p6).split(":");
                        boolean v0_12 = v6_2[0];
                        if (!"image".equals(v0_12)) {
                            if (!"video".equals(v0_12)) {
                                if ("audio".equals(v0_12)) {
                                    v3_1 = android.provider.MediaStore$Audio$Media.EXTERNAL_CONTENT_URI;
                                }
                            } else {
                                v3_1 = android.provider.MediaStore$Video$Media.EXTERNAL_CONTENT_URI;
                            }
                        } else {
                            v3_1 = android.provider.MediaStore$Images$Media.EXTERNAL_CONTENT_URI;
                        }
                        boolean v0_14 = new String[1];
                        v0_14[0] = v6_2[1];
                        return org.apache.cordova.camera.FileHelper.getDataColumn(p5, v3_1, "_id=?", v0_14);
                    }
                } else {
                    return org.apache.cordova.camera.FileHelper.getDataColumn(p5, android.content.ContentUris.withAppendedId(android.net.Uri.parse("content://downloads/public_downloads"), Long.valueOf(android.provider.DocumentsContract.getDocumentId(p6)).longValue()), 0, 0);
                }
            } else {
                String v5_11 = android.provider.DocumentsContract.getDocumentId(p6).split(":");
                if ("primary".equalsIgnoreCase(v5_11[0])) {
                    String v6_11 = new StringBuilder();
                    v6_11.append(android.os.Environment.getExternalStorageDirectory());
                    v6_11.append("/");
                    v6_11.append(v5_11[1]);
                    return v6_11.toString();
                }
            }
        }
        return 0;
    }

Method org.apache.cordova.camera.FileHelper.getRealPath() calling method android.net.Uri.parse()


    public static String getRealPath(String p0, org.apache.cordova.CordovaInterface p1)
    {
        return org.apache.cordova.camera.FileHelper.getRealPath(android.net.Uri.parse(p0), p1);
    }

Method org.apache.cordova.camera.FileHelper.getMimeType() calling method android.net.Uri.parse()


    public static String getMimeType(String p2, org.apache.cordova.CordovaInterface p3)
    {
        String v2_3;
        android.net.Uri v0 = android.net.Uri.parse(p2);
        if (!p2.startsWith("content://")) {
            v2_3 = org.apache.cordova.camera.FileHelper.getMimeTypeForExtension(v0.getPath());
        } else {
            v2_3 = p3.getActivity().getContentResolver().getType(v0);
        }
        return v2_3;
    }

Method org.apache.cordova.camera.FileHelper.getInputStreamFromUriString() calling method android.net.Uri.parse()


    public static java.io.InputStream getInputStreamFromUriString(String p2, org.apache.cordova.CordovaInterface p3)
    {
        java.io.FileInputStream v2_1;
        if (!p2.startsWith("content")) {
            if (!p2.startsWith("file://")) {
                v2_1 = new java.io.FileInputStream(p2);
            } else {
                java.io.FileInputStream v0_2 = p2.indexOf("?");
                if (v0_2 > -1) {
                    p2 = p2.substring(0, v0_2);
                }
                if (!p2.startsWith("file:///android_asset/")) {
                    try {
                        java.io.FileInputStream v0_8 = p3.getActivity().getContentResolver().openInputStream(android.net.Uri.parse(p2));
                    } catch (Exception) {
                        v0_8 = 0;
                    }
                    if (v0_8 == null) {
                        v0_8 = new java.io.FileInputStream(org.apache.cordova.camera.FileHelper.getRealPath(p2, p3));
                    }
                    v2_1 = v0_8;
                } else {
                    v2_1 = p3.getActivity().getAssets().open(android.net.Uri.parse(p2).getPath().substring(15));
                }
            }
        } else {
            v2_1 = p3.getActivity().getContentResolver().openInputStream(android.net.Uri.parse(p2));
        }
        return v2_1;
    }

Method org.apache.cordova.Whitelist.isUrlWhiteListed() calling method android.net.Uri.parse()


    public boolean isUrlWhiteListed(String p4)
    {
        if (this.whiteList != null) {
            int v4_2 = android.net.Uri.parse(p4);
            java.util.Iterator v0_2 = this.whiteList.iterator();
            while (v0_2.hasNext()) {
                if (((org.apache.cordova.Whitelist$a) v0_2.next()).a(v4_2)) {
                    return 1;
                }
            }
            return 0;
        } else {
            return 1;
        }
    }

Method org.apache.cordova.CordovaPlugin.fromPluginUri() calling method android.net.Uri.parse()


    public android.net.Uri fromPluginUri(android.net.Uri p2)
    {
        return android.net.Uri.parse(p2.getQueryParameter("origUri"));
    }

Method oK.<init>() calling method android.net.Uri.parse()


    public oK(android.net.Uri p3)
    {
        if (!p3.getScheme().equals("content")) {
            this.c = p3;
            this.b = org.apache.cordova.camera.FileHelper.stripFileProtocol(p3.toString());
        } else {
            this.a = p3;
            this.b = this.a(this.a);
            String v3_5 = new StringBuilder();
            v3_5.append("file://");
            v3_5.append(this.b);
            this.c = android.net.Uri.parse(v3_5.toString());
        }
        return;
    }

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


    public static int c(android.content.Context p8, String p9, boolean p10)
    {
        Throwable v0 = 0;
        try {
            Throwable v8_4;
            android.database.Cursor v1_0 = p8.getContentResolver();
        } catch (Throwable v8_6) {
            if (v0 != null) {
                v0.close();
            }
            throw v8_6;
        } catch (Throwable v8_5) {
            Throwable v9_8 = 0;
            try {
                if (!(v8_5 instanceof com.google.android.gms.dynamite.DynamiteModule$a)) {
                    throw new com.google.android.gms.dynamite.DynamiteModule$a("V2 version check failed", v8_5, 0);
                } else {
                    throw v8_5;
                }
            } catch (Throwable v8_6) {
                v0 = v9_8;
            }
        }
        if (p10 == null) {
            v8_4 = "api";
        } else {
            v8_4 = "api_force_staging";
        }
        android.net.Uri v2_3 = new StringBuilder(((v8_4.length() + 42) + String.valueOf(p9).length()));
        v2_3.append("content://com.google.android.gms.chimera/");
        v2_3.append(v8_4);
        v2_3.append("/");
        v2_3.append(p9);
        Throwable v8_3 = v1_0.query(android.net.Uri.parse(v2_3.toString()), 0, 0, 0, 0);
        try {
            if ((v8_3 == null) || (!v8_3.moveToFirst())) {
                android.util.Log.w("DynamiteModule", "Failed to retrieve remote module version.");
                throw new com.google.android.gms.dynamite.DynamiteModule$a("Failed to connect to dynamite module ContentResolver.", 0);
            } else {
                Throwable v9_6 = v8_3.getInt(0);
                if (v9_6 > null) {
                    com.google.android.gms.dynamite.DynamiteModule.d = v8_3.getString(2);
                    android.database.Cursor v1_4 = v8_3.getColumnIndex("loaderVersion");
                    if (v1_4 >= null) {
                        com.google.android.gms.dynamite.DynamiteModule.e = v8_3.getInt(v1_4);
                    }
                    com.google.android.gms.dynamite.DynamiteModule$c v10_9 = ((com.google.android.gms.dynamite.DynamiteModule$c) com.google.android.gms.dynamite.DynamiteModule.f.get());
                    if ((v10_9 != null) && (v10_9.a == null)) {
                        v10_9.a = v8_3;
                        v8_3 = 0;
                    }
                }
                if (v8_3 != null) {
                    v8_3.close();
                }
                return v9_6;
            }
        } catch (Throwable v9_10) {
            v0 = v8_3;
            v8_6 = v9_10;
        } catch (Throwable v9_9) {
            v9_8 = v8_3;
            v8_5 = v9_9;
        }
    }

Method To.a() calling method android.net.Uri.parse()


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

Method To.<clinit>() calling method android.net.Uri.parse()


    static To()
    {
        android.net.Uri v0_3 = android.net.Uri.parse("https://plus.google.com/");
        To.a = v0_3;
        To.b = v0_3.buildUpon().appendPath("circles").appendPath("find").build();
        return;
    }

Method Ky.a() calling method android.net.Uri.parse()


    public static android.net.Uri a(String p2)
    {
        android.net.Uri v2_2;
        android.net.Uri v2_4 = String.valueOf(android.net.Uri.encode(p2));
        if (v2_4.length() == 0) {
            v2_2 = new String("content://com.google.android.gms.phenotype/");
        } else {
            v2_2 = "content://com.google.android.gms.phenotype/".concat(v2_4);
        }
        return android.net.Uri.parse(v2_2);
    }

Method com.ramco.ramcoerp.ReportPageActivity.onCreate() calling method android.webkit.WebView.setWebViewClient()


    public void onCreate(android.os.Bundle p8)
    {
        if ((VB.c(this) ^ 1) == 0) {
            this.setRequestedOrientation(0);
        } else {
            this.setRequestedOrientation(1);
        }
        super.onCreate(p8);
        this.setContentView(2131427359);
        this.L = this.j();
        String v8_9 = this.L;
        if (v8_9 != null) {
            v8_9.d(1);
            this.L.b(2131624019);
        }
        String v8_24;
        this.r = com.ramco.ramcoerp.RamcoApplication.a();
        String v0_6 = new Object[1];
        v0_6[0] = this.r.d().b().b();
        this.C = String.format("%s_msg", v0_6);
        if (!this.r.c(this.C)) {
            v8_24 = "";
        } else {
            v8_24 = this.getString(2131624065);
        }
        String v8_7;
        this.q = wB.a(this, v8_24, 0, 1, 0);
        this.z = new YA(this, this, this.r);
        String v8_31 = ((android.widget.ListView) this.findViewById(2131230855));
        this.F = new com.ramco.ramcoerp.ReportPageActivity$a(this, this, 2131427382, this.D);
        v8_31.setAdapter(this.F);
        this.H = ((android.print.PrintManager) this.getSystemService("print"));
        this.v();
        v8_31.setOnItemClickListener(this);
        this.G = ((android.widget.FrameLayout) this.findViewById(2131230777));
        ((android.widget.Button) this.findViewById(2131230764)).setOnClickListener(this);
        ((android.widget.Button) this.findViewById(2131230760)).setOnClickListener(this);
        this.B = ((com.github.barteksc.pdfviewer.PDFView) this.findViewById(2131230889));
        this.y = ((android.webkit.WebView) this.findViewById(2131230898));
        String v8_49 = this.y.getSettings();
        v8_49.setJavaScriptEnabled(1);
        v8_49.setAppCacheEnabled(1);
        v8_49.setDomStorageEnabled(1);
        v8_49.setJavaScriptCanOpenWindowsAutomatically(1);
        v8_49.setLayoutAlgorithm(android.webkit.WebSettings$LayoutAlgorithm.NORMAL);
        v8_49.setLoadWithOverviewMode(1);
        v8_49.setUseWideViewPort(1);
        this.y.setDownloadListener(this);
        this.y.setWebChromeClient(new JB(this));
        this.y.setWebViewClient(new KB(this, this));
        String v8_6 = this.getIntent().getExtras();
        if (v8_6 == null) {
            v8_7 = 0;
        } else {
            v8_7 = v8_6.getString("reportpagedetail");
        }
        if (android.text.TextUtils.isEmpty(v8_7)) {
            this.y.loadData("<html><head></head><body>Error</body></html>", "text/html", "utf-8");
        } else {
            String v0_2 = android.webkit.URLUtil.guessFileName(v8_7, 0, 0);
            android.webkit.WebView v3_8 = android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension(android.webkit.MimeTypeMap.getFileExtensionFromUrl(v8_7));
            if ((android.text.TextUtils.isEmpty(v3_8)) || (!((String) java.util.Objects.requireNonNull(v3_8)).contains("image"))) {
                this.y.loadUrl(v8_7);
            } else {
                android.webkit.WebView v3_12 = this.y;
                Object[] v6_4 = new Object[4];
                v6_4[0] = v0_2;
                v6_4[1] = v8_7;
                v6_4[2] = "%";
                v6_4[3] = "%";
                v3_12.loadData(String.format("<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=0.1\"><title>%s</title></head><body style=\"margin: 0px;\"><img style=\"-webkit-user-select: none\" src=\"%s\" width=\"100%s\" height=\"100%s\"></body></html>", v6_4), "text/html", "utf-8");
            }
        }
        return;
    }

Method com.ramco.ramcoerp.LoginActivity.I() calling method android.webkit.WebView.setWebViewClient()


    public void I()
    {
        this.y = this.N();
        this.z();
        if (!this.y.isInitialized()) {
            this.y.init(this.F, this.E, this.D);
        }
        this.F.onCordovaInit(this.y.getPluginManager());
        if ("media".equals(this.D.getString("DefaultVolumeStream", "").toLowerCase(java.util.Locale.ENGLISH))) {
            this.setVolumeControlStream(3);
        }
        this.J = ((android.webkit.WebView) this.y.getView());
        android.webkit.WebView v0_11 = this.J.getSettings();
        if (v0_11 != null) {
            v0_11.setUserAgentString(XA.c());
        }
        this.J.setWebViewClient(new EB(((org.apache.cordova.engine.SystemWebViewEngine) this.y.getEngine()), this.N));
        this.J.setWebChromeClient(new DB(((org.apache.cordova.engine.SystemWebViewEngine) this.y.getEngine())));
        return;
    }

Method org.apache.cordova.engine.SystemWebView.setWebViewClient() calling method android.webkit.WebView.setWebViewClient()


    public void setWebViewClient(android.webkit.WebViewClient p2)
    {
        this.viewClient = ((org.apache.cordova.engine.SystemWebViewClient) p2);
        super.setWebViewClient(p2);
        return;
    }

Method org.apache.cordova.engine.SystemWebViewEngine.evaluateJavascript() calling method android.webkit.WebView.evaluateJavascript()


    public void evaluateJavascript(String p3, android.webkit.ValueCallback p4)
    {
        if (android.os.Build$VERSION.SDK_INT < 19) {
            org.apache.cordova.LOG.d("SystemWebViewEngine", "This webview is using the old bridge");
        } else {
            this.webView.evaluateJavascript(p3, p4);
        }
        return;
    }

Method lB.run() calling method android.webkit.WebView.evaluateJavascript()


    public void run()
    {
        if (android.os.Build$VERSION.SDK_INT < 19) {
            org.apache.cordova.CordovaWebView v0_4 = this.b.y;
            String v1_4 = new StringBuilder();
            v1_4.append("javascript:");
            v1_4.append(this.a);
            v0_4.loadUrlIntoView(v1_4.toString(), 1);
        } else {
            com.ramco.ramcoerp.LoginActivity.j(this.b).evaluateJavascript(this.a, 0);
        }
        return;
    }

Method org.apache.cordova.engine.SystemWebViewEngine.exposeJsInterface() calling method android.webkit.WebView.addJavascriptInterface()


    public static void exposeJsInterface(android.webkit.WebView p1, org.apache.cordova.CordovaBridge p2)
    {
        p1.addJavascriptInterface(new qK(p2), "_cordovaNative");
        return;
    }

Method com.ramco.ramcoerp.ReportPageActivity.onCreate() calling method android.webkit.WebView.loadData()


    public void onCreate(android.os.Bundle p8)
    {
        if ((VB.c(this) ^ 1) == 0) {
            this.setRequestedOrientation(0);
        } else {
            this.setRequestedOrientation(1);
        }
        super.onCreate(p8);
        this.setContentView(2131427359);
        this.L = this.j();
        String v8_9 = this.L;
        if (v8_9 != null) {
            v8_9.d(1);
            this.L.b(2131624019);
        }
        String v8_24;
        this.r = com.ramco.ramcoerp.RamcoApplication.a();
        String v0_6 = new Object[1];
        v0_6[0] = this.r.d().b().b();
        this.C = String.format("%s_msg", v0_6);
        if (!this.r.c(this.C)) {
            v8_24 = "";
        } else {
            v8_24 = this.getString(2131624065);
        }
        String v8_7;
        this.q = wB.a(this, v8_24, 0, 1, 0);
        this.z = new YA(this, this, this.r);
        String v8_31 = ((android.widget.ListView) this.findViewById(2131230855));
        this.F = new com.ramco.ramcoerp.ReportPageActivity$a(this, this, 2131427382, this.D);
        v8_31.setAdapter(this.F);
        this.H = ((android.print.PrintManager) this.getSystemService("print"));
        this.v();
        v8_31.setOnItemClickListener(this);
        this.G = ((android.widget.FrameLayout) this.findViewById(2131230777));
        ((android.widget.Button) this.findViewById(2131230764)).setOnClickListener(this);
        ((android.widget.Button) this.findViewById(2131230760)).setOnClickListener(this);
        this.B = ((com.github.barteksc.pdfviewer.PDFView) this.findViewById(2131230889));
        this.y = ((android.webkit.WebView) this.findViewById(2131230898));
        String v8_49 = this.y.getSettings();
        v8_49.setJavaScriptEnabled(1);
        v8_49.setAppCacheEnabled(1);
        v8_49.setDomStorageEnabled(1);
        v8_49.setJavaScriptCanOpenWindowsAutomatically(1);
        v8_49.setLayoutAlgorithm(android.webkit.WebSettings$LayoutAlgorithm.NORMAL);
        v8_49.setLoadWithOverviewMode(1);
        v8_49.setUseWideViewPort(1);
        this.y.setDownloadListener(this);
        this.y.setWebChromeClient(new JB(this));
        this.y.setWebViewClient(new KB(this, this));
        String v8_6 = this.getIntent().getExtras();
        if (v8_6 == null) {
            v8_7 = 0;
        } else {
            v8_7 = v8_6.getString("reportpagedetail");
        }
        if (android.text.TextUtils.isEmpty(v8_7)) {
            this.y.loadData("<html><head></head><body>Error</body></html>", "text/html", "utf-8");
        } else {
            String v0_2 = android.webkit.URLUtil.guessFileName(v8_7, 0, 0);
            android.webkit.WebView v3_8 = android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension(android.webkit.MimeTypeMap.getFileExtensionFromUrl(v8_7));
            if ((android.text.TextUtils.isEmpty(v3_8)) || (!((String) java.util.Objects.requireNonNull(v3_8)).contains("image"))) {
                this.y.loadUrl(v8_7);
            } else {
                android.webkit.WebView v3_12 = this.y;
                Object[] v6_4 = new Object[4];
                v6_4[0] = v0_2;
                v6_4[1] = v8_7;
                v6_4[2] = "%";
                v6_4[3] = "%";
                v3_12.loadData(String.format("<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=0.1\"><title>%s</title></head><body style=\"margin: 0px;\"><img style=\"-webkit-user-select: none\" src=\"%s\" width=\"100%s\" height=\"100%s\"></body></html>", v6_4), "text/html", "utf-8");
            }
        }
        return;
    }

Method com.ramco.ramcoerp.ReportPageActivity.u() calling method android.webkit.WebView.loadUrl()


    public final void u()
    {
        try {
            if (this.s != null) {
                int v0_2 = this.getPackageManager();
                String v1_4 = new StringBuilder();
                v1_4.append(this.getPackageName());
                v1_4.append(".provider");
                String v1_1 = android.support.v4.content.FileProvider.a(this, v1_4.toString(), this.s);
                android.content.ComponentName v2_2 = this.getContentResolver().getType(v1_1);
                this.L.b(2131624019);
                if ((v2_2 == null) || (!v2_2.contains("pdf"))) {
                    this.B.setVisibility(8);
                    this.y.setVisibility(0);
                    if (v2_2 != null) {
                        if (!v2_2.contains("image")) {
                            String v3_6 = new android.content.Intent("android.intent.action.VIEW");
                            v3_6.setDataAndType(v1_1, v2_2);
                            v3_6.setFlags(1);
                            int v0_3 = v0_2.queryIntentActivities(v3_6, 0);
                            if (v0_3.size() <= 0) {
                                this.r.a(this, this.getTitle().toString(), "The file can\u2019t open.  No associate opener found.", 17301659, this);
                            } else {
                                int v0_6 = ((android.content.pm.ResolveInfo) v0_3.get(0));
                                if (v0_6 != 0) {
                                    v3_6.setComponent(new android.content.ComponentName(v0_6.activityInfo.packageName, v0_6.activityInfo.name));
                                }
                                v3_6.addCategory("android.intent.category.EMBED");
                                this.startActivityFromChild(this, v3_6, 8004);
                                this.w = 1;
                            }
                        } else {
                            this.y.loadUrl(v1_1.toString());
                        }
                    }
                } else {
                    this.L.a(this.s.getName());
                    this.y.setVisibility(8);
                    this.B.setVisibility(0);
                    int v0_16 = this.B.a(this.s);
                    v0_16.c(1);
                    v0_16.d(0);
                    v0_16.b(1);
                    v0_16.a(0);
                    v0_16.a(1);
                    v0_16.b(0);
                    v0_16.a(this);
                    v0_16.a();
                }
            }
        } catch (int v0_1) {
            v0_1.printStackTrace();
        }
        return;
    }

Method com.ramco.ramcoerp.ReportPageActivity.onDestroy() calling method android.webkit.WebView.loadUrl()


    public void onDestroy()
    {
        android.webkit.WebView v0_0 = this.q;
        if (v0_0 != null) {
            v0_0.dismiss();
            this.q = 0;
        }
        this.y.stopLoading();
        this.y.loadUrl("about:blank");
        this.y = 0;
        super.onDestroy();
        return;
    }

Method com.ramco.ramcoerp.ReportPageActivity.onCreate() calling method android.webkit.WebView.loadUrl()


    public void onCreate(android.os.Bundle p8)
    {
        if ((VB.c(this) ^ 1) == 0) {
            this.setRequestedOrientation(0);
        } else {
            this.setRequestedOrientation(1);
        }
        super.onCreate(p8);
        this.setContentView(2131427359);
        this.L = this.j();
        String v8_9 = this.L;
        if (v8_9 != null) {
            v8_9.d(1);
            this.L.b(2131624019);
        }
        String v8_24;
        this.r = com.ramco.ramcoerp.RamcoApplication.a();
        String v0_6 = new Object[1];
        v0_6[0] = this.r.d().b().b();
        this.C = String.format("%s_msg", v0_6);
        if (!this.r.c(this.C)) {
            v8_24 = "";
        } else {
            v8_24 = this.getString(2131624065);
        }
        String v8_7;
        this.q = wB.a(this, v8_24, 0, 1, 0);
        this.z = new YA(this, this, this.r);
        String v8_31 = ((android.widget.ListView) this.findViewById(2131230855));
        this.F = new com.ramco.ramcoerp.ReportPageActivity$a(this, this, 2131427382, this.D);
        v8_31.setAdapter(this.F);
        this.H = ((android.print.PrintManager) this.getSystemService("print"));
        this.v();
        v8_31.setOnItemClickListener(this);
        this.G = ((android.widget.FrameLayout) this.findViewById(2131230777));
        ((android.widget.Button) this.findViewById(2131230764)).setOnClickListener(this);
        ((android.widget.Button) this.findViewById(2131230760)).setOnClickListener(this);
        this.B = ((com.github.barteksc.pdfviewer.PDFView) this.findViewById(2131230889));
        this.y = ((android.webkit.WebView) this.findViewById(2131230898));
        String v8_49 = this.y.getSettings();
        v8_49.setJavaScriptEnabled(1);
        v8_49.setAppCacheEnabled(1);
        v8_49.setDomStorageEnabled(1);
        v8_49.setJavaScriptCanOpenWindowsAutomatically(1);
        v8_49.setLayoutAlgorithm(android.webkit.WebSettings$LayoutAlgorithm.NORMAL);
        v8_49.setLoadWithOverviewMode(1);
        v8_49.setUseWideViewPort(1);
        this.y.setDownloadListener(this);
        this.y.setWebChromeClient(new JB(this));
        this.y.setWebViewClient(new KB(this, this));
        String v8_6 = this.getIntent().getExtras();
        if (v8_6 == null) {
            v8_7 = 0;
        } else {
            v8_7 = v8_6.getString("reportpagedetail");
        }
        if (android.text.TextUtils.isEmpty(v8_7)) {
            this.y.loadData("<html><head></head><body>Error</body></html>", "text/html", "utf-8");
        } else {
            String v0_2 = android.webkit.URLUtil.guessFileName(v8_7, 0, 0);
            android.webkit.WebView v3_8 = android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension(android.webkit.MimeTypeMap.getFileExtensionFromUrl(v8_7));
            if ((android.text.TextUtils.isEmpty(v3_8)) || (!((String) java.util.Objects.requireNonNull(v3_8)).contains("image"))) {
                this.y.loadUrl(v8_7);
            } else {
                android.webkit.WebView v3_12 = this.y;
                Object[] v6_4 = new Object[4];
                v6_4[0] = v0_2;
                v6_4[1] = v8_7;
                v6_4[2] = "%";
                v6_4[3] = "%";
                v3_12.loadData(String.format("<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=0.1\"><title>%s</title></head><body style=\"margin: 0px;\"><img style=\"-webkit-user-select: none\" src=\"%s\" width=\"100%s\" height=\"100%s\"></body></html>", v6_4), "text/html", "utf-8");
            }
        }
        return;
    }

Method com.ramco.ramcoerp.LoginActivity.r() calling method android.webkit.WebView.loadUrl()


    public void r()
    {
        this.ma = 0;
        this.M = 1;
        this.K = 0;
        this.L = 0;
        this.U = 0;
        this.I.setVisibility(8);
        this.ta.setVisibility(8);
        this.Q.setVisibility(0);
        String v2_2 = this.R;
        if ((v2_2 != null) && (v2_2.isShowing())) {
            this.R.hide();
        }
        String v2_5 = this.S;
        if (v2_5 != null) {
            v2_5.setSlidingEnabled(0);
            if (this.S.b()) {
                this.S.a(1);
            }
        }
        this.b("1");
        XA.a();
        this.N.a(0);
        this.na = 0;
        String v0_6 = this.J;
        if (v0_6 != null) {
            v0_6.stopLoading();
            this.J.loadUrl("about:blank");
            this.J.clearHistory();
            this.J.clearSslPreferences();
            this.J.clearCache(1);
            this.J.clearFocus();
            this.J.clearAnimation();
            this.J.clearMatches();
            if (!this.W.isEmpty()) {
                this.W = "";
            }
        }
        this.X();
        return;
    }

Method com.ramco.ramcoerp.LoginActivity.a() calling method android.webkit.WebView.loadUrl()


    public void a(Boolean p2)
    {
        this.K = 0;
        this.L = 0;
        this.ta.setVisibility(8);
        this.W = "";
        int v2_9 = this.J;
        if (v2_9 != 0) {
            v2_9.loadUrl("about:blank");
        }
        int v2_1 = this.P;
        if ((v2_1 == 0) || (!android.text.TextUtils.isEmpty(v2_1.r()))) {
            this.Da = 1;
        }
        if (!this.Da) {
            this.m();
        } else {
            if (android.os.Build$VERSION.SDK_INT < 21) {
                this.finish();
            } else {
                this.finishAndRemoveTask();
            }
        }
        return;
    }

Method org.apache.cordova.engine.SystemWebViewEngine.loadUrl() calling method android.webkit.WebView.loadUrl()


    public void loadUrl(String p1, boolean p2)
    {
        this.webView.loadUrl(p1);
        return;
    }