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.rnfs.RNFSManager.writeFile() calling method java.io.FileOutputStream.<init>()


    public void writeFile(String p9, String p10, com.facebook.react.bridge.ReadableMap p11, com.facebook.react.bridge.Callback p12)
    {
        try {
            byte[] v0 = android.util.Base64.decode(p10, 0);
            java.io.FileOutputStream v2_1 = new java.io.FileOutputStream(p9);
            v2_1.write(v0);
            v2_1.close();
            Object[] v3_0 = new Object[3];
            v3_0[0] = 0;
            v3_0[1] = Boolean.valueOf(1);
            v3_0[2] = p9;
            p12.invoke(v3_0);
        } catch (Exception v1) {
            v1.printStackTrace();
            Object[] v3_2 = new Object[1];
            v3_2[0] = this.makeErrorPayload(v1);
            p12.invoke(v3_2);
        }
        return;
    }

Method com.oblador.vectoricons.VectorIconsModule.getImageForFont() calling method java.io.FileOutputStream.<init>()


    public void getImageForFont(String p28, String p29, Integer p30, Integer p31, com.facebook.react.bridge.Callback p32)
    {
        Object[] v24_35;
        com.facebook.react.bridge.ReactApplicationContext v13 = this.getReactApplicationContext();
        String v10 = new StringBuilder().append(v13.getCacheDir().getAbsolutePath()).append("/").toString();
        float v19 = v13.getResources().getDisplayMetrics().density;
        int v25_16 = new StringBuilder().append("@");
        if (v19 != ((float) ((int) v19))) {
            v24_35 = Float.toString(v19);
        } else {
            v24_35 = Integer.toString(((int) v19));
        }
        String v20 = v25_16.append(v24_35).append("x").toString();
        int v21 = Math.round((((float) p30.intValue()) * v19));
        String v7 = new StringBuilder().append(v10).append(Integer.toString(new StringBuilder().append(p28).append(":").append(p29).append(":").append(p31).toString().hashCode(), 32)).append("_").append(Integer.toString(p30.intValue())).append(v20).append(".png").toString();
        String v8 = new StringBuilder().append("file://").append(v7).toString();
        java.io.File v6_1 = new java.io.File(v7);
        if (!v6_1.exists()) {
            int v15 = 0;
            android.graphics.Typeface v23 = com.facebook.react.views.text.ReactFontManager.getInstance().getTypeface(p28, 0, v13.getAssets());
            android.graphics.Paint v18_1 = new android.graphics.Paint();
            v18_1.setTypeface(v23);
            v18_1.setColor(p31.intValue());
            v18_1.setTextSize(((float) v21));
            v18_1.setAntiAlias(1);
            android.graphics.Rect v22_1 = new android.graphics.Rect();
            v18_1.getTextBounds(p29, 0, p29.length(), v22_1);
            android.graphics.Bitmap v5 = android.graphics.Bitmap.createBitmap(v22_1.width(), v22_1.height(), android.graphics.Bitmap$Config.ARGB_8888);
            new android.graphics.Canvas(v5).drawText(p29, ((float) (- v22_1.left)), ((float) (- v22_1.top)), v18_1);
            try {
                java.io.FileOutputStream v16 = new java.io.FileOutputStream;
                v16(v6_1);
                try {
                    v5.compress(android.graphics.Bitmap$CompressFormat.PNG, 100, v16);
                    v16.flush();
                    v16.close();
                    v15 = 0;
                } catch (Object[] v24_23) {
                    v15 = v16;
                    if (v15 != 0) {
                        try {
                            v15.close();
                        } catch (java.io.IOException v14_4) {
                            v14_4.printStackTrace();
                        }
                    }
                    throw v24_23;
                } catch (java.io.IOException v14_1) {
                    v15 = v16;
                    com.facebook.react.bridge.Callback v0_34 = new Object[1];
                    Object[] v24_29 = v0_34;
                    v24_29[0] = v14_1.getMessage();
                    p32.invoke(v24_29);
                    if (v15 != 0) {
                        try {
                            v15.close();
                        } catch (java.io.IOException v14_3) {
                            v14_3.printStackTrace();
                        }
                    }
                } catch (java.io.IOException v14_0) {
                    v15 = v16;
                    com.facebook.react.bridge.Callback v0_31 = new Object[1];
                    Object[] v24_27 = v0_31;
                    v24_27[0] = v14_0.getMessage();
                    p32.invoke(v24_27);
                    if (v15 != 0) {
                        try {
                            v15.close();
                        } catch (java.io.IOException v14_2) {
                            v14_2.printStackTrace();
                        }
                    }
                }
                com.facebook.react.bridge.Callback v0_28 = new Object[2];
                Object[] v24_24 = v0_28;
                v24_24[0] = 0;
                v24_24[1] = v8;
                p32.invoke(v24_24);
                if (0 != 0) {
                    try {
                        0.close();
                    } catch (java.io.IOException v14_5) {
                        v14_5.printStackTrace();
                    }
                }
            } catch (Object[] v24_23) {
            } catch (java.io.IOException v14_1) {
            } catch (java.io.IOException v14_0) {
            }
        } else {
            com.facebook.react.bridge.Callback v0_39 = new Object[2];
            Object[] v24_31 = v0_39;
            v24_31[0] = 0;
            v24_31[1] = v8;
            p32.invoke(v24_31);
        }
        return;
    }

Method com.imagepicker.ImagePickerModule.getResizedImage() calling method java.io.FileOutputStream.<init>()


    private java.io.File getResizedImage(String p27, int p28, int p29)
    {
        java.io.File v12;
        android.graphics.BitmapFactory$Options v16_1 = new android.graphics.BitmapFactory$Options();
        v16_1.inScaled = 0;
        int v2 = android.graphics.BitmapFactory.decodeFile(p27, v16_1);
        if (v2 != 0) {
            if ((this.maxWidth == 0) || (this.maxWidth > p28)) {
                this.maxWidth = p28;
            }
            if ((this.maxHeight == 0) || (this.maxWidth > p29)) {
                this.maxHeight = p29;
            }
            double v18;
            double v22 = (((double) this.maxWidth) / ((double) p28));
            double v14 = (((double) this.maxHeight) / ((double) p29));
            if (v22 >= v14) {
                v18 = v14;
            } else {
                v18 = v22;
            }
            android.graphics.Matrix v7_1 = new android.graphics.Matrix();
            v7_1.postRotate(((float) this.rotation));
            v7_1.postScale(((float) v18), ((float) v18));
            try {
                int v17 = new android.media.ExifInterface(p27).getAttributeInt("Orientation", 0);
            } catch (java.io.IOException v10_2) {
                v10_2.printStackTrace();
                int v20 = android.graphics.Bitmap.createBitmap(v2, 0, 0, v2.getWidth(), v2.getHeight(), v7_1, 1);
                java.io.ByteArrayOutputStream v9_1 = new java.io.ByteArrayOutputStream();
                v20.compress(android.graphics.Bitmap$CompressFormat.JPEG, this.quality, v9_1);
                v12 = this.createNewFile();
                try {
                    try {
                        new java.io.FileOutputStream(v12).write(v9_1.toByteArray());
                    } catch (java.io.IOException v10_0) {
                        v10_0.printStackTrace();
                    }
                    if (v2 != 0) {
                        v20.recycle();
                        v2.recycle();
                        v2 = 0;
                    }
                } catch (java.io.IOException v10_1) {
                    v10_1.printStackTrace();
                }
            }
            if (v17 != 6) {
                if (v17 != 3) {
                    if (v17 != 8) {
                    } else {
                        v7_1.postRotate(1132920832);
                    }
                } else {
                    v7_1.postRotate(1127481344);
                }
            } else {
                v7_1.postRotate(1119092736);
            }
        } else {
            v12 = 0;
        }
        return v12;
    }

Method com.imagepicker.ImagePickerModule.createFileFromURI() calling method java.io.FileOutputStream.<init>()


    private java.io.File createFileFromURI(android.net.Uri p9)
    {
        java.io.File v1_1 = new java.io.File(this.mReactContext.getExternalCacheDir(), new StringBuilder().append("photo-").append(p9.getLastPathSegment()).toString());
        java.io.InputStream v2 = this.mReactContext.getContentResolver().openInputStream(p9);
        java.io.FileOutputStream v3_1 = new java.io.FileOutputStream(v1_1);
        try {
            byte[] v0 = new byte[4096];
        } catch (int v5_6) {
            v3_1.close();
            v2.close();
            throw v5_6;
        }
        while(true) {
            int v4 = v2.read(v0);
            if (v4 == -1) {
                break;
            }
            v3_1.write(v0, 0, v4);
        }
        v3_1.flush();
        v3_1.close();
        v2.close();
        return v1_1;
    }

Method com.facebook.react.modules.camera.ImageEditingManager.writeCompressedBitmapToFile() calling method java.io.FileOutputStream.<init>()


    private static void writeCompressedBitmapToFile(android.graphics.Bitmap p3, String p4, java.io.File p5)
    {
        java.io.FileOutputStream v0_1 = new java.io.FileOutputStream(p5);
        try {
            p3.compress(com.facebook.react.modules.camera.ImageEditingManager.getCompressFormatForType(p4), 90, v0_1);
        } catch (Throwable v1_1) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v1_1;
        }
        if (v0_1 != null) {
            v0_1.close();
        }
        return;
    }

Method io.fabric.sdk.android.services.events.GZIPQueueFileEventStorage.getMoveOutputStream() calling method java.io.FileOutputStream.<init>()


    public java.io.OutputStream getMoveOutputStream(java.io.File p3)
    {
        return new java.util.zip.GZIPOutputStream(new java.io.FileOutputStream(p3));
    }

Method com.google.android.gms.common.data.BitmapTeleporter.zzare() calling method java.io.FileOutputStream.<init>()


    private java.io.FileOutputStream zzare()
    {
        if (this.vT != null) {
            try {
                IllegalStateException v0_6 = java.io.File.createTempFile("teleporter", ".tmp", this.vT);
                try {
                    String v1_2 = new java.io.FileOutputStream(v0_6);
                    this.zzccz = android.os.ParcelFileDescriptor.open(v0_6, 268435456);
                    v0_6.delete();
                    return v1_2;
                } catch (IllegalStateException v0) {
                    throw new IllegalStateException("Temporary file is somehow already deleted");
                }
            } catch (IllegalStateException v0_7) {
                throw new IllegalStateException("Could not create temporary file", v0_7);
            }
            v1_2 = new java.io.FileOutputStream(v0_6);
            this.zzccz = android.os.ParcelFileDescriptor.open(v0_6, 268435456);
            v0_6.delete();
            return v1_2;
        } else {
            throw new IllegalStateException("setTempDir() must be called before writing this object to a parcel");
        }
    }

Method io.fabric.sdk.android.services.events.QueueFileEventStorage.getMoveOutputStream() calling method java.io.FileOutputStream.<init>()


    public java.io.OutputStream getMoveOutputStream(java.io.File p2)
    {
        return new java.io.FileOutputStream(p2);
    }

Method com.google.android.gms.internal.zzv.zza() calling method java.io.FileOutputStream.<init>()


    public declared_synchronized void zza(String p6, com.google.android.gms.internal.zzb$zza p7)
    {
        try {
            this.zzc(p7.data.length);
            String v0_3 = this.zzf(p6);
            try {
                String v1_6 = new java.io.FileOutputStream(v0_3);
                Object[] v2_5 = new com.google.android.gms.internal.zzv$zza(p6, p7);
            } catch (String v1) {
                if (v0_3.delete()) {
                    return;
                } else {
                    Object[] v2_3 = new Object[1];
                    v2_3[0] = v0_3.getAbsolutePath();
                    com.google.android.gms.internal.zzs.zzb("Could not clean up file %s", v2_3);
                    return;
                }
            }
            if (v2_5.zza(v1_6)) {
                v1_6.write(p7.data);
                v1_6.close();
                this.zza(p6, v2_5);
                return;
            } else {
                v1_6.close();
                Object[] v2_1 = new Object[1];
                v2_1[0] = v0_3.getAbsolutePath();
                com.google.android.gms.internal.zzs.zzb("Failed to write header for %s", v2_1);
                throw new java.io.IOException();
            }
        } catch (String v0_4) {
            throw v0_4;
        }
    }

Method com.fasterxml.jackson.core.JsonFactory.createGenerator() calling method java.io.FileOutputStream.<init>()


    public com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.File p4, com.fasterxml.jackson.core.JsonEncoding p5)
    {
        com.fasterxml.jackson.core.JsonGenerator v0_3;
        com.fasterxml.jackson.core.JsonGenerator v0_1 = new java.io.FileOutputStream(p4);
        com.fasterxml.jackson.core.io.IOContext v1_1 = this._createContext(v0_1, 1);
        v1_1.setEncoding(p5);
        if (p5 != com.fasterxml.jackson.core.JsonEncoding.UTF8) {
            com.fasterxml.jackson.core.JsonGenerator v0_2 = this._createWriter(v0_1, p5, v1_1);
            if (this._outputDecorator != null) {
                v0_2 = this._outputDecorator.decorate(v1_1, v0_2);
            }
            v0_3 = this._createGenerator(v0_2, v1_1);
        } else {
            if (this._outputDecorator != null) {
                v0_1 = this._outputDecorator.decorate(v1_1, v0_1);
            }
            v0_3 = this._createUTF8Generator(v0_1, v1_1);
        }
        return v0_3;
    }

Method com.facebook.react.modules.camera.CameraRollManager$SaveToCameraRoll.doInBackgroundGuarded() calling method java.io.FileOutputStream.<init>()


    protected varargs void doInBackgroundGuarded(Void[] p16)
    {
        java.io.File v12_1 = new java.io.File(this.mUri.getPath());
        try {
            java.io.File v8;
            if (this.mType != com.facebook.react.modules.camera.CameraRollManager$MediaType.PHOTO) {
                v8 = android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_MOVIES);
                v8.mkdirs();
                if (v8.isDirectory()) {
                    int v11;
                    String v14;
                    String v13;
                    java.io.File v6_0 = new java.io.File(v8, v12_1.getName());
                    String v9 = v12_1.getName();
                    if (v9.indexOf(46) < 0) {
                        v14 = v9;
                        v13 = "";
                        v11 = 0;
                    } else {
                        v14 = v9.substring(0, v9.lastIndexOf(46));
                        v13 = v9.substring(v9.lastIndexOf(46));
                        v11 = 0;
                    }
                    while (!v6_0.createNewFile()) {
                        int v10_0 = (v11 + 1);
                        v6_0 = new java.io.File(v8, new StringBuilder().append(v14).append("_").append(v11).append(v13).toString());
                        v11 = v10_0;
                    }
                    java.nio.channels.FileChannel v1_1 = new java.io.FileInputStream(v12_1).getChannel();
                    java.nio.channels.FileChannel v0_0 = new java.io.FileOutputStream(v6_0).getChannel();
                    v0_0.transferFrom(v1_1, 0, v1_1.size());
                    v1_1.close();
                    v0_0.close();
                    String v2_31 = this.mContext;
                    String v3_12 = new String[1];
                    v3_12[0] = v6_0.getAbsolutePath();
                    android.media.MediaScannerConnection.scanFile(v2_31, v3_12, 0, new com.facebook.react.modules.camera.CameraRollManager$SaveToCameraRoll$1(this));
                    if ((v1_1 != null) && (v1_1.isOpen())) {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException v7_7) {
                            com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_7);
                        }
                    }
                    if ((v0_0 != null) && (v0_0.isOpen())) {
                        try {
                            v0_0.close();
                        } catch (java.io.IOException v7_8) {
                            com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_8);
                        }
                    }
                } else {
                    this.mPromise.reject("E_UNABLE_TO_LOAD", "External media storage directory not available");
                    if ((0 != 0) && (0.isOpen())) {
                        try {
                            0.close();
                        } catch (java.io.IOException v7_5) {
                            com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_5);
                        }
                    }
                    if ((0 != 0) && (0.isOpen())) {
                        try {
                            0.close();
                        } catch (java.io.IOException v7_6) {
                            com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_6);
                        }
                    }
                }
            } else {
                v8 = android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES);
            }
        } catch (java.io.IOException v7_0) {
            this.mPromise.reject(v7_0);
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_1) {
                        com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_1);
                    }
                }
            }
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_2) {
                        com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_2);
                    }
                }
            }
        } catch (String v2_11) {
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_3) {
                        com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_3);
                    }
                }
            }
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_4) {
                        com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_4);
                    }
                }
            }
            throw v2_11;
        }
        return;
    }

Method com.facebook.cache.disk.DefaultDiskStorage$InserterImpl.writeData() calling method java.io.FileOutputStream.<init>()


    public void writeData(com.facebook.cache.common.WriterCallback p10, Object p11)
    {
        try {
            java.io.FileOutputStream v1_1 = new java.io.FileOutputStream(this.mTemporaryFile);
            try {
                com.facebook.common.internal.CountingOutputStream v0_1 = new com.facebook.common.internal.CountingOutputStream(v1_1);
                p10.write(v0_1);
                v0_1.flush();
                long v4 = v0_1.getCount();
                v1_1.close();
            } catch (com.facebook.cache.disk.DefaultDiskStorage$IncompleteFileException v3_3) {
                v1_1.close();
                throw v3_3;
            }
            if (this.mTemporaryFile.length() == v4) {
                return;
            } else {
                throw new com.facebook.cache.disk.DefaultDiskStorage$IncompleteFileException(v4, this.mTemporaryFile.length());
            }
        } catch (java.io.FileNotFoundException v2) {
            com.facebook.cache.disk.DefaultDiskStorage.access$900(this.this$0).logError(com.facebook.cache.common.CacheErrorLogger$CacheErrorCategory.WRITE_UPDATE_FILE_NOT_FOUND, com.facebook.cache.disk.DefaultDiskStorage.access$800(), "updateResource", v2);
            throw v2;
        }
    }

Method okio.Okio.sink() calling method java.io.FileOutputStream.<init>()


    public static okio.Sink sink(java.io.File p2)
    {
        if (p2 != null) {
            return okio.Okio.sink(new java.io.FileOutputStream(p2));
        } else {
            throw new IllegalArgumentException("file == null");
        }
    }

Method okio.Okio.appendingSink() calling method java.io.FileOutputStream.<init>()


    public static okio.Sink appendingSink(java.io.File p2)
    {
        if (p2 != null) {
            return okio.Okio.sink(new java.io.FileOutputStream(p2, 1));
        } else {
            throw new IllegalArgumentException("file == null");
        }
    }

Method io.fabric.sdk.android.services.network.HttpRequest.receive() calling method java.io.FileOutputStream.<init>()


    public io.fabric.sdk.android.services.network.HttpRequest receive(java.io.File p5)
    {
        try {
            return ((io.fabric.sdk.android.services.network.HttpRequest) new io.fabric.sdk.android.services.network.HttpRequest$3(this, new java.io.BufferedOutputStream(new java.io.FileOutputStream(p5), this.bufferSize), this.ignoreCloseExceptions, new java.io.BufferedOutputStream(new java.io.FileOutputStream(p5), this.bufferSize)).call());
        } catch (java.io.FileNotFoundException v0) {
            throw new io.fabric.sdk.android.services.network.HttpRequest$HttpRequestException(v0);
        }
    }

Method com.rnfs.Downloader.download() calling method java.io.FileOutputStream.<init>()


    private void download(com.rnfs.DownloadParams p27, com.rnfs.DownloadResult p28)
    {
        java.io.BufferedInputStream v9 = 0;
        java.io.FileOutputStream v15 = 0;
        try {
            java.net.HttpURLConnection v2 = ((java.net.HttpURLConnection) p27.src.openConnection());
            com.facebook.react.bridge.ReadableMapKeySetIterator v12 = p27.headers.keySetIterator();
        } catch (int v22_7) {
            if (v15 != null) {
                v15.close();
            }
            if (v9 != null) {
                v9.close();
            }
            if (v2 != null) {
                v2.disconnect();
            }
            throw v22_7;
        }
        while (v12.hasNextKey()) {
            String v13 = v12.nextKey();
            v2.setRequestProperty(v13, p27.headers.getString(v13));
        }
        int v11;
        v2.setConnectTimeout(5000);
        v2.connect();
        int v18 = v2.getResponseCode();
        int v14 = v2.getContentLength();
        if ((v18 == 200) || ((v18 != 301) && (v18 != 302))) {
            v11 = 0;
        } else {
            v11 = 1;
        }
        if (v11 != 0) {
            String v17 = v2.getHeaderField("Location");
            v2.disconnect();
            int v22_17 = new java.net.URL;
            v22_17(v17);
            v2 = ((java.net.HttpURLConnection) v22_17.openConnection());
            v2.setConnectTimeout(5000);
            v2.connect();
            v18 = v2.getResponseCode();
            v14 = v2.getContentLength();
        }
        java.util.Map v7 = v2.getHeaderFields();
        java.util.HashMap v8_1 = new java.util.HashMap();
        int v23_1 = v7.entrySet().iterator();
        while (v23_1.hasNext()) {
            java.util.Map$Entry v5_1 = ((java.util.Map$Entry) v23_1.next());
            String v6_1 = ((String) v5_1.getKey());
            String v21_1 = ((String) ((java.util.List) v5_1.getValue()).get(0));
            if ((v6_1 != null) && (v21_1 != null)) {
                v8_1.put(v6_1, v21_1);
            }
        }
        this.mParam.onDownloadBegin.onDownloadBegin(v18, v14, v8_1);
        java.io.BufferedInputStream v10_1 = new java.io.BufferedInputStream(v2.getInputStream(), 8192);
        try {
            java.io.FileOutputStream v16 = new java.io.FileOutputStream;
            v16(p27.dest);
            try {
                byte[] v4 = new byte[8192];
                int v19 = 0;
            } catch (int v22_7) {
                v15 = v16;
                v9 = v10_1;
            }
            while(true) {
                int v3 = v10_1.read(v4);
                if ((v3 == -1) || (this.mAbort.get())) {
                    break;
                }
                v19 += v3;
                java.io.FileOutputStream v0_6 = new int[][1];
                int v22_4 = v0_6;
                java.io.FileOutputStream v0_9 = new int[2];
                int[] v24_1 = v0_9;
                v24_1[0] = v14;
                v24_1[1] = v19;
                v22_4[0] = v24_1;
                this.publishProgress(v22_4);
                v16.write(v4, 0, v3);
            }
            v16.flush();
            p28.statusCode = v18;
            p28.bytesWritten = v19;
            if (v16 != null) {
                v16.close();
            }
            if (v10_1 != null) {
                v10_1.close();
            }
            if (v2 != null) {
                v2.disconnect();
            }
            return;
        } catch (int v22_7) {
            v9 = v10_1;
        }
    }

Method com.microsoft.codepush.react.FileUtils.unzipFile() calling method java.io.FileOutputStream.<init>()


    public static void unzipFile(java.io.File p22, String p23)
    {
        java.io.FileInputStream v10 = 0;
        java.io.BufferedInputStream v3 = 0;
        java.util.zip.ZipInputStream v15 = 0;
        try {
            java.io.FileInputStream v11_1 = new java.io.FileInputStream(p22);
            try {
                java.io.BufferedInputStream v4_1 = new java.io.BufferedInputStream(v11_1);
                try {
                    java.util.zip.ZipInputStream v18 = new java.util.zip.ZipInputStream;
                    v18(v4_1);
                    try {
                        java.io.File v5_1 = new java.io.File(p23);
                    } catch (int v19_0) {
                        v15 = v18;
                        v3 = v4_1;
                        v10 = v11_1;
                        try {
                            if (v15 != null) {
                                v15.close();
                            }
                        } catch (java.io.IOException v6_1) {
                            int v19_10 = new com.microsoft.codepush.react.CodePushUnknownException;
                            v19_10("Error closing IO resources.", v6_1);
                            throw v19_10;
                        }
                        if (v3 != null) {
                            v3.close();
                        }
                        if (v10 != null) {
                            v10.close();
                        }
                        throw v19_0;
                    }
                    if (v5_1.exists()) {
                        com.microsoft.codepush.react.FileUtils.deleteFileOrFolderSilently(v5_1);
                    }
                    v5_1.mkdirs();
                    byte[] v2 = new byte[8192];
                    while(true) {
                        java.util.zip.ZipEntry v7 = v18.getNextEntry();
                        if (v7 == null) {
                            break;
                        }
                        java.io.File v8_1 = new java.io.File(v5_1, v7.getName());
                        if (!v7.isDirectory()) {
                            java.io.File v14 = v8_1.getParentFile();
                            if (!v14.exists()) {
                                v14.mkdirs();
                            }
                            java.io.FileOutputStream v12_1 = new java.io.FileOutputStream(v8_1);
                            try {
                                while(true) {
                                    int v13 = v18.read(v2);
                                    v12_1.write(v2, 0, v13);
                                }
                                v12_1.close();
                            } catch (int v19_7) {
                                v12_1.close();
                                throw v19_7;
                            }
                            if (v13 == -1) {
                            }
                        } else {
                            v8_1.mkdirs();
                        }
                        long v16 = v7.getTime();
                        if (v16 > 0) {
                            v8_1.setLastModified(v16);
                        }
                    }
                    try {
                        if (v18 != null) {
                            v18.close();
                        }
                    } catch (java.io.IOException v6_0) {
                        int v19_3 = new com.microsoft.codepush.react.CodePushUnknownException;
                        v19_3("Error closing IO resources.", v6_0);
                        throw v19_3;
                    }
                    if (v4_1 != null) {
                        v4_1.close();
                    }
                    if (v11_1 != null) {
                        v11_1.close();
                    }
                    return;
                } catch (int v19_0) {
                    v3 = v4_1;
                    v10 = v11_1;
                }
            } catch (int v19_0) {
                v10 = v11_1;
            }
        } catch (int v19_0) {
        }
    }

Method com.microsoft.codepush.react.FileUtils.copyDirectoryContents() calling method java.io.FileOutputStream.<init>()


    public static void copyDirectoryContents(String p20, String p21)
    {
        java.io.File v13_1 = new java.io.File(p20);
        java.io.File v4_1 = new java.io.File(p21);
        if (!v4_1.exists()) {
            v4_1.mkdir();
        }
        String v16_0 = v13_1.listFiles();
        int v17 = v16_0.length;
        com.microsoft.codepush.react.CodePushUnknownException v15_0 = 0;
        while (v15_0 < v17) {
            java.io.File v14 = v16_0[v15_0];
            if (!v14.isDirectory()) {
                java.io.File v5_1 = new java.io.File(v4_1, v14.getName());
                java.io.FileInputStream v11 = 0;
                java.io.BufferedInputStream v9 = 0;
                java.io.FileOutputStream v6 = 0;
                byte[] v2 = new byte[8192];
                try {
                    java.io.FileInputStream v12_1 = new java.io.FileInputStream(v14);
                    try {
                        java.io.BufferedInputStream v10_1 = new java.io.BufferedInputStream(v12_1);
                        try {
                            java.io.FileOutputStream v7_1 = new java.io.FileOutputStream(v5_1);
                            try {
                                while(true) {
                                    int v3 = v10_1.read(v2);
                                    v7_1.write(v2, 0, v3);
                                }
                                try {
                                    if (v12_1 != null) {
                                        v12_1.close();
                                    }
                                    if (v10_1 != null) {
                                        v10_1.close();
                                    }
                                    if (v7_1 != null) {
                                        v7_1.close();
                                    }
                                } catch (java.io.IOException v8_1) {
                                    throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v8_1);
                                }
                            } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                                v6 = v7_1;
                                v9 = v10_1;
                                v11 = v12_1;
                                try {
                                    if (v11 != null) {
                                        v11.close();
                                    }
                                } catch (java.io.IOException v8_0) {
                                    throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v8_0);
                                }
                                if (v9 != null) {
                                    v9.close();
                                }
                                if (v6 != null) {
                                    v6.close();
                                }
                                throw v15_1;
                            }
                            if (v3 <= 0) {
                            }
                        } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                            v9 = v10_1;
                            v11 = v12_1;
                        }
                    } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                        v11 = v12_1;
                    }
                } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                }
            } else {
                com.microsoft.codepush.react.FileUtils.copyDirectoryContents(com.microsoft.codepush.react.CodePushUtils.appendPathComponent(p20, v14.getName()), com.microsoft.codepush.react.CodePushUtils.appendPathComponent(p21, v14.getName()));
            }
            v15_0++;
        }
        return;
    }

Method com.microsoft.codepush.react.CodePushUpdateManager.downloadPackage() calling method java.io.FileOutputStream.<init>()


    public void downloadPackage(org.json.JSONObject p43, String p44, com.microsoft.codepush.react.DownloadProgressCallback p45)
    {
        String v30 = p43.optString("packageHash", 0);
        String v29 = this.getPackageFolderPath(v30);
        String v31 = com.microsoft.codepush.react.CodePushUtils.appendPathComponent(v29, "app.json");
        if (com.microsoft.codepush.react.FileUtils.fileAtPathExists(v29)) {
            com.microsoft.codepush.react.FileUtils.deleteDirectoryAtPath(v29);
        }
        String v19 = p43.optString("downloadUrl", 0);
        java.io.BufferedInputStream v6 = 0;
        java.io.FileOutputStream v21 = 0;
        java.io.BufferedOutputStream v8 = 0;
        int v27 = 0;
        try {
            java.net.HttpURLConnection v10 = ((java.net.HttpURLConnection) ((java.net.HttpURLConnection) new java.net.URL(v19).openConnection()));
            long v36 = ((long) v10.getContentLength());
            long v34 = 0;
            java.io.BufferedInputStream v7_1 = new java.io.BufferedInputStream(v10.getInputStream());
            try {
                java.io.File v17 = new java.io.File;
                v17(this.getCodePushPath());
                v17.mkdirs();
                java.io.File v16 = new java.io.File;
                v16(v17, "download.zip");
                try {
                    java.io.FileOutputStream v22 = new java.io.FileOutputStream;
                    v22(v16);
                    try {
                        java.io.BufferedOutputStream v9_1 = new java.io.BufferedOutputStream(v22, 262144);
                        try {
                            byte[] v12 = new byte[262144];
                            org.json.JSONObject v0_40 = new byte[4];
                            byte[] v23 = v0_40;
                        } catch (java.io.IOException v20_1) {
                            v8 = v9_1;
                            v21 = v22;
                            v6 = v7_1;
                            String v39_21 = new com.microsoft.codepush.react.CodePushMalformedDataException;
                            v39_21(v19, v20_1);
                            throw v39_21;
                        }
                        while(true) {
                            int v32 = v7_1.read(v12, 0, 262144);
                            if (v32 < 0) {
                                break;
                            }
                            if (v34 < 4) {
                                int v25 = 0;
                                while (v25 < v32) {
                                    int v24 = (((int) v34) + v25);
                                    if (v24 >= 4) {
                                        break;
                                    }
                                    v23[v24] = v12[v25];
                                    v25++;
                                }
                            }
                            v34 += ((long) v32);
                            v9_1.write(v12, 0, v32);
                            String v39_24 = new com.microsoft.codepush.react.DownloadProgress;
                            v39_24(v36, v34);
                            p45.call(v39_24);
                        }
                        if (v36 == v34) {
                            if (java.nio.ByteBuffer.wrap(v23).getInt() != 1347093252) {
                                v27 = 0;
                            } else {
                                v27 = 1;
                            }
                            try {
                                if (v9_1 != null) {
                                    v9_1.close();
                                }
                            } catch (java.io.IOException v20_0) {
                                String v39_6 = new com.microsoft.codepush.react.CodePushUnknownException;
                                v39_6("Error closing IO resources.", v20_0);
                                throw v39_6;
                            }
                            if (v22 != null) {
                                v22.close();
                            }
                            if (v7_1 != null) {
                                v7_1.close();
                            }
                            if (v10 != null) {
                                v10.disconnect();
                            }
                            if (v27 == 0) {
                                com.microsoft.codepush.react.FileUtils.moveFile(v16, v29, p44);
                            } else {
                                String v38 = this.getUnzippedFolderPath();
                                com.microsoft.codepush.react.FileUtils.unzipFile(v16, v38);
                                com.microsoft.codepush.react.FileUtils.deleteFileOrFolderSilently(v16);
                                String v14 = com.microsoft.codepush.react.CodePushUtils.appendPathComponent(v38, "hotcodepush.json");
                                boolean v26 = com.microsoft.codepush.react.FileUtils.fileAtPathExists(v14);
                                if (v26) {
                                    com.microsoft.codepush.react.CodePushUpdateUtils.copyNecessaryFilesFromCurrentPackage(v14, this.getCurrentPackageFolderPath(), v29);
                                    new java.io.File(v14).delete();
                                }
                                com.microsoft.codepush.react.FileUtils.copyDirectoryContents(v38, v29);
                                com.microsoft.codepush.react.FileUtils.deleteFileAtPathSilently(v38);
                                String v33 = com.microsoft.codepush.react.CodePushUpdateUtils.findJSBundleInUpdateContents(v29, p44);
                                if (v33 != null) {
                                    if (com.microsoft.codepush.react.FileUtils.fileAtPathExists(v31)) {
                                        java.io.File v28 = new java.io.File;
                                        v28(v31);
                                        v28.delete();
                                    }
                                    if (v26) {
                                        com.microsoft.codepush.react.CodePushUpdateUtils.verifyHashForDiffUpdate(v29, v30);
                                    }
                                    com.microsoft.codepush.react.CodePushUtils.setJSONValueForKey(p43, "bundlePath", v33);
                                } else {
                                    throw new com.microsoft.codepush.react.CodePushInvalidUpdateException(new StringBuilder().append("Update is invalid - A JS bundle file named \"").append(p44).append("\" could not be found within the downloaded contents. Please check that you are releasing your CodePush updates using the exact same JS bundle file name that was shipped with your app\'s binary.").toString());
                                }
                            }
                            com.microsoft.codepush.react.CodePushUtils.writeJsonToFile(p43, v31);
                            return;
                        } else {
                            throw new com.microsoft.codepush.react.CodePushUnknownException(new StringBuilder().append("Received ").append(v34).append(" bytes, expected ").append(v36).toString());
                        }
                    } catch (String v39_20) {
                        v21 = v22;
                        v6 = v7_1;
                        try {
                            if (v8 != null) {
                                v8.close();
                            }
                        } catch (java.io.IOException v20_2) {
                            String v39_22 = new com.microsoft.codepush.react.CodePushUnknownException;
                            v39_22("Error closing IO resources.", v20_2);
                            throw v39_22;
                        }
                        if (v21 != null) {
                            v21.close();
                        }
                        if (v6 != null) {
                            v6.close();
                        }
                        if (v10 != null) {
                            v10.disconnect();
                        }
                        throw v39_20;
                    } catch (java.io.IOException v20_1) {
                        v21 = v22;
                        v6 = v7_1;
                    }
                } catch (String v39_20) {
                    v6 = v7_1;
                } catch (java.io.IOException v20_1) {
                    v6 = v7_1;
                }
            } catch (String v39_20) {
                v6 = v7_1;
            } catch (java.io.IOException v20_1) {
                v6 = v7_1;
            }
        } catch (String v39_20) {
        } catch (java.io.IOException v20_1) {
        }
    }

Method com.microsoft.codepush.react.CodePushUpdateManager.downloadAndReplaceCurrentBundle() calling method java.io.FileOutputStream.<init>()


    public void downloadAndReplaceCurrentBundle(String p16, String p17)
    {
        java.io.BufferedInputStream v1 = 0;
        java.io.FileOutputStream v10 = 0;
        java.io.BufferedOutputStream v3 = 0;
        try {
            java.net.HttpURLConnection v5 = ((java.net.HttpURLConnection) ((java.net.HttpURLConnection) new java.net.URL(p16).openConnection()));
            java.io.BufferedInputStream v2_1 = new java.io.BufferedInputStream(v5.getInputStream());
            try {
                java.io.File v7_1 = new java.io.File(this.getCurrentPackageBundlePath(p17));
                v7_1.delete();
                java.io.FileOutputStream v11_1 = new java.io.FileOutputStream(v7_1);
                try {
                    java.io.BufferedOutputStream v4_1 = new java.io.BufferedOutputStream(v11_1, 262144);
                    try {
                        byte[] v6 = new byte[262144];
                    } catch (com.microsoft.codepush.react.CodePushUnknownException v13_2) {
                        v3 = v4_1;
                        v10 = v11_1;
                        v1 = v2_1;
                        try {
                            if (v3 != null) {
                                v3.close();
                            }
                        } catch (java.io.IOException v9_1) {
                            throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v9_1);
                        }
                        if (v10 != null) {
                            v10.close();
                        }
                        if (v1 != null) {
                            v1.close();
                        }
                        if (v5 != null) {
                            v5.disconnect();
                        }
                        throw v13_2;
                    } catch (java.io.IOException v9_0) {
                        v3 = v4_1;
                        v10 = v11_1;
                        v1 = v2_1;
                        throw new com.microsoft.codepush.react.CodePushMalformedDataException(p16, v9_0);
                    }
                    while(true) {
                        int v12 = v2_1.read(v6, 0, 262144);
                        if (v12 < 0) {
                            break;
                        }
                        v4_1.write(v6, 0, v12);
                    }
                    try {
                        if (v4_1 != null) {
                            v4_1.close();
                        }
                    } catch (java.io.IOException v9_2) {
                        throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v9_2);
                    }
                    if (v11_1 != null) {
                        v11_1.close();
                    }
                    if (v2_1 != null) {
                        v2_1.close();
                    }
                    if (v5 != null) {
                        v5.disconnect();
                    }
                    return;
                } catch (com.microsoft.codepush.react.CodePushUnknownException v13_2) {
                    v10 = v11_1;
                    v1 = v2_1;
                } catch (java.io.IOException v9_0) {
                    v10 = v11_1;
                    v1 = v2_1;
                }
            } catch (com.microsoft.codepush.react.CodePushUnknownException v13_2) {
                v1 = v2_1;
            } catch (java.io.IOException v9_0) {
                v1 = v2_1;
            }
        } catch (com.microsoft.codepush.react.CodePushUnknownException v13_2) {
        } catch (java.io.IOException v9_0) {
        }
    }

Method com.facebook.soloader.FileLocker.<init>() calling method java.io.FileOutputStream.<init>()


    private FileLocker(java.io.File p4)
    {
        this.mLockFileOutputStream = new java.io.FileOutputStream(p4);
        try {
            java.nio.channels.FileLock v0 = this.mLockFileOutputStream.getChannel().lock();
        } catch (java.io.FileOutputStream v1_1) {
            if (v0 == null) {
                this.mLockFileOutputStream.close();
            }
            throw v1_1;
        }
        if (v0 == null) {
            this.mLockFileOutputStream.close();
        }
        this.mLock = v0;
        return;
    }

Method com.facebook.react.cxxbridge.UnpackingJSBundleLoader$Unpacker.unpack() calling method java.io.FileOutputStream.<init>()


    public void unpack(android.content.Context p8, byte[] p9)
    {
        Throwable v6 = 0;
        java.io.InputStream v2 = p8.getAssets().open(this.mNameInApk, 2);
        try {
            java.io.FileOutputStream v1_0 = new java.io.FileOutputStream(((java.io.File) com.facebook.infer.annotation.Assertions.assertNotNull(this.mDestinationFilePath)));
            try {
                com.facebook.react.cxxbridge.UnpackingJSBundleLoader.copyBytes(v1_0, v2, p9, 2147483647);
            } catch (Throwable v4_3) {
                Throwable v5_1 = 0;
                if (v1_0 != null) {
                    if (v5_1 == null) {
                        v1_0.close();
                    } else {
                        v1_0.close();
                    }
                }
                throw v4_3;
            } catch (Throwable v5_1) {
                try {
                    throw v5_1;
                } catch (Throwable v4_3) {
                }
            }
            if (v1_0 != null) {
                if (0 == 0) {
                    v1_0.close();
                } else {
                    try {
                        v1_0.close();
                    } catch (Throwable v3_1) {
                        0.addSuppressed(v3_1);
                    }
                }
            }
            if (v2 != null) {
                if (0 == 0) {
                    v2.close();
                } else {
                    try {
                        v2.close();
                    } catch (Throwable v3_3) {
                        0.addSuppressed(v3_3);
                    }
                }
            }
            return;
        } catch (Throwable v4_6) {
            if (v2 != null) {
                if (v6 == null) {
                    v2.close();
                } else {
                    try {
                        v2.close();
                    } catch (Throwable v3_2) {
                        v6.addSuppressed(v3_2);
                    }
                }
            }
            throw v4_6;
        } catch (Throwable v4_5) {
            try {
                throw v4_5;
            } catch (Throwable v5_2) {
                v6 = v4_5;
                v4_6 = v5_2;
            }
        }
    }

Method com.crashlytics.android.core.MetaDataStore.writeUserData() calling method java.io.FileOutputStream.<init>()


    public void writeUserData(String p9, com.crashlytics.android.core.UserMetaData p10)
    {
        java.io.File v1 = this.getUserDataFileForSession(p9);
        java.io.BufferedWriter v3 = 0;
        try {
            String v2 = com.crashlytics.android.core.MetaDataStore.userDataToJson(p10);
            java.io.BufferedWriter v4_0 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(v1), com.crashlytics.android.core.MetaDataStore.UTF_8));
            try {
                v4_0.write(v2);
                v4_0.flush();
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v4_0, "Failed to close user metadata file.");
            } catch (Throwable v5_4) {
                v3 = v4_0;
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v3, "Failed to close user metadata file.");
                throw v5_4;
            } catch (Exception v0) {
                v3 = v4_0;
                io.fabric.sdk.android.Fabric.getLogger().e("CrashlyticsCore", "Error serializing user metadata.", v0);
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v3, "Failed to close user metadata file.");
            }
            return;
        } catch (Throwable v5_4) {
        } catch (Exception v0) {
        }
    }

Method com.crashlytics.android.core.MetaDataStore.writeKeyData() calling method java.io.FileOutputStream.<init>()


    public void writeKeyData(String p9, java.util.Map p10)
    {
        java.io.File v1 = this.getKeysFileForSession(p9);
        java.io.BufferedWriter v3 = 0;
        try {
            String v2 = com.crashlytics.android.core.MetaDataStore.keysDataToJson(p10);
            java.io.BufferedWriter v4_0 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(v1), com.crashlytics.android.core.MetaDataStore.UTF_8));
            try {
                v4_0.write(v2);
                v4_0.flush();
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v4_0, "Failed to close key/value metadata file.");
            } catch (Throwable v5_4) {
                v3 = v4_0;
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v3, "Failed to close key/value metadata file.");
                throw v5_4;
            } catch (Exception v0) {
                v3 = v4_0;
                io.fabric.sdk.android.Fabric.getLogger().e("CrashlyticsCore", "Error serializing key/value metadata.", v0);
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v3, "Failed to close key/value metadata file.");
            }
            return;
        } catch (Throwable v5_4) {
        } catch (Exception v0) {
        }
    }

Method com.crashlytics.android.core.ClsFileOutputStream.<init>() calling method java.io.FileOutputStream.<init>()


    public ClsFileOutputStream(java.io.File p4, String p5)
    {
        super(new java.io.File(p4, new StringBuilder().append(p5).append(".cls_temp").toString()));
        super.closed = 0;
        super.root = new StringBuilder().append(p4).append(java.io.File.separator).append(p5).toString();
        super.inProgress = new java.io.File(new StringBuilder().append(super.root).append(".cls_temp").toString());
        return;
    }

Method android.support.v4.util.AtomicFile.startWrite() calling method java.io.FileOutputStream.<init>()


    public java.io.FileOutputStream startWrite()
    {
        if (this.mBaseName.exists()) {
            if (this.mBackupName.exists()) {
                this.mBaseName.delete();
            } else {
                if (!this.mBaseName.renameTo(this.mBackupName)) {
                    android.util.Log.w("AtomicFile", new StringBuilder().append("Couldn\'t rename file ").append(this.mBaseName).append(" to backup file ").append(this.mBackupName).toString());
                }
            }
        }
        try {
            java.io.FileOutputStream v3_1 = new java.io.FileOutputStream(this.mBaseName);
        } catch (java.io.FileNotFoundException v0) {
            if (this.mBaseName.getParentFile().mkdirs()) {
                try {
                    v3_1 = new java.io.FileOutputStream(this.mBaseName);
                } catch (java.io.FileNotFoundException v1) {
                    throw new java.io.IOException(new StringBuilder().append("Couldn\'t create ").append(this.mBaseName).toString());
                }
            } else {
                throw new java.io.IOException(new StringBuilder().append("Couldn\'t create directory ").append(this.mBaseName).toString());
            }
        }
        return v3_1;
    }

Method android.support.v4.print.PrintHelperKitkat.writeBitmap() calling method java.io.FileOutputStream.<init>()


    private void writeBitmap(android.print.PrintAttributes p18, int p19, android.graphics.Bitmap p20, android.os.ParcelFileDescriptor p21, android.print.PrintDocumentAdapter$WriteResultCallback p22)
    {
        android.print.PrintAttributes v9;
        if (!this.mIsMinMarginsHandlingCorrect) {
            v9 = this.copyAttributes(p18).setMinMargins(new android.print.PrintAttributes$Margins(0, 0, 0, 0)).build();
        } else {
            v9 = p18;
        }
        android.print.pdf.PrintedPdfDocument v10_1 = new android.print.pdf.PrintedPdfDocument(this.mContext, v9);
        android.graphics.Bitmap v7 = this.convertBitmapForColorMode(p20, v9.getColorMode());
        try {
            android.graphics.RectF v2_1;
            android.graphics.pdf.PdfDocument$Page v8 = v10_1.startPage(1);
        } catch (java.io.IOException v11_24) {
            v10_1.close();
            if (p21 != null) {
                try {
                    p21.close();
                } catch (String v12) {
                }
            }
            if (v7 != p20) {
                v7.recycle();
            }
            throw v11_24;
        }
        if (!this.mIsMinMarginsHandlingCorrect) {
            android.print.pdf.PrintedPdfDocument v3_1 = new android.print.pdf.PrintedPdfDocument(this.mContext, p18);
            android.graphics.pdf.PdfDocument$Page v4 = v3_1.startPage(1);
            v2_1 = new android.graphics.RectF(v4.getInfo().getContentRect());
            v3_1.finishPage(v4);
            v3_1.close();
        } else {
            v2_1 = new android.graphics.RectF(v8.getInfo().getContentRect());
        }
        android.graphics.Matrix v6 = this.getMatrix(v7.getWidth(), v7.getHeight(), v2_1, p19);
        if (!this.mIsMinMarginsHandlingCorrect) {
            v6.postTranslate(v2_1.left, v2_1.top);
            v8.getCanvas().clipRect(v2_1);
        }
        v8.getCanvas().drawBitmap(v7, v6, 0);
        v10_1.finishPage(v8);
        try {
            v10_1.writeTo(new java.io.FileOutputStream(p21.getFileDescriptor()));
            java.io.IOException v11_21 = new android.print.PageRange[1];
            v11_21[0] = android.print.PageRange.ALL_PAGES;
            p22.onWriteFinished(v11_21);
        } catch (java.io.IOException v5) {
            android.util.Log.e("PrintHelperKitkat", "Error writing printed content", v5);
            p22.onWriteFailed(0);
        }
        v10_1.close();
        if (p21 != null) {
            try {
                p21.close();
            } catch (java.io.IOException v11) {
            }
        }
        if (v7 != p20) {
            v7.recycle();
        }
        return;
    }

Method io.fabric.sdk.android.services.settings.DefaultCachedSettingsIo.writeCachedSettings() calling method java.io.FileWriter.<init>()


    public void writeCachedSettings(long p8, org.json.JSONObject p10)
    {
        io.fabric.sdk.android.Fabric.getLogger().d("Fabric", "Writing settings to cache file...");
        if (p10 != null) {
            java.io.FileWriter v1 = 0;
            try {
                p10.put("expires_at", p8);
                java.io.FileWriter v2_0 = new java.io.FileWriter(new java.io.File(new io.fabric.sdk.android.services.persistence.FileStoreImpl(this.kit).getFilesDir(), "com.crashlytics.settings.json"));
                try {
                    v2_0.write(p10.toString());
                    v2_0.flush();
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2_0, "Failed to close settings writer.");
                } catch (Throwable v3_7) {
                    v1 = v2_0;
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Failed to close settings writer.");
                    throw v3_7;
                } catch (Exception v0) {
                    v1 = v2_0;
                    io.fabric.sdk.android.Fabric.getLogger().e("Fabric", "Failed to cache settings", v0);
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Failed to close settings writer.");
                }
            } catch (Throwable v3_7) {
            } catch (Exception v0) {
            }
        }
        return;
    }

Method com.rnfs.RNFSManager.readFile() calling method java.io.FileInputStream.<init>()


    public void readFile(String p11, com.facebook.react.bridge.Callback p12)
    {
        try {
            java.io.File v3_1 = new java.io.File(p11);
        } catch (Exception v2) {
            v2.printStackTrace();
            Object[] v5_6 = new Object[1];
            v5_6[0] = this.makeErrorPayload(v2);
            p12.invoke(v5_6);
            return;
        }
        if (v3_1.exists()) {
            byte[] v1 = new byte[((int) v3_1.length())];
            new java.io.FileInputStream(p11).read(v1);
            String v0 = android.util.Base64.encodeToString(v1, 2);
            Object[] v5_3 = new Object[2];
            v5_3[0] = 0;
            v5_3[1] = v0;
            p12.invoke(v5_3);
            return;
        } else {
            throw new Exception("File does not exist");
        }
    }

Method com.imagepicker.ImagePickerModule.getBase64StringFromFile() calling method java.io.FileInputStream.<init>()


    private String getBase64StringFromFile(String p9)
    {
        try {
            java.io.FileInputStream v4 = new java.io.FileInputStream(new java.io.File(p9));
        } catch (java.io.IOException v3_1) {
            v3_1.printStackTrace();
        }
        byte[] v0 = new byte[8192];
        java.io.ByteArrayOutputStream v6_1 = new java.io.ByteArrayOutputStream();
        try {
            while(true) {
                int v2 = v4.read(v0);
                v6_1.write(v0, 0, v2);
            }
            return android.util.Base64.encodeToString(v6_1.toByteArray(), 2);
        } catch (java.io.IOException v3_0) {
            v3_0.printStackTrace();
            return android.util.Base64.encodeToString(v6_1.toByteArray(), 2);
        }
        if (v2 != -1) {
        }
        return android.util.Base64.encodeToString(v6_1.toByteArray(), 2);
    }

Method com.facebook.imagepipeline.producers.LocalFileFetchProducer.getEncodedImage() calling method java.io.FileInputStream.<init>()


    protected com.facebook.imagepipeline.image.EncodedImage getEncodedImage(com.facebook.imagepipeline.request.ImageRequest p5)
    {
        return this.getEncodedImage(new java.io.FileInputStream(p5.getSourceFile().toString()), ((int) p5.getSourceFile().length()));
    }

Method com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.getThumbnail() calling method java.io.FileInputStream.<init>()


    private com.facebook.imagepipeline.image.EncodedImage getThumbnail(com.facebook.imagepipeline.common.ResizeOptions p9, int p10)
    {
        com.facebook.imagepipeline.image.EncodedImage v3_0 = 0;
        int v1 = com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.getThumbnailKind(p9);
        if (v1 != 0) {
            try {
                android.database.Cursor v0 = android.provider.MediaStore$Images$Thumbnails.queryMiniThumbnail(this.mContentResolver, ((long) p10), v1, com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.THUMBNAIL_PROJECTION);
            } catch (com.facebook.imagepipeline.image.EncodedImage v3_1) {
                if (v0 != null) {
                    v0.close();
                }
                throw v3_1;
            }
            if (v0 != null) {
                v0.moveToFirst();
                if (v0.getCount() > 0) {
                    String v2 = v0.getString(v0.getColumnIndex("_data"));
                    if (new java.io.File(v2).exists()) {
                        v3_0 = this.getEncodedImage(new java.io.FileInputStream(v2), com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.getLength(v2));
                        if (v0 == null) {
                            return v3_0;
                        } else {
                            v0.close();
                            return v3_0;
                        }
                    }
                }
                if (v0 != null) {
                    v0.close();
                }
            } else {
                if (v0 != null) {
                    v0.close();
                }
            }
        }
        return v3_0;
    }

Method com.facebook.imagepipeline.producers.LocalContentUriFetchProducer.getCameraImage() calling method java.io.FileInputStream.<init>()


    private com.facebook.imagepipeline.image.EncodedImage getCameraImage(android.net.Uri p9)
    {
        com.facebook.imagepipeline.image.EncodedImage v3 = 0;
        android.database.Cursor v6 = this.mContentResolver.query(p9, com.facebook.imagepipeline.producers.LocalContentUriFetchProducer.PROJECTION, 0, 0, 0);
        if (v6 != null) {
            try {
                if (v6.getCount() != 0) {
                    v6.moveToFirst();
                    String v7 = v6.getString(v6.getColumnIndex("_data"));
                    if (v7 == null) {
                        v6.close();
                    } else {
                        v3 = this.getEncodedImage(new java.io.FileInputStream(v7), com.facebook.imagepipeline.producers.LocalContentUriFetchProducer.getLength(v7));
                        v6.close();
                    }
                } else {
                    v6.close();
                }
            } catch (java.io.FileInputStream v0_4) {
                v6.close();
                throw v0_4;
            }
        }
        return v3;
    }

Method io.fabric.sdk.android.services.settings.DefaultCachedSettingsIo.readCachedSettings() calling method java.io.FileInputStream.<init>()


    public org.json.JSONObject readCachedSettings()
    {
        io.fabric.sdk.android.Fabric.getLogger().d("Fabric", "Reading cached settings...");
        java.io.FileInputStream v1 = 0;
        org.json.JSONObject v5 = 0;
        try {
            java.io.File v3_0 = new java.io.File(new io.fabric.sdk.android.services.persistence.FileStoreImpl(this.kit).getFilesDir(), "com.crashlytics.settings.json");
        } catch (Throwable v7_7) {
            io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Error while closing settings cache file.");
            throw v7_7;
        } catch (Exception v0) {
            io.fabric.sdk.android.Fabric.getLogger().e("Fabric", "Failed to fetch cached settings", v0);
            io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Error while closing settings cache file.");
            return v5;
        }
        if (!v3_0.exists()) {
            io.fabric.sdk.android.Fabric.getLogger().d("Fabric", "No cached settings found.");
        } else {
            java.io.FileInputStream v2_1 = new java.io.FileInputStream(v3_0);
            try {
                v5 = new org.json.JSONObject(io.fabric.sdk.android.services.common.CommonUtils.streamToString(v2_1));
                v1 = v2_1;
            } catch (Throwable v7_7) {
                v1 = v2_1;
            } catch (Exception v0) {
                v1 = v2_1;
            }
        }
        io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Error while closing settings cache file.");
        return v5;
    }

Method io.fabric.sdk.android.services.events.QueueFileEventStorage.move() calling method java.io.FileInputStream.<init>()


    private void move(java.io.File p6, java.io.File p7)
    {
        java.io.OutputStream v2 = 0;
        java.io.FileInputStream v0 = 0;
        try {
            java.io.FileInputStream v1_1 = new java.io.FileInputStream(p6);
            try {
                v2 = this.getMoveOutputStream(p7);
                Throwable v3_4 = new byte[1024];
                io.fabric.sdk.android.services.common.CommonUtils.copyStream(v1_1, v2, v3_4);
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1_1, "Failed to close file input stream");
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2, "Failed to close output stream");
                p6.delete();
                return;
            } catch (Throwable v3_2) {
                v0 = v1_1;
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v0, "Failed to close file input stream");
                io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2, "Failed to close output stream");
                p6.delete();
                throw v3_2;
            }
        } catch (Throwable v3_2) {
        }
        v2 = this.getMoveOutputStream(p7);
        v3_4 = new byte[1024];
        io.fabric.sdk.android.services.common.CommonUtils.copyStream(v1_1, v2, v3_4);
        io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1_1, "Failed to close file input stream");
        io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2, "Failed to close output stream");
        p6.delete();
        return;
    }

Method com.google.android.gms.internal.zzv.zza() calling method java.io.FileInputStream.<init>()


    public declared_synchronized com.google.android.gms.internal.zzb$zza zza(String p9)
    {
        try {
            int v0_3;
            int v0_5 = ((com.google.android.gms.internal.zzv$zza) this.zzbw.get(p9));
        } catch (int v0_7) {
            throw v0_7;
        }
        if (v0_5 != 0) {
            int v3_2 = this.zzf(p9);
            try {
                int v2_0 = new com.google.android.gms.internal.zzv$zzb(new java.io.FileInputStream(v3_2), 0);
                try {
                    com.google.android.gms.internal.zzv$zza.zzf(v2_0);
                    v0_3 = v0_5.zzb(com.google.android.gms.internal.zzv.zza(v2_0, ((int) (v3_2.length() - ((long) com.google.android.gms.internal.zzv$zzb.zza(v2_0))))));
                } catch (int v0_1) {
                    Object[] v5_2 = new Object[2];
                    v5_2[0] = v3_2.getAbsolutePath();
                    v5_2[1] = v0_1.toString();
                    com.google.android.gms.internal.zzs.zzb("%s: %s", v5_2);
                    this.remove(p9);
                    if (v2_0 != 0) {
                        try {
                            v2_0.close();
                        } catch (int v0) {
                            v0_3 = 0;
                            return v0_3;
                        }
                    }
                    v0_3 = 0;
                }
                if (v2_0 != 0) {
                    try {
                        v2_0.close();
                    } catch (int v0) {
                        v0_3 = 0;
                    }
                }
            } catch (int v0_2) {
                v2_0 = 0;
                if (v2_0 != 0) {
                    try {
                        v2_0.close();
                    } catch (int v0) {
                        v0_3 = 0;
                        return v0_3;
                    }
                }
                throw v0_2;
            } catch (int v0_1) {
                v2_0 = 0;
            } catch (int v0_2) {
            }
        } else {
            v0_3 = 0;
        }
        return v0_3;
    }

Method com.google.android.gms.internal.zzv.initialize() calling method java.io.FileInputStream.<init>()


    public declared_synchronized void initialize()
    {
        try {
            if (this.zzby.exists()) {
                String v3_2 = this.zzby.listFiles();
                if (v3_2 != null) {
                    int v4 = v3_2.length;
                    int v2_0 = 0;
                    while (v2_0 < v4) {
                        String v5 = v3_2[v2_0];
                        java.io.IOException v1_1 = 0;
                        try {
                            java.io.IOException v0_2 = new java.io.BufferedInputStream(new java.io.FileInputStream(v5));
                            try {
                                java.io.IOException v1_2 = com.google.android.gms.internal.zzv$zza.zzf(v0_2);
                                v1_2.zzca = v5.length();
                                this.zza(v1_2.zzcb, v1_2);
                            } catch (java.io.IOException v1) {
                                if (v5 != null) {
                                    v5.delete();
                                }
                                if (v0_2 == null) {
                                    v2_0++;
                                } else {
                                    try {
                                        v0_2.close();
                                    } catch (java.io.IOException v0) {
                                    }
                                }
                            }
                            if (v0_2 == null) {
                            } else {
                                try {
                                    v0_2.close();
                                } catch (java.io.IOException v0) {
                                }
                            }
                        } catch (java.io.IOException v0_3) {
                            if (v1_1 != null) {
                                try {
                                    v1_1.close();
                                } catch (java.io.IOException v1) {
                                }
                            }
                            throw v0_3;
                        } catch (java.io.IOException v0) {
                            v0_2 = 0;
                        } catch (java.io.IOException v1_4) {
                            v1_1 = v0_2;
                            v0_3 = v1_4;
                        }
                    }
                }
            } else {
                if (!this.zzby.mkdirs()) {
                    java.io.IOException v1_7 = new Object[1];
                    v1_7[0] = this.zzby.getAbsolutePath();
                    com.google.android.gms.internal.zzs.zzc("Unable to create cache dir %s", v1_7);
                }
            }
        } catch (java.io.IOException v0_8) {
            throw v0_8;
        }
        return;
    }

Method com.fasterxml.jackson.core.JsonFactory.createParser() calling method java.io.FileInputStream.<init>()


    public com.fasterxml.jackson.core.JsonParser createParser(java.io.File p4)
    {
        com.fasterxml.jackson.core.io.IOContext v1 = this._createContext(p4, 1);
        com.fasterxml.jackson.core.JsonParser v0_3 = new java.io.FileInputStream(p4);
        if (this._inputDecorator != null) {
            v0_3 = this._inputDecorator.decorate(v1, v0_3);
        }
        return this._createParser(v0_3, v1);
    }

Method com.fasterxml.jackson.core.JsonFactory._optimizedStreamFromURL() calling method java.io.FileInputStream.<init>()


    protected java.io.InputStream _optimizedStreamFromURL(java.net.URL p3)
    {
        java.io.FileInputStream v0_4;
        if (!"file".equals(p3.getProtocol())) {
            v0_4 = p3.openStream();
        } else {
            java.io.FileInputStream v0_7 = p3.getHost();
            if (((v0_7 != null) && (v0_7.length() != 0)) || (p3.getPath().indexOf(37) >= 0)) {
            } else {
                v0_4 = new java.io.FileInputStream(p3.getPath());
            }
        }
        return v0_4;
    }

Method com.facebook.soloader.ExoSoSource$ExoUnpacker$FileBackedInputDsoIterator.next() calling method java.io.FileInputStream.<init>()


    public com.facebook.soloader.UnpackingSoSource$InputDso next()
    {
        Throwable v3_2 = com.facebook.soloader.ExoSoSource$ExoUnpacker.access$100(this.this$1);
        int v4 = this.mCurrentDso;
        this.mCurrentDso = (v4 + 1);
        com.facebook.soloader.ExoSoSource$FileDso v1 = v3_2[v4];
        try {
            com.facebook.soloader.UnpackingSoSource$InputDso v2_1 = new com.facebook.soloader.UnpackingSoSource$InputDso(v1, new java.io.FileInputStream(v1.backingFile));
        } catch (Throwable v3_1) {
            if (0 != 0) {
                0.close();
            }
            throw v3_1;
        }
        if (0 != 0) {
            0.close();
        }
        return v2_1;
    }

Method com.facebook.react.modules.camera.CameraRollManager$SaveToCameraRoll.doInBackgroundGuarded() calling method java.io.FileInputStream.<init>()


    protected varargs void doInBackgroundGuarded(Void[] p16)
    {
        java.io.File v12_1 = new java.io.File(this.mUri.getPath());
        try {
            java.io.File v8;
            if (this.mType != com.facebook.react.modules.camera.CameraRollManager$MediaType.PHOTO) {
                v8 = android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_MOVIES);
                v8.mkdirs();
                if (v8.isDirectory()) {
                    int v11;
                    String v13;
                    String v14;
                    java.io.File v6_0 = new java.io.File(v8, v12_1.getName());
                    String v9 = v12_1.getName();
                    if (v9.indexOf(46) < 0) {
                        v14 = v9;
                        v13 = "";
                        v11 = 0;
                    } else {
                        v14 = v9.substring(0, v9.lastIndexOf(46));
                        v13 = v9.substring(v9.lastIndexOf(46));
                        v11 = 0;
                    }
                    while (!v6_0.createNewFile()) {
                        int v10_0 = (v11 + 1);
                        v6_0 = new java.io.File(v8, new StringBuilder().append(v14).append("_").append(v11).append(v13).toString());
                        v11 = v10_0;
                    }
                    java.nio.channels.FileChannel v1_1 = new java.io.FileInputStream(v12_1).getChannel();
                    java.nio.channels.FileChannel v0_0 = new java.io.FileOutputStream(v6_0).getChannel();
                    v0_0.transferFrom(v1_1, 0, v1_1.size());
                    v1_1.close();
                    v0_0.close();
                    String v2_31 = this.mContext;
                    String v3_12 = new String[1];
                    v3_12[0] = v6_0.getAbsolutePath();
                    android.media.MediaScannerConnection.scanFile(v2_31, v3_12, 0, new com.facebook.react.modules.camera.CameraRollManager$SaveToCameraRoll$1(this));
                    if ((v1_1 != null) && (v1_1.isOpen())) {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException v7_7) {
                            com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_7);
                        }
                    }
                    if ((v0_0 != null) && (v0_0.isOpen())) {
                        try {
                            v0_0.close();
                        } catch (java.io.IOException v7_8) {
                            com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_8);
                        }
                    }
                } else {
                    this.mPromise.reject("E_UNABLE_TO_LOAD", "External media storage directory not available");
                    if ((0 != 0) && (0.isOpen())) {
                        try {
                            0.close();
                        } catch (java.io.IOException v7_5) {
                            com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_5);
                        }
                    }
                    if ((0 != 0) && (0.isOpen())) {
                        try {
                            0.close();
                        } catch (java.io.IOException v7_6) {
                            com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_6);
                        }
                    }
                }
            } else {
                v8 = android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES);
            }
        } catch (java.io.IOException v7_0) {
            this.mPromise.reject(v7_0);
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_1) {
                        com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_1);
                    }
                }
            }
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_2) {
                        com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_2);
                    }
                }
            }
        } catch (String v2_11) {
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_3) {
                        com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_3);
                    }
                }
            }
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_4) {
                        com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_4);
                    }
                }
            }
            throw v2_11;
        }
        return;
    }

Method com.facebook.react.cxxbridge.UnpackingJSBundleLoader$ContentCheckingUnpacker.shouldReconstructDir() calling method java.io.FileInputStream.<init>()


    public boolean shouldReconstructDir(android.content.Context p11, byte[] p12)
    {
        int v8 = 0;
        Throwable v7_0 = 1;
        if (((java.io.File) com.facebook.infer.annotation.Assertions.assertNotNull(this.mDestinationFilePath)).exists()) {
            java.io.InputStream v2 = p11.getAssets().open(this.mNameInApk, 2);
            try {
                byte[] v1 = com.facebook.react.cxxbridge.UnpackingJSBundleLoader.readBytes(v2, p12, 2147483647);
            } catch (Throwable v6_3) {
                Throwable v7_1 = 0;
                if (v2 != null) {
                    if (v7_1 == null) {
                        v2.close();
                    } else {
                        try {
                            v2.close();
                        } catch (Throwable v5_0) {
                            v7_1.addSuppressed(v5_0);
                        }
                    }
                }
                throw v6_3;
            } catch (Throwable v7_1) {
                try {
                    throw v7_1;
                } catch (Throwable v6_3) {
                }
            }
            if (v2 != null) {
                if (0 == 0) {
                    v2.close();
                } else {
                    try {
                        v2.close();
                    } catch (Throwable v5_1) {
                        0.addSuppressed(v5_1);
                    }
                }
            }
            java.io.FileInputStream v4_1 = new java.io.FileInputStream(((java.io.File) com.facebook.infer.annotation.Assertions.assertNotNull(this.mDestinationFilePath)));
            try {
                byte[] v3 = com.facebook.react.cxxbridge.UnpackingJSBundleLoader.readBytes(v4_1, p12, (v1.length + 1));
            } catch (Throwable v6_12) {
                if (v4_1 != null) {
                    if (v8 == 0) {
                        v4_1.close();
                    } else {
                        try {
                            v4_1.close();
                        } catch (Throwable v5_2) {
                            v8.addSuppressed(v5_2);
                        }
                    }
                }
                throw v6_12;
            } catch (Throwable v6_10) {
                try {
                    throw v6_10;
                } catch (Throwable v7_2) {
                    v8 = v6_10;
                    v6_12 = v7_2;
                }
            }
            if (v4_1 != null) {
                if (0 == 0) {
                    v4_1.close();
                } else {
                    try {
                        v4_1.close();
                    } catch (Throwable v5_3) {
                        0.addSuppressed(v5_3);
                    }
                }
            }
            Throwable v6_14;
            if (java.util.Arrays.equals(v1, v3)) {
                v6_14 = 0;
            } else {
                v6_14 = 1;
            }
            v7_0 = v6_14;
        }
        return v7_0;
    }

Method com.facebook.imagepipeline.producers.LocalFetchProducer$3.get() calling method java.io.FileInputStream.<init>()


    public java.io.FileInputStream get()
    {
        try {
            return new java.io.FileInputStream(this.val$file);
        } catch (java.io.IOException v0) {
            throw new RuntimeException(v0);
        }
    }

Method com.facebook.binaryresource.FileBinaryResource.openStream() calling method java.io.FileInputStream.<init>()


    public java.io.InputStream openStream()
    {
        return new java.io.FileInputStream(this.mFile);
    }

Method com.crashlytics.android.beta.DeviceTokenLoader.getZipInputStreamOfApkFrom() calling method java.io.FileInputStream.<init>()


    java.util.zip.ZipInputStream getZipInputStreamOfApkFrom(android.content.Context p6, String p7)
    {
        return new java.util.zip.ZipInputStream(new java.io.FileInputStream(p6.getPackageManager().getApplicationInfo(p7, 0).sourceDir));
    }

Method okio.Okio.source() calling method java.io.FileInputStream.<init>()


    public static okio.Source source(java.io.File p2)
    {
        if (p2 != null) {
            return okio.Okio.source(new java.io.FileInputStream(p2));
        } else {
            throw new IllegalArgumentException("file == null");
        }
    }

Method io.fabric.sdk.android.services.network.HttpRequest.send() calling method java.io.FileInputStream.<init>()


    public io.fabric.sdk.android.services.network.HttpRequest send(java.io.File p4)
    {
        try {
            return this.send(new java.io.BufferedInputStream(new java.io.FileInputStream(p4)));
        } catch (java.io.FileNotFoundException v0) {
            throw new io.fabric.sdk.android.services.network.HttpRequest$HttpRequestException(v0);
        }
    }

Method io.fabric.sdk.android.services.network.HttpRequest.part() calling method java.io.FileInputStream.<init>()


    public io.fabric.sdk.android.services.network.HttpRequest part(String p6, String p7, String p8, java.io.File p9)
    {
        java.io.BufferedInputStream v1 = 0;
        try {
            java.io.BufferedInputStream v2_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p9));
            try {
                Throwable v3_5 = this.part(p6, p7, p8, v2_1);
            } catch (Throwable v3_2) {
                v1 = v2_1;
                if (v1 != null) {
                    try {
                        v1.close();
                    } catch (java.io.IOException v4) {
                    }
                }
                throw v3_2;
            } catch (java.io.IOException v0) {
                v1 = v2_1;
                throw new io.fabric.sdk.android.services.network.HttpRequest$HttpRequestException(v0);
            }
            if (v2_1 != null) {
                try {
                    v2_1.close();
                } catch (java.io.IOException v4) {
                }
            }
            return v3_5;
        } catch (Throwable v3_2) {
        } catch (java.io.IOException v0) {
        }
    }

Method com.microsoft.codepush.react.FileUtils.unzipFile() calling method java.io.FileInputStream.<init>()


    public static void unzipFile(java.io.File p22, String p23)
    {
        java.io.FileInputStream v10 = 0;
        java.io.BufferedInputStream v3 = 0;
        java.util.zip.ZipInputStream v15 = 0;
        try {
            java.io.FileInputStream v11_1 = new java.io.FileInputStream(p22);
            try {
                java.io.BufferedInputStream v4_1 = new java.io.BufferedInputStream(v11_1);
                try {
                    java.util.zip.ZipInputStream v18 = new java.util.zip.ZipInputStream;
                    v18(v4_1);
                    try {
                        java.io.File v5_1 = new java.io.File(p23);
                    } catch (int v19_0) {
                        v15 = v18;
                        v3 = v4_1;
                        v10 = v11_1;
                        try {
                            if (v15 != null) {
                                v15.close();
                            }
                        } catch (java.io.IOException v6_1) {
                            int v19_10 = new com.microsoft.codepush.react.CodePushUnknownException;
                            v19_10("Error closing IO resources.", v6_1);
                            throw v19_10;
                        }
                        if (v3 != null) {
                            v3.close();
                        }
                        if (v10 != null) {
                            v10.close();
                        }
                        throw v19_0;
                    }
                    if (v5_1.exists()) {
                        com.microsoft.codepush.react.FileUtils.deleteFileOrFolderSilently(v5_1);
                    }
                    v5_1.mkdirs();
                    byte[] v2 = new byte[8192];
                    do {
                        java.util.zip.ZipEntry v7 = v18.getNextEntry();
                        if (v7 == null) {
                            try {
                                if (v18 != null) {
                                    v18.close();
                                }
                            } catch (java.io.IOException v6_0) {
                                int v19_3 = new com.microsoft.codepush.react.CodePushUnknownException;
                                v19_3("Error closing IO resources.", v6_0);
                                throw v19_3;
                            }
                            if (v4_1 != null) {
                                v4_1.close();
                            }
                            if (v11_1 != null) {
                                v11_1.close();
                            }
                            return;
                        } else {
                            java.io.File v8_1 = new java.io.File(v5_1, v7.getName());
                            if (!v7.isDirectory()) {
                                java.io.File v14 = v8_1.getParentFile();
                                if (!v14.exists()) {
                                    v14.mkdirs();
                                }
                                java.io.FileOutputStream v12_1 = new java.io.FileOutputStream(v8_1);
                                try {
                                    while(true) {
                                        int v13 = v18.read(v2);
                                        v12_1.write(v2, 0, v13);
                                    }
                                    v12_1.close();
                                } catch (int v19_7) {
                                    v12_1.close();
                                    throw v19_7;
                                }
                                if (v13 == -1) {
                                }
                            } else {
                                v8_1.mkdirs();
                            }
                            long v16 = v7.getTime();
                        }
                    } while(v16 <= 0);
                    v8_1.setLastModified(v16);
                } catch (int v19_0) {
                    v3 = v4_1;
                    v10 = v11_1;
                }
            } catch (int v19_0) {
                v10 = v11_1;
            }
        } catch (int v19_0) {
        }
    }

Method com.microsoft.codepush.react.FileUtils.readFileToString() calling method java.io.FileInputStream.<init>()


    public static String readFileToString(String p9)
    {
        java.io.FileInputStream v0 = 0;
        java.io.BufferedReader v4 = 0;
        try {
            java.io.FileInputStream v1_1 = new java.io.FileInputStream(new java.io.File(p9));
            try {
                java.io.BufferedReader v5_0 = new java.io.BufferedReader(new java.io.InputStreamReader(v1_1));
                try {
                    StringBuilder v6_1 = new StringBuilder();
                } catch (String v7_0) {
                    v4 = v5_0;
                    v0 = v1_1;
                    if (v4 != null) {
                        v4.close();
                    }
                    if (v0 != null) {
                        v0.close();
                    }
                    throw v7_0;
                }
                while(true) {
                    String v3 = v5_0.readLine();
                    if (v3 == null) {
                        break;
                    }
                    v6_1.append(v3).append("\n");
                }
                String v7_1 = v6_1.toString();
                if (v5_0 != null) {
                    v5_0.close();
                }
                if (v1_1 != null) {
                    v1_1.close();
                }
                return v7_1;
            } catch (String v7_0) {
                v0 = v1_1;
            }
        } catch (String v7_0) {
        }
    }

Method com.microsoft.codepush.react.FileUtils.copyDirectoryContents() calling method java.io.FileInputStream.<init>()


    public static void copyDirectoryContents(String p20, String p21)
    {
        java.io.File v13_1 = new java.io.File(p20);
        java.io.File v4_1 = new java.io.File(p21);
        if (!v4_1.exists()) {
            v4_1.mkdir();
        }
        String v16_0 = v13_1.listFiles();
        int v17 = v16_0.length;
        com.microsoft.codepush.react.CodePushUnknownException v15_0 = 0;
        while (v15_0 < v17) {
            java.io.File v14 = v16_0[v15_0];
            if (!v14.isDirectory()) {
                java.io.File v5_1 = new java.io.File(v4_1, v14.getName());
                java.io.FileInputStream v11 = 0;
                java.io.BufferedInputStream v9 = 0;
                java.io.FileOutputStream v6 = 0;
                byte[] v2 = new byte[8192];
                try {
                    java.io.FileInputStream v12_1 = new java.io.FileInputStream(v14);
                    try {
                        java.io.BufferedInputStream v10_1 = new java.io.BufferedInputStream(v12_1);
                        try {
                            java.io.FileOutputStream v7_1 = new java.io.FileOutputStream(v5_1);
                            try {
                                while(true) {
                                    int v3 = v10_1.read(v2);
                                    v7_1.write(v2, 0, v3);
                                }
                                try {
                                    if (v12_1 != null) {
                                        v12_1.close();
                                    }
                                    if (v10_1 != null) {
                                        v10_1.close();
                                    }
                                    if (v7_1 != null) {
                                        v7_1.close();
                                    }
                                } catch (java.io.IOException v8_1) {
                                    throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v8_1);
                                }
                            } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                                v6 = v7_1;
                                v9 = v10_1;
                                v11 = v12_1;
                                try {
                                    if (v11 != null) {
                                        v11.close();
                                    }
                                } catch (java.io.IOException v8_0) {
                                    throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v8_0);
                                }
                                if (v9 != null) {
                                    v9.close();
                                }
                                if (v6 != null) {
                                    v6.close();
                                }
                                throw v15_1;
                            }
                            if (v3 <= 0) {
                            }
                        } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                            v9 = v10_1;
                            v11 = v12_1;
                        }
                    } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                        v11 = v12_1;
                    }
                } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                }
            } else {
                com.microsoft.codepush.react.FileUtils.copyDirectoryContents(com.microsoft.codepush.react.CodePushUtils.appendPathComponent(p20, v14.getName()), com.microsoft.codepush.react.CodePushUtils.appendPathComponent(p21, v14.getName()));
            }
            v15_0++;
        }
        return;
    }

Method com.microsoft.codepush.react.CodePushUpdateUtils.addContentsOfFolderToManifest() calling method java.io.FileInputStream.<init>()


    private static void addContentsOfFolderToManifest(String p12, String p13, java.util.ArrayList p14)
    {
        java.io.File[] v4 = new java.io.File(p12).listFiles();
        int v9 = v4.length;
        String v8_0 = 0;
        while (v8_0 < v9) {
            com.microsoft.codepush.react.CodePushUnknownException v7_5;
            java.io.File v1 = v4[v8_0];
            String v2 = v1.getName();
            String v5 = v1.getAbsolutePath();
            String v10_1 = new StringBuilder();
            if (!p13.isEmpty()) {
                v7_5 = new StringBuilder().append(p13).append("/").toString();
            } else {
                v7_5 = "";
            }
            String v6 = v10_1.append(v7_5).append(v2).toString();
            if ((!v2.equals(".DS_Store")) && (!v2.equals("__MACOSX"))) {
                if (!v1.isDirectory()) {
                    try {
                        p14.add(new StringBuilder().append(v6).append(":").append(com.microsoft.codepush.react.CodePushUpdateUtils.computeHash(new java.io.FileInputStream(v1))).toString());
                    } catch (java.io.FileNotFoundException v0) {
                        throw new com.microsoft.codepush.react.CodePushUnknownException("Unable to compute hash of update contents.", v0);
                    }
                } else {
                    com.microsoft.codepush.react.CodePushUpdateUtils.addContentsOfFolderToManifest(v5, v6, p14);
                }
            }
            v8_0++;
        }
        return;
    }

Method com.facebook.soloader.MinElf.extract_DT_NEEDED() calling method java.io.FileInputStream.<init>()


    public static String[] extract_DT_NEEDED(java.io.File p2)
    {
        java.io.FileInputStream v0_1 = new java.io.FileInputStream(p2);
        try {
            Throwable v1_1 = com.facebook.soloader.MinElf.extract_DT_NEEDED(v0_1.getChannel());
            v0_1.close();
            return v1_1;
        } catch (Throwable v1_2) {
            v0_1.close();
            throw v1_2;
        }
    }

Method com.facebook.imageformat.ImageFormatChecker.getImageFormat() calling method java.io.FileInputStream.<init>()


    public static com.facebook.imageformat.ImageFormat getImageFormat(String p4)
    {
        java.io.FileInputStream v0 = 0;
        try {
            java.io.FileInputStream v1_1 = new java.io.FileInputStream(p4);
            try {
                Throwable v3_0 = com.facebook.imageformat.ImageFormatChecker.getImageFormat(v1_1);
                com.facebook.common.internal.Closeables.closeQuietly(v1_1);
            } catch (Throwable v3_1) {
                v0 = v1_1;
                com.facebook.common.internal.Closeables.closeQuietly(v0);
                throw v3_1;
            } catch (java.io.IOException v2) {
                v0 = v1_1;
                v3_0 = com.facebook.imageformat.ImageFormat.UNKNOWN;
                com.facebook.common.internal.Closeables.closeQuietly(v0);
            }
            return v3_0;
        } catch (Throwable v3_1) {
        } catch (java.io.IOException v2) {
        }
    }

Method com.facebook.common.internal.Files.toByteArray() calling method java.io.FileInputStream.<init>()


    public static byte[] toByteArray(java.io.File p4)
    {
        java.io.FileInputStream v0 = 0;
        try {
            java.io.FileInputStream v1_1 = new java.io.FileInputStream(p4);
            try {
                Throwable v2_3 = com.facebook.common.internal.Files.readFile(v1_1, v1_1.getChannel().size());
            } catch (Throwable v2_0) {
                v0 = v1_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v2_0;
            }
            if (v1_1 != null) {
                v1_1.close();
            }
            return v2_3;
        } catch (Throwable v2_0) {
        }
    }

Method com.crashlytics.android.core.MetaDataStore.readUserData() calling method java.io.FileInputStream.<init>()


    public com.crashlytics.android.core.UserMetaData readUserData(String p8)
    {
        Throwable v4_1;
        java.io.File v1 = this.getUserDataFileForSession(p8);
        if (v1.exists()) {
            java.io.FileInputStream v2 = 0;
            try {
                java.io.FileInputStream v3_1 = new java.io.FileInputStream(v1);
                try {
                    v4_1 = com.crashlytics.android.core.MetaDataStore.jsonToUserData(io.fabric.sdk.android.services.common.CommonUtils.streamToString(v3_1));
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v3_1, "Failed to close user metadata file.");
                } catch (Throwable v4_4) {
                    v2 = v3_1;
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2, "Failed to close user metadata file.");
                    throw v4_4;
                } catch (Exception v0) {
                    v2 = v3_1;
                    io.fabric.sdk.android.Fabric.getLogger().e("CrashlyticsCore", "Error deserializing user metadata.", v0);
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2, "Failed to close user metadata file.");
                    v4_1 = com.crashlytics.android.core.UserMetaData.EMPTY;
                }
            } catch (Throwable v4_4) {
            } catch (Exception v0) {
            }
        } else {
            v4_1 = com.crashlytics.android.core.UserMetaData.EMPTY;
        }
        return v4_1;
    }

Method com.crashlytics.android.core.MetaDataStore.readKeyData() calling method java.io.FileInputStream.<init>()


    public java.util.Map readKeyData(String p8)
    {
        Throwable v4_1;
        java.io.File v1 = this.getKeysFileForSession(p8);
        if (v1.exists()) {
            java.io.FileInputStream v2 = 0;
            try {
                java.io.FileInputStream v3_1 = new java.io.FileInputStream(v1);
                try {
                    v4_1 = com.crashlytics.android.core.MetaDataStore.jsonToKeysData(io.fabric.sdk.android.services.common.CommonUtils.streamToString(v3_1));
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v3_1, "Failed to close user metadata file.");
                } catch (Throwable v4_4) {
                    v2 = v3_1;
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2, "Failed to close user metadata file.");
                    throw v4_4;
                } catch (Exception v0) {
                    v2 = v3_1;
                    io.fabric.sdk.android.Fabric.getLogger().e("CrashlyticsCore", "Error deserializing user metadata.", v0);
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2, "Failed to close user metadata file.");
                    v4_1 = java.util.Collections.emptyMap();
                }
            } catch (Throwable v4_4) {
            } catch (Exception v0) {
            }
        } else {
            v4_1 = java.util.Collections.emptyMap();
        }
        return v4_1;
    }

Method com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.writeToCosFromFile() calling method java.io.FileInputStream.<init>()


    private static void writeToCosFromFile(com.crashlytics.android.core.CodedOutputStream p6, java.io.File p7)
    {
        if (p7.exists()) {
            java.io.FileInputStream v0 = 0;
            try {
                java.io.FileInputStream v1_1 = new java.io.FileInputStream(p7);
                try {
                    com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.copyToCodedOutputStream(v1_1, p6, ((int) p7.length()));
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1_1, "Failed to close file input stream.");
                } catch (Throwable v2_2) {
                    v0 = v1_1;
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v0, "Failed to close file input stream.");
                    throw v2_2;
                }
            } catch (Throwable v2_2) {
            }
        } else {
            io.fabric.sdk.android.Fabric.getLogger().e("CrashlyticsCore", new StringBuilder().append("Tried to include a file that doesn\'t exist: ").append(p7.getName()).toString(), 0);
        }
        return;
    }

Method android.support.v4.util.AtomicFile.openRead() calling method java.io.FileInputStream.<init>()


    public java.io.FileInputStream openRead()
    {
        if (this.mBackupName.exists()) {
            this.mBaseName.delete();
            this.mBackupName.renameTo(this.mBaseName);
        }
        return new java.io.FileInputStream(this.mBaseName);
    }

Method com.facebook.soloader.ExoSoSource$ExoUnpacker.<init>() calling method java.io.FileReader.<init>()


    ExoSoSource$ExoUnpacker(com.facebook.soloader.ExoSoSource p29)
    {
        this.this$0 = p29;
        com.facebook.soloader.ExoSoSource$ExoUnpacker v28_1 = ;
java.io.File v9_0 = new java.io.File(new StringBuilder().append("/data/local/tmp/exopackage/").append(p29.mContext.getPackageName()).append("/native-libs/").toString());
        java.util.ArrayList v18_1 = new java.util.ArrayList();
        String[] v5 = com.facebook.soloader.SysUtil.getSupportedAbis();
        int v14 = v5.length;
        int v13 = 0;
        while (v13 < v14) {
            java.io.File v4_1 = new java.io.File(v9_0, v5[v13]);
            if (v4_1.isDirectory()) {
                java.io.File v16 = new java.io.File;
                v16(v4_1, "metadata.txt");
                if (v16.isFile()) {
                    java.io.FileReader v11_1 = new java.io.FileReader(v16);
                    try {
                        java.io.BufferedReader v7_1 = new java.io.BufferedReader(v11_1);
                        int v23_3 = 0;
                        try {
                            while(true) {
                                String v15 = v7_1.readLine();
                                String v6 = v15.substring((int v19 + 1));
                                com.facebook.soloader.ExoSoSource$FileDso v22_8 = new com.facebook.soloader.ExoSoSource$FileDso;
                                java.io.File v25_2 = new java.io.File;
                                v25_2(v4_1, v6);
                                v22_8(String v20, v6, v25_2);
                                v18_1.add(v22_8);
                            }
                            if (v7_1 != null) {
                                if (0 == 0) {
                                    v7_1.close();
                                } else {
                                    try {
                                        v7_1.close();
                                    } catch (Throwable v21_2) {
                                        0.addSuppressed(v21_2);
                                    }
                                }
                            }
                            if (v11_1 != null) {
                                if (0 == 0) {
                                    v11_1.close();
                                } else {
                                    try {
                                        v11_1.close();
                                    } catch (Throwable v21_3) {
                                        0.addSuppressed(v21_3);
                                    }
                                }
                            }
                        } catch (com.facebook.soloader.ExoSoSource$FileDso v22_12) {
                            if (v7_1 != null) {
                                if (v23_3 == 0) {
                                    v7_1.close();
                                } else {
                                    v7_1.close();
                                }
                            }
                            throw v22_12;
                        } catch (com.facebook.soloader.ExoSoSource$FileDso v22_11) {
                            try {
                                throw v22_11;
                            } catch (int v23_2) {
                                v23_3 = v22_11;
                                v22_12 = v23_2;
                            }
                        }
                        if (v15 == null) {
                        } else {
                            if (v15.length() != 0) {
                                v19 = v15.indexOf(32);
                                if (v19 != -1) {
                                    v20 = new StringBuilder().append(v15.substring(0, v19)).append(".so").toString();
                                    int v17 = v18_1.size();
                                    int v10 = 0;
                                    int v12 = 0;
                                    while (v12 < v17) {
                                        if (!((com.facebook.soloader.ExoSoSource$FileDso) v18_1.get(v12)).name.equals(v20)) {
                                            v12++;
                                        } else {
                                            v10 = 1;
                                            break;
                                        }
                                    }
                                    if (v10 == 0) {
                                    }
                                } else {
                                    com.facebook.soloader.ExoSoSource$FileDso v22_9 = new RuntimeException;
                                    v22_9(new StringBuilder().append("illegal line in exopackage metadata: [").append(v15).append("]").toString());
                                    throw v22_9;
                                }
                            }
                        }
                    } catch (com.facebook.soloader.ExoSoSource$FileDso v22_15) {
                        try {
                            throw v22_15;
                        } catch (int v23_5) {
                            int v23_4 = v22_15;
                            com.facebook.soloader.ExoSoSource$FileDso v22_14 = v23_5;
                            if (v11_1 != null) {
                                if (v23_4 == 0) {
                                    v11_1.close();
                                } else {
                                    try {
                                        v11_1.close();
                                    } catch (Throwable v21_1) {
                                        v23_4.addSuppressed(v21_1);
                                    }
                                }
                            }
                            throw v22_14;
                        }
                    }
                }
            }
            v13++;
        }
        java.util.ArrayList v0_18 = new com.facebook.soloader.ExoSoSource$FileDso[v18_1.size()];
        v28_1.mDsos = ((com.facebook.soloader.ExoSoSource$FileDso[]) v18_1.toArray(v0_18));
        return;
    }

Method io.fabric.sdk.android.services.common.CommonUtils.extractFieldFromSystemFile() calling method java.io.FileReader.<init>()


    public static String extractFieldFromSystemFile(java.io.File p11, String p12)
    {
        String v6 = 0;
        if (p11.exists()) {
            java.io.BufferedReader v0 = 0;
            try {
                java.io.BufferedReader v1_0 = new java.io.BufferedReader(new java.io.FileReader(p11), 1024);
                try {
                    do {
                        String v3 = v1_0.readLine();
                    } while((String[] v5.length <= 1) || (!v5[0].equals(p12)));
                    v6 = v5[1];
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1_0, "Failed to close system file reader.");
                } catch (int v7_10) {
                    v0 = v1_0;
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v0, "Failed to close system file reader.");
                    throw v7_10;
                } catch (Exception v2) {
                    v0 = v1_0;
                    io.fabric.sdk.android.Fabric.getLogger().e("Fabric", new StringBuilder().append("Error parsing ").append(p11).toString(), v2);
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v0, "Failed to close system file reader.");
                }
                if (v3 != null) {
                    v5 = java.util.regex.Pattern.compile("\\s*:\\s*").split(v3, 2);
                    if ((v5.length > 1) && (v5[0].equals(p12))) {
                    }
                }
            } catch (int v7_10) {
            } catch (Exception v2) {
            }
        }
        return v6;
    }

Method com.google.android.gms.common.util.zzt.zzhc() calling method java.io.FileReader.<init>()


    private static String zzhc(int p5)
    {
        Throwable v0_0 = 0;
        try {
            String v2_1 = new java.io.BufferedReader(new java.io.FileReader(new StringBuilder(25).append("/proc/").append(p5).append("/cmdline").toString()));
            try {
                v0_0 = v2_1.readLine().trim();
            } catch (Exception v1_1) {
                android.util.Log.e("ProcessUtils", v1_1.getMessage(), v1_1);
                if (v2_1 == null) {
                    return v0_0;
                } else {
                    try {
                        v2_1.close();
                    } catch (Exception v1_5) {
                        android.util.Log.w("ProcessUtils", v1_5.getMessage(), v1_5);
                    }
                    return v0_0;
                }
            }
            if (v2_1 == null) {
                return v0_0;
            } else {
                try {
                    v2_1.close();
                } catch (Exception v1_7) {
                    android.util.Log.w("ProcessUtils", v1_7.getMessage(), v1_7);
                }
                return v0_0;
            }
        } catch (Exception v1_3) {
            v2_1 = 0;
            Throwable v0_1 = v1_3;
            if (v2_1 != null) {
                try {
                    v2_1.close();
                } catch (Exception v1_6) {
                    android.util.Log.w("ProcessUtils", v1_6.getMessage(), v1_6);
                }
            }
            throw v0_1;
        } catch (Exception v1_1) {
            v2_1 = 0;
        } catch (Throwable v0_1) {
        }
    }

Method com.facebook.soloader.ApkSoSource.<init>() calling method java.io.File.<init>()


    public ApkSoSource(android.content.Context p3, String p4, int p5)
    {
        super(p3, p4, new java.io.File(p3.getApplicationInfo().sourceDir), "^lib/([^/]+)/([^/]+\\.so)$");
        super.mFlags = p5;
        return;
    }

Method com.rnfs.RNFSManager.unlink() calling method java.io.File.<init>()


    public void unlink(String p9, com.facebook.react.bridge.Callback p10)
    {
        try {
            java.io.File v1_1 = new java.io.File(p9);
        } catch (Exception v0) {
            v0.printStackTrace();
            Object[] v3_3 = new Object[1];
            v3_3[0] = this.makeErrorPayload(v0);
            p10.invoke(v3_3);
            return;
        }
        if (v1_1.exists()) {
            boolean v2 = this.DeleteRecursive(v1_1);
            Object[] v3_0 = new Object[3];
            v3_0[0] = 0;
            v3_0[1] = Boolean.valueOf(v2);
            v3_0[2] = p9;
            p10.invoke(v3_0);
            return;
        } else {
            throw new Exception("File does not exist");
        }
    }

Method com.rnfs.RNFSManager.stat() calling method java.io.File.<init>()


    public void stat(String p11, com.facebook.react.bridge.Callback p12)
    {
        try {
            java.io.File v1_1 = new java.io.File(p11);
        } catch (Exception v0) {
            v0.printStackTrace();
            Object[] v3_8 = new Object[1];
            v3_8[0] = this.makeErrorPayload(v0);
            p12.invoke(v3_8);
            return;
        }
        if (v1_1.exists()) {
            Object[] v3_3;
            com.facebook.react.bridge.WritableMap v2 = com.facebook.react.bridge.Arguments.createMap();
            v2.putInt("ctime", ((int) (v1_1.lastModified() / 1000)));
            v2.putInt("mtime", ((int) (v1_1.lastModified() / 1000)));
            v2.putInt("size", ((int) v1_1.length()));
            if (!v1_1.isDirectory()) {
                v3_3 = 0;
            } else {
                v3_3 = 1;
            }
            v2.putInt("type", v3_3);
            Object[] v3_5 = new Object[2];
            v3_5[0] = 0;
            v3_5[1] = v2;
            p12.invoke(v3_5);
            return;
        } else {
            throw new Exception("File does not exist");
        }
    }

Method com.rnfs.RNFSManager.readFile() calling method java.io.File.<init>()


    public void readFile(String p11, com.facebook.react.bridge.Callback p12)
    {
        try {
            java.io.File v3_1 = new java.io.File(p11);
        } catch (Exception v2) {
            v2.printStackTrace();
            Object[] v5_6 = new Object[1];
            v5_6[0] = this.makeErrorPayload(v2);
            p12.invoke(v5_6);
            return;
        }
        if (v3_1.exists()) {
            byte[] v1 = new byte[((int) v3_1.length())];
            new java.io.FileInputStream(p11).read(v1);
            String v0 = android.util.Base64.encodeToString(v1, 2);
            Object[] v5_3 = new Object[2];
            v5_3[0] = 0;
            v5_3[1] = v0;
            p12.invoke(v5_3);
            return;
        } else {
            throw new Exception("File does not exist");
        }
    }

Method com.rnfs.RNFSManager.readDir() calling method java.io.File.<init>()


    public void readDir(String p13, com.facebook.react.bridge.Callback p14)
    {
        try {
            java.io.File v2_1 = new java.io.File(p13);
        } catch (Exception v1) {
            v1.printStackTrace();
            int v6_13 = new Object[1];
            v6_13[0] = this.makeErrorPayload(v1);
            p14.invoke(v6_13);
            return;
        }
        if (v2_1.exists()) {
            java.io.File[] v5 = v2_1.listFiles();
            com.facebook.react.bridge.WritableArray v4 = com.facebook.react.bridge.Arguments.createArray();
            int v8_2 = v5.length;
            int v7_0 = 0;
            while (v7_0 < v8_2) {
                int v6_8;
                java.io.File v0 = v5[v7_0];
                com.facebook.react.bridge.WritableMap v3 = com.facebook.react.bridge.Arguments.createMap();
                v3.putString("name", v0.getName());
                v3.putString("path", v0.getAbsolutePath());
                v3.putInt("size", ((int) v0.length()));
                if (!v0.isDirectory()) {
                    v6_8 = 0;
                } else {
                    v6_8 = 1;
                }
                v3.putInt("type", v6_8);
                v4.pushMap(v3);
                v7_0++;
            }
            int v6_2 = new Object[2];
            v6_2[0] = 0;
            v6_2[1] = v4;
            p14.invoke(v6_2);
            return;
        } else {
            throw new Exception("Folder does not exist");
        }
    }

Method com.rnfs.RNFSManager.moveFile() calling method java.io.File.<init>()


    public void moveFile(String p9, String p10, com.facebook.react.bridge.Callback p11)
    {
        try {
            new java.io.File(p9).renameTo(new java.io.File(p10));
            Object[] v3_2 = new Object[3];
            v3_2[0] = 0;
            v3_2[1] = Boolean.valueOf(1);
            v3_2[2] = p10;
            p11.invoke(v3_2);
        } catch (Exception v0) {
            v0.printStackTrace();
            Object[] v3_0 = new Object[1];
            v3_0[0] = this.makeErrorPayload(v0);
            p11.invoke(v3_0);
        }
        return;
    }

Method com.rnfs.RNFSManager.mkdir() calling method java.io.File.<init>()


    public void mkdir(String p9, Boolean p10, com.facebook.react.bridge.Callback p11)
    {
        try {
            java.io.File v1_1 = new java.io.File(p9);
            v1_1.mkdirs();
            boolean v2 = v1_1.exists();
            Object[] v3_2 = new Object[3];
            v3_2[0] = 0;
            v3_2[1] = Boolean.valueOf(v2);
            v3_2[2] = p9;
            p11.invoke(v3_2);
        } catch (Exception v0) {
            v0.printStackTrace();
            Object[] v3_0 = new Object[1];
            v3_0[0] = this.makeErrorPayload(v0);
            p11.invoke(v3_0);
        }
        return;
    }

Method com.rnfs.RNFSManager.exists() calling method java.io.File.<init>()


    public void exists(String p8, com.facebook.react.bridge.Callback p9)
    {
        try {
            java.io.File v1_1 = new java.io.File(p8);
            Object[] v2_2 = new Object[2];
            v2_2[0] = 0;
            v2_2[1] = Boolean.valueOf(v1_1.exists());
            p9.invoke(v2_2);
        } catch (Exception v0) {
            v0.printStackTrace();
            Object[] v2_0 = new Object[1];
            v2_0[0] = this.makeErrorPayload(v0);
            p9.invoke(v2_0);
        }
        return;
    }

Method com.rnfs.RNFSManager.downloadFile() calling method java.io.File.<init>()


    public void downloadFile(com.facebook.react.bridge.ReadableMap p12, com.facebook.react.bridge.Callback p13)
    {
        try {
            java.io.File v2_1 = new java.io.File(p12.getString("toFile"));
            java.net.URL v6_0 = new java.net.URL(p12.getString("fromUrl"));
            int v4 = p12.getInt("jobId");
            com.facebook.react.bridge.ReadableMap v3 = p12.getMap("headers");
            com.rnfs.DownloadParams v5_1 = new com.rnfs.DownloadParams();
            v5_1.src = v6_0;
            v5_1.dest = v2_1;
            v5_1.headers = v3;
            v5_1.onTaskCompleted = new com.rnfs.RNFSManager$1(this, v4, p13);
            v5_1.onDownloadBegin = new com.rnfs.RNFSManager$2(this, v4);
            v5_1.onDownloadProgress = new com.rnfs.RNFSManager$3(this, v4);
            com.rnfs.Downloader v0_1 = new com.rnfs.Downloader();
            Object[] v7_11 = new com.rnfs.DownloadParams[1];
            v7_11[0] = v5_1;
            v0_1.execute(v7_11);
            this.downloaders.put(v4, v0_1);
        } catch (Exception v1) {
            v1.printStackTrace();
            Object[] v7_13 = new Object[1];
            v7_13[0] = this.makeErrorPayload(v1);
            p13.invoke(v7_13);
        }
        return;
    }

Method com.oblador.vectoricons.VectorIconsModule.getImageForFont() calling method java.io.File.<init>()


    public void getImageForFont(String p28, String p29, Integer p30, Integer p31, com.facebook.react.bridge.Callback p32)
    {
        Object[] v24_35;
        com.facebook.react.bridge.ReactApplicationContext v13 = this.getReactApplicationContext();
        String v10 = new StringBuilder().append(v13.getCacheDir().getAbsolutePath()).append("/").toString();
        float v19 = v13.getResources().getDisplayMetrics().density;
        int v25_16 = new StringBuilder().append("@");
        if (v19 != ((float) ((int) v19))) {
            v24_35 = Float.toString(v19);
        } else {
            v24_35 = Integer.toString(((int) v19));
        }
        String v20 = v25_16.append(v24_35).append("x").toString();
        int v21 = Math.round((((float) p30.intValue()) * v19));
        String v7 = new StringBuilder().append(v10).append(Integer.toString(new StringBuilder().append(p28).append(":").append(p29).append(":").append(p31).toString().hashCode(), 32)).append("_").append(Integer.toString(p30.intValue())).append(v20).append(".png").toString();
        String v8 = new StringBuilder().append("file://").append(v7).toString();
        java.io.File v6_1 = new java.io.File(v7);
        if (!v6_1.exists()) {
            int v15 = 0;
            android.graphics.Typeface v23 = com.facebook.react.views.text.ReactFontManager.getInstance().getTypeface(p28, 0, v13.getAssets());
            android.graphics.Paint v18_1 = new android.graphics.Paint();
            v18_1.setTypeface(v23);
            v18_1.setColor(p31.intValue());
            v18_1.setTextSize(((float) v21));
            v18_1.setAntiAlias(1);
            android.graphics.Rect v22_1 = new android.graphics.Rect();
            v18_1.getTextBounds(p29, 0, p29.length(), v22_1);
            android.graphics.Bitmap v5 = android.graphics.Bitmap.createBitmap(v22_1.width(), v22_1.height(), android.graphics.Bitmap$Config.ARGB_8888);
            new android.graphics.Canvas(v5).drawText(p29, ((float) (- v22_1.left)), ((float) (- v22_1.top)), v18_1);
            try {
                java.io.FileOutputStream v16 = new java.io.FileOutputStream;
                v16(v6_1);
                try {
                    v5.compress(android.graphics.Bitmap$CompressFormat.PNG, 100, v16);
                    v16.flush();
                    v16.close();
                    v15 = 0;
                } catch (Object[] v24_23) {
                    v15 = v16;
                    if (v15 != 0) {
                        try {
                            v15.close();
                        } catch (java.io.IOException v14_4) {
                            v14_4.printStackTrace();
                        }
                    }
                    throw v24_23;
                } catch (java.io.IOException v14_1) {
                    v15 = v16;
                    com.facebook.react.bridge.Callback v0_34 = new Object[1];
                    Object[] v24_29 = v0_34;
                    v24_29[0] = v14_1.getMessage();
                    p32.invoke(v24_29);
                    if (v15 != 0) {
                        try {
                            v15.close();
                        } catch (java.io.IOException v14_3) {
                            v14_3.printStackTrace();
                        }
                    }
                } catch (java.io.IOException v14_0) {
                    v15 = v16;
                    com.facebook.react.bridge.Callback v0_31 = new Object[1];
                    Object[] v24_27 = v0_31;
                    v24_27[0] = v14_0.getMessage();
                    p32.invoke(v24_27);
                    if (v15 != 0) {
                        try {
                            v15.close();
                        } catch (java.io.IOException v14_2) {
                            v14_2.printStackTrace();
                        }
                    }
                }
                com.facebook.react.bridge.Callback v0_28 = new Object[2];
                Object[] v24_24 = v0_28;
                v24_24[0] = 0;
                v24_24[1] = v8;
                p32.invoke(v24_24);
                if (0 != 0) {
                    try {
                        0.close();
                    } catch (java.io.IOException v14_5) {
                        v14_5.printStackTrace();
                    }
                }
            } catch (Object[] v24_23) {
            } catch (java.io.IOException v14_1) {
            } catch (java.io.IOException v14_0) {
            }
        } else {
            com.facebook.react.bridge.Callback v0_39 = new Object[2];
            Object[] v24_31 = v0_39;
            v24_31[0] = 0;
            v24_31[1] = v8;
            p32.invoke(v24_31);
        }
        return;
    }

Method com.imagepicker.ImagePickerModule.putExtraFileInfo() calling method java.io.File.<init>()


    private void putExtraFileInfo(String p7, com.facebook.react.bridge.WritableMap p8)
    {
        try {
            java.io.File v2_1 = new java.io.File(p7);
            p8.putDouble("fileSize", ((double) v2_1.length()));
            p8.putString("fileName", v2_1.getName());
        } catch (Exception v0) {
            v0.printStackTrace();
        }
        String v1 = android.webkit.MimeTypeMap.getFileExtensionFromUrl(p7);
        if (v1 != null) {
            p8.putString("type", android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension(v1));
        }
        return;
    }

Method com.imagepicker.ImagePickerModule.getBase64StringFromFile() calling method java.io.File.<init>()


    private String getBase64StringFromFile(String p9)
    {
        try {
            java.io.FileInputStream v4 = new java.io.FileInputStream(new java.io.File(p9));
        } catch (java.io.IOException v3_1) {
            v3_1.printStackTrace();
        }
        byte[] v0 = new byte[8192];
        java.io.ByteArrayOutputStream v6_1 = new java.io.ByteArrayOutputStream();
        try {
            while(true) {
                int v2 = v4.read(v0);
                v6_1.write(v0, 0, v2);
            }
            return android.util.Base64.encodeToString(v6_1.toByteArray(), 2);
        } catch (java.io.IOException v3_0) {
            v3_0.printStackTrace();
            return android.util.Base64.encodeToString(v6_1.toByteArray(), 2);
        }
        if (v2 != -1) {
        }
        return android.util.Base64.encodeToString(v6_1.toByteArray(), 2);
    }

Method com.imagepicker.ImagePickerModule.createNewFile() calling method java.io.File.<init>()


    private java.io.File createNewFile()
    {
        java.io.File v3;
        String v2 = new StringBuilder().append("image-").append(java.util.UUID.randomUUID().toString()).append(".jpg").toString();
        if (!this.tmpImage.booleanValue()) {
            v3 = android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES);
        } else {
            v3 = this.mReactContext.getExternalCacheDir();
        }
        java.io.File v1_1 = new java.io.File(v3, v2);
        try {
            v3.mkdirs();
            v1_1.createNewFile();
        } catch (java.io.IOException v0) {
            v0.printStackTrace();
        }
        return v1_1;
    }

Method com.imagepicker.ImagePickerModule.createFileFromURI() calling method java.io.File.<init>()


    private java.io.File createFileFromURI(android.net.Uri p9)
    {
        java.io.File v1_1 = new java.io.File(this.mReactContext.getExternalCacheDir(), new StringBuilder().append("photo-").append(p9.getLastPathSegment()).toString());
        java.io.InputStream v2 = this.mReactContext.getContentResolver().openInputStream(p9);
        java.io.FileOutputStream v3_1 = new java.io.FileOutputStream(v1_1);
        try {
            byte[] v0 = new byte[4096];
        } catch (int v5_6) {
            v3_1.close();
            v2.close();
            throw v5_6;
        }
        while(true) {
            int v4 = v2.read(v0);
            if (v4 == -1) {
                break;
            }
            v3_1.write(v0, 0, v4);
        }
        v3_1.flush();
        v3_1.close();
        v2.close();
        return v1_1;
    }

Method com.facebook.react.modules.camera.ImageEditingManager.getFileFromUri() calling method java.io.File.<init>()


    private static java.io.File getFileFromUri(android.content.Context p8, android.net.Uri p9)
    {
        java.io.File v3_0 = 0;
        if (!p9.getScheme().equals("file")) {
            if (p9.getScheme().equals("content")) {
                boolean v0_1 = p8.getContentResolver();
                String[] v2 = new String[1];
                v2[0] = "_data";
                android.database.Cursor v6 = v0_1.query(p9, v2, 0, 0, 0);
                if (v6 != null) {
                    try {
                        if (v6.moveToFirst()) {
                            String v7 = v6.getString(0);
                            if (!android.text.TextUtils.isEmpty(v7)) {
                                v3_0 = new java.io.File(v7);
                                v6.close();
                                return v3_0;
                            }
                        }
                    } catch (boolean v0_6) {
                        v6.close();
                        throw v0_6;
                    }
                    v6.close();
                }
            }
        } else {
            v3_0 = new java.io.File(p9.getPath());
        }
        return v3_0;
    }

Method com.facebook.react.devsupport.JSCHeapCapture.captureComplete() calling method java.io.File.<init>()


    public declared_synchronized void captureComplete(String p3, String p4)
    {
        try {
            if (this.mCaptureInProgress != null) {
                if (p4 != null) {
                    this.mCaptureInProgress.onFailure(new com.facebook.react.devsupport.JSCHeapCapture$CaptureException(p4));
                } else {
                    this.mCaptureInProgress.onSuccess(new java.io.File(p3));
                }
                this.mCaptureInProgress = 0;
            }
        } catch (int v0_2) {
            throw v0_2;
        }
        return;
    }

Method com.facebook.react.devsupport.JSCHeapCapture.captureHeap() calling method java.io.File.<init>()


    public static declared_synchronized void captureHeap(String p11, com.facebook.react.devsupport.JSCHeapCapture$CaptureCallback p12)
    {
        try {
            java.util.LinkedList v1_1 = new java.util.LinkedList();
            java.util.LinkedList v0_1 = new java.util.LinkedList();
        } catch (com.facebook.react.devsupport.JSCHeapCapture$1 v8_31) {
            throw v8_31;
        }
        if (!com.facebook.react.devsupport.JSCHeapCapture.sRegisteredDumpers.isEmpty()) {
            int v2_1 = 0;
            java.io.File v4_1 = new java.io.File(new StringBuilder().append(p11).append("/capture").append(Integer.toString(0)).append(".json").toString());
            while (v4_1.delete()) {
                v2_1++;
                v4_1 = new java.io.File(new StringBuilder().append(p11).append("/capture").append(Integer.toString(v2_1)).append(".json").toString());
            }
            int v7 = com.facebook.react.devsupport.JSCHeapCapture.sRegisteredDumpers.size();
            java.util.Iterator v6 = com.facebook.react.devsupport.JSCHeapCapture.sRegisteredDumpers.iterator();
            while (v6.hasNext()) {
                ((com.facebook.react.devsupport.JSCHeapCapture) v6.next()).captureHeapHelper(new java.io.File(new StringBuilder().append(p11).append("/capture").append(Integer.toString(0)).append(".json").toString()), new com.facebook.react.devsupport.JSCHeapCapture$1(v1_1, v0_1, v7, p12));
            }
        } else {
            v0_1.add(new com.facebook.react.devsupport.JSCHeapCapture$CaptureException("No JSC registered"));
            p12.onComplete(v1_1, v0_1);
        }
        return;
    }

Method com.facebook.soloader.UnpackingSoSource.prepare() calling method java.io.File.<init>()


    protected void prepare(int p7)
    {
        com.facebook.soloader.SysUtil.mkdirOrThrow(this.soDirectory);
        int v0 = com.facebook.soloader.FileLocker.lock(new java.io.File(this.soDirectory, "dso_lock"));
        try {
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("locked dso store ").append(this.soDirectory).toString());
        } catch (String v2_5) {
            if (v0 == 0) {
                android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("not releasing dso store lock for ").append(this.soDirectory).append(" (syncer thread started)").toString());
            } else {
                android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("releasing dso store lock for ").append(this.soDirectory).toString());
                v0.close();
            }
            throw v2_5;
        }
        if (!this.refreshLocked(v0, p7, this.getDepsBlock())) {
            android.util.Log.i("fb-UnpackingSoSource", new StringBuilder().append("dso store is up-to-date: ").append(this.soDirectory).toString());
        } else {
            v0 = 0;
        }
        if (v0 == 0) {
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("not releasing dso store lock for ").append(this.soDirectory).append(" (syncer thread started)").toString());
        } else {
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("releasing dso store lock for ").append(this.soDirectory).toString());
            v0.close();
        }
        return;
    }

Method com.facebook.soloader.UnpackingSoSource.regenerate() calling method java.io.File.<init>()


    private void regenerate(byte p17, com.facebook.soloader.UnpackingSoSource$DsoManifest p18, com.facebook.soloader.UnpackingSoSource$InputDsoIterator p19)
    {
        com.facebook.soloader.UnpackingSoSource$DsoManifest v3;
        android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("regenerating DSO store ").append(this.getClass().getName()).toString());
        java.io.RandomAccessFile v7_1 = new java.io.RandomAccessFile(new java.io.File(this.soDirectory, "dso_manifest"), "rw");
        com.facebook.soloader.UnpackingSoSource$DsoManifest v2_0 = 0;
        try {
            if (p17 != 1) {
                v3 = v2_0;
                com.facebook.soloader.UnpackingSoSource$DsoManifest v2_1;
                if (v3 != null) {
                    v2_1 = v3;
                } else {
                    try {
                        Throwable v11_12 = new com.facebook.soloader.UnpackingSoSource$Dso[0];
                        v2_1 = new com.facebook.soloader.UnpackingSoSource$DsoManifest(v11_12);
                    } catch (Throwable v11_1) {
                        try {
                            throw v11_1;
                        } catch (boolean v12_1) {
                            boolean v12_2 = v11_1;
                            Throwable v11_2 = v12_1;
                            if (v7_1 != null) {
                                if (!v12_2) {
                                    v7_1.close();
                                } else {
                                    try {
                                        v7_1.close();
                                    } catch (Throwable v10_0) {
                                        v12_2.addSuppressed(v10_0);
                                    }
                                }
                            }
                            throw v11_2;
                        }
                    }
                }
                this.deleteUnmentionedFiles(p18.dsos);
                byte[] v6 = new byte[32768];
                while (p19.hasNext()) {
                    com.facebook.soloader.UnpackingSoSource$InputDso v5 = p19.next();
                    boolean v12_9 = 0;
                    int v9 = 1;
                    int v4 = 0;
                    try {
                        while ((v9 != 0) && (v4 < v2_1.dsos.length)) {
                            if ((v2_1.dsos[v4].name.equals(v5.dso.name)) && (v2_1.dsos[v4].hash.equals(v5.dso.hash))) {
                                v9 = 0;
                            }
                            v4++;
                        }
                    } catch (Throwable v11_23) {
                        if (v5 != null) {
                            if (!v12_9) {
                                v5.close();
                            } else {
                                v5.close();
                            }
                        }
                        throw v11_23;
                    } catch (Throwable v11_22) {
                        try {
                            throw v11_22;
                        } catch (boolean v12_10) {
                            v12_9 = v11_22;
                            v11_23 = v12_10;
                        }
                    }
                    if (v9 != 0) {
                        this.extractDso(v5, v6);
                    }
                    if (v5 != null) {
                        if (0 == 0) {
                            v5.close();
                        } else {
                            try {
                                v5.close();
                            } catch (Throwable v10_2) {
                                0.addSuppressed(v10_2);
                            }
                        }
                    }
                }
                if (v7_1 != null) {
                    if (0 == 0) {
                        v7_1.close();
                    } else {
                        try {
                            v7_1.close();
                        } catch (Throwable v10_1) {
                            0.addSuppressed(v10_1);
                        }
                    }
                }
                return;
            } else {
                try {
                    v2_0 = com.facebook.soloader.UnpackingSoSource$DsoManifest.read(v7_1);
                    v3 = v2_0;
                } catch (Exception v1) {
                    android.util.Log.i("fb-UnpackingSoSource", "error reading existing DSO manifest", v1);
                }
            }
        } catch (Throwable v11_2) {
            v12_2 = 0;
        } catch (Throwable v11_1) {
        }
    }

Method com.facebook.soloader.UnpackingSoSource.refreshLocked() calling method java.io.File.<init>()


    private boolean refreshLocked(com.facebook.soloader.FileLocker p24, int p25, byte[] p26)
    {
        java.io.File v7_1 = new java.io.File(this.soDirectory, "dso_state");
        java.io.RandomAccessFile v15_1 = new java.io.RandomAccessFile(v7_1, "rw");
        Thread v5_6 = 0;
        try {
            int v14 = v15_1.readByte();
        } catch (int v3_9) {
            if (v15_1 != null) {
                if (v5_6 == null) {
                    v15_1.close();
                } else {
                    try {
                        v15_1.close();
                    } catch (Throwable v17_6) {
                        v5_6.addSuppressed(v17_6);
                    }
                }
            }
            throw v3_9;
        } catch (java.io.EOFException v11) {
            v14 = 0;
            if (v15_1 != null) {
                if (0 == 0) {
                    v15_1.close();
                } else {
                    try {
                        v15_1.close();
                    } catch (Throwable v17_7) {
                        0.addSuppressed(v17_7);
                    }
                }
            }
            java.io.File v4_1 = new java.io.File(this.soDirectory, "dso_deps");
            com.facebook.soloader.UnpackingSoSource$DsoManifest v10 = 0;
            java.io.RandomAccessFile v9_1 = new java.io.RandomAccessFile(v4_1, "rw");
            try {
                byte[] v12 = new byte[((int) v9_1.length())];
            } catch (int v3_6) {
                try {
                    throw v3_6;
                } catch (Thread v5_5) {
                    Thread v5_3 = v3_6;
                    int v3_5 = v5_5;
                    if (v9_1 != null) {
                        if (v5_3 == null) {
                            v9_1.close();
                        } else {
                            try {
                                v9_1.close();
                            } catch (Throwable v17_4) {
                                v5_3.addSuppressed(v17_4);
                            }
                        }
                    }
                    throw v3_5;
                }
            }
            if (v9_1.read(v12) != v12.length) {
                android.util.Log.v("fb-UnpackingSoSource", "short read of so store deps file: marking unclean");
                v14 = 0;
            }
            if (!java.util.Arrays.equals(v12, p26)) {
                android.util.Log.v("fb-UnpackingSoSource", "deps mismatch on deps store: regenerating");
                v14 = 0;
            }
            if (v14 == 0) {
                android.util.Log.v("fb-UnpackingSoSource", "so store dirty: regenerating");
                com.facebook.soloader.UnpackingSoSource.writeState(v7_1, 0);
                com.facebook.soloader.UnpackingSoSource$Unpacker v16 = this.makeUnpacker();
                try {
                    v10 = v16.getDsoManifest();
                    com.facebook.soloader.UnpackingSoSource$InputDsoIterator v13 = v16.openDsoIterator();
                    Thread v5_0 = 0;
                    try {
                        this.regenerate(v14, v10, v13);
                    } catch (Thread v5_0) {
                        throw v5_0;
                    } catch (int v3_0) {
                        if (v13 != null) {
                            if (v5_0 == null) {
                                v13.close();
                            } else {
                                v13.close();
                            }
                        }
                        throw v3_0;
                    }
                    if (v13 != null) {
                        if (0 == 0) {
                            v13.close();
                        } else {
                            try {
                                v13.close();
                            } catch (Throwable v17_1) {
                                0.addSuppressed(v17_1);
                            }
                        }
                    }
                    if (v16 != null) {
                        if (0 == 0) {
                            v16.close();
                        } else {
                            try {
                                v16.close();
                            } catch (Throwable v17_3) {
                                0.addSuppressed(v17_3);
                            }
                        }
                    }
                } catch (int v3_3) {
                    Thread v5_2 = 0;
                    if (v16 != null) {
                        if (v5_2 == null) {
                            v16.close();
                        } else {
                            v16.close();
                        }
                    }
                    throw v3_3;
                } catch (int v3_2) {
                    try {
                        throw v3_2;
                    } catch (Thread v5_1) {
                        v5_2 = v3_2;
                        v3_3 = v5_1;
                    }
                }
            }
            if (v9_1 != null) {
                if (0 == 0) {
                    v9_1.close();
                } else {
                    try {
                        v9_1.close();
                    } catch (Throwable v17_5) {
                        0.addSuppressed(v17_5);
                    }
                }
            }
            int v3_12;
            if (v10 != null) {
                com.facebook.soloader.UnpackingSoSource$1 v2_1 = new com.facebook.soloader.UnpackingSoSource$1(this, v4_1, p26, v10, v7_1, p24);
                if ((p25 & 1) == 0) {
                    v2_1.run();
                } else {
                    new Thread(v2_1, new StringBuilder().append("SoSync:").append(this.soDirectory.getName()).toString()).start();
                }
                v3_12 = 1;
            } else {
                v3_12 = 0;
            }
            return v3_12;
        } catch (int v3_4) {
            try {
                throw v3_4;
            } catch (Thread v5_4) {
                v5_6 = v3_4;
                v3_9 = v5_4;
            }
        }
        if (v14 == 1) {
        } else {
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("dso store ").append(this.soDirectory).append(" regeneration interrupted: wiping clean").toString());
            v14 = 0;
        }
    }

Method com.facebook.soloader.UnpackingSoSource.getSoStorePath() calling method java.io.File.<init>()


    public static java.io.File getSoStorePath(android.content.Context p3, String p4)
    {
        return new java.io.File(new StringBuilder().append(p3.getApplicationInfo().dataDir).append("/").append(p4).toString());
    }

Method com.facebook.soloader.UnpackingSoSource.extractDso() calling method java.io.File.<init>()


    private void extractDso(com.facebook.soloader.UnpackingSoSource$InputDso p10, byte[] p11)
    {
        android.util.Log.i("fb-UnpackingSoSource", new StringBuilder().append("extracting DSO ").append(p10.dso.name).toString());
        java.io.File v2_1 = new java.io.File(this.soDirectory, p10.dso.name);
        try {
            java.io.RandomAccessFile v1_1 = new java.io.RandomAccessFile(v2_1, "rw");
            try {
                int v4 = p10.content.available();
            } catch (java.io.IOException v5_11) {
                v1_1.close();
                throw v5_11;
            }
            if (v4 > 1) {
                com.facebook.soloader.SysUtil.fallocateIfSupported(v1_1.getFD(), ((long) v4));
            }
            com.facebook.soloader.SysUtil.copyBytes(v1_1, p10.content, 2147483647, p11);
            v1_1.setLength(v1_1.getFilePointer());
            if (v2_1.setExecutable(1, 0)) {
                v1_1.close();
                return;
            } else {
                throw new java.io.IOException(new StringBuilder().append("cannot make file executable: ").append(v2_1).toString());
            }
        } catch (java.io.IOException v3) {
            android.util.Log.w("fb-UnpackingSoSource", new StringBuilder().append("error overwriting ").append(v2_1).append(" trying to delete and start over").toString(), v3);
            v2_1.delete();
            v1_1 = new java.io.RandomAccessFile(v2_1, "rw");
        }
    }

Method com.facebook.soloader.UnpackingSoSource.deleteUnmentionedFiles() calling method java.io.File.<init>()


    private void deleteUnmentionedFiles(com.facebook.soloader.UnpackingSoSource$Dso[] p10)
    {
        String[] v0 = this.soDirectory.list();
        if (v0 != null) {
            int v4 = 0;
            while (v4 < v0.length) {
                String v1 = v0[v4];
                if ((!v1.equals("dso_state")) && ((!v1.equals("dso_lock")) && ((!v1.equals("dso_deps")) && (!v1.equals("dso_manifest"))))) {
                    int v3 = 0;
                    int v5 = 0;
                    while ((v3 == 0) && (v5 < p10.length)) {
                        if (p10[v5].name.equals(v1)) {
                            v3 = 1;
                        }
                        v5++;
                    }
                    if (v3 == 0) {
                        java.io.File v2_1 = new java.io.File(this.soDirectory, v1);
                        android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("deleting unaccounted-for file ").append(v2_1).toString());
                        com.facebook.soloader.SysUtil.dumbDeleteRecursive(v2_1);
                    }
                }
                v4++;
            }
            return;
        } else {
            throw new java.io.IOException(new StringBuilder().append("unable to list directory ").append(this.soDirectory).toString());
        }
    }

Method com.facebook.soloader.ApkSoSource$ApkUnpacker.shouldExtract() calling method java.io.File.<init>()


    protected boolean shouldExtract(java.util.zip.ZipEntry p13, String p14)
    {
        String v6_0 = 1;
        String v3 = p13.getName();
        if ((this.mFlags & 1) != 0) {
            java.io.File v2_0 = new java.io.File(this.mLibDir, p14);
            if (v2_0.isFile()) {
                long v4 = v2_0.length();
                long v0 = p13.getSize();
                if (v4 == v0) {
                    android.util.Log.d("ApkSoSource", new StringBuilder().append("not allowing consideration of ").append(v3).append(": deferring to libdir").toString());
                    v6_0 = 0;
                } else {
                    Object[] v10_1 = new Object[3];
                    v10_1[0] = v2_0;
                    v10_1[1] = Long.valueOf(v4);
                    v10_1[2] = Long.valueOf(v0);
                    android.util.Log.d("ApkSoSource", String.format("allowing consideration of %s: sysdir file length is %s, but the file is %s bytes long in the APK", v10_1));
                }
            } else {
                Object[] v10_2 = new Object[2];
                v10_2[0] = v3;
                v10_2[1] = p14;
                android.util.Log.d("ApkSoSource", String.format("allowing considering of %s: %s not in system lib dir", v10_2));
            }
        } else {
            android.util.Log.d("ApkSoSource", new StringBuilder().append("allowing consideration of ").append(v3).append(": self-extraction preferred").toString());
        }
        return v6_0;
    }

Method com.facebook.soloader.ApkSoSource$ApkUnpacker.<init>() calling method java.io.File.<init>()


    ApkSoSource$ApkUnpacker(com.facebook.soloader.ApkSoSource p3)
    {
        this.this$0 = p3;
        super(p3);
        super.mLibDir = new java.io.File(p3.mContext.getApplicationInfo().nativeLibraryDir);
        super.mFlags = com.facebook.soloader.ApkSoSource.access$000(p3);
        return;
    }

Method com.facebook.react.devsupport.DevSupportManagerImpl.hasUpToDateJSBundleInCache() calling method java.io.File.<init>()


    public boolean hasUpToDateJSBundleInCache()
    {
        int v4_0 = 1;
        if ((!this.mIsDevSupportEnabled) || (!this.mJSBundleTempFile.exists())) {
            v4_0 = 0;
        } else {
            try {
                String v2 = this.mApplicationContext.getPackageName();
            } catch (android.content.pm.PackageManager$NameNotFoundException v0) {
                com.facebook.common.logging.FLog.e("React", "DevSupport is unable to get current app info");
            }
            if (this.mJSBundleTempFile.lastModified() <= this.mApplicationContext.getPackageManager().getPackageInfo(v2, 0).lastUpdateTime) {
            } else {
                long v8_2 = new Object[1];
                v8_2[0] = v2;
                java.io.File v1_1 = new java.io.File(String.format(java.util.Locale.US, "/data/local/tmp/exopackage/%s//secondary-dex", v8_2));
                if ((v1_1.exists()) && (this.mJSBundleTempFile.lastModified() <= v1_1.lastModified())) {
                    v4_0 = 0;
                }
            }
        }
        return v4_0;
    }

Method com.facebook.react.devsupport.DevSupportManagerImpl.<init>() calling method java.io.File.<init>()


    public DevSupportManagerImpl(android.content.Context p4, com.facebook.react.devsupport.ReactInstanceDevCommandsHandler p5, String p6, boolean p7, com.facebook.react.devsupport.RedBoxHandler p8)
    {
        this.mCustomDevOptions = new java.util.LinkedHashMap();
        this.mIsReceiverRegistered = 0;
        this.mIsShakeDetectorStarted = 0;
        this.mIsDevSupportEnabled = 0;
        this.mLastErrorCookie = 0;
        this.mReactInstanceCommandsHandler = p5;
        this.mApplicationContext = p4;
        this.mJSAppBundleName = p6;
        this.mDevSettings = new com.facebook.react.devsupport.DevInternalSettings(p4, this);
        this.mDevServerHelper = new com.facebook.react.devsupport.DevServerHelper(this.mDevSettings);
        this.mShakeDetector = new com.facebook.react.common.ShakeDetector(new com.facebook.react.devsupport.DevSupportManagerImpl$1(this));
        this.mReloadAppBroadcastReceiver = new com.facebook.react.devsupport.DevSupportManagerImpl$2(this);
        this.mJSBundleTempFile = new java.io.File(p4.getFilesDir(), "ReactNativeDevBundle.js");
        this.mDefaultNativeModuleCallExceptionHandler = new com.facebook.react.bridge.DefaultNativeModuleCallExceptionHandler();
        this.setDevSupportEnabled(p7);
        this.mRedBoxHandler = p8;
        return;
    }

Method com.facebook.imagepipeline.producers.LocalExifThumbnailProducer.canReadAsFile() calling method java.io.File.<init>()


    boolean canReadAsFile(String p4)
    {
        int v1 = 0;
        if (p4 != null) {
            java.io.File v0_1 = new java.io.File(p4);
            if ((v0_1.exists()) && (v0_1.canRead())) {
                v1 = 1;
            }
        }
        return v1;
    }

Method com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.getThumbnail() calling method java.io.File.<init>()


    private com.facebook.imagepipeline.image.EncodedImage getThumbnail(com.facebook.imagepipeline.common.ResizeOptions p9, int p10)
    {
        com.facebook.imagepipeline.image.EncodedImage v3_0 = 0;
        int v1 = com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.getThumbnailKind(p9);
        if (v1 != 0) {
            try {
                android.database.Cursor v0 = android.provider.MediaStore$Images$Thumbnails.queryMiniThumbnail(this.mContentResolver, ((long) p10), v1, com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.THUMBNAIL_PROJECTION);
            } catch (com.facebook.imagepipeline.image.EncodedImage v3_1) {
                if (v0 != null) {
                    v0.close();
                }
                throw v3_1;
            }
            if (v0 != null) {
                v0.moveToFirst();
                if (v0.getCount() > 0) {
                    String v2 = v0.getString(v0.getColumnIndex("_data"));
                    if (new java.io.File(v2).exists()) {
                        v3_0 = this.getEncodedImage(new java.io.FileInputStream(v2), com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.getLength(v2));
                        if (v0 == null) {
                            return v3_0;
                        } else {
                            v0.close();
                            return v3_0;
                        }
                    }
                }
                if (v0 != null) {
                    v0.close();
                }
            } else {
                if (v0 != null) {
                    v0.close();
                }
            }
        }
        return v3_0;
    }

Method com.facebook.imagepipeline.producers.LocalContentUriThumbnailFetchProducer.getLength() calling method java.io.File.<init>()


    private static int getLength(String p2)
    {
        int v0_3;
        if (p2 != null) {
            v0_3 = ((int) new java.io.File(p2).length());
        } else {
            v0_3 = -1;
        }
        return v0_3;
    }

Method com.facebook.imagepipeline.producers.LocalContentUriFetchProducer.getLength() calling method java.io.File.<init>()


    private static int getLength(String p2)
    {
        int v0_3;
        if (p2 != null) {
            v0_3 = ((int) new java.io.File(p2).length());
        } else {
            v0_3 = -1;
        }
        return v0_3;
    }

Method io.fabric.sdk.android.services.settings.DefaultCachedSettingsIo.writeCachedSettings() calling method java.io.File.<init>()


    public void writeCachedSettings(long p8, org.json.JSONObject p10)
    {
        io.fabric.sdk.android.Fabric.getLogger().d("Fabric", "Writing settings to cache file...");
        if (p10 != null) {
            java.io.FileWriter v1 = 0;
            try {
                p10.put("expires_at", p8);
                java.io.FileWriter v2_0 = new java.io.FileWriter(new java.io.File(new io.fabric.sdk.android.services.persistence.FileStoreImpl(this.kit).getFilesDir(), "com.crashlytics.settings.json"));
                try {
                    v2_0.write(p10.toString());
                    v2_0.flush();
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v2_0, "Failed to close settings writer.");
                } catch (Throwable v3_7) {
                    v1 = v2_0;
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Failed to close settings writer.");
                    throw v3_7;
                } catch (Exception v0) {
                    v1 = v2_0;
                    io.fabric.sdk.android.Fabric.getLogger().e("Fabric", "Failed to cache settings", v0);
                    io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Failed to close settings writer.");
                }
            } catch (Throwable v3_7) {
            } catch (Exception v0) {
            }
        }
        return;
    }

Method io.fabric.sdk.android.services.settings.DefaultCachedSettingsIo.readCachedSettings() calling method java.io.File.<init>()


    public org.json.JSONObject readCachedSettings()
    {
        io.fabric.sdk.android.Fabric.getLogger().d("Fabric", "Reading cached settings...");
        java.io.FileInputStream v1 = 0;
        org.json.JSONObject v5 = 0;
        try {
            java.io.File v3_0 = new java.io.File(new io.fabric.sdk.android.services.persistence.FileStoreImpl(this.kit).getFilesDir(), "com.crashlytics.settings.json");
        } catch (Throwable v7_7) {
            io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Error while closing settings cache file.");
            throw v7_7;
        } catch (Exception v0) {
            io.fabric.sdk.android.Fabric.getLogger().e("Fabric", "Failed to fetch cached settings", v0);
            io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Error while closing settings cache file.");
            return v5;
        }
        if (!v3_0.exists()) {
            io.fabric.sdk.android.Fabric.getLogger().d("Fabric", "No cached settings found.");
        } else {
            java.io.FileInputStream v2_1 = new java.io.FileInputStream(v3_0);
            try {
                v5 = new org.json.JSONObject(io.fabric.sdk.android.services.common.CommonUtils.streamToString(v2_1));
                v1 = v2_1;
            } catch (Throwable v7_7) {
                v1 = v2_1;
            } catch (Exception v0) {
                v1 = v2_1;
            }
        }
        io.fabric.sdk.android.services.common.CommonUtils.closeOrLog(v1, "Error while closing settings cache file.");
        return v5;
    }

Method io.fabric.sdk.android.services.persistence.FileStoreImpl.getExternalFilesDir() calling method java.io.File.<init>()


    public java.io.File getExternalFilesDir()
    {
        java.io.File v0_0 = 0;
        if (this.isExternalStorageAvailable()) {
            if (android.os.Build$VERSION.SDK_INT < 8) {
                v0_0 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), new StringBuilder().append(this.legacySupport).append("/files/").append(this.contentPath).toString());
            } else {
                v0_0 = this.context.getExternalFilesDir(0);
            }
        }
        return this.prepare(v0_0);
    }

Method io.fabric.sdk.android.services.persistence.FileStoreImpl.getExternalCacheDir() calling method java.io.File.<init>()


    public java.io.File getExternalCacheDir()
    {
        java.io.File v0_0 = 0;
        if (this.isExternalStorageAvailable()) {
            if (android.os.Build$VERSION.SDK_INT < 8) {
                v0_0 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), new StringBuilder().append(this.legacySupport).append("/cache/").append(this.contentPath).toString());
            } else {
                v0_0 = this.context.getExternalCacheDir();
            }
        }
        return this.prepare(v0_0);
    }

Method io.fabric.sdk.android.services.events.QueueFileEventStorage.rollOver() calling method java.io.File.<init>()


    public void rollOver(String p4)
    {
        this.queueFile.close();
        this.move(this.workingFile, new java.io.File(this.targetDirectory, p4));
        this.queueFile = new io.fabric.sdk.android.services.common.QueueFile(this.workingFile);
        return;
    }

Method io.fabric.sdk.android.services.events.QueueFileEventStorage.createTargetDirectory() calling method java.io.File.<init>()


    private void createTargetDirectory()
    {
        this.targetDirectory = new java.io.File(this.workingDirectory, this.targetDirectoryName);
        if (!this.targetDirectory.exists()) {
            this.targetDirectory.mkdirs();
        }
        return;
    }

Method io.fabric.sdk.android.services.events.QueueFileEventStorage.<init>() calling method java.io.File.<init>()


    public QueueFileEventStorage(android.content.Context p3, java.io.File p4, String p5, String p6)
    {
        this.context = p3;
        this.workingDirectory = p4;
        this.targetDirectoryName = p6;
        this.workingFile = new java.io.File(this.workingDirectory, p5);
        this.queueFile = new io.fabric.sdk.android.services.common.QueueFile(this.workingFile);
        this.createTargetDirectory();
        return;
    }

Method com.microsoft.codepush.react.CodePush.clearDebugCacheIfNeeded() calling method java.io.File.<init>()


    public void clearDebugCacheIfNeeded()
    {
        if ((this.mIsDebugMode) && (this.mSettingsManager.isPendingUpdate(0))) {
            java.io.File v0_0 = new java.io.File(this.mContext.getFilesDir(), "ReactNativeDevBundle.js");
            if (v0_0.exists()) {
                v0_0.delete();
            }
        }
        return;
    }

Method com.google.android.gms.internal.zzv.zzf() calling method java.io.File.<init>()


    public java.io.File zzf(String p4)
    {
        return new java.io.File(this.zzby, this.zze(p4));
    }

Method com.facebook.soloader.ExoSoSource$ExoUnpacker.<init>() calling method java.io.File.<init>()


    ExoSoSource$ExoUnpacker(com.facebook.soloader.ExoSoSource p29)
    {
        this.this$0 = p29;
        com.facebook.soloader.ExoSoSource$ExoUnpacker v28_1 = ;
java.io.File v9_0 = new java.io.File(new StringBuilder().append("/data/local/tmp/exopackage/").append(p29.mContext.getPackageName()).append("/native-libs/").toString());
        java.util.ArrayList v18_1 = new java.util.ArrayList();
        String[] v5 = com.facebook.soloader.SysUtil.getSupportedAbis();
        int v14 = v5.length;
        int v13 = 0;
        while (v13 < v14) {
            java.io.File v4_1 = new java.io.File(v9_0, v5[v13]);
            if (v4_1.isDirectory()) {
                java.io.File v16 = new java.io.File;
                v16(v4_1, "metadata.txt");
                if (v16.isFile()) {
                    java.io.FileReader v11_1 = new java.io.FileReader(v16);
                    try {
                        java.io.BufferedReader v7_1 = new java.io.BufferedReader(v11_1);
                        int v23_3 = 0;
                        try {
                            do {
                                String v15 = v7_1.readLine();
                            } while(int v10 != 0);
                            String v6 = v15.substring((int v19 + 1));
                            com.facebook.soloader.ExoSoSource$FileDso v22_8 = new com.facebook.soloader.ExoSoSource$FileDso;
                            java.io.File v25_2 = new java.io.File;
                            v25_2(v4_1, v6);
                            v22_8(String v20, v6, v25_2);
                            v18_1.add(v22_8);
                        } catch (com.facebook.soloader.ExoSoSource$FileDso v22_12) {
                            if (v7_1 != null) {
                                if (v23_3 == 0) {
                                    v7_1.close();
                                } else {
                                    v7_1.close();
                                }
                            }
                            throw v22_12;
                        } catch (com.facebook.soloader.ExoSoSource$FileDso v22_11) {
                            try {
                                throw v22_11;
                            } catch (int v23_2) {
                                v23_3 = v22_11;
                                v22_12 = v23_2;
                            }
                        }
                        if (v15 == null) {
                            if (v7_1 != null) {
                                if (0 == 0) {
                                    v7_1.close();
                                } else {
                                    try {
                                        v7_1.close();
                                    } catch (Throwable v21_2) {
                                        0.addSuppressed(v21_2);
                                    }
                                }
                            }
                            if (v11_1 != null) {
                                if (0 == 0) {
                                    v11_1.close();
                                } else {
                                    try {
                                        v11_1.close();
                                    } catch (Throwable v21_3) {
                                        0.addSuppressed(v21_3);
                                    }
                                }
                            }
                        } else {
                            if (v15.length() != 0) {
                                v19 = v15.indexOf(32);
                                if (v19 != -1) {
                                    v20 = new StringBuilder().append(v15.substring(0, v19)).append(".so").toString();
                                    int v17 = v18_1.size();
                                    v10 = 0;
                                    int v12 = 0;
                                    while (v12 < v17) {
                                        if (!((com.facebook.soloader.ExoSoSource$FileDso) v18_1.get(v12)).name.equals(v20)) {
                                            v12++;
                                        } else {
                                            v10 = 1;
                                            break;
                                        }
                                    }
                                    if (v10 == 0) {
                                    }
                                } else {
                                    com.facebook.soloader.ExoSoSource$FileDso v22_9 = new RuntimeException;
                                    v22_9(new StringBuilder().append("illegal line in exopackage metadata: [").append(v15).append("]").toString());
                                    throw v22_9;
                                }
                            }
                        }
                    } catch (com.facebook.soloader.ExoSoSource$FileDso v22_15) {
                        try {
                            throw v22_15;
                        } catch (int v23_5) {
                            int v23_4 = v22_15;
                            com.facebook.soloader.ExoSoSource$FileDso v22_14 = v23_5;
                            if (v11_1 != null) {
                                if (v23_4 == 0) {
                                    v11_1.close();
                                } else {
                                    try {
                                        v11_1.close();
                                    } catch (Throwable v21_1) {
                                        v23_4.addSuppressed(v21_1);
                                    }
                                }
                            }
                            throw v22_14;
                        }
                    }
                }
            }
            v13++;
        }
        java.util.ArrayList v0_18 = new com.facebook.soloader.ExoSoSource$FileDso[v18_1.size()];
        v28_1.mDsos = ((com.facebook.soloader.ExoSoSource$FileDso[]) v18_1.toArray(v0_18));
        return;
    }

Method com.facebook.soloader.DirectorySoSource.unpackLibrary() calling method java.io.File.<init>()


    public java.io.File unpackLibrary(String p3)
    {
        int v0_1 = new java.io.File(this.soDirectory, p3);
        if (!v0_1.exists()) {
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.facebook.soloader.DirectorySoSource.loadLibraryFrom() calling method java.io.File.<init>()


    protected int loadLibraryFrom(String p6, int p7, java.io.File p8)
    {
        int v4_4;
        java.io.File v3_1 = new java.io.File(p8, p6);
        if (v3_1.exists()) {
            if (((p7 & 1) == 0) || ((this.flags & 2) == 0)) {
                if ((this.flags & 1) != 0) {
                    String[] v0 = com.facebook.soloader.DirectorySoSource.getDependencies(v3_1);
                    int v2 = 0;
                    while (v2 < v0.length) {
                        String v1 = v0[v2];
                        if (!v1.startsWith("/")) {
                            com.facebook.soloader.SoLoader.loadLibraryBySoName(v1, (p7 | 1));
                        }
                        v2++;
                    }
                }
                System.load(v3_1.getAbsolutePath());
                v4_4 = 1;
            } else {
                v4_4 = 2;
            }
        } else {
            v4_4 = 0;
        }
        return v4_4;
    }

Method com.facebook.react.modules.camera.CameraRollManager$SaveToCameraRoll.doInBackgroundGuarded() calling method java.io.File.<init>()


    protected varargs void doInBackgroundGuarded(Void[] p16)
    {
        java.io.File v12_1 = new java.io.File(this.mUri.getPath());
        try {
            java.io.File v8;
            if (this.mType != com.facebook.react.modules.camera.CameraRollManager$MediaType.PHOTO) {
                v8 = android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_MOVIES);
                v8.mkdirs();
                if (v8.isDirectory()) {
                    int v11;
                    String v13;
                    String v14;
                    java.io.File v6_0 = new java.io.File(v8, v12_1.getName());
                    String v9 = v12_1.getName();
                    if (v9.indexOf(46) < 0) {
                        v14 = v9;
                        v13 = "";
                        v11 = 0;
                    } else {
                        v14 = v9.substring(0, v9.lastIndexOf(46));
                        v13 = v9.substring(v9.lastIndexOf(46));
                        v11 = 0;
                    }
                    while (!v6_0.createNewFile()) {
                        int v10_0 = (v11 + 1);
                        v6_0 = new java.io.File(v8, new StringBuilder().append(v14).append("_").append(v11).append(v13).toString());
                        v11 = v10_0;
                    }
                    java.nio.channels.FileChannel v1_1 = new java.io.FileInputStream(v12_1).getChannel();
                    java.nio.channels.FileChannel v0_0 = new java.io.FileOutputStream(v6_0).getChannel();
                    v0_0.transferFrom(v1_1, 0, v1_1.size());
                    v1_1.close();
                    v0_0.close();
                    String v2_31 = this.mContext;
                    String v3_12 = new String[1];
                    v3_12[0] = v6_0.getAbsolutePath();
                    android.media.MediaScannerConnection.scanFile(v2_31, v3_12, 0, new com.facebook.react.modules.camera.CameraRollManager$SaveToCameraRoll$1(this));
                    if ((v1_1 != null) && (v1_1.isOpen())) {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException v7_7) {
                            com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_7);
                        }
                    }
                    if ((v0_0 != null) && (v0_0.isOpen())) {
                        try {
                            v0_0.close();
                        } catch (java.io.IOException v7_8) {
                            com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_8);
                        }
                    }
                } else {
                    this.mPromise.reject("E_UNABLE_TO_LOAD", "External media storage directory not available");
                    if ((0 != 0) && (0.isOpen())) {
                        try {
                            0.close();
                        } catch (java.io.IOException v7_5) {
                            com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_5);
                        }
                    }
                    if ((0 != 0) && (0.isOpen())) {
                        try {
                            0.close();
                        } catch (java.io.IOException v7_6) {
                            com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_6);
                        }
                    }
                }
            } else {
                v8 = android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_PICTURES);
            }
        } catch (java.io.IOException v7_0) {
            this.mPromise.reject(v7_0);
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_1) {
                        com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_1);
                    }
                }
            }
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_2) {
                        com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_2);
                    }
                }
            }
        } catch (String v2_11) {
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_3) {
                        com.facebook.common.logging.FLog.e("React", "Could not close input channel", v7_3);
                    }
                }
            }
            if (0 != 0) {
                if (0.isOpen()) {
                    try {
                        0.close();
                    } catch (java.io.IOException v7_4) {
                        com.facebook.common.logging.FLog.e("React", "Could not close output channel", v7_4);
                    }
                }
            }
            throw v2_11;
        }
        return;
    }

Method com.facebook.react.cxxbridge.UnpackingJSBundleLoader.prepare() calling method java.io.File.<init>()


    void prepare()
    {
        java.io.File v2_1 = new java.io.File(this.mContext.getFilesDir(), "unpacking-bundle-loader.lock");
        com.facebook.systrace.Systrace.beginSection(0, "UnpackingJSBundleLoader.prepare");
        try {
            com.facebook.soloader.FileLocker v1 = com.facebook.soloader.FileLocker.lock(v2_1);
            Throwable v6_0 = 0;
            try {
                boolean v3 = this.prepareLocked();
            } catch (Throwable v6_0) {
                throw v6_0;
            } catch (Runnable v5_0) {
                if (v1 != null) {
                    if (v6_0 == null) {
                        v1.close();
                    } else {
                        v1.close();
                    }
                }
                throw v5_0;
            }
            if (v1 != null) {
                if (0 == 0) {
                    v1.close();
                } else {
                    try {
                        v1.close();
                    } catch (Throwable v4_1) {
                        0.addSuppressed(v4_1);
                    }
                }
            }
            com.facebook.systrace.Systrace.endSection(0);
            if ((v3) && (this.mOnUnpackedCallback != null)) {
                this.mOnUnpackedCallback.run();
            }
            return;
        } catch (Runnable v5_4) {
            com.facebook.systrace.Systrace.endSection(0);
            throw v5_4;
        } catch (java.io.IOException v0) {
            throw new RuntimeException(v0);
        }
    }

Method com.facebook.react.cxxbridge.UnpackingJSBundleLoader.prepareLocked() calling method java.io.File.<init>()


    private boolean prepareLocked()
    {
        boolean v6;
        String v9_0 = 0;
        java.io.File v2_1 = new java.io.File(this.mDirectoryPath, ".unpacked");
        if ((this.mDirectoryPath.exists()) && (v2_1.exists())) {
            v6 = 0;
        } else {
            v6 = 1;
        }
        byte[] v1 = new byte[16384];
        int v3 = 0;
        while ((v3 < this.mUnpackers.length) && (!v6)) {
            v6 = this.mUnpackers[v3].shouldReconstructDir(this.mContext, v1);
            v3++;
        }
        if (v6) {
            try {
                com.facebook.soloader.SysUtil.dumbDeleteRecursive(this.mDirectoryPath);
            } catch (String v9_11) {
                if (0 == 0) {
                    com.facebook.soloader.SysUtil.dumbDeleteRecursive(this.mDirectoryPath);
                }
                throw v9_11;
            }
            if (this.mDirectoryPath.mkdirs()) {
                com.facebook.react.cxxbridge.UnpackingJSBundleLoader$Unpacker[] v0 = this.mUnpackers;
                int v5 = v0.length;
                int v4 = 0;
                while (v4 < v5) {
                    v0[v4].unpack(this.mContext, v1);
                    v4++;
                }
                if (v2_1.createNewFile()) {
                    if (1 == 0) {
                        com.facebook.soloader.SysUtil.dumbDeleteRecursive(this.mDirectoryPath);
                    }
                    v9_0 = 1;
                } else {
                    throw new java.io.IOException("Could not create .unpacked file");
                }
            } else {
                throw new java.io.IOException("Coult not create the destination directory");
            }
        }
        return v9_0;
    }

Method com.facebook.imagepipeline.producers.LocalFetchProducer.getEncodedImage() calling method java.io.File.<init>()


    protected com.facebook.imagepipeline.image.EncodedImage getEncodedImage(java.io.InputStream p13, int p14)
    {
        com.facebook.imagepipeline.image.EncodedImage v7_3;
        Runtime v6 = Runtime.getRuntime();
        long v2 = v6.maxMemory();
        long vtmp5 = Math.min((v2 - (v6.totalMemory() - v6.freeMemory())), 8388608);
        if ((!this.mDecodeFileDescriptorEnabledForKitKat) || ((!(p13 instanceof java.io.FileInputStream)) || (v2 < (64 * vtmp5)))) {
            v7_3 = this.getByteBufferBackedEncodedImage(p13, p14);
        } else {
            v7_3 = this.getInputStreamBackedEncodedImage(new java.io.File(p13.toString()), p14);
        }
        return v7_3;
    }

Method com.facebook.cache.disk.DynamicDefaultDiskStorage.createStorage() calling method java.io.File.<init>()


    private void createStorage()
    {
        java.io.File v0_1 = new java.io.File(((java.io.File) this.mBaseDirectoryPathSupplier.get()), this.mBaseDirectoryName);
        this.createRootDirectoryIfNecessary(v0_1);
        this.mCurrentState = new com.facebook.cache.disk.DynamicDefaultDiskStorage$State(v0_1, new com.facebook.cache.disk.DefaultDiskStorage(v0_1, this.mVersion, this.mCacheErrorLogger));
        return;
    }

Method com.facebook.cache.disk.DefaultDiskStorage.getContentFileFor() calling method java.io.File.<init>()


    java.io.File getContentFileFor(String p3)
    {
        return new java.io.File(this.getFilename(p3));
    }

Method com.facebook.cache.disk.DefaultDiskStorage.getSubdirectory() calling method java.io.File.<init>()


    private java.io.File getSubdirectory(String p3)
    {
        return new java.io.File(this.getSubdirectoryPath(p3));
    }

Method com.facebook.cache.disk.DefaultDiskStorage.<init>() calling method java.io.File.<init>()


    public DefaultDiskStorage(java.io.File p4, int p5, com.facebook.cache.common.CacheErrorLogger p6)
    {
        com.facebook.common.internal.Preconditions.checkNotNull(p4);
        this.mRootDirectory = p4;
        this.mVersionDirectory = new java.io.File(this.mRootDirectory, com.facebook.cache.disk.DefaultDiskStorage.getVersionSubdirectoryName(p5));
        this.mCacheErrorLogger = p6;
        this.recreateDirectoryIfVersionChanges();
        this.mClock = com.facebook.common.time.SystemClock.get();
        return;
    }

Method com.crashlytics.android.answers.Answers.onPreExecute() calling method java.io.File.<init>()


    protected boolean onPreExecute()
    {
        try {
            String v5;
            android.content.Context v2 = this.getContext();
            android.content.pm.PackageManager v10 = v2.getPackageManager();
            String v11 = v2.getPackageName();
            android.content.pm.PackageInfo v9 = v10.getPackageInfo(v11, 0);
            String v4 = Integer.toString(v9.versionCode);
        } catch (Exception v8) {
            io.fabric.sdk.android.Fabric.getLogger().e("Answers", "Error retrieving app properties", v8);
            int v1_9 = 0;
            return v1_9;
        }
        if (v9.versionName != null) {
            v5 = v9.versionName;
        } else {
            v5 = "0.0";
        }
        long v6;
        if (android.os.Build$VERSION.SDK_INT < 9) {
            v6 = new java.io.File(v10.getApplicationInfo(v11, 0).sourceDir).lastModified();
        } else {
            v6 = v9.firstInstallTime;
        }
        this.analyticsManager = com.crashlytics.android.answers.SessionAnalyticsManager.build(this, v2, this.getIdManager(), v4, v5, v6);
        this.analyticsManager.enable();
        v1_9 = 1;
        return v1_9;
    }

Method android.support.v4.provider.RawDocumentFile.renameTo() calling method java.io.File.<init>()


    public boolean renameTo(String p3)
    {
        int v1_1;
        java.io.File v0_1 = new java.io.File(this.mFile.getParentFile(), p3);
        if (!this.mFile.renameTo(v0_1)) {
            v1_1 = 0;
        } else {
            this.mFile = v0_1;
            v1_1 = 1;
        }
        return v1_1;
    }

Method android.support.v4.provider.RawDocumentFile.createFile() calling method java.io.File.<init>()


    public android.support.v4.provider.DocumentFile createFile(String p7, String p8)
    {
        String v1 = android.webkit.MimeTypeMap.getSingleton().getExtensionFromMimeType(p7);
        if (v1 != null) {
            p8 = new StringBuilder().append(p8).append(".").append(v1).toString();
        }
        java.io.File v2_1 = new java.io.File(this.mFile, p8);
        try {
            v2_1.createNewFile();
            int v3_5 = new android.support.v4.provider.RawDocumentFile(this, v2_1);
        } catch (java.io.IOException v0) {
            android.util.Log.w("DocumentFile", new StringBuilder().append("Failed to createFile: ").append(v0).toString());
            v3_5 = 0;
        }
        return v3_5;
    }

Method android.support.v4.provider.RawDocumentFile.createDirectory() calling method java.io.File.<init>()


    public android.support.v4.provider.DocumentFile createDirectory(String p3)
    {
        int v1_2;
        java.io.File v0_1 = new java.io.File(this.mFile, p3);
        if ((!v0_1.isDirectory()) && (!v0_1.mkdir())) {
            v1_2 = 0;
        } else {
            v1_2 = new android.support.v4.provider.RawDocumentFile(this, v0_1);
        }
        return v1_2;
    }

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


    public java.io.File getFileForUri(android.net.Uri p10)
    {
        String v2_1 = p10.getEncodedPath();
        int v4 = v2_1.indexOf(47, 1);
        String v5 = android.net.Uri.decode(v2_1.substring(1, v4));
        String vtmp6 = android.net.Uri.decode(v2_1.substring((v4 + 1)));
        java.io.File v3_1 = ((java.io.File) this.mRoots.get(v5));
        if (v3_1 != null) {
            try {
                java.io.File v1_2 = new java.io.File(v3_1, vtmp6).getCanonicalFile();
            } catch (java.io.IOException v0) {
                throw new IllegalArgumentException(new StringBuilder().append("Failed to resolve canonical path for ").append(v1_2).toString());
            }
            if (v1_2.getPath().startsWith(v3_1.getPath())) {
                return v1_2;
            } else {
                throw new SecurityException("Resolved path jumped beyond configured root");
            }
        } else {
            throw new IllegalArgumentException(new StringBuilder().append("Unable to find configured root for ").append(p10).toString());
        }
    }

Method okhttp3.internal.cache.DiskLruCache.<init>() calling method java.io.File.<init>()


    DiskLruCache(okhttp3.internal.io.FileSystem p8, java.io.File p9, int p10, int p11, long p12, java.util.concurrent.Executor p14)
    {
        this.size = 0;
        this.lruEntries = new java.util.LinkedHashMap(0, 1061158912, 1);
        this.nextSequenceNumber = 0;
        this.cleanupRunnable = new okhttp3.internal.cache.DiskLruCache$1(this);
        this.fileSystem = p8;
        this.directory = p9;
        this.appVersion = p10;
        this.journalFile = new java.io.File(p9, "journal");
        this.journalFileTmp = new java.io.File(p9, "journal.tmp");
        this.journalFileBackup = new java.io.File(p9, "journal.bkp");
        this.valueCount = p11;
        this.maxSize = p12;
        this.executor = p14;
        return;
    }

Method okhttp3.internal.cache.DiskLruCache$Entry.<init>() calling method java.io.File.<init>()


    private DiskLruCache$Entry(okhttp3.internal.cache.DiskLruCache p8, String p9)
    {
        this.this$0 = p8;
        this.key = p9;
        java.io.File[] v3_9 = new long[okhttp3.internal.cache.DiskLruCache.access$2600(p8)];
        this.lengths = v3_9;
        java.io.File[] v3_11 = new java.io.File[okhttp3.internal.cache.DiskLruCache.access$2600(p8)];
        this.cleanFiles = v3_11;
        java.io.File[] v3_1 = new java.io.File[okhttp3.internal.cache.DiskLruCache.access$2600(p8)];
        this.dirtyFiles = v3_1;
        StringBuilder v0 = new StringBuilder(p9).append(46);
        int v2 = v0.length();
        int v1 = 0;
        while (v1 < okhttp3.internal.cache.DiskLruCache.access$2600(p8)) {
            v0.append(v1);
            this.cleanFiles[v1] = new java.io.File(okhttp3.internal.cache.DiskLruCache.access$2900(p8), v0.toString());
            v0.append(".tmp");
            this.dirtyFiles[v1] = new java.io.File(okhttp3.internal.cache.DiskLruCache.access$2900(p8), v0.toString());
            v0.setLength(v2);
            v1++;
        }
        return;
    }

Method io.fabric.sdk.android.services.common.QueueFile.initialize() calling method java.io.File.<init>()


    private static void initialize(java.io.File p6)
    {
        java.io.File v2_1 = new java.io.File(new StringBuilder().append(p6.getPath()).append(".tmp").toString());
        java.io.RandomAccessFile v1 = io.fabric.sdk.android.services.common.QueueFile.open(v2_1);
        try {
            v1.setLength(4096);
            v1.seek(0);
            byte[] v0 = new byte[16];
            java.io.IOException v3_5 = new int[4];
            v3_5 = {4096, 0, 0, 0};
            io.fabric.sdk.android.services.common.QueueFile.writeInts(v0, v3_5);
            v1.write(v0);
            v1.close();
        } catch (java.io.IOException v3_7) {
            v1.close();
            throw v3_7;
        }
        if (v2_1.renameTo(p6)) {
            return;
        } else {
            throw new java.io.IOException("Rename failed!");
        }
    }

Method io.fabric.sdk.android.services.common.CommonUtils.isRooted() calling method java.io.File.<init>()


    public static boolean isRooted(android.content.Context p5)
    {
        int v3 = 1;
        boolean v2 = io.fabric.sdk.android.services.common.CommonUtils.isEmulator(p5);
        String v0 = android.os.Build.TAGS;
        if (((v2) || ((v0 == null) || (!v0.contains("test-keys")))) && (!new java.io.File("/system/app/Superuser.apk").exists())) {
            java.io.File v1_3 = new java.io.File("/system/xbin/su");
            if ((v2) || (!v1_3.exists())) {
                v3 = 0;
            }
        }
        return v3;
    }

Method io.fabric.sdk.android.services.common.CommonUtils.getTotalRamInBytes() calling method java.io.File.<init>()


    public static declared_synchronized long getTotalRamInBytes()
    {
        try {
            if (io.fabric.sdk.android.services.common.CommonUtils.totalRamInBytes == -1) {
                long v0 = 0;
                String v3_0 = io.fabric.sdk.android.services.common.CommonUtils.extractFieldFromSystemFile(new java.io.File("/proc/meminfo"), "MemTotal");
                if (!android.text.TextUtils.isEmpty(v3_0)) {
                    String v3_1 = v3_0.toUpperCase(java.util.Locale.US);
                    try {
                        if (!v3_1.endsWith("KB")) {
                            if (!v3_1.endsWith("MB")) {
                                if (!v3_1.endsWith("GB")) {
                                    io.fabric.sdk.android.Fabric.getLogger().d("Fabric", new StringBuilder().append("Unexpected meminfo format while computing RAM: ").append(v3_1).toString());
                                } else {
                                    v0 = io.fabric.sdk.android.services.common.CommonUtils.convertMemInfoToBytes(v3_1, "GB", 1073741824);
                                }
                            } else {
                                v0 = io.fabric.sdk.android.services.common.CommonUtils.convertMemInfoToBytes(v3_1, "MB", 1048576);
                            }
                        } else {
                            v0 = io.fabric.sdk.android.services.common.CommonUtils.convertMemInfoToBytes(v3_1, "KB", 1024);
                        }
                    } catch (NumberFormatException v2) {
                        io.fabric.sdk.android.Fabric.getLogger().e("Fabric", new StringBuilder().append("Unexpected meminfo format while computing RAM: ").append(v3_1).toString(), v2);
                    }
                }
                io.fabric.sdk.android.services.common.CommonUtils.totalRamInBytes = v0;
            }
        } catch (io.fabric.sdk.android.Logger v4_15) {
            throw v4_15;
        }
        return io.fabric.sdk.android.services.common.CommonUtils.totalRamInBytes;
    }

Method io.fabric.sdk.android.FabricContext.getFilesDir() calling method java.io.File.<init>()


    public java.io.File getFilesDir()
    {
        return new java.io.File(super.getFilesDir(), this.componentPath);
    }

Method io.fabric.sdk.android.FabricContext.getExternalFilesDir() calling method java.io.File.<init>()


    public java.io.File getExternalFilesDir(String p4)
    {
        return new java.io.File(super.getExternalFilesDir(p4), this.componentPath);
    }

Method io.fabric.sdk.android.FabricContext.getExternalCacheDir() calling method java.io.File.<init>()


    public java.io.File getExternalCacheDir()
    {
        return new java.io.File(super.getExternalCacheDir(), this.componentPath);
    }

Method io.fabric.sdk.android.FabricContext.getDatabasePath() calling method java.io.File.<init>()


    public java.io.File getDatabasePath(String p4)
    {
        java.io.File v0_1 = new java.io.File(super.getDatabasePath(p4).getParentFile(), this.componentPath);
        v0_1.mkdirs();
        return new java.io.File(v0_1, p4);
    }

Method io.fabric.sdk.android.FabricContext.getCacheDir() calling method java.io.File.<init>()


    public java.io.File getCacheDir()
    {
        return new java.io.File(super.getCacheDir(), this.componentPath);
    }

Method com.microsoft.codepush.react.FileUtils.unzipFile() calling method java.io.File.<init>()


    public static void unzipFile(java.io.File p22, String p23)
    {
        java.io.FileInputStream v10 = 0;
        java.io.BufferedInputStream v3 = 0;
        java.util.zip.ZipInputStream v15 = 0;
        try {
            java.io.FileInputStream v11_1 = new java.io.FileInputStream(p22);
            try {
                java.io.BufferedInputStream v4_1 = new java.io.BufferedInputStream(v11_1);
                try {
                    java.util.zip.ZipInputStream v18 = new java.util.zip.ZipInputStream;
                    v18(v4_1);
                    try {
                        java.io.File v5_1 = new java.io.File(p23);
                    } catch (int v19_0) {
                        v15 = v18;
                        v3 = v4_1;
                        v10 = v11_1;
                        try {
                            if (v15 != null) {
                                v15.close();
                            }
                        } catch (java.io.IOException v6_1) {
                            int v19_10 = new com.microsoft.codepush.react.CodePushUnknownException;
                            v19_10("Error closing IO resources.", v6_1);
                            throw v19_10;
                        }
                        if (v3 != null) {
                            v3.close();
                        }
                        if (v10 != null) {
                            v10.close();
                        }
                        throw v19_0;
                    }
                    if (v5_1.exists()) {
                        com.microsoft.codepush.react.FileUtils.deleteFileOrFolderSilently(v5_1);
                    }
                    v5_1.mkdirs();
                    byte[] v2 = new byte[8192];
                    do {
                        java.util.zip.ZipEntry v7 = v18.getNextEntry();
                        if (v7 == null) {
                            try {
                                if (v18 != null) {
                                    v18.close();
                                }
                            } catch (java.io.IOException v6_0) {
                                int v19_3 = new com.microsoft.codepush.react.CodePushUnknownException;
                                v19_3("Error closing IO resources.", v6_0);
                                throw v19_3;
                            }
                            if (v4_1 != null) {
                                v4_1.close();
                            }
                            if (v11_1 != null) {
                                v11_1.close();
                            }
                            return;
                        } else {
                            java.io.File v8_1 = new java.io.File(v5_1, v7.getName());
                            if (!v7.isDirectory()) {
                                java.io.File v14 = v8_1.getParentFile();
                                if (!v14.exists()) {
                                    v14.mkdirs();
                                }
                                java.io.FileOutputStream v12_1 = new java.io.FileOutputStream(v8_1);
                                try {
                                    while(true) {
                                        int v13 = v18.read(v2);
                                        v12_1.write(v2, 0, v13);
                                    }
                                    v12_1.close();
                                } catch (int v19_7) {
                                    v12_1.close();
                                    throw v19_7;
                                }
                                if (v13 == -1) {
                                }
                            } else {
                                v8_1.mkdirs();
                            }
                            long v16 = v7.getTime();
                        }
                    } while(v16 <= 0);
                    v8_1.setLastModified(v16);
                } catch (int v19_0) {
                    v3 = v4_1;
                    v10 = v11_1;
                }
            } catch (int v19_0) {
                v10 = v11_1;
            }
        } catch (int v19_0) {
        }
    }

Method com.microsoft.codepush.react.FileUtils.readFileToString() calling method java.io.File.<init>()


    public static String readFileToString(String p9)
    {
        java.io.FileInputStream v0 = 0;
        java.io.BufferedReader v4 = 0;
        try {
            java.io.FileInputStream v1_1 = new java.io.FileInputStream(new java.io.File(p9));
            try {
                java.io.BufferedReader v5_0 = new java.io.BufferedReader(new java.io.InputStreamReader(v1_1));
                try {
                    StringBuilder v6_1 = new StringBuilder();
                } catch (String v7_0) {
                    v4 = v5_0;
                    v0 = v1_1;
                    if (v4 != null) {
                        v4.close();
                    }
                    if (v0 != null) {
                        v0.close();
                    }
                    throw v7_0;
                }
                while(true) {
                    String v3 = v5_0.readLine();
                    if (v3 == null) {
                        break;
                    }
                    v6_1.append(v3).append("\n");
                }
                String v7_1 = v6_1.toString();
                if (v5_0 != null) {
                    v5_0.close();
                }
                if (v1_1 != null) {
                    v1_1.close();
                }
                return v7_1;
            } catch (String v7_0) {
                v0 = v1_1;
            }
        } catch (String v7_0) {
        }
    }

Method com.microsoft.codepush.react.FileUtils.moveFile() calling method java.io.File.<init>()


    public static void moveFile(java.io.File p5, String p6, String p7)
    {
        java.io.File v1_1 = new java.io.File(p6);
        if (!v1_1.exists()) {
            v1_1.mkdirs();
        }
        java.io.File v0_1 = new java.io.File(p6, p7);
        if (p5.renameTo(v0_1)) {
            return;
        } else {
            throw new com.microsoft.codepush.react.CodePushUnknownException(new StringBuilder().append("Unable to move file from ").append(p5.getAbsolutePath()).append(" to ").append(v0_1.getAbsolutePath()).append(".").toString());
        }
    }

Method com.microsoft.codepush.react.FileUtils.fileAtPathExists() calling method java.io.File.<init>()


    public static boolean fileAtPathExists(String p1)
    {
        return new java.io.File(p1).exists();
    }

Method com.microsoft.codepush.react.FileUtils.deleteFileAtPathSilently() calling method java.io.File.<init>()


    public static void deleteFileAtPathSilently(String p1)
    {
        com.microsoft.codepush.react.FileUtils.deleteFileOrFolderSilently(new java.io.File(p1));
        return;
    }

Method com.microsoft.codepush.react.FileUtils.deleteDirectoryAtPath() calling method java.io.File.<init>()


    public static void deleteDirectoryAtPath(String p2)
    {
        java.io.File v0_1 = new java.io.File(p2);
        if (v0_1.exists()) {
            com.microsoft.codepush.react.FileUtils.deleteFileOrFolderSilently(v0_1);
        }
        return;
    }

Method com.microsoft.codepush.react.FileUtils.copyDirectoryContents() calling method java.io.File.<init>()


    public static void copyDirectoryContents(String p20, String p21)
    {
        java.io.File v13_1 = new java.io.File(p20);
        java.io.File v4_1 = new java.io.File(p21);
        if (!v4_1.exists()) {
            v4_1.mkdir();
        }
        String v16_0 = v13_1.listFiles();
        int v17 = v16_0.length;
        com.microsoft.codepush.react.CodePushUnknownException v15_0 = 0;
        while (v15_0 < v17) {
            java.io.File v14 = v16_0[v15_0];
            if (!v14.isDirectory()) {
                java.io.File v5_1 = new java.io.File(v4_1, v14.getName());
                java.io.FileInputStream v11 = 0;
                java.io.BufferedInputStream v9 = 0;
                java.io.FileOutputStream v6 = 0;
                byte[] v2 = new byte[8192];
                try {
                    java.io.FileInputStream v12_1 = new java.io.FileInputStream(v14);
                    try {
                        java.io.BufferedInputStream v10_1 = new java.io.BufferedInputStream(v12_1);
                        try {
                            java.io.FileOutputStream v7_1 = new java.io.FileOutputStream(v5_1);
                            try {
                                while(true) {
                                    int v3 = v10_1.read(v2);
                                    v7_1.write(v2, 0, v3);
                                }
                                try {
                                    if (v12_1 != null) {
                                        v12_1.close();
                                    }
                                    if (v10_1 != null) {
                                        v10_1.close();
                                    }
                                    if (v7_1 != null) {
                                        v7_1.close();
                                    }
                                } catch (java.io.IOException v8_1) {
                                    throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v8_1);
                                }
                            } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                                v6 = v7_1;
                                v9 = v10_1;
                                v11 = v12_1;
                                try {
                                    if (v11 != null) {
                                        v11.close();
                                    }
                                } catch (java.io.IOException v8_0) {
                                    throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v8_0);
                                }
                                if (v9 != null) {
                                    v9.close();
                                }
                                if (v6 != null) {
                                    v6.close();
                                }
                                throw v15_1;
                            }
                            if (v3 <= 0) {
                            }
                        } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                            v9 = v10_1;
                            v11 = v12_1;
                        }
                    } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                        v11 = v12_1;
                    }
                } catch (com.microsoft.codepush.react.CodePushUnknownException v15_1) {
                }
            } else {
                com.microsoft.codepush.react.FileUtils.copyDirectoryContents(com.microsoft.codepush.react.CodePushUtils.appendPathComponent(p20, v14.getName()), com.microsoft.codepush.react.CodePushUtils.appendPathComponent(p21, v14.getName()));
            }
            v15_0++;
        }
        return;
    }

Method com.microsoft.codepush.react.CodePushUtils.appendPathComponent() calling method java.io.File.<init>()


    public static String appendPathComponent(String p1, String p2)
    {
        return new java.io.File(p1, p2).getAbsolutePath();
    }

Method com.microsoft.codepush.react.CodePushUpdateUtils.findJSBundleInUpdateContents() calling method java.io.File.<init>()


    public static String findJSBundleInUpdateContents(String p9, String p10)
    {
        java.io.File[] v3 = new java.io.File(p9).listFiles();
        int v7 = v3.length;
        int v6_0 = 0;
        while (v6_0 < v7) {
            java.io.File v0 = v3[v6_0];
            String v4 = com.microsoft.codepush.react.CodePushUtils.appendPathComponent(p9, v0.getName());
            if (!v0.isDirectory()) {
                String v1 = v0.getName();
                if (v1.equals(p10)) {
                    return v1;
                }
            } else {
                String v5 = com.microsoft.codepush.react.CodePushUpdateUtils.findJSBundleInUpdateContents(v4, p10);
                if (v5 != null) {
                    v1 = com.microsoft.codepush.react.CodePushUtils.appendPathComponent(v0.getName(), v5);
                    return v1;
                }
            }
            v6_0++;
        }
        v1 = 0;
        return v1;
    }

Method com.microsoft.codepush.react.CodePushUpdateUtils.copyNecessaryFilesFromCurrentPackage() calling method java.io.File.<init>()


    public static void copyNecessaryFilesFromCurrentPackage(String p8, String p9, String p10)
    {
        com.microsoft.codepush.react.FileUtils.copyDirectoryContents(p9, p10);
        try {
            org.json.JSONArray v0 = com.microsoft.codepush.react.CodePushUtils.getJsonObjectFromFile(p8).getJSONArray("deletedFiles");
            int v5 = 0;
        } catch (org.json.JSONException v2) {
            throw new com.microsoft.codepush.react.CodePushUnknownException("Unable to copy files from current package during diff update", v2);
        }
        while (v5 < v0.length()) {
            java.io.File v4_1 = new java.io.File(p10, v0.getString(v5));
            if (v4_1.exists()) {
                v4_1.delete();
            }
            v5++;
        }
        return;
    }

Method com.microsoft.codepush.react.CodePushUpdateUtils.addContentsOfFolderToManifest() calling method java.io.File.<init>()


    private static void addContentsOfFolderToManifest(String p12, String p13, java.util.ArrayList p14)
    {
        java.io.File[] v4 = new java.io.File(p12).listFiles();
        int v9 = v4.length;
        String v8_0 = 0;
        while (v8_0 < v9) {
            com.microsoft.codepush.react.CodePushUnknownException v7_5;
            java.io.File v1 = v4[v8_0];
            String v2 = v1.getName();
            String v5 = v1.getAbsolutePath();
            String v10_1 = new StringBuilder();
            if (!p13.isEmpty()) {
                v7_5 = new StringBuilder().append(p13).append("/").toString();
            } else {
                v7_5 = "";
            }
            String v6 = v10_1.append(v7_5).append(v2).toString();
            if ((!v2.equals(".DS_Store")) && (!v2.equals("__MACOSX"))) {
                if (!v1.isDirectory()) {
                    try {
                        p14.add(new StringBuilder().append(v6).append(":").append(com.microsoft.codepush.react.CodePushUpdateUtils.computeHash(new java.io.FileInputStream(v1))).toString());
                    } catch (java.io.FileNotFoundException v0) {
                        throw new com.microsoft.codepush.react.CodePushUnknownException("Unable to compute hash of update contents.", v0);
                    }
                } else {
                    com.microsoft.codepush.react.CodePushUpdateUtils.addContentsOfFolderToManifest(v5, v6, p14);
                }
            }
            v8_0++;
        }
        return;
    }

Method com.microsoft.codepush.react.CodePushUpdateManager.downloadPackage() calling method java.io.File.<init>()


    public void downloadPackage(org.json.JSONObject p43, String p44, com.microsoft.codepush.react.DownloadProgressCallback p45)
    {
        String v30 = p43.optString("packageHash", 0);
        String v29 = this.getPackageFolderPath(v30);
        String v31 = com.microsoft.codepush.react.CodePushUtils.appendPathComponent(v29, "app.json");
        if (com.microsoft.codepush.react.FileUtils.fileAtPathExists(v29)) {
            com.microsoft.codepush.react.FileUtils.deleteDirectoryAtPath(v29);
        }
        String v19 = p43.optString("downloadUrl", 0);
        java.io.BufferedInputStream v6 = 0;
        java.io.FileOutputStream v21 = 0;
        java.io.BufferedOutputStream v8 = 0;
        int v27 = 0;
        try {
            java.net.HttpURLConnection v10 = ((java.net.HttpURLConnection) ((java.net.HttpURLConnection) new java.net.URL(v19).openConnection()));
            long v36 = ((long) v10.getContentLength());
            long v34 = 0;
            java.io.BufferedInputStream v7_1 = new java.io.BufferedInputStream(v10.getInputStream());
            try {
                java.io.File v17 = new java.io.File;
                v17(this.getCodePushPath());
                v17.mkdirs();
                java.io.File v16 = new java.io.File;
                v16(v17, "download.zip");
                try {
                    java.io.FileOutputStream v22 = new java.io.FileOutputStream;
                    v22(v16);
                    try {
                        java.io.BufferedOutputStream v9_1 = new java.io.BufferedOutputStream(v22, 262144);
                        try {
                            byte[] v12 = new byte[262144];
                            org.json.JSONObject v0_40 = new byte[4];
                            byte[] v23 = v0_40;
                        } catch (java.io.IOException v20_1) {
                            v8 = v9_1;
                            v21 = v22;
                            v6 = v7_1;
                            String v39_21 = new com.microsoft.codepush.react.CodePushMalformedDataException;
                            v39_21(v19, v20_1);
                            throw v39_21;
                        }
                        while(true) {
                            int v32 = v7_1.read(v12, 0, 262144);
                            if (v32 < 0) {
                                break;
                            }
                            if (v34 < 4) {
                                int v25 = 0;
                                while (v25 < v32) {
                                    int v24 = (((int) v34) + v25);
                                    if (v24 >= 4) {
                                        break;
                                    }
                                    v23[v24] = v12[v25];
                                    v25++;
                                }
                            }
                            v34 += ((long) v32);
                            v9_1.write(v12, 0, v32);
                            String v39_24 = new com.microsoft.codepush.react.DownloadProgress;
                            v39_24(v36, v34);
                            p45.call(v39_24);
                        }
                        if (v36 == v34) {
                            if (java.nio.ByteBuffer.wrap(v23).getInt() != 1347093252) {
                                v27 = 0;
                            } else {
                                v27 = 1;
                            }
                            try {
                                if (v9_1 != null) {
                                    v9_1.close();
                                }
                            } catch (java.io.IOException v20_0) {
                                String v39_6 = new com.microsoft.codepush.react.CodePushUnknownException;
                                v39_6("Error closing IO resources.", v20_0);
                                throw v39_6;
                            }
                            if (v22 != null) {
                                v22.close();
                            }
                            if (v7_1 != null) {
                                v7_1.close();
                            }
                            if (v10 != null) {
                                v10.disconnect();
                            }
                            if (v27 == 0) {
                                com.microsoft.codepush.react.FileUtils.moveFile(v16, v29, p44);
                            } else {
                                String v38 = this.getUnzippedFolderPath();
                                com.microsoft.codepush.react.FileUtils.unzipFile(v16, v38);
                                com.microsoft.codepush.react.FileUtils.deleteFileOrFolderSilently(v16);
                                String v14 = com.microsoft.codepush.react.CodePushUtils.appendPathComponent(v38, "hotcodepush.json");
                                boolean v26 = com.microsoft.codepush.react.FileUtils.fileAtPathExists(v14);
                                if (v26) {
                                    com.microsoft.codepush.react.CodePushUpdateUtils.copyNecessaryFilesFromCurrentPackage(v14, this.getCurrentPackageFolderPath(), v29);
                                    new java.io.File(v14).delete();
                                }
                                com.microsoft.codepush.react.FileUtils.copyDirectoryContents(v38, v29);
                                com.microsoft.codepush.react.FileUtils.deleteFileAtPathSilently(v38);
                                String v33 = com.microsoft.codepush.react.CodePushUpdateUtils.findJSBundleInUpdateContents(v29, p44);
                                if (v33 != null) {
                                    if (com.microsoft.codepush.react.FileUtils.fileAtPathExists(v31)) {
                                        java.io.File v28 = new java.io.File;
                                        v28(v31);
                                        v28.delete();
                                    }
                                    if (v26) {
                                        com.microsoft.codepush.react.CodePushUpdateUtils.verifyHashForDiffUpdate(v29, v30);
                                    }
                                    com.microsoft.codepush.react.CodePushUtils.setJSONValueForKey(p43, "bundlePath", v33);
                                } else {
                                    throw new com.microsoft.codepush.react.CodePushInvalidUpdateException(new StringBuilder().append("Update is invalid - A JS bundle file named \"").append(p44).append("\" could not be found within the downloaded contents. Please check that you are releasing your CodePush updates using the exact same JS bundle file name that was shipped with your app\'s binary.").toString());
                                }
                            }
                            com.microsoft.codepush.react.CodePushUtils.writeJsonToFile(p43, v31);
                            return;
                        } else {
                            throw new com.microsoft.codepush.react.CodePushUnknownException(new StringBuilder().append("Received ").append(v34).append(" bytes, expected ").append(v36).toString());
                        }
                    } catch (String v39_20) {
                        v21 = v22;
                        v6 = v7_1;
                        try {
                            if (v8 != null) {
                                v8.close();
                            }
                        } catch (java.io.IOException v20_2) {
                            String v39_22 = new com.microsoft.codepush.react.CodePushUnknownException;
                            v39_22("Error closing IO resources.", v20_2);
                            throw v39_22;
                        }
                        if (v21 != null) {
                            v21.close();
                        }
                        if (v6 != null) {
                            v6.close();
                        }
                        if (v10 != null) {
                            v10.disconnect();
                        }
                        throw v39_20;
                    } catch (java.io.IOException v20_1) {
                        v21 = v22;
                        v6 = v7_1;
                    }
                } catch (String v39_20) {
                    v6 = v7_1;
                } catch (java.io.IOException v20_1) {
                    v6 = v7_1;
                }
            } catch (String v39_20) {
                v6 = v7_1;
            } catch (java.io.IOException v20_1) {
                v6 = v7_1;
            }
        } catch (String v39_20) {
        } catch (java.io.IOException v20_1) {
        }
    }

Method com.microsoft.codepush.react.CodePushUpdateManager.downloadAndReplaceCurrentBundle() calling method java.io.File.<init>()


    public void downloadAndReplaceCurrentBundle(String p16, String p17)
    {
        java.io.BufferedInputStream v1 = 0;
        java.io.FileOutputStream v10 = 0;
        java.io.BufferedOutputStream v3 = 0;
        try {
            java.net.HttpURLConnection v5 = ((java.net.HttpURLConnection) ((java.net.HttpURLConnection) new java.net.URL(p16).openConnection()));
            java.io.BufferedInputStream v2_1 = new java.io.BufferedInputStream(v5.getInputStream());
            try {
                java.io.File v7_1 = new java.io.File(this.getCurrentPackageBundlePath(p17));
                v7_1.delete();
                java.io.FileOutputStream v11_1 = new java.io.FileOutputStream(v7_1);
                try {
                    java.io.BufferedOutputStream v4_1 = new java.io.BufferedOutputStream(v11_1, 262144);
                    try {
                        byte[] v6 = new byte[262144];
                    } catch (com.microsoft.codepush.react.CodePushUnknownException v13_2) {
                        v3 = v4_1;
                        v10 = v11_1;
                        v1 = v2_1;
                        try {
                            if (v3 != null) {
                                v3.close();
                            }
                        } catch (java.io.IOException v9_1) {
                            throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v9_1);
                        }
                        if (v10 != null) {
                            v10.close();
                        }
                        if (v1 != null) {
                            v1.close();
                        }
                        if (v5 != null) {
                            v5.disconnect();
                        }
                        throw v13_2;
                    } catch (java.io.IOException v9_0) {
                        v3 = v4_1;
                        v10 = v11_1;
                        v1 = v2_1;
                        throw new com.microsoft.codepush.react.CodePushMalformedDataException(p16, v9_0);
                    }
                    while(true) {
                        int v12 = v2_1.read(v6, 0, 262144);
                        if (v12 < 0) {
                            break;
                        }
                        v4_1.write(v6, 0, v12);
                    }
                    try {
                        if (v4_1 != null) {
                            v4_1.close();
                        }
                    } catch (java.io.IOException v9_2) {
                        throw new com.microsoft.codepush.react.CodePushUnknownException("Error closing IO resources.", v9_2);
                    }
                    if (v11_1 != null) {
                        v11_1.close();
                    }
                    if (v2_1 != null) {
                        v2_1.close();
                    }
                    if (v5 != null) {
                        v5.disconnect();
                    }
                    return;
                } catch (com.microsoft.codepush.react.CodePushUnknownException v13_2) {
                    v10 = v11_1;
                    v1 = v2_1;
                } catch (java.io.IOException v9_0) {
                    v10 = v11_1;
                    v1 = v2_1;
                }
            } catch (com.microsoft.codepush.react.CodePushUnknownException v13_2) {
                v1 = v2_1;
            } catch (java.io.IOException v9_0) {
                v1 = v2_1;
            }
        } catch (com.microsoft.codepush.react.CodePushUnknownException v13_2) {
        } catch (java.io.IOException v9_0) {
        }
    }

Method com.google.firebase.iid.zzg.zzkf() calling method java.io.File.<init>()


    private void zzkf(String p5)
    {
        String v1_5 = new java.io.File(com.google.android.gms.common.util.zzx.getNoBackupFilesDir(this.zzagf), p5);
        try {
            if ((!v1_5.exists()) && ((v1_5.createNewFile()) && (!this.isEmpty()))) {
                android.util.Log.i("InstanceID/Store", "App restored, clearing state");
                com.google.firebase.iid.FirebaseInstanceId.zza(this.zzagf, this);
            }
        } catch (String v0_2) {
            if (!android.util.Log.isLoggable("InstanceID/Store", 3)) {
            } else {
                String v0_5 = String.valueOf(v0_2.getMessage());
                if (v0_5.length() == 0) {
                    String v0_7 = new String("Error creating file in no backup dir: ");
                    android.util.Log.d("InstanceID/Store", v0_7);
                } else {
                    v0_7 = "Error creating file in no backup dir: ".concat(v0_5);
                }
            }
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zzx.zzbtx() calling method java.io.File.<init>()


    boolean zzbtx()
    {
        this.zzwu();
        try {
            int v0_12;
            this.all = new java.io.RandomAccessFile(new java.io.File(this.getContext().getFilesDir(), this.akY.zzaab()), "rw").getChannel();
            this.alk = this.all.tryLock();
        } catch (int v0_14) {
            this.zzbsd().zzbsv().zzj("Failed to acquire storage lock", v0_14);
            v0_12 = 0;
            return v0_12;
        } catch (int v0_13) {
            this.zzbsd().zzbsv().zzj("Failed to access storage lock file", v0_13);
        }
        if (this.alk == null) {
            this.zzbsd().zzbsv().log("Storage concurrent data access panic");
        } else {
            this.zzbsd().zzbtc().log("Storage concurrent access okay");
            v0_12 = 1;
            return v0_12;
        }
    }

Method com.google.android.gms.measurement.internal.zze$zzc.onCreate() calling method java.io.File.<init>()


    public void onCreate(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT >= 9) {
            java.io.File v0_2 = new java.io.File(p5.getPath());
            v0_2.setReadable(0, 0);
            v0_2.setWritable(0, 0);
            v0_2.setReadable(1, 1);
            v0_2.setWritable(1, 1);
        }
        return;
    }

Method com.google.android.gms.internal.zzac.zza() calling method java.io.File.<init>()


    public static com.google.android.gms.internal.zzl zza(android.content.Context p6, com.google.android.gms.internal.zzy p7)
    {
        java.io.File v1_1 = new java.io.File(p6.getCacheDir(), "volley");
        try {
            com.google.android.gms.internal.zzl v2_7 = p6.getPackageName();
            android.net.http.AndroidHttpClient v0_1 = new StringBuilder((String.valueOf(v2_7).length() + 12)).append(v2_7).append("/").append(p6.getPackageManager().getPackageInfo(v2_7, 0).versionCode).toString();
        } catch (com.google.android.gms.internal.zzl v2) {
        }
        if (p7 == null) {
            if (android.os.Build$VERSION.SDK_INT < 9) {
                p7 = new com.google.android.gms.internal.zzw(android.net.http.AndroidHttpClient.newInstance(v0_1));
            } else {
                p7 = new com.google.android.gms.internal.zzz();
            }
        }
        com.google.android.gms.internal.zzl v2_6 = new com.google.android.gms.internal.zzl(new com.google.android.gms.internal.zzv(v1_1), new com.google.android.gms.internal.zzt(p7));
        v2_6.start();
        return v2_6;
    }

Method com.google.android.gms.iid.zzd.zzkf() calling method java.io.File.<init>()


    private void zzkf(String p5)
    {
        String v1_5 = new java.io.File(com.google.android.gms.common.util.zzx.getNoBackupFilesDir(this.zzagf), p5);
        try {
            if ((!v1_5.exists()) && ((v1_5.createNewFile()) && (!this.isEmpty()))) {
                android.util.Log.i("InstanceID/Store", "App restored, clearing state");
                com.google.android.gms.iid.InstanceIDListenerService.zza(this.zzagf, this);
            }
        } catch (String v0_2) {
            if (!android.util.Log.isLoggable("InstanceID/Store", 3)) {
            } else {
                String v0_5 = String.valueOf(v0_2.getMessage());
                if (v0_5.length() == 0) {
                    String v0_7 = new String("Error creating file in no backup dir: ");
                    android.util.Log.d("InstanceID/Store", v0_7);
                } else {
                    v0_7 = "Error creating file in no backup dir: ".concat(v0_5);
                }
            }
        }
        return;
    }

Method com.google.android.gms.common.util.zzx.getNoBackupFilesDir() calling method java.io.File.<init>()


    public static java.io.File getNoBackupFilesDir(android.content.Context p3)
    {
        java.io.File v0_1;
        if (!com.google.android.gms.common.util.zzs.zzavx()) {
            v0_1 = com.google.android.gms.common.util.zzx.zze(new java.io.File(p3.getApplicationInfo().dataDir, "no_backup"));
        } else {
            v0_1 = p3.getNoBackupFilesDir();
        }
        return v0_1;
    }

Method com.facebook.soloader.UnpackingSoSource$1.run() calling method java.io.File.<init>()


    public void run()
    {
        com.facebook.soloader.FileLocker v6_0 = 0;
        try {
            android.util.Log.v("fb-UnpackingSoSource", "starting syncer worker");
            java.io.RandomAccessFile v0_1 = new java.io.RandomAccessFile(this.val$depsFileName, "rw");
            try {
                v0_1.write(this.val$deps);
                v0_1.setLength(v0_1.getFilePointer());
            } catch (Throwable v5_5) {
                if (v0_1 != null) {
                    if (v6_0 == null) {
                        v0_1.close();
                    } else {
                        v0_1.close();
                    }
                }
                throw v5_5;
            } catch (Throwable v5_4) {
                try {
                    throw v5_4;
                } catch (com.facebook.soloader.FileLocker v6_4) {
                    v6_0 = v5_4;
                    v5_5 = v6_4;
                }
            }
            if (v0_1 != null) {
                if (0 == 0) {
                    v0_1.close();
                } else {
                    try {
                        v0_1.close();
                    } catch (Throwable v4_1) {
                        0.addSuppressed(v4_1);
                    }
                }
            }
            java.io.RandomAccessFile v2_1 = new java.io.RandomAccessFile(new java.io.File(this.this$0.soDirectory, "dso_manifest"), "rw");
            try {
                this.val$manifest.write(v2_1);
            } catch (Throwable v5_12) {
                if (v2_1 != null) {
                    if (v6_0 == null) {
                        v2_1.close();
                    } else {
                        v2_1.close();
                    }
                }
                throw v5_12;
            } catch (Throwable v5_10) {
                try {
                    throw v5_10;
                } catch (com.facebook.soloader.FileLocker v6_5) {
                    v6_0 = v5_10;
                    v5_12 = v6_5;
                }
            }
            if (v2_1 != null) {
                if (0 == 0) {
                    v2_1.close();
                } else {
                    v2_1.close();
                }
            }
            com.facebook.soloader.SysUtil.fsyncRecursive(this.this$0.soDirectory);
            com.facebook.soloader.UnpackingSoSource.access$000(this.val$stateFileName, 1);
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("releasing dso store lock for ").append(this.this$0.soDirectory).append(" (from syncer thread)").toString());
            this.val$lock.close();
            return;
        } catch (Throwable v5_16) {
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("releasing dso store lock for ").append(this.this$0.soDirectory).append(" (from syncer thread)").toString());
            this.val$lock.close();
            throw v5_16;
        } catch (java.io.IOException v1) {
            throw new RuntimeException(v1);
        }
    }

Method com.facebook.soloader.SoLoader.initImpl() calling method java.io.File.<init>()


    private static declared_synchronized void initImpl(android.content.Context p20, int p21)
    {
        try {
            if (com.facebook.soloader.SoLoader.sSoSources == null) {
                com.facebook.soloader.SoLoader.sFlags = p21;
                java.util.ArrayList v13_1 = new java.util.ArrayList();
                String v3 = System.getenv("LD_LIBRARY_PATH");
                if (v3 == null) {
                    v3 = "/vendor/lib:/system/lib";
                }
                String[] v14 = v3.split(":");
                int v7_0 = 0;
                while (v7_0 < v14.length) {
                    int v16_2 = new com.facebook.soloader.DirectorySoSource;
                    v16_2(new java.io.File(v14[v7_0]), 2);
                    v13_1.add(v16_2);
                    v7_0++;
                }
                if (p20 != null) {
                    if ((p21 & 1) == 0) {
                        int v9;
                        android.content.pm.ApplicationInfo v5 = p20.getApplicationInfo();
                        if (((v5.flags & 1) == 0) || ((v5.flags & 128) != 0)) {
                            v9 = 0;
                        } else {
                            v9 = 1;
                        }
                        int v4;
                        if (v9 == 0) {
                            v4 = 1;
                            int v11 = 0;
                            if (android.os.Build$VERSION.SDK_INT <= 17) {
                                v11 = (0 | 1);
                            }
                            int v16_12 = new java.io.File;
                            v16_12(v5.nativeLibraryDir);
                            v13_1.add(0, new com.facebook.soloader.DirectorySoSource(v16_12, v11));
                        } else {
                            v4 = 0;
                        }
                        String v18_3 = new com.facebook.soloader.ApkSoSource;
                        v18_3(p20, com.facebook.soloader.SoLoader.SO_STORE_NAME_MAIN, v4);
                        v13_1.add(0, v18_3);
                    } else {
                        String v18_4 = new com.facebook.soloader.ExoSoSource;
                        v18_4(p20, com.facebook.soloader.SoLoader.SO_STORE_NAME_MAIN);
                        v13_1.add(0, v18_4);
                    }
                }
                int v0_19 = new com.facebook.soloader.SoSource[v13_1.size()];
                com.facebook.soloader.SoSource[] v6_1 = ((com.facebook.soloader.SoSource[]) v13_1.toArray(v0_19));
                int v12 = com.facebook.soloader.SoLoader.makePrepareFlags();
                int v8 = v6_1.length;
                while(true) {
                    int v7_2 = (v8 - 1);
                    if (v8 <= 0) {
                        break;
                    }
                    v6_1[v7_2].prepare(v12);
                    v8 = v7_2;
                }
                com.facebook.soloader.SoLoader.sSoSources = v6_1;
            }
        } catch (int v16_4) {
            throw v16_4;
        }
        return;
    }

Method com.facebook.react.devsupport.StackTraceHelper$StackFrame.<init>() calling method java.io.File.<init>()


    private StackTraceHelper$StackFrame(String p2, String p3, int p4, int p5)
    {
        this.mFile = p2;
        this.mMethod = p3;
        this.mLine = p4;
        this.mColumn = p5;
        this.mFileName = new java.io.File(p2).getName();
        return;
    }

Method com.facebook.react.cxxbridge.UnpackingJSBundleLoader$Unpacker.setDestinationDirectory() calling method java.io.File.<init>()


    public void setDestinationDirectory(java.io.File p3)
    {
        this.mDestinationFilePath = new java.io.File(p3, this.mFileName);
        return;
    }

Method com.facebook.imagepipeline.request.ImageRequest.getSourceFile() calling method java.io.File.<init>()


    public declared_synchronized java.io.File getSourceFile()
    {
        try {
            if (this.mSourceFile == null) {
                this.mSourceFile = new java.io.File(this.mSourceUri.getPath());
            }
        } catch (java.io.File v0_4) {
            throw v0_4;
        }
        return this.mSourceFile;
    }

Method com.crashlytics.android.core.MetaDataStore.getUserDataFileForSession() calling method java.io.File.<init>()


    private java.io.File getUserDataFileForSession(String p5)
    {
        return new java.io.File(this.filesDir, new StringBuilder().append(p5).append("user").append(".meta").toString());
    }

Method com.crashlytics.android.core.MetaDataStore.getKeysFileForSession() calling method java.io.File.<init>()


    private java.io.File getKeysFileForSession(String p5)
    {
        return new java.io.File(this.filesDir, new StringBuilder().append(p5).append("keys").append(".meta").toString());
    }

Method com.crashlytics.android.core.LogFileManager.getWorkingFileForSession() calling method java.io.File.<init>()


    private java.io.File getWorkingFileForSession(String p4)
    {
        return new java.io.File(this.getLogFileDir(), new StringBuilder().append("crashlytics-userlog-").append(p4).append(".temp").toString());
    }

Method com.crashlytics.android.core.LogFileManager.getLogFileDir() calling method java.io.File.<init>()


    private java.io.File getLogFileDir()
    {
        java.io.File v0_1 = new java.io.File(this.fileStore.getFilesDir(), "log-files");
        if (!v0_1.exists()) {
            v0_1.mkdirs();
        }
        return v0_1;
    }

Method com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.deleteLegacyInvalidCacheDir() calling method java.io.File.<init>()


    private void deleteLegacyInvalidCacheDir()
    {
        java.io.File v1_1 = new java.io.File(this.crashlyticsCore.getSdkDirectory(), "invalidClsFiles");
        if (v1_1.exists()) {
            if (v1_1.isDirectory()) {
                java.io.File[] v0 = v1_1.listFiles();
                int v4 = v0.length;
                int v3 = 0;
                while (v3 < v4) {
                    v0[v3].delete();
                    v3++;
                }
            }
            v1_1.delete();
        }
        return;
    }

Method com.crashlytics.android.core.CrashlyticsFileMarker.getMarkerFile() calling method java.io.File.<init>()


    private java.io.File getMarkerFile()
    {
        return new java.io.File(this.fileStore.getFilesDir(), this.markerName);
    }

Method com.crashlytics.android.core.ClsFileOutputStream.close() calling method java.io.File.<init>()


    public declared_synchronized void close()
    {
        try {
            if (!this.closed) {
                this.closed = 1;
                super.flush();
                super.close();
                java.io.File v0_0 = new java.io.File(new StringBuilder().append(this.root).append(".cls").toString());
                if (!this.inProgress.renameTo(v0_0)) {
                    String v1 = "";
                    if (!v0_0.exists()) {
                        if (!this.inProgress.exists()) {
                            v1 = " (source does not exist)";
                        }
                    } else {
                        v1 = " (target already exists)";
                    }
                    throw new java.io.IOException(new StringBuilder().append("Could not rename temp file: ").append(this.inProgress).append(" -> ").append(v0_0).append(v1).toString());
                } else {
                    this.inProgress = 0;
                    this.complete = v0_0;
                }
            }
        } catch (java.io.IOException v2_12) {
            throw v2_12;
        }
        return;
    }

Method com.crashlytics.android.core.ClsFileOutputStream.<init>() calling method java.io.File.<init>()


    public ClsFileOutputStream(String p2, String p3)
    {
        this(new java.io.File(p2), p3);
        return;
    }

Method com.crashlytics.android.core.ClsFileOutputStream.<init>() calling method java.io.File.<init>()


    public ClsFileOutputStream(java.io.File p4, String p5)
    {
        super(new java.io.File(p4, new StringBuilder().append(p5).append(".cls_temp").toString()));
        super.closed = 0;
        super.root = new StringBuilder().append(p4).append(java.io.File.separator).append(p5).toString();
        super.inProgress = new java.io.File(new StringBuilder().append(super.root).append(".cls_temp").toString());
        return;
    }

Method android.support.v4.util.AtomicFile.<init>() calling method java.io.File.<init>()


    public AtomicFile(java.io.File p4)
    {
        this.mBaseName = p4;
        this.mBackupName = new java.io.File(new StringBuilder().append(p4.getPath()).append(".bak").toString());
        return;
    }

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


    private static varargs java.io.File buildPath(java.io.File p5, String[] p6)
    {
        int v4 = p6.length;
        int v3 = 0;
        java.io.File v1 = p5;
        while (v3 < v4) {
            java.io.File v0_1;
            String v2 = p6[v3];
            if (v2 == null) {
                v0_1 = v1;
            } else {
                v0_1 = new java.io.File(v1, v2);
            }
            v3++;
            v1 = v0_1;
        }
        return v1;
    }

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


    static FileProvider()
    {
        java.util.HashMap v0_1 = new String[2];
        v0_1[0] = "_display_name";
        v0_1[1] = "_size";
        android.support.v4.content.FileProvider.COLUMNS = v0_1;
        android.support.v4.content.FileProvider.DEVICE_ROOT = new java.io.File("/");
        android.support.v4.content.FileProvider.sCache = new java.util.HashMap();
        return;
    }

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


    public static final java.io.File getNoBackupFilesDir(android.content.Context p5)
    {
        java.io.File v2_1;
        if (android.os.Build$VERSION.SDK_INT < 21) {
            v2_1 = android.support.v4.content.ContextCompat.createFilesDir(new java.io.File(p5.getApplicationInfo().dataDir, "no_backup"));
        } else {
            v2_1 = android.support.v4.content.ContextCompatApi21.getNoBackupFilesDir(p5);
        }
        return v2_1;
    }

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


    public static java.io.File getDataDir(android.content.Context p2)
    {
        int v1_1;
        if (!android.support.v4.os.BuildCompat.isAtLeastN()) {
            String v0 = p2.getApplicationInfo().dataDir;
            if (v0 == null) {
                v1_1 = 0;
            } else {
                v1_1 = new java.io.File(v0);
            }
        } else {
            v1_1 = android.support.v4.content.ContextCompatApi24.getDataDir(p2);
        }
        return v1_1;
    }

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


    public static java.io.File getCodeCacheDir(android.content.Context p5)
    {
        java.io.File v2_1;
        if (android.os.Build$VERSION.SDK_INT < 21) {
            v2_1 = android.support.v4.content.ContextCompat.createFilesDir(new java.io.File(p5.getApplicationInfo().dataDir, "code_cache"));
        } else {
            v2_1 = android.support.v4.content.ContextCompatApi21.getCodeCacheDir(p5);
        }
        return v2_1;
    }

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


    private static varargs java.io.File buildPath(java.io.File p5, String[] p6)
    {
        int v4 = p6.length;
        int v3 = 0;
        java.io.File v1 = p5;
        while (v3 < v4) {
            java.io.File v0_2;
            String v2 = p6[v3];
            if (v1 != null) {
                if (v2 == null) {
                    v0_2 = v1;
                } else {
                    v0_2 = new java.io.File(v1, v2);
                }
            } else {
                v0_2 = new java.io.File(v2);
            }
            v3++;
            v1 = v0_2;
        }
        return v1;
    }

Method com.facebook.soloader.UnpackingSoSource.writeState() calling method java.io.RandomAccessFile.<init>()


    private static void writeState(java.io.File p7, byte p8)
    {
        java.io.RandomAccessFile v0_1 = new java.io.RandomAccessFile(p7, "rw");
        Throwable v3_1 = 0;
        try {
            v0_1.seek(0);
            v0_1.write(p8);
            v0_1.setLength(v0_1.getFilePointer());
            v0_1.getFD().sync();
        } catch (Throwable v2_3) {
            if (v0_1 != null) {
                if (v3_1 == null) {
                    v0_1.close();
                } else {
                    try {
                        v0_1.close();
                    } catch (Throwable v1_0) {
                        v3_1.addSuppressed(v1_0);
                    }
                }
            }
            throw v2_3;
        } catch (Throwable v2_2) {
            try {
                throw v2_2;
            } catch (Throwable v3_0) {
                v3_1 = v2_2;
                v2_3 = v3_0;
            }
        }
        if (v0_1 != null) {
            if (0 == 0) {
                v0_1.close();
            } else {
                try {
                    v0_1.close();
                } catch (Throwable v1_1) {
                    0.addSuppressed(v1_1);
                }
            }
        }
        return;
    }

Method com.facebook.soloader.UnpackingSoSource.regenerate() calling method java.io.RandomAccessFile.<init>()


    private void regenerate(byte p17, com.facebook.soloader.UnpackingSoSource$DsoManifest p18, com.facebook.soloader.UnpackingSoSource$InputDsoIterator p19)
    {
        com.facebook.soloader.UnpackingSoSource$DsoManifest v3;
        android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("regenerating DSO store ").append(this.getClass().getName()).toString());
        java.io.RandomAccessFile v7_1 = new java.io.RandomAccessFile(new java.io.File(this.soDirectory, "dso_manifest"), "rw");
        com.facebook.soloader.UnpackingSoSource$DsoManifest v2_0 = 0;
        try {
            if (p17 != 1) {
                v3 = v2_0;
                com.facebook.soloader.UnpackingSoSource$DsoManifest v2_1;
                if (v3 != null) {
                    v2_1 = v3;
                } else {
                    try {
                        Throwable v11_12 = new com.facebook.soloader.UnpackingSoSource$Dso[0];
                        v2_1 = new com.facebook.soloader.UnpackingSoSource$DsoManifest(v11_12);
                    } catch (Throwable v11_1) {
                        try {
                            throw v11_1;
                        } catch (boolean v12_1) {
                            boolean v12_2 = v11_1;
                            Throwable v11_2 = v12_1;
                            if (v7_1 != null) {
                                if (!v12_2) {
                                    v7_1.close();
                                } else {
                                    try {
                                        v7_1.close();
                                    } catch (Throwable v10_0) {
                                        v12_2.addSuppressed(v10_0);
                                    }
                                }
                            }
                            throw v11_2;
                        }
                    }
                }
                this.deleteUnmentionedFiles(p18.dsos);
                byte[] v6 = new byte[32768];
                while (p19.hasNext()) {
                    com.facebook.soloader.UnpackingSoSource$InputDso v5 = p19.next();
                    boolean v12_9 = 0;
                    int v9 = 1;
                    int v4 = 0;
                    try {
                        while ((v9 != 0) && (v4 < v2_1.dsos.length)) {
                            if ((v2_1.dsos[v4].name.equals(v5.dso.name)) && (v2_1.dsos[v4].hash.equals(v5.dso.hash))) {
                                v9 = 0;
                            }
                            v4++;
                        }
                    } catch (Throwable v11_23) {
                        if (v5 != null) {
                            if (!v12_9) {
                                v5.close();
                            } else {
                                v5.close();
                            }
                        }
                        throw v11_23;
                    } catch (Throwable v11_22) {
                        try {
                            throw v11_22;
                        } catch (boolean v12_10) {
                            v12_9 = v11_22;
                            v11_23 = v12_10;
                        }
                    }
                    if (v9 != 0) {
                        this.extractDso(v5, v6);
                    }
                    if (v5 != null) {
                        if (0 == 0) {
                            v5.close();
                        } else {
                            try {
                                v5.close();
                            } catch (Throwable v10_2) {
                                0.addSuppressed(v10_2);
                            }
                        }
                    }
                }
                if (v7_1 != null) {
                    if (0 == 0) {
                        v7_1.close();
                    } else {
                        try {
                            v7_1.close();
                        } catch (Throwable v10_1) {
                            0.addSuppressed(v10_1);
                        }
                    }
                }
                return;
            } else {
                try {
                    v2_0 = com.facebook.soloader.UnpackingSoSource$DsoManifest.read(v7_1);
                    v3 = v2_0;
                } catch (Exception v1) {
                    android.util.Log.i("fb-UnpackingSoSource", "error reading existing DSO manifest", v1);
                }
            }
        } catch (Throwable v11_2) {
            v12_2 = 0;
        } catch (Throwable v11_1) {
        }
    }

Method com.facebook.soloader.UnpackingSoSource.refreshLocked() calling method java.io.RandomAccessFile.<init>()


    private boolean refreshLocked(com.facebook.soloader.FileLocker p24, int p25, byte[] p26)
    {
        java.io.File v7_1 = new java.io.File(this.soDirectory, "dso_state");
        java.io.RandomAccessFile v15_1 = new java.io.RandomAccessFile(v7_1, "rw");
        Thread v5_6 = 0;
        try {
            int v14 = v15_1.readByte();
        } catch (int v3_9) {
            if (v15_1 != null) {
                if (v5_6 == null) {
                    v15_1.close();
                } else {
                    try {
                        v15_1.close();
                    } catch (Throwable v17_6) {
                        v5_6.addSuppressed(v17_6);
                    }
                }
            }
            throw v3_9;
        } catch (java.io.EOFException v11) {
            v14 = 0;
            if (v15_1 != null) {
                if (0 == 0) {
                    v15_1.close();
                } else {
                    try {
                        v15_1.close();
                    } catch (Throwable v17_7) {
                        0.addSuppressed(v17_7);
                    }
                }
            }
            java.io.File v4_1 = new java.io.File(this.soDirectory, "dso_deps");
            com.facebook.soloader.UnpackingSoSource$DsoManifest v10 = 0;
            java.io.RandomAccessFile v9_1 = new java.io.RandomAccessFile(v4_1, "rw");
            try {
                byte[] v12 = new byte[((int) v9_1.length())];
            } catch (int v3_6) {
                try {
                    throw v3_6;
                } catch (Thread v5_5) {
                    Thread v5_3 = v3_6;
                    int v3_5 = v5_5;
                    if (v9_1 != null) {
                        if (v5_3 == null) {
                            v9_1.close();
                        } else {
                            try {
                                v9_1.close();
                            } catch (Throwable v17_4) {
                                v5_3.addSuppressed(v17_4);
                            }
                        }
                    }
                    throw v3_5;
                }
            }
            if (v9_1.read(v12) != v12.length) {
                android.util.Log.v("fb-UnpackingSoSource", "short read of so store deps file: marking unclean");
                v14 = 0;
            }
            if (!java.util.Arrays.equals(v12, p26)) {
                android.util.Log.v("fb-UnpackingSoSource", "deps mismatch on deps store: regenerating");
                v14 = 0;
            }
            if (v14 == 0) {
                android.util.Log.v("fb-UnpackingSoSource", "so store dirty: regenerating");
                com.facebook.soloader.UnpackingSoSource.writeState(v7_1, 0);
                com.facebook.soloader.UnpackingSoSource$Unpacker v16 = this.makeUnpacker();
                try {
                    v10 = v16.getDsoManifest();
                    com.facebook.soloader.UnpackingSoSource$InputDsoIterator v13 = v16.openDsoIterator();
                    Thread v5_0 = 0;
                    try {
                        this.regenerate(v14, v10, v13);
                    } catch (Thread v5_0) {
                        throw v5_0;
                    } catch (int v3_0) {
                        if (v13 != null) {
                            if (v5_0 == null) {
                                v13.close();
                            } else {
                                v13.close();
                            }
                        }
                        throw v3_0;
                    }
                    if (v13 != null) {
                        if (0 == 0) {
                            v13.close();
                        } else {
                            try {
                                v13.close();
                            } catch (Throwable v17_1) {
                                0.addSuppressed(v17_1);
                            }
                        }
                    }
                    if (v16 != null) {
                        if (0 == 0) {
                            v16.close();
                        } else {
                            try {
                                v16.close();
                            } catch (Throwable v17_3) {
                                0.addSuppressed(v17_3);
                            }
                        }
                    }
                } catch (int v3_3) {
                    Thread v5_2 = 0;
                    if (v16 != null) {
                        if (v5_2 == null) {
                            v16.close();
                        } else {
                            v16.close();
                        }
                    }
                    throw v3_3;
                } catch (int v3_2) {
                    try {
                        throw v3_2;
                    } catch (Thread v5_1) {
                        v5_2 = v3_2;
                        v3_3 = v5_1;
                    }
                }
            }
            if (v9_1 != null) {
                if (0 == 0) {
                    v9_1.close();
                } else {
                    try {
                        v9_1.close();
                    } catch (Throwable v17_5) {
                        0.addSuppressed(v17_5);
                    }
                }
            }
            int v3_12;
            if (v10 != null) {
                com.facebook.soloader.UnpackingSoSource$1 v2_1 = new com.facebook.soloader.UnpackingSoSource$1(this, v4_1, p26, v10, v7_1, p24);
                if ((p25 & 1) == 0) {
                    v2_1.run();
                } else {
                    new Thread(v2_1, new StringBuilder().append("SoSync:").append(this.soDirectory.getName()).toString()).start();
                }
                v3_12 = 1;
            } else {
                v3_12 = 0;
            }
            return v3_12;
        } catch (int v3_4) {
            try {
                throw v3_4;
            } catch (Thread v5_4) {
                v5_6 = v3_4;
                v3_9 = v5_4;
            }
        }
        if (v14 == 1) {
        } else {
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("dso store ").append(this.soDirectory).append(" regeneration interrupted: wiping clean").toString());
            v14 = 0;
        }
    }

Method com.facebook.soloader.UnpackingSoSource.extractDso() calling method java.io.RandomAccessFile.<init>()


    private void extractDso(com.facebook.soloader.UnpackingSoSource$InputDso p10, byte[] p11)
    {
        android.util.Log.i("fb-UnpackingSoSource", new StringBuilder().append("extracting DSO ").append(p10.dso.name).toString());
        java.io.File v2_1 = new java.io.File(this.soDirectory, p10.dso.name);
        try {
            java.io.RandomAccessFile v1_1 = new java.io.RandomAccessFile(v2_1, "rw");
            try {
                int v4 = p10.content.available();
            } catch (java.io.IOException v5_11) {
                v1_1.close();
                throw v5_11;
            }
            if (v4 > 1) {
                com.facebook.soloader.SysUtil.fallocateIfSupported(v1_1.getFD(), ((long) v4));
            }
            com.facebook.soloader.SysUtil.copyBytes(v1_1, p10.content, 2147483647, p11);
            v1_1.setLength(v1_1.getFilePointer());
            if (v2_1.setExecutable(1, 0)) {
                v1_1.close();
                return;
            } else {
                throw new java.io.IOException(new StringBuilder().append("cannot make file executable: ").append(v2_1).toString());
            }
        } catch (java.io.IOException v3) {
            android.util.Log.w("fb-UnpackingSoSource", new StringBuilder().append("error overwriting ").append(v2_1).append(" trying to delete and start over").toString(), v3);
            v2_1.delete();
            v1_1 = new java.io.RandomAccessFile(v2_1, "rw");
        }
    }

Method com.facebook.react.cxxbridge.UnpackingJSBundleLoader.fsync() calling method java.io.RandomAccessFile.<init>()


    static void fsync(java.io.File p5)
    {
        java.io.RandomAccessFile v0_1 = new java.io.RandomAccessFile(p5, "r");
        Throwable v3_1 = 0;
        try {
            v0_1.getFD().sync();
        } catch (Throwable v2_1) {
            if (v0_1 != null) {
                if (v3_1 == null) {
                    v0_1.close();
                } else {
                    try {
                        v0_1.close();
                    } catch (Throwable v1_0) {
                        v3_1.addSuppressed(v1_0);
                    }
                }
            }
            throw v2_1;
        } catch (Throwable v2_3) {
            try {
                throw v2_3;
            } catch (Throwable v3_0) {
                v3_1 = v2_3;
                v2_1 = v3_0;
            }
        }
        if (v0_1 != null) {
            if (0 == 0) {
                v0_1.close();
            } else {
                try {
                    v0_1.close();
                } catch (Throwable v1_1) {
                    0.addSuppressed(v1_1);
                }
            }
        }
        return;
    }

Method io.fabric.sdk.android.services.common.QueueFile.open() calling method java.io.RandomAccessFile.<init>()


    private static java.io.RandomAccessFile open(java.io.File p2)
    {
        return new java.io.RandomAccessFile(p2, "rwd");
    }

Method com.google.android.gms.measurement.internal.zzx.zzbtx() calling method java.io.RandomAccessFile.<init>()


    boolean zzbtx()
    {
        this.zzwu();
        try {
            int v0_12;
            this.all = new java.io.RandomAccessFile(new java.io.File(this.getContext().getFilesDir(), this.akY.zzaab()), "rw").getChannel();
            this.alk = this.all.tryLock();
        } catch (int v0_14) {
            this.zzbsd().zzbsv().zzj("Failed to acquire storage lock", v0_14);
            v0_12 = 0;
            return v0_12;
        } catch (int v0_13) {
            this.zzbsd().zzbsv().zzj("Failed to access storage lock file", v0_13);
        }
        if (this.alk == null) {
            this.zzbsd().zzbsv().log("Storage concurrent data access panic");
        } else {
            this.zzbsd().zzbtc().log("Storage concurrent access okay");
            v0_12 = 1;
            return v0_12;
        }
    }

Method com.facebook.soloader.UnpackingSoSource$1.run() calling method java.io.RandomAccessFile.<init>()


    public void run()
    {
        com.facebook.soloader.FileLocker v6_0 = 0;
        try {
            android.util.Log.v("fb-UnpackingSoSource", "starting syncer worker");
            java.io.RandomAccessFile v0_1 = new java.io.RandomAccessFile(this.val$depsFileName, "rw");
            try {
                v0_1.write(this.val$deps);
                v0_1.setLength(v0_1.getFilePointer());
            } catch (Throwable v5_5) {
                if (v0_1 != null) {
                    if (v6_0 == null) {
                        v0_1.close();
                    } else {
                        v0_1.close();
                    }
                }
                throw v5_5;
            } catch (Throwable v5_4) {
                try {
                    throw v5_4;
                } catch (com.facebook.soloader.FileLocker v6_4) {
                    v6_0 = v5_4;
                    v5_5 = v6_4;
                }
            }
            if (v0_1 != null) {
                if (0 == 0) {
                    v0_1.close();
                } else {
                    try {
                        v0_1.close();
                    } catch (Throwable v4_1) {
                        0.addSuppressed(v4_1);
                    }
                }
            }
            java.io.RandomAccessFile v2_1 = new java.io.RandomAccessFile(new java.io.File(this.this$0.soDirectory, "dso_manifest"), "rw");
            try {
                this.val$manifest.write(v2_1);
            } catch (Throwable v5_12) {
                if (v2_1 != null) {
                    if (v6_0 == null) {
                        v2_1.close();
                    } else {
                        v2_1.close();
                    }
                }
                throw v5_12;
            } catch (Throwable v5_10) {
                try {
                    throw v5_10;
                } catch (com.facebook.soloader.FileLocker v6_5) {
                    v6_0 = v5_10;
                    v5_12 = v6_5;
                }
            }
            if (v2_1 != null) {
                if (0 == 0) {
                    v2_1.close();
                } else {
                    v2_1.close();
                }
            }
            com.facebook.soloader.SysUtil.fsyncRecursive(this.this$0.soDirectory);
            com.facebook.soloader.UnpackingSoSource.access$000(this.val$stateFileName, 1);
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("releasing dso store lock for ").append(this.this$0.soDirectory).append(" (from syncer thread)").toString());
            this.val$lock.close();
            return;
        } catch (Throwable v5_16) {
            android.util.Log.v("fb-UnpackingSoSource", new StringBuilder().append("releasing dso store lock for ").append(this.this$0.soDirectory).append(" (from syncer thread)").toString());
            this.val$lock.close();
            throw v5_16;
        } catch (java.io.IOException v1) {
            throw new RuntimeException(v1);
        }
    }

Method com.facebook.soloader.SysUtil.fsyncRecursive() calling method java.io.RandomAccessFile.<init>()


    static void fsyncRecursive(java.io.File p8)
    {
        if (!p8.isDirectory()) {
            if (!p8.getPath().endsWith("_lock")) {
                java.io.RandomAccessFile v0_0 = new java.io.RandomAccessFile(p8, "r");
                Throwable v5_0 = 0;
                try {
                    v0_0.getFD().sync();
                } catch (Throwable v4_4) {
                    if (v0_0 != null) {
                        if (v5_0 == null) {
                            v0_0.close();
                        } else {
                            try {
                                v0_0.close();
                            } catch (Throwable v3_0) {
                                v5_0.addSuppressed(v3_0);
                            }
                        }
                    }
                    throw v4_4;
                } catch (Throwable v4_3) {
                    try {
                        throw v4_3;
                    } catch (Throwable v5_1) {
                        v5_0 = v4_3;
                        v4_4 = v5_1;
                    }
                }
                if (v0_0 != null) {
                    if (0 == 0) {
                        v0_0.close();
                    } else {
                        try {
                            v0_0.close();
                        } catch (Throwable v3_1) {
                            0.addSuppressed(v3_1);
                        }
                    }
                }
            }
        } else {
            java.io.File[] v1 = p8.listFiles();
            if (v1 != null) {
                int v2 = 0;
                while (v2 < v1.length) {
                    com.facebook.soloader.SysUtil.fsyncRecursive(v1[v2]);
                    v2++;
                }
            } else {
                throw new java.io.IOException(new StringBuilder().append("cannot list directory ").append(p8).toString());
            }
        }
        return;
    }

Method android.support.v7.widget.ActivityChooserModel$PersistHistoryAsyncTask.doInBackground() calling method android.content.Context.openFileOutput()


    public varargs Void doInBackground(Object[] p19)
    {
        java.util.List v4_1 = ((java.util.List) p19[0]);
        String v5_1 = ((String) p19[1]);
        try {
            java.io.FileOutputStream v3 = android.support.v7.widget.ActivityChooserModel.access$200(this.this$0).openFileOutput(v5_1, 0);
            org.xmlpull.v1.XmlSerializer v12 = android.util.Xml.newSerializer();
            try {
                v12.setOutput(v3, 0);
                v12.startDocument("UTF-8", Boolean.valueOf(1));
                v12.startTag(0, "historical-records");
                int v11 = v4_1.size();
                int v6 = 0;
            } catch (IllegalArgumentException v7) {
                android.util.Log.e(android.support.v7.widget.ActivityChooserModel.access$300(), new StringBuilder().append("Error writing historical recrod file: ").append(android.support.v7.widget.ActivityChooserModel.access$400(this.this$0)).toString(), v7);
                android.support.v7.widget.ActivityChooserModel.access$502(this.this$0, 1);
                if (v3 == null) {
                    java.io.IOException v13_5 = 0;
                    return v13_5;
                } else {
                    try {
                        v3.close();
                    } catch (java.io.IOException v13) {
                    }
                }
            } catch (IllegalStateException v9) {
                android.util.Log.e(android.support.v7.widget.ActivityChooserModel.access$300(), new StringBuilder().append("Error writing historical recrod file: ").append(android.support.v7.widget.ActivityChooserModel.access$400(this.this$0)).toString(), v9);
                android.support.v7.widget.ActivityChooserModel.access$502(this.this$0, 1);
                if (v3 == null) {
                } else {
                    try {
                        v3.close();
                    } catch (java.io.IOException v13) {
                    }
                }
            } catch (java.io.IOException v8) {
                android.util.Log.e(android.support.v7.widget.ActivityChooserModel.access$300(), new StringBuilder().append("Error writing historical recrod file: ").append(android.support.v7.widget.ActivityChooserModel.access$400(this.this$0)).toString(), v8);
                android.support.v7.widget.ActivityChooserModel.access$502(this.this$0, 1);
                if (v3 == null) {
                } else {
                    try {
                        v3.close();
                    } catch (java.io.IOException v13) {
                    }
                }
            } catch (java.io.IOException v13_4) {
                android.support.v7.widget.ActivityChooserModel.access$502(this.this$0, 1);
                if (v3 != null) {
                    try {
                        v3.close();
                    } catch (int v14) {
                    }
                }
                throw v13_4;
            }
            while (v6 < v11) {
                android.support.v7.widget.ActivityChooserModel$HistoricalRecord v10_1 = ((android.support.v7.widget.ActivityChooserModel$HistoricalRecord) v4_1.remove(0));
                v12.startTag(0, "historical-record");
                v12.attribute(0, "activity", v10_1.activity.flattenToString());
                v12.attribute(0, "time", String.valueOf(v10_1.time));
                v12.attribute(0, "weight", String.valueOf(v10_1.weight));
                v12.endTag(0, "historical-record");
                v6++;
            }
            v12.endTag(0, "historical-records");
            v12.endDocument();
            android.support.v7.widget.ActivityChooserModel.access$502(this.this$0, 1);
            if (v3 == null) {
            } else {
                try {
                    v3.close();
                } catch (java.io.IOException v13) {
                }
            }
        } catch (java.io.FileNotFoundException v2) {
            android.util.Log.e(android.support.v7.widget.ActivityChooserModel.access$300(), new StringBuilder().append("Error writing historical recrod file: ").append(v5_1).toString(), v2);
            v13_5 = 0;
            return v13_5;
        }
    }