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.google.android.gms.common.data.BitmapTeleporter.zabz() calling method java.io.FileOutputStream.<init>()


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

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


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

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


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

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)) {
                    String v1_2 = new StringBuilder();
                    v1_2.append("Couldn\'t rename file ");
                    v1_2.append(this.mBaseName);
                    v1_2.append(" to backup file ");
                    v1_2.append(this.mBackupName);
                    android.util.Log.w("AtomicFile", v1_2.toString());
                }
            }
        }
        try {
            java.io.FileOutputStream v0_6 = new java.io.FileOutputStream(this.mBaseName);
        } catch (java.io.FileOutputStream v0) {
            if (!this.mBaseName.getParentFile().mkdirs()) {
                java.io.IOException v3_1 = new StringBuilder();
                v3_1.append("Couldn\'t create directory ");
                v3_1.append(this.mBaseName);
                throw new java.io.IOException(v3_1.toString());
            } else {
                try {
                    v0_6 = new java.io.FileOutputStream(this.mBaseName);
                } catch (java.io.FileNotFoundException v2) {
                    String v4_3 = new StringBuilder();
                    v4_3.append("Couldn\'t create ");
                    v4_3.append(this.mBaseName);
                    throw new java.io.IOException(v4_3.toString());
                }
            }
        }
        return v0_6;
    }

Method android.support.v4.print.PrintHelper$1.doInBackground() calling method java.io.FileOutputStream.<init>()


    protected varargs Throwable doInBackground(Void[] p9)
    {
        try {
            if (!this.val$cancellationSignal.isCanceled()) {
                android.print.pdf.PrintedPdfDocument v0_4 = new android.print.pdf.PrintedPdfDocument(this.this$0.mContext, this.val$pdfAttributes);
                android.graphics.Bitmap v2_1 = android.support.v4.print.PrintHelper.convertBitmapForColorMode(this.val$bitmap, this.val$pdfAttributes.getColorMode());
                if (!this.val$cancellationSignal.isCanceled()) {
                    try {
                        java.io.IOException v3_6;
                        android.graphics.pdf.PdfDocument$Page v4 = v0_4.startPage(1);
                    } catch (Throwable v1_1) {
                        v0_4.close();
                        if (this.val$fileDescriptor != null) {
                            try {
                                this.val$fileDescriptor.close();
                            } catch (java.io.IOException v3) {
                            }
                        }
                        if (v2_1 != this.val$bitmap) {
                            v2_1.recycle();
                        }
                        throw v1_1;
                    }
                    if (!android.support.v4.print.PrintHelper.IS_MIN_MARGINS_HANDLING_CORRECT) {
                        android.graphics.Matrix v5_2 = new android.print.pdf.PrintedPdfDocument(this.this$0.mContext, this.val$attributes);
                        java.io.IOException v3_5 = v5_2.startPage(1);
                        java.io.IOException v6_6 = new android.graphics.RectF(v3_5.getInfo().getContentRect());
                        v5_2.finishPage(v3_5);
                        v5_2.close();
                        v3_6 = v6_6;
                    } else {
                        v3_6 = new android.graphics.RectF(v4.getInfo().getContentRect());
                    }
                    android.graphics.Matrix v5_6 = android.support.v4.print.PrintHelper.getMatrix(v2_1.getWidth(), v2_1.getHeight(), v3_6, this.val$fittingMode);
                    if (!android.support.v4.print.PrintHelper.IS_MIN_MARGINS_HANDLING_CORRECT) {
                        v5_6.postTranslate(v3_6.left, v3_6.top);
                        v4.getCanvas().clipRect(v3_6);
                    } else {
                    }
                    v4.getCanvas().drawBitmap(v2_1, v5_6, 0);
                    v0_4.finishPage(v4);
                    if (!this.val$cancellationSignal.isCanceled()) {
                        v0_4.writeTo(new java.io.FileOutputStream(this.val$fileDescriptor.getFileDescriptor()));
                        v0_4.close();
                        if (this.val$fileDescriptor != null) {
                            try {
                                this.val$fileDescriptor.close();
                            } catch (java.io.IOException v6) {
                            }
                        }
                        if (v2_1 != this.val$bitmap) {
                            v2_1.recycle();
                        }
                        return 0;
                    } else {
                        v0_4.close();
                        if (this.val$fileDescriptor != null) {
                            try {
                                this.val$fileDescriptor.close();
                            } catch (java.io.IOException v6) {
                            }
                        }
                        if (v2_1 != this.val$bitmap) {
                            v2_1.recycle();
                        }
                        return 0;
                    }
                } else {
                    return 0;
                }
            } else {
                return 0;
            }
        } catch (android.print.pdf.PrintedPdfDocument v0_1) {
            return v0_1;
        }
    }

Method android.support.v4.graphics.TypefaceCompatUtil.copyToFile() calling method java.io.FileOutputStream.<init>()


    public static boolean copyToFile(java.io.File p7, java.io.InputStream p8)
    {
        android.os.StrictMode$ThreadPolicy v1 = android.os.StrictMode.allowThreadDiskWrites();
        try {
            java.io.FileOutputStream v0 = new java.io.FileOutputStream(p7, 0);
            java.io.IOException v3_4 = new byte[1024];
        } catch (int v2_1) {
            android.support.v4.graphics.TypefaceCompatUtil.closeQuietly(v0);
            android.os.StrictMode.setThreadPolicy(v1);
            throw v2_1;
        } catch (java.io.IOException v3_0) {
            String v5_2 = new StringBuilder();
            v5_2.append("Error copying resource contents to temp file: ");
            v5_2.append(v3_0.getMessage());
            android.util.Log.e("TypefaceCompatUtil", v5_2.toString());
            android.support.v4.graphics.TypefaceCompatUtil.closeQuietly(v0);
            android.os.StrictMode.setThreadPolicy(v1);
            return 0;
        }
        while(true) {
            String v4_0 = p8.read(v3_4);
            if (v4_0 == -1) {
                break;
            }
            v0.write(v3_4, 0, v4_0);
        }
        android.support.v4.graphics.TypefaceCompatUtil.closeQuietly(v0);
        android.os.StrictMode.setThreadPolicy(v1);
        return 1;
    }

Method android.support.media.ExifInterface.saveAttributes() calling method java.io.FileOutputStream.<init>()


    public void saveAttributes()
    {
        if ((!this.mIsSupportedFile) || (this.mMimeType != 4)) {
            throw new java.io.IOException("ExifInterface only supports saving attributes on JPEG formats.");
        } else {
            if (this.mFilename == null) {
                throw new java.io.IOException("ExifInterface does not support saving attributes for the current input.");
            } else {
                this.mThumbnailBytes = this.getThumbnail();
                String v1_2 = new StringBuilder();
                v1_2.append(this.mFilename);
                v1_2.append(".tmp");
                java.io.IOException v0_6 = new java.io.File(v1_2.toString());
                if (!new java.io.File(this.mFilename).renameTo(v0_6)) {
                    java.io.FileOutputStream v3_1 = new StringBuilder();
                    v3_1.append("Could not rename to ");
                    v3_1.append(v0_6.getAbsolutePath());
                    throw new java.io.IOException(v3_1.toString());
                } else {
                    java.io.FileOutputStream v3 = 0;
                    try {
                        java.io.FileInputStream v2_6 = new java.io.FileInputStream(v0_6);
                        java.io.FileOutputStream v3_3 = new java.io.FileOutputStream(this.mFilename);
                        this.saveJpegAttributes(v2_6, v3_3);
                        android.support.media.ExifInterface.closeQuietly(v2_6);
                        android.support.media.ExifInterface.closeQuietly(v3_3);
                        v0_6.delete();
                        this.mThumbnailBytes = 0;
                        return;
                    } catch (Throwable v4_7) {
                        android.support.media.ExifInterface.closeQuietly(v2_6);
                        android.support.media.ExifInterface.closeQuietly(v3_3);
                        v0_6.delete();
                        throw v4_7;
                    }
                }
            }
        }
    }

Method com.example.diegosantiago.turbo.Preferencias.MediaUtils.getFileFromBitmap() calling method java.io.FileOutputStream.<init>()


    private String getFileFromBitmap(android.content.Context p7, android.graphics.Bitmap p8)
    {
        String v0_1 = new StringBuilder();
        v0_1.append(android.os.Environment.getExternalStorageDirectory());
        v0_1.append(java.io.File.separator);
        v0_1.append(p7.getString(2131689512));
        v0_1.append(java.io.File.separator);
        String v0_2 = v0_1.toString();
        java.io.File v1_2 = new java.io.File(v0_2);
        if (!v1_2.exists()) {
            v1_2.mkdir();
        }
        String v3_1 = new StringBuilder();
        v3_1.append(System.currentTimeMillis());
        v3_1.append(".jpg");
        java.io.File v2_2 = new java.io.File(v0_2, v3_1.toString());
        try {
            String v3_4 = new java.io.FileOutputStream(v2_2);
            p8.compress(android.graphics.Bitmap$CompressFormat.JPEG, 100, v3_4);
            v3_4.flush();
            v3_4.close();
        } catch (String v3_5) {
            android.util.Log.e(this.TAG, "Error writing bitmap", v3_5);
        }
        return v2_2.getPath();
    }

Method android.support.v4.graphics.drawable.IconCompat.loadDrawableInner() calling method java.io.FileInputStream.<init>()


    private android.graphics.drawable.Drawable loadDrawableInner(android.content.Context p9)
    {
        switch (this.mType) {
            case 1:
                return new android.graphics.drawable.BitmapDrawable(p9.getResources(), ((android.graphics.Bitmap) this.mObj1));
            case 2:
                String v0_11 = this.getResPackage();
                if (android.text.TextUtils.isEmpty(v0_11)) {
                    v0_11 = p9.getPackageName();
                }
                try {
                    String v1_7 = android.support.v4.content.res.ResourcesCompat.getDrawable(android.support.v4.graphics.drawable.IconCompat.getResources(p9, v0_11), this.mInt1, p9.getTheme());
                    return v1_7;
                } catch (android.graphics.drawable.BitmapDrawable v3_16) {
                    String v6_3 = new Object[2];
                    v6_3[v1_7] = Integer.valueOf(this.mInt1);
                    v6_3[1] = this.mObj1;
                    android.util.Log.e("IconCompat", String.format("Unable to load resource 0x%08x from pkg=%s", v6_3), v3_16);
                }
            case 3:
                return new android.graphics.drawable.BitmapDrawable(p9.getResources(), android.graphics.BitmapFactory.decodeByteArray(((byte[]) this.mObj1), this.mInt1, this.mInt2));
            case 4:
                java.io.FileInputStream v2_2;
                String v0_7 = android.net.Uri.parse(((String) this.mObj1));
                String v1_4 = v0_7.getScheme();
                if ((!"content".equals(v1_4)) && (!"file".equals(v1_4))) {
                    try {
                        v2_2 = new java.io.FileInputStream(new java.io.File(((String) this.mObj1)));
                    } catch (android.graphics.drawable.BitmapDrawable v3_6) {
                        android.graphics.Bitmap v5_3 = new StringBuilder();
                        v5_3.append("Unable to load image from path: ");
                        v5_3.append(v0_7);
                        android.util.Log.w("IconCompat", v5_3.toString(), v3_6);
                    }
                } else {
                    try {
                        v2_2 = p9.getContentResolver().openInputStream(v0_7);
                    } catch (android.graphics.drawable.BitmapDrawable v3_9) {
                        android.graphics.Bitmap v5_6 = new StringBuilder();
                        v5_6.append("Unable to load image from URI: ");
                        v5_6.append(v0_7);
                        android.util.Log.w("IconCompat", v5_6.toString(), v3_9);
                    }
                }
                if (v2_2 == null) {
                } else {
                    return new android.graphics.drawable.BitmapDrawable(p9.getResources(), android.graphics.BitmapFactory.decodeStream(v2_2));
                }
            case 5:
                return new android.graphics.drawable.BitmapDrawable(p9.getResources(), android.support.v4.graphics.drawable.IconCompat.createLegacyIconFromAdaptiveIcon(((android.graphics.Bitmap) this.mObj1), 0));
            default:
        }
        return 0;
    }

Method android.support.v4.graphics.TypefaceCompatApi21Impl.createFromFontInfo() calling method java.io.FileInputStream.<init>()


    public android.graphics.Typeface createFromFontInfo(android.content.Context p11, android.os.CancellationSignal p12, android.support.v4.provider.FontsContractCompat$FontInfo[] p13, int p14)
    {
        if (p13.length >= 1) {
            android.support.v4.provider.FontsContractCompat$FontInfo v0_1 = this.findBestInfo(p13, p14);
            android.content.ContentResolver v2_1 = p11.getContentResolver();
            try {
                java.io.IOException v3_1 = v2_1.openFileDescriptor(v0_1.getUri(), "r", p12);
                try {
                    Throwable v4_1 = this.getFile(v3_1);
                } catch (Throwable v4_3) {
                    Throwable v5_5 = 0;
                    if (v3_1 != null) {
                        if (v5_5 == null) {
                            v3_1.close();
                        } else {
                            try {
                                v3_1.close();
                            } catch (Throwable v6_4) {
                                v5_5.addSuppressed(v6_4);
                            }
                        }
                    }
                    throw v4_3;
                } catch (Throwable v4_2) {
                    try {
                        throw v4_2;
                    } catch (Throwable v5_4) {
                        v5_5 = v4_2;
                        v4_3 = v5_4;
                    }
                }
                if (v4_1 != null) {
                    if (v4_1.canRead()) {
                        Throwable v5_1 = android.graphics.Typeface.createFromFile(v4_1);
                        if (v3_1 != null) {
                            v3_1.close();
                        }
                        return v5_1;
                    } else {
                    }
                }
                Throwable v5_3 = new java.io.FileInputStream(v3_1.getFileDescriptor());
                try {
                    Throwable v6_1 = super.createFromInputStream(p11, v5_3);
                } catch (Throwable v6_3) {
                    Throwable v7_1 = 0;
                    if (v7_1 == null) {
                        v5_3.close();
                    } else {
                        try {
                            v5_3.close();
                        } catch (Throwable v8) {
                            v7_1.addSuppressed(v8);
                        }
                    }
                    throw v6_3;
                } catch (Throwable v6_2) {
                    try {
                        throw v6_2;
                    } catch (Throwable v7_0) {
                        v7_1 = v6_2;
                        v6_3 = v7_0;
                    }
                }
                v5_3.close();
                if (v3_1 != null) {
                    v3_1.close();
                }
                return v6_1;
            } catch (java.io.IOException v3) {
                return 0;
            }
        } else {
            return 0;
        }
    }

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


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

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 android.support.v4.graphics.TypefaceCompatUtil.mmap() calling method java.io.FileInputStream.<init>()


    private static java.nio.ByteBuffer mmap(java.io.File p9)
    {
        try {
            java.io.IOException v1_1 = new java.io.FileInputStream(p9);
            try {
                Throwable v2_2 = v1_1.getChannel();
                Throwable v3_0 = v2_2.map(java.nio.channels.FileChannel$MapMode.READ_ONLY, 0, v2_2.size());
            } catch (Throwable v2_1) {
                Throwable v3_2 = 0;
                if (v3_2 == null) {
                    v1_1.close();
                } else {
                    try {
                        v1_1.close();
                    } catch (Throwable v4_0) {
                        v3_2.addSuppressed(v4_0);
                    }
                }
                throw v2_1;
            } catch (Throwable v2_0) {
                try {
                    throw v2_0;
                } catch (Throwable v3_1) {
                    v3_2 = v2_0;
                    v2_1 = v3_1;
                }
            }
            v1_1.close();
            return v3_0;
        } catch (java.io.IOException v1) {
            return 0;
        }
    }

Method android.support.v4.graphics.TypefaceCompatUtil.mmap() calling method java.io.FileInputStream.<init>()


    public static java.nio.ByteBuffer mmap(android.content.Context p11, android.os.CancellationSignal p12, android.net.Uri p13)
    {
        try {
            java.io.IOException v2_1 = p11.getContentResolver().openFileDescriptor(p13, "r", p12);
        } catch (java.io.IOException v2) {
            return 0;
        }
        if (v2_1 != null) {
            try {
                Throwable v3_0 = new java.io.FileInputStream(v2_1.getFileDescriptor());
                try {
                    Throwable v4_0 = v3_0.getChannel();
                    Throwable v5_1 = v4_0.map(java.nio.channels.FileChannel$MapMode.READ_ONLY, 0, v4_0.size());
                } catch (Throwable v4_2) {
                    Throwable v5_3 = 0;
                    if (v5_3 == null) {
                        v3_0.close();
                    } else {
                        try {
                            v3_0.close();
                        } catch (Throwable v6_1) {
                            v5_3.addSuppressed(v6_1);
                        }
                    }
                    throw v4_2;
                } catch (Throwable v4_1) {
                    try {
                        throw v4_1;
                    } catch (Throwable v5_2) {
                        v5_3 = v4_1;
                        v4_2 = v5_2;
                    }
                }
                v3_0.close();
                if (v2_1 != null) {
                    v2_1.close();
                }
                return v5_1;
            } catch (Throwable v3_2) {
                Throwable v4_4 = 0;
                if (v2_1 != null) {
                    if (v4_4 == null) {
                        v2_1.close();
                    } else {
                        try {
                            v2_1.close();
                        } catch (Throwable v5_4) {
                            v4_4.addSuppressed(v5_4);
                        }
                    }
                }
                throw v3_2;
            } catch (Throwable v3_1) {
                try {
                    throw v3_1;
                } catch (Throwable v4_3) {
                    v4_4 = v3_1;
                    v3_2 = v4_3;
                }
            }
        } else {
            if (v2_1 != null) {
                v2_1.close();
            }
            return 0;
        }
    }

Method android.support.media.ExifInterface.saveAttributes() calling method java.io.FileInputStream.<init>()


    public void saveAttributes()
    {
        if ((!this.mIsSupportedFile) || (this.mMimeType != 4)) {
            throw new java.io.IOException("ExifInterface only supports saving attributes on JPEG formats.");
        } else {
            if (this.mFilename == null) {
                throw new java.io.IOException("ExifInterface does not support saving attributes for the current input.");
            } else {
                this.mThumbnailBytes = this.getThumbnail();
                String v1_2 = new StringBuilder();
                v1_2.append(this.mFilename);
                v1_2.append(".tmp");
                java.io.IOException v0_6 = new java.io.File(v1_2.toString());
                if (!new java.io.File(this.mFilename).renameTo(v0_6)) {
                    java.io.FileOutputStream v3_1 = new StringBuilder();
                    v3_1.append("Could not rename to ");
                    v3_1.append(v0_6.getAbsolutePath());
                    throw new java.io.IOException(v3_1.toString());
                } else {
                    java.io.FileOutputStream v3 = 0;
                    try {
                        java.io.FileInputStream v2_6 = new java.io.FileInputStream(v0_6);
                        java.io.FileOutputStream v3_3 = new java.io.FileOutputStream(this.mFilename);
                        this.saveJpegAttributes(v2_6, v3_3);
                        android.support.media.ExifInterface.closeQuietly(v2_6);
                        android.support.media.ExifInterface.closeQuietly(v3_3);
                        v0_6.delete();
                        this.mThumbnailBytes = 0;
                        return;
                    } catch (Throwable v4_7) {
                        android.support.media.ExifInterface.closeQuietly(v2_6);
                        android.support.media.ExifInterface.closeQuietly(v3_3);
                        v0_6.delete();
                        throw v4_7;
                    }
                }
            }
        }
    }

Method android.support.media.ExifInterface.getThumbnailBytes() calling method java.io.FileInputStream.<init>()


    public byte[] getThumbnailBytes()
    {
        if (this.mHasThumbnail) {
            java.io.FileInputStream v0_2 = this.mThumbnailBytes;
            if (v0_2 == null) {
                java.io.FileInputStream v0_1 = 0;
                try {
                    if (this.mAssetInputStream == null) {
                        if (this.mFilename != null) {
                            v0_1 = new java.io.FileInputStream(this.mFilename);
                        }
                    } else {
                        v0_1 = this.mAssetInputStream;
                        if (!v0_1.markSupported()) {
                            android.util.Log.d("ExifInterface", "Cannot read thumbnail from inputstream without mark/reset support");
                            android.support.media.ExifInterface.closeQuietly(v0_1);
                            return 0;
                        } else {
                            v0_1.reset();
                        }
                    }
                } catch (Throwable v1_1) {
                    android.support.media.ExifInterface.closeQuietly(v0_1);
                    throw v1_1;
                } catch (java.io.IOException v2_14) {
                    android.util.Log.d("ExifInterface", "Encountered exception while getting thumbnail", v2_14);
                    android.support.media.ExifInterface.closeQuietly(v0_1);
                    return 0;
                }
                if (v0_1 == null) {
                    throw new java.io.FileNotFoundException();
                } else {
                    if (v0_1.skip(((long) this.mThumbnailOffset)) != ((long) this.mThumbnailOffset)) {
                        throw new java.io.IOException("Corrupted image");
                    } else {
                        java.io.IOException v2_13 = new byte[this.mThumbnailLength];
                        if (v0_1.read(v2_13) != this.mThumbnailLength) {
                            throw new java.io.IOException("Corrupted image");
                        } else {
                            this.mThumbnailBytes = v2_13;
                            android.support.media.ExifInterface.closeQuietly(v0_1);
                            return v2_13;
                        }
                    }
                }
            } else {
                return v0_2;
            }
        } else {
            return 0;
        }
    }

Method android.support.media.ExifInterface.<init>() calling method java.io.FileInputStream.<init>()


    public ExifInterface(String p3)
    {
        java.io.FileInputStream v0_4 = new java.util.HashMap[android.support.media.ExifInterface.EXIF_TAGS.length];
        this.mAttributes = v0_4;
        this.mExifByteOrder = java.nio.ByteOrder.BIG_ENDIAN;
        if (p3 == null) {
            throw new IllegalArgumentException("filename cannot be null");
        } else {
            this.mAssetInputStream = 0;
            this.mFilename = p3;
            try {
                java.io.FileInputStream v0_2 = new java.io.FileInputStream(p3);
                this.loadAttributes(v0_2);
                android.support.media.ExifInterface.closeQuietly(v0_2);
                return;
            } catch (Throwable v1_3) {
                android.support.media.ExifInterface.closeQuietly(v0_2);
                throw v1_3;
            }
        }
    }

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


    private static java.io.BufferedReader zzj(String p3)
    {
        android.os.StrictMode$ThreadPolicy v0 = android.os.StrictMode.allowThreadDiskReads();
        try {
            java.io.BufferedReader v1_1 = new java.io.BufferedReader(new java.io.FileReader(p3));
            android.os.StrictMode.setThreadPolicy(v0);
            return v1_1;
        } catch (Throwable v3_1) {
            android.os.StrictMode.setThreadPolicy(v0);
            throw v3_1;
        }
    }

Method android.support.v4.graphics.drawable.IconCompat.loadDrawableInner() calling method java.io.File.<init>()


    private android.graphics.drawable.Drawable loadDrawableInner(android.content.Context p9)
    {
        switch (this.mType) {
            case 1:
                return new android.graphics.drawable.BitmapDrawable(p9.getResources(), ((android.graphics.Bitmap) this.mObj1));
            case 2:
                String v0_11 = this.getResPackage();
                if (android.text.TextUtils.isEmpty(v0_11)) {
                    v0_11 = p9.getPackageName();
                }
                try {
                    String v1_7 = android.support.v4.content.res.ResourcesCompat.getDrawable(android.support.v4.graphics.drawable.IconCompat.getResources(p9, v0_11), this.mInt1, p9.getTheme());
                    return v1_7;
                } catch (android.graphics.drawable.BitmapDrawable v3_16) {
                    String v6_3 = new Object[2];
                    v6_3[v1_7] = Integer.valueOf(this.mInt1);
                    v6_3[1] = this.mObj1;
                    android.util.Log.e("IconCompat", String.format("Unable to load resource 0x%08x from pkg=%s", v6_3), v3_16);
                }
            case 3:
                return new android.graphics.drawable.BitmapDrawable(p9.getResources(), android.graphics.BitmapFactory.decodeByteArray(((byte[]) this.mObj1), this.mInt1, this.mInt2));
            case 4:
                java.io.FileInputStream v2_2;
                String v0_7 = android.net.Uri.parse(((String) this.mObj1));
                String v1_4 = v0_7.getScheme();
                if ((!"content".equals(v1_4)) && (!"file".equals(v1_4))) {
                    try {
                        v2_2 = new java.io.FileInputStream(new java.io.File(((String) this.mObj1)));
                    } catch (android.graphics.drawable.BitmapDrawable v3_6) {
                        android.graphics.Bitmap v5_3 = new StringBuilder();
                        v5_3.append("Unable to load image from path: ");
                        v5_3.append(v0_7);
                        android.util.Log.w("IconCompat", v5_3.toString(), v3_6);
                    }
                } else {
                    try {
                        v2_2 = p9.getContentResolver().openInputStream(v0_7);
                    } catch (android.graphics.drawable.BitmapDrawable v3_9) {
                        android.graphics.Bitmap v5_6 = new StringBuilder();
                        v5_6.append("Unable to load image from URI: ");
                        v5_6.append(v0_7);
                        android.util.Log.w("IconCompat", v5_6.toString(), v3_9);
                    }
                }
                if (v2_2 == null) {
                } else {
                    return new android.graphics.drawable.BitmapDrawable(p9.getResources(), android.graphics.BitmapFactory.decodeStream(v2_2));
                }
            case 5:
                return new android.graphics.drawable.BitmapDrawable(p9.getResources(), android.support.v4.graphics.drawable.IconCompat.createLegacyIconFromAdaptiveIcon(((android.graphics.Bitmap) this.mObj1), 0));
            default:
        }
        return 0;
    }

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


    public boolean renameTo(String p3)
    {
        java.io.File v0_1 = new java.io.File(this.mFile.getParentFile(), p3);
        if (!this.mFile.renameTo(v0_1)) {
            return 0;
        } else {
            this.mFile = v0_1;
            return 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 v0_1 = android.webkit.MimeTypeMap.getSingleton().getExtensionFromMimeType(p7);
        if (v0_1 != null) {
            java.io.File v1_3 = new StringBuilder();
            v1_3.append(p8);
            v1_3.append(".");
            v1_3.append(v0_1);
            p8 = v1_3.toString();
        }
        java.io.File v1_1 = new java.io.File(this.mFile, p8);
        try {
            v1_1.createNewFile();
            return new android.support.v4.provider.RawDocumentFile(this, v1_1);
        } catch (java.io.IOException v2_3) {
            String v4_1 = new StringBuilder();
            v4_1.append("Failed to createFile: ");
            v4_1.append(v2_3);
            android.util.Log.w("DocumentFile", v4_1.toString());
            return 0;
        }
    }

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


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

Method android.support.v4.graphics.TypefaceCompatApi21Impl.getFile() calling method java.io.File.<init>()


    private java.io.File getFile(android.os.ParcelFileDescriptor p4)
    {
        try {
            android.system.ErrnoException v1_2 = new StringBuilder();
            v1_2.append("/proc/self/fd/");
            v1_2.append(p4.getFd());
            android.system.ErrnoException v1_1 = android.system.Os.readlink(v1_2.toString());
        } catch (android.system.ErrnoException v1) {
            return 0;
        }
        if (!android.system.OsConstants.S_ISREG(android.system.Os.stat(v1_1).st_mode)) {
            return 0;
        } else {
            return new java.io.File(v1_1);
        }
    }

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


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

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


    DiskLruCache(okhttp3.internal.io.FileSystem p7, java.io.File p8, int p9, int p10, long p11, java.util.concurrent.Executor p13)
    {
        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 = p7;
        this.directory = p8;
        this.appVersion = p9;
        this.journalFile = new java.io.File(p8, "journal");
        this.journalFileTmp = new java.io.File(p8, "journal.tmp");
        this.journalFileBackup = new java.io.File(p8, "journal.bkp");
        this.valueCount = p10;
        this.maxSize = p11;
        this.executor = p13;
        return;
    }

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


    DiskLruCache$Entry(okhttp3.internal.cache.DiskLruCache p8, String p9)
    {
        this.this$0 = p8;
        this.key = p9;
        StringBuilder v0_5 = new long[p8.valueCount];
        this.lengths = v0_5;
        StringBuilder v0_7 = new java.io.File[p8.valueCount];
        this.cleanFiles = v0_7;
        StringBuilder v0_0 = new java.io.File[p8.valueCount];
        this.dirtyFiles = v0_0;
        StringBuilder v0_3 = new StringBuilder(p9).append(46);
        int v1_1 = v0_3.length();
        int v2 = 0;
        while (v2 < p8.valueCount) {
            v0_3.append(v2);
            this.cleanFiles[v2] = new java.io.File(p8.directory, v0_3.toString());
            v0_3.append(".tmp");
            this.dirtyFiles[v2] = new java.io.File(p8.directory, v0_3.toString());
            v0_3.setLength(v1_1);
            v2++;
        }
        return;
    }

Method com.squareup.picasso.Utils.createDefaultCacheDir() calling method java.io.File.<init>()


    static java.io.File createDefaultCacheDir(android.content.Context p3)
    {
        java.io.File v0_1 = new java.io.File(p3.getApplicationContext().getCacheDir(), "picasso-cache");
        if (!v0_1.exists()) {
            v0_1.mkdirs();
        }
        return v0_1;
    }

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


    public static void publishWorldReadableSharedPreferences(android.content.Context p3, android.content.SharedPreferences$Editor p4, String p5)
    {
        java.io.File v0_1 = new java.io.File(p3.getApplicationInfo().dataDir, "shared_prefs");
        java.io.File v3_5 = v0_1.getParentFile();
        if (v3_5 != null) {
            v3_5.setExecutable(1, 0);
        }
        v0_1.setExecutable(1, 0);
        p4.commit();
        new java.io.File(v0_1, String.valueOf(p5).concat(".xml")).setReadable(1, 0);
        return;
    }

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


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

Method android.support.v4.graphics.TypefaceCompatUtil.getTempFile() calling method java.io.File.<init>()


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

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)
    {
        java.io.File v0 = p5;
        int v2 = 0;
        while (v2 < p6.length) {
            String v3 = p6[v2];
            if (v3 != null) {
                v0 = new java.io.File(v0, v3);
            }
            v2++;
        }
        return v0;
    }

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


    static FileProvider()
    {
        android.support.v4.content.FileProvider.COLUMNS = new String[] {"_display_name", "_size"});
        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 java.io.File getNoBackupFilesDir(android.content.Context p4)
    {
        if (android.os.Build$VERSION.SDK_INT < 21) {
            return android.support.v4.content.ContextCompat.createFilesDir(new java.io.File(p4.getApplicationInfo().dataDir, "no_backup"));
        } else {
            return p4.getNoBackupFilesDir();
        }
    }

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


    public static java.io.File getDataDir(android.content.Context p2)
    {
        if (android.os.Build$VERSION.SDK_INT < 24) {
            int v1_1;
            String v0_3 = p2.getApplicationInfo().dataDir;
            if (v0_3 == null) {
                v1_1 = 0;
            } else {
                v1_1 = new java.io.File(v0_3);
            }
            return v1_1;
        } else {
            return p2.getDataDir();
        }
    }

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


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

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)
    {
        java.io.File v0 = p5;
        int v2 = 0;
        while (v2 < p6.length) {
            String v3 = p6[v2];
            if (v0 != null) {
                if (v3 != null) {
                    v0 = new java.io.File(v0, v3);
                }
            } else {
                v0 = new java.io.File(v3);
            }
            v2++;
        }
        return v0;
    }

Method android.support.media.ExifInterface.saveAttributes() calling method java.io.File.<init>()


    public void saveAttributes()
    {
        if ((!this.mIsSupportedFile) || (this.mMimeType != 4)) {
            throw new java.io.IOException("ExifInterface only supports saving attributes on JPEG formats.");
        } else {
            if (this.mFilename == null) {
                throw new java.io.IOException("ExifInterface does not support saving attributes for the current input.");
            } else {
                this.mThumbnailBytes = this.getThumbnail();
                String v1_2 = new StringBuilder();
                v1_2.append(this.mFilename);
                v1_2.append(".tmp");
                java.io.IOException v0_6 = new java.io.File(v1_2.toString());
                if (!new java.io.File(this.mFilename).renameTo(v0_6)) {
                    java.io.FileOutputStream v3_1 = new StringBuilder();
                    v3_1.append("Could not rename to ");
                    v3_1.append(v0_6.getAbsolutePath());
                    throw new java.io.IOException(v3_1.toString());
                } else {
                    java.io.FileOutputStream v3 = 0;
                    try {
                        java.io.FileInputStream v2_6 = new java.io.FileInputStream(v0_6);
                        java.io.FileOutputStream v3_3 = new java.io.FileOutputStream(this.mFilename);
                        this.saveJpegAttributes(v2_6, v3_3);
                        android.support.media.ExifInterface.closeQuietly(v2_6);
                        android.support.media.ExifInterface.closeQuietly(v3_3);
                        v0_6.delete();
                        this.mThumbnailBytes = 0;
                        return;
                    } catch (Throwable v4_7) {
                        android.support.media.ExifInterface.closeQuietly(v2_6);
                        android.support.media.ExifInterface.closeQuietly(v3_3);
                        v0_6.delete();
                        throw v4_7;
                    }
                }
            }
        }
    }

Method com.example.diegosantiago.turbo.Tabs.CuentaPersonal.imgdata() calling method java.io.File.<init>()


    public void imgdata(String p4)
    {
        this.imagePath = p4;
        com.squareup.picasso.Picasso.get().load(new java.io.File(p4)).fit().centerCrop().error(2131623936).into(this.imageViewProfile, new com.example.diegosantiago.turbo.Tabs.CuentaPersonal$6(this));
        return;
    }

Method com.example.diegosantiago.turbo.Tabs.CuentaEmpresarial.imgdata() calling method java.io.File.<init>()


    public void imgdata(String p4)
    {
        this.imagePath = p4;
        com.squareup.picasso.Picasso.get().load(new java.io.File(p4)).fit().centerCrop().error(2131623936).into(this.imageViewProfile, new com.example.diegosantiago.turbo.Tabs.CuentaEmpresarial$4(this));
        return;
    }

Method com.example.diegosantiago.turbo.Preferencias.MediaUtils.getFileFromBitmap() calling method java.io.File.<init>()


    private String getFileFromBitmap(android.content.Context p7, android.graphics.Bitmap p8)
    {
        String v0_1 = new StringBuilder();
        v0_1.append(android.os.Environment.getExternalStorageDirectory());
        v0_1.append(java.io.File.separator);
        v0_1.append(p7.getString(2131689512));
        v0_1.append(java.io.File.separator);
        String v0_2 = v0_1.toString();
        java.io.File v1_2 = new java.io.File(v0_2);
        if (!v1_2.exists()) {
            v1_2.mkdir();
        }
        String v3_1 = new StringBuilder();
        v3_1.append(System.currentTimeMillis());
        v3_1.append(".jpg");
        java.io.File v2_2 = new java.io.File(v0_2, v3_1.toString());
        try {
            String v3_4 = new java.io.FileOutputStream(v2_2);
            p8.compress(android.graphics.Bitmap$CompressFormat.JPEG, 100, v3_4);
            v3_4.flush();
            v3_4.close();
        } catch (String v3_5) {
            android.util.Log.e(this.TAG, "Error writing bitmap", v3_5);
        }
        return v2_2.getPath();
    }

Method com.example.diegosantiago.turbo.Adaptadores.RVAdapterConversaciones$1.onError() calling method java.io.File.<init>()


    public void onError(Exception p5)
    {
        android.util.Log.e("tag_picture", "OnError");
        com.squareup.picasso.Picasso.get().load(new java.io.File(((com.example.diegosantiago.turbo.Entidades.Conversacion) com.example.diegosantiago.turbo.Adaptadores.RVAdapterConversaciones.access$000(this.this$0).get(this.val$i)).getOther().getPathToPicture())).fit().centerCrop().into(this.val$conversacionViewHolder.profile, new com.example.diegosantiago.turbo.Adaptadores.RVAdapterConversaciones$1$1(this));
        return;
    }

Method com.example.diegosantiago.turbo.Adaptadores.RVAdapterChat2Sides$3.onError() calling method java.io.File.<init>()


    public void onError(Exception p4)
    {
        android.util.Log.e("tag_picture", "OnError");
        com.squareup.picasso.Picasso.get().load(new java.io.File(com.example.diegosantiago.turbo.Adaptadores.RVAdapterChat2Sides.access$100(this.this$0))).fit().centerCrop().into(this.val$vh2.imageViewProfile, new com.example.diegosantiago.turbo.Adaptadores.RVAdapterChat2Sides$3$1(this));
        return;
    }

Method com.example.diegosantiago.turbo.Adaptadores.RVAdapterChat2Sides$2.onError() calling method java.io.File.<init>()


    public void onError(Exception p4)
    {
        android.util.Log.e("tag_picture", "OnError");
        com.squareup.picasso.Picasso.get().load(new java.io.File(com.example.diegosantiago.turbo.Adaptadores.RVAdapterChat2Sides.access$000(this.this$0))).fit().centerCrop().into(this.val$vh1.imageViewProfile, new com.example.diegosantiago.turbo.Adaptadores.RVAdapterChat2Sides$2$1(this));
        return;
    }

Method com.example.diegosantiago.turbo.Actividades.SessionUser$3.onError() calling method java.io.File.<init>()


    public void onError(Exception p4)
    {
        android.util.Log.e("tag_pictureProfile", "OnErrorPathTryingFile");
        com.squareup.picasso.Picasso.get().load(new java.io.File(com.example.diegosantiago.turbo.Actividades.SessionUser.access$100(this.this$0).getUsuario().getPathToPicture())).fit().centerCrop().into(com.example.diegosantiago.turbo.Actividades.SessionUser.access$300(this.this$0), new com.example.diegosantiago.turbo.Actividades.SessionUser$3$1(this));
        return;
    }

Method com.example.diegosantiago.turbo.Actividades.SessionUser$2.onError() calling method java.io.File.<init>()


    public void onError(Exception p4)
    {
        android.util.Log.e("tag_pictureProfile", "OnErrorPathTryingFile");
        com.squareup.picasso.Picasso.get().load(new java.io.File(com.example.diegosantiago.turbo.Actividades.SessionUser.access$100(this.this$0).getUsuario().getPathToPicture())).fit().centerCrop().into(com.example.diegosantiago.turbo.Actividades.SessionUser.access$300(this.this$0), new com.example.diegosantiago.turbo.Actividades.SessionUser$2$1(this));
        return;
    }

Method com.example.diegosantiago.turbo.Actividades.RegisterCar$29.run() calling method java.io.File.<init>()


    public void run()
    {
        android.widget.ImageView v0_1 = new android.widget.ImageView(this.this$0);
        android.widget.LinearLayout$LayoutParams v1_1 = new android.widget.LinearLayout$LayoutParams(com.example.diegosantiago.turbo.Actividades.RegisterCar.access$800(this.this$0).getHeight(), com.example.diegosantiago.turbo.Actividades.RegisterCar.access$800(this.this$0).getHeight());
        v1_1.setMargins(0, 0, 8, 0);
        v0_1.setLayoutParams(v1_1);
        v0_1.setAdjustViewBounds(1);
        v0_1.setCropToPadding(1);
        com.example.diegosantiago.turbo.Actividades.RegisterCar$29$1 v3_4 = new StringBuilder();
        v3_4.append(v0_1.getHeight());
        v3_4.append(" ");
        v3_4.append(v0_1.getWidth());
        android.util.Log.e("e", v3_4.toString());
        com.squareup.picasso.Picasso.get().load(new java.io.File(this.val$imgPath)).fit().centerCrop().error(2131623936).into(v0_1, new com.example.diegosantiago.turbo.Actividades.RegisterCar$29$1(this));
        com.example.diegosantiago.turbo.Actividades.RegisterCar.access$900(this.this$0).addView(v0_1);
        return;
    }

Method com.example.diegosantiago.turbo.Actividades.ConversacionChat$1.onError() calling method java.io.File.<init>()


    public void onError(Exception p4)
    {
        android.util.Log.e("tag_picture", "OnError");
        com.squareup.picasso.Picasso.get().load(new java.io.File(com.example.diegosantiago.turbo.Actividades.ConversacionChat.access$000(this.this$0).getOther().getPathToPicture())).fit().centerCrop().into(this.val$imageViewProfile, new com.example.diegosantiago.turbo.Actividades.ConversacionChat$1$1(this));
        return;
    }

Method okhttp3.internal.cache2.Relay.read() calling method java.io.RandomAccessFile.<init>()


    public static okhttp3.internal.cache2.Relay read(java.io.File p22)
    {
        java.io.RandomAccessFile v1_1 = new java.io.RandomAccessFile(p22, "rw");
        okhttp3.internal.cache2.FileOperator v9_1 = new okhttp3.internal.cache2.FileOperator(v1_1.getChannel());
        okio.Buffer v15 = new okio.Buffer();
        v9_1.read(0, v15, 32);
        if (!v15.readByteString(((long) okhttp3.internal.cache2.Relay.PREFIX_CLEAN.size())).equals(okhttp3.internal.cache2.Relay.PREFIX_CLEAN)) {
            throw new java.io.IOException("unreadable cache file");
        } else {
            long v11 = v15.readLong();
            long v13_1 = v15.readLong();
            okio.Buffer v19_1 = new okio.Buffer();
            v9_1.read((v11 + 32), v19_1, v13_1);
            okhttp3.internal.cache2.Relay v17_1 = new okhttp3.internal.cache2.Relay;
            v17_1(v1_1, 0, v11, v19_1.readByteString(), 0);
            return v17_1;
        }
    }

Method okhttp3.internal.cache2.Relay.edit() calling method java.io.RandomAccessFile.<init>()


    public static okhttp3.internal.cache2.Relay edit(java.io.File p14, okio.Source p15, okio.ByteString p16, long p17)
    {
        java.io.RandomAccessFile v0_1 = new java.io.RandomAccessFile(p14, "rw");
        okhttp3.internal.cache2.Relay v1_1 = new okhttp3.internal.cache2.Relay;
        v1_1(v0_1, p15, 0, p16, p17);
        v0_1.setLength(0);
        v1_1.writeHeader(okhttp3.internal.cache2.Relay.PREFIX_DIRTY, -1, -1);
        return v1_1;
    }

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


    public varargs Void doInBackground(Object[] p14)
    {
        java.util.List v1_1 = ((java.util.List) p14[0]);
        String v3_1 = ((String) p14[1]);
        try {
            java.io.FileOutputStream v4 = this.this$0.mContext.openFileOutput(v3_1, 0);
            String v6_1 = android.util.Xml.newSerializer();
            try {
                v6_1.setOutput(v4, 0);
                v6_1.startDocument("UTF-8", Boolean.valueOf(1));
                v6_1.startTag(0, "historical-records");
                String v7_4 = v1_1.size();
                int v8_4 = 0;
            } catch (java.io.IOException v0_3) {
                this.this$0.mCanReadHistoricalData = 1;
                if (v4 != null) {
                    try {
                        v4.close();
                    } catch (java.io.IOException v2) {
                    }
                }
                throw v0_3;
            } catch (java.io.IOException v0_1) {
                int v8_1 = new StringBuilder();
                v8_1.append("Error writing historical record file: ");
                v8_1.append(this.this$0.mHistoryFileName);
                android.util.Log.e(android.support.v7.widget.ActivityChooserModel.LOG_TAG, v8_1.toString(), v0_1);
                this.this$0.mCanReadHistoricalData = 1;
                if (v4 == null) {
                    return 0;
                } else {
                    v4.close();
                    return 0;
                }
            } catch (java.io.IOException v0_9) {
                int v8_9 = new StringBuilder();
                v8_9.append("Error writing historical record file: ");
                v8_9.append(this.this$0.mHistoryFileName);
                android.util.Log.e(android.support.v7.widget.ActivityChooserModel.LOG_TAG, v8_9.toString(), v0_9);
                this.this$0.mCanReadHistoricalData = 1;
                if (v4 == null) {
                    return 0;
                } else {
                    v4.close();
                    return 0;
                }
            } catch (java.io.IOException v0_7) {
                int v8_6 = new StringBuilder();
                v8_6.append("Error writing historical record file: ");
                v8_6.append(this.this$0.mHistoryFileName);
                android.util.Log.e(android.support.v7.widget.ActivityChooserModel.LOG_TAG, v8_6.toString(), v0_7);
                this.this$0.mCanReadHistoricalData = 1;
                if (v4 == null) {
                    return 0;
                } else {
                    v4.close();
                    return 0;
                }
            } catch (java.io.IOException v0) {
                return 0;
            }
            while (v8_4 < v7_4) {
                android.support.v7.widget.ActivityChooserModel$HistoricalRecord v9_4 = ((android.support.v7.widget.ActivityChooserModel$HistoricalRecord) v1_1.remove(0));
                v6_1.startTag(0, "historical-record");
                v6_1.attribute(0, "activity", v9_4.activity.flattenToString());
                v6_1.attribute(0, "time", String.valueOf(v9_4.time));
                v6_1.attribute(0, "weight", String.valueOf(v9_4.weight));
                v6_1.endTag(0, "historical-record");
                v8_4++;
            }
            v6_1.endTag(0, "historical-records");
            v6_1.endDocument();
            this.this$0.mCanReadHistoricalData = 1;
            if (v4 == null) {
                return 0;
            } else {
                v4.close();
                return 0;
            }
        } catch (java.io.IOException v0_4) {
            String v6_3 = new StringBuilder();
            v6_3.append("Error writing historical record file: ");
            v6_3.append(v3_1);
            android.util.Log.e(android.support.v7.widget.ActivityChooserModel.LOG_TAG, v6_3.toString(), v0_4);
            return 0;
        }
    }