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.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1.onDownloadComplete() calling method java.io.FileOutputStream.<init>()


    public void onDownloadComplete(com.koushikdutta.urlimageviewhelper.UrlDownloader p9, java.io.InputStream p10, String p11)
    {
        try {
            if ((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1.$assertionsDisabled) || ((p10 == null) || (p11 == null))) {
                if ((p10 != null) || (p11 != null)) {
                    String v3 = this.val$filename;
                    if (p10 == null) {
                        v3 = p11;
                    } else {
                        java.io.BufferedInputStream v2_0 = new java.io.BufferedInputStream(p10, 8192);
                        try {
                            java.io.BufferedOutputStream v1_1 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(this.val$filename), 8192);
                            com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.copyStream(v2_0, v1_1);
                            v1_1.close();
                        } catch (java.io.File v4_4) {
                            if (p9 != null) {
                                if (!p9.allowCache()) {
                                    new java.io.File(this.val$filename).delete();
                                }
                            }
                            throw v4_4;
                        } catch (Exception v0) {
                            new java.io.File(this.val$filename).delete();
                            if (p9 != null) {
                                if (!p9.allowCache()) {
                                    new java.io.File(this.val$filename).delete();
                                }
                            }
                            return;
                        }
                    }
                    this.result = com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.access$100(this.val$context, this.val$url, v3, this.val$targetWidth, this.val$targetHeight);
                    if ((p9 != null) && (!p9.allowCache())) {
                        new java.io.File(this.val$filename).delete();
                    }
                } else {
                    if ((p9 != null) && (!p9.allowCache())) {
                        new java.io.File(this.val$filename).delete();
                    }
                }
            } else {
                throw new AssertionError();
            }
        } catch (java.io.File v4_4) {
        } catch (Exception v0) {
        }
        return;
    }

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


    private final java.io.FileOutputStream zzcj()
    {
        if (this.zzne != null) {
            try {
                IllegalStateException v0_6 = java.io.File.createTempFile("teleporter", ".tmp", this.zzne);
                try {
                    String v1_2 = new java.io.FileOutputStream(v0_6);
                    this.zznb = 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.zznb = 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 gob.defensa.prensa.helpers.RemoteFacade.storeFileFromUrl() calling method java.io.FileOutputStream.<init>()


    public void storeFileFromUrl(String p13, String p14)
    {
        try {
            java.net.HttpURLConnection v10_1 = ((java.net.HttpURLConnection) new java.net.URL(p13).openConnection());
            v10_1.setRequestMethod("GET");
            v10_1.setDoOutput(1);
            v10_1.connect();
            java.io.FileOutputStream v6_1 = new java.io.FileOutputStream(new java.io.File(android.os.Environment.getExternalStorageDirectory(), p14));
            java.io.InputStream v7 = v10_1.getInputStream();
            v10_1.getContentLength();
            int v3 = 0;
            byte[] v1 = new byte[1024];
        } catch (java.io.IOException v4_1) {
            v4_1.printStackTrace();
            return;
        } catch (java.io.IOException v4_0) {
            v4_0.printStackTrace();
            return;
        }
        while(true) {
            int v2 = v7.read(v1);
            if (v2 <= 0) {
                break;
            }
            v6_1.write(v1, 0, v2);
            v3 += v2;
        }
        v6_1.close();
        return;
    }

Method gob.defensa.prensa.helpers.RemoteFacade.downloadFileToCache() calling method java.io.FileOutputStream.<init>()


    public static boolean downloadFileToCache(android.content.Context p12, String p13, String p14)
    {
        int v10 = 0;
        try {
            java.net.URLConnection v3 = new java.net.URL(p13).openConnection();
            v3.connect();
            java.io.InputStream v8 = v3.getInputStream();
            java.io.FileOutputStream v7_1 = new java.io.FileOutputStream(new java.io.File(p12.getCacheDir(), p14));
            v3.getContentLength();
            int v4 = 0;
            byte[] v0 = new byte[1024];
        } catch (java.io.IOException v5_1) {
            v5_1.printStackTrace();
            return v10;
        } catch (java.io.IOException v5_0) {
            v5_0.printStackTrace();
            return v10;
        }
        while(true) {
            int v1 = v8.read(v0);
            if (v1 <= 0) {
                break;
            }
            v7_1.write(v0, 0, v1);
            v4 += v1;
        }
        v7_1.close();
        v10 = 1;
        return v10;
    }

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


    private static void zzd(android.content.Context p6, String p7, com.google.android.gms.iid.zzo p8)
    {
        Throwable v1_0 = 0;
        try {
            if (!android.util.Log.isLoggable("InstanceID", 3)) {
                Throwable v0_1 = com.google.android.gms.iid.zzn.zzj(p6, p7);
                v0_1.createNewFile();
                java.util.Properties v2_1 = new java.util.Properties();
                v2_1.setProperty("pub", com.google.android.gms.iid.zzo.zzd(p8));
                v2_1.setProperty("pri", com.google.android.gms.iid.zzo.zze(p8));
                v2_1.setProperty("cre", String.valueOf(com.google.android.gms.iid.zzo.zzf(p8)));
                java.io.FileOutputStream v3_4 = new java.io.FileOutputStream(v0_1);
                try {
                    v2_1.store(v3_4, 0);
                } catch (Throwable v0_4) {
                    com.google.android.gms.iid.zzn.zzd(v1_0, v3_4);
                    throw v0_4;
                } catch (Throwable v1_0) {
                    throw v1_0;
                }
                com.google.android.gms.iid.zzn.zzd(0, v3_4);
            } else {
                android.util.Log.d("InstanceID", "Writing key to properties file");
            }
        } catch (Throwable v0_5) {
            Throwable v0_7 = String.valueOf(v0_5);
            android.util.Log.w("InstanceID", new StringBuilder((String.valueOf(v0_7).length() + 21)).append("Failed to write key: ").append(v0_7).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.PrintHelper$PrintHelperApi19$2.doInBackground() calling method java.io.FileOutputStream.<init>()


    protected varargs Throwable doInBackground(Void[] p13)
    {
        Throwable v7 = 0;
        try {
            if (!this.val$cancellationSignal.isCanceled()) {
                android.print.pdf.PrintedPdfDocument v6_1 = new android.print.pdf.PrintedPdfDocument(this.this$0.mContext, this.val$pdfAttributes);
                android.graphics.Bitmap v4 = android.support.v4.print.PrintHelper$PrintHelperApi19.access$100(this.this$0, this.val$bitmap, this.val$pdfAttributes.getColorMode());
                if (!this.val$cancellationSignal.isCanceled()) {
                    try {
                        android.graphics.RectF v0_1;
                        android.graphics.pdf.PdfDocument$Page v5 = v6_1.startPage(1);
                    } catch (java.io.IOException v8_30) {
                        v6_1.close();
                        if (this.val$fileDescriptor != null) {
                            try {
                                this.val$fileDescriptor.close();
                            } catch (java.io.FileDescriptor v9) {
                            }
                        }
                        if (v4 != this.val$bitmap) {
                            v4.recycle();
                        }
                        throw v8_30;
                    }
                    if (!this.this$0.mIsMinMarginsHandlingCorrect) {
                        android.print.pdf.PrintedPdfDocument v1_1 = new android.print.pdf.PrintedPdfDocument(this.this$0.mContext, this.val$attributes);
                        android.graphics.pdf.PdfDocument$Page v2 = v1_1.startPage(1);
                        v0_1 = new android.graphics.RectF(v2.getInfo().getContentRect());
                        v1_1.finishPage(v2);
                        v1_1.close();
                    } else {
                        v0_1 = new android.graphics.RectF(v5.getInfo().getContentRect());
                    }
                    android.graphics.Matrix v3 = android.support.v4.print.PrintHelper$PrintHelperApi19.access$200(this.this$0, v4.getWidth(), v4.getHeight(), v0_1, this.val$fittingMode);
                    if (!this.this$0.mIsMinMarginsHandlingCorrect) {
                        v3.postTranslate(v0_1.left, v0_1.top);
                        v5.getCanvas().clipRect(v0_1);
                    }
                    v5.getCanvas().drawBitmap(v4, v3, 0);
                    v6_1.finishPage(v5);
                    if (!this.val$cancellationSignal.isCanceled()) {
                        v6_1.writeTo(new java.io.FileOutputStream(this.val$fileDescriptor.getFileDescriptor()));
                        v6_1.close();
                        if (this.val$fileDescriptor != null) {
                            try {
                                this.val$fileDescriptor.close();
                            } catch (java.io.IOException v8) {
                            }
                        }
                        if (v4 != this.val$bitmap) {
                            v4.recycle();
                        }
                    } else {
                        v6_1.close();
                        if (this.val$fileDescriptor != null) {
                            try {
                                this.val$fileDescriptor.close();
                            } catch (java.io.IOException v8) {
                            }
                        }
                        if (v4 != this.val$bitmap) {
                            v4.recycle();
                        }
                    }
                }
            }
        } catch (Throwable v7) {
        }
        return v7;
    }

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


    public static boolean copyToFile(java.io.File p9, java.io.InputStream p10)
    {
        int v5_0 = 0;
        java.io.FileOutputStream v2 = 0;
        try {
            java.io.FileOutputStream v3_1 = new java.io.FileOutputStream(p9, 0);
            try {
                byte[] v0 = new byte[1024];
            } catch (int v5_1) {
                v2 = v3_1;
                android.support.v4.graphics.TypefaceCompatUtil.closeQuietly(v2);
                throw v5_1;
            } catch (java.io.IOException v1) {
                v2 = v3_1;
                android.util.Log.e("TypefaceCompatUtil", new StringBuilder().append("Error copying resource contents to temp file: ").append(v1.getMessage()).toString());
                android.support.v4.graphics.TypefaceCompatUtil.closeQuietly(v2);
                return v5_0;
            }
            while(true) {
                int v4 = p10.read(v0);
                if (v4 == -1) {
                    break;
                }
                v3_1.write(v0, 0, v4);
            }
            v5_0 = 1;
            android.support.v4.graphics.TypefaceCompatUtil.closeQuietly(v3_1);
            return v5_0;
        } catch (int v5_1) {
        } catch (java.io.IOException v1) {
        }
    }

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


    public android.graphics.Typeface createFromFontInfo(android.content.Context p12, android.os.CancellationSignal p13, android.support.v4.provider.FontsContractCompat$FontInfo[] p14, int p15)
    {
        Throwable v6_2;
        if (p14.length >= 1) {
            try {
                android.os.ParcelFileDescriptor v4 = p12.getContentResolver().openFileDescriptor(this.findBestInfo(p14, p15).getUri(), "r", p13);
                try {
                    java.io.File v2 = this.getFile(v4);
                } catch (Throwable v6_6) {
                    Throwable v7_4 = 0;
                    if (v4 != null) {
                        if (v7_4 == null) {
                            v4.close();
                        } else {
                            v4.close();
                        }
                    }
                    throw v6_6;
                } catch (Throwable v6_5) {
                    try {
                        throw v6_5;
                    } catch (Throwable v7_3) {
                        v7_4 = v6_5;
                        v6_6 = v7_3;
                    }
                }
                if ((v2 != null) && (v2.canRead())) {
                    v6_2 = android.graphics.Typeface.createFromFile(v2);
                    if (v4 != null) {
                        if (0 == 0) {
                            v4.close();
                        } else {
                            try {
                                v4.close();
                            } catch (Throwable v7_1) {
                                0.addSuppressed(v7_1);
                            }
                        }
                    }
                } else {
                    java.io.FileInputStream v3_1 = new java.io.FileInputStream(v4.getFileDescriptor());
                    Throwable v7_2 = 0;
                    try {
                        v6_2 = super.createFromInputStream(p12, v3_1);
                    } catch (Throwable v7_2) {
                        throw v7_2;
                    } catch (Throwable v6_4) {
                        if (v3_1 != null) {
                            if (v7_2 == null) {
                                v3_1.close();
                            } else {
                                v3_1.close();
                            }
                        }
                        throw v6_4;
                    }
                    if (v3_1 != null) {
                        if (0 == 0) {
                            v3_1.close();
                        } else {
                            try {
                                v3_1.close();
                            } catch (Throwable v9_1) {
                                0.addSuppressed(v9_1);
                            }
                        }
                    }
                    if (v4 != null) {
                        if (0 == 0) {
                            v4.close();
                        } else {
                            try {
                                v4.close();
                            } catch (Throwable v7_5) {
                                0.addSuppressed(v7_5);
                            }
                        }
                    }
                }
            } catch (java.io.IOException v1) {
                v6_2 = 0;
            }
        } else {
            v6_2 = 0;
        }
        return v6_2;
    }

Method com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.loadBitmapFromStream() calling method java.io.FileInputStream.<init>()


    private static android.graphics.Bitmap loadBitmapFromStream(android.content.Context p11, String p12, String p13, int p14, int p15)
    {
        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.prepareResources(p11);
        java.io.BufferedInputStream v5_0 = 0;
        String v8_3 = new Object[0];
        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(new StringBuilder().append("Decoding: ").append(p12).append(" ").append(p13).toString(), v8_3);
        android.graphics.BitmapFactory$Options v2_0 = 0;
        try {
            if (!com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mUseBitmapScaling) {
                v5_0 = new java.io.BufferedInputStream(new java.io.FileInputStream(p13), 8192);
                android.graphics.Bitmap v0 = android.graphics.BitmapFactory.decodeStream(v5_0, 0, v2_0);
                String v8_8 = new Object[2];
                v8_8[0] = Integer.valueOf(v0.getWidth());
                v8_8[1] = Integer.valueOf(v0.getHeight());
                String v8_10 = new Object[0];
                com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(String.format("Loaded bitmap (%dx%d).", v8_8), v8_10);
                if (v5_0 == null) {
                    return v0;
                } else {
                    try {
                        v5_0.close();
                    } catch (java.io.IOException v1_1) {
                        android.util.Log.w("UrlImageViewHelper", "Failed to close FileInputStream", v1_1);
                    }
                    return v0;
                }
            } else {
                android.graphics.BitmapFactory$Options v3_1 = new android.graphics.BitmapFactory$Options();
                try {
                    v3_1.inJustDecodeBounds = 1;
                    java.io.BufferedInputStream v6_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p13), 8192);
                    try {
                        android.graphics.BitmapFactory.decodeStream(v6_1, 0, v3_1);
                        v6_1.close();
                        int v4 = 0;
                    } catch (Throwable v7_0) {
                        v5_0 = v6_1;
                    } catch (java.io.IOException v1) {
                        v5_0 = v6_1;
                        v0 = 0;
                        if (v5_0 == null) {
                            return v0;
                        } else {
                            try {
                                v5_0.close();
                            } catch (java.io.IOException v1_2) {
                                android.util.Log.w("UrlImageViewHelper", "Failed to close FileInputStream", v1_2);
                            }
                            return v0;
                        }
                    }
                    while (((v3_1.outWidth >> v4) > p14) || ((v3_1.outHeight >> v4) > p15)) {
                        v4++;
                    }
                    v2_0 = new android.graphics.BitmapFactory$Options();
                    try {
                        v2_0.inSampleSize = (1 << v4);
                    } catch (Throwable v7_0) {
                        v5_0 = v6_1;
                    } catch (java.io.IOException v1) {
                        v5_0 = v6_1;
                    }
                } catch (Throwable v7_0) {
                } catch (java.io.IOException v1) {
                }
            }
        } catch (Throwable v7_0) {
        } catch (java.io.IOException v1) {
        }
        if (v5_0 != null) {
            try {
                v5_0.close();
            } catch (java.io.IOException v1_0) {
                android.util.Log.w("UrlImageViewHelper", "Failed to close FileInputStream", v1_0);
            }
        }
        throw v7_0;
    }

Method com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.loadBitmapFromStream() calling method java.io.FileInputStream.<init>()


    private static android.graphics.Bitmap loadBitmapFromStream(android.content.Context p11, String p12, String p13, int p14, int p15)
    {
        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.prepareResources(p11);
        java.io.BufferedInputStream v5_0 = 0;
        String v8_3 = new Object[0];
        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(new StringBuilder().append("Decoding: ").append(p12).append(" ").append(p13).toString(), v8_3);
        android.graphics.BitmapFactory$Options v2_0 = 0;
        try {
            if (!com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mUseBitmapScaling) {
                v5_0 = new java.io.BufferedInputStream(new java.io.FileInputStream(p13), 8192);
                android.graphics.Bitmap v0 = android.graphics.BitmapFactory.decodeStream(v5_0, 0, v2_0);
                String v8_8 = new Object[2];
                v8_8[0] = Integer.valueOf(v0.getWidth());
                v8_8[1] = Integer.valueOf(v0.getHeight());
                String v8_10 = new Object[0];
                com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(String.format("Loaded bitmap (%dx%d).", v8_8), v8_10);
                if (v5_0 != null) {
                    try {
                        v5_0.close();
                    } catch (java.io.IOException v1_1) {
                        android.util.Log.w("UrlImageViewHelper", "Failed to close FileInputStream", v1_1);
                    }
                }
            } else {
                android.graphics.BitmapFactory$Options v3_1 = new android.graphics.BitmapFactory$Options();
                try {
                    v3_1.inJustDecodeBounds = 1;
                    java.io.BufferedInputStream v6_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p13), 8192);
                    try {
                        android.graphics.BitmapFactory.decodeStream(v6_1, 0, v3_1);
                        v6_1.close();
                        int v4 = 0;
                    } catch (Throwable v7_0) {
                        v5_0 = v6_1;
                        if (v5_0 != null) {
                            try {
                                v5_0.close();
                            } catch (java.io.IOException v1_0) {
                                android.util.Log.w("UrlImageViewHelper", "Failed to close FileInputStream", v1_0);
                            }
                        }
                        throw v7_0;
                    } catch (java.io.IOException v1) {
                        v5_0 = v6_1;
                        v0 = 0;
                        if (v5_0 != null) {
                            try {
                                v5_0.close();
                            } catch (java.io.IOException v1_2) {
                                android.util.Log.w("UrlImageViewHelper", "Failed to close FileInputStream", v1_2);
                            }
                        }
                    }
                    while (((v3_1.outWidth >> v4) > p14) || ((v3_1.outHeight >> v4) > p15)) {
                        v4++;
                    }
                    v2_0 = new android.graphics.BitmapFactory$Options();
                    try {
                        v2_0.inSampleSize = (1 << v4);
                    } catch (Throwable v7_0) {
                        v5_0 = v6_1;
                    } catch (java.io.IOException v1) {
                        v5_0 = v6_1;
                    }
                } catch (Throwable v7_0) {
                } catch (java.io.IOException v1) {
                }
            }
        } catch (Throwable v7_0) {
        } catch (java.io.IOException v1) {
        }
        return v0;
    }

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


    private static com.google.android.gms.iid.zzo zzd(java.io.File p7)
    {
        int v1_0 = 0;
        java.io.FileInputStream v2_1 = new java.io.FileInputStream(p7);
        try {
            com.google.android.gms.iid.zzo v0_3;
            com.google.android.gms.iid.zzo v0_7 = new java.util.Properties();
            v0_7.load(v2_1);
            com.google.android.gms.iid.zzp v3_4 = v0_7.getProperty("pub");
            long v4_0 = v0_7.getProperty("pri");
        } catch (com.google.android.gms.iid.zzo v0_6) {
            com.google.android.gms.iid.zzn.zzd(v1_0, v2_1);
            throw v0_6;
        } catch (com.google.android.gms.iid.zzo v0_4) {
            try {
                throw v0_4;
            } catch (int v1_1) {
                v1_0 = v0_4;
                v0_6 = v1_1;
            }
        }
        if ((v3_4 != null) && (v4_0 != 0)) {
            try {
            } catch (com.google.android.gms.iid.zzo v0_1) {
                throw new com.google.android.gms.iid.zzp(v0_1);
            }
            v0_3 = new com.google.android.gms.iid.zzo(com.google.android.gms.iid.zzn.zzg(v3_4, v4_0), Long.parseLong(v0_7.getProperty("cre")));
            com.google.android.gms.iid.zzn.zzd(0, v2_1);
        } else {
            com.google.android.gms.iid.zzn.zzd(0, v2_1);
            v0_3 = 0;
        }
        return v0_3;
    }

Method com.google.android.gms.common.util.IOUtils$zzb.zzdd() calling method java.io.FileInputStream.<init>()


    public final byte[] zzdd()
    {
        try {
            int v1_1 = new java.io.FileInputStream(this.file);
            try {
                Throwable v0_0 = com.google.android.gms.common.util.IOUtils.zzb(v1_1, v1_1.getChannel().size());
                com.google.android.gms.common.util.IOUtils.closeQuietly(v1_1);
                return v0_0;
            } catch (Throwable v0_1) {
                com.google.android.gms.common.util.IOUtils.closeQuietly(v1_1);
                throw v0_1;
            }
        } catch (Throwable v0_1) {
            v1_1 = 0;
        }
        v0_0 = com.google.android.gms.common.util.IOUtils.zzb(v1_1, v1_1.getChannel().size());
        com.google.android.gms.common.util.IOUtils.closeQuietly(v1_1);
        return v0_0;
    }

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 p11)
    {
        java.io.FileInputStream v7_1 = new java.io.FileInputStream(p11);
        try {
            java.nio.channels.FileChannel v0 = v7_1.getChannel();
            Throwable v1_0 = v0.map(java.nio.channels.FileChannel$MapMode.READ_ONLY, 0, v0.size());
        } catch (Throwable v1_2) {
            Throwable v2_1 = 0;
            if (v7_1 != null) {
                if (v2_1 == null) {
                    v7_1.close();
                } else {
                    v7_1.close();
                }
            }
            throw v1_2;
        } catch (Throwable v1_1) {
            try {
                throw v1_1;
            } catch (Throwable v2_0) {
                v2_1 = v1_1;
                v1_2 = v2_0;
            }
        }
        if (v7_1 == null) {
            return v1_0;
        } else {
            if (0 == 0) {
                v7_1.close();
                return v1_0;
            } else {
                try {
                    v7_1.close();
                } catch (Throwable v2_2) {
                    0.addSuppressed(v2_2);
                }
                return v1_0;
            }
        }
    }

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


    public static java.nio.ByteBuffer mmap(android.content.Context p13, android.os.CancellationSignal p14, android.net.Uri p15)
    {
        Throwable v1_1;
        android.os.ParcelFileDescriptor v8 = p13.getContentResolver().openFileDescriptor(p15, "r", p14);
        if (v8 != null) {
            try {
                java.io.FileInputStream v7_0 = new java.io.FileInputStream(v8.getFileDescriptor());
                try {
                    java.nio.channels.FileChannel v0 = v7_0.getChannel();
                    v1_1 = v0.map(java.nio.channels.FileChannel$MapMode.READ_ONLY, 0, v0.size());
                } catch (Throwable v1_4) {
                    Throwable v2_2 = 0;
                    if (v7_0 != null) {
                        if (v2_2 == null) {
                            v7_0.close();
                        } else {
                            v7_0.close();
                        }
                    }
                    throw v1_4;
                } catch (Throwable v1_3) {
                    try {
                        throw v1_3;
                    } catch (Throwable v2_1) {
                        v2_2 = v1_3;
                        v1_4 = v2_1;
                    }
                }
                if (v7_0 != null) {
                    if (0 == 0) {
                        v7_0.close();
                    } else {
                        try {
                            v7_0.close();
                        } catch (Throwable v2_3) {
                            0.addSuppressed(v2_3);
                        }
                    }
                }
                if (v8 == null) {
                    return v1_1;
                } else {
                    if (0 == 0) {
                        v8.close();
                        return v1_1;
                    } else {
                        try {
                            v8.close();
                        } catch (Throwable v2_6) {
                            0.addSuppressed(v2_6);
                        }
                        return v1_1;
                    }
                }
            } catch (Throwable v1_6) {
                Throwable v2_5 = 0;
                if (v8 != null) {
                    if (v2_5 == null) {
                        v8.close();
                    } else {
                        try {
                            v8.close();
                        } catch (Throwable v3_1) {
                            v2_5.addSuppressed(v3_1);
                        }
                    }
                }
                throw v1_6;
            } catch (Throwable v1_5) {
                try {
                    throw v1_5;
                } catch (Throwable v2_4) {
                    v2_5 = v1_5;
                    v1_6 = v2_4;
                }
            }
        } else {
            v1_1 = 0;
            if (v8 == null) {
                return v1_1;
            } else {
                if (0 == 0) {
                    v8.close();
                    return v1_1;
                } else {
                    try {
                        v8.close();
                    } catch (Throwable v2_7) {
                        0.addSuppressed(v2_7);
                    }
                    return v1_1;
                }
            }
        }
    }

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


    private static java.io.BufferedReader zzm(String p3)
    {
        android.os.StrictMode$ThreadPolicy v1 = android.os.StrictMode.allowThreadDiskReads();
        try {
            Throwable v0_1 = new java.io.BufferedReader(new java.io.FileReader(p3));
            android.os.StrictMode.setThreadPolicy(v1);
            return v0_1;
        } catch (Throwable v0_2) {
            android.os.StrictMode.setThreadPolicy(v1);
            throw v0_2;
        }
    }

Method gob.defensa.prensa.BaseFragmentActivity.openPdf() calling method java.io.File.<init>()


    public void openPdf(String p4, String p5)
    {
        java.io.File v0_1 = new java.io.File(new StringBuilder().append(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_DOWNLOADS)).append(java.io.File.separator).append("/defensa/").append(java.io.File.separator).append(p5).toString());
        if (!v0_1.exists()) {
            this.checkAndDownloadToSd(p4, p5);
        } else {
            this.openFilePdf(v0_1);
        }
        return;
    }

Method gob.defensa.prensa.BaseFragmentActivity.downloadFileToSd() calling method java.io.File.<init>()


    public void downloadFileToSd(String p7, String p8)
    {
        this.createFolderInSd();
        this.fileName = p8;
        this.downloadManager = ((android.app.DownloadManager) this.getSystemService("download"));
        android.app.DownloadManager$Request v2_0 = new android.app.DownloadManager$Request(android.net.Uri.parse(p7));
        v2_0.setAllowedNetworkTypes(3);
        v2_0.setAllowedOverRoaming(0);
        v2_0.setTitle(this.getString(2131165247));
        v2_0.setDescription(p8);
        v2_0.setDestinationUri(android.net.Uri.fromFile(new java.io.File(new StringBuilder().append(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_DOWNLOADS)).append(java.io.File.separator).append("/defensa/").append(java.io.File.separator).append(p8).toString())));
        this.downloadReference = this.downloadManager.enqueue(v2_0);
        return;
    }

Method gob.defensa.prensa.BaseFragmentActivity.createFolderInSd() calling method java.io.File.<init>()


    public void createFolderInSd()
    {
        java.io.File v0_1 = new java.io.File(new StringBuilder().append(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_DOWNLOADS)).append(java.io.File.separator).append("/defensa/").toString());
        // Both branches of the condition point to the same code.
        // if ((!v0_1.exists()) && (!v0_1.mkdir())) {
            return;
        // }
    }

Method com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1.onDownloadComplete() calling method java.io.File.<init>()


    public void onDownloadComplete(com.koushikdutta.urlimageviewhelper.UrlDownloader p9, java.io.InputStream p10, String p11)
    {
        try {
            if ((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1.$assertionsDisabled) || ((p10 == null) || (p11 == null))) {
                if ((p10 != null) || (p11 != null)) {
                    String v3 = this.val$filename;
                    if (p10 == null) {
                        v3 = p11;
                    } else {
                        java.io.BufferedInputStream v2_0 = new java.io.BufferedInputStream(p10, 8192);
                        try {
                            java.io.BufferedOutputStream v1_1 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(this.val$filename), 8192);
                            com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.copyStream(v2_0, v1_1);
                            v1_1.close();
                        } catch (java.io.File v4_4) {
                            if (p9 != null) {
                                if (!p9.allowCache()) {
                                    new java.io.File(this.val$filename).delete();
                                }
                            }
                            throw v4_4;
                        } catch (Exception v0) {
                            new java.io.File(this.val$filename).delete();
                            if (p9 != null) {
                                if (!p9.allowCache()) {
                                    new java.io.File(this.val$filename).delete();
                                }
                            }
                            return;
                        }
                    }
                    this.result = com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.access$100(this.val$context, this.val$url, v3, this.val$targetWidth, this.val$targetHeight);
                    if ((p9 != null) && (!p9.allowCache())) {
                        new java.io.File(this.val$filename).delete();
                    }
                } else {
                    if ((p9 != null) && (!p9.allowCache())) {
                        new java.io.File(this.val$filename).delete();
                    }
                }
            } else {
                throw new AssertionError();
            }
        } catch (java.io.File v4_4) {
        } catch (Exception v0) {
        }
        return;
    }

Method com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1.onDownloadComplete() calling method java.io.File.<init>()


    public void onDownloadComplete(com.koushikdutta.urlimageviewhelper.UrlDownloader p9, java.io.InputStream p10, String p11)
    {
        try {
            if ((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1.$assertionsDisabled) || ((p10 == null) || (p11 == null))) {
                if ((p10 != null) || (p11 != null)) {
                    String v3 = this.val$filename;
                    if (p10 == null) {
                        v3 = p11;
                    } else {
                        java.io.BufferedInputStream v2_0 = new java.io.BufferedInputStream(p10, 8192);
                        try {
                            java.io.BufferedOutputStream v1_1 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(this.val$filename), 8192);
                            com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.copyStream(v2_0, v1_1);
                            v1_1.close();
                        } catch (java.io.File v4_4) {
                            if (p9 != null) {
                                if (!p9.allowCache()) {
                                    new java.io.File(this.val$filename).delete();
                                }
                            }
                            throw v4_4;
                        } catch (Exception v0) {
                            new java.io.File(this.val$filename).delete();
                            if (p9 == null) {
                                return;
                            } else {
                                if (p9.allowCache()) {
                                    return;
                                } else {
                                    new java.io.File(this.val$filename).delete();
                                    return;
                                }
                            }
                        }
                    }
                    this.result = com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.access$100(this.val$context, this.val$url, v3, this.val$targetWidth, this.val$targetHeight);
                    if ((p9 == null) || (p9.allowCache())) {
                        return;
                    } else {
                        new java.io.File(this.val$filename).delete();
                        return;
                    }
                } else {
                    if ((p9 == null) || (p9.allowCache())) {
                        return;
                    } else {
                        new java.io.File(this.val$filename).delete();
                        return;
                    }
                }
            } else {
                throw new AssertionError();
            }
        } catch (java.io.File v4_4) {
        } catch (Exception v0) {
        }
    }

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


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

Method gob.defensa.prensa.helpers.RemoteFacade.storeFileFromUrl() calling method java.io.File.<init>()


    public void storeFileFromUrl(String p13, String p14)
    {
        try {
            java.net.HttpURLConnection v10_1 = ((java.net.HttpURLConnection) new java.net.URL(p13).openConnection());
            v10_1.setRequestMethod("GET");
            v10_1.setDoOutput(1);
            v10_1.connect();
            java.io.FileOutputStream v6_1 = new java.io.FileOutputStream(new java.io.File(android.os.Environment.getExternalStorageDirectory(), p14));
            java.io.InputStream v7 = v10_1.getInputStream();
            v10_1.getContentLength();
            int v3 = 0;
            byte[] v1 = new byte[1024];
        } catch (java.io.IOException v4_1) {
            v4_1.printStackTrace();
            return;
        } catch (java.io.IOException v4_0) {
            v4_0.printStackTrace();
            return;
        }
        while(true) {
            int v2 = v7.read(v1);
            if (v2 <= 0) {
                break;
            }
            v6_1.write(v1, 0, v2);
            v3 += v2;
        }
        v6_1.close();
        return;
    }

Method gob.defensa.prensa.helpers.RemoteFacade.downloadFileToCache() calling method java.io.File.<init>()


    public static boolean downloadFileToCache(android.content.Context p12, String p13, String p14)
    {
        int v10 = 0;
        try {
            java.net.URLConnection v3 = new java.net.URL(p13).openConnection();
            v3.connect();
            java.io.InputStream v8 = v3.getInputStream();
            java.io.FileOutputStream v7_1 = new java.io.FileOutputStream(new java.io.File(p12.getCacheDir(), p14));
            v3.getContentLength();
            int v4 = 0;
            byte[] v0 = new byte[1024];
        } catch (java.io.IOException v5_1) {
            v5_1.printStackTrace();
            return v10;
        } catch (java.io.IOException v5_0) {
            v5_0.printStackTrace();
            return v10;
        }
        while(true) {
            int v1 = v8.read(v0);
            if (v1 <= 0) {
                break;
            }
            v7_1.write(v0, 0, v1);
            v4 += v1;
        }
        v7_1.close();
        v10 = 1;
        return v10;
    }

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 gob.defensa.prensa.BaseFragmentActivity$1.onReceive() calling method java.io.File.<init>()


    public void onReceive(android.content.Context p7, android.content.Intent p8)
    {
        if (this.this$0.downloadReference == p8.getLongExtra("extra_download_id", -1)) {
            this.file = new java.io.File(new StringBuilder().append(android.os.Environment.getExternalStoragePublicDirectory(android.os.Environment.DIRECTORY_DOWNLOADS)).append(java.io.File.separator).append("/defensa/").append(java.io.File.separator).append(this.this$0.fileName).toString());
            this.this$0.openFilePdf(this.file);
        }
        return;
    }

Method com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.setUrlDrawable() calling method java.io.File.<init>()


    private static void setUrlDrawable(android.content.Context p30, android.widget.ImageView p31, String p32, android.graphics.drawable.Drawable p33, long p34, com.koushikdutta.urlimageviewhelper.UrlImageViewCallback p36)
    {
        if ((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.$assertionsDisabled) || (android.os.Looper.getMainLooper().getThread() == Thread.currentThread())) {
            com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.cleanup(p30);
            if (!com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.isNullOrEmpty(p32)) {
                if (com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mMetrics == null) {
                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.prepareResources(p30);
                }
                int v29 = com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mMetrics.widthPixels;
                int v28 = com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mMetrics.heightPixels;
                String v5 = p30.getFileStreamPath(com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.getFilenameForUrl(p32)).getAbsolutePath();
                java.io.File v26 = new java.io.File;
                v26(v5);
                if (com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mDeadCache == null) {
                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mDeadCache = new com.koushikdutta.urlimageviewhelper.LruBitmapCache((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.getHeapSize(p30) / 8));
                }
                com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable v25_1 = 0;
                android.graphics.Bitmap v23_0 = ((android.graphics.Bitmap) com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mDeadCache.remove(p32));
                if (v23_0 == null) {
                    v25_1 = ((android.graphics.drawable.Drawable) com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mLiveCache.get(p32));
                } else {
                    boolean v7_22 = new Object[0];
                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(new StringBuilder().append("zombie load: ").append(p32).toString(), v7_22);
                }
                if ((v25_1 != null) || (v23_0 != null)) {
                    boolean v7_26 = new Object[0];
                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(new StringBuilder().append("Cache hit on: ").append(p32).toString(), v7_26);
                    if ((!v26.exists()) || (com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.checkCacheDuration(v26, p34))) {
                        boolean v7_29 = new Object[0];
                        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(new StringBuilder().append("Using cached: ").append(p32).toString(), v7_29);
                    } else {
                        boolean v7_2 = new Object[0];
                        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(new StringBuilder().append("Cache hit, but file is stale. Forcing reload: ").append(p32).toString(), v7_2);
                        if ((v25_1 != null) && ((v25_1 instanceof com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable))) {
                            ((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable) v25_1).headshot();
                        }
                        v25_1 = 0;
                        v23_0 = 0;
                    }
                }
                if ((v25_1 == null) && (v23_0 == null)) {
                    boolean v7_6 = new Object[0];
                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(new StringBuilder().append("Waiting for ").append(p32).append(" ").append(p31).toString(), v7_6);
                    if (p31 != null) {
                        p31.setImageDrawable(p33);
                        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mPendingViews.put(p31, p32);
                    }
                    java.util.ArrayList v24_1 = ((java.util.ArrayList) com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mPendingDownloads.get(p32));
                    if ((v24_1 == null) || (v24_1.size() == 0)) {
                        java.util.ArrayList v16_1 = new java.util.ArrayList();
                        if (p31 != null) {
                            v16_1.add(p31);
                        }
                        int v8;
                        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mPendingDownloads.put(p32, v16_1);
                        if (v29 > 0) {
                            v8 = v29;
                        } else {
                            v8 = 2147483647;
                        }
                        int v9;
                        if (v28 > 0) {
                            v9 = v28;
                        } else {
                            v9 = 2147483647;
                        }
                        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1 v4_1 = new com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$1(v5, p30, p32, v8, v9);
                        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$2 v10_1 = new com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$2(v4_1, p32, p33, p36, p31, v16_1);
                        if (v26.exists()) {
                            try {
                                if (!com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.checkCacheDuration(v26, p34)) {
                                    boolean v7_9 = new Object[0];
                                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog("File cache has expired. Refreshing.", v7_9);
                                } else {
                                    boolean v7_16 = new Object[0];
                                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.clog(new StringBuilder().append("File Cache hit on: ").append(p32).append(". ").append((System.currentTimeMillis() - v26.lastModified())).append("ms old.").toString(), v7_16);
                                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$3 v27 = new com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$3;
                                    v27(v4_1, v5, v10_1);
                                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.executeTask(v27);
                                    return;
                                }
                            } catch (String v6) {
                            }
                        }
                        String v6_27 = com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mDownloaders.iterator();
                        while (v6_27.hasNext()) {
                            com.koushikdutta.urlimageviewhelper.UrlDownloader v17_1 = ((com.koushikdutta.urlimageviewhelper.UrlDownloader) v6_27.next());
                            if (v17_1.canDownloadUrl(p32)) {
                                v17_1.download(p30, p32, v5, v4_1, v10_1);
                            }
                        }
                        p31.setImageDrawable(p33);
                    } else {
                        if (p31 != null) {
                            v24_1.add(p31);
                        }
                    }
                } else {
                    if (p31 != null) {
                        com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mPendingViews.remove(p31);
                        if (!(v25_1 instanceof com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable)) {
                            if (v23_0 != null) {
                                v25_1 = new com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable;
                                v25_1(p32, com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mResources, v23_0);
                            }
                        } else {
                            v25_1 = ((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable) v25_1).clone(com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mResources);
                        }
                        p31.setImageDrawable(v25_1);
                    }
                    if (p36 != null) {
                        if ((v23_0 == null) && ((v25_1 instanceof com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable))) {
                            v23_0 = ((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable) v25_1).getBitmap();
                        }
                        p36.onLoaded(p31, v23_0, p32, 1);
                    }
                }
            } else {
                if (p31 != null) {
                    com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mPendingViews.remove(p31);
                    p31.setImageDrawable(p33);
                }
            }
            return;
        } else {
            throw new AssertionError("setUrlDrawable and loadUrlDrawable should only be called from the main thread.");
        }
    }

Method com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.remove() calling method java.io.File.<init>()


    public static android.graphics.Bitmap remove(String p5)
    {
        int v1;
        new java.io.File(com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.getFilenameForUrl(p5)).delete();
        android.graphics.drawable.Drawable v0_1 = ((android.graphics.drawable.Drawable) com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mLiveCache.remove(p5));
        if (!(v0_1 instanceof com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable)) {
            v1 = 0;
        } else {
            com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable v2_1 = ((com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$ZombieDrawable) v0_1);
            v1 = v2_1.getBitmap();
            v2_1.headshot();
        }
        return v1;
    }

Method com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.cleanup() calling method java.io.File.<init>()


    public static void cleanup(android.content.Context p11, long p12)
    {
        if (!com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mHasCleaned) {
            com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.mHasCleaned = 1;
            try {
                String[] v3 = p11.getFilesDir().list();
            } catch (Exception v0) {
                v0.printStackTrace();
            }
            if (v3 != null) {
                int v5 = v3.length;
                int v4_1 = 0;
                while (v4_1 < v5) {
                    String v2 = v3[v4_1];
                    if (v2.endsWith(".urlimage")) {
                        java.io.File v1_1 = new java.io.File(new StringBuilder().append(p11.getFilesDir().getAbsolutePath()).append(47).append(v2).toString());
                        if (System.currentTimeMillis() > (v1_1.lastModified() + p12)) {
                            v1_1.delete();
                        }
                    }
                    v4_1++;
                }
            }
        }
        return;
    }

Method com.koushikdutta.urlimageviewhelper.FileUrlDownloader$1.doInBackground() calling method java.io.File.<init>()


    protected varargs Void doInBackground(Void[] p9)
    {
        try {
            this.val$callback.onDownloadComplete(this.this$0, 0, new java.io.File(new java.net.URI(this.val$url)).getAbsolutePath());
        } catch (Throwable v0) {
            v0.printStackTrace();
        }
        return 0;
    }

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


    private static java.io.File zzj(android.content.Context p3, String p4)
    {
        java.io.UnsupportedEncodingException v0_3;
        if (!android.text.TextUtils.isEmpty(p4)) {
            try {
                java.io.UnsupportedEncodingException v0_7 = android.util.Base64.encodeToString(p4.getBytes("UTF-8"), 11);
                v0_3 = new StringBuilder((String.valueOf(v0_7).length() + 33)).append("com.google.InstanceId_").append(v0_7).append(".properties").toString();
            } catch (java.io.UnsupportedEncodingException v0_4) {
                throw new AssertionError(v0_4);
            }
        } else {
            v0_3 = "com.google.InstanceId.properties";
        }
        return new java.io.File(com.google.android.gms.iid.zzn.zzj(p3), v0_3);
    }

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


    private zzak(android.content.Context p5, com.google.android.gms.iid.zzn p6)
    {
        this.zzdb = new android.support.v4.util.ArrayMap();
        this.zzk = p5;
        this.zzcz = p5.getSharedPreferences("com.google.android.gms.appid", 0);
        this.zzda = p6;
        String v2_1 = new java.io.File(android.support.v4.content.ContextCompat.getNoBackupFilesDir(this.zzk), "com.google.android.gms.appid-no-backup");
        try {
            if ((!v2_1.exists()) && ((v2_1.createNewFile()) && (!this.isEmpty()))) {
                android.util.Log.i("InstanceID/Store", "App restored, clearing state");
                com.google.android.gms.iid.InstanceIDListenerService.zzd(this.zzk, this);
            }
        } catch (String v0_8) {
            if (android.util.Log.isLoggable("InstanceID/Store", 3)) {
                String v0_10 = String.valueOf(v0_8.getMessage());
                if (v0_10.length() == 0) {
                    String v0_12 = new String("Error creating file in no backup dir: ");
                } else {
                    v0_12 = "Error creating file in no backup dir: ".concat(v0_10);
                }
                android.util.Log.d("InstanceID/Store", v0_12);
            }
        }
        return;
    }

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


    public static void publishWorldReadableSharedPreferences(android.content.Context p6, android.content.SharedPreferences$Editor p7, String p8)
    {
        java.io.File v0_1 = new java.io.File(p6.getApplicationInfo().dataDir, "shared_prefs");
        java.io.File v1_4 = v0_1.getParentFile();
        if (v1_4 != null) {
            v1_4.setExecutable(1, 0);
        }
        v0_1.setExecutable(1, 0);
        p7.commit();
        new java.io.File(v0_1, String.valueOf(p8).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;
        this.mBackupName = new java.io.File(new StringBuilder().append(p4.getPath()).append(".bak").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 v2 = new StringBuilder().append(".font").append(android.os.Process.myPid()).append("-").append(android.os.Process.myTid()).append("-").toString();
        int v1 = 0;
        while (v1 < 100) {
            int v0_0 = new java.io.File(p5.getCacheDir(), new StringBuilder().append(v2).append(v1).toString());
            try {
                if (v0_0.createNewFile()) {
                    return v0_0;
                }
                v1++;
            } catch (java.io.IOException v3) {
            }
        }
        v0_0 = 0;
        return v0_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)
    {
        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 java.io.File getNoBackupFilesDir(android.content.Context p4)
    {
        java.io.File v1_1;
        if (android.os.Build$VERSION.SDK_INT < 21) {
            v1_1 = android.support.v4.content.ContextCompat.createFilesDir(new java.io.File(p4.getApplicationInfo().dataDir, "no_backup"));
        } else {
            v1_1 = p4.getNoBackupFilesDir();
        }
        return v1_1;
    }

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


    public static java.io.File getDataDir(android.content.Context p3)
    {
        int v1_1;
        if (android.os.Build$VERSION.SDK_INT < 24) {
            String v0 = p3.getApplicationInfo().dataDir;
            if (v0 == null) {
                v1_1 = 0;
            } else {
                v1_1 = new java.io.File(v0);
            }
        } else {
            v1_1 = p3.getDataDir();
        }
        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 p4)
    {
        java.io.File v1_1;
        if (android.os.Build$VERSION.SDK_INT < 21) {
            v1_1 = android.support.v4.content.ContextCompat.createFilesDir(new java.io.File(p4.getApplicationInfo().dataDir, "code_cache"));
        } else {
            v1_1 = p4.getCodeCacheDir();
        }
        return v1_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.google.android.gms.common.util.IOUtils.lockAndTruncateFile() calling method java.io.RandomAccessFile.<init>()


    public static void lockAndTruncateFile(java.io.File p6)
    {
        java.io.IOException v1 = 0;
        if (p6.exists()) {
            try {
                int v2_1 = new java.io.RandomAccessFile(p6, "rw");
                try {
                    java.io.IOException v0_0 = v2_1.getChannel();
                    v1 = v0_0.lock();
                    v0_0.truncate(0);
                } catch (java.io.IOException v0_1) {
                    if (v1 != null) {
                        if (v1.isValid()) {
                            try {
                                v1.release();
                            } catch (java.io.IOException v1) {
                            }
                        }
                    }
                    if (v2_1 != 0) {
                        com.google.android.gms.common.util.IOUtils.closeQuietly(v2_1);
                    }
                    throw v0_1;
                }
                if ((v1 != null) && (v1.isValid())) {
                    try {
                        v1.release();
                    } catch (java.io.IOException v0) {
                    }
                }
                com.google.android.gms.common.util.IOUtils.closeQuietly(v2_1);
                return;
            } catch (java.io.IOException v0_1) {
                v2_1 = 0;
            }
        } else {
            throw new java.io.FileNotFoundException();
        }
    }

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 = this.this$0.mContext.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.LOG_TAG, new StringBuilder().append("Error writing historical record file: ").append(this.this$0.mHistoryFileName).toString(), v7);
                this.this$0.mCanReadHistoricalData = 1;
                if (v3 == null) {
                    java.io.IOException v13_3 = 0;
                    return v13_3;
                } else {
                    try {
                        v3.close();
                    } catch (java.io.IOException v13) {
                    }
                }
            } catch (IllegalStateException v9) {
                android.util.Log.e(android.support.v7.widget.ActivityChooserModel.LOG_TAG, new StringBuilder().append("Error writing historical record file: ").append(this.this$0.mHistoryFileName).toString(), v9);
                this.this$0.mCanReadHistoricalData = 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.LOG_TAG, new StringBuilder().append("Error writing historical record file: ").append(this.this$0.mHistoryFileName).toString(), v8);
                this.this$0.mCanReadHistoricalData = 1;
                if (v3 == null) {
                } else {
                    try {
                        v3.close();
                    } catch (java.io.IOException v13) {
                    }
                }
            } catch (java.io.IOException v13_2) {
                this.this$0.mCanReadHistoricalData = 1;
                if (v3 != null) {
                    try {
                        v3.close();
                    } catch (int v14) {
                    }
                }
                throw v13_2;
            }
            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();
            this.this$0.mCanReadHistoricalData = 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.LOG_TAG, new StringBuilder().append("Error writing historical record file: ").append(v5_1).toString(), v2);
            v13_3 = 0;
            return v13_3;
        }
    }