Info Call to External Storage API

Description

List of all external storage API calls. Insecure storage of sensitive information by setting insecure permissions or storing data without encryption might expose this information to an attacker.

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.ramco.ramcoerp.ReportPageActivity.m() calling method java.io.FileOutputStream.<init>()


    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 tB$b.run() calling method java.io.FileOutputStream.<init>()


    public void run()
    {
        try {
            String v2_0 = new java.io.FileInputStream(this.f);
            try {
                String v3_0 = new java.io.FileOutputStream(this.b.getFileDescriptor());
                try {
                    android.print.PrintDocumentAdapter$WriteResultCallback v1_4 = new byte[16384];
                } catch (android.print.PrintDocumentAdapter$WriteResultCallback v1_3) {
                    this.d.onWriteFailed(v1_3.getMessage());
                    android.util.Log.e(this.getClass().getSimpleName(), "Exception printing PDF", v1_3);
                    if (v2_0 != null) {
                        v2_0.close();
                    }
                    if (v3_0 == null) {
                        return;
                    } else {
                        v3_0.close();
                        return;
                    }
                }
                while(true) {
                    android.print.PageRange[] v4_2 = v2_0.read(v1_4);
                    if ((v4_2 < null) || (this.c.isCanceled())) {
                        break;
                    }
                    v3_0.write(v1_4, 0, v4_2);
                }
                if (!this.c.isCanceled()) {
                    android.print.PrintDocumentAdapter$WriteResultCallback v1_7 = this.d;
                    android.print.PageRange[] v4_4 = new android.print.PageRange[1];
                    v4_4[0] = android.print.PageRange.ALL_PAGES;
                    v1_7.onWriteFinished(v4_4);
                } else {
                    this.d.onWriteCancelled();
                }
                v2_0.close();
                v3_0.close();
                return;
            } catch (String v3_3) {
                v3_0 = 16384;
                android.print.PrintDocumentAdapter$WriteResultCallback v1_1 = v3_3;
                if (v2_0 == null) {
                    if (v3_0 != null) {
                        v3_0.close();
                    }
                } else {
                    v2_0.close();
                }
                throw v1_1;
            } catch (String v3_2) {
                v3_0 = 16384;
                v1_3 = v3_2;
            }
        } catch (String v2_6) {
            v3_0 = 0;
            v1_1 = v2_6;
            v2_0 = 0;
        } catch (String v2_2) {
            v3_0 = 0;
            v1_3 = v2_2;
            v2_0 = 0;
        } catch (android.print.PrintDocumentAdapter$WriteResultCallback v1_1) {
        }
    }

Method org.apache.cordova.camera.CameraLauncher.outputModifiedBitmap() calling method java.io.FileOutputStream.<init>()


    private String outputModifiedBitmap(android.graphics.Bitmap p4, android.net.Uri p5)
    {
        String v5_1;
        String v5_2 = org.apache.cordova.camera.FileHelper.getRealPath(p5, this.cordova);
        if (v5_2 == null) {
            boolean v0_1;
            String v5_5 = new StringBuilder();
            v5_5.append("modified.");
            if (this.encodingType != 0) {
                v0_1 = "png";
            } else {
                v0_1 = "jpg";
            }
            v5_5.append(v0_1);
            v5_1 = v5_5.toString();
        } else {
            v5_1 = v5_2.substring((v5_2.lastIndexOf(47) + 1));
        }
        android.graphics.Bitmap$CompressFormat v1_3;
        boolean v0_6 = new StringBuilder();
        v0_6.append(this.getTempDirectoryPath());
        v0_6.append("/");
        v0_6.append(v5_1);
        String v5_3 = v0_6.toString();
        boolean v0_8 = new java.io.FileOutputStream(v5_3);
        if (this.encodingType != 0) {
            v1_3 = android.graphics.Bitmap$CompressFormat.PNG;
        } else {
            v1_3 = android.graphics.Bitmap$CompressFormat.JPEG;
        }
        p4.compress(v1_3, this.mQuality, v0_8);
        v0_8.close();
        int v4_1 = this.exifData;
        if ((v4_1 != 0) && (this.encodingType == 0)) {
            try {
                if ((this.correctOrientation) && (this.orientationCorrected)) {
                    v4_1.resetOrientation();
                }
            } catch (int v4_2) {
                v4_2.printStackTrace();
            }
            this.exifData.createOutFile(v5_3);
            this.exifData.writeExifData();
            this.exifData = 0;
        }
        return v5_3;
    }

Method DB.a() calling method java.io.FileOutputStream.<init>()


    public static android.net.Uri a(android.graphics.Bitmap p5)
    {
        android.net.Uri v0_1 = new StringBuilder();
        v0_1.append("IMG_");
        v0_1.append(String.valueOf(System.currentTimeMillis()));
        v0_1.append(".jpg");
        android.net.Uri v0_2 = v0_1.toString();
        java.io.FileOutputStream v1_1 = new java.io.File(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES), "com.ramco.ramcoerp");
        if ((!v1_1.exists()) && (!v1_1.mkdirs())) {
            android.util.Log.i("RamcoChromeClient", "File direct creation error.");
        }
        String v2_6 = new java.io.File(v1_1, v0_2);
        try {
            java.io.FileOutputStream v1_4 = new java.io.FileOutputStream(v2_6);
            p5.compress(android.graphics.Bitmap$CompressFormat.JPEG, 100, v1_4);
            v1_4.close();
            android.net.Uri v0_3 = android.net.Uri.fromFile(v2_6);
        } catch (java.io.IOException v5_1) {
            v5_1.printStackTrace();
        }
        return v0_3;
    }

Method uf.a() calling method java.io.FileOutputStream.<init>()


    public varargs Throwable a(Void[] p8)
    {
        try {
            if (!this.a.isCanceled()) {
                android.graphics.Bitmap v8_10 = new android.print.pdf.PrintedPdfDocument(this.h.c, this.b);
                android.graphics.Bitmap v1_1 = vf.a(this.c, this.b.getColorMode());
                if (!this.a.isCanceled()) {
                    try {
                        java.io.FileOutputStream v2_6;
                        java.io.FileDescriptor v3_0 = v8_10.startPage(1);
                    } catch (Throwable v0_1) {
                        v8_10.close();
                        if (this.f != null) {
                            this.f.close();
                        }
                        if (v1_1 != this.c) {
                            v1_1.recycle();
                        }
                        throw v0_1;
                    }
                    if (!vf.b) {
                        android.graphics.Matrix v4_2 = new android.print.pdf.PrintedPdfDocument(this.h.c, this.d);
                        java.io.FileOutputStream v2_5 = v4_2.startPage(1);
                        android.graphics.Canvas v5_3 = new android.graphics.RectF(v2_5.getInfo().getContentRect());
                        v4_2.finishPage(v2_5);
                        v4_2.close();
                        v2_6 = v5_3;
                    } else {
                        v2_6 = new android.graphics.RectF(v3_0.getInfo().getContentRect());
                    }
                    android.graphics.Matrix v4_6 = vf.a(v1_1.getWidth(), v1_1.getHeight(), v2_6, this.e);
                    if (!vf.b) {
                        v4_6.postTranslate(v2_6.left, v2_6.top);
                        v3_0.getCanvas().clipRect(v2_6);
                    } else {
                    }
                    v3_0.getCanvas().drawBitmap(v1_1, v4_6, 0);
                    v8_10.finishPage(v3_0);
                    if (!this.a.isCanceled()) {
                        v8_10.writeTo(new java.io.FileOutputStream(this.f.getFileDescriptor()));
                        v8_10.close();
                        if (this.f != null) {
                            this.f.close();
                        }
                        if (v1_1 != this.c) {
                            v1_1.recycle();
                        }
                        return 0;
                    } else {
                        v8_10.close();
                        if (this.f != null) {
                            this.f.close();
                        }
                        if (v1_1 != this.c) {
                            v1_1.recycle();
                        }
                        return 0;
                    }
                } else {
                    return 0;
                }
            } else {
                return 0;
            }
        } catch (android.graphics.Bitmap v8_2) {
            return v8_2;
        }
    }

Method org.apache.cordova.CordovaResourceApi.openOutputStream() calling method java.io.FileOutputStream.<init>()


    public java.io.OutputStream openOutputStream(android.net.Uri p3, boolean p4)
    {
        this.assertBackgroundThread();
        StringBuilder v0_0 = org.apache.cordova.CordovaResourceApi.getUriType(p3);
        if (v0_0 == null) {
            StringBuilder v0_5 = new java.io.File(p3.getPath());
            java.io.FileOutputStream v3_7 = v0_5.getParentFile();
            if (v3_7 != null) {
                v3_7.mkdirs();
            }
            return new java.io.FileOutputStream(v0_5, p4);
        } else {
            if ((v0_0 != 2) && (v0_0 != 3)) {
                StringBuilder v0_2 = new StringBuilder();
                v0_2.append("URI not supported by CordovaResourceApi: ");
                v0_2.append(p3);
                throw new java.io.FileNotFoundException(v0_2.toString());
            } else {
                String v4_3;
                if (p4 == null) {
                    v4_3 = "w";
                } else {
                    v4_3 = "wa";
                }
                return this.contentResolver.openAssetFileDescriptor(p3, v4_3).createOutputStream();
            }
        }
    }

Method iC$b$a.b() calling method java.io.FileOutputStream.<init>()


    public final java.io.OutputStream b()
    {
        try {
            if (iC$b$a.d == null) {
                iC$b$a.d = new java.io.FileOutputStream(iC$b$a.a);
            }
        } catch (java.io.OutputStream v1_4) {
            throw v1_4;
        }
        return iC$b$a.d;
    }

Method Ub.a() calling method java.io.FileOutputStream.<init>()


    public static void a(java.util.zip.ZipFile p5, java.util.zip.ZipEntry p6, java.io.File p7, String p8)
    {
        java.io.InputStream v5_1 = p5.getInputStream(p6);
        StringBuilder v0_6 = new StringBuilder();
        v0_6.append("tmp-");
        v0_6.append(p8);
        java.io.File v8_1 = java.io.File.createTempFile(v0_6.toString(), ".zip", p7.getParentFile());
        StringBuilder v0_2 = new StringBuilder();
        v0_2.append("Extracting ");
        v0_2.append(v8_1.getPath());
        android.util.Log.i("MultiDex", v0_2.toString());
        try {
            StringBuilder v0_7 = new java.util.zip.ZipOutputStream(new java.io.BufferedOutputStream(new java.io.FileOutputStream(v8_1)));
        } catch (java.io.IOException v6_2) {
            ark>Ubark>.a(v5_1);
            v8_1.delete();
            throw v6_2;
        }
        int v2_3 = new java.util.zip.ZipEntry("classes.dex");
        v2_3.setTime(p6.getTime());
        v0_7.putNextEntry(v2_3);
        java.io.IOException v6_4 = new byte[16384];
        while(true) {
            int v2_4 = v5_1.read(v6_4);
            if (v2_4 == -1) {
                break;
            }
            v0_7.write(v6_4, 0, v2_4);
        }
        v0_7.closeEntry();
        v0_7.close();
        if (!v8_1.setReadOnly()) {
            StringBuilder v0_9 = new StringBuilder();
            v0_9.append("Failed to mark readonly \"");
            v0_9.append(v8_1.getAbsolutePath());
            v0_9.append("\" (tmp of \"");
            v0_9.append(p7.getAbsolutePath());
            v0_9.append("\")");
            throw new java.io.IOException(v0_9.toString());
        } else {
            java.io.IOException v6_9 = new StringBuilder();
            v6_9.append("Renaming to ");
            v6_9.append(p7.getPath());
            android.util.Log.i("MultiDex", v6_9.toString());
            if (!v8_1.renameTo(p7)) {
                StringBuilder v0_13 = new StringBuilder();
                v0_13.append("Failed to rename \"");
                v0_13.append(v8_1.getAbsolutePath());
                v0_13.append("\" to \"");
                v0_13.append(p7.getAbsolutePath());
                v0_13.append("\"");
                throw new java.io.IOException(v0_13.toString());
            } else {
                ark>Ubark>.a(v5_1);
                v8_1.delete();
                return;
            }
        }
    }

Method RB.a() calling method java.io.FileOutputStream.<init>()


    public static void a(lJ p3, String p4)
    {
        java.io.BufferedOutputStream v0_1 = new java.io.File(p4);
        if (v0_1.exists()) {
            v0_1.delete();
        }
        java.io.BufferedOutputStream v0_3 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p4));
        byte[] v4_2 = new byte[4096];
        while(true) {
            int v1_0 = p3.read(v4_2);
            if (v1_0 == -1) {
                break;
            }
            v0_3.write(v4_2, 0, v1_0);
        }
        v0_3.close();
        return;
    }

Method Fe.a() calling method java.io.FileOutputStream.<init>()


    public static boolean a(java.io.File p5, java.io.InputStream p6)
    {
        android.os.StrictMode$ThreadPolicy v0 = android.os.StrictMode.allowThreadDiskWrites();
        int v2_1 = 0;
        try {
            StringBuilder v3_3 = new java.io.FileOutputStream(p5, 0);
            try {
                int v5_7 = new byte[1024];
            } catch (int v5_4) {
                v2_1 = v3_3;
                ark>Feark>.a(v2_1);
                android.os.StrictMode.setThreadPolicy(v0);
                throw v5_4;
            } catch (int v5_1) {
                v2_1 = v3_3;
                StringBuilder v3_1 = new StringBuilder();
                v3_1.append("Error copying resource contents to temp file: ");
                v3_1.append(v5_1.getMessage());
                android.util.Log.e("TypefaceCompatUtil", v3_1.toString());
                ark>Feark>.a(v2_1);
                android.os.StrictMode.setThreadPolicy(v0);
                return 0;
            }
            while(true) {
                int v2_0 = p6.read(v5_7);
                if (v2_0 == -1) {
                    break;
                }
                v3_3.write(v5_7, 0, v2_0);
            }
            ark>Feark>.a(v3_3);
            android.os.StrictMode.setThreadPolicy(v0);
            return 1;
        } catch (int v5_4) {
        } catch (int v5_1) {
            v3_1 = new StringBuilder();
            v3_1.append("Error copying resource contents to temp file: ");
            v3_1.append(v5_1.getMessage());
            android.util.Log.e("TypefaceCompatUtil", v3_1.toString());
            ark>Feark>.a(v2_1);
            android.os.StrictMode.setThreadPolicy(v0);
            return 0;
        }
    }

Method ye.a() calling method java.io.FileInputStream.<init>()


    public android.graphics.Typeface a(android.content.Context p5, android.os.CancellationSignal p6, Df$b[] p7, int p8)
    {
        if (p7.length >= 1) {
            try {
                Throwable v6_1 = p5.getContentResolver().openFileDescriptor(this.a(p7, p8).c(), "r", p6);
                try {
                    Throwable v7_1 = this.a(v6_1);
                } catch (Throwable v5_6) {
                    Throwable v7_7 = 0;
                    if (v6_1 != null) {
                        if (v7_7 == null) {
                            v6_1.close();
                        } else {
                            try {
                                v6_1.close();
                            } catch (Throwable v6_2) {
                                v7_7.addSuppressed(v6_2);
                            }
                        }
                    }
                    throw v5_6;
                } catch (Throwable v5_5) {
                    try {
                        throw v5_5;
                    } catch (Throwable v7_5) {
                        v7_7 = v5_5;
                        v5_6 = v7_5;
                    }
                }
                if (v7_1 != null) {
                    if (v7_1.canRead()) {
                        Throwable v5_1 = android.graphics.Typeface.createFromFile(v7_1);
                        if (v6_1 != null) {
                            v6_1.close();
                        }
                        return v5_1;
                    } else {
                    }
                }
                Throwable v7_3 = new java.io.FileInputStream(v6_1.getFileDescriptor());
                try {
                    Throwable v5_2 = super.a(p5, v7_3);
                } catch (Throwable v5_4) {
                    Throwable v8_4 = 0;
                    if (v8_4 == null) {
                        v7_3.close();
                    } else {
                        try {
                            v7_3.close();
                        } catch (Throwable v7_4) {
                            v8_4.addSuppressed(v7_4);
                        }
                    }
                    throw v5_4;
                } catch (Throwable v5_3) {
                    try {
                        throw v5_3;
                    } catch (Throwable v8_3) {
                        v8_4 = v5_3;
                        v5_4 = v8_3;
                    }
                }
                v7_3.close();
                if (v6_1 != null) {
                    v6_1.close();
                }
                return v5_2;
            } catch (java.io.IOException) {
                return 0;
            }
        } else {
            return 0;
        }
    }

Method tB$b.run() calling method java.io.FileInputStream.<init>()


    public void run()
    {
        try {
            String v2_0 = new java.io.FileInputStream(this.f);
            try {
                String v3_0 = new java.io.FileOutputStream(this.b.getFileDescriptor());
                try {
                    android.print.PrintDocumentAdapter$WriteResultCallback v1_4 = new byte[16384];
                } catch (android.print.PrintDocumentAdapter$WriteResultCallback v1_3) {
                    this.d.onWriteFailed(v1_3.getMessage());
                    android.util.Log.e(this.getClass().getSimpleName(), "Exception printing PDF", v1_3);
                    if (v2_0 != null) {
                        v2_0.close();
                    }
                    if (v3_0 == null) {
                        return;
                    } else {
                        v3_0.close();
                        return;
                    }
                    v2_0.close();
                    v3_0.close();
                    return;
                }
                while(true) {
                    android.print.PageRange[] v4_2 = v2_0.read(v1_4);
                    if ((v4_2 < null) || (this.c.isCanceled())) {
                        break;
                    }
                    v3_0.write(v1_4, 0, v4_2);
                }
                if (!this.c.isCanceled()) {
                    android.print.PrintDocumentAdapter$WriteResultCallback v1_7 = this.d;
                    android.print.PageRange[] v4_4 = new android.print.PageRange[1];
                    v4_4[0] = android.print.PageRange.ALL_PAGES;
                    v1_7.onWriteFinished(v4_4);
                } else {
                    this.d.onWriteCancelled();
                }
            } catch (String v3_3) {
                v3_0 = 16384;
                android.print.PrintDocumentAdapter$WriteResultCallback v1_1 = v3_3;
                if (v2_0 == null) {
                    if (v3_0 != null) {
                        v3_0.close();
                    }
                } else {
                    v2_0.close();
                }
                throw v1_1;
            } catch (String v3_2) {
                v3_0 = 16384;
                v1_3 = v3_2;
            }
        } catch (String v2_6) {
            v3_0 = 0;
            v1_1 = v2_6;
            v2_0 = 0;
        } catch (String v2_2) {
            v3_0 = 0;
            v1_3 = v2_2;
            v2_0 = 0;
        } catch (android.print.PrintDocumentAdapter$WriteResultCallback v1_1) {
        }
    }

Method org.apache.cordova.camera.CameraLauncher.writeUncompressedImage() calling method java.io.FileInputStream.<init>()


    private void writeUncompressedImage(android.net.Uri p2, android.net.Uri p3)
    {
        this.writeUncompressedImage(new java.io.FileInputStream(org.apache.cordova.camera.FileHelper.stripFileProtocol(p2.toString())), p3);
        return;
    }

Method EB.a() calling method java.io.FileInputStream.<init>()


    public final android.webkit.WebResourceResponse a(java.io.File p7)
    {
        String v0_3;
        String v0_1 = p7.getAbsolutePath().toLowerCase();
        String v1_20 = new StringBuilder();
        v1_20.append("File attached request ");
        v1_20.append(v0_1);
        android.util.Log.d("RamcoCWViewClient", v1_20.toString());
        if (!v0_1.endsWith(".js")) {
            if (!v0_1.endsWith(".woff")) {
                if (!v0_1.endsWith(".ttf")) {
                    if (!v0_1.endsWith(".json")) {
                        if (!v0_1.endsWith(".css")) {
                            if ((!v0_1.endsWith(".png")) && ((!v0_1.endsWith(".jpg")) && ((!v0_1.endsWith(".jpeg")) && (!v0_1.endsWith(".gif"))))) {
                                if ((!v0_1.endsWith(".htm")) && (!v0_1.endsWith(".html"))) {
                                    v0_3 = "";
                                } else {
                                    v0_3 = "text/html";
                                }
                            } else {
                                String v1_24 = v0_1.length();
                                int v3_1 = v0_1.lastIndexOf(".");
                                String v1_25 = (v1_24 - (v1_24 - v3_1));
                                StringBuilder v4_2 = new StringBuilder();
                                v4_2.append("image/");
                                v4_2.append(v0_1.substring(v3_1, v1_25));
                                v0_3 = v4_2.toString();
                            }
                        } else {
                            v0_3 = "text/css";
                        }
                    } else {
                        v0_3 = "application/json";
                    }
                } else {
                    v0_3 = "application/x-font-ttf";
                }
            } else {
                v0_3 = "application/x-font-woff";
            }
        } else {
            v0_3 = "text/javascript";
        }
        try {
            String v1_27 = new java.io.FileInputStream(p7);
        } catch (java.io.FileNotFoundException) {
            v1_27 = new java.io.ByteArrayInputStream("".getBytes(java.nio.charset.StandardCharsets.UTF_8));
        }
        return new android.webkit.WebResourceResponse(v0_3, "UTF-8", v1_27);
    }

Method org.apache.cordova.camera.FileHelper.getInputStreamFromUriString() calling method java.io.FileInputStream.<init>()


    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.CordovaResourceApi.openForRead() calling method java.io.FileInputStream.<init>()


    public org.apache.cordova.CordovaResourceApi$OpenForReadResult openForRead(android.net.Uri p10, boolean p11)
    {
        if (!p11) {
            this.assertBackgroundThread();
        }
        switch (org.apache.cordova.CordovaResourceApi.getUriType(p10)) {
            case 0:
                java.io.InputStream v2_1 = new java.io.FileInputStream(p10.getPath());
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v7_0 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult;
                v7_0(p10, v2_1, this.getMimeTypeFromPath(p10.getPath()), v2_1.getChannel().size(), 0);
                return v7_0;
            case 1:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v0_22 = p10.getPath().substring(15);
                String v3 = -1;
                try {
                    java.io.InputStream v2_17 = this.assetManager.openFd(v0_22);
                    java.io.InputStream v5_2 = v2_17.createInputStream();
                    String v3_7 = v2_17.getLength();
                } catch (java.io.FileNotFoundException) {
                    v5_2 = this.assetManager.open(v0_22);
                }
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v7_3 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult;
                v7_3(p10, v5_2, this.getMimeTypeFromPath(v0_22), v3_7, v2_17);
                return v7_3;
            case 2:
            case 3:
                String v3_6 = this.contentResolver.getType(p10);
                StringBuilder v6_2 = this.contentResolver.openAssetFileDescriptor(p10, "r");
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v7_2 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult;
                v7_2(p10, v6_2.createInputStream(), v3_6, v6_2.getLength(), v6_2);
                return v7_2;
            case 4:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v0_16 = this.readDataUri(p10);
                if (v0_16 == null) {
                } else {
                    return v0_16;
                }
            case 5:
            case 6:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v0_14 = ((java.net.HttpURLConnection) new java.net.URL(p10.toString()).openConnection());
                v0_14.setDoInput(1);
                java.io.InputStream v2_9 = v0_14.getHeaderField("Content-Type");
                if (v2_9 != null) {
                    v2_9 = v2_9.split(";")[0];
                }
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v7_1 = new org.apache.cordova.CordovaResourceApi$OpenForReadResult;
                v7_1(p10, v0_14.getInputStream(), v2_9, ((long) v0_14.getContentLength()), 0);
                return v7_1;
            case 7:
                org.apache.cordova.CordovaResourceApi$OpenForReadResult v0_23 = this.pluginManager.getPlugin(p10.getHost());
                if (v0_23 == null) {
                    java.io.InputStream v2_5 = new StringBuilder();
                    v2_5.append("Invalid plugin ID in URI: ");
                    v2_5.append(p10);
                    throw new java.io.FileNotFoundException(v2_5.toString());
                } else {
                    return v0_23.handleOpenForRead(p10);
                }
            default:
        }
        java.io.InputStream v2_4 = new StringBuilder();
        v2_4.append("URI not supported by CordovaResourceApi: ");
        v2_4.append(p10);
        throw new java.io.FileNotFoundException(v2_4.toString());
    }

Method iC$b$a.a() calling method java.io.FileInputStream.<init>()


    public final java.io.DataInputStream a()
    {
        try {
            if (ark>iC$b$aark>.c == null) {
                try {
                    ark>iC$b$aark>.c = new java.io.DataInputStream(new java.io.FileInputStream(ark>iC$b$aark>.a));
                } catch (java.io.IOException v1_5) {
                    String v3_1 = new StringBuilder();
                    v3_1.append("Failed to open ");
                    v3_1.append(ark>iC$b$aark>.a);
                    v3_1.append(" for reading");
                    throw new SecurityException(v3_1.toString(), v1_5);
                }
            }
        } catch (java.io.IOException v1_2) {
            throw v1_2;
        }
        return ark>iC$b$aark>.c;
    }

Method VB.a() calling method java.io.FileInputStream.<init>()


    public static String a(java.io.File p2)
    {
        try {
            int v0_1 = new java.io.FileInputStream(p2);
            java.io.IOException v2_3 = new byte[v0_1.available()];
            v0_1.read(v2_3);
            v0_1.close();
            int v0_2 = new String(v2_3, "UTF-8");
        } catch (java.io.IOException v2_1) {
            v2_1.printStackTrace();
            v0_2 = 0;
        }
        return v0_2;
    }

Method VA.a() calling method java.io.FileInputStream.<init>()


    public android.graphics.Bitmap a(org.json.JSONObject p5)
    {
        java.io.FileInputStream v0_0 = "";
        if (p5 != null) {
            Object[] v1_1 = new Object[2];
            v1_1[0] = p5.optString("aname", "");
            v1_1[1] = p5.optString("startui", "");
            v0_0 = String.format("%s_%s.png", v1_1);
        }
        java.io.FileNotFoundException v5_5;
        java.io.FileNotFoundException v5_4 = ark>VAark>.a.d(v0_0);
        if (v5_4 == null) {
            v5_5 = 0;
        } else {
            try {
                v5_5 = android.graphics.BitmapFactory.decodeStream(new java.io.FileInputStream(v5_4));
            } catch (java.io.FileNotFoundException v5_6) {
                v5_6.printStackTrace();
            }
        }
        return v5_5;
    }

Method Qb.<init>() calling method java.io.FileInputStream.<init>()


    public Qb(String p3)
    {
        java.io.FileInputStream v0_0 = Qb.w;
        java.io.FileInputStream v1_3 = new java.util.HashMap[v0_0.length];
        this.L = v1_3;
        this.M = new java.util.HashSet(v0_0.length);
        this.N = java.nio.ByteOrder.BIG_ENDIAN;
        if (p3 == null) {
            throw new IllegalArgumentException("filename cannot be null");
        } else {
            java.io.FileInputStream v0_2 = 0;
            this.J = 0;
            this.I = p3;
            try {
                java.io.FileInputStream v1_2 = new java.io.FileInputStream(p3);
                try {
                    this.a(v1_2);
                    Qb.a(v1_2);
                    return;
                } catch (Throwable v3_3) {
                    v0_2 = v1_2;
                    Qb.a(v0_2);
                    throw v3_3;
                }
            } catch (Throwable v3_3) {
            }
            this.a(v1_2);
            Qb.a(v1_2);
            return;
        }
    }

Method PD.<clinit>() calling method java.io.FileInputStream.<init>()

Couldn't retrieve source code

Method Fe.a() calling method java.io.FileInputStream.<init>()


    public static java.nio.ByteBuffer a(java.io.File p9)
    {
        try {
            Throwable v1_1 = new java.io.FileInputStream(p9);
            try {
                Throwable v2_2 = v1_1.getChannel();
                Throwable v9_1 = v2_2.map(java.nio.channels.FileChannel$MapMode.READ_ONLY, 0, v2_2.size());
            } catch (Throwable v9_3) {
                Throwable v2_1 = 0;
                if (v2_1 == null) {
                    v1_1.close();
                } else {
                    try {
                        v1_1.close();
                    } catch (Throwable v1_2) {
                        v2_1.addSuppressed(v1_2);
                    }
                }
                throw v9_3;
            } catch (Throwable v9_2) {
                try {
                    throw v9_2;
                } catch (Throwable v2_0) {
                    v2_1 = v9_2;
                    v9_3 = v2_0;
                }
            }
            v1_1.close();
            return v9_1;
        } catch (java.io.IOException) {
            return 0;
        }
    }

Method Fe.a() calling method java.io.FileInputStream.<init>()


    public static java.nio.ByteBuffer a(android.content.Context p8, android.os.CancellationSignal p9, android.net.Uri p10)
    {
        try {
            Throwable v8_3 = p8.getContentResolver().openFileDescriptor(p10, "r", p9);
        } catch (java.io.IOException) {
            return 0;
        }
        if (v8_3 != null) {
            try {
                Throwable v9_1 = new java.io.FileInputStream(v8_3.getFileDescriptor());
                try {
                    Throwable v1_0 = v9_1.getChannel();
                    Throwable v10_1 = v1_0.map(java.nio.channels.FileChannel$MapMode.READ_ONLY, 0, v1_0.size());
                } catch (Throwable v10_3) {
                    Throwable v1_2 = 0;
                    if (v1_2 == null) {
                        v9_1.close();
                    } else {
                        try {
                            v9_1.close();
                        } catch (Throwable v9_2) {
                            v1_2.addSuppressed(v9_2);
                        }
                    }
                    throw v10_3;
                } catch (Throwable v10_2) {
                    try {
                        throw v10_2;
                    } catch (Throwable v1_1) {
                        v1_2 = v10_2;
                        v10_3 = v1_1;
                    }
                }
                v9_1.close();
                if (v8_3 != null) {
                    v8_3.close();
                }
                return v10_1;
            } catch (Throwable v9_4) {
                Throwable v10_5 = 0;
                if (v8_3 != null) {
                    if (v10_5 == null) {
                        v8_3.close();
                    } else {
                        try {
                            v8_3.close();
                        } catch (Throwable v8_2) {
                            v10_5.addSuppressed(v8_2);
                        }
                    }
                }
                throw v9_4;
            } catch (Throwable v9_3) {
                try {
                    throw v9_3;
                } catch (Throwable v10_4) {
                    v10_5 = v9_3;
                    v9_4 = v10_4;
                }
            }
        } else {
            if (v8_3 != null) {
                v8_3.close();
            }
            return 0;
        }
    }

Method com.ramco.ramcoerp.ReportPageActivity.m() calling method java.io.File.<init>()


    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 com.ramco.ramcoerp.ChooseServerActivity.a() calling method java.io.File.<init>()


    public boolean a(java.io.File p8)
    {
        boolean v0 = 1;
        if ((p8 != null) && (p8.isDirectory())) {
            String[] v1_1 = p8.list();
            int v4 = 0;
            while (v4 < v1_1.length) {
                if (this.a(new java.io.File(p8, v1_1[v4]))) {
                    v4++;
                } else {
                    v0 = 0;
                    break;
                }
            }
            if (v0) {
                v0 = p8.delete();
            }
        }
        return v0;
    }

Method ye.a() calling method java.io.File.<init>()


    public final java.io.File a(android.os.ParcelFileDescriptor p4)
    {
        try {
            java.io.File v1_5 = new StringBuilder();
            v1_5.append("/proc/self/fd/");
            v1_5.append(p4.getFd());
            String v4_1 = android.system.Os.readlink(v1_5.toString());
        } catch (android.system.ErrnoException) {
            return 0;
        }
        if (!android.system.OsConstants.S_ISREG(android.system.Os.stat(v4_1).st_mode)) {
            return 0;
        } else {
            return new java.io.File(v4_1);
        }
    }

Method org.apache.cordova.camera.CameraLauncher.processResultFromCamera() calling method java.io.File.<init>()


    private void processResultFromCamera(int p13, android.content.Intent p14)
    {
        long v1_2;
        java.io.File v0_1 = new org.apache.cordova.camera.ExifHelper();
        if (!this.allowEdit) {
            v1_2 = this.imageUri.b();
        } else {
            long v1_4 = this.croppedUri;
            if (v1_4 == 0) {
            } else {
                v1_2 = org.apache.cordova.camera.FileHelper.stripFileProtocol(v1_4.toString());
            }
        }
        java.io.IOException v2_1;
        if (this.encodingType != 0) {
            v2_1 = 0;
        } else {
            try {
                v0_1.createInFile(v1_2);
                v0_1.readExifData();
                v2_1 = v0_1.getOrientation();
            } catch (java.io.IOException v2_2) {
                v2_2.printStackTrace();
            }
        }
        int v4_1;
        android.graphics.Bitmap v5 = 0;
        if (!this.saveToPhotoAlbum) {
            v4_1 = 0;
        } else {
            String v6_2;
            v4_1 = android.net.Uri.fromFile(new java.io.File(this.getPicturesPath()));
            if (!this.allowEdit) {
                v6_2 = this.imageUri.c();
            } else {
                v6_2 = this.croppedUri;
                if (v6_2 == null) {
                }
            }
            this.writeUncompressedImage(v6_2, v4_1);
            this.refreshGallery(v4_1);
        }
        if (p13 != null) {
            if ((p13 != 1) && (p13 != 2)) {
                throw new IllegalStateException();
            } else {
                if ((this.targetHeight != -1) || ((this.targetWidth != -1) || ((this.mQuality != 100) || (this.correctOrientation)))) {
                    String v13_20 = this.encodingType;
                    int v3_4 = new StringBuilder();
                    v3_4.append(System.currentTimeMillis());
                    v3_4.append("");
                    String v13_4 = android.net.Uri.fromFile(this.createCaptureFile(v13_20, v3_4.toString()));
                    v5 = this.getScaledAndRotatedBitmap(v1_2);
                    if (v5 != null) {
                        long v1_7;
                        android.net.Uri v14_16 = this.cordova.getActivity().getContentResolver().openOutputStream(v13_4);
                        if (this.encodingType != 0) {
                            v1_7 = android.graphics.Bitmap$CompressFormat.PNG;
                        } else {
                            v1_7 = android.graphics.Bitmap$CompressFormat.JPEG;
                        }
                        v5.compress(v1_7, this.mQuality, v14_16);
                        v14_16.close();
                        if (this.encodingType == 0) {
                            android.net.Uri v14_18 = v13_4.getPath();
                            if (v2_1 != 1) {
                                v0_1.resetOrientation();
                            }
                            v0_1.createOutFile(v14_18);
                            v0_1.writeExifData();
                        }
                    } else {
                        org.apache.cordova.LOG.d("CameraLauncher", "I either have a null image path or bitmap");
                        this.failPicture("Unable to create bitmap!");
                        return;
                    }
                } else {
                    if (!this.saveToPhotoAlbum) {
                        android.net.Uri v14_5;
                        String v13_2 = this.encodingType;
                        java.io.File v0_3 = new StringBuilder();
                        v0_3.append(System.currentTimeMillis());
                        v0_3.append("");
                        v13_4 = android.net.Uri.fromFile(this.createCaptureFile(v13_2, v0_3.toString()));
                        if (!this.allowEdit) {
                            v14_5 = this.imageUri.c();
                        } else {
                            android.net.Uri v14_3 = this.croppedUri;
                            if (v14_3 == null) {
                            } else {
                                v14_5 = android.net.Uri.fromFile(new java.io.File(this.getFileNameFromUri(v14_3)));
                            }
                        }
                        this.writeUncompressedImage(v14_5, v13_4);
                    } else {
                        this.callbackContext.success(v4_1.toString());
                        this.cleanup(1, this.imageUri.c(), v4_1, v5);
                        return;
                    }
                }
                this.callbackContext.success(v13_4.toString());
            }
        } else {
            String v13_7 = this.getScaledAndRotatedBitmap(v1_2);
            if (v13_7 == null) {
                v13_7 = ((android.graphics.Bitmap) p14.getExtras().get("data"));
            }
            v5 = v13_7;
            if (v5 != null) {
                this.processPicture(v5, this.encodingType);
                if (!this.saveToPhotoAlbum) {
                    this.checkForDuplicateImage(0);
                }
            } else {
                org.apache.cordova.LOG.d("CameraLauncher", "I either have a null image path or bitmap");
                this.failPicture("Unable to create bitmap!");
                return;
            }
        }
        this.cleanup(1, this.imageUri.c(), v4_1, v5);
        return;
    }

Method org.apache.cordova.camera.CameraLauncher.getScaledAndRotatedBitmap() calling method java.io.File.<init>()


    private android.graphics.Bitmap getScaledAndRotatedBitmap(String p24)
    {
        void v1 = this;
        int v5_0 = 0;
        if ((this.targetWidth > 0) || ((this.targetHeight > 0) || (this.correctOrientation))) {
            try {
                float v0_2;
                java.io.File v8_0;
                org.apache.cordova.CordovaInterface v7_1;
                int v2_3 = org.apache.cordova.camera.FileHelper.getInputStreamFromUriString(p24, this.cordova);
            } catch (float v0_16) {
                int v2_22 = new StringBuilder();
                v2_22.append("Exception while getting input stream: ");
                v2_22.append(v0_16.toString());
                org.apache.cordova.LOG.e("CameraLauncher", v2_22.toString());
                return 0;
            }
            if (v2_3 == 0) {
                v7_1 = 0;
                v8_0 = 0;
                v0_2 = 0;
            } else {
                org.apache.cordova.CordovaInterface v7_6;
                org.apache.cordova.CordovaInterface v7_4 = new java.text.SimpleDateFormat("yyyyMMdd_HHmmss", java.util.Locale.getDefault()).format(new java.util.Date());
                java.io.File v8_5 = new StringBuilder();
                v8_5.append("IMG_");
                v8_5.append(v7_4);
                if (this.encodingType != 0) {
                    v7_6 = ".png";
                } else {
                    v7_6 = ".jpg";
                }
                v8_5.append(v7_6);
                org.apache.cordova.CordovaInterface v7_7 = v8_5.toString();
                String v9_4 = new StringBuilder();
                v9_4.append(this.getTempDirectoryPath());
                v9_4.append(v7_7);
                v8_0 = new java.io.File(v9_4.toString());
                v7_1 = android.net.Uri.fromFile(v8_0);
                v1 = this.writeUncompressedImage(v2_3, v7_1);
                try {
                    if (!"image/jpeg".equalsIgnoreCase(org.apache.cordova.camera.FileHelper.getMimeType(p24, v1.cordova))) {
                    } else {
                        float v0_12 = v7_1.toString().replace("file://", "");
                        v1.exifData = new org.apache.cordova.camera.ExifHelper();
                        v1.exifData.createInFile(v0_12);
                        if (!v1.correctOrientation) {
                        } else {
                            v0_2 = v1.exifToDegrees(new Qb(v0_12).a("Orientation", 0));
                        }
                    }
                } catch (float v0_13) {
                    int v2_20 = new StringBuilder();
                    v2_20.append("Unable to read Exif data: ");
                    v2_20.append(v0_13.toString());
                    org.apache.cordova.LOG.w("CameraLauncher", v2_20.toString());
                }
                java.io.InputStream v10_0;
                int v2_1 = new android.graphics.BitmapFactory$Options();
                v2_1.inJustDecodeBounds = 1;
                if (v7_1 == null) {
                    v10_0 = 0;
                } else {
                    try {
                        v10_0 = org.apache.cordova.camera.FileHelper.getInputStreamFromUriString(v7_1.toString(), v1.cordova);
                        try {
                            android.graphics.BitmapFactory.decodeStream(v10_0, 0, v2_1);
                        } catch (float v0_3) {
                            v5_0 = v10_0;
                            if (v5_0 != 0) {
                                v5_0.close();
                            }
                            throw v0_3;
                        }
                    } catch (float v0_3) {
                    }
                }
                if (v10_0 != null) {
                    v10_0.close();
                }
                if (v2_1.outWidth != 0) {
                    if (v2_1.outHeight != 0) {
                        if ((v1.targetWidth <= 0) && (v1.targetHeight <= 0)) {
                            v1.targetWidth = v2_1.outWidth;
                            v1.targetHeight = v2_1.outHeight;
                        }
                        int v13;
                        int v12;
                        int v11_9;
                        if (v0_2 == 90) {
                            v11_9 = v2_1.outHeight;
                            v12 = v2_1.outWidth;
                            v13 = 1;
                        } else {
                            if (v0_2 != 270) {
                                v11_9 = v2_1.outWidth;
                                v12 = v2_1.outHeight;
                                v13 = 0;
                            } else {
                            }
                        }
                        int v2_4;
                        int[] v14 = v1.calculateAspectRatio(v11_9, v12);
                        v2_1.inJustDecodeBounds = 0;
                        v2_1.inSampleSize = org.apache.cordova.camera.CameraLauncher.calculateSampleSize(v11_9, v12, v14[0], v14[1]);
                        if (v7_1 == null) {
                            v2_4 = 0;
                        } else {
                            try {
                                v10_0 = org.apache.cordova.camera.FileHelper.getInputStreamFromUriString(v7_1.toString(), v1.cordova);
                                v2_4 = android.graphics.BitmapFactory.decodeStream(v10_0, 0, v2_1);
                            } catch (float v0_4) {
                                if (v10_0 != null) {
                                    v10_0.close();
                                }
                                throw v0_4;
                            }
                        }
                        if (v10_0 != null) {
                            v10_0.close();
                        }
                        if (v2_4 != 0) {
                            int v4_0;
                            if (v13 != 0) {
                                v4_0 = v14[1];
                            } else {
                                v4_0 = v14[0];
                            }
                            android.graphics.Bitmap v3_2;
                            if (v13 != 0) {
                                v3_2 = v14[0];
                            } else {
                                v3_2 = v14[1];
                            }
                            android.graphics.Bitmap v3_3 = android.graphics.Bitmap.createScaledBitmap(v2_4, v4_0, v3_2, 1);
                            if (v3_3 != v2_4) {
                                v2_4.recycle();
                            }
                            if ((v1.correctOrientation) && (v0_2 != 0)) {
                                int v2_7 = new android.graphics.Matrix();
                                v2_7.setRotate(((float) v0_2));
                                v3_3 = android.graphics.Bitmap.createBitmap(v3_3, 0, 0, v3_3.getWidth(), v3_3.getHeight(), v2_7, 1);
                                v1.orientationCorrected = 1;
                            }
                            if (v8_0 != null) {
                                v8_0.delete();
                            }
                            return v3_3;
                        } else {
                            if (v8_0 != null) {
                                v8_0.delete();
                            }
                            return 0;
                        }
                    } else {
                    }
                }
                if (v8_0 != null) {
                    v8_0.delete();
                }
                return 0;
            }
            try {
            } catch (float v0_6) {
                if (v8_0 != null) {
                    v8_0.delete();
                }
                throw v0_6;
            }
        } else {
            try {
                int v5_2 = org.apache.cordova.camera.FileHelper.getInputStreamFromUriString(p24, this.cordova);
                float v0_7 = android.graphics.BitmapFactory.decodeStream(v5_2);
            } catch (float v0_8) {
                if (v5_2 != 0) {
                    try {
                        v5_2.close();
                    } catch (java.io.IOException) {
                        org.apache.cordova.LOG.d("CameraLauncher", "Exception while closing file input stream.");
                    }
                }
                throw v0_8;
            }
            if (v5_2 != 0) {
                try {
                    v5_2.close();
                } catch (java.io.IOException) {
                    org.apache.cordova.LOG.d("CameraLauncher", "Exception while closing file input stream.");
                }
            }
            return v0_7;
        }
    }

Method org.apache.cordova.camera.CameraLauncher.createCaptureFile() calling method java.io.File.<init>()


    private java.io.File createCaptureFile(int p3, String p4)
    {
        if (p4.isEmpty()) {
            p4 = ".Pic";
        }
        java.io.File v4_2;
        String v3_3;
        if (p3 != null) {
            if (p3 != 1) {
                String v0_4 = new StringBuilder();
                v0_4.append("Invalid Encoding Type: ");
                v0_4.append(p3);
                throw new IllegalArgumentException(v0_4.toString());
            } else {
                v3_3 = new StringBuilder();
                v3_3.append(p4);
                v4_2 = ".png";
            }
        } else {
            v3_3 = new StringBuilder();
            v3_3.append(p4);
            v4_2 = ".jpg";
        }
        v3_3.append(v4_2);
        return new java.io.File(this.getTempDirectoryPath(), v3_3.toString());
    }

Method org.apache.cordova.camera.CameraLauncher.cleanup() calling method java.io.File.<init>()


    private void cleanup(int p1, android.net.Uri p2, android.net.Uri p3, android.graphics.Bitmap p4)
    {
        if (p4 != null) {
            p4.recycle();
        }
        new java.io.File(org.apache.cordova.camera.FileHelper.stripFileProtocol(p2.toString())).delete();
        this.checkForDuplicateImage(p1);
        if ((this.saveToPhotoAlbum) && (p3 != null)) {
            this.scanForGallery(p3);
        }
        System.gc();
        return;
    }

Method android.support.v4.content.FileProvider$b.a() calling method java.io.File.<init>()


    public java.io.File a(android.net.Uri p5)
    {
        String v0_0 = p5.getEncodedPath();
        String v2_4 = v0_0.indexOf(47, 1);
        String v3_1 = android.net.Uri.decode(v0_0.substring(1, v2_4));
        String vtmp6 = android.net.Uri.decode(v0_0.substring((v2_4 + 1)));
        StringBuilder v1_2 = ((java.io.File) this.b.get(v3_1));
        if (v1_2 == null) {
            StringBuilder v1_5 = new StringBuilder();
            v1_5.append("Unable to find configured root for ");
            v1_5.append(p5);
            throw new IllegalArgumentException(v1_5.toString());
        } else {
            try {
                SecurityException v5_4 = new java.io.File(v1_2, vtmp6).getCanonicalFile();
            } catch (java.io.IOException) {
                StringBuilder v1_8 = new StringBuilder();
                v1_8.append("Failed to resolve canonical path for ");
                v1_8.append(v5_4);
                throw new IllegalArgumentException(v1_8.toString());
            }
            if (!v5_4.getPath().startsWith(v1_2.getPath())) {
                throw new SecurityException("Resolved path jumped beyond configured root");
            } else {
                return v5_4;
            }
        }
    }

Method IB.b() calling method java.io.File.<init>()


    public final void b(org.json.JSONObject p9)
    {
        android.content.Intent v1_1 = new android.content.Intent("android.intent.action.SEND_MULTIPLE");
        try {
            String v3_20 = p9.getBoolean("bIsHTML");
        } catch (String v3_32) {
            int v4_0 = new StringBuilder();
            v4_0.append("Error handling isHTML param: ");
            v4_0.append(v3_32.toString());
            org.apache.cordova.LOG.e("EmailComposer", v4_0.toString());
            v3_20 = 0;
        }
        int v4_12;
        if (v3_20 == null) {
            v4_12 = "text/plain";
        } else {
            v4_12 = "text/html";
        }
        v1_1.setType(v4_12);
        try {
            int v4_15 = p9.getString("subject");
        } catch (int v4_16) {
            String v5_14 = new StringBuilder();
            v5_14.append("Error handling subject param: ");
            v5_14.append(v4_16.toString());
            org.apache.cordova.LOG.e("EmailComposer", v5_14.toString());
            try {
                int v4_20 = p9.getString("body");
            } catch (String v3_27) {
                int v4_22 = new StringBuilder();
                v4_22.append("Error handling body param: ");
                v4_22.append(v3_27.toString());
                org.apache.cordova.LOG.e("EmailComposer", v4_22.toString());
                try {
                    String v3_31 = p9.getJSONArray("toRecipients");
                } catch (String v3_34) {
                    int v4_28 = new StringBuilder();
                    v4_28.append("Error handling toRecipients param: ");
                    v4_28.append(v3_34.toString());
                    org.apache.cordova.LOG.e("EmailComposer", v4_28.toString());
                    try {
                        String v3_3 = p9.getJSONArray("ccRecipients");
                    } catch (String v3_5) {
                        int v4_5 = new StringBuilder();
                        v4_5.append("Error handling ccRecipients param: ");
                        v4_5.append(v3_5.toString());
                        org.apache.cordova.LOG.e("EmailComposer", v4_5.toString());
                        try {
                            String v3_9 = p9.getJSONArray("bccRecipients");
                        } catch (String v3_12) {
                            int v4_10 = new StringBuilder();
                            v4_10.append("Error handling bccRecipients param: ");
                            v4_10.append(v3_12.toString());
                            org.apache.cordova.LOG.e("EmailComposer", v4_10.toString());
                            try {
                                String v9_1 = p9.getJSONArray("attachments");
                            } catch (String v9_4) {
                                String v3_22 = new StringBuilder();
                                v3_22.append("Error handling attachments param: ");
                                v3_22.append(v9_4.toString());
                                org.apache.cordova.LOG.e("EmailComposer", v3_22.toString());
                                this.cordova.startActivityForResult(this, v1_1, 0);
                                return;
                            }
                            if ((v9_1 == null) || (v9_1.length() <= 0)) {
                                this.cordova.startActivityForResult(this, v1_1, 0);
                                return;
                            } else {
                                String v3_19 = new java.util.ArrayList();
                                int v4_11 = 0;
                                while (v4_11 < v9_1.length()) {
                                    try {
                                        String v5_7 = new java.io.File(v9_1.getString(v4_11));
                                    } catch (String v5_8) {
                                        StringBuilder v6_7 = new StringBuilder();
                                        v6_7.append("Error adding an attachment: ");
                                        v6_7.append(v5_8.toString());
                                        org.apache.cordova.LOG.e("EmailComposer", v6_7.toString());
                                        v4_11++;
                                    }
                                    if (!v5_7.exists()) {
                                    } else {
                                        v3_19.add(android.net.Uri.fromFile(v5_7));
                                    }
                                }
                                if (v3_19.size() <= 0) {
                                    this.cordova.startActivityForResult(this, v1_1, 0);
                                    return;
                                } else {
                                    v1_1.putParcelableArrayListExtra("android.intent.extra.STREAM", v3_19);
                                    this.cordova.startActivityForResult(this, v1_1, 0);
                                    return;
                                }
                            }
                        }
                        if ((v3_9 == null) || (v3_9.length() <= 0)) {
                        } else {
                            int v4_8 = new String[v3_9.length()];
                            String v5_3 = 0;
                            while (v5_3 < v3_9.length()) {
                                v4_8[v5_3] = v3_9.getString(v5_3);
                                v5_3++;
                            }
                            v1_1.putExtra("android.intent.extra.BCC", v4_8);
                        }
                    }
                    if ((v3_3 == null) || (v3_3.length() <= 0)) {
                    } else {
                        int v4_3 = new String[v3_3.length()];
                        String v5_1 = 0;
                        while (v5_1 < v3_3.length()) {
                            v4_3[v5_1] = v3_3.getString(v5_1);
                            v5_1++;
                        }
                        v1_1.putExtra("android.intent.extra.CC", v4_3);
                    }
                }
                if ((v3_31 == null) || (v3_31.length() <= 0)) {
                } else {
                    int v4_25 = new String[v3_31.length()];
                    String v5_19 = 0;
                    while (v5_19 < v3_31.length()) {
                        v4_25[v5_19] = v3_31.getString(v5_19);
                        v5_19++;
                    }
                    v1_1.putExtra("android.intent.extra.EMAIL", v4_25);
                }
            }
            if ((v4_20 == 0) || (v4_20.length() <= 0)) {
            } else {
                if (v3_20 == null) {
                    v1_1.putExtra("android.intent.extra.TEXT", v4_20);
                } else {
                    String v3_25;
                    if (android.os.Build$VERSION.SDK_INT < 24) {
                        v3_25 = android.text.Html.fromHtml(v4_20);
                    } else {
                        v3_25 = android.text.Html.fromHtml(v4_20, 63);
                    }
                    v1_1.putExtra("android.intent.extra.TEXT", v3_25);
                }
            }
        }
        if ((v4_15 == 0) || (v4_15.length() <= 0)) {
        } else {
            v1_1.putExtra("android.intent.extra.SUBJECT", v4_15);
        }
    }

Method DB.openFileChooser() calling method java.io.File.<init>()


    public void openFileChooser(android.webkit.ValueCallback p7, String p8, String p9)
    {
        try {
            org.apache.cordova.CordovaInterface v8_9 = new java.io.File(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES), "com.ramco.ramcoerp");
        } catch (int v7_2) {
            v7_2.printStackTrace();
            return;
        }
        if ((!v8_9.exists()) && (!v8_9.mkdirs())) {
            android.util.Log.i("RamcoChromeClient", "File direct creation error.");
        }
        AB v0_2 = new StringBuilder();
        v0_2.append(v8_9);
        v0_2.append(java.io.File.separator);
        v0_2.append("IMG_");
        v0_2.append(String.valueOf(System.currentTimeMillis()));
        v0_2.append(".jpg");
        this.b = android.net.Uri.fromFile(new java.io.File(v0_2.toString()));
        org.apache.cordova.CordovaInterface v8_8 = new java.util.ArrayList();
        android.content.Intent v9_7 = new android.content.Intent("android.media.action.IMAGE_CAPTURE");
        AB v0_9 = this.c.getActivity().getPackageManager().queryIntentActivities(v9_7, 0).iterator();
        while (v0_9.hasNext()) {
            android.os.Parcelable[] v1_6 = ((android.content.pm.ResolveInfo) v0_9.next());
            android.net.Uri v2_1 = v1_6.activityInfo.packageName;
            android.content.Intent v3_1 = new android.content.Intent(v9_7);
            v3_1.setComponent(new android.content.ComponentName(v1_6.activityInfo.packageName, v1_6.activityInfo.name));
            v3_1.setPackage(v2_1);
            v3_1.putExtra("output", this.b);
            v8_8.add(v3_1);
        }
        android.content.Intent v9_9 = new android.content.Intent();
        v9_9.setType("image/*");
        v9_9.setAction("android.intent.action.GET_CONTENT");
        android.content.Intent v9_10 = android.content.Intent.createChooser(v9_9, "Select Source");
        android.os.Parcelable[] v1_4 = new android.os.Parcelable[v8_8.size()];
        v9_10.putExtra("android.intent.extra.INITIAL_INTENTS", ((android.os.Parcelable[]) v8_8.toArray(v1_4)));
        this.c.startActivityForResult(new AB(this, p7), v9_10, 5173);
        return;
    }

Method DB.onShowFileChooser() calling method java.io.File.<init>()


    public boolean onShowFileChooser(android.webkit.WebView p17, android.webkit.ValueCallback p18, android.webkit.WebChromeClient$FileChooserParams p19)
    {
        try {
            if (android.os.Build$VERSION.SDK_INT <= 21) {
                android.util.Log.i("RamcoChromeClient", "onshowfile");
                org.apache.cordova.CordovaInterface v2_17 = new java.io.File(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES), "com.ramco.ramcoerp");
                if ((!v2_17.exists()) && (!v2_17.mkdirs())) {
                    android.util.Log.i("RamcoChromeClient", "File direct creation error.");
                }
                android.content.Intent v12_6 = new StringBuilder();
                v12_6.append(v2_17);
                v12_6.append(java.io.File.separator);
                v12_6.append("IMG_");
                v12_6.append(String.valueOf(System.currentTimeMillis()));
                v12_6.append(".jpg");
                this.b = android.net.Uri.fromFile(new java.io.File(v12_6.toString()));
                org.apache.cordova.CordovaInterface v2_23 = new java.util.ArrayList();
                android.content.Intent v3_12 = new android.content.Intent("android.media.action.IMAGE_CAPTURE");
                java.util.Iterator v9_9 = this.c.getActivity().getPackageManager().queryIntentActivities(v3_12, 0).iterator();
                while (v9_9.hasNext()) {
                    android.net.Uri v10_10 = ((android.content.pm.ResolveInfo) v9_9.next());
                    String v11_4 = v10_10.activityInfo.packageName;
                    android.content.Intent v12_8 = new android.content.Intent(v3_12);
                    v12_8.setComponent(new android.content.ComponentName(v10_10.activityInfo.packageName, v10_10.activityInfo.name));
                    v12_8.setPackage(v11_4);
                    v12_8.putExtra("output", this.b);
                    v2_23.add(v12_8);
                }
                android.content.Intent v3_14 = new android.content.Intent();
                v3_14.setType("image/*");
                v3_14.setAction("android.intent.action.GET_CONTENT");
                android.content.Intent v3_15 = android.content.Intent.createChooser(v3_14, "Select Source");
                BB v4_6 = new android.os.Parcelable[v2_23.size()];
                v3_15.putExtra("android.intent.extra.INITIAL_INTENTS", ((android.os.Parcelable[]) v2_23.toArray(v4_6)));
                this.c.startActivityForResult(new CB(this, p18), v3_15, 5173);
            } else {
                if (this.c.hasPermission("android.permission.CAMERA")) {
                    android.util.Log.i("RamcoChromeClient", "onshowfile");
                    org.apache.cordova.CordovaInterface v2_3 = new java.io.File(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES), "com.ramco.ramcoerp");
                    if ((!v2_3.exists()) && (!v2_3.mkdirs())) {
                        android.util.Log.i("RamcoChromeClient", "File direct creation error.");
                    }
                    android.content.Intent v12_2 = new StringBuilder();
                    v12_2.append(v2_3);
                    v12_2.append(java.io.File.separator);
                    v12_2.append("IMG_");
                    v12_2.append(String.valueOf(System.currentTimeMillis()));
                    v12_2.append(".jpg");
                    this.b = android.net.Uri.fromFile(new java.io.File(v12_2.toString()));
                    org.apache.cordova.CordovaInterface v2_9 = new java.util.ArrayList();
                    android.content.Intent v3_4 = new android.content.Intent("android.media.action.IMAGE_CAPTURE");
                    java.util.Iterator v9_4 = this.c.getActivity().getPackageManager().queryIntentActivities(v3_4, 0).iterator();
                    while (v9_4.hasNext()) {
                        android.net.Uri v10_3 = ((android.content.pm.ResolveInfo) v9_4.next());
                        String v11_2 = v10_3.activityInfo.packageName;
                        android.content.Intent v12_4 = new android.content.Intent(v3_4);
                        v12_4.setComponent(new android.content.ComponentName(v10_3.activityInfo.packageName, v10_3.activityInfo.name));
                        v12_4.setPackage(v11_2);
                        v12_4.putExtra("output", this.b);
                        v2_9.add(v12_4);
                    }
                    android.content.Intent v3_6 = new android.content.Intent();
                    v3_6.setType("image/*");
                    v3_6.setAction("android.intent.action.GET_CONTENT");
                    android.content.Intent v3_7 = android.content.Intent.createChooser(v3_6, "Select Source");
                    BB v4_1 = new android.os.Parcelable[v2_9.size()];
                    v3_7.putExtra("android.intent.extra.INITIAL_INTENTS", ((android.os.Parcelable[]) v2_9.toArray(v4_1)));
                    this.c.startActivityForResult(new BB(this, p18), v3_7, 5173);
                } else {
                    android.widget.Toast.makeText(this.a, 2131624062, 1).show();
                    return 0;
                }
            }
        } catch (int v0_2) {
            v0_2.printStackTrace();
        }
        return 1;
    }

Method DB.a() calling method java.io.File.<init>()


    public static android.net.Uri a(android.graphics.Bitmap p5)
    {
        android.net.Uri v0_1 = new StringBuilder();
        v0_1.append("IMG_");
        v0_1.append(String.valueOf(System.currentTimeMillis()));
        v0_1.append(".jpg");
        android.net.Uri v0_2 = v0_1.toString();
        java.io.FileOutputStream v1_1 = new java.io.File(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES), "com.ramco.ramcoerp");
        if ((!v1_1.exists()) && (!v1_1.mkdirs())) {
            android.util.Log.i("RamcoChromeClient", "File direct creation error.");
        }
        String v2_6 = new java.io.File(v1_1, v0_2);
        try {
            java.io.FileOutputStream v1_4 = new java.io.FileOutputStream(v2_6);
            p5.compress(android.graphics.Bitmap$CompressFormat.JPEG, 100, v1_4);
            v1_4.close();
            android.net.Uri v0_3 = android.net.Uri.fromFile(v2_6);
        } catch (java.io.IOException v5_1) {
            v5_1.printStackTrace();
        }
        return v0_3;
    }

Method org.apache.cordova.CordovaResourceApi.remapPath() calling method java.io.File.<init>()


    public String remapPath(String p2)
    {
        return this.remapUri(android.net.Uri.fromFile(new java.io.File(p2))).getPath();
    }

Method org.apache.cordova.CordovaResourceApi.openOutputStream() calling method java.io.File.<init>()


    public java.io.OutputStream openOutputStream(android.net.Uri p3, boolean p4)
    {
        this.assertBackgroundThread();
        StringBuilder v0_0 = org.apache.cordova.CordovaResourceApi.getUriType(p3);
        if (v0_0 == null) {
            StringBuilder v0_5 = new java.io.File(p3.getPath());
            java.io.FileOutputStream v3_7 = v0_5.getParentFile();
            if (v3_7 != null) {
                v3_7.mkdirs();
            }
            return new java.io.FileOutputStream(v0_5, p4);
        } else {
            if ((v0_0 != 2) && (v0_0 != 3)) {
                StringBuilder v0_2 = new StringBuilder();
                v0_2.append("URI not supported by CordovaResourceApi: ");
                v0_2.append(p3);
                throw new java.io.FileNotFoundException(v0_2.toString());
            } else {
                String v4_3;
                if (p4 == null) {
                    v4_3 = "w";
                } else {
                    v4_3 = "wa";
                }
                return this.contentResolver.openAssetFileDescriptor(p3, v4_3).createOutputStream();
            }
        }
    }

Method org.apache.cordova.CordovaResourceApi.mapUriToFile() calling method java.io.File.<init>()


    public java.io.File mapUriToFile(android.net.Uri p9)
    {
        this.assertBackgroundThread();
        String v0_0 = org.apache.cordova.CordovaResourceApi.getUriType(p9);
        if (v0_0 == null) {
            return new java.io.File(p9.getPath());
        } else {
            if (v0_0 == 2) {
                int v9_1 = this.contentResolver.query(p9, org.apache.cordova.CordovaResourceApi.LOCAL_FILE_PROJECTION, 0, 0, 0);
                if (v9_1 != 0) {
                    try {
                        String v0_3 = v9_1.getColumnIndex(org.apache.cordova.CordovaResourceApi.LOCAL_FILE_PROJECTION[0]);
                    } catch (String v0_5) {
                        v9_1.close();
                        throw v0_5;
                    }
                    if ((v0_3 != -1) && (v9_1.getCount() > 0)) {
                        v9_1.moveToFirst();
                        String v0_4 = v9_1.getString(v0_3);
                        if (v0_4 != null) {
                            java.io.File v1_4 = new java.io.File(v0_4);
                            v9_1.close();
                            return v1_4;
                        }
                    }
                    v9_1.close();
                }
            }
            return 0;
        }
    }

Method iC$b$a.<clinit>() calling method java.io.File.<init>()


    static iC$b$a()
    {
        iC$b$a.a = new java.io.File("/dev/urandom");
        iC$b$a.b = new Object();
        return;
    }

Method dC.a() calling method java.io.File.<init>()


    public boolean a(String p8)
    {
        String[] v0 = cC.d;
        int v1 = v0.length;
        int v2 = 0;
        int v3_3 = 0;
        while (v2 < v1) {
            String v4_2 = v0[v2];
            String v5_2 = new StringBuilder();
            v5_2.append(v4_2);
            v5_2.append(p8);
            String v5_0 = v5_2.toString();
            if (new java.io.File(v4_2, p8).exists()) {
                int v3_1 = new StringBuilder();
                v3_1.append(v5_0);
                v3_1.append(" binary detected!");
                eC.b(v3_1.toString());
                v3_3 = 1;
            }
            v2++;
        }
        return v3_3;
    }

Method com.google.android.gms.vision.EngineManager.zzc() calling method java.io.File.<init>()


    public static java.io.File zzc(android.content.Context p1)
    {
        return new java.io.File("assets/");
    }

Method android.support.v4.content.FileProvider.a() calling method java.io.File.<init>()


    public static varargs java.io.File a(java.io.File p4, String[] p5)
    {
        int v1 = 0;
        while (v1 < p5.length) {
            String v2 = p5[v1];
            if (v2 != null) {
                p4 = new java.io.File(p4, v2);
            }
            v1++;
        }
        return p4;
    }

Method android.support.v4.content.FileProvider.<clinit>() calling method java.io.File.<init>()


    static FileProvider()
    {
        android.support.v4.content.FileProvider.a = new String[] {"_display_name", "_size"});
        android.support.v4.content.FileProvider.b = new java.io.File("/");
        android.support.v4.content.FileProvider.c = new java.util.HashMap();
        return;
    }

Method VA.b() calling method java.io.File.<init>()


    public void b(String p5)
    {
        java.io.File v0_1 = new Object[2];
        int v2 = 0;
        v0_1[0] = com.ramco.ramcoerp.RamcoApplication.b().getFilesDir().getAbsolutePath();
        v0_1[1] = p5;
        java.io.File v0_3 = new java.io.File(String.format("%s/%s", v0_1));
        if ((v0_3.exists()) && (v0_3.isDirectory())) {
            java.io.File[] v5_5 = v0_3.listFiles();
            if (v5_5 != null) {
                int v1_1 = v5_5.length;
                while (v2 < v1_1) {
                    v5_5[v2].deleteOnExit();
                    v2++;
                }
            }
            v0_3.deleteOnExit();
        }
        return;
    }

Method VA.a() calling method java.io.File.<init>()


    public final void a(String p6)
    {
        if (!new java.io.File(p6).exists()) {
            String[] v6_1 = p6.split("/");
            java.io.File v0_3 = 0;
            int v1 = v6_1.length;
            int v2 = 0;
            while (v2 < v1) {
                java.io.File v4_1 = new java.io.File(v0_3, v6_1[v2]);
                if (!v4_1.isDirectory()) {
                    v4_1.mkdir();
                }
                v2++;
                v0_3 = v4_1;
            }
        }
        return;
    }

Method VA.a() calling method java.io.File.<init>()


    public final java.io.File a(String p6, String p7)
    {
        if (!android.text.TextUtils.isEmpty(p7)) {
            java.io.File v0_3 = new java.io.File(ark>VAark>.a.e(p6), p7);
            if ((!v0_3.exists()) || (v0_3.length() <= 0)) {
                return 0;
            } else {
                return v0_3;
            }
        } else {
            return 0;
        }
    }

Method Ub.<init>() calling method java.io.File.<init>()


    public Ub(java.io.File p5, java.io.File p6)
    {
        String v0_2 = new StringBuilder();
        v0_2.append("MultiDexExtractor(");
        v0_2.append(p5.getPath());
        v0_2.append(", ");
        v0_2.append(p6.getPath());
        v0_2.append(")");
        android.util.Log.i("MultiDex", v0_2.toString());
        this.a = p5;
        this.c = p6;
        this.b = Ub.b(p5);
        String v5_2 = new java.io.File(p6, "MultiDex.lock");
        this.d = new java.io.RandomAccessFile(v5_2, "rw");
        try {
            this.e = this.d.getChannel();
        } catch (String v5_7) {
            Ub.a(this.d);
            throw v5_7;
        } catch (String v5_7) {
        } catch (String v5_7) {
        }
        java.nio.channels.FileChannel v6_6 = new StringBuilder();
        v6_6.append("Blocking on lock ");
        v6_6.append(v5_2.getPath());
        android.util.Log.i("MultiDex", v6_6.toString());
        this.f = this.e.lock();
        java.nio.channels.FileChannel v6_12 = new StringBuilder();
        v6_12.append(v5_2.getPath());
        v6_12.append(" locked");
        android.util.Log.i("MultiDex", v6_12.toString());
        return;
    }

Method Ub$a.<init>() calling method java.io.File.<init>()


    public Ub$a(java.io.File p1, String p2)
    {
        super(p1, p2);
        super.a = -1;
        return;
    }

Method Rb.c() calling method java.io.File.<init>()


    public static void c(android.content.Context p7)
    {
        String v7_2;
        android.util.Log.i("MultiDex", "Installing application");
        if (!Rb.b) {
            if (android.os.Build$VERSION.SDK_INT < 4) {
                RuntimeException v0_1 = new StringBuilder();
                v0_1.append("MultiDex installation failed. SDK ");
                v0_1.append(android.os.Build$VERSION.SDK_INT);
                v0_1.append(" is unsupported. Min SDK version is ");
                v0_1.append(4);
                v0_1.append(".");
                throw new RuntimeException(v0_1.toString());
            } else {
                try {
                    String v1_5 = Rb.b(p7);
                } catch (String v7_4) {
                    android.util.Log.e("MultiDex", "MultiDex installation failure", v7_4);
                    String v1_11 = new StringBuilder();
                    v1_11.append("MultiDex installation failed (");
                    v1_11.append(v7_4.getMessage());
                    v1_11.append(").");
                    throw new RuntimeException(v1_11.toString());
                }
                if (v1_5 != null) {
                    Rb.a(p7, new java.io.File(v1_5.sourceDir), new java.io.File(v1_5.dataDir), "secondary-dexes", "", 1);
                    v7_2 = "install done";
                } else {
                    android.util.Log.i("MultiDex", "No ApplicationInfo available, i.e. running on a test Context: MultiDex support library is disabled.");
                    return;
                }
            }
        } else {
            v7_2 = "VM has multidex support, MultiDex support library is disabled.";
        }
        android.util.Log.i("MultiDex", v7_2);
        return;
    }

Method Rb.a() calling method java.io.File.<init>()


    public static void a(android.content.Context p8)
    {
        String v0_2 = new java.io.File(p8.getFilesDir(), "secondary-dexes");
        if (v0_2.isDirectory()) {
            String v8_14 = new StringBuilder();
            v8_14.append("Clearing old secondary dex dir (");
            v8_14.append(v0_2.getPath());
            v8_14.append(").");
            android.util.Log.i("MultiDex", v8_14.toString());
            String v8_4 = v0_2.listFiles();
            if (v8_4 != null) {
                String v1_3 = v8_4.length;
                int v3_0 = 0;
                while (v3_0 < v1_3) {
                    String v4_0 = v8_4[v3_0];
                    StringBuilder v5_1 = new StringBuilder();
                    v5_1.append("Trying to delete old file ");
                    v5_1.append(v4_0.getPath());
                    v5_1.append(" of size ");
                    v5_1.append(v4_0.length());
                    android.util.Log.i("MultiDex", v5_1.toString());
                    if (v4_0.delete()) {
                        StringBuilder v5_5 = new StringBuilder();
                        v5_5.append("Deleted old file ");
                        v5_5.append(v4_0.getPath());
                        android.util.Log.i("MultiDex", v5_5.toString());
                    } else {
                        StringBuilder v5_7 = new StringBuilder();
                        v5_7.append("Failed to delete old file ");
                        v5_7.append(v4_0.getPath());
                        android.util.Log.w("MultiDex", v5_7.toString());
                    }
                    v3_0++;
                }
                if (v0_2.delete()) {
                    String v8_7 = new StringBuilder();
                    v8_7.append("Deleted old secondary dex dir ");
                    v8_7.append(v0_2.getPath());
                    android.util.Log.i("MultiDex", v8_7.toString());
                } else {
                    String v8_10 = new StringBuilder();
                    v8_10.append("Failed to delete secondary dex dir ");
                    v8_10.append(v0_2.getPath());
                    android.util.Log.w("MultiDex", v8_10.toString());
                }
            } else {
                String v8_16 = new StringBuilder();
                v8_16.append("Failed to list secondary dex dir content (");
                v8_16.append(v0_2.getPath());
                v8_16.append(").");
                android.util.Log.w("MultiDex", v8_16.toString());
                return;
            }
        }
        return;
    }

Method Rb.a() calling method java.io.File.<init>()


    public static java.io.File a(android.content.Context p2, java.io.File p3, String p4)
    {
        java.io.File v0_1 = new java.io.File(p3, "code_cache");
        try {
            ark>Rbark>.a(v0_1);
        } catch (java.io.IOException) {
            v0_1 = new java.io.File(p2.getFilesDir(), "code_cache");
            ark>Rbark>.a(v0_1);
        }
        java.io.File v2_1 = new java.io.File(v0_1, p4);
        ark>Rbark>.a(v2_1);
        return v2_1;
    }

Method Rb$a.a() calling method java.io.File.<init>()


    public static String a(java.io.File p4)
    {
        java.io.File v0 = p4.getParentFile();
        String v4_5 = p4.getName();
        java.io.File v1_3 = new StringBuilder();
        v1_3.append(v4_5.substring(0, (v4_5.length() - ark>Rb$aark>.a)));
        v1_3.append(".dex");
        return new java.io.File(v0, v1_3.toString()).getPath();
    }

Method RB.a() calling method java.io.File.<init>()


    public static void a(byte[] p3, String p4)
    {
        java.io.File v0_1 = new java.io.File(p4);
        if (!v0_1.isDirectory()) {
            v0_1.mkdir();
        }
        lJ v3_2 = new lJ(new java.io.ByteArrayInputStream(p3));
        while(true) {
            java.io.File v0_2 = v3_2.o();
            if (v0_2 == null) {
                break;
            }
            String v1_1 = new StringBuilder();
            v1_1.append(p4);
            v1_1.append(java.io.File.separator);
            v1_1.append(v0_2.getName());
            String v1_2 = v1_1.toString();
            android.util.Log.i("unzip", v1_2);
            if (v0_2.isDirectory()) {
                new java.io.File(v1_2).mkdir();
            } else {
                ark>RBark>.a(v3_2, v1_2);
            }
        }
        v3_2.close();
        return;
    }

Method RB.a() calling method java.io.File.<init>()


    public static void a(lJ p3, String p4)
    {
        java.io.BufferedOutputStream v0_1 = new java.io.File(p4);
        if (v0_1.exists()) {
            v0_1.delete();
        }
        java.io.BufferedOutputStream v0_3 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p4));
        byte[] v4_2 = new byte[4096];
        while(true) {
            int v1_0 = p3.read(v4_2);
            if (v1_0 == -1) {
                break;
            }
            v0_3.write(v4_2, 0, v1_0);
        }
        v0_3.close();
        return;
    }

Method Fe.a() calling method java.io.File.<init>()


    public static java.io.File a(android.content.Context p5)
    {
        String v0_1 = new StringBuilder();
        v0_1.append(".font");
        v0_1.append(android.os.Process.myPid());
        v0_1.append("-");
        v0_1.append(android.os.Process.myTid());
        v0_1.append("-");
        String v0_2 = v0_1.toString();
        int v1_0 = 0;
        while (v1_0 < 100) {
            boolean v3_0 = p5.getCacheDir();
            String v4_1 = new StringBuilder();
            v4_1.append(v0_2);
            v4_1.append(v1_0);
            java.io.File v2_3 = new java.io.File(v3_0, v4_1.toString());
            try {
                if (!v2_3.createNewFile()) {
                    v1_0++;
                } else {
                    return v2_3;
                }
            } catch (java.io.IOException) {
            }
        }
        return 0;
    }

Method Vb.a() calling method java.io.RandomAccessFile.<init>()


    public static long a(java.io.File p3)
    {
        java.io.RandomAccessFile v0_1 = new java.io.RandomAccessFile(p3, "r");
        try {
            long v1_1 = ark>Vbark>.a(v0_1, ark>Vbark>.a(v0_1));
            v0_1.close();
            return v1_1;
        } catch (Throwable v3_2) {
            v0_1.close();
            throw v3_2;
        }
    }

Method Ub.<init>() calling method java.io.RandomAccessFile.<init>()


    public Ub(java.io.File p5, java.io.File p6)
    {
        String v0_2 = new StringBuilder();
        v0_2.append("MultiDexExtractor(");
        v0_2.append(p5.getPath());
        v0_2.append(", ");
        v0_2.append(p6.getPath());
        v0_2.append(")");
        android.util.Log.i("MultiDex", v0_2.toString());
        this.a = p5;
        this.c = p6;
        this.b = Ub.b(p5);
        String v5_2 = new java.io.File(p6, "MultiDex.lock");
        this.d = new java.io.RandomAccessFile(v5_2, "rw");
        try {
            this.e = this.d.getChannel();
        } catch (String v5_7) {
            Ub.a(this.d);
            throw v5_7;
        } catch (String v5_7) {
        } catch (String v5_7) {
        }
        java.nio.channels.FileChannel v6_6 = new StringBuilder();
        v6_6.append("Blocking on lock ");
        v6_6.append(v5_2.getPath());
        android.util.Log.i("MultiDex", v6_6.toString());
        this.f = this.e.lock();
        java.nio.channels.FileChannel v6_12 = new StringBuilder();
        v6_12.append(v5_2.getPath());
        v6_12.append(" locked");
        android.util.Log.i("MultiDex", v6_12.toString());
        return;
    }