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.sophos.keepasseditor.f.a() calling method java.io.FileOutputStream.<init>()


    public static void a(de.slackspace.openkeepass.domain.KeePassFile p3, String p4, byte[] p5, String p6)
    {
        String v1_5 = new StringBuilder();
        v1_5.append(p6);
        v1_5.append("~tmp~.kdbx");
        int v0_3 = new java.io.File(v1_5.toString());
        if (v0_3.exists()) {
            v0_3.delete();
        }
        String v1_3 = new StringBuilder();
        v1_3.append(p6);
        v1_3.append("~tmp~.kdbx");
        de.slackspace.openkeepass.a.a(p3, p4, p5, v1_3.toString());
        java.io.IOException v3_2 = new java.io.File(p6);
        v3_2.delete();
        if ((!v0_3.renameTo(v3_2)) || (v0_3.exists())) {
            com.sophos.smsec.core.smsectrace.d.e("Ops", "Can\'t rename temporary file.");
            String v4_4 = 0;
            try {
                String v5_3 = new java.io.FileInputStream(v0_3);
                try {
                    int v6_1 = new java.io.FileOutputStream(v3_2);
                    try {
                        java.io.IOException v3_6 = new byte[1024];
                        String v4_5 = v5_3.read(v3_6);
                    } catch (java.io.IOException v3_4) {
                        if (v5_3 != null) {
                            try {
                                v5_3.close();
                            } catch (String v4_9) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v4_9);
                            }
                        }
                        if (v6_1 != 0) {
                            try {
                                v6_1.close();
                            } catch (String v4_10) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v4_10);
                            }
                        }
                        throw v3_4;
                    } catch (java.io.IOException v3_3) {
                        v4_4 = v5_3;
                        try {
                            com.sophos.smsec.core.smsectrace.d.b("Ops", v3_3);
                        } catch (java.io.IOException v3_4) {
                            v5_3 = v4_4;
                        }
                        if (v4_4 != null) {
                            try {
                                v4_4.close();
                            } catch (java.io.IOException v3_8) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v3_8);
                            }
                        }
                        if (v6_1 == 0) {
                            return;
                        } else {
                            v6_1.close();
                            return;
                        }
                        v4_5 = v5_3.read(v3_6);
                    }
                    while (v4_5 != -1) {
                        if (v4_5 > null) {
                            v6_1.write(v3_6, 0, v4_5);
                        }
                    }
                    try {
                        v5_3.close();
                    } catch (java.io.IOException v3_7) {
                        com.sophos.smsec.core.smsectrace.d.b("Ops", v3_7);
                    }
                    v6_1.close();
                } catch (java.io.IOException v3_4) {
                    v6_1 = 0;
                } catch (java.io.IOException v3_3) {
                    v6_1 = 0;
                }
            } catch (java.io.IOException v3_4) {
                v5_3 = 0;
                v6_1 = 0;
            } catch (java.io.IOException v3_3) {
                v6_1 = 0;
            } catch (java.io.IOException v3_9) {
                com.sophos.smsec.core.smsectrace.d.b("Ops", v3_9);
            }
        }
        return;
    }

Method com.sophos.jsceplib.d.a() calling method java.io.FileOutputStream.<init>()


    private void a(java.security.cert.X509Certificate p8, java.security.PrivateKey p9)
    {
        String v0 = this.c();
        java.security.KeyStore$PasswordProtection v1_1 = new java.security.cert.Certificate[1];
        v1_1[0] = p8;
        java.io.File v3_0 = new java.io.File(this.c.getFilesDir(), "SCEP_request.jks");
        try {
            java.security.KeyStore v2_1 = java.security.KeyStore.getInstance(java.security.KeyStore.getDefaultType());
            Throwable v5 = 0;
        } catch (Throwable v8_6) {
            throw new com.sophos.jsceplib.ScepException(v8_6);
        }
        if (!v3_0.exists()) {
            v2_1.load(0);
        } else {
            java.security.KeyStore$PrivateKeyEntry v4_3 = new java.io.FileInputStream(v3_0);
            try {
                v2_1.load(v4_3, v0.toCharArray());
            } catch (Throwable v8_2) {
                if (v5 == null) {
                    v4_3.close();
                } else {
                    try {
                        v4_3.close();
                    } catch (Throwable v9_1) {
                        v5.addSuppressed(v9_1);
                    }
                }
                throw v8_2;
            } catch (Throwable v8_1) {
                v5 = v8_1;
                throw v5;
            }
            v4_3.close();
        }
        v2_1.setEntry("SMCCertificatePK", new java.security.KeyStore$PrivateKeyEntry(p9, v1_1), new java.security.KeyStore$PasswordProtection(v0.toCharArray()));
        v2_1.setCertificateEntry("SMCCertificate", p8);
        Throwable v8_4 = new java.io.FileOutputStream(v3_0);
        try {
            v2_1.store(v8_4, v0.toCharArray());
        } catch (Throwable v9_6) {
            if (v5 == null) {
                v8_4.close();
            } else {
                try {
                    v8_4.close();
                } catch (Throwable v8_5) {
                    v5.addSuppressed(v8_5);
                }
            }
            throw v9_6;
        } catch (Throwable v9_5) {
            v5 = v9_5;
            throw v5;
        }
        v8_4.close();
        return;
    }

Method com.sophos.jsceplib.d.a() calling method java.io.FileOutputStream.<init>()


    public static void a(android.content.Context p0, byte[] p1, String p2, String p3)
    {
        java.io.FileOutputStream v0_3 = 0;
        try {
            java.io.FileOutputStream v3_2 = new java.io.FileOutputStream(new java.io.File(p0.getFilesDir(), "SCEP_request.jks"));
            try {
                v3_2.write(p1);
                v3_2.close();
                return;
            } catch (java.io.FileOutputStream v0_2) {
                Throwable v1_1 = v0_2;
                v0_3 = v3_2;
                if (v0_3 != null) {
                    v0_3.close();
                }
                throw v1_1;
            }
        } catch (Throwable v1_1) {
        }
        v3_2.write(p1);
        v3_2.close();
        return;
    }

Method com.sophos.jbase.k.a() calling method java.io.FileOutputStream.<init>()


    private static void a()
    {
        byte[] v0_0 = 0;
        try {
            String v2_4 = new java.io.DataOutputStream(new java.io.FileOutputStream(ark>com.sophos.jbase.kark>.a));
            try {
                v2_4.writeLong(System.currentTimeMillis());
                v2_4.writeLong(System.nanoTime());
                v2_4.writeInt(android.os.Process.myPid());
                v2_4.writeInt(android.os.Process.myUid());
            } catch (byte[] v0_5) {
                if (v2_4 != null) {
                    try {
                        v2_4.close();
                    } catch (java.io.IOException) {
                        com.sophos.smsec.core.smsectrace.d.e("JBRandom", "error closing stream.");
                    }
                }
                ark>com.sophos.jbase.kark>.b = 1;
                throw v0_5;
            } catch (java.io.IOException) {
                v0_0 = v2_4;
                String v2_2 = ark>com.sophos.jbase.kark>.getSimpleName();
                String v3_11 = new StringBuilder();
                v3_11.append("Error when trying to add additional seed to ");
                v3_11.append(ark>com.sophos.jbase.kark>.a);
                com.sophos.smsec.core.smsectrace.d.c(v2_2, v3_11.toString());
                if (v0_0 == null) {
                    ark>com.sophos.jbase.kark>.b = 1;
                    return;
                } else {
                    v0_0.close();
                    ark>com.sophos.jbase.kark>.b = 1;
                    return;
                }
            }
            if (android.os.Build.FINGERPRINT != null) {
                v2_4.write(android.os.Build.FINGERPRINT.getBytes("UTF-8"));
            }
            byte[] v0_2 = ((String) android.os.Build.getField("SERIAL").get(0));
            if (v0_2 == null) {
                v2_4.close();
                ark>com.sophos.jbase.kark>.b = 1;
                return;
            } else {
                v2_4.write(v0_2.getBytes("UTF-8"));
            }
        } catch (String v2_3) {
            v2_4 = v0_0;
            v0_5 = v2_3;
        } catch (java.io.IOException) {
            com.sophos.smsec.core.smsectrace.d.e("JBRandom", "error closing stream.");
            ark>com.sophos.jbase.kark>.b = 1;
            return;
        }
    }

Method com.sophos.jbase.i.d() calling method java.io.FileOutputStream.<init>()


    private static declared_synchronized void d(android.content.Context p5)
    {
        try {
            String v2_0 = 0;
        } catch (java.io.IOException v5_15) {
            throw v5_15;
        }
        if (com.sophos.jbase.i.f == null) {
            java.io.IOException v5_8;
            if (p5 == null) {
                v5_8 = 0;
            } else {
                v5_8 = p5.getApplicationContext();
            }
            com.sophos.jbase.i.f = v5_8;
            if (com.sophos.jbase.i.f == null) {
                return;
            }
        }
        if ((com.sophos.jbase.i.b instanceof com.sophos.jbase.LegacyKeyStore)) {
            java.io.IOException v5_4 = new java.io.File(com.sophos.jbase.i.f.getDir("keyring", 0), "pkdata.bin");
            if (com.sophos.jbase.i.a(0) != 0) {
                if (com.sophos.jbase.i.d == null) {
                    com.sophos.jbase.i.a(com.sophos.jbase.i.f, 0);
                    if (com.sophos.jbase.i.d == null) {
                        com.sophos.smsec.core.smsectrace.d.d("JBASE", "Unexpected error.");
                        return;
                    }
                }
                try {
                    com.sophos.jbase.i.d.initCipher(1, com.sophos.jbase.i.i());
                    try {
                        String v1_10 = new java.io.ObjectOutputStream(new javax.crypto.CipherOutputStream(new java.io.FileOutputStream(v5_4), com.sophos.jbase.i.d.getKey()));
                        try {
                            v1_10.writeObject(com.sophos.jbase.i.b);
                            try {
                                v1_10.close();
                            } catch (java.io.IOException v5_11) {
                                String v1_12 = "JBASE";
                                String v2_1 = "Error while closing stream.";
                                com.sophos.smsec.core.smsectrace.d.c(v1_12, v2_1, v5_11);
                            }
                        } catch (java.io.IOException v5_10) {
                            v2_0 = v1_10;
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (String v1_13) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error while closing stream.", v1_13);
                                }
                            }
                            throw v5_10;
                        } catch (java.io.IOException v5_7) {
                            v2_0 = v1_10;
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error while serializing key.", v5_7);
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (java.io.IOException v5_11) {
                                    v1_12 = "JBASE";
                                    v2_1 = "Error while closing stream.";
                                }
                            }
                        }
                    } catch (java.io.IOException v5_10) {
                    } catch (java.io.IOException v5_7) {
                    }
                } catch (String v1_8) {
                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v1_8);
                }
            } else {
                if (v5_4.exists()) {
                    String v2_4 = new StringBuilder();
                    v2_4.append("NOT Deleting file of size ");
                    v2_4.append(v5_4.length());
                    com.sophos.smsec.core.smsectrace.d.d("JBASE", v2_4.toString());
                }
            }
        }
        return;
    }

Method com.sophos.jbase.i.a() calling method java.io.FileOutputStream.<init>()


    private static void a(java.io.File p4, byte[] p5)
    {
        try {
            if (ark>com.sophos.jbase.iark>.d != null) {
                ark>com.sophos.jbase.iark>.d.initCipher(1, p5);
                String v5_10 = ark>com.sophos.jbase.iark>.d.getKey();
                if (v5_10 != null) {
                    if ((p4.exists()) && (!p4.delete())) {
                        com.sophos.smsec.core.smsectrace.d.d("JBASE", "Unexpected error.");
                    }
                    String v0_5 = 0;
                    try {
                        String v1_2 = new java.io.ObjectOutputStream(new javax.crypto.CipherOutputStream(new java.io.FileOutputStream(p4), v5_10));
                        try {
                            v1_2.writeObject(ark>com.sophos.jbase.iark>.h);
                            try {
                                v1_2.close();
                                String v5_12 = new StringBuilder();
                                v5_12.append("writing corp key back to file (");
                                v5_12.append(ark>com.sophos.jbase.iark>.d.getClass().getCanonicalName());
                                v5_12.append(").");
                                com.sophos.smsec.core.smsectrace.d.b("JBASE", v5_12.toString());
                            } catch (java.io.IOException v4_5) {
                                String v5_3 = "JBASE";
                                String v0_7 = "Error while closing stream.";
                                com.sophos.smsec.core.smsectrace.d.c(v5_3, v0_7, v4_5);
                            }
                        } catch (java.io.IOException v4_4) {
                            v0_5 = v1_2;
                            if (v0_5 == null) {
                                String v0_15 = new StringBuilder();
                                v0_15.append("writing corp key back to file (");
                                v0_15.append(ark>com.sophos.jbase.iark>.d.getClass().getCanonicalName());
                                v0_15.append(").");
                                com.sophos.smsec.core.smsectrace.d.b("JBASE", v0_15.toString());
                            } else {
                                try {
                                    v0_5.close();
                                } catch (String v5_8) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error while closing stream.", v5_8);
                                }
                            }
                            throw v4_4;
                        } catch (java.io.IOException v4_2) {
                            v0_5 = v1_2;
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error writing key.", v4_2);
                            if (v0_5 != null) {
                                try {
                                    v0_5.close();
                                } catch (java.io.IOException v4_5) {
                                    v5_3 = "JBASE";
                                    v0_7 = "Error while closing stream.";
                                }
                            }
                            String v5_5 = new StringBuilder();
                            v5_5.append("writing corp key back to file (");
                            v5_5.append(ark>com.sophos.jbase.iark>.d.getClass().getCanonicalName());
                            v5_5.append(").");
                            com.sophos.smsec.core.smsectrace.d.b("JBASE", v5_5.toString());
                        }
                    } catch (java.io.IOException v4_4) {
                    } catch (java.io.IOException v4_2) {
                    }
                }
            }
        } catch (java.io.IOException v4_1) {
            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error while serializing key.", v4_1);
        }
        return;
    }

Method com.sophos.cloud.core.command.d.b() calling method java.io.FileOutputStream.<init>()


    public void b()
    {
        java.io.IOException v0_0 = android.util.Xml.newSerializer();
        try {
            String v2_7 = new java.io.FileOutputStream(this.b);
            try {
                v0_0.setOutput(v2_7, "UTF-8");
                v0_0.startDocument("UTF-8", Boolean.valueOf(0));
                v0_0.startTag("", "SMARTMAN");
                String v1_5 = this.d.iterator();
            } catch (java.io.IOException v0_1) {
                if (v2_7 != null) {
                    try {
                        v2_7.close();
                    } catch (String v1_1) {
                        String v2_1 = new StringBuilder();
                        v2_1.append("could not close output stream for file \'");
                        v2_1.append(this.b.getAbsolutePath());
                        v2_1.append("\'");
                        com.sophos.smsec.core.smsectrace.d.b("RESULT", v2_1.toString(), v1_1);
                    }
                }
                throw v0_1;
            }
            while (v1_5.hasNext()) {
                String v3_16 = ((com.sophos.cloud.core.command.c) v1_5.next());
                v0_0.startTag("", "result");
                v0_0.attribute("", "command", v3_16.a());
                v0_0.attribute("", "result", v3_16.b());
                v0_0.attribute("", "transitionID", String.valueOf(v3_16.d()));
                v0_0.attribute("", "commandID", String.valueOf(v3_16.c()));
                String v3_18 = v3_16.e().iterator();
                while (v3_18.hasNext()) {
                    String v4_9 = ((com.sophos.mobilecontrol.client.android.command.definition.CommandParameter) v3_18.next());
                    v0_0.startTag("", "param");
                    v0_0.attribute("", "name", v4_9.getName());
                    v0_0.attribute("", "value", v4_9.getValue());
                    v0_0.endTag("", "param");
                }
                v0_0.endTag("", "result");
            }
            v0_0.endTag("", "SMARTMAN");
            v0_0.endDocument();
            try {
                v2_7.close();
            } catch (java.io.IOException v0_2) {
                String v2_5 = new StringBuilder();
                v2_5.append("could not close output stream for file \'");
                v2_5.append(this.b.getAbsolutePath());
                v2_5.append("\'");
                com.sophos.smsec.core.smsectrace.d.b("RESULT", v2_5.toString(), v0_2);
            }
            return;
        } catch (java.io.IOException v0_1) {
            v2_7 = 0;
        }
    }

Method com.sophos.cloud.core.c.e.a() calling method java.io.FileOutputStream.<init>()


    private boolean a(com.sophos.cloud.core.c.f p7, byte[] p8)
    {
        String v0_3 = this.b.getTempDirectory();
        java.io.File v1_2 = v0_3.listFiles();
        if (v1_2 != null) {
            String v3_4 = v1_2.length;
            int v4 = 0;
            while (v4 < v3_4) {
                v1_2[v4].delete();
                v4++;
            }
        }
        java.io.File v1_1 = new java.io.File(v0_3, org.apache.commons.io.FilenameUtils.getName(p7.b()));
        String v7_4 = 0;
        try {
            String v0_2 = new java.io.FileOutputStream(v1_1);
            try {
                v0_2.write(p8);
                v0_2.flush();
                v0_2.close();
                try {
                    v0_2.close();
                } catch (java.io.IOException) {
                    String v8_12 = new StringBuilder();
                    v8_12.append("cannot close file ");
                    v8_12.append(v1_1.toString());
                    com.sophos.smsec.core.smsectrace.d.d("REST", v8_12.toString());
                }
                return 1;
            } catch (String v7_7) {
                String v8_7 = v7_7;
                v7_4 = v0_2;
                if (v7_4 != null) {
                    try {
                        v7_4.close();
                    } catch (java.io.IOException) {
                        String v7_9 = new StringBuilder();
                        v7_9.append("cannot close file ");
                        v7_9.append(v1_1.toString());
                        com.sophos.smsec.core.smsectrace.d.d("REST", v7_9.toString());
                    }
                }
                throw v8_7;
            } catch (java.io.FileNotFoundException) {
                v7_4 = v0_2;
                String v0_10 = new StringBuilder();
                v0_10.append("cannot write file ");
                v0_10.append(v1_1.toString());
                com.sophos.smsec.core.smsectrace.d.d("REST", v0_10.toString());
                if (v7_4 != null) {
                    try {
                        v7_4.close();
                    } catch (java.io.IOException) {
                        String v8_9 = new StringBuilder();
                        v8_9.append("cannot close file ");
                        v8_9.append(v1_1.toString());
                        com.sophos.smsec.core.smsectrace.d.d("REST", v8_9.toString());
                    }
                }
                return 0;
            } catch (java.io.IOException) {
                v7_4 = v0_2;
                String v0_5 = new StringBuilder();
                v0_5.append("cannot write file ");
                v0_5.append(v1_1.toString());
                com.sophos.smsec.core.smsectrace.d.d("REST", v0_5.toString());
                if (v7_4 != null) {
                    try {
                        v7_4.close();
                    } catch (java.io.IOException) {
                        String v8_4 = new StringBuilder();
                        v8_4.append("cannot close file ");
                        v8_4.append(v1_1.toString());
                        com.sophos.smsec.core.smsectrace.d.d("REST", v8_4.toString());
                    }
                }
                return 0;
            }
        } catch (String v8_7) {
        }
    }

Method com.microsoft.aad.adal.StorageHelper.writeKeyData() calling method java.io.FileOutputStream.<init>()


    private void writeKeyData(byte[] p5)
    {
        com.microsoft.aad.adal.Logger.v("StorageHelper", "Writing key data to a file");
        java.io.FileOutputStream v1_3 = this.mContext;
        java.io.FileOutputStream v1_2 = new java.io.FileOutputStream(new java.io.File(v1_3.getDir(v1_3.getPackageName(), 0), "adalks"));
        try {
            v1_2.write(p5);
            v1_2.close();
            return;
        } catch (Throwable v5_1) {
            v1_2.close();
            throw v5_1;
        }
    }

Method com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.getUrandomOutputStream() calling method java.io.FileOutputStream.<init>()


    private java.io.OutputStream getUrandomOutputStream()
    {
        try {
            if (com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.sUrandomOut == null) {
                com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.sUrandomOut = new java.io.FileOutputStream(com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.URANDOM_FILE);
            }
        } catch (java.io.OutputStream v1_4) {
            throw v1_4;
        }
        return com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.sUrandomOut;
    }

Method com.google.android.gms.safetynet.SafeBrowsingData.f() calling method java.io.FileOutputStream.<init>()

Couldn't retrieve source code

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


    private final java.io.FileOutputStream a()
    {
        IllegalStateException v0_0 = this.f;
        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.b = android.os.ParcelFileDescriptor.open(v0_6, 268435456);
                    v0_6.delete();
                    return v1_3;
                } catch (java.io.FileNotFoundException) {
                    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.b = android.os.ParcelFileDescriptor.open(v0_6, 268435456);
            v0_6.delete();
            return v1_3;
        }
    }

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


    public void writeUserData(String p5, com.crashlytics.android.core.UserMetaData p6)
    {
        Exception v5_1 = this.getUserDataFileForSession(p5);
        String v0 = 0;
        try {
            io.fabric.sdk.android.k v6_3 = com.crashlytics.android.core.MetaDataStore.userDataToJson(p6);
            String v1_0 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(v5_1), com.crashlytics.android.core.MetaDataStore.UTF_8));
            try {
                v1_0.write(v6_3);
                v1_0.flush();
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_0, "Failed to close user metadata file.");
            } catch (Exception v5_5) {
                v0 = v1_0;
                io.fabric.sdk.android.services.common.CommonUtils.a(v0, "Failed to close user metadata file.");
                throw v5_5;
            } catch (Exception v5_2) {
                v0 = v1_0;
                io.fabric.sdk.android.c.g().e("CrashlyticsCore", "Error serializing user metadata.", v5_2);
                io.fabric.sdk.android.services.common.CommonUtils.a(v0, "Failed to close user metadata file.");
            }
            return;
        } catch (Exception v5_5) {
        } catch (Exception v5_2) {
        }
    }

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


    public void writeKeyData(String p5, java.util.Map p6)
    {
        Exception v5_1 = this.getKeysFileForSession(p5);
        String v0 = 0;
        try {
            io.fabric.sdk.android.k v6_3 = com.crashlytics.android.core.MetaDataStore.keysDataToJson(p6);
            String v1_0 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(v5_1), com.crashlytics.android.core.MetaDataStore.UTF_8));
            try {
                v1_0.write(v6_3);
                v1_0.flush();
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_0, "Failed to close key/value metadata file.");
            } catch (Exception v5_5) {
                v0 = v1_0;
                io.fabric.sdk.android.services.common.CommonUtils.a(v0, "Failed to close key/value metadata file.");
                throw v5_5;
            } catch (Exception v5_2) {
                v0 = v1_0;
                io.fabric.sdk.android.c.g().e("CrashlyticsCore", "Error serializing key/value metadata.", v5_2);
                io.fabric.sdk.android.services.common.CommonUtils.a(v0, "Failed to close key/value metadata file.");
            }
            return;
        } catch (Exception v5_5) {
        } catch (Exception v5_2) {
        }
    }

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


    private void writeFile(String p6, String p7, com.crashlytics.android.core.CrashlyticsController$FileOutputStreamWriteAction p8)
    {
        String v0 = 0;
        try {
            java.io.File v3 = this.getFilesDir();
            StringBuilder v4_1 = new StringBuilder();
            v4_1.append(p6);
            v4_1.append(p7);
            String v1_1 = new java.io.FileOutputStream(new java.io.File(v3, v4_1.toString()));
            try {
                p8.writeTo(v1_1);
                Throwable v6_4 = new StringBuilder();
                v6_4.append("Failed to close ");
                v6_4.append(p7);
                p7 = " file.";
                v6_4.append(" file.");
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_1, v6_4.toString());
                return;
            } catch (Throwable v6_2) {
                v0 = v1_1;
                StringBuilder v8_3 = new StringBuilder();
                v8_3.append("Failed to close ");
                v8_3.append(p7);
                v8_3.append(" file.");
                io.fabric.sdk.android.services.common.CommonUtils.a(v0, v8_3.toString());
                throw v6_2;
            }
        } catch (Throwable v6_2) {
        }
        p8.writeTo(v1_1);
        v6_4 = new StringBuilder();
        v6_4.append("Failed to close ");
        v6_4.append(p7);
        p7 = " file.";
        v6_4.append(" file.");
        io.fabric.sdk.android.services.common.CommonUtils.a(v1_1, v6_4.toString());
        return;
    }

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


    private void gzip(byte[] p4, java.io.File p5)
    {
        java.util.zip.GZIPOutputStream v0 = 0;
        try {
            java.util.zip.GZIPOutputStream v1_1 = new java.util.zip.GZIPOutputStream(new java.io.FileOutputStream(p5));
            try {
                v1_1.write(p4);
                v1_1.finish();
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_1);
                return;
            } catch (Throwable v4_1) {
                v0 = v1_1;
                io.fabric.sdk.android.services.common.CommonUtils.a(v0);
                throw v4_1;
            }
        } catch (Throwable v4_1) {
        }
        v1_1.write(p4);
        v1_1.finish();
        io.fabric.sdk.android.services.common.CommonUtils.a(v1_1);
        return;
    }

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


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

Method com.baidu.android.pushservice.richmedia.a.a() calling method java.io.FileOutputStream.<init>()


    private static void a(java.io.File p17, String p18)
    {
        try {
            int v8_0 = new java.io.FileInputStream(p17);
            try {
                int v9_1 = new java.io.BufferedInputStream(v8_0);
                try {
                    int v10_1 = new java.util.zip.ZipInputStream(v9_1);
                    java.io.FileOutputStream v11 = 0;
                    java.io.BufferedOutputStream v12 = 0;
                    try {
                        while(true) {
                            Throwable v0_2 = v10_1.getNextEntry();
                            v11 = java.io.FileOutputStream v1_0;
                            v12 = java.io.BufferedOutputStream v3_1;
                        }
                    } catch (Throwable v0_0) {
                        java.io.FileOutputStream v1_1 = new java.io.Closeable[5];
                        v1_1[0] = v8_0;
                        v1_1[1] = v10_1;
                        v1_1[2] = v11;
                        v1_1[3] = v12;
                        v1_1[4] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v1_1);
                        throw v0_0;
                    } catch (Exception) {
                        int v16_0 = v10_1;
                        String v2_1 = 2;
                        java.io.BufferedOutputStream v3_3 = 3;
                        int v7_2 = 4;
                        Throwable v0_4 = new java.io.Closeable[5];
                        v0_4[0] = v8_0;
                        v0_4[1] = v16_0;
                        v0_4[v2_1] = v11;
                        v0_4[v3_3] = v12;
                        v0_4[v7_2] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v0_4);
                        return;
                    }
                    if (v0_2 == null) {
                        v0_4 = new java.io.Closeable[5];
                        v0_4[0] = v8_0;
                        v0_4[1] = v10_1;
                        v0_4[2] = v11;
                        v0_4[3] = v12;
                        v0_4[4] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v0_4);
                        return;
                    } else {
                        int v7_3;
                        byte[] v14 = new byte[4096];
                        java.io.File v15_0 = v0_2.getName();
                        if (v15_0.length() <= 0) {
                            v7_3 = 0;
                        } else {
                            v7_3 = v15_0.split("/");
                        }
                        java.io.FileOutputStream v1_6 = new StringBuilder();
                        v1_6.append(p18);
                        v1_6.append("/");
                        v1_6.append(v7_3[(v7_3.length - 1)]);
                        java.io.File v15_2 = new java.io.File(v1_6.toString());
                        if (!v0_2.isDirectory()) {
                            Throwable v0_7 = new java.io.File(v15_2.getParent());
                            if (!v0_7.exists()) {
                                v0_7.mkdirs();
                            }
                            if (!v15_2.exists()) {
                                v15_2.createNewFile();
                            }
                            v1_0 = new java.io.FileOutputStream(v15_2);
                            try {
                                v3_1 = new java.io.BufferedOutputStream(v1_0, 4096);
                                try {
                                    while(true) {
                                        Throwable v0_1 = v10_1.read(v14, 0, 4096);
                                        v3_1.write(v14, 0, v0_1);
                                    }
                                    v3_1.flush();
                                } catch (Throwable v0_0) {
                                    v11 = v1_0;
                                    v12 = v3_1;
                                } catch (Exception) {
                                }
                                if (v0_1 != -1) {
                                }
                            } catch (Throwable v0_0) {
                                v11 = v1_0;
                            } catch (Exception) {
                                v11 = v1_0;
                            }
                        }
                    }
                } catch (Throwable v0_0) {
                    v10_1 = 0;
                    v11 = 0;
                    v12 = 0;
                } catch (Exception) {
                    v2_1 = 2;
                    v3_3 = 3;
                    v7_2 = 4;
                    v11 = 0;
                    v12 = 0;
                    v16_0 = 0;
                }
            } catch (Throwable v0_0) {
                v9_1 = 0;
            } catch (Exception) {
                v2_1 = 2;
                v3_3 = 3;
                v7_2 = 4;
                v9_1 = 0;
            }
        } catch (Throwable v0_0) {
            v8_0 = 0;
        } catch (Exception) {
            v2_1 = 2;
            v3_3 = 3;
            v7_2 = 4;
            v8_0 = 0;
        }
    }

Method com.baidu.android.pushservice.i.a.a() calling method java.io.FileOutputStream.<init>()


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = ark>com.baidu.android.pushservice.i.aark>.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.airbnb.lottie.network.a.a() calling method java.io.FileOutputStream.<init>()


    java.io.File a(java.io.InputStream p5, com.airbnb.lottie.network.FileExtension p6)
    {
        Throwable v0_3 = new java.io.File(this.a.getCacheDir(), ark>com.airbnb.lottie.network.aark>.a(this.b, p6, 1));
        try {
            Throwable v6_1 = new java.io.FileOutputStream(v0_3);
            try {
                byte[] v1_2 = new byte[1024];
            } catch (Throwable v0_1) {
                v6_1.close();
                throw v0_1;
            }
            while(true) {
                int v2 = p5.read(v1_2);
                if (v2 == -1) {
                    break;
                }
                v6_1.write(v1_2, 0, v2);
            }
            v6_1.flush();
            v6_1.close();
            p5.close();
            return v0_3;
        } catch (Throwable v6_2) {
            p5.close();
            throw v6_2;
        }
    }

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

Couldn't retrieve source code

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


    protected varargs Throwable doInBackground(Void[] p8)
    {
        try {
            if (!this.val$cancellationSignal.isCanceled()) {
                android.graphics.Bitmap v8_10 = new android.print.pdf.PrintedPdfDocument(this.this$0.mContext, this.val$pdfAttributes);
                android.graphics.Bitmap v1_1 = android.support.v4.print.PrintHelper.convertBitmapForColorMode(this.val$bitmap, this.val$pdfAttributes.getColorMode());
                if (!this.val$cancellationSignal.isCanceled()) {
                    try {
                        java.io.FileOutputStream v2_6;
                        java.io.FileDescriptor v3_0 = v8_10.startPage(1);
                    } catch (Throwable v0_1) {
                        v8_10.close();
                        if (this.val$fileDescriptor != null) {
                            this.val$fileDescriptor.close();
                        }
                        if (v1_1 != this.val$bitmap) {
                            v1_1.recycle();
                        }
                        throw v0_1;
                    }
                    if (!android.support.v4.print.PrintHelper.IS_MIN_MARGINS_HANDLING_CORRECT) {
                        android.graphics.Matrix v4_2 = new android.print.pdf.PrintedPdfDocument(this.this$0.mContext, this.val$attributes);
                        java.io.FileOutputStream v2_5 = v4_2.startPage(1);
                        android.graphics.Canvas v5_3 = new android.graphics.RectF(v2_5.getInfo().getContentRect());
                        v4_2.finishPage(v2_5);
                        v4_2.close();
                        v2_6 = v5_3;
                    } else {
                        v2_6 = new android.graphics.RectF(v3_0.getInfo().getContentRect());
                    }
                    android.graphics.Matrix v4_6 = android.support.v4.print.PrintHelper.getMatrix(v1_1.getWidth(), v1_1.getHeight(), v2_6, this.val$fittingMode);
                    if (!android.support.v4.print.PrintHelper.IS_MIN_MARGINS_HANDLING_CORRECT) {
                        v4_6.postTranslate(v2_6.left, v2_6.top);
                        v3_0.getCanvas().clipRect(v2_6);
                    } else {
                    }
                    v3_0.getCanvas().drawBitmap(v1_1, v4_6, 0);
                    v8_10.finishPage(v3_0);
                    if (!this.val$cancellationSignal.isCanceled()) {
                        v8_10.writeTo(new java.io.FileOutputStream(this.val$fileDescriptor.getFileDescriptor()));
                        v8_10.close();
                        if (this.val$fileDescriptor != null) {
                            this.val$fileDescriptor.close();
                        }
                        if (v1_1 != this.val$bitmap) {
                            v1_1.recycle();
                        }
                        return 0;
                    } else {
                        v8_10.close();
                        if (this.val$fileDescriptor != null) {
                            this.val$fileDescriptor.close();
                        }
                        if (v1_1 != this.val$bitmap) {
                            v1_1.recycle();
                        }
                        return 0;
                    }
                } else {
                    return 0;
                }
            } else {
                return 0;
            }
        } catch (android.graphics.Bitmap v8_2) {
            return v8_2;
        }
    }

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


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

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


    public void a(long p4, org.json.JSONObject p6)
    {
        io.fabric.sdk.android.c.g().a("Fabric", "Writing settings to cache file...");
        if (p6 != null) {
            String v0_1 = 0;
            try {
                p6.put("expires_at", p4);
                String v4_1 = new java.io.FileWriter(new java.io.File(new io.fabric.sdk.android.services.c.b(this.a).a(), "com.crashlytics.settings.json"));
                try {
                    v4_1.write(p6.toString());
                    v4_1.flush();
                    io.fabric.sdk.android.services.common.CommonUtils.a(v4_1, "Failed to close settings writer.");
                } catch (Exception v5_5) {
                    v0_1 = v4_1;
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close settings writer.");
                    throw v5_5;
                } catch (Exception v5_2) {
                    v0_1 = v4_1;
                    io.fabric.sdk.android.c.g().e("Fabric", "Failed to cache settings", v5_2);
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close settings writer.");
                }
            } catch (Exception v5_5) {
            } catch (Exception v5_2) {
            }
        }
        return;
    }

Method com.sophos.smsec.plugin.webfiltering.b.b() calling method java.io.FileWriter.<init>()


    public static void b(android.content.Context p6)
    {
        Throwable v0_1;
        if (android.os.Build$VERSION.SDK_INT >= 23) {
            v0_1 = 0;
        } else {
            v0_1 = 1;
        }
        try {
            Throwable v6_5 = p6.openFileOutput("smsec_service.html", v0_1);
            Throwable v0_2 = 0;
            try {
                Throwable v1_1 = new java.io.FileWriter(v6_5.getFD());
                try {
                    Throwable v2_2 = new java.io.BufferedWriter(v1_1);
                    try {
                        v2_2.write("<html><head><script type=\"text/javascript\">window.history.go(-2);</script></head><body></body></html>\n");
                    } catch (Throwable v3_2) {
                        Throwable v4_1 = 0;
                        if (v4_1 == null) {
                            v2_2.close();
                        } else {
                            try {
                                v2_2.close();
                            } catch (Throwable v2_3) {
                                v4_1.addSuppressed(v2_3);
                            }
                        }
                        throw v3_2;
                    } catch (Throwable v3_1) {
                        try {
                            throw v3_1;
                        } catch (Throwable v4_0) {
                            v4_1 = v3_1;
                            v3_2 = v4_0;
                        }
                    }
                    v2_2.close();
                    v1_1.close();
                    if (v6_5 == null) {
                        return;
                    } else {
                        v6_5.close();
                        return;
                    }
                } catch (Throwable v2_5) {
                    Throwable v3_4 = 0;
                    if (v3_4 == null) {
                        v1_1.close();
                    } else {
                        try {
                            v1_1.close();
                        } catch (Throwable v1_2) {
                            v3_4.addSuppressed(v1_2);
                        }
                    }
                    throw v2_5;
                } catch (Throwable v2_4) {
                    try {
                        throw v2_4;
                    } catch (Throwable v3_3) {
                        v3_4 = v2_4;
                        v2_5 = v3_3;
                    }
                }
            } catch (Throwable v1_4) {
                if (v6_5 != null) {
                    if (v0_2 == null) {
                        v6_5.close();
                    } else {
                        try {
                            v6_5.close();
                        } catch (Throwable v6_1) {
                            v0_2.addSuppressed(v6_1);
                        }
                    }
                }
                throw v1_4;
            } catch (Throwable v0_2) {
                throw v0_2;
            }
        } catch (Throwable v6_4) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "File not found exeception", v6_4);
            return;
        } catch (Throwable v6_3) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "IO exeception", v6_3);
            return;
        } catch (Throwable v6_2) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "Global exeception", v6_2);
            return;
        }
    }

Method com.sophos.smsec.plugin.appprotection.l.a() calling method java.io.FileWriter.<init>()


    public static java.io.File a(android.content.Context p5, String p6)
    {
        try {
            java.io.IOException v5_1 = ark>com.sophos.smsec.plugin.appprotection.lark>.a(p5);
        } catch (java.io.IOException v5_3) {
            com.sophos.smsec.core.smsectrace.d.c("AppProtection", "Error creating trace file \'sophos_mobile_security_app_protection_recovery.html\'. ", v5_3);
            return 0;
        } catch (java.io.IOException v5_2) {
            com.sophos.smsec.core.smsectrace.d.c("AppProtection", "Error creating trace file.\'sophos_mobile_security_app_protection_recovery.html\'. ", v5_2);
            return 0;
        }
        if ((v5_1.exists()) && ((v5_1.length() > 0) && (!Boolean.valueOf(v5_1.delete()).booleanValue()))) {
            com.sophos.smsec.core.smsectrace.d.d("AppProtection", "cannot delete file:\'sophos_mobile_security_app_protection_recovery.html\'. ");
        }
        String v1_7 = new java.io.FileOutputStream(v5_1, v5_1.exists());
        String v2_3 = new java.io.FileWriter(v1_7.getFD());
        java.io.BufferedWriter v3_2 = new java.io.BufferedWriter(v2_3);
        v3_2.write(p6);
        v3_2.close();
        v2_3.close();
        v1_7.close();
        return v5_1;
    }

Method com.sophos.smsec.core.smsectrace.d.b() calling method java.io.FileWriter.<init>()


    public static void b(android.content.Context p9, String p10)
    {
        if (com.sophos.smsec.core.smsectrace.d.c == null) {
            com.sophos.smsec.core.smsectrace.d.c = p9;
        }
        java.io.BufferedWriter v9_1 = 0;
        try {
            java.io.FileWriter v1_0 = new java.io.File(com.sophos.smsec.core.smsectrace.d.c(com.sophos.smsec.core.smsectrace.d.c), org.apache.commons.io.FilenameUtils.getName(p10));
        } catch (String v10_49) {
            java.io.BufferedWriter v3_2 = 0;
            if (v3_2 != null) {
                try {
                    v3_2.close();
                } catch (java.io.BufferedWriter v9_4) {
                    android.util.Log.e("Sophos", "Cleanup of IOstream really failed.", v9_4);
                }
            }
            throw v10_49;
        } catch (String v10_46) {
            v3_2 = 0;
            if (com.sophos.smsec.core.smsectrace.d.c != null) {
                com.sophos.smsec.core.smsectrace.d.d(com.sophos.smsec.core.smsectrace.d.a(com.sophos.smsec.core.smsectrace.d.c, 0));
            }
            com.sophos.smsec.core.smsectrace.d.a(0);
            String v0_2 = new StringBuilder();
            v0_2.append("Error cannot create file ");
            v0_2.append(com.sophos.smsec.core.smsectrace.d.g());
            v0_2.append(" in app folder.");
            android.util.Log.e("Sophos", v0_2.toString(), v10_46);
            if (v3_2 == null) {
                return;
            } else {
                v3_2.close();
                return;
            }
            if (v9_1 == null) {
                return;
            } else {
                v9_1.close();
                return;
            }
        } catch (String v10_49) {
        } catch (java.io.BufferedWriter v9_5) {
            android.util.Log.e("Sophos", "Cleanup of IOstream really failed.", v9_5);
            return;
        }
        if ((v1_0.exists()) && ((v1_0.isDirectory()) && (!v1_0.delete()))) {
            android.util.Log.e("Sophos", "deleting blocking folder failed.");
        }
        if ((!v1_0.exists()) || (v1_0.length() <= 2)) {
            String v4_7;
            java.io.BufferedWriter v3_4 = new StringBuilder();
            v3_4.append("calling mkdirs returned ");
            if (!v1_0.getParentFile().mkdirs()) {
                v4_7 = "false";
            } else {
                v4_7 = "true";
            }
            v3_4.append(v4_7);
            android.util.Log.v("Sophos", v3_4.toString());
            java.io.FileOutputStream v2_10 = new java.io.FileOutputStream(v1_0);
            java.io.FileWriter v1_11 = new java.io.FileWriter(v2_10.getFD());
            v3_2 = new java.io.BufferedWriter(v1_11, 8192);
            try {
                String v4_10 = new StringBuilder();
                v4_10.append("Tracefile touched (app started or preference toggled) at ");
                v4_10.append(com.sophos.smsec.core.smsectrace.d.j());
                v4_10.append("\n");
                v4_10.append("This is ");
                v4_10.append(p10);
                v4_10.append("\n");
                v4_10.append("OS Version: ");
                v4_10.append(System.getProperty("os.version"));
                v4_10.append("(");
                v4_10.append(android.os.Build$VERSION.INCREMENTAL);
                v4_10.append(")\n");
                v4_10.append("OS API Level: ");
                v4_10.append(android.os.Build$VERSION.SDK_INT);
                v4_10.append(" (");
                v4_10.append(android.os.Build$VERSION.RELEASE);
                v4_10.append(")\n");
                v4_10.append("Device: ");
                v4_10.append(android.os.Build.DEVICE);
                v4_10.append(", Model (Product): ");
                v4_10.append(android.os.Build.MODEL);
                v4_10.append(" (");
                v4_10.append(android.os.Build.PRODUCT);
                v4_10.append(")\n");
                v4_10.append("Manufacturer: ");
                v4_10.append(android.os.Build.MANUFACTURER);
            } catch (String v10_46) {
            }
            if (android.os.Build$VERSION.SDK_INT < 23) {
                v4_10.append(", Release (Product): ");
                v4_10.append(android.os.Build$VERSION.RELEASE);
                v4_10.append(" (");
            } else {
                v4_10.append(", Base_OS (Release, Product): ");
                v4_10.append(android.os.Build$VERSION.BASE_OS);
                v4_10.append(" (");
                v4_10.append(android.os.Build$VERSION.RELEASE);
                v4_10.append(", ");
            }
            v4_10.append(android.os.Build$VERSION.INCREMENTAL);
            v4_10.append(")\n");
            if (com.sophos.smsec.core.smsectrace.d.c != null) {
                String v10_20 = com.sophos.smsec.core.smsectrace.d.c.getResources().getDisplayMetrics();
                v4_10.append("Display (px): ");
                v4_10.append(v10_20.widthPixels);
                v4_10.append(" wide and ");
                v4_10.append(v10_20.heightPixels);
                v4_10.append(" high. ");
                v4_10.append(v10_20.densityDpi);
                v4_10.append(" densityDpi \n");
                String v10_25 = com.sophos.smsec.core.smsectrace.d.c.getResources().getConfiguration();
                v4_10.append("Display (dp): ");
                v4_10.append(v10_25.screenWidthDp);
                v4_10.append(" wide and ");
                v4_10.append(v10_25.screenHeightDp);
                v4_10.append(" high. Font scale = ");
                v4_10.append(v10_25.fontScale);
                v4_10.append("\n");
                if (android.os.Build$VERSION.SDK_INT < 24) {
                    v4_10.append("Locale: ");
                    v4_10.append(v10_25.locale);
                    v4_10.append(" \n");
                } else {
                    v4_10.append("Locale: ");
                    v4_10.append(v10_25.getLocales().get(0));
                    String v5_18 = 1;
                    while (v5_18 < v10_25.getLocales().size()) {
                        v4_10.append(", ");
                        v4_10.append(v10_25.getLocales().get(v5_18));
                        v5_18++;
                    }
                    v4_10.append(" \n");
                }
                try {
                    String v10_31 = com.sophos.smsec.core.smsectrace.d.c.getPackageManager().getPackageInfo(com.sophos.smsec.core.smsectrace.d.c.getPackageName(), 128);
                    v4_10.append("Sophos App (version, build): ");
                    v4_10.append(v10_31.packageName);
                    v4_10.append(" (");
                    v4_10.append(v10_31.versionName);
                    v4_10.append(", ");
                    v4_10.append(v10_31.versionCode);
                    v4_10.append(")\n");
                } catch (String v10_33) {
                    v4_10.append("Sophos App unknown: ");
                    v4_10.append(v10_33.getMessage());
                    v4_10.append("\n");
                }
                if (v10_31.lastUpdateTime <= v10_31.firstInstallTime) {
                    v4_10.append("Installed: ");
                    v4_10.append(v10_31.firstInstallTime);
                } else {
                    v4_10.append("Installed (updated): ");
                    v4_10.append(v10_31.firstInstallTime);
                    v4_10.append(" (");
                    v4_10.append(v10_31.lastUpdateTime);
                    v4_10.append(")");
                }
            }
            if (v4_10.length() > 568) {
                String v10_38 = new StringBuilder();
                v10_38.append(v4_10.toString().substring(0, 568));
                v10_38.append("\n\n");
                v3_2.write(v10_38.toString());
            } else {
                String v10_41 = new char[(568 - v4_10.length())];
                v4_10.append(String.valueOf(v10_41).replace(0, 32));
                v4_10.append("\n\n");
                v3_2.write(v4_10.toString());
            }
            v3_2.close();
            v1_11.close();
            v2_10.close();
            v9_1 = v3_2;
        } else {
            java.io.FileWriter v1_2 = new StringBuilder();
            v1_2.append("Trace file \'");
            v1_2.append(p10);
            v1_2.append("\' already exists. ");
            com.sophos.smsec.core.smsectrace.d.f(v1_2.toString());
        }
    }

Method com.sophos.smsec.core.smsectrace.d.a() calling method java.io.FileWriter.<init>()


    protected static void a(String p10, String p11, int p12, Throwable p13)
    {
        char[] v0_1 = new char[8];
        v0_1 = {32, 32, 86, 68, 73, 87, 69, 65};
        java.io.BufferedWriter v1_2 = 0;
        try {
            java.io.BufferedWriter v2_0 = new java.io.File(ark>com.sophos.smsec.core.smsectrace.dark>.c(ark>com.sophos.smsec.core.smsectrace.dark>.c), org.apache.commons.io.FilenameUtils.getName(ark>com.sophos.smsec.core.smsectrace.dark>.g()));
        } catch (Throwable v10_1) {
            if (v1_2 != null) {
                try {
                    v1_2.close();
                } catch (String v11_11) {
                    ark>com.sophos.smsec.core.smsectrace.dark>.c("Cleanup of IOstream really failed.", v11_11);
                }
            }
            throw v10_1;
        } catch (String v11_1) {
            String v12_6 = new StringBuilder();
            v12_6.append("Memory shortage while copying log to file ");
            v12_6.append(v11_1.getMessage());
            android.util.Log.e(p10, v12_6.toString());
            if (v1_2 == null) {
                return;
            } else {
                v1_2.close();
                return;
            }
        } catch (Throwable v10_2) {
            ark>com.sophos.smsec.core.smsectrace.dark>.c("Cleanup of IOstream really failed.", v10_2);
            return;
        }
        if ((v2_0.exists()) && (v2_0.isDirectory())) {
            if (!v2_0.delete()) {
                android.util.Log.e("Sophos", "deleting blocking folder failed.");
            } else {
                ark>com.sophos.smsec.core.smsectrace.dark>.b(ark>com.sophos.smsec.core.smsectrace.dark>.c, ark>com.sophos.smsec.core.smsectrace.dark>.g());
            }
        }
        if (!v2_0.exists()) {
            ark>com.sophos.smsec.core.smsectrace.dark>.b(ark>com.sophos.smsec.core.smsectrace.dark>.c, ark>com.sophos.smsec.core.smsectrace.dark>.g());
        } else {
            if (v2_0.length() > ((long) ark>com.sophos.smsec.core.smsectrace.dark>.a)) {
                String v5_9;
                String v5_7 = ark>com.sophos.smsec.core.smsectrace.dark>.c(ark>com.sophos.smsec.core.smsectrace.dark>.c);
                java.io.File v6_1 = new StringBuilder();
                v6_1.append(ark>com.sophos.smsec.core.smsectrace.dark>.g());
                v6_1.append(".old.sophos.log");
                String v3_19 = new java.io.File(v5_7, v6_1.toString());
                if (!v3_19.exists()) {
                    v5_9 = 1;
                } else {
                    v5_9 = v3_19.delete();
                }
                boolean v7_4 = ark>com.sophos.smsec.core.smsectrace.dark>.c(ark>com.sophos.smsec.core.smsectrace.dark>.c);
                String v8_1 = new StringBuilder();
                v8_1.append(ark>com.sophos.smsec.core.smsectrace.dark>.g());
                v8_1.append(".old.zip");
                java.io.File v6_4 = new java.io.File(v7_4, v8_1.toString());
                if (v6_4.exists()) {
                    v5_9 = v6_4.delete();
                }
                if (v5_9 == null) {
                    String v3_22 = new StringBuilder();
                    v3_22.append("Error cannot delete old trace file");
                    v3_22.append(ark>com.sophos.smsec.core.smsectrace.dark>.g());
                    v3_22.append(".old in app folder.");
                    android.util.Log.e(p10, v3_22.toString());
                    ark>com.sophos.smsec.core.smsectrace.dark>.a(v2_0);
                } else {
                    if ((!ark>com.sophos.smsec.core.smsectrace.dark>.a(v2_0, v6_4)) && ((!v2_0.renameTo(v3_19)) && (!v2_0.delete()))) {
                        String v3_3 = new StringBuilder();
                        v3_3.append("Error cannot rename trace file");
                        v3_3.append(ark>com.sophos.smsec.core.smsectrace.dark>.g());
                        v3_3.append(" in app folder.");
                        android.util.Log.e(p10, v3_3.toString());
                        ark>com.sophos.smsec.core.smsectrace.dark>.a(v2_0);
                    }
                }
                ark>com.sophos.smsec.core.smsectrace.dark>.b(ark>com.sophos.smsec.core.smsectrace.dark>.c, ark>com.sophos.smsec.core.smsectrace.dark>.g());
            }
        }
        String v3_7 = new java.io.FileWriter(v2_0, 1);
        java.io.BufferedWriter v2_2 = new java.io.BufferedWriter(v3_7, 8192);
        try {
            java.io.BufferedWriter v1_1 = new StringBuilder();
            v1_1.append(p10);
            v1_1.append("; ");
            v1_1.append(ark>com.sophos.smsec.core.smsectrace.dark>.j());
            v1_1.append("; ");
            v1_1.append(v0_1[p12]);
            v1_1.append("; ");
            v1_1.append(p11);
            v2_2.write(v1_1.toString());
            v2_2.newLine();
        } catch (Throwable v10_1) {
            v1_2 = v2_2;
        } catch (java.io.IOException) {
            v1_2 = v2_2;
            String v11_9 = new StringBuilder();
            v11_9.append("Error cannot create file ");
            v11_9.append(ark>com.sophos.smsec.core.smsectrace.dark>.g());
            v11_9.append(" in app folder.");
            android.util.Log.e(p10, v11_9.toString());
            if (v1_2 == null) {
                return;
            } else {
                v1_2.close();
                return;
            }
        } catch (String v11_1) {
            v1_2 = v2_2;
        }
        if (p13 != null) {
            String v11_4 = new StringBuilder();
            v11_4.append("Exception: ");
            v11_4.append(p13.toString());
            v2_2.write(v11_4.toString());
            v2_2.newLine();
        }
        v2_2.close();
        v3_7.close();
        v2_2.close();
        return;
    }

Method com.sophos.smsec.core.smsectrace.d.a() calling method java.io.FileWriter.<init>()


    static void a(java.io.File p3)
    {
        try {
            if ((p3 == null) || (!p3.exists())) {
                ark>com.sophos.smsec.core.smsectrace.dark>.d("Sophos", "file does not exist, nothing to clear.");
            } else {
                java.io.FileOutputStream v0_4 = new java.io.FileOutputStream(p3);
                java.io.FileWriter v3_1 = new java.io.FileWriter(v0_4.getFD());
                v3_1.write(10);
                v3_1.close();
                v0_4.close();
            }
        } catch (java.io.FileWriter v3_2) {
            int v1_3 = new StringBuilder();
            v1_3.append("Error cannot create empty file ");
            v1_3.append(ark>com.sophos.smsec.core.smsectrace.dark>.g());
            v1_3.append(".");
            android.util.Log.e("Sophos", v1_3.toString(), v3_2);
        }
        return;
    }

Method com.sophos.smsec.core.smsectrace.a.a() calling method java.io.FileWriter.<init>()


    public final void a(android.content.Context p8, org.json.JSONObject p9)
    {
        String v8_1 = com.sophos.smsec.core.smsectrace.d.c(p8);
        try {
            java.io.BufferedWriter v0_4 = new java.io.File(v8_1, ark>com.sophos.smsec.core.smsectrace.aark>.c);
        } catch (String v8_2) {
            String v9_4 = new StringBuilder();
            v9_4.append("Error cannot Create file ");
            v9_4.append(ark>com.sophos.smsec.core.smsectrace.aark>.c);
            v9_4.append(" in app folder.");
            com.sophos.smsec.core.smsectrace.d.c(v9_4.toString(), v8_2);
            return;
        }
        if (!v0_4.exists()) {
            com.sophos.smsec.core.smsectrace.d.b(this.a, ark>com.sophos.smsec.core.smsectrace.aark>.c);
        } else {
            if (v0_4.length() > 571) {
                String v8_4;
                String v3_2 = new StringBuilder();
                v3_2.append(ark>com.sophos.smsec.core.smsectrace.aark>.c);
                v3_2.append(".old.sophos.log");
                StringBuilder v1_4 = new java.io.File(v8_1, v3_2.toString());
                if (!v1_4.exists()) {
                    v8_4 = 1;
                } else {
                    v8_4 = v1_4.delete();
                }
                if (v8_4 == null) {
                    String v8_6 = new StringBuilder();
                    v8_6.append("Error cannot delete old crash file");
                    v8_6.append(ark>com.sophos.smsec.core.smsectrace.aark>.c);
                    v8_6.append(".old in app folder.");
                    com.sophos.smsec.core.smsectrace.d.h(v8_6.toString());
                    com.sophos.smsec.core.smsectrace.d.a(v0_4);
                } else {
                    if ((!v0_4.renameTo(v1_4)) && (!v0_4.delete())) {
                        String v8_11 = new StringBuilder();
                        v8_11.append("Error cannot rename crash file");
                        v8_11.append(ark>com.sophos.smsec.core.smsectrace.aark>.c);
                        v8_11.append(" in app folder.");
                        com.sophos.smsec.core.smsectrace.d.h(v8_11.toString());
                        com.sophos.smsec.core.smsectrace.d.a(v0_4);
                    }
                }
                com.sophos.smsec.core.smsectrace.d.b(this.a, ark>com.sophos.smsec.core.smsectrace.aark>.c);
            }
        }
        if (v0_4.exists()) {
            String v8_16 = new StringBuilder();
            v8_16.append("writing crash log to file ");
            v8_16.append(ark>com.sophos.smsec.core.smsectrace.aark>.c);
            com.sophos.smsec.core.smsectrace.d.h(v8_16.toString());
        } else {
            String v8_19 = new StringBuilder();
            v8_19.append("Error cannot write to file ");
            v8_19.append(ark>com.sophos.smsec.core.smsectrace.aark>.c);
            v8_19.append(" in app folder.");
            com.sophos.smsec.core.smsectrace.d.h(v8_19.toString());
        }
        String v8_23 = new java.io.FileWriter(v0_4, 1);
        java.io.BufferedWriter v0_6 = new java.io.BufferedWriter(v8_23, 8192);
        try {
            v0_6.write(p9.toString(1));
        } catch (String v9_7) {
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("JSON export error: ");
            v1_1.append(v9_7.getMessage());
            v0_6.write(v1_1.toString());
        }
        v0_6.flush();
        v0_6.close();
        v8_23.close();
        return;
    }

Method com.sophos.smsec.core.datastore.log.a.c() calling method java.io.FileWriter.<init>()


    private static java.io.File c(android.content.Context p8)
    {
        try {
            int v3_3 = new java.io.File(com.sophos.smsec.core.datastore.log.a.a(p8), "smsec.log.log");
            try {
                if ((v3_3.exists()) && ((v3_3.length() > 0) && (!v3_3.delete()))) {
                    com.sophos.smsec.core.smsectrace.d.h("cannot delete file:\'smsec.log.log\'. ");
                }
            } catch (java.io.FileOutputStream v8_1) {
                Object[] v1_1 = new Object[1];
                v1_1[0] = com.sophos.smsec.core.datastore.log.a.c();
                com.sophos.smsec.core.smsectrace.d.c(String.format("Error creating trace file \'%s\'. ", v1_1), v8_1);
                return v3_3;
            }
            if (v3_3.exists()) {
                return v3_3;
            } else {
                java.io.FileOutputStream v8_4 = p8.openFileOutput("smsec.log.log", 32768);
                String v4_12 = new java.io.FileWriter(v8_4.getFD());
                java.io.BufferedWriter v5_4 = new java.io.BufferedWriter(v4_12, 8192);
                String v6_3 = new StringBuilder();
                v6_3.append("Log entries exported  at ");
                v6_3.append(com.sophos.smsec.core.smsectrace.d.j());
                v6_3.append("\n");
                v5_4.write(v6_3.toString());
                v5_4.close();
                v4_12.close();
                v8_4.close();
                return v3_3;
            }
        } catch (java.io.FileOutputStream v8_3) {
            Object[] v1_3 = new Object[1];
            v1_3[0] = com.sophos.smsec.core.datastore.log.a.c();
            com.sophos.smsec.core.smsectrace.d.c(String.format("Error creating trace file \'%s\'. ", v1_3), v8_3);
            return 0;
        } catch (java.io.FileOutputStream v8_2) {
            Object[] v1_2 = new Object[1];
            v1_2[0] = com.sophos.smsec.core.datastore.log.a.c();
            com.sophos.smsec.core.smsectrace.d.c(String.format("Error creating trace file \'%s\'. ", v1_2), v8_2);
            return 0;
        } catch (java.io.FileOutputStream v8_1) {
            v3_3 = 0;
        }
    }

Method com.sophos.smsec.core.datastore.log.a.b() calling method java.io.FileWriter.<init>()


    public static java.io.File b(android.content.Context p12)
    {
        boolean v0_0 = com.sophos.smsec.core.datastore.DataStore.a(p12);
        String v1_0 = com.sophos.smsec.core.datastore.log.a.c(p12);
        String v2_11 = 0;
        if (v1_0 != null) {
            try {
                int v3 = v0_0.l();
            } catch (Throwable v12_1) {
                v3 = 0;
                java.io.FileWriter v7_0 = 0;
                if (v2_11 != null) {
                    try {
                        v2_11.close();
                    } catch (boolean v0_10) {
                        com.sophos.smsec.core.smsectrace.d.c("Error closing output stream.", v0_10);
                    }
                }
                if (v7_0 != null) {
                    try {
                        v7_0.close();
                    } catch (boolean v0_11) {
                        com.sophos.smsec.core.smsectrace.d.c("Error closing output stream.", v0_11);
                    }
                }
                if (v3 != 0) {
                    if (!v3.isClosed()) {
                        v3.close();
                    }
                }
                throw v12_1;
            } catch (boolean v0_6) {
                v3 = 0;
                v7_0 = 0;
                int v4_4 = new StringBuilder();
                v4_4.append("Error writing data into file ");
                v4_4.append(com.sophos.smsec.core.datastore.log.a.c());
                com.sophos.smsec.core.smsectrace.d.c(v4_4.toString(), v0_6);
                if (v2_11 != null) {
                    try {
                        v2_11.close();
                    } catch (boolean v0_7) {
                        com.sophos.smsec.core.smsectrace.d.c("Error closing output stream.", v0_7);
                    }
                }
                if (v7_0 != null) {
                    try {
                        v7_0.close();
                    } catch (boolean v0_8) {
                        com.sophos.smsec.core.smsectrace.d.c("Error closing output stream.", v0_8);
                    }
                }
                if (v3 == 0) {
                    com.sophos.smsec.core.datastore.log.SMSecLog.a(com.sophos.smsec.core.datastore.log.SMSecLog$LogType.LOGTYPE_APPLICATION, p12.getString(com.sophos.smsec.core.datastore.e$c.log_exported_log_to_email_clients));
                    return v1_0;
                } else {
                    if (v3.isClosed()) {
                        com.sophos.smsec.core.datastore.log.SMSecLog.a(com.sophos.smsec.core.datastore.log.SMSecLog$LogType.LOGTYPE_APPLICATION, p12.getString(com.sophos.smsec.core.datastore.e$c.log_exported_log_to_email_clients));
                        return v1_0;
                    } else {
                        v3.close();
                        com.sophos.smsec.core.datastore.log.SMSecLog.a(com.sophos.smsec.core.datastore.log.SMSecLog$LogType.LOGTYPE_APPLICATION, p12.getString(com.sophos.smsec.core.datastore.e$c.log_exported_log_to_email_clients));
                        return v1_0;
                    }
                }
            } catch (Throwable v12_1) {
            }
            if (v3 != 0) {
                try {
                    if (v3.getCount() != 0) {
                        int v4_2 = com.sophos.smsec.core.datastore.DataStore$TableColumn.TIMESTAMP.getColumnIndex(v3);
                        int v5_1 = com.sophos.smsec.core.datastore.DataStore$TableColumn.TYPE.getColumnIndex(v3);
                        int v6_1 = com.sophos.smsec.core.datastore.DataStore$TableColumn.DESCRIPTION.getColumnIndex(v3);
                        java.io.BufferedWriter v8_1 = new StringBuilder();
                        v8_1.append(com.sophos.smsec.core.datastore.log.a.a(p12));
                        v8_1.append(java.io.File.separator);
                        v8_1.append(com.sophos.smsec.core.datastore.log.a.c());
                        v7_0 = new java.io.FileWriter(v8_1.toString(), 1);
                        try {
                            java.io.BufferedWriter v8_4 = new java.io.BufferedWriter(v7_0, 8192);
                            try {
                                while ((v3.moveToNext()) && ((!com.sophos.smsec.core.datastore.DataStore$Table.LOG.hasHash()) || (v0_0.a(v3)))) {
                                    String v2_4 = com.sophos.smsec.core.datastore.log.SMSecLog$LogType.getStringResourceId(v3.getInt(v5_1));
                                    StringBuilder v9_1 = new StringBuilder();
                                    v9_1.append(p12.getString(v2_4));
                                    v9_1.append("; ");
                                    v9_1.append(com.sophos.smsec.core.datastore.log.a.a(v3.getLong(v4_2)));
                                    v9_1.append("; ");
                                    v9_1.append(v3.getString(v6_1));
                                    v8_4.write(v9_1.toString());
                                    v8_4.newLine();
                                }
                                try {
                                    v8_4.close();
                                    try {
                                        v7_0.close();
                                    } catch (boolean v0_3) {
                                        com.sophos.smsec.core.smsectrace.d.c("Error closing output stream.", v0_3);
                                    }
                                    if ((v3 == 0) || (v3.isClosed())) {
                                        com.sophos.smsec.core.datastore.log.SMSecLog.a(com.sophos.smsec.core.datastore.log.SMSecLog$LogType.LOGTYPE_APPLICATION, p12.getString(com.sophos.smsec.core.datastore.e$c.log_exported_log_to_email_clients));
                                        return v1_0;
                                    } else {
                                    }
                                } catch (boolean v0_2) {
                                    com.sophos.smsec.core.smsectrace.d.c("Error closing output stream.", v0_2);
                                }
                            } catch (Throwable v12_1) {
                                v2_11 = v8_4;
                            } catch (boolean v0_6) {
                                v2_11 = v8_4;
                            }
                        } catch (boolean v0_6) {
                        }
                    } else {
                        v3.close();
                        if ((v3 != 0) && (!v3.isClosed())) {
                            v3.close();
                        }
                        return 0;
                    }
                } catch (Throwable v12_1) {
                    v7_0 = 0;
                } catch (boolean v0_6) {
                    v7_0 = 0;
                }
            } else {
                if ((v3 != 0) && (!v3.isClosed())) {
                    v3.close();
                }
                return 0;
            }
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.j.e.g() calling method java.io.FileWriter.<init>()


    private static void g(String p8)
    {
        java.io.FileWriter v0_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig");
        java.io.File v1_2 = new java.io.File(v0_2, ".cuid2");
        try {
            if ((v0_2.exists()) && (!v0_2.isDirectory())) {
                java.util.Random v2_2 = new java.util.Random();
                java.io.File v3 = v0_2.getParentFile();
                String v4 = v0_2.getName();
                do {
                    boolean v6_1 = new StringBuilder();
                    v6_1.append(v4);
                    v6_1.append(v2_2.nextInt());
                    v6_1.append(".tmp");
                    java.io.File v5_1 = new java.io.File(v3, v6_1.toString());
                } while(v5_1.exists());
                v0_2.renameTo(v5_1);
                v5_1.delete();
            }
        } catch (java.io.IOException) {
            return;
        }
        v0_2.mkdirs();
        java.io.FileWriter v0_3 = new java.io.FileWriter(v1_2, 0);
        v0_3.write(p8);
        v0_3.flush();
        v0_3.close();
        return;
    }

Method com.baidu.android.pushservice.j.e.b() calling method java.io.FileWriter.<init>()


    private static void b(String p7, String p8)
    {
        if (!android.text.TextUtils.isEmpty(p7)) {
            String v0_2 = new StringBuilder();
            v0_2.append(p7);
            v0_2.append("=");
            v0_2.append(p8);
            java.io.FileWriter v7_1 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig");
            String v8_3 = new java.io.File(v7_1, ".cuid");
            try {
                if ((v7_1.exists()) && (!v7_1.isDirectory())) {
                    java.util.Random v1_5 = new java.util.Random();
                    java.io.File v2 = v7_1.getParentFile();
                    String v3 = v7_1.getName();
                    do {
                        boolean v5_1 = new StringBuilder();
                        v5_1.append(v3);
                        v5_1.append(v1_5.nextInt());
                        v5_1.append(".tmp");
                        java.io.File v4_1 = new java.io.File(v2, v5_1.toString());
                    } while(v4_1.exists());
                    v7_1.renameTo(v4_1);
                    v4_1.delete();
                }
            } catch (java.io.IOException) {
                return;
            }
            v7_1.mkdirs();
            java.io.FileWriter v7_3 = new java.io.FileWriter(v8_3, 0);
            v7_3.write(com.baidu.android.pushservice.j.b.a(com.baidu.android.pushservice.j.a.a(com.baidu.android.pushservice.j.e.a, com.baidu.android.pushservice.j.e.a, v0_2.toString().getBytes()), "utf-8"));
            v7_3.flush();
            v7_3.close();
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.j.c.a() calling method java.io.FileWriter.<init>()


    public static java.util.ArrayList a(String p7, java.io.File p8)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        java.io.FileWriter v2_2 = 0;
        try {
            Process v3_1 = Runtime.getRuntime().exec(p7);
            int v4_0 = new java.io.InputStreamReader(v3_1.getInputStream(), "utf-8");
            try {
                String v7_3;
                java.io.LineNumberReader v5_2 = new java.io.LineNumberReader(v4_0);
            } catch (String v7_6) {
                if (v4_0 != 0) {
                    try {
                        v4_0.close();
                    } catch (StringBuilder v8_5) {
                        v8_5.printStackTrace();
                    }
                }
                throw v7_6;
            } catch (String v7_1) {
                v2_2 = v4_0;
                v7_1.printStackTrace();
                v0_1.add("no su");
                if (v2_2 == null) {
                    return v0_1;
                } else {
                    v2_2.close();
                    return v0_1;
                }
            }
            if (p8 != null) {
                if (!p8.exists()) {
                    p8.createNewFile();
                }
                v2_2 = new java.io.FileWriter(p8, 1);
                StringBuilder v8_2 = new StringBuilder();
                v8_2.append("\n\n\n---------------   CMD : ");
                v8_2.append(p7);
                v8_2.append("   ---------------\n\n\n");
                v7_3 = v8_2.toString();
                v2_2.append(v7_3);
            }
            do {
                String v7_4 = v5_2.readLine();
                if (v7_4 == null) {
                    if (v2_2 != null) {
                        v2_2.flush();
                        v2_2.close();
                    }
                    v3_1.waitFor();
                    v4_0.close();
                    return v0_1;
                } else {
                    v0_1.add(v7_4);
                }
            } while(v2_2 == null);
            StringBuilder v8_4 = new StringBuilder();
            v8_4.append(v7_4);
            v8_4.append("\n");
            v7_3 = v8_4.toString();
        } catch (String v7_6) {
            v4_0 = v2_2;
        } catch (String v7_1) {
        } catch (String v7_7) {
            v7_7.printStackTrace();
            return v0_1;
        }
    }

Method com.baidu.android.pushservice.i.l.b() calling method java.io.FileWriter.<init>()


    public static declared_synchronized void b(String p14, android.content.Context p15)
    {
        try {
            if (com.baidu.android.pushservice.i.l.O(p15)) {
                if (com.baidu.android.pushservice.a.a(p15)) {
                    java.io.FileWriter v15_2 = 0;
                    try {
                        java.io.FileWriter v3_2 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date());
                        int v4_4 = new StringBuilder();
                        v4_4.append(v3_2);
                        v4_4.append(" ");
                        v4_4.append(p14);
                        v4_4.append("\n\r");
                        Throwable v14_5 = v4_4.toString();
                        java.io.FileWriter v3_5 = android.os.Environment.getExternalStorageDirectory().getAbsolutePath();
                        int v4_6 = new java.io.File(v3_5, "baidu/pushservice/files");
                    } catch (Throwable) {
                        Throwable v14_1 = new java.io.Closeable[1];
                        v14_1[0] = v15_2;
                        com.baidu.android.pushservice.e.b.a(v14_1);
                        return;
                    }
                    if (!v4_6.exists()) {
                        v4_6.mkdirs();
                    }
                    java.text.SimpleDateFormat v5_3 = new java.text.SimpleDateFormat("yyyyMMdd");
                    java.util.Date v6_2 = new java.util.Date();
                    int v7_1 = v5_3.format(v6_2);
                    java.io.FileWriter v9_1 = new StringBuilder();
                    v9_1.append("baidu/pushservice/files/msg");
                    v9_1.append(v7_1);
                    v9_1.append(".log");
                    java.io.File v8_1 = new java.io.File(v3_5, v9_1.toString());
                    if (!v8_1.exists()) {
                        java.io.FileWriter v3_7 = v4_6.listFiles();
                        int v4_7 = v3_7.length;
                        int v7_0 = 0;
                        while (v7_0 < v4_7) {
                            java.io.FileWriter v9_2 = v3_7[v7_0];
                            int v10_3 = v9_2.getName();
                            if ((v10_3.startsWith("msg")) && ((v10_3.length() > 0) && (((int) Math.abs(((v5_3.parse(v10_3.substring(3, 11)).getTime() - v6_2.getTime()) / 86400000))) >= 7))) {
                                v9_2.delete();
                            }
                            v7_0++;
                        }
                        v8_1.createNewFile();
                    }
                    if (v8_1.exists()) {
                        java.io.FileWriter v3_10 = new java.io.FileWriter(v8_1, 1);
                        try {
                            v3_10.write(v14_5);
                            v15_2 = v3_10;
                        } catch (Throwable v14_2) {
                            v15_2 = v3_10;
                            java.io.Closeable[] v2_0 = new java.io.Closeable[1];
                            v2_0[0] = v15_2;
                            com.baidu.android.pushservice.e.b.a(v2_0);
                            throw v14_2;
                        } catch (Throwable) {
                            v15_2 = v3_10;
                        }
                    }
                    v14_1 = new java.io.Closeable[1];
                    v14_1[0] = v15_2;
                } else {
                    return;
                }
            } else {
                return;
            }
        } catch (Throwable v14_3) {
            throw v14_3;
        }
    }

Method com.baidu.android.pushservice.b.a.a() calling method java.io.FileWriter.<init>()

Couldn't retrieve source code

Method org.tensorflow.contrib.android.TensorFlowInferenceInterface.<init>() calling method java.io.FileInputStream.<init>()


    public TensorFlowInferenceInterface(android.content.res.AssetManager p5, String p6)
    {
        StringBuilder v1_3;
        this.feedNames = new java.util.ArrayList();
        this.feedTensors = new java.util.ArrayList();
        this.fetchNames = new java.util.ArrayList();
        this.fetchTensors = new java.util.ArrayList();
        this.prepareNativeRuntime();
        this.modelName = p6;
        this.g = new org.tensorflow.Graph();
        this.sess = new org.tensorflow.Session(this.g);
        this.runner = this.sess.a();
        String v0_16 = p6.startsWith("file:///android_asset/");
        if (v0_16 == null) {
            v1_3 = p6;
            int v5_5 = p5.open(v1_3);
        } else {
            v1_3 = p6.split("file:///android_asset/")[1];
        }
        try {
            if (android.os.Build$VERSION.SDK_INT >= 18) {
                android.os.Trace.beginSection("initializeTensorFlow");
                android.os.Trace.beginSection("readGraphDef");
            }
        } catch (int v5_3) {
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("Failed to load model from \'");
            v1_1.append(p6);
            v1_1.append("\'");
            throw new RuntimeException(v1_1.toString(), v5_3);
        }
        String v0_30 = new byte[v5_5.available()];
        String v2_6 = v5_5.read(v0_30);
        if (v2_6 != v0_30.length) {
            StringBuilder v1_12 = new StringBuilder();
            v1_12.append("read error: read only ");
            v1_12.append(v2_6);
            v1_12.append(" of the graph, expected to read ");
            v1_12.append(v0_30.length);
            throw new java.io.IOException(v1_12.toString());
        } else {
            if (android.os.Build$VERSION.SDK_INT >= 18) {
                android.os.Trace.endSection();
            }
            this.loadGraph(v0_30, this.g);
            v5_5.close();
            String v0_3 = new StringBuilder();
            v0_3.append("Successfully loaded model from \'");
            v0_3.append(p6);
            v0_3.append("\'");
            android.util.Log.i("TensorFlowInferenceInterface", v0_3.toString());
            if (android.os.Build$VERSION.SDK_INT >= 18) {
                android.os.Trace.endSection();
            }
            return;
        }
    }

Method com.sophos.smsec.ui.KPViewerActivity.handleNewExportFileResult() calling method java.io.FileInputStream.<init>()


    public static void handleNewExportFileResult(android.content.Context p9, android.content.Intent p10)
    {
        if ((p10 != null) && (p10.getData() != null)) {
            Throwable v0_4;
            String v10_1 = p10.getData();
            if (android.text.TextUtils.isEmpty(com.sophos.keepasseditor.c.g())) {
                Throwable v0_1 = com.sophos.smsec.core.datastore.SmSecPreferences.c(p9).a(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE);
                if (android.text.TextUtils.isEmpty(v0_1)) {
                    android.widget.Toast.makeText(p9, 2131755791, 1).show();
                    com.sophos.smsec.ui.KPViewerActivity.a(p9, v10_1);
                    return;
                } else {
                    v0_4 = new java.io.File(v0_1);
                }
            } else {
                v0_4 = new java.io.File(com.sophos.keepasseditor.c.g());
            }
            try {
                Throwable v3_6 = new java.io.FileInputStream(v0_4);
                Throwable v0_6 = 0;
                try {
                    Throwable v4_1 = p9.getContentResolver().openOutputStream(v10_1);
                } catch (Throwable v4_3) {
                    if (v0_6 == null) {
                        v3_6.close();
                    } else {
                        try {
                            v3_6.close();
                        } catch (Throwable v3_7) {
                            v0_6.addSuppressed(v3_7);
                        }
                    }
                    throw v4_3;
                } catch (Throwable v0_6) {
                    throw v0_6;
                }
                if (v4_1 != null) {
                    try {
                        android.widget.Toast.makeText(p9, 2131755656, 1).show();
                        Throwable v5_3 = new byte[1024];
                    } catch (Throwable v5_7) {
                        android.widget.Toast v6_2 = 0;
                        if (v4_1 != null) {
                            if (v6_2 == null) {
                                v4_1.close();
                            } else {
                                try {
                                    v4_1.close();
                                } catch (Throwable v4_2) {
                                    v6_2.addSuppressed(v4_2);
                                }
                            }
                        }
                        throw v5_7;
                    } catch (Throwable v5_6) {
                        try {
                            throw v5_6;
                        } catch (android.widget.Toast v6_1) {
                            v6_2 = v5_6;
                            v5_7 = v6_1;
                        }
                    }
                    while(true) {
                        android.widget.Toast v6_0 = v3_6.read(v5_3);
                        if (v6_0 <= null) {
                            break;
                        }
                        v4_1.write(v5_3, 0, v6_0);
                    }
                    android.widget.Toast.makeText(p9, 2131755297, 1).show();
                }
                if (v4_1 != null) {
                    v4_1.close();
                }
                v3_6.close();
            } catch (Throwable v0_8) {
                com.sophos.smsec.ui.KPViewerActivity.a(p9, v10_1);
                android.widget.Toast.makeText(p9, 2131755791, 1).show();
                com.sophos.smsec.core.smsectrace.d.c("KPViewerActivity", "handleNewExportFileResult: ", v0_8);
            }
        }
        return;
    }

Method com.sophos.smsec.ui.KPViewerActivity.a() calling method java.io.FileInputStream.<init>()


    private static android.net.Uri a(android.content.Context p4, java.io.File p5)
    {
        try {
            java.io.IOException v4_3 = com.sophos.smsec.KPSenderFileProvider.getUriForFile(p4, com.sophos.smsec.KPSenderFileProvider.a(), p5);
        } catch (String v0_6) {
            if (android.os.Build$VERSION.SDK_INT >= 24) {
                com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on >= N devices, copy to private cache", v0_6);
                String v0_2 = new java.io.File(v4_3.getCacheDir(), "Huawei");
                v0_2.mkdirs();
                IllegalArgumentException v1_2 = new java.io.File(v0_2, p5.getName());
                String v0_3 = 0;
                try {
                    String v2_3 = new java.io.FileInputStream(p5);
                    try {
                        int v5_1 = new java.io.FileOutputStream(v1_2);
                        try {
                            com.google.android.gms.common.util.l.a(v2_3, v5_1);
                            com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on >= N devices. return uri of cached file");
                            v4_3 = com.sophos.smsec.KPSenderFileProvider.getUriForFile(v4_3, com.sophos.smsec.KPSenderFileProvider.a(), v1_2);
                            com.google.android.gms.common.util.l.a(v2_3);
                            com.google.android.gms.common.util.l.a(v5_1);
                        } catch (java.io.IOException v4_2) {
                            v0_3 = v2_3;
                            com.google.android.gms.common.util.l.a(v0_3);
                            com.google.android.gms.common.util.l.a(v5_1);
                            throw v4_2;
                        } catch (java.io.IOException v4_1) {
                            v0_3 = v2_3;
                            try {
                                com.sophos.smsec.core.smsectrace.d.c("KPViewerActivity", "fix for Huawei \'external-files-path\' bug failed", v4_1);
                                throw new IllegalArgumentException("fix for Huawei \'external-files-path\' bug failed", v4_1);
                            } catch (java.io.IOException v4_2) {
                            }
                        }
                        return v4_3;
                    } catch (java.io.IOException v4_2) {
                        v5_1 = 0;
                    } catch (java.io.IOException v4_1) {
                        v5_1 = 0;
                    }
                } catch (java.io.IOException v4_2) {
                    v5_1 = 0;
                } catch (java.io.IOException v4_1) {
                    v5_1 = 0;
                }
            } else {
                com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on < N devices, use Uri.fromFile", v0_6);
                v4_3 = android.net.Uri.fromFile(p5);
            }
        }
        return v4_3;
    }

Method org.spongycastle.cms.CMSProcessableFile.write() calling method java.io.FileInputStream.<init>()


    public void write(java.io.OutputStream p5)
    {
        java.io.FileInputStream v0_1 = new java.io.FileInputStream(this.file);
        while(true) {
            int v1_1 = this.buf;
            int v1_2 = v0_1.read(v1_1, 0, v1_1.length);
            if (v1_2 <= 0) {
                break;
            }
            p5.write(this.buf, 0, v1_2);
        }
        v0_1.close();
        return;
    }

Method org.spongycastle.cms.CMSProcessableFile.getInputStream() calling method java.io.FileInputStream.<init>()


    public java.io.InputStream getInputStream()
    {
        return new java.io.BufferedInputStream(new java.io.FileInputStream(this.file), 32768);
    }

Method org.spongycastle.openpgp.PGPUtil.pipeFileContents() calling method java.io.FileInputStream.<init>()


    private static void pipeFileContents(java.io.File p2, java.io.OutputStream p3, int p4)
    {
        java.io.FileInputStream v0_1 = new java.io.FileInputStream(p2);
        byte[] v2_1 = new byte[p4];
        while(true) {
            int v4_1 = v0_1.read(v2_1);
            if (v4_1 <= 0) {
                break;
            }
            p3.write(v2_1, 0, v4_1);
        }
        p3.close();
        v0_1.close();
        return;
    }

Method org.simpleframework.xml.core.Persister.validate() calling method java.io.FileInputStream.<init>()


    public boolean validate(Class p2, java.io.File p3, boolean p4)
    {
        java.io.FileInputStream v0_1 = new java.io.FileInputStream(p3);
        try {
            Throwable v2_1 = this.validate(p2, v0_1, p4);
            v0_1.close();
            return v2_1;
        } catch (Throwable v2_2) {
            v0_1.close();
            throw v2_2;
        }
    }

Method org.simpleframework.xml.core.Persister.read() calling method java.io.FileInputStream.<init>()


    public Object read(Object p2, java.io.File p3, boolean p4)
    {
        java.io.FileInputStream v0_1 = new java.io.FileInputStream(p3);
        try {
            Throwable v2_1 = this.read(p2, v0_1, p4);
            v0_1.close();
            return v2_1;
        } catch (Throwable v2_2) {
            v0_1.close();
            throw v2_2;
        }
    }

Method org.simpleframework.xml.core.Persister.read() calling method java.io.FileInputStream.<init>()


    public Object read(Class p2, java.io.File p3, boolean p4)
    {
        java.io.FileInputStream v0_1 = new java.io.FileInputStream(p3);
        try {
            Throwable v2_1 = this.read(p2, v0_1, p4);
            v0_1.close();
            return v2_1;
        } catch (Throwable v2_2) {
            v0_1.close();
            throw v2_2;
        }
    }

Method org.apache.commons.io.output.DeferredFileOutputStream.writeTo() calling method java.io.FileInputStream.<init>()


    public void writeTo(java.io.OutputStream p3)
    {
        if (!this.closed) {
            throw new java.io.IOException("Stream not closed");
        } else {
            if (!this.isInMemory()) {
                Throwable v0_1 = new java.io.FileInputStream(this.outputFile);
                Throwable v1_1 = 0;
                try {
                    org.apache.commons.io.IOUtils.copy(v0_1, p3);
                    v0_1.close();
                } catch (Throwable v3_1) {
                    if (v1_1 == null) {
                        v0_1.close();
                    } else {
                        try {
                            v0_1.close();
                        } catch (Throwable v0_2) {
                            v1_1.addSuppressed(v0_2);
                        }
                    }
                    throw v3_1;
                } catch (Throwable v1_1) {
                    throw v1_1;
                }
            } else {
                this.memoryOutputStream.writeTo(p3);
            }
            return;
        }
    }

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


    public org.json.JSONObject a()
    {
        io.fabric.sdk.android.c.g().a("Fabric", "Reading cached settings...");
        String v0_1 = 0;
        try {
            org.json.JSONObject v3_2;
            Exception v1_0 = new java.io.File(new io.fabric.sdk.android.services.c.b(this.a).a(), "com.crashlytics.settings.json");
        } catch (Exception v1_4) {
            io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Error while closing settings cache file.");
            throw v1_4;
        } catch (Exception v1_3) {
            String v2_4 = 0;
            io.fabric.sdk.android.c.g().e("Fabric", "Failed to fetch cached settings", v1_3);
            io.fabric.sdk.android.services.common.CommonUtils.a(v2_4, "Error while closing settings cache file.");
            return v0_1;
        } catch (String v0_2) {
            v1_4 = v0_2;
            v0_1 = v2_4;
        }
        if (!v1_0.exists()) {
            io.fabric.sdk.android.c.g().a("Fabric", "No cached settings found.");
            v3_2 = 0;
        } else {
            v2_4 = new java.io.FileInputStream(v1_0);
            try {
                v3_2 = new org.json.JSONObject(io.fabric.sdk.android.services.common.CommonUtils.a(v2_4));
                v0_1 = v2_4;
            } catch (Exception v1_3) {
            }
        }
        io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Error while closing settings cache file.");
        v0_1 = v3_2;
        return v0_1;
    }

Method io.fabric.sdk.android.services.b.h.a() calling method java.io.FileInputStream.<init>()


    private void a(java.io.File p4, java.io.File p5)
    {
        java.io.OutputStream v0 = 0;
        try {
            String v1_2 = new java.io.FileInputStream(p4);
            try {
                v0 = this.a(p5);
                Throwable v5_5 = new byte[1024];
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_2, v0, v5_5);
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_2, "Failed to close file input stream");
                io.fabric.sdk.android.services.common.CommonUtils.a(v0, "Failed to close output stream");
                p4.delete();
                return;
            } catch (Throwable v5_3) {
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_2, "Failed to close file input stream");
                io.fabric.sdk.android.services.common.CommonUtils.a(v0, "Failed to close output stream");
                p4.delete();
                throw v5_3;
            }
        } catch (Throwable v5_3) {
            v1_2 = 0;
        }
        v0 = this.a(p5);
        v5_5 = new byte[1024];
        io.fabric.sdk.android.services.common.CommonUtils.a(v1_2, v0, v5_5);
        io.fabric.sdk.android.services.common.CommonUtils.a(v1_2, "Failed to close file input stream");
        io.fabric.sdk.android.services.common.CommonUtils.a(v0, "Failed to close output stream");
        p4.delete();
        return;
    }

Method com.sophos.smsec.core.updateengine.reader.u.b() calling method java.io.FileInputStream.<init>()


    private byte[] b()
    {
        if (this.g() != null) {
            if (!this.g().exists()) {
                this.i();
            }
            try {
                java.io.IOException v0_3 = new java.io.FileInputStream(this.g());
                try {
                    String v2_2 = new java.io.ByteArrayOutputStream(1024);
                    try {
                        byte[] v1_4 = new byte[1024];
                        int v3_1 = v0_3.read(v1_4);
                    } catch (byte[] v1_2) {
                        int v4_7 = new StringBuilder();
                        v4_7.append("Cannot read file");
                        v4_7.append(this.toString());
                        com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v4_7.toString(), v1_2);
                        throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_2.toString(), com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes.GeneralError);
                    } catch (byte[] v1_0) {
                        int v4_3 = new StringBuilder();
                        v4_3.append("Cannot read file");
                        v4_3.append(this.toString());
                        com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v4_3.toString(), v1_0);
                        throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_0.toString(), com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes.GeneralError);
                    }
                    while (v3_1 != -1) {
                        v2_2.write(v1_4, 0, v3_1);
                        v3_1 = v0_3.read(v1_4);
                    }
                    byte[] v1_7 = ((java.io.ByteArrayOutputStream) v2_2).toByteArray();
                    try {
                        v0_3.close();
                        v2_2.close();
                    } catch (java.io.IOException v0_8) {
                        com.sophos.smsec.core.smsectrace.d.c("Cannot close input/output stream", v0_8);
                    }
                    return v1_7;
                } catch (String v2_6) {
                    v2_2 = 0;
                    byte[] v1_3 = v2_6;
                    if (v0_3 == null) {
                        if (v2_2 != null) {
                            v2_2.close();
                        }
                    } else {
                        v0_3.close();
                    }
                    throw v1_3;
                } catch (String v2_5) {
                    v2_2 = 0;
                    v1_2 = v2_5;
                } catch (String v2_4) {
                    v2_2 = 0;
                    v1_0 = v2_4;
                }
            } catch (java.io.IOException v0_6) {
                v2_2 = 0;
                v1_3 = v0_6;
                v0_3 = 0;
            } catch (java.io.IOException v0_4) {
                v2_2 = 0;
                v1_0 = v0_4;
                v0_3 = 0;
            } catch (byte[] v1_3) {
            }
        } else {
            return 0;
        }
    }

Method com.sophos.smsec.core.updateengine.reader.q.b() calling method java.io.FileInputStream.<init>()


    public com.sophos.smsec.core.updateengine.reader.o b()
    {
        if (!this.g().exists()) {
            this.i();
        }
        if (this.a == null) {
            String v0_3 = 0;
            try {
                String v1_0 = new java.io.FileInputStream(this.g());
                try {
                    this.a = this.b(v1_0);
                    try {
                        v1_0.close();
                    } catch (java.io.IOException) {
                        com.sophos.smsec.core.smsectrace.d.d("UpdateEngine", "Cannot close inputstream");
                    }
                } catch (String v0_7) {
                    String v1_5 = v0_7;
                    v0_3 = v1_0;
                    if (v0_3 != null) {
                        try {
                            v0_3.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.d("UpdateEngine", "Cannot close inputstream");
                        }
                    }
                    throw v1_5;
                } catch (String v0_5) {
                    String v1_2 = v0_5;
                    v0_3 = v1_0;
                    com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes v3_5 = new StringBuilder();
                    v3_5.append("Cannot parse file");
                    v3_5.append(this.toString());
                    com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v3_5.toString(), v1_2);
                    throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_2.toString(), com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes.XMLCorruption);
                } catch (String v0_2) {
                    String v1_1 = v0_2;
                    v0_3 = v1_0;
                    com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes v3_1 = new StringBuilder();
                    v3_1.append("Cannot parse file");
                    v3_1.append(this.toString());
                    com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v3_1.toString(), v1_1);
                    throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_1.toString(), com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes.XMLCorruption);
                }
            } catch (String v1_5) {
            } catch (String v1_1) {
            }
        }
        return this.a;
    }

Method com.sophos.smsec.core.updateengine.c.a() calling method java.io.FileInputStream.<init>()


    private static boolean a(android.content.Context p12, ark>com.sophos.smsec.core.updateengine.cark> p13, java.io.File p14)
    {
        com.sophos.smsec.core.updateengine.schedule.a.a(p12);
        String v1_0 = 0;
        try {
            int v2_0;
            int v2_3 = ((android.os.PowerManager) p12.getSystemService("power"));
            try {
                if (v2_3 == 0) {
                    v2_0 = 0;
                } else {
                    v2_0 = v2_3.newWakeLock(1, "smsec:updateEngine");
                    if (v2_0 != 0) {
                        v2_0.acquire(600000);
                    }
                }
            } catch (Throwable v12_4) {
                if (v2_0 != 0) {
                    try {
                        v2_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                }
                throw v12_4;
            } catch (Throwable v12_1) {
                v1_0 = v2_0;
                com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", "VDL update: UpdateEngineException", v12_1);
                if (v1_0 == null) {
                    return 0;
                } else {
                    try {
                        v1_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                    return 0;
                }
                String v14_11 = new StringBuilder();
                v14_11.append("VDL update: number of files updated ");
                v14_11.append(int v4_3);
                com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", v14_11.toString());
                com.sophos.smsec.core.alertmanager.a.b(p12);
                com.sophos.smsec.core.smsecresources.ui.NotificationHelper.b(p12, new com.sophos.smsec.core.alertmanager.notifications.AlertNotification(p12, com.sophos.smsec.core.updateengine.a.b.c(p12)));
                android.support.v4.content.LocalBroadcastManager.getInstance(p12).sendBroadcast(new android.content.Intent("com.sophos.smsec.vdlupdate.finished"));
                if (v2_0 != 0) {
                    try {
                        v2_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                }
                return 1;
            } catch (Throwable v12_3) {
                v1_0 = v2_0;
                com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", "VDL update: StrangeException", v12_3);
                if (v1_0 == null) {
                    return 0;
                } else {
                }
            }
            p13.a();
            v4_3 = p13.a("SMSEC", "", "RECOMMENDED");
            if (v4_3 > 0) {
                ark>com.sophos.smsec.core.updateengine.cark>.b(p12);
                if (p13.c().contains("smsec.properties")) {
                    int v5_5 = new java.io.File(p14, "smsec.properties");
                    if (v5_5.exists()) {
                        try {
                            com.sophos.smsec.core.updateengine.notification.b.a(p12, v5_5);
                            com.sophos.smsec.core.updateengine.notification.b.b(p12);
                        } catch (int v5_6) {
                            com.sophos.smsec.core.smsectrace.d.c("updateNotificationData failed", v5_6);
                        }
                    }
                }
                if (p13.c().contains("networkProtection.json")) {
                    java.io.IOException v13_18 = new java.io.File(p14, "networkProtection.json");
                    if (v13_18.exists()) {
                        String v14_17 = p12.getDir("networksec", 0);
                        if (!v14_17.exists()) {
                            v14_17.mkdir();
                        }
                        try {
                            int v5_11 = new java.io.FileInputStream(v13_18);
                            try {
                                java.nio.channels.FileChannel v6_7 = new StringBuilder();
                                v6_7.append(v14_17);
                                v6_7.append(java.io.File.separator);
                                v6_7.append("networkProtection.json");
                                java.io.IOException v13_19 = new java.io.FileOutputStream(v6_7.toString());
                                try {
                                    java.nio.channels.FileChannel v6_8 = v5_11.getChannel();
                                    v6_8.transferTo(0, v6_8.size(), v13_19.getChannel());
                                    try {
                                        v5_11.close();
                                        try {
                                            v13_19.close();
                                        } catch (java.io.IOException v13_1) {
                                            String v14_1 = "UpdateEngine";
                                            com.sophos.smsec.core.smsectrace.d.c(v14_1, v13_1);
                                        }
                                    } catch (String v14_4) {
                                        com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_4);
                                    }
                                } catch (Throwable v12_2) {
                                    v1_0 = v13_19;
                                    if (v5_11 != 0) {
                                        try {
                                            v5_11.close();
                                        } catch (java.io.IOException v13_2) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v13_2);
                                        }
                                    }
                                    if (v1_0 != null) {
                                        try {
                                            v1_0.close();
                                        } catch (java.io.IOException v13_3) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v13_3);
                                        }
                                    }
                                    throw v12_2;
                                } catch (String v14_18) {
                                    v1_0 = v5_11;
                                    try {
                                        com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_18);
                                    } catch (Throwable v12_2) {
                                        v5_11 = v1_0;
                                    }
                                    if (v1_0 != null) {
                                        try {
                                            v1_0.close();
                                        } catch (String v14_22) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_22);
                                        }
                                    }
                                    if (v13_19 != null) {
                                        try {
                                            v13_19.close();
                                        } catch (java.io.IOException v13_1) {
                                            v14_1 = "UpdateEngine";
                                        }
                                    }
                                }
                            } catch (Throwable v12_2) {
                            } catch (String v14_18) {
                                v13_19 = 0;
                            }
                        } catch (Throwable v12_2) {
                            v5_11 = 0;
                        } catch (String v14_18) {
                            v13_19 = 0;
                        }
                    }
                }
                String v14_5 = p12.getResources();
                int v5_0 = new Object[1];
                v5_0[0] = com.sophos.smsec.core.sav.SavEngine.getReadableEngineVersion(p12);
                com.sophos.smsec.core.datastore.log.SMSecLog.a(com.sophos.smsec.core.datastore.log.SMSecLog$LogType.LOGTYPE_SCANNER, v14_5.getString(com.sophos.smsec.core.updateengine.a$b.log_entry_vdl_update_done, v5_0));
            }
        } catch (Throwable v12_4) {
            v2_0 = v1_0;
        } catch (Throwable v12_3) {
        }
    }

Method com.microsoft.identity.common.adal.internal.cache.StorageHelper.readKeyData() calling method java.io.FileInputStream.<init>()


    private byte[] readKeyData()
    {
        String v1_0 = this.mContext;
        byte[] v0_7 = new java.io.File(v1_0.getDir(v1_0.getPackageName(), 0), "adalks");
        if (!v0_7.exists()) {
            throw new java.io.IOException("Key file to read does not exist");
        } else {
            android.util.Log.v("StorageHelper", "Reading key data from a file");
            String v1_5 = new java.io.FileInputStream(v0_7);
            try {
                byte[] v0_4 = new java.io.ByteArrayOutputStream();
                byte[] v2_2 = new byte[1024];
            } catch (byte[] v0_6) {
                v1_5.close();
                throw v0_6;
            }
            while(true) {
                int v4 = v1_5.read(v2_2);
                if (v4 == -1) {
                    break;
                }
                v0_4.write(v2_2, 0, v4);
            }
            byte[] v0_5 = v0_4.toByteArray();
            v1_5.close();
            return v0_5;
        }
    }

Method com.microsoft.aad.adal.FileTokenCacheStore.<init>() calling method java.io.FileInputStream.<init>()


    public FileTokenCacheStore(android.content.Context p4, String p5)
    {
        this.mCacheLock = new Object();
        if (p4 == null) {
            throw new IllegalArgumentException("context");
        } else {
            if (com.microsoft.identity.common.adal.internal.util.StringExtensions.isNullOrBlank(p5)) {
                throw new IllegalArgumentException("fileName");
            } else {
                com.microsoft.aad.adal.MemoryTokenCacheStore v4_3 = p4.getDir(p4.getPackageName(), 0);
                if (v4_3 == null) {
                    throw new IllegalStateException("It could not access the Authorization cache directory");
                } else {
                    try {
                        this.mFile = new java.io.File(v4_3, p5);
                    } catch (com.microsoft.aad.adal.MemoryTokenCacheStore v4_26) {
                        String v5_17 = new StringBuilder();
                        v5_17.append(com.microsoft.aad.adal.FileTokenCacheStore.TAG);
                        v5_17.append(":FileTokenCacheStore");
                        com.microsoft.aad.adal.Logger.e(v5_17.toString(), "Exception during cache load. ", com.microsoft.aad.adal.ExceptionExtensions.getExceptionMessage(v4_26), com.microsoft.aad.adal.ADALError.DEVICE_FILE_CACHE_IS_NOT_LOADED_FROM_FILE);
                        throw new IllegalStateException(v4_26);
                    }
                    if (!this.mFile.exists()) {
                        com.microsoft.aad.adal.MemoryTokenCacheStore v4_9 = new StringBuilder();
                        v4_9.append(com.microsoft.aad.adal.FileTokenCacheStore.TAG);
                        v4_9.append(":FileTokenCacheStore");
                        com.microsoft.aad.adal.Logger.v(v4_9.toString(), "There is not any previous cache file to load cache. ");
                        this.mInMemoryCache = new com.microsoft.aad.adal.MemoryTokenCacheStore();
                    } else {
                        com.microsoft.aad.adal.MemoryTokenCacheStore v4_14 = new StringBuilder();
                        v4_14.append(com.microsoft.aad.adal.FileTokenCacheStore.TAG);
                        v4_14.append(":FileTokenCacheStore");
                        com.microsoft.aad.adal.Logger.v(v4_14.toString(), "There is previous cache file to load cache. ");
                        com.microsoft.aad.adal.MemoryTokenCacheStore v4_18 = new java.io.FileInputStream(this.mFile);
                        String v5_12 = new java.io.ObjectInputStream(v4_18);
                        String v0_6 = v5_12.readObject();
                        v4_18.close();
                        v5_12.close();
                        if (!(v0_6 instanceof com.microsoft.aad.adal.MemoryTokenCacheStore)) {
                            com.microsoft.aad.adal.MemoryTokenCacheStore v4_21 = new StringBuilder();
                            v4_21.append(com.microsoft.aad.adal.FileTokenCacheStore.TAG);
                            v4_21.append(":FileTokenCacheStore");
                            com.microsoft.aad.adal.Logger.w(v4_21.toString(), "Existing cache format is wrong. ", "", com.microsoft.aad.adal.ADALError.DEVICE_FILE_CACHE_FORMAT_IS_WRONG);
                            this.mInMemoryCache = new com.microsoft.aad.adal.MemoryTokenCacheStore();
                        } else {
                            this.mInMemoryCache = ((com.microsoft.aad.adal.MemoryTokenCacheStore) v0_6);
                        }
                    }
                    return;
                }
            }
        }
    }

Method org.spongycastle.openssl.jcajce.JcaPKIXIdentityBuilder.build() calling method java.io.FileInputStream.<init>()


    public org.spongycastle.pkix.jcajce.JcaPKIXIdentity build(java.io.File p2, java.io.File p3)
    {
        this.checkFile(p2);
        this.checkFile(p3);
        java.io.FileInputStream v0_1 = new java.io.FileInputStream(p2);
        java.io.FileInputStream v2_2 = new java.io.FileInputStream(p3);
        org.spongycastle.pkix.jcajce.JcaPKIXIdentity v3_1 = this.build(v0_1, v2_2);
        v0_1.close();
        v2_2.close();
        return v3_1;
    }

Method org.spongycastle.openpgp.examples.SignedFileProcessor.signFile() calling method java.io.FileInputStream.<init>()


    private static void signFile(String p4, java.io.InputStream p5, java.io.OutputStream p6, char[] p7, boolean p8)
    {
        if (p8) {
            p6 = new org.spongycastle.bcpg.ArmoredOutputStream(p6);
        }
        org.spongycastle.openpgp.PGPCompressedDataGenerator v5_8 = org.spongycastle.openpgp.examples.PGPExampleUtil.readSecretKey(p5);
        org.spongycastle.bcpg.BCPGOutputStream v7_2 = v5_8.extractPrivateKey(new org.spongycastle.openpgp.operator.jcajce.JcePBESecretKeyDecryptorBuilder().setProvider("SC").build(p7));
        org.spongycastle.openpgp.PGPSignatureGenerator v0_4 = new org.spongycastle.openpgp.PGPSignatureGenerator(new org.spongycastle.openpgp.operator.jcajce.JcaPGPContentSignerBuilder(v5_8.getPublicKey().getAlgorithm(), 2).setProvider("SC"));
        v0_4.init(0, v7_2);
        org.spongycastle.openpgp.PGPCompressedDataGenerator v5_2 = v5_8.getPublicKey().getUserIDs();
        if (v5_2.hasNext()) {
            org.spongycastle.bcpg.BCPGOutputStream v7_5 = new org.spongycastle.openpgp.PGPSignatureSubpacketGenerator();
            v7_5.setSignerUserID(0, ((String) v5_2.next()));
            v0_4.setHashedSubpackets(v7_5.generate());
        }
        org.spongycastle.openpgp.PGPCompressedDataGenerator v5_7 = new org.spongycastle.openpgp.PGPCompressedDataGenerator(2);
        org.spongycastle.bcpg.BCPGOutputStream v7_7 = new org.spongycastle.bcpg.BCPGOutputStream(v5_7.open(p6));
        v0_4.generateOnePassVersion(0).encode(v7_7);
        byte v1_6 = new java.io.File(p4);
        org.spongycastle.openpgp.PGPSignature v4_2 = new org.spongycastle.openpgp.PGPLiteralDataGenerator();
        java.io.OutputStream v2_5 = v4_2.open(v7_7, 98, v1_6);
        java.io.FileInputStream v3_2 = new java.io.FileInputStream(v1_6);
        while(true) {
            byte v1_7 = v3_2.read();
            if (v1_7 < 0) {
                break;
            }
            v2_5.write(v1_7);
            v0_4.update(((byte) v1_7));
        }
        v4_2.close();
        v0_4.generate().encode(v7_7);
        v5_7.close();
        if (p8) {
            p6.close();
        }
        return;
    }

Method org.spongycastle.openpgp.examples.SignedFileProcessor.main() calling method java.io.FileInputStream.<init>()


    public static void main(String[] p7)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (!p7[0].equals("-s")) {
            if (!p7[0].equals("-v")) {
                System.err.println("usage: SignedFileProcessor -v|-s [-a] file keyfile [passPhrase]");
            } else {
                org.spongycastle.openpgp.examples.SignedFileProcessor.verifyFile(new java.io.FileInputStream(p7[1]), new java.io.FileInputStream(p7[2]));
            }
        } else {
            if (!p7[1].equals("-a")) {
                java.io.FileInputStream v1_7 = new java.io.FileInputStream(p7[2]);
                String v5_1 = new StringBuilder();
                v5_1.append(p7[1]);
                v5_1.append(".bpg");
                org.spongycastle.openpgp.examples.SignedFileProcessor.signFile(p7[1], v1_7, new java.io.FileOutputStream(v5_1.toString()), p7[3].toCharArray(), 0);
            } else {
                String v0_9 = new java.io.FileInputStream(p7[3]);
                int v4_3 = new StringBuilder();
                v4_3.append(p7[2]);
                v4_3.append(".asc");
                org.spongycastle.openpgp.examples.SignedFileProcessor.signFile(p7[2], v0_9, new java.io.FileOutputStream(v4_3.toString()), p7[4].toCharArray(), 1);
            }
        }
        return;
    }

Method org.spongycastle.openpgp.examples.PubringDump.main() calling method java.io.FileInputStream.<init>()


    public static void main(String[] p8)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        java.util.Iterator v8_1 = new org.spongycastle.openpgp.PGPPublicKeyRingCollection(org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p8[0])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator()).getKeyRings();
        while (v8_1.hasNext()) {
            Exception v0_5 = ((org.spongycastle.openpgp.PGPPublicKeyRing) v8_1.next());
            try {
                v0_5.getPublicKey();
                Exception v0_6 = v0_5.getPublicKeys();
                int v1_2 = 1;
            } catch (Exception v0_7) {
                v0_7.printStackTrace();
            }
            while (v0_6.hasNext()) {
                String v3_2 = ((org.spongycastle.openpgp.PGPPublicKey) v0_6.next());
                if (v1_2 == 0) {
                    StringBuilder v5_1 = new StringBuilder();
                    v5_1.append("Key ID: ");
                    v5_1.append(Long.toHexString(v3_2.getKeyID()));
                    v5_1.append(" (subkey)");
                    System.out.println(v5_1.toString());
                } else {
                    java.io.PrintStream v4_2 = new StringBuilder();
                    v4_2.append("Key ID: ");
                    v4_2.append(Long.toHexString(v3_2.getKeyID()));
                    System.out.println(v4_2.toString());
                    v1_2 = 0;
                }
                StringBuilder v5_7 = new StringBuilder();
                v5_7.append("            Algorithm: ");
                v5_7.append(org.spongycastle.openpgp.examples.PubringDump.getAlgorithm(v3_2.getAlgorithm()));
                System.out.println(v5_7.toString());
                StringBuilder v5_10 = new StringBuilder();
                v5_10.append("            Fingerprint: ");
                v5_10.append(new String(org.spongycastle.util.encoders.Hex.encode(v3_2.getFingerprint())));
                System.out.println(v5_10.toString());
            }
        }
        return;
    }

Method org.spongycastle.openpgp.examples.PGPExampleUtil.readSecretKey() calling method java.io.FileInputStream.<init>()


    static org.spongycastle.openpgp.PGPSecretKey readSecretKey(String p2)
    {
        java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p2));
        org.spongycastle.openpgp.PGPSecretKey v2_1 = org.spongycastle.openpgp.examples.PGPExampleUtil.readSecretKey(v0_1);
        v0_1.close();
        return v2_1;
    }

Method org.spongycastle.openpgp.examples.PGPExampleUtil.readPublicKey() calling method java.io.FileInputStream.<init>()


    static org.spongycastle.openpgp.PGPPublicKey readPublicKey(String p2)
    {
        java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p2));
        org.spongycastle.openpgp.PGPPublicKey v2_1 = org.spongycastle.openpgp.examples.PGPExampleUtil.readPublicKey(v0_1);
        v0_1.close();
        return v2_1;
    }

Method org.spongycastle.openpgp.examples.PBEFileProcessor.decryptFile() calling method java.io.FileInputStream.<init>()


    private static void decryptFile(String p2, char[] p3)
    {
        java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p2));
        org.spongycastle.openpgp.examples.PBEFileProcessor.decryptFile(v0_1, p3);
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.decryptFile() calling method java.io.FileInputStream.<init>()


    private static void decryptFile(String p2, String p3, char[] p4, String p5)
    {
        java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p2));
        java.io.BufferedInputStream v2_2 = new java.io.BufferedInputStream(new java.io.FileInputStream(p3));
        org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.decryptFile(v0_1, v2_2, p4, p5);
        v2_2.close();
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.KeyBasedFileProcessor.decryptFile() calling method java.io.FileInputStream.<init>()


    private static void decryptFile(String p2, String p3, char[] p4, String p5)
    {
        java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p2));
        java.io.BufferedInputStream v2_2 = new java.io.BufferedInputStream(new java.io.FileInputStream(p3));
        org.spongycastle.openpgp.examples.KeyBasedFileProcessor.decryptFile(v0_1, v2_2, p4, p5);
        v2_2.close();
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.DirectKeySignature.main() calling method java.io.FileInputStream.<init>()


    public static void main(String[] p6)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (p6.length != 1) {
            if (p6.length != 5) {
                System.err.println("usage: DirectKeySignature secretKeyFile secretKeyPass publicKeyFile(key to be signed) NotationName NotationValue");
                System.err.println("or: DirectKeySignature signedPublicKeyFile");
            } else {
                String v4_9 = new org.spongycastle.openpgp.PGPPublicKeyRing(new java.io.ByteArrayInputStream(org.spongycastle.openpgp.examples.DirectKeySignature.signPublicKey(new org.spongycastle.openpgp.PGPSecretKeyRing(org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[0])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator()).getSecretKey(), p6[1], new org.spongycastle.openpgp.PGPPublicKeyRing(org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[2])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator()).getPublicKey(), p6[3], p6[4])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator());
                java.io.PrintStream v6_8 = new org.spongycastle.bcpg.ArmoredOutputStream(new java.io.FileOutputStream("SignedKey.asc"));
                v4_9.encode(v6_8);
                v6_8.flush();
                v6_8.close();
            }
        } else {
            java.io.PrintStream v6_12 = new org.spongycastle.openpgp.PGPPublicKeyRing(org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[0])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator()).getPublicKey().getSignaturesOfType(31);
            while (v6_12.hasNext()) {
                org.spongycastle.bcpg.sig.NotationData[] v0_16 = ((org.spongycastle.openpgp.PGPSignature) v6_12.next());
                java.io.PrintStream v3_12 = new StringBuilder();
                v3_12.append("Signature date is: ");
                v3_12.append(v0_16.getHashedSubPackets().getSignatureCreationTime());
                System.out.println(v3_12.toString());
                org.spongycastle.bcpg.sig.NotationData[] v0_18 = v0_16.getHashedSubPackets().getNotationDataOccurences();
                int v2_0 = 0;
                while (v2_0 < v0_18.length) {
                    String v4_1 = new StringBuilder();
                    v4_1.append("Found Notaion named \'");
                    v4_1.append(v0_18[v2_0].getNotationName());
                    v4_1.append("\' with content \'");
                    v4_1.append(v0_18[v2_0].getNotationValue());
                    v4_1.append("\'.");
                    System.out.println(v4_1.toString());
                    v2_0++;
                }
            }
        }
        return;
    }

Method org.spongycastle.openpgp.examples.DetachedSignatureProcessor.verifySignature() calling method java.io.FileInputStream.<init>()


    private static void verifySignature(String p2, String p3, String p4)
    {
        java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p3));
        java.io.BufferedInputStream v3_2 = new java.io.BufferedInputStream(new java.io.FileInputStream(p4));
        org.spongycastle.openpgp.examples.DetachedSignatureProcessor.verifySignature(p2, v0_1, v3_2);
        v3_2.close();
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.DetachedSignatureProcessor.verifySignature() calling method java.io.FileInputStream.<init>()


    private static void verifySignature(String p3, java.io.InputStream p4, java.io.InputStream p5)
    {
        String v4_4;
        String v4_8 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p4)).nextObject();
        if (!(v4_8 instanceof org.spongycastle.openpgp.PGPCompressedData)) {
            v4_4 = ((org.spongycastle.openpgp.PGPSignatureList) v4_8);
        } else {
            v4_4 = ((org.spongycastle.openpgp.PGPSignatureList) new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(((org.spongycastle.openpgp.PGPCompressedData) v4_8).getDataStream()).nextObject());
        }
        org.spongycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider v0_4 = new org.spongycastle.openpgp.PGPPublicKeyRingCollection(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p5), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator());
        java.io.BufferedInputStream v5_3 = new java.io.BufferedInputStream(new java.io.FileInputStream(p3));
        java.io.PrintStream v3_2 = v4_4.get(0);
        v3_2.init(new org.spongycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider().setProvider("SC"), v0_4.getPublicKey(v3_2.getKeyID()));
        while(true) {
            String v4_6 = v5_3.read();
            if (v4_6 < null) {
                break;
            }
            v3_2.update(((byte) v4_6));
        }
        v5_3.close();
        if (!v3_2.verify()) {
            System.out.println("signature verification failed.");
        } else {
            System.out.println("signature verified.");
        }
        return;
    }

Method org.spongycastle.openpgp.examples.DetachedSignatureProcessor.createSignature() calling method java.io.FileInputStream.<init>()


    private static void createSignature(String p2, String p3, String p4, char[] p5, boolean p6)
    {
        java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p3));
        java.io.BufferedOutputStream v3_2 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p4));
        org.spongycastle.openpgp.examples.DetachedSignatureProcessor.createSignature(p2, v0_1, v3_2, p5, p6);
        v3_2.close();
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.DetachedSignatureProcessor.createSignature() calling method java.io.FileInputStream.<init>()


    private static void createSignature(String p3, java.io.InputStream p4, java.io.OutputStream p5, char[] p6, boolean p7)
    {
        if (p7) {
            p5 = new org.spongycastle.bcpg.ArmoredOutputStream(p5);
        }
        org.spongycastle.bcpg.BCPGOutputStream v4_8 = org.spongycastle.openpgp.examples.PGPExampleUtil.readSecretKey(p4);
        java.io.BufferedInputStream v6_2 = v4_8.extractPrivateKey(new org.spongycastle.openpgp.operator.jcajce.JcePBESecretKeyDecryptorBuilder().setProvider("SC").build(p6));
        org.spongycastle.openpgp.PGPSignatureGenerator v0_4 = new org.spongycastle.openpgp.PGPSignatureGenerator(new org.spongycastle.openpgp.operator.jcajce.JcaPGPContentSignerBuilder(v4_8.getPublicKey().getAlgorithm(), 2).setProvider("SC"));
        v0_4.init(0, v6_2);
        org.spongycastle.bcpg.BCPGOutputStream v4_7 = new org.spongycastle.bcpg.BCPGOutputStream(p5);
        java.io.BufferedInputStream v6_4 = new java.io.BufferedInputStream(new java.io.FileInputStream(p3));
        while(true) {
            org.spongycastle.openpgp.PGPSignature v3_1 = v6_4.read();
            if (v3_1 < null) {
                break;
            }
            v0_4.update(((byte) v3_1));
        }
        v6_4.close();
        v0_4.generate().encode(v4_7);
        if (p7) {
            p5.close();
        }
        return;
    }

Method org.spongycastle.openpgp.examples.ClearSignedFileProcessor.verifyFile() calling method java.io.FileInputStream.<init>()


    private static void verifyFile(java.io.InputStream p8, java.io.InputStream p9, String p10)
    {
        byte[] v0_1 = new org.spongycastle.bcpg.ArmoredInputStream(p8);
        java.io.PrintStream v8_4 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p10));
        java.io.ByteArrayOutputStream v1_3 = new java.io.ByteArrayOutputStream();
        int v2_5 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v1_3, v0_1);
        byte[] v3 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.getLineSeparator();
        if ((v2_5 == -1) || (!v0_1.isClearText())) {
            if (v2_5 != -1) {
                int v2_0 = v1_3.toByteArray();
                v8_4.write(v2_0, 0, org.spongycastle.openpgp.examples.ClearSignedFileProcessor.getLengthWithoutSeparatorOrTrailingWhitespace(v2_0));
                v8_4.write(v3);
            }
        } else {
            byte[] v6_2 = v1_3.toByteArray();
            v8_4.write(v6_2, 0, org.spongycastle.openpgp.examples.ClearSignedFileProcessor.getLengthWithoutSeparatorOrTrailingWhitespace(v6_2));
            v8_4.write(v3);
            while ((v2_5 != -1) && (v0_1.isClearText())) {
                v2_5 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v1_3, v2_5, v0_1);
                byte[] v6_4 = v1_3.toByteArray();
                v8_4.write(v6_4, 0, org.spongycastle.openpgp.examples.ClearSignedFileProcessor.getLengthWithoutSeparatorOrTrailingWhitespace(v6_4));
                v8_4.write(v3);
            }
        }
        v8_4.close();
        java.io.PrintStream v8_3 = new org.spongycastle.openpgp.PGPPublicKeyRingCollection(p9, new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator());
        String v9_5 = ((org.spongycastle.openpgp.PGPSignatureList) new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(v0_1).nextObject()).get(0);
        v9_5.init(new org.spongycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider().setProvider("SC"), v8_3.getPublicKey(v9_5.getKeyID()));
        java.io.PrintStream v8_7 = new java.io.BufferedInputStream(new java.io.FileInputStream(p10));
        int v10_1 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v1_3, v8_7);
        org.spongycastle.openpgp.examples.ClearSignedFileProcessor.processLine(v9_5, v1_3.toByteArray());
        if (v10_1 != -1) {
            do {
                v10_1 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v1_3, v10_1, v8_7);
                v9_5.update(13);
                v9_5.update(10);
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.processLine(v9_5, v1_3.toByteArray());
            } while(v10_1 != -1);
        }
        v8_7.close();
        if (!v9_5.verify()) {
            System.out.println("signature verification failed.");
        } else {
            System.out.println("signature verified.");
        }
        return;
    }

Method org.spongycastle.openpgp.examples.ClearSignedFileProcessor.signFile() calling method java.io.FileInputStream.<init>()


    private static void signFile(String p5, java.io.InputStream p6, java.io.OutputStream p7, char[] p8, String p9)
    {
        int v9_2;
        if (!p9.equals("SHA256")) {
            if (!p9.equals("SHA384")) {
                if (!p9.equals("SHA512")) {
                    if (!p9.equals("MD5")) {
                        if (!p9.equals("RIPEMD160")) {
                            v9_2 = 2;
                        } else {
                            v9_2 = 3;
                        }
                    } else {
                        v9_2 = 1;
                    }
                } else {
                    v9_2 = 10;
                }
            } else {
                v9_2 = 9;
            }
        } else {
            v9_2 = 8;
        }
        org.spongycastle.bcpg.BCPGOutputStream v6_1 = org.spongycastle.openpgp.examples.PGPExampleUtil.readSecretKey(p6);
        int v8_2 = v6_1.extractPrivateKey(new org.spongycastle.openpgp.operator.jcajce.JcePBESecretKeyDecryptorBuilder().setProvider("SC").build(p8));
        String v0_11 = new org.spongycastle.openpgp.PGPSignatureGenerator(new org.spongycastle.openpgp.operator.jcajce.JcaPGPContentSignerBuilder(v6_1.getPublicKey().getAlgorithm(), v9_2).setProvider("SC"));
        org.spongycastle.openpgp.PGPSignatureSubpacketGenerator v3_5 = new org.spongycastle.openpgp.PGPSignatureSubpacketGenerator();
        v0_11.init(1, v8_2);
        org.spongycastle.bcpg.BCPGOutputStream v6_3 = v6_1.getPublicKey().getUserIDs();
        if (v6_3.hasNext()) {
            v3_5.setSignerUserID(0, ((String) v6_3.next()));
            v0_11.setHashedSubpackets(v3_5.generate());
        }
        org.spongycastle.bcpg.BCPGOutputStream v6_8 = new java.io.BufferedInputStream(new java.io.FileInputStream(p5));
        org.spongycastle.bcpg.ArmoredOutputStream v5_2 = new org.spongycastle.bcpg.ArmoredOutputStream(p7);
        v5_2.beginClearText(v9_2);
        org.spongycastle.openpgp.PGPSignature v7_2 = new java.io.ByteArrayOutputStream();
        int v8_7 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v7_2, v6_8);
        org.spongycastle.openpgp.examples.ClearSignedFileProcessor.processLine(v5_2, v0_11, v7_2.toByteArray());
        if (v8_7 != -1) {
            do {
                v8_7 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v7_2, v8_7, v6_8);
                v0_11.update(13);
                v0_11.update(10);
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.processLine(v5_2, v0_11, v7_2.toByteArray());
            } while(v8_7 != -1);
        }
        v6_8.close();
        v5_2.endClearText();
        v0_11.generate().encode(new org.spongycastle.bcpg.BCPGOutputStream(v5_2));
        v5_2.close();
        return;
    }

Method org.spongycastle.openpgp.examples.ClearSignedFileProcessor.main() calling method java.io.FileInputStream.<init>()


    public static void main(String[] p6)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (!p6[0].equals("-s")) {
            if (!p6[0].equals("-v")) {
                System.err.println("usage: ClearSignedFileProcessor [-s file keyfile passPhrase]|[-v sigFile keyFile]");
            } else {
                if (p6[1].indexOf(".asc") < 0) {
                    System.err.println("file needs to end in \".asc\"");
                    System.exit(1);
                }
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.verifyFile(new java.io.FileInputStream(p6[1]), org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[2])), p6[1].substring(0, (p6[1].length() - 4)));
            }
        } else {
            String v0_6 = org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[2]));
            java.io.InputStream v2_4 = new StringBuilder();
            v2_4.append(p6[1]);
            v2_4.append(".asc");
            java.io.FileInputStream v1_10 = new java.io.FileOutputStream(v2_4.toString());
            if (p6.length != 4) {
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.signFile(p6[1], v0_6, v1_10, p6[3].toCharArray(), p6[4]);
            } else {
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.signFile(p6[1], v0_6, v1_10, p6[3].toCharArray(), "SHA1");
            }
        }
        return;
    }

Method org.spongycastle.crypto.examples.DESExample.<init>() calling method java.io.FileInputStream.<init>()


    public DESExample(String p6, String p7, String p8, boolean p9)
    {
        this.encrypt = 1;
        this.cipher = 0;
        this.in = 0;
        this.out = 0;
        this.key = 0;
        this.encrypt = p9;
        try {
            this.in = new java.io.BufferedInputStream(new java.io.FileInputStream(p6));
            try {
                this.out = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p7));
            } catch (java.io.IOException) {
                StringBuilder v2_5 = new StringBuilder();
                v2_5.append("Output file not created [");
                v2_5.append(p7);
                v2_5.append("]");
                System.err.println(v2_5.toString());
                System.exit(1);
            }
            if (p9 == null) {
                try {
                    java.io.BufferedOutputStream v7_6 = new java.io.BufferedInputStream(new java.io.FileInputStream(p8));
                    byte[] v9_7 = v7_6.available();
                    int v1_2 = new byte[v9_7];
                    v7_6.read(v1_2, 0, v9_7);
                    this.key = org.spongycastle.util.encoders.Hex.decode(v1_2);
                } catch (java.io.IOException) {
                    java.io.BufferedOutputStream v7_8 = new StringBuilder();
                    v7_8.append("Decryption key file not found, or not valid [");
                    v7_8.append(p8);
                    v7_8.append("]");
                    System.err.println(v7_8.toString());
                    System.exit(1);
                }
            } else {
                try {
                    java.io.BufferedOutputStream v7_11 = new java.security.SecureRandom();
                } catch (Exception) {
                    v7_11 = 0;
                    System.err.println("Hmmm, no SHA1PRNG, you need the Sun implementation");
                    System.exit(1);
                    byte[] v9_14 = new org.spongycastle.crypto.KeyGenerationParameters(v7_11, 192);
                    java.io.BufferedOutputStream v7_16 = new org.spongycastle.crypto.generators.DESedeKeyGenerator();
                    v7_16.init(v9_14);
                    this.key = v7_16.generateKey();
                    java.io.BufferedOutputStream v7_2 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p8));
                    byte[] v9_4 = org.spongycastle.util.encoders.Hex.encode(this.key);
                    v7_2.write(v9_4, 0, v9_4.length);
                    v7_2.flush();
                    v7_2.close();
                } catch (java.io.IOException) {
                    java.io.BufferedOutputStream v7_13 = new StringBuilder();
                    v7_13.append("Could not decryption create key file [");
                    v7_13.append(p8);
                    v7_13.append("]");
                    System.err.println(v7_13.toString());
                    System.exit(1);
                }
                v7_11.setSeed("www.bouncycastle.org".getBytes());
            }
            return;
        } catch (java.io.FileNotFoundException) {
            String v3_3 = new StringBuilder();
            v3_3.append("Input file not found [");
            v3_3.append(p6);
            v3_3.append("]");
            System.err.println(v3_3.toString());
            System.exit(1);
        }
    }

Method org.spongycastle.asn1.util.Dump.main() calling method java.io.FileInputStream.<init>()


    public static void main(String[] p2)
    {
        org.spongycastle.asn1.ASN1InputStream v2_3 = new org.spongycastle.asn1.ASN1InputStream(new java.io.FileInputStream(p2[0]));
        while(true) {
            String v0_3 = v2_3.readObject();
            if (v0_3 == null) {
                break;
            }
            System.out.println(org.spongycastle.asn1.util.ASN1Dump.dumpAsString(v0_3));
        }
        return;
    }

Method org.jsoup.helper.DataUtil.load() calling method java.io.FileInputStream.<init>()


    public static org.jsoup.nodes.Document load(java.io.File p1, String p2, String p3)
    {
        return org.jsoup.helper.DataUtil.parseInputStream(new java.io.FileInputStream(p1), p2, p3, org.jsoup.parser.Parser.htmlParser());
    }

Method org.apache.commons.io.input.XmlStreamReader.<init>() calling method java.io.FileInputStream.<init>()


    public XmlStreamReader(java.io.File p2)
    {
        this(new java.io.FileInputStream(p2));
        return;
    }

Method org.apache.commons.io.FileUtils.openInputStream() calling method java.io.FileInputStream.<init>()


    public static java.io.FileInputStream openInputStream(java.io.File p3)
    {
        if (!p3.exists()) {
            StringBuilder v1_5 = new StringBuilder();
            v1_5.append("File \'");
            v1_5.append(p3);
            v1_5.append("\' does not exist");
            throw new java.io.FileNotFoundException(v1_5.toString());
        } else {
            if (p3.isDirectory()) {
                StringBuilder v1_1 = new StringBuilder();
                v1_1.append("File \'");
                v1_1.append(p3);
                v1_1.append("\' exists but is a directory");
                throw new java.io.IOException(v1_1.toString());
            } else {
                if (!p3.canRead()) {
                    StringBuilder v1_3 = new StringBuilder();
                    v1_3.append("File \'");
                    v1_3.append(p3);
                    v1_3.append("\' cannot be read");
                    throw new java.io.IOException(v1_3.toString());
                } else {
                    return new java.io.FileInputStream(p3);
                }
            }
        }
    }

Method org.apache.commons.io.FileUtils.doCopyFile() calling method java.io.FileInputStream.<init>()


    private static void doCopyFile(java.io.File p19, java.io.File p20, boolean p21)
    {
        if ((p20.exists()) && (p20.isDirectory())) {
            long v2_0 = new StringBuilder();
            v2_0.append("Destination \'");
            v2_0.append(p20);
            v2_0.append("\' exists but is a directory");
            throw new java.io.IOException(v2_0.toString());
        } else {
            long v2_5 = new java.io.FileInputStream(p19);
            Throwable v3_0 = 0;
            try {
                java.nio.channels.FileChannel v10 = v2_5.getChannel();
                try {
                    java.io.FileOutputStream v11_1 = new java.io.FileOutputStream(p20);
                    try {
                        java.nio.channels.FileChannel v12 = v11_1.getChannel();
                        try {
                            long v13 = v10.size();
                            long v17 = 0;
                        } catch (String v0_11) {
                            Throwable v1_5 = v0_11;
                            long v4_3 = 0;
                            if (v12 != null) {
                                if (v4_3 == 0) {
                                    v12.close();
                                } else {
                                    try {
                                        v12.close();
                                    } catch (String v0_12) {
                                        v4_3.addSuppressed(v0_12);
                                    }
                                }
                            }
                            throw v1_5;
                        } catch (String v0_9) {
                            Throwable v1_4 = v0_9;
                            try {
                                throw v1_4;
                            } catch (String v0_10) {
                                v4_3 = v1_4;
                                v1_5 = v0_10;
                            }
                        }
                        while (v17 < v13) {
                            String v8_2;
                            long v4_2 = (v13 - v17);
                            if (v4_2 <= 31457280) {
                                v8_2 = v4_2;
                            } else {
                                v8_2 = 31457280;
                            }
                            long v4_5 = v12.transferFrom(v10, v17, v8_2);
                            if (v4_5 == 0) {
                                break;
                            }
                            v17 += v4_5;
                        }
                        if (v12 != null) {
                            v12.close();
                        }
                        v11_1.close();
                        if (v10 != null) {
                            v10.close();
                        }
                        v2_5.close();
                        long v2_2 = p19.length();
                        long v4_0 = p20.length();
                        if (v2_2 != v4_0) {
                            StringBuilder v7_1 = new StringBuilder();
                            v7_1.append("Failed to copy full contents from \'");
                            v7_1.append(p19);
                            v7_1.append("\' to \'");
                            v7_1.append(p20);
                            v7_1.append("\' Expected length: ");
                            v7_1.append(v2_2);
                            v7_1.append(" Actual: ");
                            v7_1.append(v4_0);
                            throw new java.io.IOException(v7_1.toString());
                        } else {
                            if (p21) {
                                p20.setLastModified(p19.lastModified());
                            }
                            return;
                        }
                    } catch (String v0_15) {
                        Throwable v1_7 = v0_15;
                        long v4_6 = 0;
                        if (v4_6 == 0) {
                            v11_1.close();
                        } else {
                            try {
                                v11_1.close();
                            } catch (String v0_17) {
                                v4_6.addSuppressed(v0_17);
                            }
                        }
                        throw v1_7;
                    } catch (String v0_13) {
                        Throwable v1_6 = v0_13;
                        try {
                            throw v1_6;
                        } catch (String v0_14) {
                            v4_6 = v1_6;
                            v1_7 = v0_14;
                        }
                    }
                } catch (String v0_20) {
                    Throwable v1_9 = v0_20;
                    long v4_7 = 0;
                    if (v10 != null) {
                        if (v4_7 == 0) {
                            v10.close();
                        } else {
                            try {
                                v10.close();
                            } catch (String v0_21) {
                                v4_7.addSuppressed(v0_21);
                            }
                        }
                    }
                    throw v1_9;
                } catch (String v0_18) {
                    Throwable v1_8 = v0_18;
                    try {
                        throw v1_8;
                    } catch (String v0_19) {
                        v4_7 = v1_8;
                        v1_9 = v0_19;
                    }
                }
            } catch (String v0_2) {
                Throwable v1_1 = v0_2;
                if (v3_0 == null) {
                    v2_5.close();
                } else {
                    try {
                        v2_5.close();
                    } catch (String v0_3) {
                        v3_0.addSuppressed(v0_3);
                    }
                }
                throw v1_1;
            } catch (String v0_1) {
                v3_0 = v0_1;
                throw v3_0;
            }
        }
    }

Method org.apache.commons.io.FileUtils.copyFile() calling method java.io.FileInputStream.<init>()


    public static long copyFile(java.io.File p1, java.io.OutputStream p2)
    {
        Throwable v0_1 = new java.io.FileInputStream(p1);
        try {
            Throwable v1_1 = org.apache.commons.io.IOUtils.copyLarge(v0_1, p2);
            v0_1.close();
            return v1_1;
        } catch (Throwable v1_2) {
            Throwable v2_1 = 0;
            if (v2_1 == null) {
                v0_1.close();
            } else {
                try {
                    v0_1.close();
                } catch (Throwable v0_2) {
                    v2_1.addSuppressed(v0_2);
                }
            }
            throw v1_2;
        } catch (Throwable v2_1) {
            try {
                throw v2_1;
            } catch (Throwable v1_2) {
            }
        }
    }

Method org.apache.commons.io.FileUtils.contentEqualsIgnoreEOL() calling method java.io.FileInputStream.<init>()


    public static boolean contentEqualsIgnoreEOL(java.io.File p4, java.io.File p5, String p6)
    {
        java.io.InputStreamReader v0_0 = p4.exists();
        if (v0_0 == p5.exists()) {
            if (v0_0 != null) {
                if ((p4.isDirectory()) || (p5.isDirectory())) {
                    throw new java.io.IOException("Can\'t compare directories, only files");
                } else {
                    if (!p4.getCanonicalFile().equals(p5.getCanonicalFile())) {
                        java.io.InputStreamReader v0_5;
                        if (p6 != null) {
                            v0_5 = new java.io.InputStreamReader(new java.io.FileInputStream(p4), p6);
                        } else {
                            v0_5 = new java.io.InputStreamReader(new java.io.FileInputStream(p4), java.nio.charset.Charset.defaultCharset());
                        }
                        Throwable v6_1;
                        Throwable v4_4 = 0;
                        try {
                            if (p6 != null) {
                                v6_1 = new java.io.InputStreamReader(new java.io.FileInputStream(p5), p6);
                            } else {
                                v6_1 = new java.io.InputStreamReader(new java.io.FileInputStream(p5), java.nio.charset.Charset.defaultCharset());
                            }
                            try {
                                Throwable v5_3 = org.apache.commons.io.IOUtils.contentEqualsIgnoreEOL(v0_5, v6_1);
                            } catch (Throwable v5_5) {
                                Throwable v1_11 = 0;
                                if (v1_11 == null) {
                                    v6_1.close();
                                } else {
                                    try {
                                        v6_1.close();
                                    } catch (Throwable v6_3) {
                                        v1_11.addSuppressed(v6_3);
                                    }
                                }
                                throw v5_5;
                            } catch (Throwable v5_4) {
                                try {
                                    throw v5_4;
                                } catch (Throwable v1_10) {
                                    v1_11 = v5_4;
                                    v5_5 = v1_10;
                                }
                            }
                            v6_1.close();
                            v0_5.close();
                            return v5_3;
                        } catch (Throwable v5_6) {
                            if (v4_4 == null) {
                                v0_5.close();
                            } else {
                                try {
                                    v0_5.close();
                                } catch (Throwable v6_4) {
                                    v4_4.addSuppressed(v6_4);
                                }
                            }
                            throw v5_6;
                        } catch (Throwable v4_4) {
                            throw v4_4;
                        }
                    } else {
                        return 1;
                    }
                }
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

Method org.apache.commons.io.FileUtils.contentEquals() calling method java.io.FileInputStream.<init>()


    public static boolean contentEquals(java.io.File p8, java.io.File p9)
    {
        Throwable v0_0 = p8.exists();
        if (v0_0 == p9.exists()) {
            if (v0_0 != null) {
                if ((p8.isDirectory()) || (p9.isDirectory())) {
                    throw new java.io.IOException("Can\'t compare directories, only files");
                } else {
                    if (p8.length() == p9.length()) {
                        if (!p8.getCanonicalFile().equals(p9.getCanonicalFile())) {
                            Throwable v0_6 = new java.io.FileInputStream(p8);
                            Throwable v8_3 = 0;
                            try {
                                Throwable v1_2 = new java.io.FileInputStream(p9);
                                try {
                                    Throwable v9_2 = org.apache.commons.io.IOUtils.contentEquals(v0_6, v1_2);
                                } catch (Throwable v9_4) {
                                    Throwable v2_3 = 0;
                                    if (v2_3 == null) {
                                        v1_2.close();
                                    } else {
                                        try {
                                            v1_2.close();
                                        } catch (Throwable v1_3) {
                                            v2_3.addSuppressed(v1_3);
                                        }
                                    }
                                    throw v9_4;
                                } catch (Throwable v9_3) {
                                    try {
                                        throw v9_3;
                                    } catch (Throwable v2_2) {
                                        v2_3 = v9_3;
                                        v9_4 = v2_2;
                                    }
                                }
                                v1_2.close();
                                v0_6.close();
                                return v9_2;
                            } catch (Throwable v9_5) {
                                if (v8_3 == null) {
                                    v0_6.close();
                                } else {
                                    try {
                                        v0_6.close();
                                    } catch (Throwable v0_7) {
                                        v8_3.addSuppressed(v0_7);
                                    }
                                }
                                throw v9_5;
                            } catch (Throwable v8_3) {
                                throw v8_3;
                            }
                        } else {
                            return 1;
                        }
                    } else {
                        return 0;
                    }
                }
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

Method org.apache.commons.io.FileUtils.checksum() calling method java.io.FileInputStream.<init>()


    public static java.util.zip.Checksum checksum(java.io.File p2, java.util.zip.Checksum p3)
    {
        if (p2.isDirectory()) {
            throw new IllegalArgumentException("Checksums can\'t be computed on directories");
        } else {
            Throwable v0_1 = new java.util.zip.CheckedInputStream(new java.io.FileInputStream(p2), p3);
            Throwable v2_1 = 0;
            try {
                org.apache.commons.io.IOUtils.copy(v0_1, new org.apache.commons.io.output.NullOutputStream());
                v0_1.close();
                return p3;
            } catch (Throwable v3_1) {
                if (v2_1 == null) {
                    v0_1.close();
                } else {
                    try {
                        v0_1.close();
                    } catch (Throwable v0_2) {
                        v2_1.addSuppressed(v0_2);
                    }
                }
                throw v3_1;
            } catch (Throwable v2_1) {
                throw v2_1;
            }
        }
    }

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


    public static okio.r a(java.io.File p1)
    {
        if (p1 == null) {
            throw new IllegalArgumentException("file == null");
        } else {
            return ark>okio.lark>.a(new java.io.FileInputStream(p1));
        }
    }

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

Couldn't retrieve source code

Method de.slackspace.openkeepass.a.a() calling method java.io.FileInputStream.<init>()

Couldn't retrieve source code

Method com.sophos.smsec.tracking.analytics.j.a() calling method java.io.FileInputStream.<init>()

Couldn't retrieve source code

Method com.sophos.smsec.plugin.webfiltering.a.a() calling method java.io.FileInputStream.<init>()


    private static boolean a(java.io.File p6)
    {
        try {
            String v2_0 = new java.io.FileInputStream(p6);
            try {
                int v6_2 = new java.io.BufferedReader(new java.io.InputStreamReader(v2_0));
                try {
                    String v1_2 = "";
                } catch (String v1_1) {
                    com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "Got exception", v1_1);
                    if (v6_2 == 0) {
                        if (v2_0 != null) {
                            v2_0.close();
                        }
                    } else {
                        v6_2.close();
                    }
                    return 0;
                }
                while(true) {
                    String v3_2 = v6_2.readLine();
                    if (v3_2 == null) {
                        break;
                    }
                    StringBuilder v4_1 = new StringBuilder();
                    v4_1.append(v1_2);
                    v4_1.append(v3_2);
                    v4_1.append("\n");
                    v1_2 = v4_1.toString();
                }
                if (v1_2.equals("<html><head><script type=\"text/javascript\">window.history.go(-2);</script></head><body></body></html>\n")) {
                    try {
                        v6_2.close();
                        v2_0.close();
                    } catch (int v6_4) {
                        com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "Got exception", v6_4);
                    }
                    return 1;
                } else {
                    try {
                        v6_2.close();
                        v2_0.close();
                    } catch (int v6_6) {
                        com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "Got exception", v6_6);
                    }
                    return 0;
                }
            } catch (String v0_1) {
                v6_2 = 0;
                if (v6_2 == 0) {
                    if (v2_0 != null) {
                        v2_0.close();
                    }
                } else {
                    v6_2.close();
                }
                throw v0_1;
            } catch (int v6_3) {
                v1_1 = v6_3;
                v6_2 = 0;
            }
        } catch (String v0_1) {
            v6_2 = 0;
            v2_0 = 0;
        } catch (int v6_7) {
            v2_0 = 0;
            v1_1 = v6_7;
            v6_2 = 0;
        } catch (String v0_1) {
        }
    }

Method com.sophos.smsec.core.updateengine.reader.n.a() calling method java.io.FileInputStream.<init>()


    public java.util.List a()
    {
        String v0_11;
        if (!this.g().exists()) {
            v0_11 = 0;
        } else {
            v0_11 = this.h();
            if ((v0_11 == null) && (!this.g().delete())) {
                String v0_6 = new StringBuilder();
                v0_6.append("Cannot delete file");
                v0_6.append(this.g().getAbsolutePath());
                com.sophos.smsec.core.smsectrace.d.d("UpdateEngine", v0_6.toString());
                String v1_12 = new StringBuilder();
                v1_12.append("Cannot delete file");
                v1_12.append(this.g().getAbsolutePath());
                throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_12.toString(), com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes.GeneralError);
            }
        }
        if (v0_11 == null) {
            this.i();
            v0_11 = this.h();
        }
        if (v0_11 == null) {
            String v0_13 = new StringBuilder();
            v0_13.append("File hash is corrupt ");
            v0_13.append(this.g().getAbsolutePath());
            com.sophos.smsec.core.smsectrace.d.d("UpdateEngine", v0_13.toString());
            String v1_19 = new StringBuilder();
            v1_19.append("File hash is corrupt ");
            v1_19.append(this.g().getAbsolutePath());
            throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_19.toString(), com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes.HashCorruption);
        } else {
            String v0_2 = 0;
            try {
                String v1_22 = new java.io.FileInputStream(this.g());
                try {
                    String v0_17 = this.a(v1_22);
                    try {
                        v1_22.close();
                    } catch (java.io.IOException) {
                        com.sophos.smsec.core.smsectrace.d.d("UpdateEngine", "Cannot close inputstream");
                    }
                    return v0_17;
                } catch (String v0_3) {
                    String v1_5 = v0_3;
                    v0_2 = v1_22;
                    if (v0_2 != null) {
                        try {
                            v0_2.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.d("UpdateEngine", "Cannot close inputstream");
                        }
                    }
                    throw v1_5;
                } catch (String v0_1) {
                    String v1_2 = v0_1;
                    v0_2 = v1_22;
                    com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes v3_2 = new StringBuilder();
                    v3_2.append("Cannot parse file");
                    v3_2.append(this.toString());
                    com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v3_2.toString(), v1_2);
                    throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_2.toString(), com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes.XMLCorruption);
                } catch (String v0_18) {
                    String v1_23 = v0_18;
                    v0_2 = v1_22;
                    com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes v3_6 = new StringBuilder();
                    v3_6.append("Cannot parse file");
                    v3_6.append(this.toString());
                    com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v3_6.toString(), v1_23);
                    throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_23.toString(), com.sophos.smsec.core.updateengine.UpdateEngineException$UpdateEngineErrorCodes.XMLCorruption);
                }
            } catch (String v1_5) {
            } catch (String v1_23) {
            }
        }
    }

Method com.sophos.smsec.core.updateengine.reader.d.a() calling method java.io.FileInputStream.<init>()


    public static String a(java.io.File p5, int p6)
    {
        String v5_1 = ark>com.sophos.smsec.core.updateengine.reader.dark>.b(p5);
        String v0_0 = "";
        if (v5_1.exists()) {
            String v6_4 = new char[p6];
            String v1_1 = 0;
            try {
                String v2_0 = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(v5_1)));
                try {
                    if (v2_0.read(v6_4) > 0) {
                        v0_0 = new String(v6_4);
                    }
                    try {
                        v2_0.close();
                    } catch (java.io.IOException) {
                        String v6_3 = "nge_sta";
                        String v1_3 = new StringBuilder();
                        v1_3.append("Cannot close file  ");
                        v1_3.append(v5_1.getName());
                        com.sophos.smsec.core.smsectrace.d.c(v6_3, v1_3.toString());
                    }
                } catch (String v6_2) {
                    v1_1 = v2_0;
                    if (v1_1 != null) {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException) {
                            String v0_2 = new StringBuilder();
                            v0_2.append("Cannot close file  ");
                            v0_2.append(v5_1.getName());
                            com.sophos.smsec.core.smsectrace.d.c("nge_sta", v0_2.toString());
                        }
                    }
                    throw v6_2;
                } catch (java.io.IOException) {
                    v1_1 = v2_0;
                    String v2_2 = new StringBuilder();
                    v2_2.append("Cannot write file ");
                    v2_2.append(v5_1.getName());
                    com.sophos.smsec.core.smsectrace.d.c("nge_sta", v2_2.toString());
                    if (v1_1 == null) {
                        return v0_0;
                    } else {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException) {
                            v6_3 = "nge_sta";
                            v1_3 = new StringBuilder();
                        }
                        return v0_0;
                    }
                }
            } catch (String v6_2) {
            }
        }
        return v0_0;
    }

Method com.sophos.smsec.core.updateengine.reader.d.a() calling method java.io.FileInputStream.<init>()


    protected static String a(java.io.File p4)
    {
        try {
            com.sophos.smsec.core.updateengine.UpdateEngineException v0_2 = java.security.MessageDigest.getInstance("MD5");
            StringBuilder v1_3 = new java.security.DigestInputStream(new java.io.BufferedInputStream(new java.io.FileInputStream(p4), 16384), v0_2);
            String v2_0 = new byte[4096];
            try {
                while (v1_3.read(v2_0, 0, 4096) >= 0) {
                }
            } catch (String v4_5) {
                v1_3.close();
                throw v4_5;
            }
            v1_3.close();
            return ark>com.sophos.smsec.core.updateengine.reader.dark>.b(v0_2.digest());
        } catch (String v4_2) {
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("This should never happen: ");
            v1_1.append(v4_2.toString());
            throw new com.sophos.smsec.core.updateengine.UpdateEngineException(v1_1.toString());
        }
    }

Method com.sophos.smsec.core.updateengine.notification.b.a() calling method java.io.FileInputStream.<init>()


    public static void a(android.content.Context p3, java.io.File p4)
    {
        java.io.FileOutputStream v3_1 = p3.openFileOutput("smsec_notification.properties", 0);
        try {
            int v2_1 = new java.io.FileInputStream(p4);
            try {
                Throwable v4_1 = new byte[1024];
            } catch (Throwable v4_2) {
                if (v2_1 != 0) {
                    v2_1.close();
                }
                v3_1.close();
                throw v4_2;
            }
            while(true) {
                int v0_1 = v2_1.read(v4_1);
                if (v0_1 <= 0) {
                    break;
                }
                v3_1.write(v4_1, 0, v0_1);
            }
            v2_1.close();
            v3_1.close();
            return;
        } catch (Throwable v4_2) {
            v2_1 = 0;
        }
    }

Method com.sophos.smsec.core.smsectrace.d.a() calling method java.io.FileInputStream.<init>()


    private static boolean a(java.io.File p12, java.io.File p13)
    {
        try {
            java.io.FileInputStream v0_1 = new java.io.FileInputStream(p12);
            java.nio.channels.FileChannel v7 = v0_1.getChannel();
            boolean v13_2 = java.nio.channels.Channels.newChannel(new java.util.zip.GZIPOutputStream(new java.io.FileOutputStream(p13)));
            long v10 = 0;
        } catch (java.io.IOException) {
            return 0;
        }
        do {
            long v1_2 = v7.transferTo(v10, (v7.size() - v10), v13_2);
            v10 += v1_2;
        } while((v1_2 != 0) && (v10 < v7.size()));
        v0_1.close();
        if (v13_2) {
            v13_2.close();
        }
        if (!p12.delete()) {
            ark>com.sophos.smsec.core.smsectrace.dark>.a(p12);
        }
        return 1;
    }

Method com.sophos.smsec.core.smsectrace.SendTraceMail.b() calling method java.io.FileInputStream.<init>()


    private static int b(java.io.File p3, java.io.File p4)
    {
        String v0_0 = 0;
        try {
            int v1_1 = new java.io.FileInputStream(p3);
            try {
                String v3_8 = new java.io.FileOutputStream(p4);
                try {
                    String v4_1 = com.sophos.smsec.core.smsectrace.SendTraceMail.a(v1_1, v3_8);
                    try {
                        v3_8.close();
                        try {
                            v1_1.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing input stream failed.");
                        }
                        return v4_1;
                    } catch (java.io.IOException) {
                        com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing output stream failed.");
                    }
                } catch (String v4_3) {
                    v0_0 = v3_8;
                    if (v0_0 != null) {
                        try {
                            v0_0.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing output stream failed.");
                        }
                    }
                    if (v1_1 != 0) {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing input stream failed.");
                        }
                    }
                    throw v4_3;
                } catch (String v4_2) {
                    v0_0 = v3_8;
                    com.sophos.smsec.core.smsectrace.d.b("SendTraceMail", "can\'t open file stream.", v4_2);
                    if (v0_0 != null) {
                        try {
                            v0_0.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing output stream failed.");
                        }
                    }
                    if (v1_1 != 0) {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing input stream failed.");
                        }
                    }
                    return 0;
                }
            } catch (String v4_2) {
            }
        } catch (String v4_3) {
            v1_1 = 0;
        } catch (String v4_2) {
            v1_1 = 0;
        } catch (String v4_3) {
        }
    }

Method com.sophos.smsec.command.persist.a.a() calling method java.io.FileInputStream.<init>()


    void a(android.content.Context p9)
    {
        Throwable v1_2 = new java.io.File(p9.getFilesDir(), "persistQueue");
        if (!v1_2.exists()) {
            com.sophos.smsec.core.smsectrace.d.b("Persist", "command queue file does not exists");
        } else {
            try {
                Throwable v2_2 = new java.io.ObjectInputStream(new java.io.FileInputStream(v1_2));
                Throwable v1_0 = 0;
                try {
                    String v3_3;
                    String v3_2 = v2_2.readObject();
                } catch (String v3_6) {
                    if (v1_0 == null) {
                        v2_2.close();
                    } else {
                        try {
                            v2_2.close();
                        } catch (Throwable v2_4) {
                            v1_0.addSuppressed(v2_4);
                        }
                    }
                    throw v3_6;
                } catch (Throwable v1_0) {
                    throw v1_0;
                }
                if (!(v3_2 instanceof java.util.ArrayList)) {
                    v3_3 = 0;
                } else {
                    v3_3 = ((java.util.ArrayList) v3_2).iterator();
                }
                while ((v3_3 != null) && (v3_3.hasNext())) {
                    com.sophos.mobilecontrol.client.android.core.CommandQueueItemRest v4_2 = v3_3.next();
                    if (!(v4_2 instanceof com.sophos.mobilecontrol.client.android.core.CommandQueueItemRest)) {
                        com.sophos.smsec.core.smsectrace.d.b("Persist", "could not load command queue. No entry class found.");
                        break;
                    } else {
                        if (!this.a.contains(((com.sophos.mobilecontrol.client.android.core.CommandQueueItemRest) v4_2))) {
                            String v6_3 = new StringBuilder();
                            v6_3.append("Load persisted command: ");
                            v6_3.append(((com.sophos.mobilecontrol.client.android.core.CommandQueueItemRest) v4_2).getCommand().getType());
                            com.sophos.smsec.core.smsectrace.d.b("Persist", v6_3.toString());
                            this.a.add(((com.sophos.mobilecontrol.client.android.core.CommandQueueItemRest) v4_2));
                        }
                    }
                }
                v2_2.close();
            } catch (Throwable v1_3) {
                com.sophos.smsec.core.smsectrace.d.c("Persist", "could not load command queue", v1_3);
            }
        }
        this.c(p9);
        return;
    }

Method com.sophos.smsec.a.a.a() calling method java.io.FileInputStream.<init>()


    public static boolean a(String p6)
    {
        if (!p6.toLowerCase().endsWith(".apk")) {
            boolean v0_8 = new byte[ark>com.sophos.smsec.a.aark>.a.length];
            String v1_1 = 0;
            try {
                byte[] v3_1 = new java.io.FileInputStream(p6);
                try {
                    String v1_0 = v3_1.read(v0_8);
                    try {
                        v3_1.close();
                    } catch (byte[] v3_2) {
                        com.sophos.smsec.core.smsectrace.d.c("SMsec", "Cannot close zip stream", v3_2);
                    }
                    byte[] v3_3 = ark>com.sophos.smsec.a.aark>.a;
                    if ((v1_0 == v3_3.length) && (java.util.Arrays.equals(v3_3, v0_8))) {
                        return ark>com.sophos.smsec.a.aark>.b(p6);
                    } else {
                        return 0;
                    }
                } catch (boolean v6_1) {
                    v1_1 = v3_1;
                    if (v1_1 != null) {
                        try {
                            v1_1.close();
                        } catch (boolean v0_3) {
                            com.sophos.smsec.core.smsectrace.d.c("SMsec", "Cannot close zip stream", v0_3);
                        }
                    }
                    throw v6_1;
                } catch (java.io.FileNotFoundException) {
                    v1_1 = v3_1;
                    if (v1_1 != null) {
                        try {
                            v1_1.close();
                        } catch (boolean v6_3) {
                            com.sophos.smsec.core.smsectrace.d.c("SMsec", "Cannot close zip stream", v6_3);
                        }
                    }
                    return 0;
                } catch (java.io.IOException) {
                    v1_1 = v3_1;
                    if (v1_1 != null) {
                        try {
                            v1_1.close();
                        } catch (boolean v6_2) {
                            com.sophos.smsec.core.smsectrace.d.c("SMsec", "Cannot close zip stream", v6_2);
                        }
                    }
                    return 0;
                }
            } catch (boolean v6_1) {
            } catch (java.io.FileNotFoundException) {
            } catch (java.io.IOException) {
            }
        } else {
            return ark>com.sophos.smsec.a.aark>.b(p6);
        }
    }

Method com.sophos.smsec.a.a.a() calling method java.io.FileInputStream.<init>()


    public static int a(java.io.File p1, java.io.File p2)
    {
        try {
            return ark>com.sophos.smsec.a.aark>.a(new java.io.FileInputStream(p1), new java.io.FileOutputStream(p2));
        } catch (java.io.FileNotFoundException) {
            return 0;
        }
    }

Method com.sophos.nge.utils.e.f() calling method java.io.FileInputStream.<init>()


    public static String f(android.content.Context p4, String p5)
    {
        String v4_1 = com.sophos.nge.utils.e.a(p4, p5);
        if (v4_1 != null) {
            try {
                String v0_2 = java.security.MessageDigest.getInstance("SHA-256");
                try {
                    java.security.DigestInputStream v1_1 = new java.security.DigestInputStream(new java.io.BufferedInputStream(new java.io.FileInputStream(v4_1), 16384), v0_2);
                    byte[] v5_1 = new byte[4096];
                    try {
                        while (v1_1.read(v5_1, 0, 4096) >= 0) {
                        }
                    } catch (String v4_8) {
                        v1_1.close();
                        throw v4_8;
                    }
                    v1_1.close();
                    return com.sophos.nge.utils.e.b(v0_2.digest());
                } catch (java.io.FileNotFoundException) {
                    String v4_5 = new StringBuilder();
                    v4_5.append("Protected App found. Package ");
                    v4_5.append(v5_1);
                    com.sophos.smsec.core.smsectrace.d.g(v4_5.toString());
                    return "00000000";
                }
            } catch (String v4_12) {
                com.sophos.smsec.core.smsectrace.d.c("Hash algorithm not found", v4_12);
                return "00000000";
            }
        } else {
            return "00000000";
        }
    }

Method com.sophos.nge.utils.e.b() calling method java.io.FileInputStream.<init>()


    public static boolean b(String p6)
    {
        if (!p6.toLowerCase().endsWith(".apk")) {
            boolean v0_8 = new byte[com.sophos.nge.utils.e.a.length];
            String v1_1 = 0;
            try {
                byte[] v3_1 = new java.io.FileInputStream(p6);
                try {
                    String v1_0 = v3_1.read(v0_8);
                    try {
                        v3_1.close();
                    } catch (byte[] v3_2) {
                        com.sophos.smsec.core.smsectrace.d.c("NextGen", "Cannot close zip stream", v3_2);
                    }
                    byte[] v3_3 = com.sophos.nge.utils.e.a;
                    if ((v1_0 == v3_3.length) && (java.util.Arrays.equals(v3_3, v0_8))) {
                        return com.sophos.nge.utils.e.d(p6);
                    } else {
                        return 0;
                    }
                } catch (boolean v6_1) {
                    v1_1 = v3_1;
                    if (v1_1 != null) {
                        try {
                            v1_1.close();
                        } catch (boolean v0_3) {
                            com.sophos.smsec.core.smsectrace.d.c("NextGen", "Cannot close zip stream", v0_3);
                        }
                    }
                    throw v6_1;
                } catch (java.io.FileNotFoundException) {
                    v1_1 = v3_1;
                    if (v1_1 != null) {
                        try {
                            v1_1.close();
                        } catch (boolean v6_3) {
                            com.sophos.smsec.core.smsectrace.d.c("NextGen", "Cannot close zip stream", v6_3);
                        }
                    }
                    return 0;
                } catch (java.io.IOException) {
                    v1_1 = v3_1;
                    if (v1_1 != null) {
                        try {
                            v1_1.close();
                        } catch (boolean v6_2) {
                            com.sophos.smsec.core.smsectrace.d.c("NextGen", "Cannot close zip stream", v6_2);
                        }
                    }
                    return 0;
                }
            } catch (boolean v6_1) {
            } catch (java.io.FileNotFoundException) {
            } catch (java.io.IOException) {
            }
        } else {
            return com.sophos.nge.utils.e.d(p6);
        }
    }

Method com.sophos.nge.utils.d.g() calling method java.io.FileInputStream.<init>()


    private static String g(android.content.Context p3)
    {
        try {
            String v3_2;
            byte[] v0_5 = new java.io.File(p3.getDir("networksec", 0), "networkProtection.json");
        } catch (String v3_4) {
            com.sophos.smsec.core.smsectrace.d.d("NGEFirebase", v3_4);
            return "";
        }
        if (!v0_5.exists()) {
            v3_2 = p3.getAssets().open("networkProtection.json");
        } else {
            v3_2 = new java.io.BufferedInputStream(new java.io.FileInputStream(v0_5));
        }
        byte[] v0_4 = new byte[v3_2.available()];
        v3_2.read(v0_4);
        return new String(v0_4, "UTF-8");
    }

Method com.sophos.nge.ste.invincea.g.e() calling method java.io.FileInputStream.<init>()


    private declared_synchronized java.io.InputStream e(String p4)
    {
        try {
            return new javax.crypto.CipherInputStream(new java.io.FileInputStream(com.sophos.nge.ste.invincea.g.a(this.b, p4)), this.a(2).getKey());
        } catch (Throwable v4_2) {
            throw v4_2;
        }
    }

Method com.sophos.nge.ste.invincea.g.c() calling method java.io.FileInputStream.<init>()


    private String c()
    {
        Throwable v0_0 = "na";
        if (this.d().exists()) {
            String v1_0 = 0;
            try {
                String v2_0 = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(this.d())));
                try {
                    v0_0 = v2_0.readLine();
                } catch (Throwable v0_1) {
                    v1_0 = v2_0;
                    if (v1_0 != null) {
                        try {
                            v1_0.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.c("nge_sta", "Cannot close file MODEL_VERSION_FILE");
                        }
                    }
                    throw v0_1;
                } catch (java.io.IOException) {
                    v1_0 = v2_0;
                    com.sophos.smsec.core.smsectrace.d.c("nge_sta", "Cannot read file MODEL_VERSION_FILE");
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                }
                v2_0.close();
            } catch (Throwable v0_1) {
            } catch (java.io.IOException) {
                com.sophos.smsec.core.smsectrace.d.c("nge_sta", "Cannot close file MODEL_VERSION_FILE");
            }
        }
        return v0_0;
    }

Method com.sophos.nge.ste.invincea.a.b() calling method java.io.FileInputStream.<init>()


    private byte[] b(String p5)
    {
        try {
            java.io.PrintStream v0_1 = new java.util.jar.JarInputStream(new java.io.FileInputStream(this.a));
            try {
                java.util.jar.JarEntry v1_1 = v0_1.getNextJarEntry();
            } catch (byte[] v5_17) {
                v0_1.close();
                throw v5_17;
            } catch (byte[] v5_6) {
                StringBuilder v2_4 = new StringBuilder();
                v2_4.append("Cannot read Android Manifest from APK file ");
                v2_4.append(this.a);
                v2_4.append(" ");
                v2_4.append(v5_6.toString());
                System.out.println(v2_4.toString());
                throw new android.content.pm.PackageManager$NameNotFoundException();
            }
            while (v1_1 != null) {
                if (!v1_1.getName().equalsIgnoreCase(p5)) {
                    v0_1.closeEntry();
                    v1_1 = v0_1.getNextJarEntry();
                } else {
                    byte[] v5_5 = com.sophos.nge.ste.invincea.a.a(v0_1);
                }
                v0_1.close();
                return v5_5;
            }
            v5_5 = 0;
            v0_1.close();
            return v5_5;
        } catch (byte[] v5_8) {
            java.util.jar.JarEntry v1_8 = new StringBuilder();
            v1_8.append("Cannot open APK file via JarInputStream ");
            v1_8.append(this.a);
            v1_8.append(" ");
            v1_8.append(v5_8.toString());
            System.out.println(v1_8.toString());
            throw new android.content.pm.PackageManager$NameNotFoundException();
        }
    }

Method com.sophos.nge.ste.c.a.b() calling method java.io.FileInputStream.<init>()


    private java.util.List b(android.content.Context p7)
    {
        String v0_7 = new java.io.File(p7.getFilesDir(), "AppData");
        if (!v0_7.exists()) {
            v0_7.mkdir();
        }
        java.io.IOException v7_1 = new java.io.File(v0_7, "AppDataFile.sdt");
        if (v7_1.exists()) {
            String v0_2 = 0;
            try {
                String v1_2 = new java.io.ObjectInputStream(new java.io.FileInputStream(v7_1));
                try {
                    java.util.ArrayList v2_2 = v1_2.readObject();
                } catch (String v0_3) {
                    boolean v3_3 = new StringBuilder();
                    v3_3.append("could not load file: ");
                    v3_3.append(v7_1);
                    com.sophos.smsec.core.smsectrace.d.b("nge_sta", v3_3.toString(), v0_3);
                    if (v1_2 != null) {
                        v1_2.close();
                    }
                }
                if ((v2_2 instanceof java.util.ArrayList)) {
                    v0_2 = ((java.util.ArrayList) v2_2).iterator();
                }
                if ((v0_2 == null) || ((!v0_2.hasNext()) || (!(v0_2.next() instanceof com.sophos.nge.utils.StoreData)))) {
                    v1_2.close();
                } else {
                    java.util.ArrayList v2_3 = ((java.util.ArrayList) v2_2);
                    try {
                        v1_2.close();
                    } catch (java.io.IOException v7_9) {
                        com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v7_9);
                    }
                    return v2_3;
                }
            } catch (java.io.IOException v7_3) {
                v1_2 = 0;
                if (v1_2 != null) {
                    try {
                        v1_2.close();
                    } catch (String v0_11) {
                        com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v0_11);
                    }
                }
                throw v7_3;
            } catch (String v1_3) {
                v1_2 = 0;
                v0_3 = v1_3;
            } catch (java.io.IOException v7_3) {
            } catch (java.io.IOException v7_5) {
                com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v7_5);
            }
        }
        return new java.util.ArrayList(0);
    }

Method com.sophos.keepasseditor.f.a() calling method java.io.FileInputStream.<init>()


    public static void a(de.slackspace.openkeepass.domain.KeePassFile p3, String p4, byte[] p5, String p6)
    {
        String v1_5 = new StringBuilder();
        v1_5.append(p6);
        v1_5.append("~tmp~.kdbx");
        int v0_3 = new java.io.File(v1_5.toString());
        if (v0_3.exists()) {
            v0_3.delete();
        }
        String v1_3 = new StringBuilder();
        v1_3.append(p6);
        v1_3.append("~tmp~.kdbx");
        de.slackspace.openkeepass.a.a(p3, p4, p5, v1_3.toString());
        java.io.IOException v3_2 = new java.io.File(p6);
        v3_2.delete();
        if ((!v0_3.renameTo(v3_2)) || (v0_3.exists())) {
            com.sophos.smsec.core.smsectrace.d.e("Ops", "Can\'t rename temporary file.");
            String v4_4 = 0;
            try {
                String v5_3 = new java.io.FileInputStream(v0_3);
                try {
                    int v6_1 = new java.io.FileOutputStream(v3_2);
                    try {
                        java.io.IOException v3_6 = new byte[1024];
                        String v4_5 = v5_3.read(v3_6);
                    } catch (java.io.IOException v3_4) {
                        if (v5_3 != null) {
                            try {
                                v5_3.close();
                            } catch (String v4_9) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v4_9);
                            }
                        }
                        if (v6_1 != 0) {
                            try {
                                v6_1.close();
                            } catch (String v4_10) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v4_10);
                            }
                        }
                        throw v3_4;
                    } catch (java.io.IOException v3_3) {
                        v4_4 = v5_3;
                        try {
                            com.sophos.smsec.core.smsectrace.d.b("Ops", v3_3);
                        } catch (java.io.IOException v3_4) {
                            v5_3 = v4_4;
                        }
                        if (v4_4 != null) {
                            try {
                                v4_4.close();
                            } catch (java.io.IOException v3_8) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v3_8);
                            }
                        }
                        if (v6_1 == 0) {
                            return;
                        } else {
                            v6_1.close();
                            return;
                        }
                        v4_5 = v5_3.read(v3_6);
                    }
                    while (v4_5 != -1) {
                        if (v4_5 > null) {
                            v6_1.write(v3_6, 0, v4_5);
                        }
                    }
                    try {
                        v5_3.close();
                    } catch (java.io.IOException v3_7) {
                        com.sophos.smsec.core.smsectrace.d.b("Ops", v3_7);
                    }
                    v6_1.close();
                } catch (java.io.IOException v3_4) {
                    v6_1 = 0;
                } catch (java.io.IOException v3_3) {
                    v6_1 = 0;
                }
            } catch (java.io.IOException v3_4) {
                v5_3 = 0;
                v6_1 = 0;
            } catch (java.io.IOException v3_3) {
                v6_1 = 0;
            } catch (java.io.IOException v3_9) {
                com.sophos.smsec.core.smsectrace.d.b("Ops", v3_9);
            }
        }
        return;
    }

Method com.sophos.jsceplib.d.b() calling method java.io.FileInputStream.<init>()


    private java.security.PrivateKey b()
    {
        java.security.PrivateKey v0_0 = this.c();
        try {
            Throwable v1_6 = new java.io.FileInputStream(new java.io.File(this.c.getFilesDir(), "SCEP_request.jks"));
            Throwable v2_0 = 0;
            try {
                java.security.KeyStore v3_1 = java.security.KeyStore.getInstance(java.security.KeyStore.getDefaultType());
                v3_1.load(v1_6, v0_0.toCharArray());
                java.security.PrivateKey v0_3 = ((java.security.KeyStore$PrivateKeyEntry) v3_1.getEntry("SMCCertificatePK", new java.security.KeyStore$PasswordProtection(v0_0.toCharArray())));
            } catch (java.security.PrivateKey v0_6) {
                if (v2_0 == null) {
                    v1_6.close();
                } else {
                    try {
                        v1_6.close();
                    } catch (Throwable v1_1) {
                        v2_0.addSuppressed(v1_1);
                    }
                }
                throw v0_6;
            } catch (java.security.PrivateKey v0_5) {
                v2_0 = v0_5;
                throw v2_0;
            }
            if (v0_3 == null) {
                v1_6.close();
                return 0;
            } else {
                java.security.PrivateKey v0_4 = v0_3.getPrivateKey();
                v1_6.close();
                return v0_4;
            }
        } catch (java.security.PrivateKey v0_7) {
            throw new com.sophos.jsceplib.ScepException(v0_7);
        }
    }

Method com.sophos.jsceplib.d.a() calling method java.io.FileInputStream.<init>()


    private void a(java.security.cert.X509Certificate p8, java.security.PrivateKey p9)
    {
        String v0 = this.c();
        java.security.KeyStore$PasswordProtection v1_1 = new java.security.cert.Certificate[1];
        v1_1[0] = p8;
        java.io.File v3_0 = new java.io.File(this.c.getFilesDir(), "SCEP_request.jks");
        try {
            java.security.KeyStore v2_1 = java.security.KeyStore.getInstance(java.security.KeyStore.getDefaultType());
            Throwable v5 = 0;
        } catch (Throwable v8_6) {
            throw new com.sophos.jsceplib.ScepException(v8_6);
        }
        if (!v3_0.exists()) {
            v2_1.load(0);
        } else {
            java.security.KeyStore$PrivateKeyEntry v4_3 = new java.io.FileInputStream(v3_0);
            try {
                v2_1.load(v4_3, v0.toCharArray());
            } catch (Throwable v8_2) {
                if (v5 == null) {
                    v4_3.close();
                } else {
                    try {
                        v4_3.close();
                    } catch (Throwable v9_1) {
                        v5.addSuppressed(v9_1);
                    }
                }
                throw v8_2;
            } catch (Throwable v8_1) {
                v5 = v8_1;
                throw v5;
            }
            v4_3.close();
        }
        v2_1.setEntry("SMCCertificatePK", new java.security.KeyStore$PrivateKeyEntry(p9, v1_1), new java.security.KeyStore$PasswordProtection(v0.toCharArray()));
        v2_1.setCertificateEntry("SMCCertificate", p8);
        Throwable v8_4 = new java.io.FileOutputStream(v3_0);
        try {
            v2_1.store(v8_4, v0.toCharArray());
        } catch (Throwable v9_6) {
            if (v5 == null) {
                v8_4.close();
            } else {
                try {
                    v8_4.close();
                } catch (Throwable v8_5) {
                    v5.addSuppressed(v8_5);
                }
            }
            throw v9_6;
        } catch (Throwable v9_5) {
            v5 = v9_5;
            throw v5;
        }
        v8_4.close();
        return;
    }

Method com.sophos.jbase.k.a() calling method java.io.FileInputStream.<init>()


    public static declared_synchronized void a(byte[] p5)
    {
        String v1_0 = 0;
        try {
            if (!ark>com.sophos.jbase.kark>.b) {
                ark>com.sophos.jbase.kark>.a();
            }
            try {
                String v2_5 = new java.io.DataInputStream(new java.io.FileInputStream(ark>com.sophos.jbase.kark>.a));
                try {
                    v2_5.readFully(p5);
                } catch (String v5_2) {
                    v1_0 = v2_5;
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v5_2;
                } catch (String v5_1) {
                    v1_0 = v2_5;
                    String v3_1 = new StringBuilder();
                    v3_1.append("Error while reading from random device ");
                    v3_1.append(ark>com.sophos.jbase.kark>.a);
                    throw new SecurityException(v3_1.toString(), v5_1);
                }
                v2_5.close();
                return;
            } catch (String v5_2) {
            } catch (String v5_1) {
            }
        } catch (String v5_4) {
            throw v5_4;
        }
    }

Method com.sophos.jbase.i.b() calling method java.io.FileInputStream.<init>()


    public static declared_synchronized com.sophos.jbase.EncryptionKey b(android.content.Context p14)
    {
        try {
            if (com.sophos.jbase.i.f == null) {
                android.content.Context v14_28;
                if (p14 == null) {
                    v14_28 = 0;
                } else {
                    v14_28 = p14.getApplicationContext();
                }
                com.sophos.jbase.i.f = v14_28;
                if (com.sophos.jbase.i.f == null) {
                    return 0;
                }
            }
        } catch (android.content.Context v14_20) {
            throw v14_20;
        }
        android.content.Context v14_3 = com.sophos.jbase.JBPreferences.a(com.sophos.jbase.i.f).a(com.sophos.jbase.JBPreferences$Preferences.ENABLE_KEYRING);
        if (com.sophos.jbase.i.d == null) {
            if (com.sophos.jbase.i.h == null) {
                com.sophos.jbase.i.a(com.sophos.jbase.i.f, 0);
                if (com.sophos.jbase.i.d == null) {
                    return 0;
                }
            } else {
                if ((v14_3 != null) && ((7 == com.sophos.jbase.i.c("CorporateDocumentsKey")) && ((3 == com.sophos.jbase.i.a(com.sophos.jbase.i.h)) && (!com.sophos.jbase.i.a(com.sophos.jbase.i.f))))) {
                    com.sophos.smsec.core.smsectrace.d.d("JBKeyStore", "Android key store is not available without configured lock screen!");
                    com.sophos.jbase.i.c(com.sophos.jbase.i.f);
                }
                return com.sophos.jbase.i.h;
            }
        }
        if (((com.sophos.jbase.i.b instanceof com.sophos.jbase.LegacyKeyStore)) && (com.sophos.jbase.i.a(1) == 0)) {
            com.sophos.jbase.i.a(com.sophos.jbase.i.f, 1);
        }
        if (com.sophos.jbase.i.h != null) {
            if ((v14_3 != null) && ((com.sophos.jbase.i.h != null) && ((7 == com.sophos.jbase.i.c(com.sophos.jbase.i.h.getKeyGuid())) && (3 == com.sophos.jbase.i.a(com.sophos.jbase.i.h))))) {
                com.sophos.smsec.core.smsectrace.d.d("JBKeyStore", "Android key store is not available without configured lock screen!");
            }
        } else {
            if (v14_3 != null) {
                com.sophos.jbase.i.h = com.sophos.jbase.i.a("CorporateDocumentsKey");
            }
            if (com.sophos.jbase.i.h == null) {
                com.sophos.smsec.core.smsectrace.d.e("JBASE", "Created new data encryption key.");
                String v1_18 = com.sophos.jbase.i.i();
                if (com.sophos.jbase.i.f != null) {
                    String v8_20;
                    String v6_23 = com.sophos.jbase.i.f.getDir("keyring", 0);
                    if (!v6_23.mkdirs()) {
                        v8_20 = "false";
                    } else {
                        v8_20 = "true";
                    }
                    com.sophos.smsec.core.smsectrace.d.a("calling mkdirs returned ", v8_20);
                    java.io.File v7_3 = new java.io.File(v6_23, "pckdata.bin");
                    if (v7_3.exists()) {
                        String v6_1 = 2;
                        try {
                            com.sophos.jbase.i.d.initCipher(2, v1_18);
                            try {
                                String v8_0 = new java.io.ObjectInputStream(new javax.crypto.CipherInputStream(new java.io.FileInputStream(v7_3), com.sophos.jbase.i.d.getKey()));
                            } catch (String v6_0) {
                                v8_0 = 0;
                                if (v8_0 != null) {
                                    try {
                                        v8_0.close();
                                    } catch (String v8_3) {
                                        com.sophos.smsec.core.smsectrace.d.c("JBKeyStore", "closing stream failed.", v8_3);
                                    }
                                }
                                throw v6_0;
                            } catch (java.io.StreamCorruptedException) {
                                v8_0 = 0;
                                String v9_3 = com.sophos.jbase.JBKey.keyFromSecret(com.sophos.jbase.JBPreferences.b(com.sophos.jbase.i.f), com.sophos.jbase.i.a(com.sophos.jbase.i.f, com.sophos.jbase.JBPreferences$Preferences.CORP_PWD_SALT), com.sophos.jbase.JBKey$JBCryptAlgorithm.JBAES, com.sophos.jbase.JBKey$JBKeySize.JBKeySize256);
                                try {
                                    v9_3.initCipher(v6_1, v1_18);
                                } catch (String v6_2) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v6_2);
                                }
                                com.sophos.smsec.core.smsectrace.d.e("JBKeyStore", "old persistant file was recrypted.");
                                String v6_5 = new java.io.ObjectInputStream(new javax.crypto.CipherInputStream(new java.io.FileInputStream(v7_3), v9_3.getKey()));
                                try {
                                    String v8_1 = v6_5.readObject();
                                } catch (String v8_2) {
                                    v8_0 = v6_5;
                                    v6_0 = v8_2;
                                }
                                if ((v8_1 instanceof com.sophos.jbase.EncryptionKey)) {
                                    com.sophos.jbase.i.h = ((com.sophos.jbase.EncryptionKey) v8_1);
                                    com.sophos.jbase.i.a(v7_3, v1_18);
                                }
                                try {
                                    v6_5.close();
                                } catch (String v6_6) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBKeyStore", "closing stream failed.", v6_6);
                                }
                                v6_1 = v8_1;
                                if (!(v6_1 instanceof com.sophos.jbase.EncryptionKey)) {
                                    if (!(v6_1 instanceof com.sophos.jbase.a)) {
                                        com.sophos.smsec.core.smsectrace.d.d("JBASE", "Unexpected error.");
                                        if ((v14_3 != null) && ((com.sophos.jbase.i.h != null) && ((7 == com.sophos.jbase.i.c("CorporateDocumentsKey")) && ((3 == com.sophos.jbase.i.a(com.sophos.jbase.i.h)) && (!com.sophos.jbase.i.a(com.sophos.jbase.i.f)))))) {
                                            com.sophos.smsec.core.smsectrace.d.d("JBKeyStore", "Android key store is not available without configured lock screen!");
                                            com.sophos.jbase.i.c(com.sophos.jbase.i.f);
                                        }
                                    } else {
                                        String v6_8 = ((com.sophos.jbase.a) v6_1);
                                        com.sophos.jbase.i.h = new com.sophos.jbase.EncryptionKey(v6_8.getKeyName(), v6_8.getKeyGuid(), new com.sophos.jbase.JBKey(v6_8.getJBKey().getKeySpec()), v6_8.getAttr());
                                        com.sophos.jbase.i.a(v7_3, v1_18);
                                    }
                                } else {
                                    com.sophos.jbase.i.h = ((com.sophos.jbase.EncryptionKey) v6_1);
                                }
                            } catch (String v6_0) {
                            } catch (String v6_11) {
                                com.sophos.smsec.core.smsectrace.d.d("JBASE", "Non-CriticalError while deserializing keys.", v6_11);
                                com.sophos.jbase.i.h = 0;
                            }
                            v6_1 = v8_0.readObject();
                            try {
                                v8_0.close();
                            } catch (String v8_4) {
                                com.sophos.smsec.core.smsectrace.d.c("JBKeyStore", "closing stream failed.", v8_4);
                            }
                        } catch (String v8_23) {
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v8_23);
                        }
                    }
                    if (com.sophos.jbase.i.h == null) {
                        String v8_16;
                        android.content.Context v2_12 = new byte[32];
                        com.sophos.jbase.k.a(v2_12);
                        String v6_16 = new StringBuilder();
                        v6_16.append("Creating new corporate key. Keystore is ");
                        if (v14_3 == null) {
                            v8_16 = "off.";
                        } else {
                            v8_16 = "on.";
                        }
                        v6_16.append(v8_16);
                        com.sophos.smsec.core.smsectrace.d.e("JBASE", v6_16.toString());
                        com.sophos.jbase.i.h = new com.sophos.jbase.EncryptionKey("CorporateDocumentsKey", "CorporateDocumentsKey", v2_12, 272629760);
                        com.sophos.jbase.l.a(v2_12);
                        try {
                            com.sophos.jbase.i.h.getJBKey().initCipher(1, v1_18);
                        } catch (android.content.Context v2_15) {
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v2_15);
                        }
                        com.sophos.jbase.i.a(v7_3, v1_18);
                    }
                }
                if ((com.sophos.jbase.i.h != null) && ((com.sophos.jbase.i.h.getJBKey() != null) && (com.sophos.jbase.i.h.getJBKey().getKey() == null))) {
                    try {
                        com.sophos.jbase.i.h.getJBKey().initCipher(1, v1_18);
                    } catch (android.content.Context v2_24) {
                        com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v2_24);
                    }
                }
                com.sophos.jbase.l.a(v1_18);
                if ((v14_3 != null) && ((com.sophos.jbase.i.d != null) && ((3 == com.sophos.jbase.i.a(com.sophos.jbase.i.h)) && (!com.sophos.jbase.i.a(com.sophos.jbase.i.f))))) {
                    com.sophos.smsec.core.smsectrace.d.d("JBKeyStore", "Android key store is not available without configured lock screen!");
                    com.sophos.jbase.i.c(com.sophos.jbase.i.f);
                }
            }
        }
        return com.sophos.jbase.i.h;
    }

Method com.sophos.jbase.i.a() calling method java.io.FileInputStream.<init>()


    public static declared_synchronized boolean a(android.content.Context p13, boolean p14)
    {
        try {
            String v2_0 = 0;
        } catch (java.io.IOException v13_9) {
            throw v13_9;
        }
        if (ark>com.sophos.jbase.iark>.f == null) {
            java.io.IOException v13_20;
            if (p13 == null) {
                v13_20 = 0;
            } else {
                v13_20 = p13.getApplicationContext();
            }
            ark>com.sophos.jbase.iark>.f = v13_20;
            if (ark>com.sophos.jbase.iark>.f == null) {
                return 0;
            }
        }
        if (!(ark>com.sophos.jbase.iark>.b instanceof com.sophos.jbase.LegacyKeyStore)) {
            return 1;
        } else {
            if (ark>com.sophos.jbase.iark>.d == null) {
                ark>com.sophos.jbase.iark>.a(ark>com.sophos.jbase.iark>.f, 0);
                if (ark>com.sophos.jbase.iark>.d == null) {
                    return 0;
                }
            }
            if ((p14 == null) && (ark>com.sophos.jbase.iark>.a(0) != 0)) {
                return 0;
            } else {
                try {
                    ark>com.sophos.jbase.iark>.d.initCipher(2, ark>com.sophos.jbase.iark>.i());
                } catch (java.io.IOException v13_16) {
                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v13_16);
                }
                java.io.IOException v13_18 = new java.io.File(ark>com.sophos.jbase.iark>.f.getDir("keyring", 0), "pkdata.bin");
                if (v13_18.exists()) {
                    try {
                        java.io.ObjectInputStream v4_6 = new java.io.ObjectInputStream(new javax.crypto.CipherInputStream(new java.io.FileInputStream(v13_18), ark>com.sophos.jbase.iark>.d.getKey()));
                        try {
                            com.sophos.jbase.LegacyKeyStore v5_7 = ((com.sophos.jbase.LegacyKeyStore) v4_6.readObject());
                            String[] v6_3 = v5_7.saw("", -1);
                            int v8 = v6_3.length;
                            int v9 = 0;
                        } catch (java.io.IOException v13_5) {
                            v2_0 = v4_6;
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (String v14_5) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v14_5);
                                }
                            }
                            throw v13_5;
                        } catch (java.io.FileNotFoundException) {
                            v2_0 = v4_6;
                            com.sophos.smsec.core.smsectrace.d.b("JBASE", "file not found, no stored keys.");
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (java.io.IOException v13_6) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v13_6);
                                }
                            }
                            return 1;
                        } catch (java.io.StreamCorruptedException) {
                            v2_0 = v4_6;
                            if (!v13_18.delete()) {
                                com.sophos.smsec.core.smsectrace.d.d("JBASE", "Unexpected error.");
                            }
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (java.io.IOException v13_3) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v13_3);
                                }
                            }
                            return 0;
                        } catch (java.io.IOException v13_19) {
                            v2_0 = v4_6;
                            if (p14 != null) {
                                com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error while deserializing keys.", v13_19);
                            }
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (java.io.IOException v13_22) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v13_22);
                                }
                            }
                            return 0;
                        }
                        while (v9 < v8) {
                            String v10 = v6_3[v9];
                            if ((p14 != null) || (ark>com.sophos.jbase.iark>.c(v10) == -1)) {
                                ark>com.sophos.jbase.iark>.b.insert(v10, v5_7.get(v10), -1, 1);
                            }
                            v9++;
                        }
                        ark>com.sophos.jbase.iark>.d(0);
                        try {
                            v4_6.close();
                        } catch (java.io.IOException v13_21) {
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v13_21);
                        }
                        return 1;
                    } catch (java.io.IOException v13_5) {
                    } catch (java.io.IOException v13_19) {
                    }
                } else {
                    com.sophos.smsec.core.smsectrace.d.b("JBASE", "no stored keys.");
                    return 1;
                }
            }
        }
    }

Method com.sophos.cloud.core.command.d.c() calling method java.io.FileInputStream.<init>()


    private void c()
    {
        Throwable v0_0 = 0;
        try {
            Throwable v1_3 = new java.io.FileInputStream(this.b);
            try {
                this.a(javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(v1_3));
                v1_3.close();
            } catch (Throwable v0_1) {
                Throwable v1_2 = v0_1;
                v0_0 = v1_3;
                if (v0_0 != null) {
                    v0_0.close();
                }
                throw v1_2;
            } catch (java.io.FileNotFoundException) {
                v0_0 = v1_3;
                String v2_1 = new StringBuilder();
                v2_1.append("could not read result file \'");
                v2_1.append(this.b.getAbsolutePath());
                v2_1.append("\'");
                com.sophos.smsec.core.smsectrace.d.e("RESULT", v2_1.toString());
                if (v0_0 == null) {
                } else {
                    v0_0.close();
                }
            }
            return;
        } catch (Throwable v1_2) {
        }
    }

Method com.microsoft.aad.adal.StorageHelper.readKeyData() calling method java.io.FileInputStream.<init>()


    private byte[] readKeyData()
    {
        String v1_0 = this.mContext;
        byte[] v0_7 = new java.io.File(v1_0.getDir(v1_0.getPackageName(), 0), "adalks");
        if (!v0_7.exists()) {
            throw new java.io.IOException("Key file to read does not exist");
        } else {
            com.microsoft.aad.adal.Logger.v("StorageHelper", "Reading key data from a file");
            String v1_5 = new java.io.FileInputStream(v0_7);
            try {
                byte[] v0_4 = new java.io.ByteArrayOutputStream();
                byte[] v2_2 = new byte[1024];
            } catch (byte[] v0_6) {
                v1_5.close();
                throw v0_6;
            }
            while(true) {
                int v4 = v1_5.read(v2_2);
                if (v4 == -1) {
                    break;
                }
                v0_4.write(v2_2, 0, v4);
            }
            byte[] v0_5 = v0_4.toByteArray();
            v1_5.close();
            return v0_5;
        }
    }

Method com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.getUrandomInputStream() calling method java.io.FileInputStream.<init>()


    private java.io.DataInputStream getUrandomInputStream()
    {
        try {
            if (com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.sUrandomIn == null) {
                try {
                    com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.sUrandomIn = new java.io.DataInputStream(new java.io.FileInputStream(com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.URANDOM_FILE));
                } catch (java.io.IOException v1_5) {
                    String v3_1 = new StringBuilder();
                    v3_1.append("Failed to open ");
                    v3_1.append(com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.URANDOM_FILE);
                    v3_1.append(" for reading");
                    throw new SecurityException(v3_1.toString(), v1_5);
                }
            }
        } catch (java.io.IOException v1_2) {
            throw v1_2;
        }
        return com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.sUrandomIn;
    }

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


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

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


    private static String getFileSHA(String p3)
    {
        java.io.BufferedInputStream v0 = 0;
        try {
            java.io.BufferedInputStream v1_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p3));
            try {
                Throwable v3_2 = io.fabric.sdk.android.services.common.CommonUtils.b(v1_1);
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_1);
                return v3_2;
            } catch (Throwable v3_1) {
                v0 = v1_1;
                io.fabric.sdk.android.services.common.CommonUtils.a(v0);
                throw v3_1;
            }
        } catch (Throwable v3_1) {
        }
        v3_2 = io.fabric.sdk.android.services.common.CommonUtils.b(v1_1);
        io.fabric.sdk.android.services.common.CommonUtils.a(v1_1);
        return v3_2;
    }

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


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

Method com.google.firebase.iid.zzy.zza() calling method java.io.FileInputStream.<init>()


    private final com.google.firebase.iid.zzz zza(java.io.File p10)
    {
        java.io.FileInputStream v0_1 = new java.io.FileInputStream(p10);
        Throwable v10_1 = 0;
        try {
            java.nio.channels.FileChannel v7 = v0_1.getChannel();
            try {
                v7.lock(0, nan, 1);
                Throwable v1_0 = com.google.firebase.iid.zzy.zza(v7);
            } catch (Throwable v1_2) {
                Throwable v2_1 = 0;
                if (v7 != null) {
                    com.google.firebase.iid.zzy.zza(v2_1, v7);
                }
                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 != null) {
                com.google.firebase.iid.zzy.zza(0, v7);
            }
            com.google.firebase.iid.zzy.zza(0, v0_1);
            return v1_0;
        } catch (Throwable v1_3) {
            com.google.firebase.iid.zzy.zza(v10_1, v0_1);
            throw v1_3;
        } catch (Throwable v10_1) {
            throw v10_1;
        }
    }

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

Couldn't retrieve source code

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


    public com.crashlytics.android.core.UserMetaData readUserData(String p5)
    {
        Exception v5_1 = this.getUserDataFileForSession(p5);
        if (v5_1.exists()) {
            io.fabric.sdk.android.k v0_1 = 0;
            try {
                io.fabric.sdk.android.k v1_3 = new java.io.FileInputStream(v5_1);
                try {
                    Exception v5_3 = com.crashlytics.android.core.MetaDataStore.jsonToUserData(io.fabric.sdk.android.services.common.CommonUtils.a(v1_3));
                    io.fabric.sdk.android.services.common.CommonUtils.a(v1_3, "Failed to close user metadata file.");
                    return v5_3;
                } catch (Exception v5_7) {
                    v0_1 = v1_3;
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close user metadata file.");
                    throw v5_7;
                } catch (Exception v5_4) {
                    v0_1 = v1_3;
                    io.fabric.sdk.android.c.g().e("CrashlyticsCore", "Error deserializing user metadata.", v5_4);
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close user metadata file.");
                    return com.crashlytics.android.core.UserMetaData.EMPTY;
                }
            } catch (Exception v5_7) {
            } catch (Exception v5_4) {
                io.fabric.sdk.android.c.g().e("CrashlyticsCore", "Error deserializing user metadata.", v5_4);
                io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close user metadata file.");
                return com.crashlytics.android.core.UserMetaData.EMPTY;
            }
            v5_3 = com.crashlytics.android.core.MetaDataStore.jsonToUserData(io.fabric.sdk.android.services.common.CommonUtils.a(v1_3));
            io.fabric.sdk.android.services.common.CommonUtils.a(v1_3, "Failed to close user metadata file.");
            return v5_3;
        } else {
            return com.crashlytics.android.core.UserMetaData.EMPTY;
        }
    }

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


    public java.util.Map readKeyData(String p5)
    {
        Exception v5_1 = this.getKeysFileForSession(p5);
        if (v5_1.exists()) {
            io.fabric.sdk.android.k v0_1 = 0;
            try {
                io.fabric.sdk.android.k v1_3 = new java.io.FileInputStream(v5_1);
                try {
                    Exception v5_3 = com.crashlytics.android.core.MetaDataStore.jsonToKeysData(io.fabric.sdk.android.services.common.CommonUtils.a(v1_3));
                    io.fabric.sdk.android.services.common.CommonUtils.a(v1_3, "Failed to close user metadata file.");
                    return v5_3;
                } catch (Exception v5_7) {
                    v0_1 = v1_3;
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close user metadata file.");
                    throw v5_7;
                } catch (Exception v5_4) {
                    v0_1 = v1_3;
                    io.fabric.sdk.android.c.g().e("CrashlyticsCore", "Error deserializing user metadata.", v5_4);
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close user metadata file.");
                    return java.util.Collections.emptyMap();
                }
            } catch (Exception v5_7) {
            } catch (Exception v5_4) {
                io.fabric.sdk.android.c.g().e("CrashlyticsCore", "Error deserializing user metadata.", v5_4);
                io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close user metadata file.");
                return java.util.Collections.emptyMap();
            }
            v5_3 = com.crashlytics.android.core.MetaDataStore.jsonToKeysData(io.fabric.sdk.android.services.common.CommonUtils.a(v1_3));
            io.fabric.sdk.android.services.common.CommonUtils.a(v1_3, "Failed to close user metadata file.");
            return v5_3;
        } else {
            return java.util.Collections.emptyMap();
        }
    }

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


    private static void writeToCosFromFile(com.crashlytics.android.core.CodedOutputStream p4, java.io.File p5)
    {
        if (p5.exists()) {
            try {
                int v0_3 = new java.io.FileInputStream(p5);
                try {
                    com.crashlytics.android.core.CrashlyticsController.copyToCodedOutputStream(v0_3, p4, ((int) p5.length()));
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_3, "Failed to close file input stream.");
                    return;
                } catch (Throwable v4_2) {
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_3, "Failed to close file input stream.");
                    throw v4_2;
                }
            } catch (Throwable v4_2) {
                v0_3 = 0;
            }
            com.crashlytics.android.core.CrashlyticsController.copyToCodedOutputStream(v0_3, p4, ((int) p5.length()));
            io.fabric.sdk.android.services.common.CommonUtils.a(v0_3, "Failed to close file input stream.");
            return;
        } else {
            Throwable v4_3 = io.fabric.sdk.android.c.g();
            StringBuilder v2_1 = new StringBuilder();
            v2_1.append("Tried to include a file that doesn\'t exist: ");
            v2_1.append(p5.getName());
            v4_3.e("CrashlyticsCore", v2_1.toString(), 0);
            return;
        }
    }

Method com.baidu.android.pushservice.richmedia.a.a() calling method java.io.FileInputStream.<init>()


    private static void a(java.io.File p17, String p18)
    {
        try {
            int v8_0 = new java.io.FileInputStream(p17);
            try {
                int v9_1 = new java.io.BufferedInputStream(v8_0);
                try {
                    int v10_1 = new java.util.zip.ZipInputStream(v9_1);
                    java.io.FileOutputStream v11 = 0;
                    java.io.BufferedOutputStream v12 = 0;
                    try {
                        while(true) {
                            Throwable v0_2 = v10_1.getNextEntry();
                            v11 = java.io.FileOutputStream v1_0;
                            v12 = java.io.BufferedOutputStream v3_1;
                        }
                    } catch (Throwable v0_0) {
                        java.io.FileOutputStream v1_1 = new java.io.Closeable[5];
                        v1_1[0] = v8_0;
                        v1_1[1] = v10_1;
                        v1_1[2] = v11;
                        v1_1[3] = v12;
                        v1_1[4] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v1_1);
                        throw v0_0;
                    } catch (Exception) {
                        int v16_0 = v10_1;
                        String v2_1 = 2;
                        java.io.BufferedOutputStream v3_3 = 3;
                        int v7_2 = 4;
                        Throwable v0_4 = new java.io.Closeable[5];
                        v0_4[0] = v8_0;
                        v0_4[1] = v16_0;
                        v0_4[v2_1] = v11;
                        v0_4[v3_3] = v12;
                        v0_4[v7_2] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v0_4);
                        return;
                    }
                    if (v0_2 == null) {
                        v0_4 = new java.io.Closeable[5];
                        v0_4[0] = v8_0;
                        v0_4[1] = v10_1;
                        v0_4[2] = v11;
                        v0_4[3] = v12;
                        v0_4[4] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v0_4);
                        return;
                    } else {
                        int v7_3;
                        byte[] v14 = new byte[4096];
                        java.io.File v15_0 = v0_2.getName();
                        if (v15_0.length() <= 0) {
                            v7_3 = 0;
                        } else {
                            v7_3 = v15_0.split("/");
                        }
                        java.io.FileOutputStream v1_6 = new StringBuilder();
                        v1_6.append(p18);
                        v1_6.append("/");
                        v1_6.append(v7_3[(v7_3.length - 1)]);
                        java.io.File v15_2 = new java.io.File(v1_6.toString());
                        if (!v0_2.isDirectory()) {
                            Throwable v0_7 = new java.io.File(v15_2.getParent());
                            if (!v0_7.exists()) {
                                v0_7.mkdirs();
                            }
                            if (!v15_2.exists()) {
                                v15_2.createNewFile();
                            }
                            v1_0 = new java.io.FileOutputStream(v15_2);
                            try {
                                v3_1 = new java.io.BufferedOutputStream(v1_0, 4096);
                                try {
                                    while(true) {
                                        Throwable v0_1 = v10_1.read(v14, 0, 4096);
                                        v3_1.write(v14, 0, v0_1);
                                    }
                                    v3_1.flush();
                                } catch (Throwable v0_0) {
                                    v11 = v1_0;
                                    v12 = v3_1;
                                } catch (Exception) {
                                }
                                if (v0_1 != -1) {
                                }
                            } catch (Throwable v0_0) {
                                v11 = v1_0;
                            } catch (Exception) {
                                v11 = v1_0;
                            }
                        }
                    }
                } catch (Throwable v0_0) {
                    v10_1 = 0;
                    v11 = 0;
                    v12 = 0;
                } catch (Exception) {
                    v2_1 = 2;
                    v3_3 = 3;
                    v7_2 = 4;
                    v11 = 0;
                    v12 = 0;
                    v16_0 = 0;
                }
            } catch (Throwable v0_0) {
                v9_1 = 0;
            } catch (Exception) {
                v2_1 = 2;
                v3_3 = 3;
                v7_2 = 4;
                v9_1 = 0;
            }
        } catch (Throwable v0_0) {
            v8_0 = 0;
        } catch (Exception) {
            v2_1 = 2;
            v3_3 = 3;
            v7_2 = 4;
            v8_0 = 0;
        }
    }

Method com.baidu.android.pushservice.i.a.a() calling method java.io.FileInputStream.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.g.b() calling method java.io.FileInputStream.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.d.m() calling method java.io.FileInputStream.<init>()


    private void m()
    {
        String v0_8 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/pushservice.cfg");
        if (v0_8.exists()) {
            String v1_7 = new java.util.Properties();
            android.content.Context v2_0 = 0;
            try {
                String v3_2 = new java.io.FileInputStream(v0_8);
                try {
                    v1_7.load(v3_2);
                    String v0_3 = v1_7.getProperty("rtcseed");
                } catch (String v0_12) {
                    if (v3_2 != null) {
                        try {
                            v3_2.close();
                        } catch (String v1_8) {
                            android.content.Context v2_13 = new StringBuilder();
                            v2_13.append("error ");
                            v2_13.append(v1_8.getMessage());
                            com.baidu.android.pushservice.f.a.b("PushConnection", v2_13.toString(), this.l.getApplicationContext());
                        }
                    }
                    throw v0_12;
                } catch (String v0_1) {
                    v2_0 = v3_2;
                    String v3_4 = new StringBuilder();
                    v3_4.append("getTestConfig exception ");
                    v3_4.append(v0_1.getMessage());
                    com.baidu.android.pushservice.f.a.b("PushConnection", v3_4.toString(), this.l.getApplicationContext());
                    if (v2_0 == null) {
                        return;
                    } else {
                        try {
                            v2_0.close();
                        } catch (String v0_9) {
                            String v1_3 = "PushConnection";
                            android.content.Context v2_8 = new StringBuilder();
                            v2_8.append("error ");
                            v2_8.append(v0_9.getMessage());
                            com.baidu.android.pushservice.f.a.b(v1_3, v2_8.toString(), this.l.getApplicationContext());
                        }
                        return;
                    }
                    try {
                        v3_2.close();
                    } catch (String v0_9) {
                        v1_3 = "PushConnection";
                        v2_8 = new StringBuilder();
                    }
                }
                if ((v0_3 != null) && (v0_3.length() > 0)) {
                    android.content.Context v2_5 = new org.json.JSONArray(v0_3);
                    int v4_0 = 0;
                    while (v4_0 < v2_5.length()) {
                        this.v[v4_0] = v2_5.getInt(v4_0);
                        this.w = 0;
                        this.x = 0;
                        this.z = 0;
                        v4_0++;
                    }
                }
                String v0_6 = v1_7.getProperty("originseed");
                if ((v0_6 != null) && (v0_6.length() > 0)) {
                    this.w = Integer.parseInt(v0_6);
                }
            } catch (String v0_12) {
                v3_2 = v2_0;
            } catch (String v0_1) {
            }
        }
        return;
    }

Method com.baidu.android.pushservice.b.a.b() calling method java.io.FileInputStream.<init>()


    private static java.io.InputStream b(String p2)
    {
        java.io.FileInputStream v0 = 0;
        try {
            java.io.File v1_1 = new java.io.File(p2);
        } catch (Exception) {
            return v0;
        }
        if (!v1_1.exists()) {
            return v0;
        } else {
            v0 = new java.io.FileInputStream(v1_1);
            return v0;
        }
    }

Method com.airbnb.lottie.network.b.e() calling method java.io.FileInputStream.<init>()


    private com.airbnb.lottie.k e()
    {
        com.airbnb.lottie.k v0_1 = new StringBuilder();
        v0_1.append("Fetching ");
        v0_1.append(this.b);
        com.airbnb.lottie.c.a(v0_1.toString());
        com.airbnb.lottie.k v0_7 = ((java.net.HttpURLConnection) new java.net.URL(this.b).openConnection());
        v0_7.setRequestMethod("GET");
        v0_7.connect();
        if ((v0_7.getErrorStream() == null) && (v0_7.getResponseCode() == 200)) {
            String v1_8 = v0_7.getContentType();
            Object v2_4 = -1;
            java.io.FileInputStream v3_5 = v1_8.hashCode();
            int v5_3 = 1;
            if (v3_5 == -1248325150) {
                if (v1_8.equals("application/zip")) {
                    v2_4 = 0;
                }
            } else {
                if ((v3_5 == -43840953) && (v1_8.equals("application/json"))) {
                    v2_4 = 1;
                }
            }
            String v1_13;
            com.airbnb.lottie.k v0_11;
            if (v2_4 == null) {
                com.airbnb.lottie.c.a("Handling zip response.");
                v1_13 = com.airbnb.lottie.network.FileExtension.Zip;
                v0_11 = com.airbnb.lottie.e.a(new java.util.zip.ZipInputStream(new java.io.FileInputStream(this.c.a(v0_7.getInputStream(), v1_13))), this.b);
            } else {
                com.airbnb.lottie.c.a("Received json response.");
                v1_13 = com.airbnb.lottie.network.FileExtension.Json;
                v0_11 = com.airbnb.lottie.e.a(new java.io.FileInputStream(new java.io.File(this.c.a(v0_7.getInputStream(), v1_13).getAbsolutePath())), this.b);
            }
            if (v0_11.a() != null) {
                this.c.a(v1_13);
            }
            String v1_16 = new StringBuilder();
            v1_16.append("Completed fetch from network. Success: ");
            if (v0_11.a() == null) {
                v5_3 = 0;
            }
            v1_16.append(v5_3);
            com.airbnb.lottie.c.a(v1_16.toString());
            return v0_11;
        } else {
            String v1_1 = new java.io.BufferedReader(new java.io.InputStreamReader(v0_7.getErrorStream()));
            Object v2_2 = new StringBuilder();
            while(true) {
                java.io.FileInputStream v3_1 = v1_1.readLine();
                if (v3_1 == null) {
                    break;
                }
                v2_2.append(v3_1);
                v2_2.append(10);
            }
            StringBuilder v4_1 = new StringBuilder();
            v4_1.append("Unable to fetch ");
            v4_1.append(this.b);
            v4_1.append(". Failed with ");
            v4_1.append(v0_7.getResponseCode());
            v4_1.append("\n");
            v4_1.append(v2_2);
            return new com.airbnb.lottie.k(new IllegalArgumentException(v4_1.toString()));
        }
    }

Method com.airbnb.lottie.network.a.a() calling method java.io.FileInputStream.<init>()


    android.support.v4.util.Pair a()
    {
        try {
            android.support.v4.util.Pair v1_3 = this.a(this.b);
        } catch (java.io.FileNotFoundException) {
            return 0;
        }
        if (v1_3 != null) {
            try {
                com.airbnb.lottie.network.FileExtension v0_2;
                java.io.FileInputStream v2_1 = new java.io.FileInputStream(v1_3);
                com.airbnb.lottie.network.FileExtension v0_1 = v1_3.getAbsolutePath().endsWith(".zip");
            } catch (java.io.FileNotFoundException) {
                return v0_1;
            }
            if (v0_1 == null) {
                v0_2 = com.airbnb.lottie.network.FileExtension.Json;
            } else {
                v0_2 = com.airbnb.lottie.network.FileExtension.Zip;
            }
            StringBuilder v3_2 = new StringBuilder();
            v3_2.append("Cache hit for ");
            v3_2.append(this.b);
            v3_2.append(" at ");
            v3_2.append(v1_3.getAbsolutePath());
            com.airbnb.lottie.c.a(v3_2.toString());
            return new android.support.v4.util.Pair(v0_2, v2_1);
        } else {
            return 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 p9)
    {
        try {
            Throwable v1_1 = new java.io.FileInputStream(p9);
            try {
                Throwable v2_2 = v1_1.getChannel();
                Throwable v9_1 = v2_2.map(java.nio.channels.FileChannel$MapMode.READ_ONLY, 0, v2_2.size());
            } catch (Throwable v9_3) {
                Throwable v2_1 = 0;
                if (v2_1 == null) {
                    v1_1.close();
                } else {
                    try {
                        v1_1.close();
                    } catch (Throwable v1_2) {
                        v2_1.addSuppressed(v1_2);
                    }
                }
                throw v9_3;
            } catch (Throwable v9_2) {
                try {
                    throw v9_2;
                } catch (Throwable v2_0) {
                    v2_1 = v9_2;
                    v9_3 = v2_0;
                }
            }
            v1_1.close();
            return v9_1;
        } catch (java.io.IOException) {
            return 0;
        }
    }

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


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

Method com.sophos.smsec.core.updateengine.c.g() calling method java.io.FileReader.<init>()


    private static boolean g()
    {
        com.sophos.smsec.core.smsectrace.d.e("UpdateEngine", "getAltCredentials");
        Throwable v0_3 = new java.io.File(android.os.Environment.getExternalStorageDirectory().getAbsolutePath(), "altdata.sec");
        if (v0_3.exists()) {
            try {
                Throwable v1_3 = new java.io.BufferedReader(new java.io.FileReader(v0_3));
                Throwable v0_1 = 0;
                try {
                    String v3_2 = v1_3.readLine();
                } catch (String v3_7) {
                    if (v0_1 == null) {
                        v1_3.close();
                    } else {
                        try {
                            v1_3.close();
                        } catch (Throwable v1_5) {
                            v0_1.addSuppressed(v1_5);
                        }
                    }
                    throw v3_7;
                } catch (Throwable v0_1) {
                    throw v0_1;
                }
                if (v3_2 != null) {
                    String v3_3 = v3_2.split(";");
                    if ((v3_3 == null) || (v3_3.length != 2)) {
                        if ((v3_3 != null) && (v3_3.length == 1)) {
                            com.sophos.smsec.core.updateengine.c.e = v3_3[0];
                            com.sophos.smsec.core.updateengine.c.d = "54m5ung";
                            v1_3.close();
                            return 1;
                        }
                    } else {
                        com.sophos.smsec.core.updateengine.c.e = v3_3[0];
                        com.sophos.smsec.core.updateengine.c.d = v3_3[1];
                        v1_3.close();
                        return 1;
                    }
                }
                v1_3.close();
            } catch (java.io.IOException) {
                return 0;
            }
        }
        return 0;
    }

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


    public static String a(java.io.File p6, String p7)
    {
        String v1 = 0;
        if (p6.exists()) {
            try {
                int v0_1 = new java.io.BufferedReader(new java.io.FileReader(p6), 1024);
                try {
                    do {
                        String[] v2_0 = v0_1.readLine();
                    } while((String[] v2_1.length <= 1) || (!v2_1[0].equals(p7)));
                    v1 = v2_1[1];
                    ark>io.fabric.sdk.android.services.common.CommonUtilsark>.a(v0_1, "Failed to close system file reader.");
                } catch (Exception v7_1) {
                    String[] v2_2 = io.fabric.sdk.android.c.g();
                    int v4_3 = new StringBuilder();
                    v4_3.append("Error parsing ");
                    v4_3.append(p6);
                    v2_2.e("Fabric", v4_3.toString(), v7_1);
                }
                if (v2_0 == null) {
                } else {
                    v2_1 = java.util.regex.Pattern.compile("\\s*:\\s*").split(v2_0, 2);
                    if ((v2_1.length > 1) && (v2_1[0].equals(p7))) {
                    }
                }
            } catch (String v6_1) {
                v0_1 = 0;
                ark>io.fabric.sdk.android.services.common.CommonUtilsark>.a(v0_1, "Failed to close system file reader.");
                throw v6_1;
            } catch (Exception v7_1) {
                v0_1 = 0;
            } catch (String v6_1) {
            }
        }
        return v1;
    }

Method com.sophos.smsec.a.a.a() calling method java.io.FileReader.<init>()


    public static java.util.List a(android.content.Context p8)
    {
        String v0_1 = new java.util.ArrayList();
        v0_1.add(new java.io.File(ark>com.sophos.smsec.a.aark>.b));
        try {
            String v4_2 = new java.io.BufferedReader(new java.io.FileReader("/proc/mounts"));
        } catch (java.io.File[] v8_1) {
            v4_2 = 0;
            if (v4_2 != null) {
                try {
                    v4_2.close();
                } catch (java.io.IOException) {
                    com.sophos.smsec.core.smsectrace.d.d("FileUtils", "Cannot close \'/proc/mounts\'.");
                }
            }
            throw v8_1;
        } catch (java.io.IOException) {
            v4_2 = 0;
            com.sophos.smsec.core.smsectrace.d.d("FileUtils", "Error while parsing mount points.");
            if (v4_2 == null) {
                String v4_5 = System.getenv("EMULATED_STORAGE_TARGET");
                int v5_10 = ark>com.sophos.smsec.a.aark>.b.split(java.io.File.separator);
                int v3_1 = v5_10[(v5_10.length - 1)];
                try {
                    Integer.valueOf(v3_1);
                } catch (NumberFormatException) {
                    v3_1 = "";
                }
                int v5_12 = new StringBuilder();
                v5_12.append(v4_5);
                v5_12.append(java.io.File.separator);
                v5_12.append(v3_1);
                ark>com.sophos.smsec.a.aark>.a(v0_1, v5_12.toString());
                java.io.File[] v8_2 = p8.getExternalFilesDirs(0);
                int v1_4 = v8_2.length;
                int v3_0 = 0;
                while (v3_0 < v1_4) {
                    String v4_8 = v8_2[v3_0];
                    if (v4_8 != null) {
                        try {
                            String v4_0 = v4_8.getCanonicalPath();
                        } catch (java.io.IOException) {
                            v4_0 = v4_0.getPath();
                        }
                        ark>com.sophos.smsec.a.aark>.a(v0_1, v4_0.substring(0, v4_0.indexOf("/Android")));
                    }
                    v3_0++;
                }
                return v0_1;
            } else {
                try {
                    v4_2.close();
                } catch (java.io.IOException) {
                    com.sophos.smsec.core.smsectrace.d.d("FileUtils", "Cannot close \'/proc/mounts\'.");
                }
            }
        } catch (java.io.File[] v8_1) {
        }
        do {
            int v5_5 = v4_2.readLine();
            if (v5_5 == 0) {
            } else {
                if (((v5_5.startsWith("/dev/block/vold/")) || ((v5_5.startsWith("/dev/fuse")) || (v5_5.startsWith("/mnt/media_rw")))) && ((!v5_5.toLowerCase(java.util.Locale.US).contains("asec")) && (!v5_5.toLowerCase(java.util.Locale.US).contains("obb")))) {
                    int v5_6 = v5_5.split(" ");
                }
            }
        } while((v5_6.length < 5) || ((v5_6[0].startsWith("#")) || (!v5_6[1].startsWith("/"))));
        ark>com.sophos.smsec.a.aark>.a(v0_1, v5_6[1]);
    }

Method com.sophos.nge.networksec.arpdetection.a.a() calling method java.io.FileReader.<init>()


    public void a()
    {
        this.e = 0;
        boolean v1_13 = android.text.format.Formatter.formatIpAddress(this.c.getDhcpInfo().gateway);
        int v2_2 = new java.io.BufferedReader(new java.io.FileReader(new java.io.File("/proc/net/arp")));
        String v3_1 = "";
        do {
            String v4_2 = v2_2.readLine();
            if (v4_2 != null) {
                if (!v4_2.startsWith("IP")) {
                    String v4_3 = v4_2.split("[ ]+");
                    java.util.ArrayList v5_4 = v4_3[0];
                    String v4_4 = v4_3[3];
                    if (v5_4.equals(v1_13)) {
                        v3_1 = v4_4;
                    }
                    if ((this.a.containsKey(v5_4)) || ((v4_4.equalsIgnoreCase("00:00:00:00:00:00")) || (v4_4.equalsIgnoreCase("FF:FF:FF:FF:FF:FF")))) {
                        if ((!v4_4.equalsIgnoreCase(((String) this.a.get(v5_4)))) && ((!v4_4.equalsIgnoreCase("00:00:00:00:00:00")) && (!v4_4.equalsIgnoreCase("FF:FF:FF:FF:FF:FF")))) {
                            if (v5_4.equalsIgnoreCase(v1_13)) {
                                this.e = 1;
                            }
                            java.util.Iterator v6_20 = this.a.keySet().iterator();
                            while (v6_20.hasNext()) {
                                v6_20.next();
                            }
                        }
                    } else {
                        this.a.put(v5_4, v4_4);
                    }
                    java.util.Iterator v6_23 = new StringBuilder();
                    v6_23.append("IP: ");
                    v6_23.append(v5_4);
                    v6_23.append("   MAC: ");
                    v6_23.append(v4_4);
                    String v4_5 = v6_23.toString();
                }
            } else {
                v2_2.close();
                if (!this.e) {
                    java.util.Iterator v0_6 = this.a.values();
                    if (v0_6.size() != new java.util.HashSet(v0_6).size()) {
                        java.util.Iterator v0_1 = v0_6.iterator();
                        while (v0_1.hasNext()) {
                            ((String) v0_1.next()).equals(v3_1);
                        }
                    }
                } else {
                    java.util.Iterator v0_3 = new android.content.Intent(this.b, com.sophos.nge.networksec.NgeDynamicEngineService);
                    v0_3.setAction("com.sophos.nge.action.UPDATE");
                    v0_3.addCategory("com.sophos.nge.category.ARP_SPOOFED");
                    this.b.startService(v0_3);
                }
                return;
            }
        } while(this.d.indexOf(v4_5) >= 0);
        this.d.add(v4_5);
    }

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


    private static java.io.BufferedReader a(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 com.crashlytics.android.core.NativeFileUtils.binaryImagesJsonFromMapsFile() calling method java.io.FileReader.<init>()


    private static byte[] binaryImagesJsonFromMapsFile(java.io.File p3, android.content.Context p4)
    {
        if (p3.exists()) {
            try {
                int v0_2 = new java.io.BufferedReader(new java.io.FileReader(p3));
                try {
                    Throwable v3_3 = new com.crashlytics.android.core.BinaryImagesConverter(p4, new com.crashlytics.android.core.Sha1FileIdStrategy()).convert(v0_2);
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_2);
                    return v3_3;
                } catch (Throwable v3_4) {
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_2);
                    throw v3_4;
                }
            } catch (Throwable v3_4) {
                v0_2 = 0;
            }
            v3_3 = new com.crashlytics.android.core.BinaryImagesConverter(p4, new com.crashlytics.android.core.Sha1FileIdStrategy()).convert(v0_2);
            io.fabric.sdk.android.services.common.CommonUtils.a(v0_2);
            return v3_3;
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.j.e.d() calling method java.io.FileReader.<init>()


    private com.baidu.android.pushservice.j.e$b d(String p11)
    {
        String v0_1;
        if (android.os.Build$VERSION.SDK_INT >= 23) {
            v0_1 = 0;
        } else {
            v0_1 = 1;
        }
        if ((v0_1 == null) || (!android.text.TextUtils.isEmpty(p11))) {
            int v6_3;
            boolean v4_1 = "";
            String[] v5_1 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/.cuid");
            if (!v5_1.exists()) {
                v5_1 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig/.cuid");
                v6_3 = 1;
            } else {
                v6_3 = 0;
            }
            try {
                String[] v5_4 = new java.io.BufferedReader(new java.io.FileReader(v5_1));
                int v7_5 = new StringBuilder();
            } catch (java.io.FileNotFoundException) {
                if (android.text.TextUtils.isEmpty(v4_1)) {
                    return 0;
                } else {
                    String v0_6 = new com.baidu.android.pushservice.j.e$b(0);
                    v0_6.a = v4_1;
                    v0_6.b = p11;
                    return v0_6;
                }
            }
            while(true) {
                int v8_0 = v5_4.readLine();
                if (v8_0 == 0) {
                    break;
                }
                v7_5.append(v8_0);
                v7_5.append("\r\n");
            }
            v5_4.close();
            String[] v5_7 = new String(com.baidu.android.pushservice.j.a.b(com.baidu.android.pushservice.j.e.a, com.baidu.android.pushservice.j.e.a, com.baidu.android.pushservice.j.b.a(v7_5.toString().getBytes()))).split("=");
            if ((v5_7 != null) && (v5_7.length == 2)) {
                if ((v0_1 == null) || (!p11.equals(v5_7[0]))) {
                    if (v0_1 != null) {
                        if (v6_3 != 0) {
                        } else {
                            com.baidu.android.pushservice.j.e.b(p11, v4_1);
                        }
                    } else {
                        if (android.text.TextUtils.isEmpty(p11)) {
                            p11 = v5_7[1];
                        }
                        String v0_3 = v5_7[1];
                    }
                } else {
                    v0_3 = v5_7[1];
                }
                v4_1 = v0_3;
            }
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.j.e.a() calling method java.io.FileReader.<init>()


    private static String a(java.io.File p5)
    {
        try {
            int v1_1 = new java.io.FileReader(p5);
            try {
                Exception v5_6 = new char[8192];
                java.io.CharArrayWriter v2_0 = new java.io.CharArrayWriter();
            } catch (Exception v5_2) {
                ark>com.baidu.android.pushservice.j.eark>.b(v5_2);
                if (v1_1 != 0) {
                    try {
                        v1_1.close();
                    } catch (Exception v5_3) {
                        ark>com.baidu.android.pushservice.j.eark>.b(v5_3);
                    }
                }
                return 0;
            }
            while(true) {
                int v3 = v1_1.read(v5_6);
                if (v3 <= 0) {
                    break;
                }
                v2_0.write(v5_6, 0, v3);
            }
            Exception v5_1 = v2_0.toString();
            try {
                v1_1.close();
            } catch (Exception v0_1) {
                ark>com.baidu.android.pushservice.j.eark>.b(v0_1);
            }
            return v5_1;
        } catch (Exception v5_4) {
            v1_1 = 0;
            if (v1_1 != 0) {
                try {
                    v1_1.close();
                } catch (Exception v0_2) {
                    ark>com.baidu.android.pushservice.j.eark>.b(v0_2);
                }
            }
            throw v5_4;
        } catch (Exception v5_2) {
            v1_1 = 0;
        } catch (Exception v5_4) {
        }
    }

Method com.baidu.android.pushservice.g.a.b.f() calling method java.io.FileReader.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.g.a.b.b() calling method java.io.FileReader.<init>()

Couldn't retrieve source code

Method org.tensorflow.a.f() calling method java.io.File.<init>()


    private static java.io.File f()
    {
        IllegalStateException v0_3 = new java.io.File(System.getProperty("java.io.tmpdir"));
        String v1_6 = new StringBuilder();
        v1_6.append("tensorflow_native_libraries-");
        v1_6.append(System.currentTimeMillis());
        v1_6.append("-");
        String v1_1 = v1_6.toString();
        int v2_2 = 0;
        while (v2_2 < 1000) {
            boolean v4_1 = new StringBuilder();
            v4_1.append(v1_1);
            v4_1.append(v2_2);
            String v3_3 = new java.io.File(v0_3, v4_1.toString());
            if (!v3_3.mkdir()) {
                v2_2++;
            } else {
                return v3_3;
            }
        }
        int v2_4 = new StringBuilder();
        v2_4.append("Could not create a temporary directory (tried to make ");
        v2_4.append(v1_1);
        v2_4.append("*) to extract TensorFlow native libraries.");
        throw new IllegalStateException(v2_4.toString());
    }

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


    private static String a(java.io.InputStream p2, String p3, String p4)
    {
        int v0_1 = new java.io.File(p4, p3);
        v0_1.deleteOnExit();
        String v3_1 = v0_1.toString();
        Object[] v4_5 = new StringBuilder();
        v4_5.append("extracting native library to: ");
        v4_5.append(v3_1);
        ark>org.tensorflow.aark>.b(v4_5.toString());
        Object[] v4_3 = new Object[2];
        v4_3[0] = Long.valueOf(ark>org.tensorflow.aark>.a(p2, v0_1));
        v4_3[1] = v3_1;
        ark>org.tensorflow.aark>.b(String.format("copied %d bytes to %s", v4_3));
        return v3_1;
    }

Method com.sophos.smsec.ui.KPViewerActivity.handleNewExportFileResult() calling method java.io.File.<init>()


    public static void handleNewExportFileResult(android.content.Context p9, android.content.Intent p10)
    {
        if ((p10 != null) && (p10.getData() != null)) {
            Throwable v0_4;
            String v10_1 = p10.getData();
            if (android.text.TextUtils.isEmpty(com.sophos.keepasseditor.c.g())) {
                Throwable v0_1 = com.sophos.smsec.core.datastore.SmSecPreferences.c(p9).a(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE);
                if (android.text.TextUtils.isEmpty(v0_1)) {
                    android.widget.Toast.makeText(p9, 2131755791, 1).show();
                    com.sophos.smsec.ui.KPViewerActivity.a(p9, v10_1);
                    return;
                } else {
                    v0_4 = new java.io.File(v0_1);
                }
            } else {
                v0_4 = new java.io.File(com.sophos.keepasseditor.c.g());
            }
            try {
                Throwable v3_6 = new java.io.FileInputStream(v0_4);
                Throwable v0_6 = 0;
                try {
                    Throwable v4_1 = p9.getContentResolver().openOutputStream(v10_1);
                } catch (Throwable v4_3) {
                    if (v0_6 == null) {
                        v3_6.close();
                    } else {
                        try {
                            v3_6.close();
                        } catch (Throwable v3_7) {
                            v0_6.addSuppressed(v3_7);
                        }
                    }
                    throw v4_3;
                } catch (Throwable v0_6) {
                    throw v0_6;
                }
                if (v4_1 != null) {
                    try {
                        android.widget.Toast.makeText(p9, 2131755656, 1).show();
                        Throwable v5_3 = new byte[1024];
                    } catch (Throwable v5_7) {
                        android.widget.Toast v6_2 = 0;
                        if (v4_1 != null) {
                            if (v6_2 == null) {
                                v4_1.close();
                            } else {
                                try {
                                    v4_1.close();
                                } catch (Throwable v4_2) {
                                    v6_2.addSuppressed(v4_2);
                                }
                            }
                        }
                        throw v5_7;
                    } catch (Throwable v5_6) {
                        try {
                            throw v5_6;
                        } catch (android.widget.Toast v6_1) {
                            v6_2 = v5_6;
                            v5_7 = v6_1;
                        }
                    }
                    while(true) {
                        android.widget.Toast v6_0 = v3_6.read(v5_3);
                        if (v6_0 <= null) {
                            break;
                        }
                        v4_1.write(v5_3, 0, v6_0);
                    }
                    android.widget.Toast.makeText(p9, 2131755297, 1).show();
                }
                if (v4_1 != null) {
                    v4_1.close();
                }
                v3_6.close();
            } catch (Throwable v0_8) {
                com.sophos.smsec.ui.KPViewerActivity.a(p9, v10_1);
                android.widget.Toast.makeText(p9, 2131755791, 1).show();
                com.sophos.smsec.core.smsectrace.d.c("KPViewerActivity", "handleNewExportFileResult: ", v0_8);
            }
        }
        return;
    }

Method com.sophos.smsec.ui.KPViewerActivity.createExternalExportFile() calling method java.io.File.<init>()


    public static void createExternalExportFile(android.app.Activity p2, String p3)
    {
        int v3_2 = new java.io.File(p3).getName();
        android.content.Intent v0_3 = new android.content.Intent("android.intent.action.CREATE_DOCUMENT");
        v0_3.addCategory("android.intent.category.OPENABLE");
        v0_3.setType("application/octet-stream");
        v0_3.putExtra("android.intent.extra.TITLE", v3_2);
        if (p2 != null) {
            p2.startActivityForResult(v0_3, 3457);
        }
        return;
    }

Method com.sophos.smsec.ui.KPViewerActivity.askForExport() calling method java.io.File.<init>()


    public static void askForExport(android.content.Context p4, String p5)
    {
        String v0_1 = new android.content.Intent("android.intent.action.SEND");
        if (p5 != null) {
            try {
                android.widget.Toast v5_3;
                String v2_2 = new java.io.File(p5);
            } catch (android.widget.Toast v5_13) {
                android.widget.Toast.makeText(p4, 2131755791, 1).show();
                com.sophos.smsec.core.smsectrace.d.c("KPViewerActivity", "askForExport: ", v5_13);
            }
            if (!"Huawei".equalsIgnoreCase(android.os.Build.MANUFACTURER)) {
                v5_3 = com.sophos.smsec.KPSenderFileProvider.getUriForFile(p4, com.sophos.smsec.KPSenderFileProvider.a(), v2_2);
            } else {
                v5_3 = com.sophos.smsec.ui.KPViewerActivity.a(p4, v2_2);
            }
            v0_1.putExtra("android.intent.extra.STREAM", v5_3);
            v0_1.setType("application/octet-stream");
            v0_1.setFlags(1);
            if (v0_1.resolveActivity(p4.getPackageManager()) == null) {
                android.widget.Toast.makeText(p4, p4.getString(2131756156), 1).show();
            } else {
                p4.startActivity(android.content.Intent.createChooser(v0_1, p4.getString(2131755656)));
            }
        }
        return;
    }

Method com.sophos.smsec.ui.KPViewerActivity.a() calling method java.io.File.<init>()


    private static android.net.Uri a(android.content.Context p4, java.io.File p5)
    {
        try {
            java.io.IOException v4_3 = com.sophos.smsec.KPSenderFileProvider.getUriForFile(p4, com.sophos.smsec.KPSenderFileProvider.a(), p5);
        } catch (String v0_6) {
            if (android.os.Build$VERSION.SDK_INT >= 24) {
                com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on >= N devices, copy to private cache", v0_6);
                String v0_2 = new java.io.File(v4_3.getCacheDir(), "Huawei");
                v0_2.mkdirs();
                IllegalArgumentException v1_2 = new java.io.File(v0_2, p5.getName());
                String v0_3 = 0;
                try {
                    String v2_3 = new java.io.FileInputStream(p5);
                    try {
                        int v5_1 = new java.io.FileOutputStream(v1_2);
                        try {
                            com.google.android.gms.common.util.l.a(v2_3, v5_1);
                            com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on >= N devices. return uri of cached file");
                            v4_3 = com.sophos.smsec.KPSenderFileProvider.getUriForFile(v4_3, com.sophos.smsec.KPSenderFileProvider.a(), v1_2);
                            com.google.android.gms.common.util.l.a(v2_3);
                            com.google.android.gms.common.util.l.a(v5_1);
                        } catch (java.io.IOException v4_2) {
                            v0_3 = v2_3;
                            com.google.android.gms.common.util.l.a(v0_3);
                            com.google.android.gms.common.util.l.a(v5_1);
                            throw v4_2;
                        } catch (java.io.IOException v4_1) {
                            v0_3 = v2_3;
                            try {
                                com.sophos.smsec.core.smsectrace.d.c("KPViewerActivity", "fix for Huawei \'external-files-path\' bug failed", v4_1);
                                throw new IllegalArgumentException("fix for Huawei \'external-files-path\' bug failed", v4_1);
                            } catch (java.io.IOException v4_2) {
                            }
                        }
                        return v4_3;
                    } catch (java.io.IOException v4_2) {
                        v5_1 = 0;
                    } catch (java.io.IOException v4_1) {
                        v5_1 = 0;
                    }
                } catch (java.io.IOException v4_2) {
                    v5_1 = 0;
                } catch (java.io.IOException v4_1) {
                    v5_1 = 0;
                }
            } else {
                com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on < N devices, use Uri.fromFile", v0_6);
                v4_3 = android.net.Uri.fromFile(p5);
            }
        }
        return v4_3;
    }

Method com.sophos.smsec.plugin.scanner.ThreatViewedNotInstalledActivity.j() calling method java.io.File.<init>()


    private void j()
    {
        android.content.Context v0_2 = com.sophos.smsec.plugin.scanner.ThreatViewedNotInstalledActivity.e.iterator();
        while (v0_2.hasNext()) {
            android.widget.Toast v1_2 = ((com.sophos.smsec.plugin.scanner.scanitem.ScanItem) v0_2.next());
            if (!(v1_2 instanceof com.sophos.smsec.plugin.scanner.scanitem.FileScanItem)) {
                try {
                    this.startActivity(com.sophos.smsec.core.smsutils.f.a(v1_2.getItemIdentifier()));
                } catch (android.content.Context v2_3) {
                    Object[] v5_1 = this.getString(com.sophos.smsec.plugin.scanner.c$i.app_uninstall_failed);
                    Object[] v6 = new Object[1];
                    v6[0] = v1_2.getItemIdentifier();
                    android.widget.Toast.makeText(this.getApplicationContext(), String.format(v5_1, v6), 1).show();
                    com.sophos.smsec.core.smsectrace.d.a(v2_3);
                }
            } else {
                android.widget.Toast v1_8;
                android.content.Context v2_5 = new java.io.File(v1_2.getItemIdentifier());
                if ((!v2_5.delete()) || (v2_5.exists())) {
                    android.content.Context v2_8 = this.getString(com.sophos.smsec.plugin.scanner.c$i.scanner_file_delete_failed);
                    Object[] v5_4 = new Object[1];
                    v5_4[0] = v1_2.getItemIdentifier();
                    v1_8 = String.format(v2_8, v5_4);
                } else {
                    android.content.Context v2_10 = this.getString(com.sophos.smsec.plugin.scanner.c$i.scanner_file_deleted);
                    Object[] v5_5 = new Object[1];
                    v5_5[0] = v1_2.getItemIdentifier();
                    v1_8 = String.format(v2_10, v5_5);
                }
                android.widget.Toast.makeText(this.getApplicationContext(), v1_8, 1).show();
            }
        }
        com.sophos.smsec.core.smsecresources.ui.NotificationHelper.a(this.getApplicationContext(), "ThreatFoundNotification_GROUP");
        com.sophos.smsec.core.smsecresources.ui.NotificationHelper.a(this.getApplicationContext(), "LowRepAppFoundNotification_GROUP");
        return;
    }

Method com.sophos.smsec.ui.NewKeyFileActivity.onActivityResult() calling method java.io.File.<init>()


    public void onActivityResult(int p8, int p9, android.content.Intent p10)
    {
        String v0_0 = "";
        if (p8 != 23149) {
            if (p8 != 23155) {
                super.onActivityResult(p8, p9, p10);
                this.setResult(0, 0);
            } else {
                if ((p9 != -1) || (p10 == null)) {
                    if (p9 == null) {
                        return;
                    }
                } else {
                    com.sophos.smsec.core.datastore.SmSecPreferences v8_3 = p10.getStringExtra("filePath");
                    if ((v8_3 != null) && (!v8_3.isEmpty())) {
                        this.a = v8_3;
                        com.sophos.smsec.core.datastore.SmSecPreferences.c(this).b(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE, this.a);
                    }
                    p10.putExtra("request_code", 23155);
                }
                this.setResult(p9, p10);
            }
        } else {
            if (p9 != -1) {
                if (p9 == null) {
                    return;
                }
            } else {
                if (p10 != null) {
                    String v10_8;
                    String v0_7 = p10.getData();
                    if (v0_7 == null) {
                        v10_8 = 0;
                    } else {
                        if (!"content".equals(v0_7.getScheme())) {
                            if (!"file".equals(v0_7.getScheme())) {
                            } else {
                                String v10_7 = v0_7.getPath();
                                if (v10_7 == null) {
                                } else {
                                    String v2_11 = new java.io.File(v10_7);
                                    if (v2_11.exists()) {
                                        v10_8 = v2_11;
                                    } else {
                                        v10_8 = new java.io.File(v0_7.getEncodedPath());
                                    }
                                }
                            }
                        } else {
                            v10_8 = com.sophos.smsec.ui.NewKeyFileActivity.a(this.getApplicationContext(), v0_7, p10.getType());
                        }
                    }
                    if (v10_8 == null) {
                        v0_0 = ((String) this.getText(2131756259));
                    } else {
                        this.a = v10_8.getAbsolutePath();
                        String v0_12 = this.a.lastIndexOf(46);
                        if (v0_12 >= null) {
                            String v5_2 = this.a;
                            if (com.sophos.smsdkex.a.b.a.contains(v5_2.substring((v0_12 + 1), v5_2.length()))) {
                                if (!com.sophos.smsec.core.datastore.SmSecPreferences.c(0).a(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE).isEmpty()) {
                                    v0_0 = ((String) this.getText(2131756258));
                                    if (!v0_0.isEmpty()) {
                                        android.widget.Toast.makeText(this, v0_0, 1).show();
                                    }
                                    this.finish();
                                    return;
                                } else {
                                    com.sophos.smsec.core.datastore.SmSecPreferences.c(0).b(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE, this.a);
                                    String v2_2 = new Object[1];
                                    v2_2[0] = v10_8.getName();
                                    v0_0 = this.getString(2131756260, v2_2);
                                    android.content.Intent v1_2 = com.sophos.keepasseditor.d.a(this.getApplicationContext(), com.sophos.keepasseditor.KeepassCreateActivity, this.a, "smsec");
                                    v1_2.setData(android.net.Uri.fromFile(v10_8));
                                    v1_2.addFlags(8388608);
                                    v1_2.putExtra("filePath", this.a);
                                    v1_2.putExtra("request_code", 23149);
                                    this.setResult(p9, v1_2);
                                }
                            }
                        }
                        this.a = "";
                        v0_0 = ((String) this.getText(2131755636));
                    }
                }
            }
        }
        this.finish();
        return;
    }

Method com.sophos.smsec.ui.NewKeyFileActivity.a() calling method java.io.File.<init>()


    static java.io.File a(android.content.Context p9, android.net.Uri p10, String p11)
    {
        android.content.ContentResolver v6 = p9.getContentResolver();
        String v7 = "_unknown_file_";
        java.io.File v8 = 0;
        try {
            byte[] v1_1;
            String v0_1 = v6.query(p10, 0, 0, 0, 0);
        } catch (java.io.FileOutputStream v9_2) {
            v0_1 = 0;
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v9_2;
        } catch (Exception) {
            v0_1 = 0;
            v7 = "_unknown_file_";
            if (v0_1 != null) {
                v0_1.close();
            }
            v1_1 = 0;
            if (v7.equals("_unknown_file_")) {
                String v0_0 = "";
                if (p11) {
                    if (!p11.contains("pdf")) {
                        if (!p11.contains("image")) {
                            if (!p11.contains("keepass")) {
                                if (p11.contains("text")) {
                                    if ((!p11.contains("text")) && (!p11.contains("txt"))) {
                                        if (p11.contains("log")) {
                                            v0_0 = ".log";
                                        }
                                    } else {
                                        v0_0 = ".txt";
                                    }
                                }
                            } else {
                                v0_0 = ".kdbx";
                            }
                        } else {
                            if ((!p11.contains("jpeg")) && (!p11.contains("jpg"))) {
                                if (!p11.contains("png")) {
                                    if (!p11.contains("bmp")) {
                                        if (p11.contains("gif")) {
                                            v0_0 = ".gif";
                                        }
                                    } else {
                                        v0_0 = ".bmp";
                                    }
                                } else {
                                    v0_0 = ".png";
                                }
                            } else {
                                v0_0 = ".jpg";
                            }
                        }
                    } else {
                        v0_0 = ".pdf";
                    }
                }
                if (v1_1 == null) {
                    boolean v11_2 = new StringBuilder();
                    v11_2.append(v7);
                    v11_2.append(v0_0);
                    v7 = v11_2.toString();
                } else {
                    boolean v11_4 = new StringBuilder();
                    v11_4.append(v1_1);
                    v11_4.append(v0_0);
                    v7 = v11_4.toString();
                }
            }
            boolean v11_6 = v7.replace(47, 95);
            byte[] v1_0 = new byte[16384];
            try {
                String v10_1 = v6.openInputStream(p10);
            } catch (java.io.IOException) {
                com.sophos.smsec.core.smsectrace.d.d("NewKeyFileActivity", "Error writing file.");
                return v8;
            } catch (SecurityException) {
                com.sophos.smsec.core.smsectrace.d.d("NewKeyFileActivity", "Access to passed file denied.");
                return v8;
            }
            if (v10_1 != null) {
                if (p9.getExternalFilesDir("database") != null) {
                    v8 = new java.io.File(p9.getExternalFilesDir("database"), v11_6);
                } else {
                    v8 = new java.io.File(new java.io.File(p9.getFilesDir(), "database"), v11_6);
                }
                java.io.FileOutputStream v9_5 = new java.io.FileOutputStream(v8);
                do {
                    String v2_6 = v10_1.read(v1_0, 0, 16384);
                    if (v2_6 > null) {
                        v9_5.write(v1_0, 0, v2_6);
                    }
                } while(v2_6 > -1);
                v10_1.close();
                v9_5.close();
                return v8;
            } else {
                com.sophos.smsec.core.smsectrace.d.d("NewKeyFileActivity", "Failed to read data from content provider.");
                return 0;
            }
        } catch (java.io.FileOutputStream v9_2) {
        }
        if (v0_1 == null) {
            v1_1 = 0;
        } else {
            v0_1.moveToFirst();
            byte[] v1_3 = v0_1.getColumnIndex("_display_name");
            if (v1_3 >= null) {
                v7 = v0_1.getString(v1_3);
                if (v7 == null) {
                    v7 = "_unknown_file_";
                }
            }
            byte[] v1_5 = v0_1.getColumnIndex("title");
            if (v1_5 < null) {
                v1_1 = 0;
            } else {
                v1_1 = v0_1.getString(v1_5);
            }
        }
        if (v0_1 == null) {
        } else {
            v0_1.close();
        }
    }

Method com.sophos.smsec.ui.KPReceiveActivity.onCreate() calling method java.io.File.<init>()


    protected void onCreate(android.os.Bundle p7)
    {
        super.onCreate(p7);
        String v7_5 = this.getIntent();
        if (v7_5 != null) {
            String v0_0 = "";
            if (("android.intent.action.SEND".equals(v7_5.getAction())) || ("android.intent.action.VIEW".equals(v7_5.getAction()))) {
                Object[] v1_4 = v7_5.getData();
                if (v1_4 == null) {
                    int v3_3 = v7_5.getExtras();
                    if (v3_3 != 0) {
                        v1_4 = ((android.net.Uri) v3_3.get("android.intent.extra.STREAM"));
                    }
                }
                if (v1_4 == null) {
                    v0_0 = ((String) this.getText(2131756259));
                } else {
                    String v7_11;
                    if (!"content".equals(v1_4.getScheme())) {
                        if ("file".equals(v1_4.getScheme())) {
                            String v7_10 = v1_4.getPath();
                            if (v7_10 != null) {
                                int v3_8 = new java.io.File(v7_10);
                                if (v3_8.exists()) {
                                    v7_11 = v3_8;
                                    if (v7_11 != null) {
                                        String v0_3 = v7_11.getAbsolutePath();
                                        Object[] v1_10 = v0_3.lastIndexOf(46);
                                        if ((v1_10 < null) || (!com.sophos.smsdkex.a.b.a.contains(v0_3.substring((v1_10 + 1), v0_3.length())))) {
                                            v0_0 = ((String) this.getText(2131755636));
                                        } else {
                                            if (!com.sophos.smsec.core.datastore.SmSecPreferences.c(0).a(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE).isEmpty()) {
                                                v0_0 = ((String) this.getText(2131756258));
                                            } else {
                                                com.sophos.smsec.core.datastore.SmSecPreferences.c(0).b(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE, v0_3);
                                                Object[] v1_1 = new Object[1];
                                                v1_1[0] = v7_11.getName();
                                                v0_0 = this.getString(2131756260, v1_1);
                                            }
                                        }
                                    }
                                    if (!v0_0.isEmpty()) {
                                        android.widget.Toast.makeText(this, v0_0, 1).show();
                                    }
                                    this.finish();
                                    return;
                                } else {
                                    v7_11 = new java.io.File(v1_4.getEncodedPath());
                                }
                            }
                        }
                        v7_11 = 0;
                    } else {
                        v7_11 = com.sophos.smsec.ui.NewKeyFileActivity.a(this.getApplicationContext(), v1_4, v7_5.getType());
                    }
                }
            }
        }
        this.finish();
        return;
    }

Method com.sophos.smsec.ui.DroidGuardMainActivity.h() calling method java.io.File.<init>()


    private void h()
    {
        android.content.Intent v0_11 = this.getIntent().getExtras();
        String v1_10 = com.sophos.smsec.core.datastore.SmSecPreferences.c(this.getApplicationContext());
        boolean v3_1 = 0;
        if ((!v1_10.a(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.DB_EULA_KEY, 0)) && ((v0_11 != null) && (v0_11.containsKey("labTesting")))) {
            android.widget.Toast.makeText(this, "!!!! LAB TESTING MODE ENABLED - ONLY FOR TESTING - NO PRODUCTIVE MODE !!!!", 1).show();
            android.util.Log.i("LabTesting", "!!!! LAB TESTING MODE ENABLED - ONLY FOR TESTING - NO PRODUCTIVE MODE !!!!");
            this.h = 1;
            String v2_25 = new StringBuilder();
            v2_25.append(android.os.Environment.getDataDirectory().getAbsolutePath());
            v2_25.append(java.io.File.separator);
            v2_25.append("data");
            v2_25.append(java.io.File.separator);
            v2_25.append("com.sophos.smsec");
            v2_25.append(java.io.File.separator);
            v2_25.append("app_savi");
            v2_25.append(java.io.File.separator);
            v2_25.append("libsavi.so");
            String v2_26 = v2_25.toString();
            if ((v0_11.containsKey("labTesting_custom_libsavi_enabled")) && ((v0_11.getBoolean("labTesting_custom_libsavi_enabled")) && (new java.io.File(v2_26).exists()))) {
                try {
                    System.load(v2_26);
                    android.util.Log.i("LabTesting", "alternative version of savi loaded");
                } catch (Exception) {
                }
            }
            String v2_29 = new StringBuilder();
            v2_29.append(android.os.Environment.getDataDirectory().getAbsolutePath());
            v2_29.append(java.io.File.separator);
            v2_29.append("data");
            v2_29.append(java.io.File.separator);
            v2_29.append("com.sophos.smsec");
            v2_29.append(java.io.File.separator);
            v2_29.append("app_savi");
            v2_29.append(java.io.File.separator);
            v2_29.append("libsavijni.so");
            String v2_31 = v2_29.toString();
            if ((v0_11.containsKey("labTesting_custom_libsavi_enabled")) && ((v0_11.getBoolean("labTesting_custom_libsavi_enabled")) && (new java.io.File(v2_31).exists()))) {
                try {
                    System.load(v2_31);
                    android.util.Log.i("LabTesting", "alternative version of savijni loaded");
                } catch (Exception) {
                }
            }
            if (!"init".equals(v0_11.getString("labTesting"))) {
                if ("scan".equals(v0_11.getString("labTesting"))) {
                    String v1_4;
                    if (!v0_11.containsKey("labTesting_puas_enabled")) {
                        v1_4 = 0;
                    } else {
                        v1_4 = v0_11.getBoolean("labTesting_puas_enabled");
                        String v4_1 = new StringBuilder();
                        v4_1.append("labTesting_puas_enabled ");
                        v4_1.append(v1_4);
                        android.util.Log.i("LabTesting", v4_1.toString());
                    }
                    String v2_10;
                    if (!v0_11.containsKey("labTesting_scanstorage_enabled")) {
                        v2_10 = 0;
                    } else {
                        v2_10 = v0_11.getBoolean("labTesting_scanstorage_enabled");
                        StringBuilder v5_9 = new StringBuilder();
                        v5_9.append("labTesting_scanstorage_enabled ");
                        v5_9.append(v2_10);
                        android.util.Log.i("LabTesting", v5_9.toString());
                    }
                    if (v0_11.containsKey("labTesting_scansystemapps_enabled")) {
                        v3_1 = v0_11.getBoolean("labTesting_scansystemapps_enabled");
                        String v4_7 = new StringBuilder();
                        v4_7.append("labTesting_scansystemapps_enabled ");
                        v4_7.append(v3_1);
                        android.util.Log.i("LabTesting", v4_7.toString());
                    }
                    android.content.Intent v0_4 = new android.content.Intent(this, com.sophos.smsec.plugin.scanner.service.ScannerService).setAction("start_silent_scan");
                    v0_4.putExtra("settings", new com.sophos.smsec.communication.scan.ScanParams(v2_10, v3_1, v1_4));
                    StringBuilder v5_15 = new StringBuilder();
                    v5_15.append("Start Scan for LabTesting mode with parameter scanStorageEnabled: ");
                    v5_15.append(v2_10);
                    v5_15.append(", systemAppsEnabled: ");
                    v5_15.append(v3_1);
                    v5_15.append(", puasEnabled: ");
                    v5_15.append(v1_4);
                    android.util.Log.i("LabTesting", v5_15.toString());
                    this.startService(v0_4);
                }
            } else {
                if (v0_11.containsKey("labTesting_vdlupdate_enabled")) {
                    android.content.Intent v0_6;
                    android.content.Intent v0_5 = v0_11.getBoolean("labTesting_vdlupdate_enabled");
                    boolean v3_3 = new StringBuilder();
                    v3_3.append("labTesting_vdlupdate_enabled ");
                    v3_3.append(v0_5);
                    android.util.Log.i("LabTesting", v3_3.toString());
                    if (v0_5 == null) {
                        v0_6 = "3";
                    } else {
                        v0_6 = "0";
                    }
                    v1_10.b(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_SAV_ONLINE_UPDATE_MODE, v0_6);
                }
                v1_10.b(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_TRACE_VERBOSE_TRACING, 1);
                v1_10.b(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_TRACE_LOG_LEVEL, 2);
                com.sophos.smsec.core.smsectrace.d.a(2);
                com.sophos.smsec.core.smsectrace.d.a(1);
                com.sophos.smsec.core.smsectrace.d.b(this.getApplicationContext(), com.sophos.smsec.core.smsectrace.d.g());
                android.util.Log.i("LabTesting", "Init SmSec for LabTesting mode done.");
            }
        }
        return;
    }

Method com.sophos.keepasseditor.e.a() calling method java.io.File.<init>()


    private void a()
    {
        if ((this.getIntent() == null) || (this.getIntent().getData() == null)) {
            if (com.sophos.keepasseditor.c.g() != null) {
                String v4 = com.sophos.keepasseditor.c.g();
            } else {
                android.widget.Toast.makeText(ark>com.sophos.keepasseditor.eark>.getStaticAppContext(), this.getString(com.sophos.keepasseditor.g$f.new_file_description), 1).show();
                this.finish();
                return;
            }
        } else {
            v4 = this.getIntent().getData().getPath();
        }
        this.mAppId = this.getIntent().getStringExtra("application_identifier");
        this.checkDisableScreenshots(this.getWindow(), this.mAppId);
        if ((com.sophos.keepasseditor.c.a() != null) && ((com.sophos.keepasseditor.c.g() == null) || (!com.sophos.keepasseditor.c.g().equals(v4)))) {
            com.sophos.smsec.core.smsectrace.d.e("KeepassViewer", "reload: keepassfileholder cleared, path changed");
            com.sophos.keepasseditor.c.b();
        }
        if (com.sophos.keepasseditor.c.a() != null) {
            this.a(com.sophos.keepasseditor.c.a());
        } else {
            Void[] v0_25 = this.mEntryListFragment;
            if (v0_25 != null) {
                v0_25.b(0);
            }
            if (!new java.io.File(v4).exists()) {
                Void[] v0_31 = new StringBuilder();
                v0_31.append("File \"");
                v0_31.append(v4);
                v0_31.append("\" not found");
                android.widget.Toast.makeText(this, v0_31.toString(), 1).show();
                this.onFileClosed(0, 0);
            } else {
                if (com.sophos.keepasseditor.c.f() == null) {
                    Void[] v0_36 = this.getIntent().getStringExtra("resultValue");
                    com.sophos.keepasseditor.a v1_4 = this.getIntent().getByteArrayExtra("keyfile.bytearray");
                    if ((v0_36 != null) && (!v0_36.isEmpty())) {
                        com.sophos.keepasseditor.c.a(0, v4, v0_36, v1_4);
                    }
                }
                if (com.sophos.keepasseditor.c.f() != null) {
                    ark>com.sophos.keepasseditor.eark>.lockRotation(this);
                    com.sophos.keepasseditor.a v1_0 = new com.sophos.keepasseditor.a;
                    v1_0(this, v4, com.sophos.keepasseditor.c.f(), com.sophos.keepasseditor.c.h(), new ark>com.sophos.keepasseditor.eark>$1(this, this.a(this, this.getString(com.sophos.keepasseditor.g$f.opening_database)), this));
                    Void[] v0_6 = new Void[0];
                    v1_0.execute(v0_6);
                } else {
                    if (!this.mPasswordDialogShown) {
                        this.a(v4);
                    }
                }
            }
        }
        return;
    }

Method com.sophos.smsec.plugin.scanner.threading.l.<init>() calling method java.io.File.<init>()


    public l(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority p1, com.sophos.smsec.plugin.scanner.scan.ScanSettings p2, com.sophos.smsec.plugin.scanner.service.ScanHandler p3)
    {
        super(p1, p2, p3);
        super.a = 0;
        super.b = new java.io.File(((com.sophos.smsec.plugin.scanner.service.e) p3).c());
        return;
    }

Method com.sophos.smsec.plugin.scanner.ApkDetailScanViewFragment.uninstallApkClick() calling method java.io.File.<init>()


    public void uninstallApkClick(android.view.View p5)
    {
        if (com.sophos.smsec.plugin.scanner.quarantine.QuarantineItem.isInstalledAPK(this.b)) {
            super.uninstallApkClick(p5);
        } else {
            String v5_6;
            String v5_11 = this.b;
            if (v5_11 != null) {
                if (v5_11.getIdentifier() != null) {
                    String v5_2 = new java.io.File(this.b.getIdentifier());
                    if ((!v5_2.delete()) || (v5_2.exists())) {
                        String v5_5 = this.getString(com.sophos.smsec.plugin.scanner.c$i.scanner_file_delete_failed);
                        Object[] v2_3 = new Object[1];
                        v2_3[0] = this.b.getIdentifier();
                        v5_6 = String.format(v5_5, v2_3);
                    } else {
                        String v5_8 = this.getString(com.sophos.smsec.plugin.scanner.c$i.scanner_file_deleted);
                        Object[] v2_4 = new Object[1];
                        v2_4[0] = this.b.getIdentifier();
                        v5_6 = String.format(v5_8, v2_4);
                    }
                } else {
                    String v5_10 = this.getString(com.sophos.smsec.plugin.scanner.c$i.scanner_file_delete_failed);
                    Object[] v2_5 = new Object[1];
                    v2_5[0] = this.b.getIdentifier();
                    v5_6 = String.format(v5_10, v2_5);
                }
            } else {
                v5_6 = this.getString(com.sophos.smsec.plugin.scanner.c$i.scanner_unknown_file_delete_failed);
            }
            if (this.getActivity() != null) {
                android.widget.Toast.makeText(this.getActivity().getApplicationContext(), v5_6, 1).show();
            }
            com.sophos.smsec.core.datastore.log.SMSecLog.a(com.sophos.smsec.core.datastore.log.SMSecLog$LogType.LOGTYPE_SCANNER, v5_6);
            this.o();
        }
        return;
    }

Method org.apache.commons.io.filefilter.WildcardFilter.accept() calling method java.io.File.<init>()


    public boolean accept(java.io.File p5, String p6)
    {
        if ((p5 == 0) || (!new java.io.File(p5, p6).isDirectory())) {
            int v5_3 = this.wildcards;
            int v2 = 0;
            while (v2 < v5_3.length) {
                if (!org.apache.commons.io.FilenameUtils.wildcardMatch(p6, v5_3[v2])) {
                    v2++;
                } else {
                    return 1;
                }
            }
            return 0;
        } else {
            return 0;
        }
    }

Method com.sophos.smsec.plugin.scanner.threading.s$b.a() calling method java.io.File.<init>()


    public void a()
    {
        com.sophos.smsec.core.datastore.DataStore v0_4 = com.sophos.smsec.core.datastore.DataStore.a(this.f()).A();
        java.util.ArrayList v1_1 = new java.util.ArrayList();
        com.sophos.smsec.core.datastore.DataStore v0_5 = v0_4.iterator();
        while (v0_5.hasNext()) {
            String v2_2 = ((String) v0_5.next());
            if (com.sophos.smsec.core.a.a.a(v2_2)) {
                if (!new java.io.File(v2_2).exists()) {
                    v1_1.add(v2_2);
                } else {
                    super.a(new com.sophos.smsec.plugin.scanner.scanitem.FileScanItem(v2_2));
                }
            }
        }
        com.sophos.smsec.core.datastore.DataStore.a(this.f()).a(v1_1);
        return;
    }

Method com.sophos.smsec.cloud.c.g.appendCommandPayload() calling method java.io.File.<init>()


    public void appendCommandPayload(org.json.JSONObject p4)
    {
        String v0_6 = new java.io.File(this.a.getFilesDir(), "Profile");
        v0_6.mkdirs();
        String v1_4 = new java.io.File(v0_6, "scannerconfig.jsn");
        if (!v1_4.exists()) {
            com.sophos.smsec.core.smsectrace.d.c("REST", "Profile result file not found");
        } else {
            try {
                p4.put("command_payload", android.util.Base64.encodeToString(com.sophos.cloud.core.c.q.a(v1_4), 2));
            } catch (java.io.IOException) {
                com.sophos.smsec.core.smsectrace.d.c("REST", "Cannot read profile result file.");
                return;
            }
        }
        return;
    }

Method com.sophos.smsec.cloud.c.c.b() calling method java.io.File.<init>()


    private void b()
    {
        com.sophos.smsec.cloud.d.a(this.getContext()).g().mkdirs();
        java.io.File v0_2 = com.sophos.smsec.cloud.d.a(this.getContext()).f();
        java.util.Iterator v1_3 = com.sophos.smsec.cloud.d.a(this.getContext()).h().iterator();
        while (v1_3.hasNext()) {
            new java.io.File(v0_2, ((String) v1_3.next())).mkdirs();
        }
        return;
    }

Method com.sophos.smsec.cloud.b.e.doExecute() calling method java.io.File.<init>()


    public int doExecute()
    {
        int v0_3 = new java.io.File(this.getContext().getFilesDir(), "Profile");
        v0_3.mkdirs();
        java.io.File v1_0 = new java.io.File(v0_3, "scannerconfig.jsn");
        if (v1_0.exists()) {
            this.a(v1_0);
        }
        this.finish(0);
        return 0;
    }

Method org.simpleframework.xml.transform.FileTransform.read() calling method java.io.File.<init>()


    public java.io.File read(String p2)
    {
        return new java.io.File(p2);
    }

Method org.apache.commons.io.filefilter.AbstractFileFilter.accept() calling method java.io.File.<init>()


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

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


    public void a(long p4, org.json.JSONObject p6)
    {
        io.fabric.sdk.android.c.g().a("Fabric", "Writing settings to cache file...");
        if (p6 != null) {
            String v0_1 = 0;
            try {
                p6.put("expires_at", p4);
                String v4_1 = new java.io.FileWriter(new java.io.File(new io.fabric.sdk.android.services.c.b(this.a).a(), "com.crashlytics.settings.json"));
                try {
                    v4_1.write(p6.toString());
                    v4_1.flush();
                    io.fabric.sdk.android.services.common.CommonUtils.a(v4_1, "Failed to close settings writer.");
                } catch (Exception v5_5) {
                    v0_1 = v4_1;
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close settings writer.");
                    throw v5_5;
                } catch (Exception v5_2) {
                    v0_1 = v4_1;
                    io.fabric.sdk.android.c.g().e("Fabric", "Failed to cache settings", v5_2);
                    io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Failed to close settings writer.");
                }
            } catch (Exception v5_5) {
            } catch (Exception v5_2) {
            }
        }
        return;
    }

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


    public org.json.JSONObject a()
    {
        io.fabric.sdk.android.c.g().a("Fabric", "Reading cached settings...");
        String v0_1 = 0;
        try {
            org.json.JSONObject v3_2;
            Exception v1_0 = new java.io.File(new io.fabric.sdk.android.services.c.b(this.a).a(), "com.crashlytics.settings.json");
        } catch (Exception v1_4) {
            io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Error while closing settings cache file.");
            throw v1_4;
        } catch (Exception v1_3) {
            String v2_4 = 0;
            io.fabric.sdk.android.c.g().e("Fabric", "Failed to fetch cached settings", v1_3);
            io.fabric.sdk.android.services.common.CommonUtils.a(v2_4, "Error while closing settings cache file.");
            return v0_1;
        } catch (String v0_2) {
            v1_4 = v0_2;
            v0_1 = v2_4;
        }
        if (!v1_0.exists()) {
            io.fabric.sdk.android.c.g().a("Fabric", "No cached settings found.");
            v3_2 = 0;
        } else {
            v2_4 = new java.io.FileInputStream(v1_0);
            try {
                v3_2 = new org.json.JSONObject(io.fabric.sdk.android.services.common.CommonUtils.a(v2_4));
                v0_1 = v2_4;
            } catch (Exception v1_3) {
            }
        }
        io.fabric.sdk.android.services.common.CommonUtils.a(v0_1, "Error while closing settings cache file.");
        v0_1 = v3_2;
        return v0_1;
    }

Method io.fabric.sdk.android.services.b.h.a() calling method java.io.File.<init>()


    public void a(String p4)
    {
        this.e.close();
        this.a(this.d, new java.io.File(this.f, p4));
        this.e = new io.fabric.sdk.android.services.common.q(this.d);
        return;
    }

Method io.fabric.sdk.android.services.b.h.e() calling method java.io.File.<init>()


    private void e()
    {
        this.f = new java.io.File(this.b, this.c);
        if (!this.f.exists()) {
            this.f.mkdirs();
        }
        return;
    }

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


    public h(android.content.Context p1, java.io.File p2, String p3, String p4)
    {
        this.a = p1;
        this.b = p2;
        this.c = p4;
        this.d = new java.io.File(this.b, p3);
        this.e = new io.fabric.sdk.android.services.common.q(this.d);
        this.e();
        return;
    }

Method com.sophos.smsec.plugin.scanner.threading.e.a() calling method java.io.File.<init>()


    public void a()
    {
        com.sophos.smsec.core.smsectrace.d.e("FL", "Start collecting files");
        java.util.Iterator v0_4 = new android.content.Intent("com.sophos.smsec.scann.progress");
        v0_4.putExtra("progressType", com.sophos.smsec.plugin.scanner.progress.ProgressType$EProgress.COLLECT_FILES);
        android.support.v4.content.LocalBroadcastManager.getInstance(this.f()).sendBroadcast(v0_4);
        java.util.Iterator v0_1 = 0;
        try {
            int v1_3 = this.a;
            com.sophos.smsec.plugin.scanner.scanitem.FileScanItem v2_0 = v1_3.length;
            int v3_0 = 0;
        } catch (java.util.Iterator v0_5) {
            com.sophos.smsec.core.smsectrace.d.d("ERROR", "error during FileCollection", v0_5);
            int v1_17 = new StringBuilder();
            v1_17.append("Finish collecting apps. Number of Files to scan: ");
            v1_17.append(this.d);
            com.sophos.smsec.core.smsectrace.d.e("FL", v1_17.toString());
            return;
        }
        while (v3_0 < v2_0) {
            java.io.File v5_1 = new java.io.File(v1_3[v3_0]);
            if (v0_1 != null) {
                v0_1.addAll(this.a(v5_1));
            } else {
                v0_1 = this.a(v5_1);
            }
            v3_0++;
        }
        if (v0_1 == null) {
            v1_17 = new StringBuilder();
            v1_17.append("Finish collecting apps. Number of Files to scan: ");
            v1_17.append(this.d);
            com.sophos.smsec.core.smsectrace.d.e("FL", v1_17.toString());
            return;
        } else {
            java.util.Iterator v0_2 = v0_1.iterator();
            while (v0_2.hasNext()) {
                com.sophos.smsec.plugin.scanner.scanitem.FileScanItem v2_2 = new com.sophos.smsec.plugin.scanner.scanitem.FileScanItem(((String) v0_2.next()));
                if (!com.sophos.smsec.a.a.a(v2_2.getItemIdentifier())) {
                    this.b.add(v2_2);
                } else {
                    v2_2.setApk(1);
                    this.c.add(v2_2);
                }
                this.d = (this.d + 1);
            }
            v1_17 = new StringBuilder();
            v1_17.append("Finish collecting apps. Number of Files to scan: ");
            v1_17.append(this.d);
            com.sophos.smsec.core.smsectrace.d.e("FL", v1_17.toString());
            return;
        }
    }

Method com.sophos.smsec.plugin.scanner.service.g.a() calling method java.io.File.<init>()


    public static void a(android.content.Context p5, String p6)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("Starting Installer for package ");
        v0_1.append(p6);
        com.sophos.smsec.core.smsectrace.d.h(v0_1.toString());
        if ((p6 == null) || (p6.endsWith(".apk"))) {
            int v2 = 1;
            if (android.os.Build$VERSION.SDK_INT <= 23) {
                String v6_8;
                String v0_5 = new android.content.Intent("android.intent.action.VIEW");
                String v1_4 = new StringBuilder();
                v1_4.append("file://");
                v1_4.append(p6);
                v0_5.setDataAndType(android.net.Uri.parse(v1_4.toString()), "application/vnd.android.package-archive");
                v0_5.addFlags(268468236);
                v0_5.setComponent(new android.content.ComponentName("com.android.packageinstaller", "com.android.packageinstaller.PackageInstallerActivity"));
                if (v0_5.resolveActivityInfo(p5.getPackageManager(), 0) == null) {
                    v6_8 = 0;
                } else {
                    v6_8 = 1;
                }
                if (v6_8 == null) {
                    v0_5.setComponent(new android.content.ComponentName("com.google.android.packageinstaller", "com.android.packageinstaller.PackageInstallerActivity"));
                    if (v0_5.resolveActivityInfo(p5.getPackageManager(), 0) == null) {
                        v2 = 0;
                    }
                    if (v2 == 0) {
                        return;
                    }
                }
                try {
                    p5.startActivity(v0_5);
                } catch (android.content.ActivityNotFoundException v5_1) {
                    com.sophos.smsec.core.smsectrace.d.c("Installing app failed", v5_1);
                }
            } else {
                try {
                    String v6_14 = com.sophos.smsec.plugin.scanner.service.ScanFileProvider.getUriForFile(p5, com.sophos.smsec.plugin.scanner.service.ScanFileProvider.a(), new java.io.File(p6));
                    String v0_9 = new android.content.Intent("android.intent.action.INSTALL_PACKAGE");
                    v0_9.setData(v6_14);
                    v0_9.setFlags(268435457);
                    try {
                        p5.startActivity(v0_9);
                    } catch (android.content.ActivityNotFoundException v5_3) {
                        com.sophos.smsec.core.smsectrace.d.c("Installing app failed", v5_3);
                    }
                } catch (String v0_10) {
                    com.sophos.smsec.core.smsectrace.d.c("Installing app failed", v0_10);
                    com.sophos.smsec.core.smsectrace.d.c("Installing app failed", v0_10);
                    String v0_12 = p5.getString(com.sophos.smsec.plugin.scanner.c$i.scanner_onviewscan_cannot_access);
                    String v1_13 = new Object[1];
                    v1_13[0] = 268435457;
                    android.widget.Toast.makeText(p5, String.format(v0_12, v1_13), 1).show();
                    return;
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.sophos.smsec.plugin.scanner.service.ScannerService.onStartCommand() calling method java.io.File.<init>()


    public int onStartCommand(android.content.Intent p6, int p7, int p8)
    {
        if ((android.os.Build$VERSION.SDK_INT < 26) || (com.sophos.smsec.core.resources.apprequirements.IgnoreBatteryOptimizationRequirement.isActive(this))) {
            this.startService(new android.content.Intent(this, com.sophos.smsec.plugin.scanner.quarantine.QuarantineFileObserverService));
        } else {
            com.sophos.smsec.core.smsectrace.d.c("ScService", "we are not allowed to start service from background");
        }
        this.e();
        if ((p6) && (p6.getAction() != null)) {
            boolean v0_13 = new StringBuilder();
            v0_13.append("Start Scanner Service with intent ");
            v0_13.append(p6.getAction());
            com.sophos.smsec.core.smsectrace.d.e("ScService", v0_13.toString());
            if ((!"start_initial_scan".equals(p6.getAction())) || (com.sophos.smsec.plugin.scanner.threading.g.b())) {
                if ((!"start_oninstall_scan".equals(p6.getAction())) || (p6.getData() == null)) {
                    if (!"start_onview_scan".equals(p6.getAction())) {
                        if (!"com.sophos.smsec.plugin.scanner.service.schedule.scan".equals(p6.getAction())) {
                            if (!"start_background_scan".equals(p6.getAction())) {
                                if (!p6.getAction().equals("start_rescan")) {
                                    if (!"start_silent_scan".equals(p6.getAction())) {
                                        if (!"start_mount_scan".equals(p6.getAction())) {
                                            if (!"start_mount_observer".equals(p6.getAction())) {
                                                if ("stop_mount_observer".equals(p6.getAction())) {
                                                    com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask.f();
                                                }
                                            } else {
                                                if (com.sophos.smsec.core.datastore.SmSecPreferences.c(this.getApplicationContext()).a(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_STORAGE_OBSERVER_SETTING, this.getApplicationContext().getResources().getBoolean(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_STORAGE_OBSERVER_SETTING.getDefValueResId()))) {
                                                    com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask.e();
                                                }
                                            }
                                        } else {
                                            this.b.a(new com.sophos.smsec.plugin.scanner.threading.l(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority.SCHEDULED_SCAN, new com.sophos.smsec.plugin.scanner.scan.ScanSettings(this.getApplicationContext(), 0, 1), new com.sophos.smsec.plugin.scanner.service.e(this.getApplicationContext(), p6.getData().getPath())));
                                        }
                                    } else {
                                        if (p6.getSerializableExtra("settings") == null) {
                                            this.b.a(new com.sophos.smsec.plugin.scanner.threading.v(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority.TRIGGERED_SCAN, new com.sophos.smsec.plugin.scanner.scan.ScanSettings(this.getApplicationContext()), new com.sophos.smsec.plugin.scanner.service.k(this.getApplicationContext())));
                                        } else {
                                            boolean v6_7 = ((com.sophos.smsec.communication.scan.ScanParams) p6.getSerializableExtra("settings"));
                                            this.b.a(new com.sophos.smsec.plugin.scanner.threading.v(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority.TRIGGERED_SCAN, new com.sophos.smsec.plugin.scanner.scan.ScanSettings(this.getApplicationContext(), v6_7.getScanSystemApps().booleanValue(), v6_7.getScanSdCard().booleanValue()), new com.sophos.smsec.plugin.scanner.service.k(this.getApplicationContext())));
                                        }
                                    }
                                } else {
                                    this.b.a(new com.sophos.smsec.plugin.scanner.threading.s(new com.sophos.smsec.plugin.scanner.service.i(this.getApplicationContext())));
                                }
                            } else {
                                if (p6.getSerializableExtra("settings") == null) {
                                    this.b.a(new com.sophos.smsec.plugin.scanner.threading.v(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority.TRIGGERED_SCAN, new com.sophos.smsec.plugin.scanner.scan.ScanSettings(this.getApplicationContext()), new com.sophos.smsec.plugin.scanner.service.l(this.getApplicationContext())));
                                } else {
                                    boolean v6_15 = ((com.sophos.smsec.communication.scan.ScanParams) p6.getSerializableExtra("settings"));
                                    this.b.a(new com.sophos.smsec.plugin.scanner.threading.v(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority.TRIGGERED_SCAN, new com.sophos.smsec.plugin.scanner.scan.ScanSettings(this.getApplicationContext(), v6_15.getScanSystemApps().booleanValue(), v6_15.getScanSdCard().booleanValue()), new com.sophos.smsec.plugin.scanner.service.l(this.getApplicationContext())));
                                }
                            }
                        } else {
                            try {
                                com.sophos.smsec.plugin.scanner.b.a.a().c(this, System.currentTimeMillis());
                                this.b.a(new com.sophos.smsec.plugin.scanner.threading.v(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority.SCHEDULED_SCAN, new com.sophos.smsec.plugin.scanner.scan.ScanSettings(this.getApplicationContext()), new com.sophos.smsec.plugin.scanner.service.i(this.getApplicationContext())));
                            } catch (boolean v6_22) {
                                com.sophos.smsec.core.smsectrace.d.c("ScService", "Error submitting sub task.", v6_22);
                            }
                        }
                    } else {
                        String v8_25;
                        String v8_23 = p6.getData();
                        if ((v8_23 == null) || (!"content".equals(v8_23.getScheme()))) {
                            if ((v8_23 == null) || (!"file".equals(v8_23.getScheme()))) {
                                try {
                                    v8_25 = android.net.Uri.decode(v8_23.toString());
                                } catch (boolean v6_23) {
                                    com.sophos.smsec.core.smsectrace.d.c("ScService", "Parsing filepath failed", v6_23);
                                    return 1;
                                }
                                if (!new java.io.File(v8_25).exists()) {
                                    v8_25 = android.net.Uri.decode(p6.getDataString());
                                    if (!new java.io.File(v8_25).exists()) {
                                        v8_25 = p6.getDataString();
                                    }
                                }
                            } else {
                                v8_25 = v8_23.getEncodedPath();
                            }
                        } else {
                            v8_25 = com.sophos.smsec.core.smsectrace.SendTraceMail.a(this, v8_23, p6.getType(), 0).getAbsolutePath();
                        }
                        try {
                            boolean v0_20 = p6.getBooleanExtra("com.sophos.smsec.plugin.scanner.INSTALL_AFTER_SCAN", 0);
                        } catch (boolean v6_26) {
                            int v1_30 = new StringBuilder();
                            v1_30.append("Starting On-View scan for package ");
                            v1_30.append(v8_25);
                            v1_30.append(" failed.");
                            com.sophos.smsec.core.smsectrace.d.c("ScService", v1_30.toString(), v6_26);
                        }
                        if (!v0_20) {
                            if (com.sophos.smsec.plugin.scanner.service.g.c(p6)) {
                                boolean v0_22 = new StringBuilder();
                                v0_22.append("Skipped On-View scan for package ");
                                v0_22.append(v8_25);
                                v0_22.append(".");
                                com.sophos.smsec.core.smsectrace.d.b("ScService", v0_22.toString());
                                return 1;
                            }
                        } else {
                            com.sophos.smsec.plugin.scanner.service.g.b(p6);
                        }
                        this.b.a(new com.sophos.smsec.plugin.scanner.threading.z(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority.ON_VIEW_SCAN, v8_25, new com.sophos.smsec.plugin.scanner.service.g(this.getApplicationContext(), v0_20)));
                        boolean v0_28 = new StringBuilder();
                        v0_28.append("Started On-View scan for package ");
                        v0_28.append(v8_25);
                        com.sophos.smsec.core.smsectrace.d.e("ScService", v0_28.toString());
                    }
                } else {
                    this.b.a(new com.sophos.smsec.plugin.scanner.threading.x(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor$TaskPriority.ON_INSTALL_SCAN, p6.getData().getLastPathSegment(), new com.sophos.smsec.plugin.scanner.service.f(this.getApplicationContext())));
                }
            } else {
                this.b.a(new com.sophos.smsec.plugin.scanner.threading.g(new com.sophos.smsec.plugin.scanner.service.c(this.getApplicationContext())));
            }
        }
        return 1;
    }

Method com.sophos.smsec.plugin.scanner.quarantine.QuarantineFileObserverService.e() calling method java.io.File.<init>()


    private declared_synchronized void e()
    {
        try {
            Throwable v0_3 = this.a.entrySet().iterator();
        } catch (Throwable v0_2) {
            throw v0_2;
        }
        while (v0_3.hasNext()) {
            String v1_1 = ((java.util.Map$Entry) v0_3.next());
            if ((!new java.io.File(((String) v1_1.getKey())).exists()) && (v1_1.getValue() != null)) {
                this.a(((String) v1_1.getKey()));
            }
        }
        return;
    }

Method com.sophos.smsec.core.updateengine.reader.l.d() calling method java.io.File.<init>()


    protected java.io.File d()
    {
        java.io.File v0_6 = this.f().getDir("sdds", 0);
        String v1_3 = new StringBuilder();
        v1_3.append(v0_6.getAbsolutePath());
        v1_3.append(java.io.File.separator);
        v1_3.append(this.l());
        v1_3.append(".xml");
        return new java.io.File(v1_3.toString());
    }

Method com.sophos.smsec.core.updateengine.reader.g.d() calling method java.io.File.<init>()


    protected java.io.File d()
    {
        return new java.io.File(this.a, ((com.sophos.smsec.core.updateengine.reader.f) this.k()).b());
    }

Method com.sophos.smsec.core.updateengine.reader.g.c() calling method java.io.File.<init>()


    protected final java.io.File c()
    {
        String v0_1 = new StringBuilder();
        v0_1.append(this.b);
        v0_1.append(((com.sophos.smsec.core.updateengine.reader.f) this.k()).a());
        java.io.File v1_1 = new java.io.File(v0_1.toString());
        if ((!v1_1.exists()) && (!v1_1.mkdir())) {
            String v2_1 = new StringBuilder();
            v2_1.append("Cannot create directory ");
            v2_1.append(v1_1.getAbsoluteFile());
            com.sophos.smsec.core.smsectrace.d.d("UpdateEngine", v2_1.toString());
        }
        return v1_1;
    }

Method com.sophos.smsec.core.updateengine.reader.g.m() calling method java.io.File.<init>()


    private int m()
    {
        int v0_1 = new StringBuilder();
        v0_1.append(this.c);
        v0_1.append(((com.sophos.smsec.core.updateengine.reader.f) this.k()).a());
        int v0_4 = new java.io.File(new java.io.File(v0_1.toString()), ((com.sophos.smsec.core.updateengine.reader.f) this.k()).b());
        if (!v0_4.exists()) {
            return 0;
        } else {
            return com.sophos.smsec.a.a.a(v0_4, this.g());
        }
    }

Method com.sophos.smsec.core.updateengine.c.a() calling method java.io.File.<init>()


    public int a()
    {
        return new com.sophos.smsec.core.updateengine.b(this.d()).a(new java.io.File(this.e()));
    }

Method com.sophos.smsec.core.updateengine.c.g() calling method java.io.File.<init>()


    private static boolean g()
    {
        com.sophos.smsec.core.smsectrace.d.e("UpdateEngine", "getAltCredentials");
        Throwable v0_3 = new java.io.File(android.os.Environment.getExternalStorageDirectory().getAbsolutePath(), "altdata.sec");
        if (v0_3.exists()) {
            try {
                Throwable v1_3 = new java.io.BufferedReader(new java.io.FileReader(v0_3));
                Throwable v0_1 = 0;
                try {
                    String v3_2 = v1_3.readLine();
                } catch (String v3_7) {
                    if (v0_1 == null) {
                        v1_3.close();
                    } else {
                        try {
                            v1_3.close();
                        } catch (Throwable v1_5) {
                            v0_1.addSuppressed(v1_5);
                        }
                    }
                    throw v3_7;
                } catch (Throwable v0_1) {
                    throw v0_1;
                }
                if (v3_2 != null) {
                    String v3_3 = v3_2.split(";");
                    if ((v3_3 == null) || (v3_3.length != 2)) {
                        if ((v3_3 != null) && (v3_3.length == 1)) {
                            com.sophos.smsec.core.updateengine.c.e = v3_3[0];
                            com.sophos.smsec.core.updateengine.c.d = "54m5ung";
                            v1_3.close();
                            return 1;
                        }
                    } else {
                        com.sophos.smsec.core.updateengine.c.e = v3_3[0];
                        com.sophos.smsec.core.updateengine.c.d = v3_3[1];
                        v1_3.close();
                        return 1;
                    }
                }
                v1_3.close();
            } catch (java.io.IOException) {
                return 0;
            }
        }
        return 0;
    }

Method com.sophos.smsec.core.updateengine.c.a() calling method java.io.File.<init>()


    private static boolean a(android.content.Context p12, ark>com.sophos.smsec.core.updateengine.cark> p13, java.io.File p14)
    {
        com.sophos.smsec.core.updateengine.schedule.a.a(p12);
        String v1_0 = 0;
        try {
            int v2_0;
            int v2_3 = ((android.os.PowerManager) p12.getSystemService("power"));
            try {
                if (v2_3 == 0) {
                    v2_0 = 0;
                } else {
                    v2_0 = v2_3.newWakeLock(1, "smsec:updateEngine");
                    if (v2_0 != 0) {
                        v2_0.acquire(600000);
                    }
                }
            } catch (Throwable v12_4) {
                if (v2_0 != 0) {
                    try {
                        v2_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                }
                throw v12_4;
            } catch (Throwable v12_1) {
                v1_0 = v2_0;
                com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", "VDL update: UpdateEngineException", v12_1);
                if (v1_0 == null) {
                    return 0;
                } else {
                    try {
                        v1_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                    return 0;
                }
                String v14_11 = new StringBuilder();
                v14_11.append("VDL update: number of files updated ");
                v14_11.append(int v4_3);
                com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", v14_11.toString());
                com.sophos.smsec.core.alertmanager.a.b(p12);
                com.sophos.smsec.core.smsecresources.ui.NotificationHelper.b(p12, new com.sophos.smsec.core.alertmanager.notifications.AlertNotification(p12, com.sophos.smsec.core.updateengine.a.b.c(p12)));
                android.support.v4.content.LocalBroadcastManager.getInstance(p12).sendBroadcast(new android.content.Intent("com.sophos.smsec.vdlupdate.finished"));
                if (v2_0 != 0) {
                    try {
                        v2_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                }
                return 1;
            } catch (Throwable v12_3) {
                v1_0 = v2_0;
                com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", "VDL update: StrangeException", v12_3);
                if (v1_0 == null) {
                    return 0;
                } else {
                }
            }
            p13.a();
            v4_3 = p13.a("SMSEC", "", "RECOMMENDED");
            if (v4_3 > 0) {
                ark>com.sophos.smsec.core.updateengine.cark>.b(p12);
                if (p13.c().contains("smsec.properties")) {
                    int v5_5 = new java.io.File(p14, "smsec.properties");
                    if (v5_5.exists()) {
                        try {
                            com.sophos.smsec.core.updateengine.notification.b.a(p12, v5_5);
                            com.sophos.smsec.core.updateengine.notification.b.b(p12);
                        } catch (int v5_6) {
                            com.sophos.smsec.core.smsectrace.d.c("updateNotificationData failed", v5_6);
                        }
                    }
                }
                if (p13.c().contains("networkProtection.json")) {
                    java.io.IOException v13_18 = new java.io.File(p14, "networkProtection.json");
                    if (v13_18.exists()) {
                        String v14_17 = p12.getDir("networksec", 0);
                        if (!v14_17.exists()) {
                            v14_17.mkdir();
                        }
                        try {
                            int v5_11 = new java.io.FileInputStream(v13_18);
                            try {
                                java.nio.channels.FileChannel v6_7 = new StringBuilder();
                                v6_7.append(v14_17);
                                v6_7.append(java.io.File.separator);
                                v6_7.append("networkProtection.json");
                                java.io.IOException v13_19 = new java.io.FileOutputStream(v6_7.toString());
                                try {
                                    java.nio.channels.FileChannel v6_8 = v5_11.getChannel();
                                    v6_8.transferTo(0, v6_8.size(), v13_19.getChannel());
                                    try {
                                        v5_11.close();
                                        try {
                                            v13_19.close();
                                        } catch (java.io.IOException v13_1) {
                                            String v14_1 = "UpdateEngine";
                                            com.sophos.smsec.core.smsectrace.d.c(v14_1, v13_1);
                                        }
                                    } catch (String v14_4) {
                                        com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_4);
                                    }
                                } catch (Throwable v12_2) {
                                    v1_0 = v13_19;
                                    if (v5_11 != 0) {
                                        try {
                                            v5_11.close();
                                        } catch (java.io.IOException v13_2) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v13_2);
                                        }
                                    }
                                    if (v1_0 != null) {
                                        try {
                                            v1_0.close();
                                        } catch (java.io.IOException v13_3) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v13_3);
                                        }
                                    }
                                    throw v12_2;
                                } catch (String v14_18) {
                                    v1_0 = v5_11;
                                    try {
                                        com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_18);
                                    } catch (Throwable v12_2) {
                                        v5_11 = v1_0;
                                    }
                                    if (v1_0 != null) {
                                        try {
                                            v1_0.close();
                                        } catch (String v14_22) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_22);
                                        }
                                    }
                                    if (v13_19 != null) {
                                        try {
                                            v13_19.close();
                                        } catch (java.io.IOException v13_1) {
                                            v14_1 = "UpdateEngine";
                                        }
                                    }
                                }
                            } catch (Throwable v12_2) {
                            } catch (String v14_18) {
                                v13_19 = 0;
                            }
                        } catch (Throwable v12_2) {
                            v5_11 = 0;
                        } catch (String v14_18) {
                            v13_19 = 0;
                        }
                    }
                }
                String v14_5 = p12.getResources();
                int v5_0 = new Object[1];
                v5_0[0] = com.sophos.smsec.core.sav.SavEngine.getReadableEngineVersion(p12);
                com.sophos.smsec.core.datastore.log.SMSecLog.a(com.sophos.smsec.core.datastore.log.SMSecLog$LogType.LOGTYPE_SCANNER, v14_5.getString(com.sophos.smsec.core.updateengine.a$b.log_entry_vdl_update_done, v5_0));
            }
        } catch (Throwable v12_4) {
            v2_0 = v1_0;
        } catch (Throwable v12_3) {
        }
    }

Method com.sophos.smsec.cloud.d.g() calling method java.io.File.<init>()


    public java.io.File g()
    {
        return new java.io.File(this.a.getFilesDir(), "temp");
    }

Method com.sophos.smsec.cloud.d.f() calling method java.io.File.<init>()


    public java.io.File f()
    {
        return new java.io.File(this.a.getFilesDir(), "sync");
    }

Method com.sophos.smsec.cloud.d.a() calling method java.io.File.<init>()


    public java.io.File a()
    {
        return new java.io.File(this.f(), "Command/Result.xml");
    }

Method com.sophos.smsec.cloud.commands.c.a() calling method java.io.File.<init>()


    public void a(int p5)
    {
        com.sophos.smsec.cloud.activation.b.a(this.getContext()).sendMarkDecommission();
        com.google.android.c2dm.a.a(this.getContext());
        if (android.os.Build$VERSION.SDK_INT < 23) {
            com.sophos.cloud.core.communication.baidu.a.a(this.getContext());
        }
        com.sophos.smsec.cloud.c.k.removeSendResultPostProcessor(this);
        String v5_3 = new java.io.File[2];
        int v1 = 0;
        v5_3[0] = com.sophos.smsec.cloud.d.a(this.getContext()).f();
        v5_3[1] = new java.io.File(this.getContext().getFilesDir(), "Profile");
        String v0_5 = v5_3.length;
        while (v1 < v0_5) {
            com.sophos.cloud.core.c.q.b(v5_3[v1].getAbsoluteFile());
            v1++;
        }
        String v5_6 = new com.sophos.mobile.msgbox.a(this.getContext());
        v5_6.b();
        v5_6.close();
        if (!com.sophos.jsceplib.d.a(this.getContext())) {
            com.sophos.smsec.core.smsectrace.d.b("DECOM", "Cannot delete key store.");
        }
        this.a();
        com.sophos.smsec.cloud.CloudEngine.a(this.getContext()).d();
        com.sophos.smsec.core.alertmanager.a.d(this.getContext(), com.sophos.smsec.core.alertmanager.EAlertItemDb.COMPLIANCE_VIOLATION);
        this.c();
        try {
            com.google.firebase.iid.FirebaseInstanceId.getInstance().deleteInstanceId();
        } catch (java.io.IOException) {
            com.sophos.smsec.core.smsectrace.d.c("DECOM", "could not delete firebase IID");
        }
        return;
    }

Method com.sophos.smsec.cloud.commands.c.b() calling method java.io.File.<init>()


    private void b()
    {
        java.io.File[] v0_2 = new java.io.File(this.getContext().getFilesDir(), "Profile");
        if (v0_2.exists()) {
            java.io.File[] v0_1 = v0_2.listFiles(new com.sophos.smsec.cloud.commands.c$1(this));
            java.util.regex.Pattern v1_3 = java.util.regex.Pattern.compile(".*profile\\_(.*)\\.xml");
            int v2_0 = v0_1.length;
            int v3 = 0;
            while (v3 < v2_0) {
                String v4_0 = v0_1[v3];
                com.sophos.mobilecontrol.client.android.command.definition.CommandParameter v6_1 = new StringBuilder();
                v6_1.append("Found file: ");
                v6_1.append(v4_0.getName());
                com.sophos.smsec.core.smsectrace.d.e("DECOM", v6_1.toString());
                String v4_2 = v1_3.matcher(v4_0.getName());
                try {
                    if (!v4_2.matches()) {
                        com.sophos.smsec.core.smsectrace.d.e("DECOM", "File is not a saved profile");
                    } else {
                        String v4_4 = v4_2.group(1);
                        com.sophos.mobilecontrol.client.android.command.definition.CommandParameter v6_4 = new StringBuilder();
                        v6_4.append("recogniced uuid: ");
                        v6_4.append(v4_4);
                        v6_4.append("adding remove command");
                        com.sophos.smsec.core.smsectrace.d.e("DECOM", v6_4.toString());
                        String v5_6 = new com.sophos.mobilecontrol.client.android.command.definition.CommandRest("removeConfigProfile");
                        v5_6.addParameter(new com.sophos.mobilecontrol.client.android.command.definition.CommandParameter("uuid", v4_4));
                        com.sophos.smsec.cloud.commands.b.b(this.getContext(), v5_6);
                    }
                    v3++;
                } catch (Exception) {
                    com.sophos.smsec.core.smsectrace.d.e("DECOM", "File is not a saved profile");
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.sophos.smsec.cloud.c.l.u() calling method java.io.File.<init>()


    public java.io.File u()
    {
        java.io.File v0_1 = new java.io.File(this.a.getFilesDir(), "sync_data");
        if (!v0_1.exists()) {
            v0_1.mkdirs();
        }
        return new java.io.File(v0_1, "serverinfo.xml");
    }

Method com.sophos.smsec.cloud.c.l.t() calling method java.io.File.<init>()


    public java.io.File t()
    {
        java.io.File v0_1 = new java.io.File(this.a.getFilesDir(), "sync_data");
        if (!v0_1.exists()) {
            v0_1.mkdirs();
        }
        return new java.io.File(v0_1, "complianceviolations.xml");
    }

Method com.sophos.smsec.cloud.c.l.getTempDirectory() calling method java.io.File.<init>()


    public java.io.File getTempDirectory()
    {
        return new java.io.File(this.a.getFilesDir(), "temp");
    }

Method com.sophos.smsec.cloud.c.l.getSyncDataDirectory() calling method java.io.File.<init>()


    public java.io.File getSyncDataDirectory()
    {
        return new java.io.File(this.g(), "Data");
    }

Method com.sophos.smsec.cloud.c.l.g() calling method java.io.File.<init>()


    public java.io.File g()
    {
        return new java.io.File(this.a.getFilesDir(), "sync");
    }

Method com.sophos.smsec.cloud.b.a.doExecute() calling method java.io.File.<init>()


    public int doExecute()
    {
        int v0_8 = this.getCommand().getParameter("file");
        if ((v0_8 != 0) && ((v0_8.getValue() != null) && (v0_8.getValue().length() != 0))) {
            java.io.File v1_4 = new java.io.File(com.sophos.smsec.cloud.d.a(this.getContext()).g(), org.apache.commons.io.FilenameUtils.getName(v0_8.getValue()));
            if (!v1_4.exists()) {
                this.finish(-1);
                return -1;
            } else {
                this.a(v1_4);
                return 0;
            }
        } else {
            com.sophos.smsec.core.smsectrace.d.c("PROFILE", "mandatory parameter \'file\' is not set, aborting command execution with error ");
            this.finish(-6);
            return -6;
        }
    }

Method com.sophos.smsec.cloud.b.a.b() calling method java.io.File.<init>()


    void b(java.io.File p4)
    {
        com.sophos.smsec.core.smsectrace.d.e("PROFILE", "Writing result file");
        java.io.File v0_2 = new java.io.File(this.getContext().getFilesDir(), "Profile");
        v0_2.mkdirs();
        com.sophos.smsec.a.a.a(p4, new java.io.File(v0_2, "scannerconfig.jsn"));
        return;
    }

Method com.microsoft.identity.common.adal.internal.cache.StorageHelper.writeKeyData() calling method java.io.File.<init>()


    private void writeKeyData(byte[] p5)
    {
        android.util.Log.v("StorageHelper", "Writing key data to a file");
        java.io.FileOutputStream v1_3 = this.mContext;
        java.io.FileOutputStream v1_2 = new java.io.FileOutputStream(new java.io.File(v1_3.getDir(v1_3.getPackageName(), 0), "adalks"));
        try {
            v1_2.write(p5);
            v1_2.close();
            return;
        } catch (Throwable v5_1) {
            v1_2.close();
            throw v5_1;
        }
    }

Method com.microsoft.identity.common.adal.internal.cache.StorageHelper.readKeyData() calling method java.io.File.<init>()


    private byte[] readKeyData()
    {
        String v1_0 = this.mContext;
        byte[] v0_7 = new java.io.File(v1_0.getDir(v1_0.getPackageName(), 0), "adalks");
        if (!v0_7.exists()) {
            throw new java.io.IOException("Key file to read does not exist");
        } else {
            android.util.Log.v("StorageHelper", "Reading key data from a file");
            String v1_5 = new java.io.FileInputStream(v0_7);
            try {
                byte[] v0_4 = new java.io.ByteArrayOutputStream();
                byte[] v2_2 = new byte[1024];
            } catch (byte[] v0_6) {
                v1_5.close();
                throw v0_6;
            }
            while(true) {
                int v4 = v1_5.read(v2_2);
                if (v4 == -1) {
                    break;
                }
                v0_4.write(v2_2, 0, v4);
            }
            byte[] v0_5 = v0_4.toByteArray();
            v1_5.close();
            return v0_5;
        }
    }

Method com.microsoft.identity.common.adal.internal.cache.StorageHelper.deleteKeyFile() calling method java.io.File.<init>()


    private void deleteKeyFile()
    {
        String v1_0 = this.mContext;
        String v0_3 = new java.io.File(v1_0.getDir(v1_0.getPackageName(), 0), "adalks");
        if (v0_3.exists()) {
            android.util.Log.v("StorageHelper", "Delete KeyFile");
            if (!v0_3.delete()) {
                android.util.Log.v("StorageHelper", "Delete KeyFile failed");
            }
        }
        return;
    }

Method com.microsoft.aad.adal.FileTokenCacheStore.<init>() calling method java.io.File.<init>()


    public FileTokenCacheStore(android.content.Context p4, String p5)
    {
        this.mCacheLock = new Object();
        if (p4 == null) {
            throw new IllegalArgumentException("context");
        } else {
            if (com.microsoft.identity.common.adal.internal.util.StringExtensions.isNullOrBlank(p5)) {
                throw new IllegalArgumentException("fileName");
            } else {
                com.microsoft.aad.adal.MemoryTokenCacheStore v4_3 = p4.getDir(p4.getPackageName(), 0);
                if (v4_3 == null) {
                    throw new IllegalStateException("It could not access the Authorization cache directory");
                } else {
                    try {
                        this.mFile = new java.io.File(v4_3, p5);
                    } catch (com.microsoft.aad.adal.MemoryTokenCacheStore v4_26) {
                        String v5_17 = new StringBuilder();
                        v5_17.append(com.microsoft.aad.adal.FileTokenCacheStore.TAG);
                        v5_17.append(":FileTokenCacheStore");
                        com.microsoft.aad.adal.Logger.e(v5_17.toString(), "Exception during cache load. ", com.microsoft.aad.adal.ExceptionExtensions.getExceptionMessage(v4_26), com.microsoft.aad.adal.ADALError.DEVICE_FILE_CACHE_IS_NOT_LOADED_FROM_FILE);
                        throw new IllegalStateException(v4_26);
                    }
                    if (!this.mFile.exists()) {
                        com.microsoft.aad.adal.MemoryTokenCacheStore v4_9 = new StringBuilder();
                        v4_9.append(com.microsoft.aad.adal.FileTokenCacheStore.TAG);
                        v4_9.append(":FileTokenCacheStore");
                        com.microsoft.aad.adal.Logger.v(v4_9.toString(), "There is not any previous cache file to load cache. ");
                        this.mInMemoryCache = new com.microsoft.aad.adal.MemoryTokenCacheStore();
                    } else {
                        com.microsoft.aad.adal.MemoryTokenCacheStore v4_14 = new StringBuilder();
                        v4_14.append(com.microsoft.aad.adal.FileTokenCacheStore.TAG);
                        v4_14.append(":FileTokenCacheStore");
                        com.microsoft.aad.adal.Logger.v(v4_14.toString(), "There is previous cache file to load cache. ");
                        com.microsoft.aad.adal.MemoryTokenCacheStore v4_18 = new java.io.FileInputStream(this.mFile);
                        String v5_12 = new java.io.ObjectInputStream(v4_18);
                        String v0_6 = v5_12.readObject();
                        v4_18.close();
                        v5_12.close();
                        if (!(v0_6 instanceof com.microsoft.aad.adal.MemoryTokenCacheStore)) {
                            com.microsoft.aad.adal.MemoryTokenCacheStore v4_21 = new StringBuilder();
                            v4_21.append(com.microsoft.aad.adal.FileTokenCacheStore.TAG);
                            v4_21.append(":FileTokenCacheStore");
                            com.microsoft.aad.adal.Logger.w(v4_21.toString(), "Existing cache format is wrong. ", "", com.microsoft.aad.adal.ADALError.DEVICE_FILE_CACHE_FORMAT_IS_WRONG);
                            this.mInMemoryCache = new com.microsoft.aad.adal.MemoryTokenCacheStore();
                        } else {
                            this.mInMemoryCache = ((com.microsoft.aad.adal.MemoryTokenCacheStore) v0_6);
                        }
                    }
                    return;
                }
            }
        }
    }

Method org.spongycastle.openpgp.examples.SignedFileProcessor.signFile() calling method java.io.File.<init>()


    private static void signFile(String p4, java.io.InputStream p5, java.io.OutputStream p6, char[] p7, boolean p8)
    {
        if (p8) {
            p6 = new org.spongycastle.bcpg.ArmoredOutputStream(p6);
        }
        org.spongycastle.openpgp.PGPCompressedDataGenerator v5_8 = org.spongycastle.openpgp.examples.PGPExampleUtil.readSecretKey(p5);
        org.spongycastle.bcpg.BCPGOutputStream v7_2 = v5_8.extractPrivateKey(new org.spongycastle.openpgp.operator.jcajce.JcePBESecretKeyDecryptorBuilder().setProvider("SC").build(p7));
        org.spongycastle.openpgp.PGPSignatureGenerator v0_4 = new org.spongycastle.openpgp.PGPSignatureGenerator(new org.spongycastle.openpgp.operator.jcajce.JcaPGPContentSignerBuilder(v5_8.getPublicKey().getAlgorithm(), 2).setProvider("SC"));
        v0_4.init(0, v7_2);
        org.spongycastle.openpgp.PGPCompressedDataGenerator v5_2 = v5_8.getPublicKey().getUserIDs();
        if (v5_2.hasNext()) {
            org.spongycastle.bcpg.BCPGOutputStream v7_5 = new org.spongycastle.openpgp.PGPSignatureSubpacketGenerator();
            v7_5.setSignerUserID(0, ((String) v5_2.next()));
            v0_4.setHashedSubpackets(v7_5.generate());
        }
        org.spongycastle.openpgp.PGPCompressedDataGenerator v5_7 = new org.spongycastle.openpgp.PGPCompressedDataGenerator(2);
        org.spongycastle.bcpg.BCPGOutputStream v7_7 = new org.spongycastle.bcpg.BCPGOutputStream(v5_7.open(p6));
        v0_4.generateOnePassVersion(0).encode(v7_7);
        byte v1_6 = new java.io.File(p4);
        org.spongycastle.openpgp.PGPSignature v4_2 = new org.spongycastle.openpgp.PGPLiteralDataGenerator();
        java.io.OutputStream v2_5 = v4_2.open(v7_7, 98, v1_6);
        java.io.FileInputStream v3_2 = new java.io.FileInputStream(v1_6);
        while(true) {
            byte v1_7 = v3_2.read();
            if (v1_7 < 0) {
                break;
            }
            v2_5.write(v1_7);
            v0_4.update(((byte) v1_7));
        }
        v4_2.close();
        v0_4.generate().encode(v7_7);
        v5_7.close();
        if (p8) {
            p6.close();
        }
        return;
    }

Method org.spongycastle.openpgp.examples.PGPExampleUtil.compressFile() calling method java.io.File.<init>()


    static byte[] compressFile(String p3, int p4)
    {
        java.io.ByteArrayOutputStream v0_1 = new java.io.ByteArrayOutputStream();
        org.spongycastle.openpgp.PGPCompressedDataGenerator v1_1 = new org.spongycastle.openpgp.PGPCompressedDataGenerator(p4);
        org.spongycastle.openpgp.PGPUtil.writeFileToLiteralData(v1_1.open(v0_1), 98, new java.io.File(p3));
        v1_1.close();
        return v0_1.toByteArray();
    }

Method org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.main() calling method java.io.File.<init>()


    public static void main(String[] p6)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (p6.length != 0) {
            int v0_8 = 0;
            if (!p6[0].equals("-e")) {
                if (!p6[0].equals("-d")) {
                    System.err.println("usage: KeyBasedLargeFileProcessor -d|-e [-a|ai] file [secretKeyFile passPhrase|pubKeyFile]");
                } else {
                    int v0_6 = p6[1];
                    String v1_1 = p6[2];
                    java.io.PrintStream v2_2 = p6[3].toCharArray();
                    java.io.PrintStream v3_2 = new StringBuilder();
                    v3_2.append(new java.io.File(p6[1]).getName());
                    v3_2.append(".out");
                    org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.decryptFile(v0_6, v1_1, v2_2, v3_2.toString());
                }
            } else {
                if ((!p6[1].equals("-a")) && ((!p6[1].equals("-ai")) && (!p6[1].equals("-ia")))) {
                    if (!p6[1].equals("-i")) {
                        String v1_12 = new StringBuilder();
                        v1_12.append(p6[1]);
                        v1_12.append(".bpg");
                        org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.encryptFile(v1_12.toString(), p6[1], p6[2], 0, 0);
                    } else {
                        String v1_15 = new StringBuilder();
                        v1_15.append(p6[2]);
                        v1_15.append(".bpg");
                        org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.encryptFile(v1_15.toString(), p6[2], p6[3], 0, 1);
                    }
                } else {
                    String v1_18 = new StringBuilder();
                    v1_18.append(p6[2]);
                    v1_18.append(".asc");
                    String v1_19 = v1_18.toString();
                    if (p6[1].indexOf(105) > 0) {
                        v0_8 = 1;
                    }
                    org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.encryptFile(v1_19, p6[2], p6[3], 1, v0_8);
                }
            }
            return;
        } else {
            System.err.println("usage: KeyBasedLargeFileProcessor -e|-d [-a|ai] file [secretKeyFile passPhrase|pubKeyFile]");
            return;
        }
    }

Method org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.encryptFile() calling method java.io.File.<init>()


    private static void encryptFile(java.io.OutputStream p4, String p5, org.spongycastle.openpgp.PGPPublicKey p6, boolean p7, boolean p8)
    {
        if (p7) {
            p4 = new org.spongycastle.bcpg.ArmoredOutputStream(p4);
        }
        try {
            org.spongycastle.openpgp.PGPCompressedDataGenerator v0_1 = new org.spongycastle.openpgp.PGPEncryptedDataGenerator(new org.spongycastle.openpgp.operator.jcajce.JcePGPDataEncryptorBuilder(3).setWithIntegrityPacket(p8).setSecureRandom(new java.security.SecureRandom()).setProvider("SC"));
            v0_1.addMethod(new org.spongycastle.openpgp.operator.jcajce.JcePublicKeyKeyEncryptionMethodGenerator(p6).setProvider("SC"));
            java.io.OutputStream v8_5 = new byte[65536];
            java.io.OutputStream v8_6 = v0_1.open(p4, v8_5);
            org.spongycastle.openpgp.PGPCompressedDataGenerator v0_4 = new org.spongycastle.openpgp.PGPCompressedDataGenerator(1);
            Exception v5_1 = new byte[65536];
            org.spongycastle.openpgp.PGPUtil.writeFileToLiteralData(v0_4.open(v8_6), 98, new java.io.File(p5), v5_1);
            v0_4.close();
            v8_6.close();
        } catch (Exception v4_1) {
            System.err.println(v4_1);
            if (v4_1.getUnderlyingException() == null) {
                return;
            } else {
                v4_1.getUnderlyingException().printStackTrace();
                return;
            }
        }
        if (!p7) {
            return;
        } else {
            p4.close();
            return;
        }
    }

Method org.spongycastle.openpgp.examples.KeyBasedFileProcessor.main() calling method java.io.File.<init>()


    public static void main(String[] p6)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (p6.length != 0) {
            int v0_8 = 0;
            if (!p6[0].equals("-e")) {
                if (!p6[0].equals("-d")) {
                    System.err.println("usage: KeyBasedFileProcessor -d|-e [-a|ai] file [secretKeyFile passPhrase|pubKeyFile]");
                } else {
                    int v0_6 = p6[1];
                    String v1_1 = p6[2];
                    java.io.PrintStream v2_2 = p6[3].toCharArray();
                    java.io.PrintStream v3_2 = new StringBuilder();
                    v3_2.append(new java.io.File(p6[1]).getName());
                    v3_2.append(".out");
                    org.spongycastle.openpgp.examples.KeyBasedFileProcessor.decryptFile(v0_6, v1_1, v2_2, v3_2.toString());
                }
            } else {
                if ((!p6[1].equals("-a")) && ((!p6[1].equals("-ai")) && (!p6[1].equals("-ia")))) {
                    if (!p6[1].equals("-i")) {
                        String v1_12 = new StringBuilder();
                        v1_12.append(p6[1]);
                        v1_12.append(".bpg");
                        org.spongycastle.openpgp.examples.KeyBasedFileProcessor.encryptFile(v1_12.toString(), p6[1], p6[2], 0, 0);
                    } else {
                        String v1_15 = new StringBuilder();
                        v1_15.append(p6[2]);
                        v1_15.append(".bpg");
                        org.spongycastle.openpgp.examples.KeyBasedFileProcessor.encryptFile(v1_15.toString(), p6[2], p6[3], 0, 1);
                    }
                } else {
                    String v1_18 = new StringBuilder();
                    v1_18.append(p6[2]);
                    v1_18.append(".asc");
                    String v1_19 = v1_18.toString();
                    if (p6[1].indexOf(105) > 0) {
                        v0_8 = 1;
                    }
                    org.spongycastle.openpgp.examples.KeyBasedFileProcessor.encryptFile(v1_19, p6[2], p6[3], 1, v0_8);
                }
            }
            return;
        } else {
            System.err.println("usage: KeyBasedFileProcessor -e|-d [-a|ai] file [secretKeyFile passPhrase|pubKeyFile]");
            return;
        }
    }

Method org.apache.commons.lang3.SystemUtils.getUserHome() calling method java.io.File.<init>()


    public static java.io.File getUserHome()
    {
        return new java.io.File(System.getProperty("user.home"));
    }

Method org.apache.commons.lang3.SystemUtils.getUserDir() calling method java.io.File.<init>()


    public static java.io.File getUserDir()
    {
        return new java.io.File(System.getProperty("user.dir"));
    }

Method org.apache.commons.lang3.SystemUtils.getJavaIoTmpDir() calling method java.io.File.<init>()


    public static java.io.File getJavaIoTmpDir()
    {
        return new java.io.File(System.getProperty("java.io.tmpdir"));
    }

Method org.apache.commons.lang3.SystemUtils.getJavaHome() calling method java.io.File.<init>()


    public static java.io.File getJavaHome()
    {
        return new java.io.File(System.getProperty("java.home"));
    }

Method org.apache.commons.io.output.LockableFileWriter.<init>() calling method java.io.File.<init>()


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

Method org.apache.commons.io.output.LockableFileWriter.<init>() calling method java.io.File.<init>()


    public LockableFileWriter(java.io.File p4, java.nio.charset.Charset p5, boolean p6, String p7)
    {
        java.io.Writer v4_3 = p4.getAbsoluteFile();
        if (v4_3.getParentFile() != null) {
            org.apache.commons.io.FileUtils.forceMkdir(v4_3.getParentFile());
        }
        if (v4_3.isDirectory()) {
            throw new java.io.IOException("File specified is a directory");
        } else {
            if (p7 == null) {
                p7 = System.getProperty("java.io.tmpdir");
            }
            java.io.File v0_2 = new java.io.File(p7);
            org.apache.commons.io.FileUtils.forceMkdir(v0_2);
            this.testLockDir(v0_2);
            String v1_1 = new StringBuilder();
            v1_1.append(v4_3.getName());
            v1_1.append(".lck");
            this.lockFile = new java.io.File(v0_2, v1_1.toString());
            this.createLock();
            this.out = this.initWriter(v4_3, p5, p6);
            return;
        }
    }

Method org.apache.commons.io.output.FileWriterWithEncoding.<init>() calling method java.io.File.<init>()


    public FileWriterWithEncoding(String p2, java.nio.charset.CharsetEncoder p3, boolean p4)
    {
        this(new java.io.File(p2), p3, p4);
        return;
    }

Method org.apache.commons.io.output.FileWriterWithEncoding.<init>() calling method java.io.File.<init>()


    public FileWriterWithEncoding(String p2, java.nio.charset.CharsetEncoder p3)
    {
        this(new java.io.File(p2), p3, 0);
        return;
    }

Method org.apache.commons.io.output.FileWriterWithEncoding.<init>() calling method java.io.File.<init>()


    public FileWriterWithEncoding(String p2, java.nio.charset.Charset p3, boolean p4)
    {
        this(new java.io.File(p2), p3, p4);
        return;
    }

Method org.apache.commons.io.output.FileWriterWithEncoding.<init>() calling method java.io.File.<init>()


    public FileWriterWithEncoding(String p2, java.nio.charset.Charset p3)
    {
        this(new java.io.File(p2), p3, 0);
        return;
    }

Method org.apache.commons.io.output.FileWriterWithEncoding.<init>() calling method java.io.File.<init>()


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

Method org.apache.commons.io.output.FileWriterWithEncoding.<init>() calling method java.io.File.<init>()


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

Method org.apache.commons.io.monitor.FileAlterationObserver.<init>() calling method java.io.File.<init>()


    public FileAlterationObserver(String p2, java.io.FileFilter p3, org.apache.commons.io.IOCase p4)
    {
        this(new java.io.File(p2), p3, p4);
        return;
    }

Method org.apache.commons.io.monitor.FileAlterationObserver.<init>() calling method java.io.File.<init>()


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

Method org.apache.commons.io.monitor.FileAlterationObserver.<init>() calling method java.io.File.<init>()


    public FileAlterationObserver(String p2)
    {
        this(new java.io.File(p2));
        return;
    }

Method org.apache.commons.io.FileUtils.toFile() calling method java.io.File.<init>()


    public static java.io.File toFile(java.net.URL p2)
    {
        if ((p2 != null) && ("file".equalsIgnoreCase(p2.getProtocol()))) {
            return new java.io.File(org.apache.commons.io.FileUtils.decodeUrl(p2.getFile().replace(47, java.io.File.separatorChar)));
        } else {
            return 0;
        }
    }

Method org.apache.commons.io.FileUtils.moveFileToDirectory() calling method java.io.File.<init>()


    public static void moveFileToDirectory(java.io.File p2, java.io.File p3, boolean p4)
    {
        if (p2 == null) {
            throw new NullPointerException("Source must not be null");
        } else {
            if (p3 == null) {
                throw new NullPointerException("Destination directory must not be null");
            } else {
                if ((!p3.exists()) && (p4 != null)) {
                    p3.mkdirs();
                }
                if (!p3.exists()) {
                    String v0_3 = new StringBuilder();
                    v0_3.append("Destination directory \'");
                    v0_3.append(p3);
                    v0_3.append("\' does not exist [createDestDir=");
                    v0_3.append(p4);
                    v0_3.append("]");
                    throw new java.io.FileNotFoundException(v0_3.toString());
                } else {
                    if (!p3.isDirectory()) {
                        StringBuilder v4_3 = new StringBuilder();
                        v4_3.append("Destination \'");
                        v4_3.append(p3);
                        v4_3.append("\' is not a directory");
                        throw new java.io.IOException(v4_3.toString());
                    } else {
                        org.apache.commons.io.FileUtils.moveFile(p2, new java.io.File(p3, p2.getName()));
                        return;
                    }
                }
            }
        }
    }

Method org.apache.commons.io.FileUtils.moveDirectoryToDirectory() calling method java.io.File.<init>()


    public static void moveDirectoryToDirectory(java.io.File p2, java.io.File p3, boolean p4)
    {
        if (p2 == null) {
            throw new NullPointerException("Source must not be null");
        } else {
            if (p3 == null) {
                throw new NullPointerException("Destination directory must not be null");
            } else {
                if ((!p3.exists()) && (p4 != null)) {
                    p3.mkdirs();
                }
                if (!p3.exists()) {
                    String v0_3 = new StringBuilder();
                    v0_3.append("Destination directory \'");
                    v0_3.append(p3);
                    v0_3.append("\' does not exist [createDestDir=");
                    v0_3.append(p4);
                    v0_3.append("]");
                    throw new java.io.FileNotFoundException(v0_3.toString());
                } else {
                    if (!p3.isDirectory()) {
                        StringBuilder v4_3 = new StringBuilder();
                        v4_3.append("Destination \'");
                        v4_3.append(p3);
                        v4_3.append("\' is not a directory");
                        throw new java.io.IOException(v4_3.toString());
                    } else {
                        org.apache.commons.io.FileUtils.moveDirectory(p2, new java.io.File(p3, p2.getName()));
                        return;
                    }
                }
            }
        }
    }

Method org.apache.commons.io.FileUtils.getUserDirectory() calling method java.io.File.<init>()


    public static java.io.File getUserDirectory()
    {
        return new java.io.File(org.apache.commons.io.FileUtils.getUserDirectoryPath());
    }

Method com.sophos.smsec.command.persist.a.b() calling method java.io.File.<init>()


    private void b(android.content.Context p5)
    {
        try {
            Throwable v1_1 = new java.util.ArrayList();
            v1_1.addAll(this.c);
            v1_1.addAll(this.a);
            try {
                Throwable v5_2 = new java.io.ObjectOutputStream(new java.io.FileOutputStream(new java.io.File(p5.getFilesDir(), "persistQueue")));
                Throwable v2_1 = 0;
                try {
                    v5_2.writeObject(v1_1);
                } catch (Throwable v1_2) {
                    if (v2_1 == null) {
                        v5_2.close();
                    } else {
                        try {
                            v5_2.close();
                        } catch (Throwable v5_3) {
                            v2_1.addSuppressed(v5_3);
                        }
                    }
                    throw v1_2;
                } catch (Throwable v2_1) {
                    throw v2_1;
                }
                v5_2.close();
                return;
            } catch (Throwable v5_4) {
                com.sophos.smsec.core.smsectrace.d.c("Persist", "could not persist command queue", v5_4);
                return;
            }
        } catch (Throwable v5_5) {
            throw v5_5;
        }
    }

Method com.sophos.smsec.cloud.b.c.a() calling method java.io.File.<init>()


    public com.sophos.smsec.cloud.b.b a(android.content.Context p3)
    {
        String v0_4 = new java.io.File(p3.getFilesDir(), "Profile");
        v0_4.mkdirs();
        try {
            this.a(ark>com.sophos.smsec.cloud.b.cark>.a(new String(com.sophos.cloud.core.c.q.a(new java.io.File(v0_4, "scannerconfig.jsn")), "UTF-8")));
        } catch (java.io.IOException) {
            com.sophos.smsec.core.smsectrace.d.b("SMSecCloud", "cannot read Scanner configuration");
        }
        return this.a;
    }

Method com.sophos.smsec.a.a.a() calling method java.io.File.<init>()


    private static void a(java.util.List p1, String p2)
    {
        ark>com.sophos.smsec.a.aark>.a(p1, new java.io.File(p2));
        return;
    }

Method com.sophos.smsec.a.a.a() calling method java.io.File.<init>()


    public static java.util.List a(android.content.Context p8)
    {
        String v0_1 = new java.util.ArrayList();
        v0_1.add(new java.io.File(ark>com.sophos.smsec.a.aark>.b));
        try {
            String v4_2 = new java.io.BufferedReader(new java.io.FileReader("/proc/mounts"));
        } catch (java.io.File[] v8_1) {
            v4_2 = 0;
            if (v4_2 != null) {
                try {
                    v4_2.close();
                } catch (java.io.IOException) {
                    com.sophos.smsec.core.smsectrace.d.d("FileUtils", "Cannot close \'/proc/mounts\'.");
                }
            }
            throw v8_1;
        } catch (java.io.IOException) {
            v4_2 = 0;
            com.sophos.smsec.core.smsectrace.d.d("FileUtils", "Error while parsing mount points.");
            if (v4_2 == null) {
                String v4_5 = System.getenv("EMULATED_STORAGE_TARGET");
                int v5_10 = ark>com.sophos.smsec.a.aark>.b.split(java.io.File.separator);
                int v3_1 = v5_10[(v5_10.length - 1)];
                try {
                    Integer.valueOf(v3_1);
                } catch (NumberFormatException) {
                    v3_1 = "";
                }
                int v5_12 = new StringBuilder();
                v5_12.append(v4_5);
                v5_12.append(java.io.File.separator);
                v5_12.append(v3_1);
                ark>com.sophos.smsec.a.aark>.a(v0_1, v5_12.toString());
                java.io.File[] v8_2 = p8.getExternalFilesDirs(0);
                int v1_4 = v8_2.length;
                int v3_0 = 0;
                while (v3_0 < v1_4) {
                    String v4_8 = v8_2[v3_0];
                    if (v4_8 != null) {
                        try {
                            String v4_0 = v4_8.getCanonicalPath();
                        } catch (java.io.IOException) {
                            v4_0 = v4_0.getPath();
                        }
                        ark>com.sophos.smsec.a.aark>.a(v0_1, v4_0.substring(0, v4_0.indexOf("/Android")));
                    }
                    v3_0++;
                }
                return v0_1;
            } else {
                try {
                    v4_2.close();
                } catch (java.io.IOException) {
                    com.sophos.smsec.core.smsectrace.d.d("FileUtils", "Cannot close \'/proc/mounts\'.");
                }
            }
        } catch (java.io.File[] v8_1) {
        }
        do {
            int v5_5 = v4_2.readLine();
            if (v5_5 == 0) {
            } else {
                if (((v5_5.startsWith("/dev/block/vold/")) || ((v5_5.startsWith("/dev/fuse")) || (v5_5.startsWith("/mnt/media_rw")))) && ((!v5_5.toLowerCase(java.util.Locale.US).contains("asec")) && (!v5_5.toLowerCase(java.util.Locale.US).contains("obb")))) {
                    int v5_6 = v5_5.split(" ");
                }
            }
        } while((v5_6.length < 5) || ((v5_6[0].startsWith("#")) || (!v5_6[1].startsWith("/"))));
        ark>com.sophos.smsec.a.aark>.a(v0_1, v5_6[1]);
    }

Method com.sophos.nge.utils.e.c() calling method java.io.File.<init>()


    private static long c(android.content.Context p9)
    {
        try {
            java.util.Iterator v9_2 = new java.util.ArrayList(3);
            v9_2.add("Android");
            v9_2.add(android.os.Environment.DIRECTORY_DOWNLOADS);
            v9_2.add(android.os.Environment.DIRECTORY_PICTURES);
            java.io.File v2_0 = android.os.Environment.getExternalStorageDirectory();
            java.util.Iterator v9_1 = v9_2.iterator();
            long v3 = 0;
            long v5 = 0;
        } catch (Exception) {
            return 0;
        }
        while (v9_1.hasNext()) {
            java.io.File v8_1 = new java.io.File(v2_0, ((String) v9_1.next()));
            if (v8_1.exists()) {
                v5 = v8_1.lastModified();
            }
            if ((v3 == 0) || ((v5 > 0) && (v5 < v3))) {
                v3 = v5;
            }
        }
        return v3;
    }

Method com.sophos.nge.utils.d.g() calling method java.io.File.<init>()


    private static String g(android.content.Context p3)
    {
        try {
            String v3_2;
            byte[] v0_5 = new java.io.File(p3.getDir("networksec", 0), "networkProtection.json");
        } catch (String v3_4) {
            com.sophos.smsec.core.smsectrace.d.d("NGEFirebase", v3_4);
            return "";
        }
        if (!v0_5.exists()) {
            v3_2 = p3.getAssets().open("networkProtection.json");
        } else {
            v3_2 = new java.io.BufferedInputStream(new java.io.FileInputStream(v0_5));
        }
        byte[] v0_4 = new byte[v3_2.available()];
        v3_2.read(v0_4);
        return new String(v0_4, "UTF-8");
    }

Method com.sophos.nge.ste.invincea.g.c() calling method java.io.File.<init>()


    public declared_synchronized void c(String p3)
    {
        try {
            new java.io.File(com.sophos.nge.ste.invincea.g.c(this.b), p3).delete();
            return;
        } catch (Throwable v3_1) {
            throw v3_1;
        }
    }

Method com.sophos.nge.ste.invincea.g.b() calling method java.io.File.<init>()


    public void b(String p3)
    {
        this.a(new java.io.File(com.sophos.nge.ste.invincea.g.c(this.b), p3));
        return;
    }

Method com.sophos.nge.ste.invincea.g.d() calling method java.io.File.<init>()


    private java.io.File d()
    {
        java.io.File v0_1 = new java.io.File(this.b.getFilesDir(), "tf_model");
        if (!v0_1.exists()) {
            v0_1.mkdir();
        }
        return new java.io.File(v0_1, "version.dat");
    }

Method com.sophos.nge.ste.invincea.g.c() calling method java.io.File.<init>()


    public static java.io.File c(android.content.Context p2)
    {
        java.io.File v0_1 = new java.io.File(p2.getFilesDir(), "tf_model");
        if (!v0_1.exists()) {
            v0_1.mkdir();
        }
        return v0_1;
    }

Method com.sophos.nge.ste.invincea.g.a() calling method java.io.File.<init>()


    static java.io.File a(android.content.Context p2, String p3)
    {
        java.io.File v0_1 = new java.io.File(p2.getFilesDir(), "tf_model");
        if (!v0_1.exists()) {
            v0_1.mkdir();
        }
        return new java.io.File(v0_1, p3);
    }

Method com.sophos.nge.ste.c.a.b() calling method java.io.File.<init>()


    private java.util.List b(android.content.Context p7)
    {
        String v0_7 = new java.io.File(p7.getFilesDir(), "AppData");
        if (!v0_7.exists()) {
            v0_7.mkdir();
        }
        java.io.IOException v7_1 = new java.io.File(v0_7, "AppDataFile.sdt");
        if (v7_1.exists()) {
            String v0_2 = 0;
            try {
                String v1_2 = new java.io.ObjectInputStream(new java.io.FileInputStream(v7_1));
                try {
                    java.util.ArrayList v2_2 = v1_2.readObject();
                } catch (String v0_3) {
                    boolean v3_3 = new StringBuilder();
                    v3_3.append("could not load file: ");
                    v3_3.append(v7_1);
                    com.sophos.smsec.core.smsectrace.d.b("nge_sta", v3_3.toString(), v0_3);
                    if (v1_2 != null) {
                        v1_2.close();
                    }
                }
                if ((v2_2 instanceof java.util.ArrayList)) {
                    v0_2 = ((java.util.ArrayList) v2_2).iterator();
                }
                if ((v0_2 == null) || ((!v0_2.hasNext()) || (!(v0_2.next() instanceof com.sophos.nge.utils.StoreData)))) {
                    v1_2.close();
                } else {
                    java.util.ArrayList v2_3 = ((java.util.ArrayList) v2_2);
                    try {
                        v1_2.close();
                    } catch (java.io.IOException v7_9) {
                        com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v7_9);
                    }
                    return v2_3;
                }
            } catch (java.io.IOException v7_3) {
                v1_2 = 0;
                if (v1_2 != null) {
                    try {
                        v1_2.close();
                    } catch (String v0_11) {
                        com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v0_11);
                    }
                }
                throw v7_3;
            } catch (String v1_3) {
                v1_2 = 0;
                v0_3 = v1_3;
            } catch (java.io.IOException v7_3) {
            } catch (java.io.IOException v7_5) {
                com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v7_5);
            }
        }
        return new java.util.ArrayList(0);
    }

Method com.sophos.nge.ste.c.a.b() calling method java.io.File.<init>()


    private static java.io.File b(android.content.Context p2, com.sophos.nge.utils.StoreData p3)
    {
        java.io.File v0_1 = new java.io.File(p2.getFilesDir(), "AppData");
        if (!v0_1.exists()) {
            v0_1.mkdir();
        }
        StringBuilder v1_1 = new StringBuilder();
        v1_1.append(org.apache.commons.io.FilenameUtils.getName(p3.appId));
        v1_1.append(".dat");
        return new java.io.File(v0_1, v1_1.toString());
    }

Method com.sophos.nge.ste.c.a.a() calling method java.io.File.<init>()


    private void a(android.content.Context p4, java.util.List p5)
    {
        String v0_4 = new java.io.File(p4.getFilesDir(), "AppData");
        if (!v0_4.exists()) {
            v0_4.mkdir();
        }
        String v0_1 = 0;
        try {
            String v1_2 = new java.io.ObjectOutputStream(new java.io.FileOutputStream(new java.io.File(v0_4, "AppDataFile.sdt")));
            try {
                v1_2.writeObject(p5);
            } catch (java.io.IOException v4_4) {
                v0_1 = v1_2;
                if (v0_1 != null) {
                    try {
                        v0_1.close();
                    } catch (java.io.IOException v5_2) {
                        com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v5_2);
                    }
                }
                throw v4_4;
            } catch (java.io.IOException v4_2) {
                v0_1 = v1_2;
                com.sophos.smsec.core.smsectrace.d.c("nge_sta", "could not persist command queue", v4_2);
                if (v0_1 == null) {
                    return;
                } else {
                    v0_1.close();
                    return;
                }
            }
            v1_2.close();
            return;
        } catch (java.io.IOException v4_4) {
        } catch (java.io.IOException v4_2) {
        } catch (java.io.IOException v4_5) {
            com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v4_5);
            return;
        }
    }

Method com.sophos.nge.ste.a.d.a() calling method java.io.File.<init>()


    private java.io.File a()
    {
        java.io.File v1_1 = new java.io.File(this.n.getFilesDir(), "temp");
        if (!v1_1.exists()) {
            v1_1.mkdir();
        }
        return new java.io.File(v1_1, "tempapk.zip");
    }

Method com.sophos.nge.networksec.arpdetection.a.a() calling method java.io.File.<init>()


    public void a()
    {
        this.e = 0;
        boolean v1_13 = android.text.format.Formatter.formatIpAddress(this.c.getDhcpInfo().gateway);
        int v2_2 = new java.io.BufferedReader(new java.io.FileReader(new java.io.File("/proc/net/arp")));
        String v3_1 = "";
        while(true) {
            String v4_2 = v2_2.readLine();
            if (v4_2 == null) {
                break;
            }
            if (!v4_2.startsWith("IP")) {
                String v4_3 = v4_2.split("[ ]+");
                java.util.ArrayList v5_4 = v4_3[0];
                String v4_4 = v4_3[3];
                if (v5_4.equals(v1_13)) {
                    v3_1 = v4_4;
                }
                if ((this.a.containsKey(v5_4)) || ((v4_4.equalsIgnoreCase("00:00:00:00:00:00")) || (v4_4.equalsIgnoreCase("FF:FF:FF:FF:FF:FF")))) {
                    if ((!v4_4.equalsIgnoreCase(((String) this.a.get(v5_4)))) && ((!v4_4.equalsIgnoreCase("00:00:00:00:00:00")) && (!v4_4.equalsIgnoreCase("FF:FF:FF:FF:FF:FF")))) {
                        if (v5_4.equalsIgnoreCase(v1_13)) {
                            this.e = 1;
                        }
                        java.util.Iterator v6_20 = this.a.keySet().iterator();
                        while (v6_20.hasNext()) {
                            v6_20.next();
                        }
                    }
                } else {
                    this.a.put(v5_4, v4_4);
                }
                java.util.Iterator v6_23 = new StringBuilder();
                v6_23.append("IP: ");
                v6_23.append(v5_4);
                v6_23.append("   MAC: ");
                v6_23.append(v4_4);
                String v4_5 = v6_23.toString();
                if (this.d.indexOf(v4_5) < 0) {
                    this.d.add(v4_5);
                }
            }
        }
        v2_2.close();
        if (!this.e) {
            java.util.Iterator v0_6 = this.a.values();
            if (v0_6.size() != new java.util.HashSet(v0_6).size()) {
                java.util.Iterator v0_1 = v0_6.iterator();
                while (v0_1.hasNext()) {
                    ((String) v0_1.next()).equals(v3_1);
                }
            }
        } else {
            java.util.Iterator v0_3 = new android.content.Intent(this.b, com.sophos.nge.networksec.NgeDynamicEngineService);
            v0_3.setAction("com.sophos.nge.action.UPDATE");
            v0_3.addCategory("com.sophos.nge.category.ARP_SPOOFED");
            this.b.startService(v0_3);
        }
        return;
    }

Method com.sophos.keepasseditor.ui.b.a.a() calling method java.io.File.<init>()


    public String a(String p5)
    {
        java.io.BufferedOutputStream v1_0 = 0;
        if (this.c == null) {
            this.c = this.a();
            if (this.c == null) {
                return 0;
            }
        }
        Throwable v5_3;
        new java.io.File(p5).mkdirs();
        if (!p5.endsWith(java.io.File.separator)) {
            java.io.BufferedOutputStream v0_4 = new StringBuilder();
            v0_4.append(p5);
            v0_4.append(java.io.File.separator);
            v0_4.append(this.d);
            v5_3 = v0_4.toString();
        } else {
            java.io.BufferedOutputStream v0_6 = new StringBuilder();
            v0_6.append(p5);
            v0_6.append(this.d);
            v5_3 = v0_6.toString();
        }
        try {
            java.io.BufferedOutputStream v0_8 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(new java.io.File(v5_3)));
            try {
                v0_8.write(this.c);
                v0_8.flush();
                v0_8.close();
                this.a(v0_8);
                return v5_3;
            } catch (Throwable v5_5) {
                v1_0 = v0_8;
                this.a(v1_0);
                throw v5_5;
            }
        } catch (Throwable v5_5) {
        }
        v0_8.write(this.c);
        v0_8.flush();
        v0_8.close();
        this.a(v0_8);
        return v5_3;
    }

Method com.sophos.keepasseditor.ui.b.a.a() calling method java.io.File.<init>()


    public String a(android.app.Activity p8, int p9)
    {
        String v0_1 = new StringBuilder();
        v0_1.append(p8.getCacheDir().getAbsolutePath());
        v0_1.append(ark>com.sophos.keepasseditor.ui.b.aark>.a);
        String v0_3 = this.a(v0_1.toString());
        try {
            com.sophos.keepasseditor.e.getAttachmentOperations().a(p8, com.sophos.smsdkex.providers.SmSdkFileProvider.getUriForFile(p8, com.sophos.smsdkex.providers.SmSdkFileProvider.a(), new java.io.File(v0_3)), this.d, v0_3, p9);
            return v0_3;
        } catch (IllegalArgumentException v8_1) {
            throw new java.io.IOException(v8_1);
        }
    }

Method com.sophos.keepasseditor.ui.b.a.a() calling method java.io.File.<init>()


    public static int a(android.content.Context p4)
    {
        int v1_2 = new StringBuilder();
        v1_2.append(p4.getCacheDir().getAbsolutePath());
        v1_2.append(ark>com.sophos.keepasseditor.ui.b.aark>.a);
        java.io.File[] v4_2 = new java.io.File(v1_2.toString()).listFiles();
        int v0_2 = 0;
        if (v4_2 != null) {
            int v2 = 0;
            while (v0_2 < v4_2.length) {
                if (v4_2[v0_2].delete()) {
                    v2++;
                }
                v0_2++;
            }
            return v2;
        } else {
            return 0;
        }
    }

Method com.sophos.keepasseditor.f.a() calling method java.io.File.<init>()


    public static void a(de.slackspace.openkeepass.domain.KeePassFile p3, String p4, byte[] p5, String p6)
    {
        String v1_5 = new StringBuilder();
        v1_5.append(p6);
        v1_5.append("~tmp~.kdbx");
        int v0_3 = new java.io.File(v1_5.toString());
        if (v0_3.exists()) {
            v0_3.delete();
        }
        String v1_3 = new StringBuilder();
        v1_3.append(p6);
        v1_3.append("~tmp~.kdbx");
        de.slackspace.openkeepass.a.a(p3, p4, p5, v1_3.toString());
        java.io.IOException v3_2 = new java.io.File(p6);
        v3_2.delete();
        if ((!v0_3.renameTo(v3_2)) || (v0_3.exists())) {
            com.sophos.smsec.core.smsectrace.d.e("Ops", "Can\'t rename temporary file.");
            String v4_4 = 0;
            try {
                String v5_3 = new java.io.FileInputStream(v0_3);
                try {
                    int v6_1 = new java.io.FileOutputStream(v3_2);
                    try {
                        java.io.IOException v3_6 = new byte[1024];
                        String v4_5 = v5_3.read(v3_6);
                    } catch (java.io.IOException v3_4) {
                        if (v5_3 != null) {
                            try {
                                v5_3.close();
                            } catch (String v4_9) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v4_9);
                            }
                        }
                        if (v6_1 != 0) {
                            try {
                                v6_1.close();
                            } catch (String v4_10) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v4_10);
                            }
                        }
                        throw v3_4;
                    } catch (java.io.IOException v3_3) {
                        v4_4 = v5_3;
                        try {
                            com.sophos.smsec.core.smsectrace.d.b("Ops", v3_3);
                        } catch (java.io.IOException v3_4) {
                            v5_3 = v4_4;
                        }
                        if (v4_4 != null) {
                            try {
                                v4_4.close();
                            } catch (java.io.IOException v3_8) {
                                com.sophos.smsec.core.smsectrace.d.b("Ops", v3_8);
                            }
                        }
                        if (v6_1 == 0) {
                            return;
                        } else {
                            v6_1.close();
                            return;
                        }
                        v4_5 = v5_3.read(v3_6);
                    }
                    while (v4_5 != -1) {
                        if (v4_5 > null) {
                            v6_1.write(v3_6, 0, v4_5);
                        }
                    }
                    try {
                        v5_3.close();
                    } catch (java.io.IOException v3_7) {
                        com.sophos.smsec.core.smsectrace.d.b("Ops", v3_7);
                    }
                    v6_1.close();
                } catch (java.io.IOException v3_4) {
                    v6_1 = 0;
                } catch (java.io.IOException v3_3) {
                    v6_1 = 0;
                }
            } catch (java.io.IOException v3_4) {
                v5_3 = 0;
                v6_1 = 0;
            } catch (java.io.IOException v3_3) {
                v6_1 = 0;
            } catch (java.io.IOException v3_9) {
                com.sophos.smsec.core.smsectrace.d.b("Ops", v3_9);
            }
        }
        return;
    }

Method com.sophos.keepasseditor.a.a() calling method java.io.File.<init>()


    protected varargs Exception a(Void[] p7)
    {
        try {
            de.slackspace.openkeepass.domain.KeePassFile v7_8;
            int v0 = 1;
        } catch (de.slackspace.openkeepass.domain.KeePassFile v7_6) {
            return v7_6;
        }
        if ((this.d == null) || (this.d.length <= 0)) {
            v7_8 = 0;
        } else {
            v7_8 = 1;
        }
        if ((this.c == null) || (this.c.isEmpty())) {
            v0 = 0;
        } else {
        }
        java.io.File v2_3 = new StringBuilder();
        v2_3.append(this.b.getAbsolutePath());
        v2_3.append("~tmp~.kdbx");
        java.io.File v1_1 = new java.io.File(v2_3.toString());
        if ((!v1_1.exists()) || (v1_1.lastModified() <= this.b.lastModified())) {
            this.f = this.a(v7_8, v0, this.b);
        } else {
            this.f = this.a(v7_8, v0, v1_1);
            if (this.f != null) {
                v1_1.delete();
            }
        }
        return 0;
    }

Method com.sophos.keepasseditor.a.<init>() calling method java.io.File.<init>()


    public a(android.content.Context p1, String p2, String p3, byte[] p4, com.sophos.keepasseditor.a$a p5)
    {
        this.a = p1;
        this.b = new java.io.File(p2);
        this.c = p3;
        this.d = p4;
        this.e = p5;
        return;
    }

Method com.sophos.jsceplib.d.b() calling method java.io.File.<init>()


    private java.security.PrivateKey b()
    {
        java.security.PrivateKey v0_0 = this.c();
        try {
            Throwable v1_6 = new java.io.FileInputStream(new java.io.File(this.c.getFilesDir(), "SCEP_request.jks"));
            Throwable v2_0 = 0;
            try {
                java.security.KeyStore v3_1 = java.security.KeyStore.getInstance(java.security.KeyStore.getDefaultType());
                v3_1.load(v1_6, v0_0.toCharArray());
                java.security.PrivateKey v0_3 = ((java.security.KeyStore$PrivateKeyEntry) v3_1.getEntry("SMCCertificatePK", new java.security.KeyStore$PasswordProtection(v0_0.toCharArray())));
            } catch (java.security.PrivateKey v0_6) {
                if (v2_0 == null) {
                    v1_6.close();
                } else {
                    try {
                        v1_6.close();
                    } catch (Throwable v1_1) {
                        v2_0.addSuppressed(v1_1);
                    }
                }
                throw v0_6;
            } catch (java.security.PrivateKey v0_5) {
                v2_0 = v0_5;
                throw v2_0;
            }
            if (v0_3 == null) {
                v1_6.close();
                return 0;
            } else {
                java.security.PrivateKey v0_4 = v0_3.getPrivateKey();
                v1_6.close();
                return v0_4;
            }
        } catch (java.security.PrivateKey v0_7) {
            throw new com.sophos.jsceplib.ScepException(v0_7);
        }
    }

Method com.sophos.jsceplib.d.a() calling method java.io.File.<init>()


    public static byte[] a(android.content.Context p3, String p4, String p5)
    {
        java.io.RandomAccessFile v3_3 = new java.io.RandomAccessFile(new java.io.File(p3.getFilesDir(), "SCEP_request.jks"), "r");
        try {
            java.io.IOException v4_7 = v3_3.length();
            int v0 = ((int) v4_7);
        } catch (java.io.IOException v4_3) {
            v3_3.close();
            throw v4_3;
        }
        if (((long) v0) != v4_7) {
            throw new java.io.IOException("File size >= 2 GB");
        } else {
            java.io.IOException v4_5 = new byte[v0];
            v3_3.readFully(v4_5);
            v3_3.close();
            return v4_5;
        }
    }

Method com.sophos.jsceplib.d.a() calling method java.io.File.<init>()


    public static boolean a(android.content.Context p2)
    {
        java.io.File v0_1 = new java.io.File(p2.getFilesDir(), "SCEP_request.jks");
        if (!v0_1.exists()) {
            return 1;
        } else {
            return v0_1.delete();
        }
    }

Method com.sophos.jsceplib.d.a() calling method java.io.File.<init>()


    private void a(java.security.cert.X509Certificate p8, java.security.PrivateKey p9)
    {
        String v0 = this.c();
        java.security.KeyStore$PasswordProtection v1_1 = new java.security.cert.Certificate[1];
        v1_1[0] = p8;
        java.io.File v3_0 = new java.io.File(this.c.getFilesDir(), "SCEP_request.jks");
        try {
            java.security.KeyStore v2_1 = java.security.KeyStore.getInstance(java.security.KeyStore.getDefaultType());
            Throwable v5 = 0;
        } catch (Throwable v8_6) {
            throw new com.sophos.jsceplib.ScepException(v8_6);
        }
        if (!v3_0.exists()) {
            v2_1.load(0);
        } else {
            java.security.KeyStore$PrivateKeyEntry v4_3 = new java.io.FileInputStream(v3_0);
            try {
                v2_1.load(v4_3, v0.toCharArray());
            } catch (Throwable v8_2) {
                if (v5 == null) {
                    v4_3.close();
                } else {
                    try {
                        v4_3.close();
                    } catch (Throwable v9_1) {
                        v5.addSuppressed(v9_1);
                    }
                }
                throw v8_2;
            } catch (Throwable v8_1) {
                v5 = v8_1;
                throw v5;
            }
            v4_3.close();
        }
        v2_1.setEntry("SMCCertificatePK", new java.security.KeyStore$PrivateKeyEntry(p9, v1_1), new java.security.KeyStore$PasswordProtection(v0.toCharArray()));
        v2_1.setCertificateEntry("SMCCertificate", p8);
        Throwable v8_4 = new java.io.FileOutputStream(v3_0);
        try {
            v2_1.store(v8_4, v0.toCharArray());
        } catch (Throwable v9_6) {
            if (v5 == null) {
                v8_4.close();
            } else {
                try {
                    v8_4.close();
                } catch (Throwable v8_5) {
                    v5.addSuppressed(v8_5);
                }
            }
            throw v9_6;
        } catch (Throwable v9_5) {
            v5 = v9_5;
            throw v5;
        }
        v8_4.close();
        return;
    }

Method com.sophos.jsceplib.d.a() calling method java.io.File.<init>()


    public static void a(android.content.Context p0, byte[] p1, String p2, String p3)
    {
        java.io.FileOutputStream v0_3 = 0;
        try {
            java.io.FileOutputStream v3_2 = new java.io.FileOutputStream(new java.io.File(p0.getFilesDir(), "SCEP_request.jks"));
            try {
                v3_2.write(p1);
                v3_2.close();
                return;
            } catch (java.io.FileOutputStream v0_2) {
                Throwable v1_1 = v0_2;
                v0_3 = v3_2;
                if (v0_3 != null) {
                    v0_3.close();
                }
                throw v1_1;
            }
        } catch (Throwable v1_1) {
        }
        v3_2.write(p1);
        v3_2.close();
        return;
    }

Method com.sophos.jbase.k.<clinit>() calling method java.io.File.<init>()


    static k()
    {
        com.sophos.jbase.k.a = new java.io.File("/dev/urandom");
        com.sophos.jbase.k.b = 0;
        return;
    }

Method com.sophos.jbase.i.d() calling method java.io.File.<init>()


    private static declared_synchronized void d(android.content.Context p5)
    {
        try {
            String v2_0 = 0;
        } catch (java.io.IOException v5_15) {
            throw v5_15;
        }
        if (com.sophos.jbase.i.f == null) {
            java.io.IOException v5_8;
            if (p5 == null) {
                v5_8 = 0;
            } else {
                v5_8 = p5.getApplicationContext();
            }
            com.sophos.jbase.i.f = v5_8;
            if (com.sophos.jbase.i.f == null) {
                return;
            }
        }
        if ((com.sophos.jbase.i.b instanceof com.sophos.jbase.LegacyKeyStore)) {
            java.io.IOException v5_4 = new java.io.File(com.sophos.jbase.i.f.getDir("keyring", 0), "pkdata.bin");
            if (com.sophos.jbase.i.a(0) != 0) {
                if (com.sophos.jbase.i.d == null) {
                    com.sophos.jbase.i.a(com.sophos.jbase.i.f, 0);
                    if (com.sophos.jbase.i.d == null) {
                        com.sophos.smsec.core.smsectrace.d.d("JBASE", "Unexpected error.");
                        return;
                    }
                }
                try {
                    com.sophos.jbase.i.d.initCipher(1, com.sophos.jbase.i.i());
                    try {
                        String v1_10 = new java.io.ObjectOutputStream(new javax.crypto.CipherOutputStream(new java.io.FileOutputStream(v5_4), com.sophos.jbase.i.d.getKey()));
                        try {
                            v1_10.writeObject(com.sophos.jbase.i.b);
                            try {
                                v1_10.close();
                            } catch (java.io.IOException v5_11) {
                                String v1_12 = "JBASE";
                                String v2_1 = "Error while closing stream.";
                                com.sophos.smsec.core.smsectrace.d.c(v1_12, v2_1, v5_11);
                            }
                        } catch (java.io.IOException v5_10) {
                            v2_0 = v1_10;
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (String v1_13) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error while closing stream.", v1_13);
                                }
                            }
                            throw v5_10;
                        } catch (java.io.IOException v5_7) {
                            v2_0 = v1_10;
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error while serializing key.", v5_7);
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (java.io.IOException v5_11) {
                                    v1_12 = "JBASE";
                                    v2_1 = "Error while closing stream.";
                                }
                            }
                        }
                    } catch (java.io.IOException v5_10) {
                    } catch (java.io.IOException v5_7) {
                    }
                } catch (String v1_8) {
                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v1_8);
                }
            } else {
                if (v5_4.exists()) {
                    String v2_4 = new StringBuilder();
                    v2_4.append("NOT Deleting file of size ");
                    v2_4.append(v5_4.length());
                    com.sophos.smsec.core.smsectrace.d.d("JBASE", v2_4.toString());
                }
            }
        }
        return;
    }

Method com.sophos.jbase.i.b() calling method java.io.File.<init>()


    public static declared_synchronized com.sophos.jbase.EncryptionKey b(android.content.Context p14)
    {
        try {
            if (com.sophos.jbase.i.f == null) {
                android.content.Context v14_28;
                if (p14 == null) {
                    v14_28 = 0;
                } else {
                    v14_28 = p14.getApplicationContext();
                }
                com.sophos.jbase.i.f = v14_28;
                if (com.sophos.jbase.i.f == null) {
                    return 0;
                }
            }
        } catch (android.content.Context v14_20) {
            throw v14_20;
        }
        android.content.Context v14_3 = com.sophos.jbase.JBPreferences.a(com.sophos.jbase.i.f).a(com.sophos.jbase.JBPreferences$Preferences.ENABLE_KEYRING);
        if (com.sophos.jbase.i.d == null) {
            if (com.sophos.jbase.i.h == null) {
                com.sophos.jbase.i.a(com.sophos.jbase.i.f, 0);
                if (com.sophos.jbase.i.d == null) {
                    return 0;
                }
            } else {
                if ((v14_3 != null) && ((7 == com.sophos.jbase.i.c("CorporateDocumentsKey")) && ((3 == com.sophos.jbase.i.a(com.sophos.jbase.i.h)) && (!com.sophos.jbase.i.a(com.sophos.jbase.i.f))))) {
                    com.sophos.smsec.core.smsectrace.d.d("JBKeyStore", "Android key store is not available without configured lock screen!");
                    com.sophos.jbase.i.c(com.sophos.jbase.i.f);
                }
                return com.sophos.jbase.i.h;
            }
        }
        if (((com.sophos.jbase.i.b instanceof com.sophos.jbase.LegacyKeyStore)) && (com.sophos.jbase.i.a(1) == 0)) {
            com.sophos.jbase.i.a(com.sophos.jbase.i.f, 1);
        }
        if (com.sophos.jbase.i.h != null) {
            if ((v14_3 != null) && ((com.sophos.jbase.i.h != null) && ((7 == com.sophos.jbase.i.c(com.sophos.jbase.i.h.getKeyGuid())) && (3 == com.sophos.jbase.i.a(com.sophos.jbase.i.h))))) {
                com.sophos.smsec.core.smsectrace.d.d("JBKeyStore", "Android key store is not available without configured lock screen!");
            }
        } else {
            if (v14_3 != null) {
                com.sophos.jbase.i.h = com.sophos.jbase.i.a("CorporateDocumentsKey");
            }
            if (com.sophos.jbase.i.h == null) {
                com.sophos.smsec.core.smsectrace.d.e("JBASE", "Created new data encryption key.");
                String v1_18 = com.sophos.jbase.i.i();
                if (com.sophos.jbase.i.f != null) {
                    String v8_20;
                    String v6_23 = com.sophos.jbase.i.f.getDir("keyring", 0);
                    if (!v6_23.mkdirs()) {
                        v8_20 = "false";
                    } else {
                        v8_20 = "true";
                    }
                    com.sophos.smsec.core.smsectrace.d.a("calling mkdirs returned ", v8_20);
                    java.io.File v7_3 = new java.io.File(v6_23, "pckdata.bin");
                    if (v7_3.exists()) {
                        String v6_1 = 2;
                        try {
                            com.sophos.jbase.i.d.initCipher(2, v1_18);
                            try {
                                String v8_0 = new java.io.ObjectInputStream(new javax.crypto.CipherInputStream(new java.io.FileInputStream(v7_3), com.sophos.jbase.i.d.getKey()));
                            } catch (String v6_0) {
                                v8_0 = 0;
                                if (v8_0 != null) {
                                    try {
                                        v8_0.close();
                                    } catch (String v8_3) {
                                        com.sophos.smsec.core.smsectrace.d.c("JBKeyStore", "closing stream failed.", v8_3);
                                    }
                                }
                                throw v6_0;
                            } catch (java.io.StreamCorruptedException) {
                                v8_0 = 0;
                                String v9_3 = com.sophos.jbase.JBKey.keyFromSecret(com.sophos.jbase.JBPreferences.b(com.sophos.jbase.i.f), com.sophos.jbase.i.a(com.sophos.jbase.i.f, com.sophos.jbase.JBPreferences$Preferences.CORP_PWD_SALT), com.sophos.jbase.JBKey$JBCryptAlgorithm.JBAES, com.sophos.jbase.JBKey$JBKeySize.JBKeySize256);
                                try {
                                    v9_3.initCipher(v6_1, v1_18);
                                } catch (String v6_2) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v6_2);
                                }
                                com.sophos.smsec.core.smsectrace.d.e("JBKeyStore", "old persistant file was recrypted.");
                                String v6_5 = new java.io.ObjectInputStream(new javax.crypto.CipherInputStream(new java.io.FileInputStream(v7_3), v9_3.getKey()));
                                try {
                                    String v8_1 = v6_5.readObject();
                                } catch (String v8_2) {
                                    v8_0 = v6_5;
                                    v6_0 = v8_2;
                                }
                                if ((v8_1 instanceof com.sophos.jbase.EncryptionKey)) {
                                    com.sophos.jbase.i.h = ((com.sophos.jbase.EncryptionKey) v8_1);
                                    com.sophos.jbase.i.a(v7_3, v1_18);
                                }
                                try {
                                    v6_5.close();
                                } catch (String v6_6) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBKeyStore", "closing stream failed.", v6_6);
                                }
                                v6_1 = v8_1;
                                if (!(v6_1 instanceof com.sophos.jbase.EncryptionKey)) {
                                    if (!(v6_1 instanceof com.sophos.jbase.a)) {
                                        com.sophos.smsec.core.smsectrace.d.d("JBASE", "Unexpected error.");
                                        if ((v14_3 != null) && ((com.sophos.jbase.i.h != null) && ((7 == com.sophos.jbase.i.c("CorporateDocumentsKey")) && ((3 == com.sophos.jbase.i.a(com.sophos.jbase.i.h)) && (!com.sophos.jbase.i.a(com.sophos.jbase.i.f)))))) {
                                            com.sophos.smsec.core.smsectrace.d.d("JBKeyStore", "Android key store is not available without configured lock screen!");
                                            com.sophos.jbase.i.c(com.sophos.jbase.i.f);
                                        }
                                    } else {
                                        String v6_8 = ((com.sophos.jbase.a) v6_1);
                                        com.sophos.jbase.i.h = new com.sophos.jbase.EncryptionKey(v6_8.getKeyName(), v6_8.getKeyGuid(), new com.sophos.jbase.JBKey(v6_8.getJBKey().getKeySpec()), v6_8.getAttr());
                                        com.sophos.jbase.i.a(v7_3, v1_18);
                                    }
                                } else {
                                    com.sophos.jbase.i.h = ((com.sophos.jbase.EncryptionKey) v6_1);
                                }
                            } catch (String v6_0) {
                            } catch (String v6_11) {
                                com.sophos.smsec.core.smsectrace.d.d("JBASE", "Non-CriticalError while deserializing keys.", v6_11);
                                com.sophos.jbase.i.h = 0;
                            }
                            v6_1 = v8_0.readObject();
                            try {
                                v8_0.close();
                            } catch (String v8_4) {
                                com.sophos.smsec.core.smsectrace.d.c("JBKeyStore", "closing stream failed.", v8_4);
                            }
                        } catch (String v8_23) {
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v8_23);
                        }
                    }
                    if (com.sophos.jbase.i.h == null) {
                        String v8_16;
                        android.content.Context v2_12 = new byte[32];
                        com.sophos.jbase.k.a(v2_12);
                        String v6_16 = new StringBuilder();
                        v6_16.append("Creating new corporate key. Keystore is ");
                        if (v14_3 == null) {
                            v8_16 = "off.";
                        } else {
                            v8_16 = "on.";
                        }
                        v6_16.append(v8_16);
                        com.sophos.smsec.core.smsectrace.d.e("JBASE", v6_16.toString());
                        com.sophos.jbase.i.h = new com.sophos.jbase.EncryptionKey("CorporateDocumentsKey", "CorporateDocumentsKey", v2_12, 272629760);
                        com.sophos.jbase.l.a(v2_12);
                        try {
                            com.sophos.jbase.i.h.getJBKey().initCipher(1, v1_18);
                        } catch (android.content.Context v2_15) {
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v2_15);
                        }
                        com.sophos.jbase.i.a(v7_3, v1_18);
                    }
                }
                if ((com.sophos.jbase.i.h != null) && ((com.sophos.jbase.i.h.getJBKey() != null) && (com.sophos.jbase.i.h.getJBKey().getKey() == null))) {
                    try {
                        com.sophos.jbase.i.h.getJBKey().initCipher(1, v1_18);
                    } catch (android.content.Context v2_24) {
                        com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v2_24);
                    }
                }
                com.sophos.jbase.l.a(v1_18);
                if ((v14_3 != null) && ((com.sophos.jbase.i.d != null) && ((3 == com.sophos.jbase.i.a(com.sophos.jbase.i.h)) && (!com.sophos.jbase.i.a(com.sophos.jbase.i.f))))) {
                    com.sophos.smsec.core.smsectrace.d.d("JBKeyStore", "Android key store is not available without configured lock screen!");
                    com.sophos.jbase.i.c(com.sophos.jbase.i.f);
                }
            }
        }
        return com.sophos.jbase.i.h;
    }

Method com.sophos.jbase.i.a() calling method java.io.File.<init>()


    public static declared_synchronized boolean a(android.content.Context p13, boolean p14)
    {
        try {
            String v2_0 = 0;
        } catch (java.io.IOException v13_9) {
            throw v13_9;
        }
        if (ark>com.sophos.jbase.iark>.f == null) {
            java.io.IOException v13_20;
            if (p13 == null) {
                v13_20 = 0;
            } else {
                v13_20 = p13.getApplicationContext();
            }
            ark>com.sophos.jbase.iark>.f = v13_20;
            if (ark>com.sophos.jbase.iark>.f == null) {
                return 0;
            }
        }
        if (!(ark>com.sophos.jbase.iark>.b instanceof com.sophos.jbase.LegacyKeyStore)) {
            return 1;
        } else {
            if (ark>com.sophos.jbase.iark>.d == null) {
                ark>com.sophos.jbase.iark>.a(ark>com.sophos.jbase.iark>.f, 0);
                if (ark>com.sophos.jbase.iark>.d == null) {
                    return 0;
                }
            }
            if ((p14 == null) && (ark>com.sophos.jbase.iark>.a(0) != 0)) {
                return 0;
            } else {
                try {
                    ark>com.sophos.jbase.iark>.d.initCipher(2, ark>com.sophos.jbase.iark>.i());
                } catch (java.io.IOException v13_16) {
                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Unexpected error.", v13_16);
                }
                java.io.IOException v13_18 = new java.io.File(ark>com.sophos.jbase.iark>.f.getDir("keyring", 0), "pkdata.bin");
                if (v13_18.exists()) {
                    try {
                        java.io.ObjectInputStream v4_6 = new java.io.ObjectInputStream(new javax.crypto.CipherInputStream(new java.io.FileInputStream(v13_18), ark>com.sophos.jbase.iark>.d.getKey()));
                        try {
                            com.sophos.jbase.LegacyKeyStore v5_7 = ((com.sophos.jbase.LegacyKeyStore) v4_6.readObject());
                            String[] v6_3 = v5_7.saw("", -1);
                            int v8 = v6_3.length;
                            int v9 = 0;
                        } catch (java.io.IOException v13_5) {
                            v2_0 = v4_6;
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (String v14_5) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v14_5);
                                }
                            }
                            throw v13_5;
                        } catch (java.io.FileNotFoundException) {
                            v2_0 = v4_6;
                            com.sophos.smsec.core.smsectrace.d.b("JBASE", "file not found, no stored keys.");
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (java.io.IOException v13_6) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v13_6);
                                }
                            }
                            return 1;
                        } catch (java.io.StreamCorruptedException) {
                            v2_0 = v4_6;
                            if (!v13_18.delete()) {
                                com.sophos.smsec.core.smsectrace.d.d("JBASE", "Unexpected error.");
                            }
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (java.io.IOException v13_3) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v13_3);
                                }
                            }
                            return 0;
                        } catch (java.io.IOException v13_19) {
                            v2_0 = v4_6;
                            if (p14 != null) {
                                com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error while deserializing keys.", v13_19);
                            }
                            if (v2_0 != null) {
                                try {
                                    v2_0.close();
                                } catch (java.io.IOException v13_22) {
                                    com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v13_22);
                                }
                            }
                            return 0;
                        }
                        while (v9 < v8) {
                            String v10 = v6_3[v9];
                            if ((p14 != null) || (ark>com.sophos.jbase.iark>.c(v10) == -1)) {
                                ark>com.sophos.jbase.iark>.b.insert(v10, v5_7.get(v10), -1, 1);
                            }
                            v9++;
                        }
                        ark>com.sophos.jbase.iark>.d(0);
                        try {
                            v4_6.close();
                        } catch (java.io.IOException v13_21) {
                            com.sophos.smsec.core.smsectrace.d.c("JBASE", "Error closing stream.", v13_21);
                        }
                        return 1;
                    } catch (java.io.IOException v13_5) {
                    } catch (java.io.IOException v13_19) {
                    }
                } else {
                    com.sophos.smsec.core.smsectrace.d.b("JBASE", "no stored keys.");
                    return 1;
                }
            }
        }
    }

Method com.sophos.cloud.core.device.b.d() calling method java.io.File.<init>()


    private boolean d(com.sophos.cloud.core.device.b$a p10)
    {
        java.util.Iterator v0_1 = new java.util.HashSet();
        v0_1.addAll(java.util.Arrays.asList(com.sophos.cloud.core.device.a.g));
        v0_1.addAll(java.util.Arrays.asList(com.sophos.cloud.core.device.RootDetectorBase.c()));
        java.util.Iterator v0_2 = v0_1.iterator();
        while (v0_2.hasNext()) {
            String v1_3 = ((String) v0_2.next());
            String[] v2 = com.sophos.cloud.core.device.a.h;
            int v3 = v2.length;
            int v4 = 0;
            while (v4 < v3) {
                Exception v5_0 = v2[v4];
                try {
                    java.util.List v6_1 = new StringBuilder();
                    v6_1.append(v1_3);
                    v6_1.append("/");
                    v6_1.append(v5_0);
                    Exception v5_1 = v6_1.toString();
                } catch (Exception v5_2) {
                    com.sophos.smsec.core.smsectrace.d.c("ERD", "checkRootStatusBySuFiles: Exception", v5_2);
                    v4++;
                }
                if (!new java.io.File(v5_1).exists()) {
                } else {
                    String v7_3 = new StringBuilder();
                    v7_3.append("found rooting indicator: file \'");
                    v7_3.append(v5_1);
                    v7_3.append("\'");
                    com.sophos.smsec.core.smsectrace.d.b("ERD", v7_3.toString());
                    p10.w.add(v5_1);
                }
            }
        }
        return (p10.w.isEmpty() ^ 1);
    }

Method com.sophos.cloud.core.device.b.c() calling method java.io.File.<init>()


    private boolean c(com.sophos.cloud.core.device.b$a p7)
    {
        String[] v0 = com.sophos.cloud.core.device.a.f;
        int v1 = v0.length;
        int v2 = 0;
        while (v2 < v1) {
            Exception v3_1 = v0[v2];
            try {
                java.util.List v4_1 = new java.io.File(v3_1);
            } catch (Exception v3_0) {
                com.sophos.smsec.core.smsectrace.d.c("ERD", "checkReadDirectories: Exception", v3_0);
                v2++;
            }
            if ((!v4_1.isFile()) || (!v4_1.canRead())) {
            } else {
                p7.E.add(v3_1);
            }
        }
        return (p7.E.isEmpty() ^ 1);
    }

Method com.sophos.cloud.core.device.b.b() calling method java.io.File.<init>()


    private boolean b(com.sophos.cloud.core.device.b$a p7)
    {
        String[] v0 = com.sophos.cloud.core.device.a.e;
        int v1 = v0.length;
        int v2 = 0;
        while (v2 < v1) {
            Exception v3_1 = v0[v2];
            try {
                java.util.List v4_1 = new java.io.File(v3_1);
            } catch (Exception v3_0) {
                com.sophos.smsec.core.smsectrace.d.c("ERD", "checkReadDirectories: Exception", v3_0);
                v2++;
            }
            if ((!v4_1.isDirectory()) || (!v4_1.canRead())) {
            } else {
                p7.D.add(v3_1);
            }
        }
        return (p7.D.isEmpty() ^ 1);
    }

Method com.sophos.cloud.core.device.b.b() calling method java.io.File.<init>()


    private boolean b()
    {
        try {
            String v1_5 = new java.io.File("/system/app").list(new com.sophos.cloud.core.device.b$1(this));
        } catch (String v1_1) {
            com.sophos.smsec.core.smsectrace.d.c("ERD", "isSuperSuExisting: Exception", v1_1);
            return 0;
        }
        if ((v1_5 == null) || (v1_5.length <= 0)) {
            return 0;
        } else {
            StringBuilder v3_2 = new StringBuilder();
            v3_2.append("found rooting indicator: apk \'SuperSu\': ");
            v3_2.append(v1_5[0]);
            com.sophos.smsec.core.smsectrace.d.b("ERD", v3_2.toString());
            return 1;
        }
    }

Method com.sophos.cloud.core.device.b.a() calling method java.io.File.<init>()


    private boolean a(ark>com.sophos.cloud.core.device.bark>$a p7)
    {
        String[] v0 = com.sophos.cloud.core.device.a.d;
        int v1 = v0.length;
        int v2 = 0;
        while (v2 < v1) {
            Exception v3_1 = v0[v2];
            try {
                java.util.List v4_1 = new java.io.File(v3_1);
            } catch (Exception v3_0) {
                com.sophos.smsec.core.smsectrace.d.c("ERD", "checkWritableDirectories: Exception", v3_0);
                v2++;
            }
            if ((!v4_1.isDirectory()) || (!v4_1.canWrite())) {
            } else {
                p7.C.add(v3_1);
            }
        }
        return (p7.C.isEmpty() ^ 1);
    }

Method com.sophos.cloud.core.device.RootDetectorBase.d() calling method java.io.File.<init>()


    private boolean d()
    {
        int v0_1 = new com.sophos.cloud.core.device.RootDetectorResultItem(com.sophos.cloud.core.device.RootDetectorResultItem$RootDetectorResultType.SU_FILES);
        java.util.Iterator v1_3 = new java.util.HashSet();
        v1_3.addAll(java.util.Arrays.asList(com.sophos.cloud.core.device.RootDetectorBase.a));
        v1_3.addAll(java.util.Arrays.asList(com.sophos.cloud.core.device.RootDetectorBase.c()));
        java.util.Iterator v1_1 = v1_3.iterator();
        do {
            int v3 = 0;
            if (!v1_1.hasNext()) {
                if (v0_1.a() > 0) {
                    v3 = 1;
                }
                return v3;
            } else {
                String v2_4 = ((String) v1_1.next());
                String[] v5 = com.sophos.cloud.core.device.RootDetectorBase.b;
                int v6 = v5.length;
            }
        } while(v3 >= v6);
        Exception v7_0 = v5[v3];
        try {
            String v8_1 = new StringBuilder();
            v8_1.append(v2_4);
            v8_1.append("/");
            v8_1.append(v7_0);
            Exception v7_1 = v8_1.toString();
        } catch (Exception v7_2) {
            com.sophos.smsec.core.smsectrace.d.c("RD", "checkRootStatusBySuFiles: Exception", v7_2);
            v3++;
            while (v3 < v6) {
            }
        }
        if (!new java.io.File(v7_1).exists()) {
        } else {
            String v9_3 = new StringBuilder();
            v9_3.append("found rooting indicator: file \'");
            v9_3.append(v7_1);
            v9_3.append("\'");
            com.sophos.smsec.core.smsectrace.d.b("RD", v9_3.toString());
            v0_1.a(v7_1);
            v0_1.a(1);
        }
    }

Method com.sophos.cloud.core.c.e.a() calling method java.io.File.<init>()


    private boolean a(com.sophos.cloud.core.c.f p7, byte[] p8)
    {
        String v0_3 = this.b.getTempDirectory();
        java.io.File v1_2 = v0_3.listFiles();
        if (v1_2 != null) {
            String v3_4 = v1_2.length;
            int v4 = 0;
            while (v4 < v3_4) {
                v1_2[v4].delete();
                v4++;
            }
        }
        java.io.File v1_1 = new java.io.File(v0_3, org.apache.commons.io.FilenameUtils.getName(p7.b()));
        String v7_4 = 0;
        try {
            String v0_2 = new java.io.FileOutputStream(v1_1);
            try {
                v0_2.write(p8);
                v0_2.flush();
                v0_2.close();
                try {
                    v0_2.close();
                } catch (java.io.IOException) {
                    String v8_12 = new StringBuilder();
                    v8_12.append("cannot close file ");
                    v8_12.append(v1_1.toString());
                    com.sophos.smsec.core.smsectrace.d.d("REST", v8_12.toString());
                }
                return 1;
            } catch (String v7_7) {
                String v8_7 = v7_7;
                v7_4 = v0_2;
                if (v7_4 != null) {
                    try {
                        v7_4.close();
                    } catch (java.io.IOException) {
                        String v7_9 = new StringBuilder();
                        v7_9.append("cannot close file ");
                        v7_9.append(v1_1.toString());
                        com.sophos.smsec.core.smsectrace.d.d("REST", v7_9.toString());
                    }
                }
                throw v8_7;
            } catch (java.io.FileNotFoundException) {
                v7_4 = v0_2;
                String v0_10 = new StringBuilder();
                v0_10.append("cannot write file ");
                v0_10.append(v1_1.toString());
                com.sophos.smsec.core.smsectrace.d.d("REST", v0_10.toString());
                if (v7_4 != null) {
                    try {
                        v7_4.close();
                    } catch (java.io.IOException) {
                        String v8_9 = new StringBuilder();
                        v8_9.append("cannot close file ");
                        v8_9.append(v1_1.toString());
                        com.sophos.smsec.core.smsectrace.d.d("REST", v8_9.toString());
                    }
                }
                return 0;
            } catch (java.io.IOException) {
                v7_4 = v0_2;
                String v0_5 = new StringBuilder();
                v0_5.append("cannot write file ");
                v0_5.append(v1_1.toString());
                com.sophos.smsec.core.smsectrace.d.d("REST", v0_5.toString());
                if (v7_4 != null) {
                    try {
                        v7_4.close();
                    } catch (java.io.IOException) {
                        String v8_4 = new StringBuilder();
                        v8_4.append("cannot close file ");
                        v8_4.append(v1_1.toString());
                        com.sophos.smsec.core.smsectrace.d.d("REST", v8_4.toString());
                    }
                }
                return 0;
            }
        } catch (String v8_7) {
        }
    }

Method com.microsoft.aad.adal.StorageHelper.writeKeyData() calling method java.io.File.<init>()


    private void writeKeyData(byte[] p5)
    {
        com.microsoft.aad.adal.Logger.v("StorageHelper", "Writing key data to a file");
        java.io.FileOutputStream v1_3 = this.mContext;
        java.io.FileOutputStream v1_2 = new java.io.FileOutputStream(new java.io.File(v1_3.getDir(v1_3.getPackageName(), 0), "adalks"));
        try {
            v1_2.write(p5);
            v1_2.close();
            return;
        } catch (Throwable v5_1) {
            v1_2.close();
            throw v5_1;
        }
    }

Method com.microsoft.aad.adal.StorageHelper.readKeyData() calling method java.io.File.<init>()


    private byte[] readKeyData()
    {
        String v1_0 = this.mContext;
        byte[] v0_7 = new java.io.File(v1_0.getDir(v1_0.getPackageName(), 0), "adalks");
        if (!v0_7.exists()) {
            throw new java.io.IOException("Key file to read does not exist");
        } else {
            com.microsoft.aad.adal.Logger.v("StorageHelper", "Reading key data from a file");
            String v1_5 = new java.io.FileInputStream(v0_7);
            try {
                byte[] v0_4 = new java.io.ByteArrayOutputStream();
                byte[] v2_2 = new byte[1024];
            } catch (byte[] v0_6) {
                v1_5.close();
                throw v0_6;
            }
            while(true) {
                int v4 = v1_5.read(v2_2);
                if (v4 == -1) {
                    break;
                }
                v0_4.write(v2_2, 0, v4);
            }
            byte[] v0_5 = v0_4.toByteArray();
            v1_5.close();
            return v0_5;
        }
    }

Method com.microsoft.aad.adal.StorageHelper.deleteKeyFile() calling method java.io.File.<init>()


    private void deleteKeyFile()
    {
        String v1_0 = this.mContext;
        String v0_3 = new java.io.File(v1_0.getDir(v1_0.getPackageName(), 0), "adalks");
        if (v0_3.exists()) {
            com.microsoft.aad.adal.Logger.v("StorageHelper:deleteKeyFile", "Delete KeyFile");
            if (!v0_3.delete()) {
                com.microsoft.aad.adal.Logger.v("StorageHelper:deleteKeyFile", "Delete KeyFile failed");
            }
        }
        return;
    }

Method com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.<clinit>() calling method java.io.File.<init>()


    static PRNGFixes$LinuxPRNGSecureRandom()
    {
        com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.URANDOM_FILE = new java.io.File("/dev/urandom");
        com.microsoft.aad.adal.PRNGFixes$LinuxPRNGSecureRandom.SLOCK = new Object();
        return;
    }

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


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

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


    private final boolean B()
    {
        this.w();
        try {
            this.v = new java.io.RandomAccessFile(new java.io.File(this.j.n().getFilesDir(), "google_app_measurement.db"), "rw").getChannel();
            this.u = this.v.tryLock();
        } catch (int v0_14) {
            this.j.r().c_().a("Failed to acquire storage lock", v0_14);
            return 0;
        } catch (int v0_13) {
            this.j.r().c_().a("Failed to access storage lock file", v0_13);
            return 0;
        }
        if (this.u == null) {
            this.j.r().c_().a("Storage concurrent data access panic");
            return 0;
        } else {
            this.j.r().x().a("Storage concurrent access okay");
            return 1;
        }
    }

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


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

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


    protected boolean onPreExecute()
    {
        try {
            String v5_1;
            android.content.Context v8 = this.getContext();
            boolean v1_6 = v8.getPackageManager();
            android.content.Context v2_4 = v8.getPackageName();
            io.fabric.sdk.android.services.common.IdManager v3_2 = v1_6.getPackageInfo(v2_4, 0);
            String v4_0 = Integer.toString(v3_2.versionCode);
        } catch (boolean v1_4) {
            io.fabric.sdk.android.c.g().e("Answers", "Error retrieving app properties", v1_4);
            return 0;
        }
        if (v3_2.versionName != null) {
            v5_1 = v3_2.versionName;
        } else {
            v5_1 = "0.0";
        }
        long v6_1;
        if (android.os.Build$VERSION.SDK_INT < 9) {
            v6_1 = new java.io.File(v1_6.getApplicationInfo(v2_4, 0).sourceDir).lastModified();
        } else {
            v6_1 = v3_2.firstInstallTime;
        }
        this.analyticsManager = com.crashlytics.android.answers.SessionAnalyticsManager.build(this, v8, this.getIdManager(), v4_0, v5_1, v6_1);
        this.analyticsManager.enable();
        this.firebaseEnabled = new io.fabric.sdk.android.services.common.o().b(v8);
        return 1;
    }

Method com.baidu.android.pushservice.richmedia.MediaListActivity$4.a() calling method java.io.File.<init>()


    public void a(com.baidu.android.pushservice.richmedia.a p3, com.baidu.android.pushservice.richmedia.e p4)
    {
        com.baidu.android.pushservice.richmedia.MediaListActivity v3_3 = p3.d.c();
        this.a.b.cancel(v3_3, 0);
        com.baidu.android.pushservice.richmedia.MediaListActivity v3_13 = com.baidu.android.pushservice.c.a.a(this.a, v3_3);
        if ((v3_13 != null) && (v3_13.i == com.baidu.android.pushservice.richmedia.a.f)) {
            android.content.Intent v4_1 = v3_13.e;
            com.baidu.android.pushservice.richmedia.MediaListActivity v3_2 = v3_13.f;
            if (v3_2.length() > 0) {
                com.baidu.android.pushservice.richmedia.MediaListActivity v3_8;
                android.net.Uri v1_3 = new StringBuilder();
                v1_3.append(v4_1);
                v1_3.append("/");
                v1_3.append(v3_2.substring(0, v3_2.lastIndexOf(".")));
                v1_3.append("/index.html");
                com.baidu.android.pushservice.richmedia.MediaListActivity v3_6 = v1_3.toString();
                android.content.Intent v4_7 = new android.content.Intent();
                v4_7.setClass(this.a, com.baidu.android.pushservice.richmedia.MediaViewActivity);
                android.content.ContentResolver v0_1 = this.a;
                android.content.ContentResolver v0_2 = com.baidu.android.pushservice.i.l.A(v0_1, v0_1.getPackageName());
                android.net.Uri v1_7 = new java.io.File(v3_6);
                if (v0_2 < 24) {
                    v3_8 = android.net.Uri.fromFile(v1_7);
                } else {
                    com.baidu.android.pushservice.richmedia.MediaListActivity v3_10 = new android.content.ContentValues(1);
                    v3_10.put("_data", v1_7.getAbsolutePath());
                    v3_8 = this.a.getContentResolver().insert(android.provider.MediaStore$Images$Media.EXTERNAL_CONTENT_URI, v3_10);
                }
                v4_7.setData(v3_8);
                v4_7.addFlags(268435456);
                this.a.startActivity(v4_7);
            }
        }
        return;
    }

Method com.baidu.android.pushservice.b.e.k() calling method java.io.File.<init>()


    private void k()
    {
        long v0_3 = new java.io.File(this.c);
        if (v0_3.exists()) {
            com.baidu.android.pushservice.i.i.a(this.a, "com.baidu.android.pushservice.config.MODE_CONFIG_LAST_MODIFIED", v0_3.lastModified());
            long v0_1 = 0;
            long v2_0 = k>com.baidu.android.pushservice.b.ek>.m;
            String v3_0 = v2_0.length;
            int v4 = 0;
            while (v4 < v3_0) {
                java.io.File v6_1 = new java.io.File(v2_0[v4]);
                if (v6_1.exists()) {
                    v0_1 = ((v6_1.lastModified() / 10) + v0_1);
                }
                v4++;
            }
            com.baidu.android.pushservice.i.i.a(this.a, "com.baidu.android.pushservice.config.BUILD_LAST_MODIFIED", v0_1);
            com.baidu.android.pushservice.i.i.a(this.a, "com.baidu.android.pushservice.config.MODE_CONFIG_LAST_CACHE", System.currentTimeMillis());
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.b.e.j() calling method java.io.File.<init>()


    private boolean j()
    {
        if ((System.currentTimeMillis() - com.baidu.android.pushservice.i.i.b(this.a, "com.baidu.android.pushservice.config.MODE_CONFIG_LAST_CACHE")) <= 604800000) {
            long v1_2 = com.baidu.android.pushservice.i.i.b(this.a, "com.baidu.android.pushservice.config.MODE_CONFIG_LAST_MODIFIED");
            String[] v3_1 = new java.io.File(this.c);
            if (v3_1.exists()) {
                if ((v1_2 > 0) && (v1_2 == v3_1.lastModified())) {
                    long v1_5 = com.baidu.android.pushservice.i.i.b(this.a, "com.baidu.android.pushservice.config.BUILD_LAST_MODIFIED");
                    String[] v3_2 = com.baidu.android.pushservice.b.e.m;
                    int v6_2 = v3_2.length;
                    long v8 = 0;
                    int v4_3 = 0;
                    while (v4_3 < v6_2) {
                        long v10_1 = new java.io.File(v3_2[v4_3]);
                        if (v10_1.exists()) {
                            v8 = ((v10_1.lastModified() / 10) + v8);
                        }
                        v4_3++;
                    }
                    if (v1_5 == v8) {
                        return 0;
                    } else {
                        return 1;
                    }
                } else {
                    return 1;
                }
            } else {
                return 1;
            }
        } else {
            return 1;
        }
    }

Method com.baidu.android.pushservice.PushServiceReceiver$a.a() calling method java.io.File.<init>()


    public void a(com.baidu.android.pushservice.richmedia.a p3, com.baidu.android.pushservice.richmedia.e p4)
    {
        android.content.ActivityNotFoundException v3_3 = p3.d.c();
        this.g.cancel(v3_3, 0);
        android.content.ActivityNotFoundException v3_14 = com.baidu.android.pushservice.c.a.a(this.a, v3_3);
        if ((v3_14 != null) && (v3_14.i == com.baidu.android.pushservice.richmedia.a.f)) {
            String v4_1 = v3_14.e;
            android.content.ActivityNotFoundException v3_2 = v3_14.f;
            if ((!android.text.TextUtils.isEmpty(v3_2)) && (v3_2.length() > 0)) {
                android.content.ActivityNotFoundException v3_8;
                android.net.Uri v1_4 = new StringBuilder();
                v1_4.append(v4_1);
                v1_4.append("/");
                v1_4.append(v3_2.substring(0, v3_2.lastIndexOf(".")));
                v1_4.append("/index.html");
                android.content.ActivityNotFoundException v3_6 = v1_4.toString();
                String v4_7 = new android.content.Intent();
                v4_7.setClass(this.a, com.baidu.android.pushservice.richmedia.MediaViewActivity);
                android.content.Context v0_2 = this.a;
                android.content.Context v0_3 = com.baidu.android.pushservice.i.l.A(v0_2, v0_2.getPackageName());
                android.net.Uri v1_8 = new java.io.File(v3_6);
                if (v0_3 < 24) {
                    v3_8 = android.net.Uri.fromFile(v1_8);
                } else {
                    android.content.ActivityNotFoundException v3_10 = new android.content.ContentValues(1);
                    v3_10.put("_data", v1_8.getAbsolutePath());
                    v3_8 = this.a.getContentResolver().insert(android.provider.MediaStore$Images$Media.EXTERNAL_CONTENT_URI, v3_10);
                }
                v4_7.setData(v3_8);
                v4_7.addFlags(268435456);
                try {
                    this.a.startActivity(v4_7);
                } catch (android.content.ActivityNotFoundException v3_13) {
                    new android.os.Handler(android.os.Looper.getMainLooper()).post(new ark>com.baidu.android.pushservice.PushServiceReceiver$aark>$1(this));
                    com.baidu.android.pushservice.f.a.a("PushServiceReceiver", v3_13, this.a);
                }
            }
        }
        return;
    }

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 p3, String p4)
    {
        int v3_5 = android.webkit.MimeTypeMap.getSingleton().getExtensionFromMimeType(p3);
        if (v3_5 != 0) {
            StringBuilder v0_5 = new StringBuilder();
            v0_5.append(p4);
            v0_5.append(".");
            v0_5.append(v3_5);
            p4 = v0_5.toString();
        }
        int v3_2 = new java.io.File(this.mFile, p4);
        try {
            v3_2.createNewFile();
            return new android.support.v4.provider.RawDocumentFile(this, v3_2);
        } catch (int v3_3) {
            StringBuilder v0_3 = new StringBuilder();
            v0_3.append("Failed to createFile: ");
            v0_3.append(v3_3);
            android.util.Log.w("DocumentFile", v0_3.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 {
            java.io.File v1_4 = new StringBuilder();
            v1_4.append("/proc/self/fd/");
            v1_4.append(p4.getFd());
            String v4_1 = android.system.Os.readlink(v1_4.toString());
        } catch (android.system.ErrnoException) {
            return 0;
        }
        if (!android.system.OsConstants.S_ISREG(android.system.Os.stat(v4_1).st_mode)) {
            return 0;
        } else {
            return new java.io.File(v4_1);
        }
    }

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


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

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


    private static java.io.File zzf(android.content.Context p2, String p3)
    {
        AssertionError v3_2;
        if (!android.text.TextUtils.isEmpty(p3)) {
            try {
                AssertionError v3_6 = android.util.Base64.encodeToString(p3.getBytes("UTF-8"), 11);
                StringBuilder v1_1 = new StringBuilder((String.valueOf(v3_6).length() + 33));
                v1_1.append("com.google.InstanceId_");
                v1_1.append(v3_6);
                v1_1.append(".properties");
                v3_2 = v1_1.toString();
            } catch (java.io.UnsupportedEncodingException v2_1) {
                throw new AssertionError(v2_1);
            }
        } else {
            v3_2 = "com.google.InstanceId.properties";
        }
        return new java.io.File(com.google.firebase.iid.zzy.zzb(p2), v3_2);
    }

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


    private zzaw(android.content.Context p3, com.google.firebase.iid.zzy p4)
    {
        this.zzde = new android.support.v4.util.ArrayMap();
        this.zzx = p3;
        this.zzdc = p3.getSharedPreferences("com.google.android.gms.appid", 0);
        this.zzdd = p4;
        String v0_2 = new java.io.File(android.support.v4.content.ContextCompat.getNoBackupFilesDir(this.zzx), "com.google.android.gms.appid-no-backup");
        if (!v0_2.exists()) {
            try {
                if ((v0_2.createNewFile()) && (!this.isEmpty())) {
                    android.util.Log.i("FirebaseInstanceId", "App restored, clearing state");
                    this.zzal();
                    com.google.firebase.iid.FirebaseInstanceId.getInstance().zzm();
                }
            } catch (String v3_7) {
                if (!android.util.Log.isLoggable("FirebaseInstanceId", 3)) {
                    return;
                } else {
                    String v3_9 = String.valueOf(v3_7.getMessage());
                    if (v3_9.length() == 0) {
                        String v3_11 = new String("Error creating file in no backup dir: ");
                    } else {
                        v3_11 = "Error creating file in no backup dir: ".concat(v3_9);
                    }
                    android.util.Log.d("FirebaseInstanceId", v3_11);
                    return;
                }
            }
            return;
        }
        return;
    }

Method com.google.firebase.database.tubesock.WebSocket.createSocket() calling method java.io.File.<init>()


    private java.net.Socket createSocket()
    {
        com.google.firebase.database.tubesock.WebSocketException v0_7;
        com.google.firebase.database.tubesock.WebSocketException v0_2 = this.url.getScheme();
        com.google.firebase.database.tubesock.WebSocketException v1_6 = this.url.getHost();
        String v2_7 = this.url.getPort();
        try {
            if ((v0_2 == null) || (!v0_2.equals("ws"))) {
                if ((v0_2 == null) || (!v0_2.equals("wss"))) {
                    String v2_6 = new StringBuilder();
                    v2_6.append("unsupported protocol: ");
                    v2_6.append(v0_2);
                    throw new com.google.firebase.database.tubesock.WebSocketException(v2_6.toString());
                } else {
                    if (v2_7 == -1) {
                        v2_7 = 443;
                    }
                    com.google.firebase.database.tubesock.WebSocketException v0_4 = 0;
                    try {
                        if (this.sslCacheDirectory != null) {
                            v0_4 = new android.net.SSLSessionCache(new java.io.File(this.sslCacheDirectory));
                        }
                    } catch (java.net.URI v3_6) {
                        Object[] v6_1 = new Object[0];
                        this.logger.debug("Failed to initialize SSL session cache", v3_6, v6_1);
                    }
                    v0_7 = ((javax.net.ssl.SSLSocket) android.net.SSLCertificateSocketFactory.getDefault(60000, v0_4).createSocket(v1_6, v2_7));
                    if (!javax.net.ssl.HttpsURLConnection.getDefaultHostnameVerifier().verify(v1_6, v0_7.getSession())) {
                        String v2_12 = new StringBuilder();
                        v2_12.append("Error while verifying secure socket to ");
                        v2_12.append(this.url);
                        throw new com.google.firebase.database.tubesock.WebSocketException(v2_12.toString());
                    }
                }
            } else {
                if (v2_7 == -1) {
                    v2_7 = 80;
                }
                try {
                    v0_7 = new java.net.Socket(v1_6, v2_7);
                } catch (com.google.firebase.database.tubesock.WebSocketException v0_12) {
                    java.net.URI v3_17 = new StringBuilder();
                    v3_17.append("unknown host: ");
                    v3_17.append(v1_6);
                    throw new com.google.firebase.database.tubesock.WebSocketException(v3_17.toString(), v0_12);
                } catch (com.google.firebase.database.tubesock.WebSocketException v0_11) {
                    String v2_15 = new StringBuilder();
                    v2_15.append("error while creating socket to ");
                    v2_15.append(this.url);
                    throw new com.google.firebase.database.tubesock.WebSocketException(v2_15.toString(), v0_11);
                }
            }
        } catch (com.google.firebase.database.tubesock.WebSocketException v0_1) {
            java.net.URI v3_3 = new StringBuilder();
            v3_3.append("unknown host: ");
            v3_3.append(v1_6);
            throw new com.google.firebase.database.tubesock.WebSocketException(v3_3.toString(), v0_1);
        } catch (com.google.firebase.database.tubesock.WebSocketException v0_13) {
            String v2_1 = new StringBuilder();
            v2_1.append("error while creating secure socket to ");
            v2_1.append(this.url);
            throw new com.google.firebase.database.tubesock.WebSocketException(v2_1.toString(), v0_13);
        }
        return v0_7;
    }

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


    static void a(com.google.android.gms.measurement.internal.r p3, android.database.sqlite.SQLiteDatabase p4)
    {
        if (p3 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            java.io.File v0_1 = new java.io.File(p4.getPath());
            if (!v0_1.setReadable(0, 0)) {
                p3.i().a("Failed to turn off database read permission");
            }
            if (!v0_1.setWritable(0, 0)) {
                p3.i().a("Failed to turn off database write permission");
            }
            if (!v0_1.setReadable(1, 1)) {
                p3.i().a("Failed to turn on database read permission for owner");
            }
            if (!v0_1.setWritable(1, 1)) {
                p3.i().a("Failed to turn on database write permission for owner");
            }
            return;
        }
    }

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


    public final void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        int v3_1 = p3.getPath();
        if (com.google.android.gms.internal.measurement.ba.a() >= 9) {
            java.io.File v0_2 = new java.io.File(v3_1);
            v0_2.setReadable(0, 0);
            v0_2.setWritable(0, 0);
            v0_2.setReadable(1, 1);
            v0_2.setWritable(1, 1);
        }
        return;
    }

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


    public java.io.File getUserDataFileForSession(String p4)
    {
        java.io.File v1 = this.filesDir;
        StringBuilder v2_1 = new StringBuilder();
        v2_1.append(p4);
        v2_1.append("user");
        v2_1.append(".meta");
        return new java.io.File(v1, v2_1.toString());
    }

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


    public java.io.File getKeysFileForSession(String p4)
    {
        java.io.File v1 = this.filesDir;
        StringBuilder v2_1 = new StringBuilder();
        v2_1.append(p4);
        v2_1.append("keys");
        v2_1.append(".meta");
        return new java.io.File(v1, v2_1.toString());
    }

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


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

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


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

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


    java.io.File getNonFatalSessionFilesDir()
    {
        return new java.io.File(this.getFilesDir(), "nonfatal-sessions");
    }

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


    java.io.File getInvalidFilesDir()
    {
        return new java.io.File(this.getFilesDir(), "invalidClsFiles");
    }

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


    java.io.File getFatalSessionFilesDir()
    {
        return new java.io.File(this.getFilesDir(), "fatal-sessions");
    }

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


    void doCleanInvalidTempFiles(java.io.File[] p10)
    {
        java.io.File[] v0_1 = new java.util.HashSet();
        int v1_4 = p10.length;
        int v2 = 0;
        java.io.File v3_1 = 0;
        while (v3_1 < v1_4) {
            io.fabric.sdk.android.k v4_5 = p10[v3_1];
            String v5_3 = io.fabric.sdk.android.c.g();
            String v7_3 = new StringBuilder();
            v7_3.append("Found invalid session part file: ");
            v7_3.append(v4_5);
            v5_3.a("CrashlyticsCore", v7_3.toString());
            v0_1.add(com.crashlytics.android.core.CrashlyticsController.getSessionIdFromSessionFile(v4_5));
            v3_1++;
        }
        if (!v0_1.isEmpty()) {
            java.io.File v10_1 = this.getInvalidFilesDir();
            if (!v10_1.exists()) {
                v10_1.mkdir();
            }
            java.io.File[] v0_2 = this.listFilesMatching(new com.crashlytics.android.core.CrashlyticsController$15(this, v0_1));
            int v1_3 = v0_2.length;
            while (v2 < v1_3) {
                java.io.File v3_0 = v0_2[v2];
                io.fabric.sdk.android.k v4_0 = io.fabric.sdk.android.c.g();
                String v6_1 = new StringBuilder();
                v6_1.append("Moving session file: ");
                v6_1.append(v3_0);
                v4_0.a("CrashlyticsCore", v6_1.toString());
                if (!v3_0.renameTo(new java.io.File(v10_1, v3_0.getName()))) {
                    io.fabric.sdk.android.k v4_4 = io.fabric.sdk.android.c.g();
                    String v6_4 = new StringBuilder();
                    v6_4.append("Could not move session file. Deleting ");
                    v6_4.append(v3_0);
                    v4_4.a("CrashlyticsCore", v6_4.toString());
                    v3_0.delete();
                }
                v2++;
            }
            this.trimInvalidSessionFiles();
            return;
        } else {
            return;
        }
    }

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


    private void writeFile(String p6, String p7, com.crashlytics.android.core.CrashlyticsController$FileOutputStreamWriteAction p8)
    {
        String v0 = 0;
        try {
            java.io.File v3 = this.getFilesDir();
            StringBuilder v4_1 = new StringBuilder();
            v4_1.append(p6);
            v4_1.append(p7);
            String v1_1 = new java.io.FileOutputStream(new java.io.File(v3, v4_1.toString()));
            try {
                p8.writeTo(v1_1);
                Throwable v6_4 = new StringBuilder();
                v6_4.append("Failed to close ");
                v6_4.append(p7);
                p7 = " file.";
                v6_4.append(" file.");
                io.fabric.sdk.android.services.common.CommonUtils.a(v1_1, v6_4.toString());
                return;
            } catch (Throwable v6_2) {
                v0 = v1_1;
                StringBuilder v8_3 = new StringBuilder();
                v8_3.append("Failed to close ");
                v8_3.append(p7);
                v8_3.append(" file.");
                io.fabric.sdk.android.services.common.CommonUtils.a(v0, v8_3.toString());
                throw v6_2;
            }
        } catch (Throwable v6_2) {
        }
        p8.writeTo(v1_1);
        v6_4 = new StringBuilder();
        v6_4.append("Failed to close ");
        v6_4.append(p7);
        p7 = " file.";
        v6_4.append(" file.");
        io.fabric.sdk.android.services.common.CommonUtils.a(v1_1, v6_4.toString());
        return;
    }

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


    private byte[] readFile(String p4, String p5)
    {
        java.io.File v1 = this.getFilesDir();
        StringBuilder v2_1 = new StringBuilder();
        v2_1.append(p4);
        v2_1.append(p5);
        return com.crashlytics.android.core.NativeFileUtils.readFile(new java.io.File(v1, v2_1.toString()));
    }

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


    private void finalizeMostRecentNativeCrash(android.content.Context p11, java.io.File p12, String p13)
    {
        String v0_0 = com.crashlytics.android.core.NativeFileUtils.minidumpFromDirectory(p12);
        String v1_1 = com.crashlytics.android.core.NativeFileUtils.metadataJsonFromDirectory(p12);
        java.io.File v11_2 = com.crashlytics.android.core.NativeFileUtils.binaryImagesJsonFromDirectory(p12, p11);
        if ((v0_0 != null) && (v0_0.length != 0)) {
            com.crashlytics.android.core.CrashlyticsController.recordFatalExceptionAnswersEvent(p13, "<native-crash: minidump>");
            String v12_3 = this.readFile(p13, "BeginSession.json");
            byte[] v2_1 = this.readFile(p13, "SessionApp.json");
            byte[] v3_1 = this.readFile(p13, "SessionDevice.json");
            byte[] v4_1 = this.readFile(p13, "SessionOS.json");
            byte[] v5_3 = com.crashlytics.android.core.NativeFileUtils.readFile(new com.crashlytics.android.core.MetaDataStore(this.getFilesDir()).getUserDataFileForSession(p13));
            byte[] v6_2 = new com.crashlytics.android.core.LogFileManager(this.crashlyticsCore.getContext(), this.logFileDirectoryProvider, p13);
            byte[] v7_2 = v6_2.getBytesForLog();
            v6_2.clearLog();
            byte[] v6_6 = com.crashlytics.android.core.NativeFileUtils.readFile(new com.crashlytics.android.core.MetaDataStore(this.getFilesDir()).getKeysFileForSession(p13));
            java.io.File v8_3 = new java.io.File(this.fileStore.a(), p13);
            if (v8_3.mkdir()) {
                this.gzipIfNotEmpty(v0_0, new java.io.File(v8_3, "minidump"));
                this.gzipIfNotEmpty(v1_1, new java.io.File(v8_3, "metadata"));
                this.gzipIfNotEmpty(v11_2, new java.io.File(v8_3, "binaryImages"));
                this.gzipIfNotEmpty(v12_3, new java.io.File(v8_3, "session"));
                this.gzipIfNotEmpty(v2_1, new java.io.File(v8_3, "app"));
                this.gzipIfNotEmpty(v3_1, new java.io.File(v8_3, "device"));
                this.gzipIfNotEmpty(v4_1, new java.io.File(v8_3, "os"));
                this.gzipIfNotEmpty(v5_3, new java.io.File(v8_3, "user"));
                this.gzipIfNotEmpty(v7_2, new java.io.File(v8_3, "logs"));
                this.gzipIfNotEmpty(v6_6, new java.io.File(v8_3, "keys"));
                return;
            } else {
                io.fabric.sdk.android.c.g().a("CrashlyticsCore", "Couldn\'t create native sessions directory");
                return;
            }
        } else {
            java.io.File v11_1 = io.fabric.sdk.android.c.g();
            String v0_2 = new StringBuilder();
            v0_2.append("No minidump data found in directory ");
            v0_2.append(p12);
            v11_1.d("CrashlyticsCore", v0_2.toString());
            return;
        }
    }

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


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

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


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

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


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

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


    private java.io.File getLibraryFile(String p2)
    {
        java.io.File v0_1 = new java.io.File(p2);
        if (!v0_1.exists()) {
            v0_1 = this.correctDataPath(v0_1);
        }
        return v0_1;
    }

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


    private java.io.File correctDataPath(java.io.File p5)
    {
        if (android.os.Build$VERSION.SDK_INT >= 9) {
            if (p5.getAbsolutePath().startsWith("/data")) {
                try {
                    p5 = new java.io.File(this.context.getPackageManager().getApplicationInfo(this.context.getPackageName(), 0).nativeLibraryDir, p5.getName());
                } catch (android.content.pm.PackageManager$NameNotFoundException v0_4) {
                    io.fabric.sdk.android.c.g().e("CrashlyticsCore", "Error getting ApplicationInfo", v0_4);
                }
            }
            return p5;
        } else {
            return p5;
        }
    }

Method com.baidu.android.pushservice.richmedia.a.b() calling method java.io.File.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.richmedia.a.a() calling method java.io.File.<init>()


    private static void a(java.io.File p17, String p18)
    {
        try {
            int v8_0 = new java.io.FileInputStream(p17);
            try {
                int v9_1 = new java.io.BufferedInputStream(v8_0);
                try {
                    int v10_1 = new java.util.zip.ZipInputStream(v9_1);
                    java.io.FileOutputStream v11 = 0;
                    java.io.BufferedOutputStream v12 = 0;
                    try {
                        while(true) {
                            Throwable v0_2 = v10_1.getNextEntry();
                            v11 = java.io.FileOutputStream v1_0;
                            v12 = java.io.BufferedOutputStream v3_1;
                            java.io.FileOutputStream v1_1 = new java.io.Closeable[5];
                            v1_1[0] = v8_0;
                            v1_1[1] = v10_1;
                            v1_1[2] = v11;
                            v1_1[3] = v12;
                            v1_1[4] = v9_1;
                            com.baidu.android.pushservice.e.b.a(v1_1);
                            throw Throwable v0_0;
                        }
                    } catch (Throwable v0_0) {
                    } catch (Exception) {
                        int v16_0 = v10_1;
                        String v2_1 = 2;
                        java.io.BufferedOutputStream v3_3 = 3;
                        int v7_2 = 4;
                        Throwable v0_4 = new java.io.Closeable[5];
                        v0_4[0] = v8_0;
                        v0_4[1] = v16_0;
                        v0_4[v2_1] = v11;
                        v0_4[v3_3] = v12;
                        v0_4[v7_2] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v0_4);
                        return;
                    }
                    if (v0_2 == null) {
                        v0_4 = new java.io.Closeable[5];
                        v0_4[0] = v8_0;
                        v0_4[1] = v10_1;
                        v0_4[2] = v11;
                        v0_4[3] = v12;
                        v0_4[4] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v0_4);
                        return;
                    } else {
                        int v7_3;
                        byte[] v14 = new byte[4096];
                        java.io.File v15_0 = v0_2.getName();
                        if (v15_0.length() <= 0) {
                            v7_3 = 0;
                        } else {
                            v7_3 = v15_0.split("/");
                        }
                        java.io.FileOutputStream v1_6 = new StringBuilder();
                        v1_6.append(p18);
                        v1_6.append("/");
                        v1_6.append(v7_3[(v7_3.length - 1)]);
                        java.io.File v15_2 = new java.io.File(v1_6.toString());
                        if (!v0_2.isDirectory()) {
                            Throwable v0_7 = new java.io.File(v15_2.getParent());
                            if (!v0_7.exists()) {
                                v0_7.mkdirs();
                            }
                            if (!v15_2.exists()) {
                                v15_2.createNewFile();
                            }
                            v1_0 = new java.io.FileOutputStream(v15_2);
                            try {
                                v3_1 = new java.io.BufferedOutputStream(v1_0, 4096);
                                try {
                                    while(true) {
                                        Throwable v0_1 = v10_1.read(v14, 0, 4096);
                                        v3_1.write(v14, 0, v0_1);
                                    }
                                    v3_1.flush();
                                    v11 = v1_0;
                                    v12 = v3_1;
                                } catch (Throwable v0_0) {
                                } catch (Exception) {
                                }
                                if (v0_1 != -1) {
                                }
                            } catch (Throwable v0_0) {
                                v11 = v1_0;
                            } catch (Exception) {
                                v11 = v1_0;
                            }
                        }
                    }
                } catch (Throwable v0_0) {
                    v10_1 = 0;
                    v11 = 0;
                    v12 = 0;
                } catch (Exception) {
                    v2_1 = 2;
                    v3_3 = 3;
                    v7_2 = 4;
                    v11 = 0;
                    v12 = 0;
                    v16_0 = 0;
                }
            } catch (Throwable v0_0) {
                v9_1 = 0;
            } catch (Exception) {
                v2_1 = 2;
                v3_3 = 3;
                v7_2 = 4;
                v9_1 = 0;
            }
        } catch (Throwable v0_0) {
            v8_0 = 0;
        } catch (Exception) {
            v2_1 = 2;
            v3_3 = 3;
            v7_2 = 4;
            v8_0 = 0;
        }
    }

Method com.baidu.android.pushservice.richmedia.a.a() calling method java.io.File.<init>()


    private static void a(java.io.File p17, String p18)
    {
        try {
            int v8_0 = new java.io.FileInputStream(p17);
            try {
                int v9_1 = new java.io.BufferedInputStream(v8_0);
                try {
                    int v10_1 = new java.util.zip.ZipInputStream(v9_1);
                    java.io.FileOutputStream v11 = 0;
                    java.io.BufferedOutputStream v12 = 0;
                    try {
                        while(true) {
                            Throwable v0_2 = v10_1.getNextEntry();
                            v11 = java.io.FileOutputStream v1_0;
                            v12 = java.io.BufferedOutputStream v3_1;
                        }
                    } catch (Throwable v0_0) {
                        java.io.FileOutputStream v1_1 = new java.io.Closeable[5];
                        v1_1[0] = v8_0;
                        v1_1[1] = v10_1;
                        v1_1[2] = v11;
                        v1_1[3] = v12;
                        v1_1[4] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v1_1);
                        throw v0_0;
                    } catch (Exception) {
                        int v16_0 = v10_1;
                        String v2_1 = 2;
                        java.io.BufferedOutputStream v3_3 = 3;
                        int v7_2 = 4;
                        Throwable v0_4 = new java.io.Closeable[5];
                        v0_4[0] = v8_0;
                        v0_4[1] = v16_0;
                        v0_4[v2_1] = v11;
                        v0_4[v3_3] = v12;
                        v0_4[v7_2] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v0_4);
                        return;
                    }
                    if (v0_2 == null) {
                        v0_4 = new java.io.Closeable[5];
                        v0_4[0] = v8_0;
                        v0_4[1] = v10_1;
                        v0_4[2] = v11;
                        v0_4[3] = v12;
                        v0_4[4] = v9_1;
                        com.baidu.android.pushservice.e.b.a(v0_4);
                        return;
                    } else {
                        int v7_3;
                        byte[] v14 = new byte[4096];
                        java.io.File v15_0 = v0_2.getName();
                        if (v15_0.length() <= 0) {
                            v7_3 = 0;
                        } else {
                            v7_3 = v15_0.split("/");
                        }
                        java.io.FileOutputStream v1_6 = new StringBuilder();
                        v1_6.append(p18);
                        v1_6.append("/");
                        v1_6.append(v7_3[(v7_3.length - 1)]);
                        java.io.File v15_2 = new java.io.File(v1_6.toString());
                        if (!v0_2.isDirectory()) {
                            Throwable v0_7 = new java.io.File(v15_2.getParent());
                            if (!v0_7.exists()) {
                                v0_7.mkdirs();
                            }
                            if (!v15_2.exists()) {
                                v15_2.createNewFile();
                            }
                            v1_0 = new java.io.FileOutputStream(v15_2);
                            try {
                                v3_1 = new java.io.BufferedOutputStream(v1_0, 4096);
                                try {
                                    while(true) {
                                        Throwable v0_1 = v10_1.read(v14, 0, 4096);
                                        v3_1.write(v14, 0, v0_1);
                                    }
                                    v3_1.flush();
                                } catch (Throwable v0_0) {
                                    v11 = v1_0;
                                    v12 = v3_1;
                                } catch (Exception) {
                                }
                                if (v0_1 != -1) {
                                }
                            } catch (Throwable v0_0) {
                                v11 = v1_0;
                            } catch (Exception) {
                                v11 = v1_0;
                            }
                        }
                    }
                } catch (Throwable v0_0) {
                    v10_1 = 0;
                    v11 = 0;
                    v12 = 0;
                } catch (Exception) {
                    v2_1 = 2;
                    v3_3 = 3;
                    v7_2 = 4;
                    v11 = 0;
                    v12 = 0;
                    v16_0 = 0;
                }
            } catch (Throwable v0_0) {
                v9_1 = 0;
            } catch (Exception) {
                v2_1 = 2;
                v3_3 = 3;
                v7_2 = 4;
                v9_1 = 0;
            }
        } catch (Throwable v0_0) {
            v8_0 = 0;
        } catch (Exception) {
            v2_1 = 2;
            v3_3 = 3;
            v7_2 = 4;
            v8_0 = 0;
        }
    }

Method com.baidu.android.pushservice.richmedia.a.a() calling method java.io.File.<init>()


    private void a(com.baidu.android.pushservice.richmedia.e p5)
    {
        try {
            if (this.a != null) {
                if (p5 != null) {
                    if (p5.c != 0) {
                        if (p5.c != 1) {
                            Throwable v0_4;
                            com.baidu.android.pushservice.richmedia.f v5_2;
                            if (p5.c != 3) {
                                if (p5.c != 2) {
                                    if (p5.c != -1) {
                                        ark>com.baidu.android.pushservice.richmedia.aark>.b(this.d);
                                        return;
                                    } else {
                                        v5_2 = this.a;
                                        v0_4 = new Throwable("IOException");
                                    }
                                } else {
                                    this.a.b(this);
                                    ark>com.baidu.android.pushservice.richmedia.aark>.b(this.d);
                                    return;
                                }
                            } else {
                                v5_2 = this.a;
                                v0_4 = new Throwable("error: request error,request is null or fileName is null.");
                            }
                            v5_2.a(this, v0_4);
                        } else {
                            Throwable v0_6 = this.a;
                            java.io.File v2_1 = new StringBuilder();
                            v2_1.append("error: response http error errorCode=");
                            v2_1.append(p5.b);
                            v0_6.a(this, new Throwable(v2_1.toString()));
                        }
                    } else {
                        Throwable v0_8 = p5.e;
                        if ((p5.a == com.baidu.android.pushservice.richmedia.c$a.a) && (v0_8 != null)) {
                            String v1_7 = v0_8.substring(0, v0_8.lastIndexOf("."));
                            java.io.File v2_6 = new java.io.File(v0_8);
                            ark>com.baidu.android.pushservice.richmedia.aark>.a(v2_6, v1_7);
                            v2_6.delete();
                            p5.e = v1_7;
                        }
                        this.a.a(this, p5);
                    }
                    ark>com.baidu.android.pushservice.richmedia.aark>.b(this.d);
                    return;
                } else {
                }
            }
        } catch (com.baidu.android.pushservice.richmedia.f v5_7) {
            ark>com.baidu.android.pushservice.richmedia.aark>.b(this.d);
            throw v5_7;
        }
        ark>com.baidu.android.pushservice.richmedia.aark>.b(this.d);
        return;
    }

Method com.baidu.android.pushservice.richmedia.MediaListActivity.a() calling method java.io.File.<init>()


    private void a(String p5, String p6, String p7)
    {
        com.baidu.android.pushservice.richmedia.c v5_1 = android.net.Uri.parse(p5);
        String v0_1 = v5_1.getPath();
        com.baidu.android.pushservice.richmedia.c$a v1_0 = new String();
        if (v0_1.length() > 0) {
            v1_0 = v0_1.substring(0, v0_1.lastIndexOf(47));
        }
        StringBuilder v2_3 = new StringBuilder();
        v2_3.append(android.os.Environment.getExternalStorageDirectory().getAbsolutePath());
        v2_3.append("/");
        v2_3.append("baidu/pushservice/files");
        v2_3.append("/");
        v2_3.append(v5_1.getAuthority());
        v2_3.append("/");
        v2_3.append(v1_0);
        String v0_2 = new java.io.File(v2_3.toString());
        com.baidu.android.pushservice.richmedia.c v5_3 = com.baidu.android.pushservice.richmedia.d.a(com.baidu.android.pushservice.richmedia.c$a.a, v5_1.toString());
        v5_3.b = v0_2.getAbsolutePath();
        v5_3.c = p6;
        v5_3.d = p7;
        new com.baidu.android.pushservice.richmedia.a(this, new ark>com.baidu.android.pushservice.richmedia.MediaListActivityark>$4(this), v5_3).start();
        return;
    }

Method com.baidu.android.pushservice.richmedia.MediaListActivity$3$2.onClick() calling method java.io.File.<init>()


    public void onClick(android.content.DialogInterface p3, int p4)
    {
        android.content.Intent v3_3 = ((String) ((java.util.Map) this.b.a.a.get(((int) this.a))).get(com.baidu.android.pushservice.richmedia.MediaListActivity.a()));
        com.baidu.android.pushservice.richmedia.MediaListActivity v4_2 = com.baidu.android.pushservice.c.a.a(this.b.a, v3_3);
        if (v4_2 != null) {
            new java.io.File(v4_2.e).delete();
        }
        com.baidu.android.pushservice.c.a.b(this.b.a, v3_3);
        android.content.Intent v3_6 = new android.content.Intent();
        v3_6.setClass(this.b.a, com.baidu.android.pushservice.richmedia.MediaListActivity);
        this.b.a.startActivity(v3_6);
        return;
    }

Method com.baidu.android.pushservice.richmedia.MediaListActivity$2.onItemClick() calling method java.io.File.<init>()


    public void onItemClick(android.widget.AdapterView p1, android.view.View p2, int p3, long p4)
    {
        com.baidu.android.pushservice.richmedia.MediaListActivity v1_2 = com.baidu.android.pushservice.c.a.a(this.a, ((String) ((java.util.HashMap) p1.getItemAtPosition(p3)).get(com.baidu.android.pushservice.richmedia.MediaListActivity.a())));
        if (v1_2 != null) {
            if (v1_2.i != com.baidu.android.pushservice.richmedia.a.f) {
                com.baidu.android.pushservice.richmedia.MediaListActivity.a(this.a, v1_2.b, v1_2.c, v1_2.d);
            } else {
                android.content.Intent v2_2 = v1_2.e;
                com.baidu.android.pushservice.richmedia.MediaListActivity v1_5 = v1_2.f;
                if (v1_5.length() > 0) {
                    com.baidu.android.pushservice.richmedia.MediaListActivity v1_10;
                    android.content.ContentResolver v3_5 = new StringBuilder();
                    v3_5.append(v2_2);
                    v3_5.append("/");
                    v3_5.append(v1_5.substring(0, v1_5.lastIndexOf(".")));
                    v3_5.append("/index.html");
                    com.baidu.android.pushservice.richmedia.MediaListActivity v1_8 = v3_5.toString();
                    android.content.Intent v2_7 = new android.content.Intent();
                    v2_7.setClass(this.a, com.baidu.android.pushservice.richmedia.MediaViewActivity);
                    android.content.ContentResolver v3_7 = this.a;
                    android.content.ContentResolver v3_8 = com.baidu.android.pushservice.i.l.A(v3_7, v3_7.getPackageName());
                    android.net.Uri v4_6 = new java.io.File(v1_8);
                    if (v3_8 < 24) {
                        v1_10 = android.net.Uri.fromFile(v4_6);
                    } else {
                        com.baidu.android.pushservice.richmedia.MediaListActivity v1_12 = new android.content.ContentValues(1);
                        v1_12.put("_data", v4_6.getAbsolutePath());
                        v1_10 = this.a.getContentResolver().insert(android.provider.MediaStore$Images$Media.EXTERNAL_CONTENT_URI, v1_12);
                    }
                    v2_7.setData(v1_10);
                    v2_7.addFlags(268435456);
                    this.a.startActivity(v2_7);
                }
            }
        }
        return;
    }

Method com.baidu.android.pushservice.j.e.g() calling method java.io.File.<init>()


    private static void g(String p8)
    {
        java.io.FileWriter v0_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig");
        java.io.File v1_2 = new java.io.File(v0_2, ".cuid2");
        try {
            if ((v0_2.exists()) && (!v0_2.isDirectory())) {
                java.util.Random v2_2 = new java.util.Random();
                java.io.File v3 = v0_2.getParentFile();
                String v4 = v0_2.getName();
                do {
                    boolean v6_1 = new StringBuilder();
                    v6_1.append(v4);
                    v6_1.append(v2_2.nextInt());
                    v6_1.append(".tmp");
                    java.io.File v5_1 = new java.io.File(v3, v6_1.toString());
                } while(v5_1.exists());
                v0_2.renameTo(v5_1);
                v5_1.delete();
            }
        } catch (java.io.IOException) {
            return;
        }
        v0_2.mkdirs();
        java.io.FileWriter v0_3 = new java.io.FileWriter(v1_2, 0);
        v0_3.write(p8);
        v0_3.flush();
        v0_3.close();
        return;
    }

Method com.baidu.android.pushservice.j.e.e() calling method java.io.File.<init>()


    private com.baidu.android.pushservice.j.e$b e()
    {
        Exception v0_7 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig/.cuid2");
        if (v0_7.exists()) {
            Exception v0_8 = com.baidu.android.pushservice.j.e.a(v0_7);
            if (!android.text.TextUtils.isEmpty(v0_8)) {
                try {
                    return com.baidu.android.pushservice.j.e$b.a(new String(com.baidu.android.pushservice.j.a.b(com.baidu.android.pushservice.j.e.a, com.baidu.android.pushservice.j.e.a, com.baidu.android.pushservice.j.b.a(v0_8.getBytes()))));
                } catch (Exception v0_5) {
                    v0_5.printStackTrace();
                }
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.j.e.d() calling method java.io.File.<init>()


    private com.baidu.android.pushservice.j.e$b d(String p11)
    {
        String v0_1;
        if (android.os.Build$VERSION.SDK_INT >= 23) {
            v0_1 = 0;
        } else {
            v0_1 = 1;
        }
        if ((v0_1 == null) || (!android.text.TextUtils.isEmpty(p11))) {
            int v6_3;
            boolean v4_1 = "";
            String[] v5_1 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/.cuid");
            if (!v5_1.exists()) {
                v5_1 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig/.cuid");
                v6_3 = 1;
            } else {
                v6_3 = 0;
            }
            try {
                String[] v5_4 = new java.io.BufferedReader(new java.io.FileReader(v5_1));
                int v7_5 = new StringBuilder();
            } catch (java.io.FileNotFoundException) {
                if (android.text.TextUtils.isEmpty(v4_1)) {
                    return 0;
                } else {
                    String v0_6 = new com.baidu.android.pushservice.j.e$b(0);
                    v0_6.a = v4_1;
                    v0_6.b = p11;
                    return v0_6;
                }
            }
            while(true) {
                int v8_0 = v5_4.readLine();
                if (v8_0 == 0) {
                    break;
                }
                v7_5.append(v8_0);
                v7_5.append("\r\n");
            }
            v5_4.close();
            String[] v5_7 = new String(com.baidu.android.pushservice.j.a.b(com.baidu.android.pushservice.j.e.a, com.baidu.android.pushservice.j.e.a, com.baidu.android.pushservice.j.b.a(v7_5.toString().getBytes()))).split("=");
            if ((v5_7 != null) && (v5_7.length == 2)) {
                if ((v0_1 == null) || (!p11.equals(v5_7[0]))) {
                    if (v0_1 != null) {
                        if (v6_3 != 0) {
                        } else {
                            com.baidu.android.pushservice.j.e.b(p11, v4_1);
                        }
                    } else {
                        if (android.text.TextUtils.isEmpty(p11)) {
                            p11 = v5_7[1];
                        }
                        String v0_3 = v5_7[1];
                    }
                } else {
                    v0_3 = v5_7[1];
                }
                v4_1 = v0_3;
            }
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.j.e.b() calling method java.io.File.<init>()


    private static void b(String p7, String p8)
    {
        if (!android.text.TextUtils.isEmpty(p7)) {
            String v0_2 = new StringBuilder();
            v0_2.append(p7);
            v0_2.append("=");
            v0_2.append(p8);
            java.io.FileWriter v7_1 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig");
            String v8_3 = new java.io.File(v7_1, ".cuid");
            try {
                if ((v7_1.exists()) && (!v7_1.isDirectory())) {
                    java.util.Random v1_5 = new java.util.Random();
                    java.io.File v2 = v7_1.getParentFile();
                    String v3 = v7_1.getName();
                    do {
                        boolean v5_1 = new StringBuilder();
                        v5_1.append(v3);
                        v5_1.append(v1_5.nextInt());
                        v5_1.append(".tmp");
                        java.io.File v4_1 = new java.io.File(v2, v5_1.toString());
                    } while(v4_1.exists());
                    v7_1.renameTo(v4_1);
                    v4_1.delete();
                }
            } catch (java.io.IOException) {
                return;
            }
            v7_1.mkdirs();
            java.io.FileWriter v7_3 = new java.io.FileWriter(v8_3, 0);
            v7_3.write(com.baidu.android.pushservice.j.b.a(com.baidu.android.pushservice.j.a.a(com.baidu.android.pushservice.j.e.a, com.baidu.android.pushservice.j.e.a, v0_2.toString().getBytes()), "utf-8"));
            v7_3.flush();
            v7_3.close();
            return;
        } else {
            return;
        }
    }

Method com.baidu.android.pushservice.j.e.b() calling method java.io.File.<init>()


    private com.baidu.android.pushservice.j.e$b b()
    {
        int v4_7;
        com.baidu.android.pushservice.j.e$b v0_1 = this.a(new android.content.Intent("com.baidu.intent.action.GALAXY").setPackage(this.b.getPackageName()), 1);
        String v3_0 = 0;
        if ((v0_1 != null) && (v0_1.size() != 0)) {
            com.baidu.android.pushservice.j.e$b v0_21 = ((com.baidu.android.pushservice.j.e$a) v0_1.get(0));
            v4_7 = v0_21.c;
            if (!v0_21.c) {
                com.baidu.android.pushservice.j.e$b v0_24 = 0;
                while (v0_24 < 3) {
                    android.util.Log.w("DeviceId", "galaxy config err, In the release version of the signature should be matched");
                    v0_24++;
                }
            }
        } else {
            com.baidu.android.pushservice.j.e$b v0_25 = 0;
            while (v0_25 < 3) {
                android.util.Log.w("DeviceId", "galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy");
                v0_25++;
            }
            v4_7 = 0;
        }
        com.baidu.android.pushservice.j.e$b v0_4;
        com.baidu.android.pushservice.j.e$b v0_27 = new java.io.File(this.b.getFilesDir(), "libcuid.so");
        String v5_0 = 0;
        if (!v0_27.exists()) {
            v0_4 = 0;
        } else {
            v0_4 = com.baidu.android.pushservice.j.e$b.a(com.baidu.android.pushservice.j.e.f(com.baidu.android.pushservice.j.e.a(v0_27)));
        }
        if (v0_4 == null) {
            this.c = (this.c | 16);
            String v2_22 = this.a(new android.content.Intent("com.baidu.intent.action.GALAXY"), v4_7);
            if (v2_22 != null) {
                int v4_12 = "files";
                String v6_8 = this.b.getFilesDir();
                if (!"files".equals(v6_8.getName())) {
                    java.io.File v7_3 = new StringBuilder();
                    v7_3.append("fetal error:: app files dir name is unexpectedly :: ");
                    v7_3.append(v6_8.getAbsolutePath());
                    android.util.Log.e("DeviceId", v7_3.toString());
                    v4_12 = v6_8.getName();
                }
                String v2_23 = v2_22.iterator();
                while (v2_23.hasNext()) {
                    String v6_11 = ((com.baidu.android.pushservice.j.e$a) v2_23.next());
                    if (!v6_11.d) {
                        java.io.File v7_7 = new java.io.File(new java.io.File(v6_11.a.dataDir, v4_12), "libcuid.so");
                        if (v7_7.exists()) {
                            v0_4 = com.baidu.android.pushservice.j.e$b.a(com.baidu.android.pushservice.j.e.f(com.baidu.android.pushservice.j.e.a(v7_7)));
                            if (v0_4 != null) {
                                break;
                            }
                        }
                    }
                }
            }
        }
        if (v0_4 == null) {
            v0_4 = com.baidu.android.pushservice.j.e$b.a(com.baidu.android.pushservice.j.e.f(this.b("com.baidu.deviceid.v2")));
        }
        String v2_2 = this.c("android.permission.READ_EXTERNAL_STORAGE");
        if ((v0_4 == null) && (v2_2 != null)) {
            this.c = (this.c | 2);
            v0_4 = this.e();
        }
        if (v0_4 == null) {
            this.c = (this.c | 8);
            v0_4 = this.d();
        }
        if ((v0_4 != null) || (v2_2 == null)) {
            String v2_3 = 0;
        } else {
            this.c = (this.c | 1);
            com.baidu.android.pushservice.j.e$b v0_15 = this.h("");
            v3_0 = 1;
            v2_3 = v0_15;
            v0_4 = this.d(v0_15);
        }
        if (v0_4 == null) {
            this.c = (this.c | 4);
            if (v3_0 == null) {
                v2_3 = this.h("");
            }
            String v3_3;
            v0_4 = new com.baidu.android.pushservice.j.e$b(0);
            String v3_2 = com.baidu.android.pushservice.j.e.c(this.b);
            if (android.os.Build$VERSION.SDK_INT >= 23) {
                int v4_3 = new StringBuilder();
                v4_3.append("com.baidu");
                v4_3.append(v3_2);
                v3_3 = v4_3.toString();
            } else {
                int v4_5 = java.util.UUID.randomUUID().toString();
                String v6_3 = new StringBuilder();
                v6_3.append(v2_3);
                v6_3.append(v3_2);
                v6_3.append(v4_5);
                v3_3 = v6_3.toString();
            }
            v0_4.a = com.baidu.android.pushservice.j.f.a(v3_3.getBytes(), 1);
            v0_4.b = v2_3;
        }
        String v2_6 = new java.io.File(this.b.getFilesDir(), "libcuid.so");
        if (((this.c & 16) != 0) || (!v2_6.exists())) {
            if (android.text.TextUtils.isEmpty(0)) {
                v5_0 = com.baidu.android.pushservice.j.e.e(v0_4.a());
            }
            this.a(v5_0);
        }
        String v2_10 = this.c();
        if ((v2_10 != null) && (((this.c & 2) != 0) || (android.text.TextUtils.isEmpty(this.b("com.baidu.deviceid.v2"))))) {
            if (android.text.TextUtils.isEmpty(v5_0)) {
                v5_0 = com.baidu.android.pushservice.j.e.e(v0_4.a());
            }
            this.a("com.baidu.deviceid.v2", v5_0);
        }
        if (this.c("android.permission.WRITE_EXTERNAL_STORAGE")) {
            String v3_21 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig/.cuid2");
            if (((this.c & 8) != 0) || (!v3_21.exists())) {
                if (android.text.TextUtils.isEmpty(v5_0)) {
                    v5_0 = com.baidu.android.pushservice.j.e.e(v0_4.a());
                }
                com.baidu.android.pushservice.j.e.g(v5_0);
            }
        }
        if ((v2_10 != null) && (((1 & this.c) != 0) || (android.text.TextUtils.isEmpty(this.b("com.baidu.deviceid"))))) {
            this.a("com.baidu.deviceid", v0_4.a);
            this.a("bd_setting_i", v0_4.b);
        }
        if ((v2_10 != null) && (!android.text.TextUtils.isEmpty(v0_4.b))) {
            String v1_10 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "backups/.SystemConfig/.cuid");
            if (((this.c & 2) != 0) || (!v1_10.exists())) {
                com.baidu.android.pushservice.j.e.b(v0_4.b, v0_4.a);
            }
        }
        return v0_4;
    }

Method com.baidu.android.pushservice.j.e.a() calling method java.io.File.<init>()


    private boolean a(String p7)
    {
        Exception v0_5;
        if (android.os.Build$VERSION.SDK_INT < 24) {
            v0_5 = 1;
        } else {
            v0_5 = 0;
        }
        try {
            java.io.FileOutputStream v3_0 = this.b.openFileOutput("libcuid.so", v0_5);
            v3_0.write(p7.getBytes());
            v3_0.flush();
        } catch (Exception v7_4) {
            if (v3_0 != null) {
                try {
                    v3_0.close();
                } catch (Exception v0_1) {
                    ark>com.baidu.android.pushservice.j.eark>.b(v0_1);
                }
            }
            throw v7_4;
        } catch (Exception v7_2) {
            ark>com.baidu.android.pushservice.j.eark>.b(v7_2);
            if (v3_0 != null) {
                try {
                    v3_0.close();
                } catch (Exception v7_3) {
                    ark>com.baidu.android.pushservice.j.eark>.b(v7_3);
                }
            }
            return 0;
        }
        if (v3_0 != null) {
            try {
                v3_0.close();
            } catch (Exception v7_5) {
                ark>com.baidu.android.pushservice.j.eark>.b(v7_5);
            }
        }
        if (v0_5 != null) {
            return 1;
        } else {
            return ark>com.baidu.android.pushservice.j.eark>$c.a(new java.io.File(this.b.getFilesDir(), "libcuid.so").getAbsolutePath(), 436);
        }
    }

Method com.baidu.android.pushservice.i.l.b() calling method java.io.File.<init>()


    public static declared_synchronized void b(String p14, android.content.Context p15)
    {
        try {
            if (com.baidu.android.pushservice.i.l.O(p15)) {
                if (com.baidu.android.pushservice.a.a(p15)) {
                    java.io.FileWriter v15_2 = 0;
                    try {
                        java.io.FileWriter v3_2 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date());
                        int v4_4 = new StringBuilder();
                        v4_4.append(v3_2);
                        v4_4.append(" ");
                        v4_4.append(p14);
                        v4_4.append("\n\r");
                        Throwable v14_5 = v4_4.toString();
                        java.io.FileWriter v3_5 = android.os.Environment.getExternalStorageDirectory().getAbsolutePath();
                        int v4_6 = new java.io.File(v3_5, "baidu/pushservice/files");
                    } catch (Throwable) {
                        Throwable v14_1 = new java.io.Closeable[1];
                        v14_1[0] = v15_2;
                        com.baidu.android.pushservice.e.b.a(v14_1);
                        return;
                    }
                    if (!v4_6.exists()) {
                        v4_6.mkdirs();
                    }
                    java.text.SimpleDateFormat v5_3 = new java.text.SimpleDateFormat("yyyyMMdd");
                    java.util.Date v6_2 = new java.util.Date();
                    int v7_1 = v5_3.format(v6_2);
                    java.io.FileWriter v9_1 = new StringBuilder();
                    v9_1.append("baidu/pushservice/files/msg");
                    v9_1.append(v7_1);
                    v9_1.append(".log");
                    java.io.File v8_1 = new java.io.File(v3_5, v9_1.toString());
                    if (!v8_1.exists()) {
                        java.io.FileWriter v3_7 = v4_6.listFiles();
                        int v4_7 = v3_7.length;
                        int v7_0 = 0;
                        while (v7_0 < v4_7) {
                            java.io.FileWriter v9_2 = v3_7[v7_0];
                            int v10_3 = v9_2.getName();
                            if ((v10_3.startsWith("msg")) && ((v10_3.length() > 0) && (((int) Math.abs(((v5_3.parse(v10_3.substring(3, 11)).getTime() - v6_2.getTime()) / 86400000))) >= 7))) {
                                v9_2.delete();
                            }
                            v7_0++;
                        }
                        v8_1.createNewFile();
                    }
                    if (v8_1.exists()) {
                        java.io.FileWriter v3_10 = new java.io.FileWriter(v8_1, 1);
                        try {
                            v3_10.write(v14_5);
                            v15_2 = v3_10;
                        } catch (Throwable v14_2) {
                            v15_2 = v3_10;
                            java.io.Closeable[] v2_0 = new java.io.Closeable[1];
                            v2_0[0] = v15_2;
                            com.baidu.android.pushservice.e.b.a(v2_0);
                            throw v14_2;
                        } catch (Throwable) {
                            v15_2 = v3_10;
                        }
                    }
                    v14_1 = new java.io.Closeable[1];
                    v14_1[0] = v15_2;
                } else {
                    return;
                }
            } else {
                return;
            }
        } catch (Throwable v14_3) {
            throw v14_3;
        }
    }

Method com.baidu.android.pushservice.i.a.a() calling method java.io.File.<init>()


    private static boolean a(android.content.Context p6, String p7, Object p8)
    {
        if (com.baidu.android.pushservice.i.l.u(p6, "android.permission.WRITE_EXTERNAL_STORAGE")) {
            try {
                String v2_1 = ark>com.baidu.android.pushservice.i.aark>.a(p6);
                java.io.FileOutputStream v4 = 0;
            } catch (java.io.Closeable[] v6_7) {
                throw v6_7;
            }
            if (v2_1.opt(p7) != null) {
                v2_1.remove(p7);
            }
            v2_1.put(p7, p8);
            java.io.FileOutputStream v7_2 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/files");
            if (!v7_2.exists()) {
                v7_2.mkdirs();
            }
            java.io.File v8_4 = new java.io.File(v7_2, ".info");
            java.io.Closeable[] v6_1 = com.baidu.android.pushservice.jni.BaiduAppSSOJni.getEncrypted(p6, "", v2_1.toString());
            if (!android.text.TextUtils.isEmpty(v6_1)) {
                if (v8_4.exists()) {
                    v8_4.delete();
                }
                v8_4.createNewFile();
                java.io.FileOutputStream v7_7 = new java.io.FileOutputStream(v8_4);
                v7_7.write(v6_1.getBytes());
                java.io.Closeable[] v6_5 = new java.io.Closeable[1];
                v6_5[0] = v7_7;
                com.baidu.android.pushservice.e.b.a(v6_5);
                return 1;
            } else {
                java.io.Closeable[] v6_6 = new java.io.Closeable[1];
                v6_6[0] = 0;
                com.baidu.android.pushservice.e.b.a(v6_6);
                return 0;
            }
        }
        return 0;
    }

Method com.baidu.android.pushservice.i.a.a() calling method java.io.File.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.g.b() calling method java.io.File.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.d.m() calling method java.io.File.<init>()


    private void m()
    {
        String v0_8 = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "baidu/pushservice/pushservice.cfg");
        if (v0_8.exists()) {
            String v1_7 = new java.util.Properties();
            android.content.Context v2_0 = 0;
            try {
                String v3_2 = new java.io.FileInputStream(v0_8);
                try {
                    v1_7.load(v3_2);
                    String v0_3 = v1_7.getProperty("rtcseed");
                } catch (String v0_12) {
                    if (v3_2 != null) {
                        try {
                            v3_2.close();
                        } catch (String v1_8) {
                            android.content.Context v2_13 = new StringBuilder();
                            v2_13.append("error ");
                            v2_13.append(v1_8.getMessage());
                            com.baidu.android.pushservice.f.a.b("PushConnection", v2_13.toString(), this.l.getApplicationContext());
                        }
                    }
                    throw v0_12;
                } catch (String v0_1) {
                    v2_0 = v3_2;
                    String v3_4 = new StringBuilder();
                    v3_4.append("getTestConfig exception ");
                    v3_4.append(v0_1.getMessage());
                    com.baidu.android.pushservice.f.a.b("PushConnection", v3_4.toString(), this.l.getApplicationContext());
                    if (v2_0 != null) {
                        try {
                            v2_0.close();
                        } catch (String v0_9) {
                            String v1_3 = "PushConnection";
                            android.content.Context v2_8 = new StringBuilder();
                            v2_8.append("error ");
                            v2_8.append(v0_9.getMessage());
                            com.baidu.android.pushservice.f.a.b(v1_3, v2_8.toString(), this.l.getApplicationContext());
                        }
                    }
                }
                if ((v0_3 != null) && (v0_3.length() > 0)) {
                    android.content.Context v2_5 = new org.json.JSONArray(v0_3);
                    int v4_0 = 0;
                    while (v4_0 < v2_5.length()) {
                        this.v[v4_0] = v2_5.getInt(v4_0);
                        this.w = 0;
                        this.x = 0;
                        this.z = 0;
                        v4_0++;
                    }
                }
                String v0_6 = v1_7.getProperty("originseed");
                if ((v0_6 != null) && (v0_6.length() > 0)) {
                    this.w = Integer.parseInt(v0_6);
                }
                try {
                    v3_2.close();
                } catch (String v0_9) {
                    v1_3 = "PushConnection";
                    v2_8 = new StringBuilder();
                }
            } catch (String v0_12) {
                v3_2 = v2_0;
            } catch (String v0_1) {
            }
        }
        return;
    }

Method com.baidu.android.pushservice.c.c.h() calling method java.io.File.<init>()


    private static com.baidu.android.pushservice.c.c$c h(android.content.Context p8)
    {
        if (com.baidu.android.pushservice.c.c.a == null) {
            String v2_10 = new StringBuilder();
            v2_10.append(android.os.Environment.getDataDirectory().getAbsolutePath());
            v2_10.append("/data");
            v2_10.append(java.io.File.separator);
            v2_10.append(p8.getPackageName());
            v2_10.append("/database");
            Throwable v1_1 = new java.io.File(v2_10.toString());
            if (!v1_1.exists()) {
                v1_1.mkdirs();
            }
            String v2_3 = new StringBuilder();
            v2_3.append(v1_1.getAbsolutePath());
            v2_3.append(java.io.File.separator);
            v2_3.append("pushinfo.db");
            Throwable v1_6 = v2_3.toString();
            if (android.os.Build$VERSION.SDK_INT < 11) {
                com.baidu.android.pushservice.c.c.a = new com.baidu.android.pushservice.c.c$c(p8, v1_6, 0, 5);
            } else {
                com.baidu.android.pushservice.c.c.a = new com.baidu.android.pushservice.c.c$c(p8, v1_6, 5, new com.baidu.android.pushservice.c.c$b(0));
            }
            int v8_2 = com.baidu.android.pushservice.c.c.a.getWritableDatabase();
            Throwable v1_9 = new StringBuilder();
            v1_9.append(com.baidu.android.pushservice.c.c$d.e.name());
            v1_9.append(" < ");
            v1_9.append((System.currentTimeMillis() - 259200000));
            v8_2.delete("PushMsgInfos", v1_9.toString(), 0);
            if (v8_2 != 0) {
                v8_2.close();
            }
        }
        return com.baidu.android.pushservice.c.c.a;
    }

Method com.baidu.android.pushservice.c.c$b.a() calling method java.io.File.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.c.a$d.a() calling method java.io.File.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.b.b.a() calling method java.io.File.<init>()


    public boolean a()
    {
        byte[] v0_1;
        if (!new java.io.File(this.c).exists()) {
            v0_1 = com.baidu.android.pushservice.b.a.a();
        } else {
            v0_1 = com.baidu.android.pushservice.b.a.a(this.c);
        }
        if (!android.text.TextUtils.isEmpty(v0_1)) {
            try {
                byte[] v0_3 = com.baidu.android.pushservice.j.b.a(v0_1.getBytes());
            } catch (Exception) {
            }
            if ((v0_3 != null) && (v0_3.length > 0)) {
                this.b = new String(com.baidu.android.pushservice.jni.BaiduAppSSOJni.decryptAES(v0_3, v0_3.length, 0));
            }
        }
        if (!android.text.TextUtils.isEmpty(this.b)) {
            return 1;
        } else {
            return 0;
        }
    }

Method com.baidu.android.pushservice.b.a.b() calling method java.io.File.<init>()


    private static java.io.InputStream b(String p2)
    {
        java.io.FileInputStream v0 = 0;
        try {
            java.io.File v1_1 = new java.io.File(p2);
        } catch (Exception) {
            return v0;
        }
        if (!v1_1.exists()) {
            return v0;
        } else {
            v0 = new java.io.FileInputStream(v1_1);
            return v0;
        }
    }

Method com.baidu.android.pushservice.b.a.a() calling method java.io.File.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.PushServiceReceiver.a() calling method java.io.File.<init>()


    public static void a(android.content.Context p6, com.baidu.android.pushservice.message.PublicMsg p7)
    {
        if (android.os.Environment.getExternalStorageState().equals("mounted")) {
            if ((p7 != 0) && (p7.mUrl != null)) {
                com.baidu.android.pushservice.richmedia.c v0_2 = android.net.Uri.parse(p7.mUrl);
                ark>com.baidu.android.pushservice.PushServiceReceiverark>$a v2_0 = v0_2.getPath();
                if ((!android.text.TextUtils.isEmpty(v2_0)) && (!v2_0.contains("../"))) {
                    StringBuilder v4_1 = new StringBuilder();
                    v4_1.append(android.os.Environment.getExternalStorageDirectory().getAbsolutePath());
                    v4_1.append("/");
                    v4_1.append("baidu/pushservice/files");
                    v4_1.append("/");
                    v4_1.append(v0_2.getAuthority());
                    v4_1.append("/");
                    v4_1.append(v2_0.substring(0, v2_0.lastIndexOf(47)));
                    java.io.File v3_4 = new java.io.File(v4_1.toString());
                    com.baidu.android.pushservice.richmedia.c v0_5 = com.baidu.android.pushservice.richmedia.d.a(com.baidu.android.pushservice.richmedia.c$a.a, v0_2.toString());
                    v0_5.a = p7.mPkgName;
                    v0_5.b = v3_4.getAbsolutePath();
                    v0_5.c = p7.mTitle;
                    v0_5.d = p7.mDescription;
                    new com.baidu.android.pushservice.richmedia.a(p6, new ark>com.baidu.android.pushservice.PushServiceReceiverark>$a(p6, p7), v0_5).start();
                }
            }
            return;
        } else {
            android.widget.Toast v6_1 = android.widget.Toast.makeText(p6, "\u8bf7\u63d2\u5165SD\u5361", 1);
            v6_1.setGravity(17, 0, 0);
            v6_1.show();
            return;
        }
    }

Method com.airbnb.lottie.network.b.e() calling method java.io.File.<init>()


    private com.airbnb.lottie.k e()
    {
        com.airbnb.lottie.k v0_1 = new StringBuilder();
        v0_1.append("Fetching ");
        v0_1.append(this.b);
        com.airbnb.lottie.c.a(v0_1.toString());
        com.airbnb.lottie.k v0_7 = ((java.net.HttpURLConnection) new java.net.URL(this.b).openConnection());
        v0_7.setRequestMethod("GET");
        v0_7.connect();
        if ((v0_7.getErrorStream() == null) && (v0_7.getResponseCode() == 200)) {
            String v1_8 = v0_7.getContentType();
            Object v2_4 = -1;
            java.io.FileInputStream v3_5 = v1_8.hashCode();
            int v5_3 = 1;
            if (v3_5 == -1248325150) {
                if (v1_8.equals("application/zip")) {
                    v2_4 = 0;
                }
            } else {
                if ((v3_5 == -43840953) && (v1_8.equals("application/json"))) {
                    v2_4 = 1;
                }
            }
            com.airbnb.lottie.k v0_11;
            String v1_13;
            if (v2_4 == null) {
                com.airbnb.lottie.c.a("Handling zip response.");
                v1_13 = com.airbnb.lottie.network.FileExtension.Zip;
                v0_11 = com.airbnb.lottie.e.a(new java.util.zip.ZipInputStream(new java.io.FileInputStream(this.c.a(v0_7.getInputStream(), v1_13))), this.b);
            } else {
                com.airbnb.lottie.c.a("Received json response.");
                v1_13 = com.airbnb.lottie.network.FileExtension.Json;
                v0_11 = com.airbnb.lottie.e.a(new java.io.FileInputStream(new java.io.File(this.c.a(v0_7.getInputStream(), v1_13).getAbsolutePath())), this.b);
            }
            if (v0_11.a() != null) {
                this.c.a(v1_13);
            }
            String v1_16 = new StringBuilder();
            v1_16.append("Completed fetch from network. Success: ");
            if (v0_11.a() == null) {
                v5_3 = 0;
            }
            v1_16.append(v5_3);
            com.airbnb.lottie.c.a(v1_16.toString());
            return v0_11;
        } else {
            String v1_1 = new java.io.BufferedReader(new java.io.InputStreamReader(v0_7.getErrorStream()));
            Object v2_2 = new StringBuilder();
            while(true) {
                java.io.FileInputStream v3_1 = v1_1.readLine();
                if (v3_1 == null) {
                    break;
                }
                v2_2.append(v3_1);
                v2_2.append(10);
            }
            StringBuilder v4_1 = new StringBuilder();
            v4_1.append("Unable to fetch ");
            v4_1.append(this.b);
            v4_1.append(". Failed with ");
            v4_1.append(v0_7.getResponseCode());
            v4_1.append("\n");
            v4_1.append(v2_2);
            return new com.airbnb.lottie.k(new IllegalArgumentException(v4_1.toString()));
        }
    }

Method com.airbnb.lottie.network.a.a() calling method java.io.File.<init>()


    void a(com.airbnb.lottie.network.FileExtension p5)
    {
        String v0_6 = new java.io.File(this.a.getCacheDir(), ark>com.airbnb.lottie.network.aark>.a(this.b, p5, 1));
        java.io.File v1_3 = new java.io.File(v0_6.getAbsolutePath().replace(".temp", ""));
        String v5_3 = v0_6.renameTo(v1_3);
        String v2_2 = new StringBuilder();
        v2_2.append("Copying temp file to real file (");
        v2_2.append(v1_3);
        v2_2.append(")");
        com.airbnb.lottie.c.a(v2_2.toString());
        if (v5_3 == null) {
            String v5_6 = new StringBuilder();
            v5_6.append("Unable to rename cache file ");
            v5_6.append(v0_6.getAbsolutePath());
            v5_6.append(" to ");
            v5_6.append(v1_3.getAbsolutePath());
            v5_6.append(".");
            com.airbnb.lottie.c.b(v5_6.toString());
        }
        return;
    }

Method com.airbnb.lottie.network.a.a() calling method java.io.File.<init>()


    java.io.File a(java.io.InputStream p5, com.airbnb.lottie.network.FileExtension p6)
    {
        Throwable v0_3 = new java.io.File(this.a.getCacheDir(), ark>com.airbnb.lottie.network.aark>.a(this.b, p6, 1));
        try {
            Throwable v6_1 = new java.io.FileOutputStream(v0_3);
            try {
                byte[] v1_2 = new byte[1024];
            } catch (Throwable v0_1) {
                v6_1.close();
                throw v0_1;
            }
            while(true) {
                int v2 = p5.read(v1_2);
                if (v2 == -1) {
                    break;
                }
                v6_1.write(v1_2, 0, v2);
            }
            v6_1.flush();
            v6_1.close();
            p5.close();
            return v0_3;
        } catch (Throwable v6_2) {
            p5.close();
            throw v6_2;
        }
    }

Method com.airbnb.lottie.network.a.a() calling method java.io.File.<init>()


    private java.io.File a(String p5)
    {
        java.io.File v0_3 = new java.io.File(this.a.getCacheDir(), ark>com.airbnb.lottie.network.aark>.a(p5, com.airbnb.lottie.network.FileExtension.Json, 0));
        if (!v0_3.exists()) {
            java.io.File v0_2 = new java.io.File(this.a.getCacheDir(), ark>com.airbnb.lottie.network.aark>.a(p5, com.airbnb.lottie.network.FileExtension.Zip, 0));
            if (!v0_2.exists()) {
                return 0;
            } else {
                return v0_2;
            }
        } else {
            return v0_3;
        }
    }

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


    public AtomicFile(java.io.File p3)
    {
        this.mBaseName = p3;
        StringBuilder v1_1 = new StringBuilder();
        v1_1.append(p3.getPath());
        v1_1.append(".bak");
        this.mBackupName = new java.io.File(v1_1.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) {
            boolean 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()) {
                    v1_2++;
                } else {
                    return v2_2;
                }
            } catch (java.io.IOException) {
            }
        }
        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 p4, String[] p5)
    {
        int v1 = 0;
        while (v1 < p5.length) {
            String v2 = p5[v1];
            if (v2 != null) {
                p4 = new java.io.File(p4, v2);
            }
            v1++;
        }
        return p4;
    }

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


    static FileProvider()
    {
        android.support.v4.content.FileProvider.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 p2)
    {
        if (android.os.Build$VERSION.SDK_INT < 21) {
            return android.support.v4.content.ContextCompat.createFilesDir(new java.io.File(p2.getApplicationInfo().dataDir, "no_backup"));
        } else {
            return p2.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 v0_1;
            String v2_3 = p2.getApplicationInfo().dataDir;
            if (v2_3 == null) {
                v0_1 = 0;
            } else {
                v0_1 = new java.io.File(v2_3);
            }
            return v0_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 p2)
    {
        if (android.os.Build$VERSION.SDK_INT < 21) {
            return android.support.v4.content.ContextCompat.createFilesDir(new java.io.File(p2.getApplicationInfo().dataDir, "code_cache"));
        } else {
            return p2.getCodeCacheDir();
        }
    }

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


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

Method android.arch.persistence.a.c$a.a() calling method java.io.File.<init>()


    private void a(String p4)
    {
        if ((!p4.equalsIgnoreCase(":memory:")) && (p4.trim().length() != 0)) {
            String v1_1 = new StringBuilder();
            v1_1.append("deleting the database file: ");
            v1_1.append(p4);
            android.util.Log.w("SupportSQLite", v1_1.toString());
            try {
                if (android.os.Build$VERSION.SDK_INT < 16) {
                    try {
                        if (!new java.io.File(p4).delete()) {
                            String v1_7 = new StringBuilder();
                            v1_7.append("Could not delete the database file ");
                            v1_7.append(p4);
                            android.util.Log.e("SupportSQLite", v1_7.toString());
                        }
                    } catch (String v4_1) {
                        android.util.Log.e("SupportSQLite", "error while deleting corrupted database file", v4_1);
                    }
                } else {
                    android.database.sqlite.SQLiteDatabase.deleteDatabase(new java.io.File(p4));
                }
            } catch (String v4_2) {
                android.util.Log.w("SupportSQLite", "delete failed: ", v4_2);
            }
            return;
        } else {
            return;
        }
    }

Method org.apache.commons.io.filefilter.MagicNumberFileFilter.accept() calling method java.io.RandomAccessFile.<init>()

Couldn't retrieve source code

Method org.jsoup.helper.DataUtil.readFileToByteBuffer() calling method java.io.RandomAccessFile.<init>()


    static java.nio.ByteBuffer readFileToByteBuffer(java.io.File p4)
    {
        try {
            int v1_1 = new java.io.RandomAccessFile(p4, "r");
            try {
                Throwable v4_4 = new byte[((int) v1_1.length())];
                v1_1.readFully(v4_4);
                Throwable v4_1 = java.nio.ByteBuffer.wrap(v4_4);
                v1_1.close();
                return v4_1;
            } catch (Throwable v4_2) {
                if (v1_1 != 0) {
                    v1_1.close();
                }
                throw v4_2;
            }
        } catch (Throwable v4_2) {
            v1_1 = 0;
        }
        v4_4 = new byte[((int) v1_1.length())];
        v1_1.readFully(v4_4);
        v4_1 = java.nio.ByteBuffer.wrap(v4_4);
        v1_1.close();
        return v4_1;
    }

Method org.apache.commons.io.input.Tailer.run() calling method java.io.RandomAccessFile.<init>()


    public void run()
    {
        long v3_0 = 0;
        long v4_4 = 0;
        org.apache.commons.io.input.TailerListener v6 = 0;
        try {
            while ((this.getRun()) && (v3_0 == 0)) {
                v3_0 = new java.io.RandomAccessFile(this.file, "r");
                if (v3_0 != 0) {
                    if (!this.end) {
                        v6 = 0;
                    } else {
                        v6 = this.file.length();
                    }
                    v4_4 = this.file.lastModified();
                    v3_0.seek(v6);
                } else {
                    Thread.sleep(this.delayMillis);
                }
                if (v3_0 != 0) {
                    try {
                        v3_0.close();
                    } catch (org.apache.commons.io.input.TailerListener v1_5) {
                        this.listener.handle(v1_5);
                    }
                }
                this.stop();
                throw Exception v0_1;
            }
        } catch (Exception v0_1) {
        } catch (Exception v0_4) {
            Thread.currentThread().interrupt();
            this.listener.handle(v0_4);
            if (v3_0 == 0) {
                this.stop();
                return;
            } else {
                try {
                    v3_0.close();
                } catch (Exception v0_3) {
                    this.listener.handle(v0_3);
                }
            }
        } catch (Exception v0_2) {
            this.listener.handle(v0_2);
            if (v3_0 == 0) {
            } else {
                try {
                    v3_0.close();
                } catch (Exception v0_3) {
                }
            }
        }
        while (this.getRun()) {
            long v8_14;
            long v8_8 = org.apache.commons.io.FileUtils.isFileNewer(this.file, v4_4);
            java.io.File v9_3 = this.file.length() cmp v6;
            try {
                if (v9_3 >= null) {
                    if (v9_3 <= null) {
                        if (v8_8 != 0) {
                            v3_0.seek(0);
                            v6 = this.readLines(v3_0);
                            v4_4 = this.file.lastModified();
                        }
                    } else {
                        v6 = this.readLines(v3_0);
                        v4_4 = this.file.lastModified();
                    }
                    if ((this.reOpen) && (v3_0 != 0)) {
                        v3_0.close();
                    }
                    Thread.sleep(this.delayMillis);
                    if ((this.getRun()) && (this.reOpen)) {
                        v8_14 = new java.io.RandomAccessFile(this.file, "r");
                        v8_14.seek(v6);
                        v3_0 = v8_14;
                    }
                } else {
                    this.listener.fileRotated();
                    try {
                        v8_14 = new java.io.RandomAccessFile(this.file, "r");
                        try {
                            this.readLines(v3_0);
                        } catch (java.io.File v9_7) {
                            String v10_3 = v8_14;
                            long v8_17 = 0;
                            try {
                                if (v3_0 != 0) {
                                    if (v8_17 == 0) {
                                        v3_0.close();
                                    } else {
                                        try {
                                            v3_0.close();
                                        } catch (long v3_1) {
                                            v8_17.addSuppressed(v3_1);
                                        }
                                    }
                                }
                                throw v9_7;
                            } catch (Exception v0_1) {
                                v3_0 = v10_3;
                            } catch (java.io.FileNotFoundException) {
                                v3_0 = v10_3;
                                this.listener.fileNotFound();
                                Thread.sleep(this.delayMillis);
                            } catch (Exception v0_4) {
                                v3_0 = v10_3;
                            } catch (Exception v0_2) {
                                v3_0 = v10_3;
                            }
                        } catch (java.io.File v9_8) {
                            this.listener.handle(v9_8);
                        } catch (java.io.File v9_9) {
                            java.io.File v9_6 = v8_14;
                            v8_17 = v9_9;
                            try {
                                throw v8_17;
                            } catch (String v10_5) {
                                v10_3 = v9_6;
                                v9_7 = v10_5;
                            }
                        }
                        if (v3_0 != 0) {
                            try {
                                v3_0.close();
                            } catch (java.io.FileNotFoundException) {
                                v6 = 0;
                                v3_0 = v8_14;
                            }
                        }
                        v6 = 0;
                        v3_0 = v8_14;
                    } catch (java.io.File v9_7) {
                        v8_17 = 0;
                        v10_3 = v3_0;
                    } catch (long v8_17) {
                        v9_6 = v3_0;
                    }
                }
            } catch (Exception v0_1) {
                v3_0 = v8_14;
            } catch (Exception v0_4) {
                v3_0 = v8_14;
            } catch (Exception v0_2) {
                v3_0 = v8_14;
            }
        }
        if (v3_0 == 0) {
        } else {
            try {
                v3_0.close();
            } catch (Exception v0_3) {
            }
        }
    }

Method org.apache.commons.io.input.Tailer.run() calling method java.io.RandomAccessFile.<init>()


    public void run()
    {
        long v3_0 = 0;
        long v4_4 = 0;
        org.apache.commons.io.input.TailerListener v6 = 0;
        try {
            while ((this.getRun()) && (v3_0 == 0)) {
                v3_0 = new java.io.RandomAccessFile(this.file, "r");
                if (v3_0 != 0) {
                    if (!this.end) {
                        v6 = 0;
                    } else {
                        v6 = this.file.length();
                    }
                    v4_4 = this.file.lastModified();
                    v3_0.seek(v6);
                } else {
                    Thread.sleep(this.delayMillis);
                }
                this.stop();
                return;
            }
        } catch (Exception v0_1) {
            if (v3_0 != 0) {
                try {
                    v3_0.close();
                } catch (org.apache.commons.io.input.TailerListener v1_5) {
                    this.listener.handle(v1_5);
                }
            }
            this.stop();
            throw v0_1;
        } catch (Exception v0_4) {
            Thread.currentThread().interrupt();
            this.listener.handle(v0_4);
            if (v3_0 == 0) {
            } else {
                try {
                    v3_0.close();
                } catch (Exception v0_3) {
                    this.listener.handle(v0_3);
                }
            }
            v6 = 0;
            v3_0 = long v8_14;
        } catch (Exception v0_2) {
            this.listener.handle(v0_2);
            if (v3_0 == 0) {
            } else {
                try {
                    v3_0.close();
                } catch (Exception v0_3) {
                }
            }
        }
        while (this.getRun()) {
            long v8_8 = org.apache.commons.io.FileUtils.isFileNewer(this.file, v4_4);
            java.io.File v9_3 = this.file.length() cmp v6;
            try {
                if (v9_3 >= null) {
                    if (v9_3 <= null) {
                        if (v8_8 != 0) {
                            v3_0.seek(0);
                            v6 = this.readLines(v3_0);
                            v4_4 = this.file.lastModified();
                        }
                    } else {
                        v6 = this.readLines(v3_0);
                        v4_4 = this.file.lastModified();
                    }
                    if ((this.reOpen) && (v3_0 != 0)) {
                        v3_0.close();
                    }
                    Thread.sleep(this.delayMillis);
                    if ((this.getRun()) && (this.reOpen)) {
                        v8_14 = new java.io.RandomAccessFile(this.file, "r");
                        v8_14.seek(v6);
                        v3_0 = v8_14;
                    }
                } else {
                    this.listener.fileRotated();
                    try {
                        v8_14 = new java.io.RandomAccessFile(this.file, "r");
                        try {
                            this.readLines(v3_0);
                        } catch (java.io.File v9_7) {
                            String v10_3 = v8_14;
                            long v8_17 = 0;
                            try {
                                if (v3_0 != 0) {
                                    if (v8_17 == 0) {
                                        v3_0.close();
                                    } else {
                                        try {
                                            v3_0.close();
                                        } catch (long v3_1) {
                                            v8_17.addSuppressed(v3_1);
                                        }
                                    }
                                }
                                throw v9_7;
                            } catch (Exception v0_1) {
                                v3_0 = v10_3;
                            } catch (java.io.FileNotFoundException) {
                                v3_0 = v10_3;
                                this.listener.fileNotFound();
                                Thread.sleep(this.delayMillis);
                            } catch (Exception v0_4) {
                                v3_0 = v10_3;
                            } catch (Exception v0_2) {
                                v3_0 = v10_3;
                            }
                        } catch (java.io.File v9_8) {
                            this.listener.handle(v9_8);
                        } catch (java.io.File v9_9) {
                            java.io.File v9_6 = v8_14;
                            v8_17 = v9_9;
                            try {
                                throw v8_17;
                            } catch (String v10_5) {
                                v10_3 = v9_6;
                                v9_7 = v10_5;
                            }
                        }
                        if (v3_0 != 0) {
                            try {
                                v3_0.close();
                            } catch (java.io.FileNotFoundException) {
                                v6 = 0;
                                v3_0 = v8_14;
                            }
                        }
                    } catch (java.io.File v9_7) {
                        v8_17 = 0;
                        v10_3 = v3_0;
                    } catch (long v8_17) {
                        v9_6 = v3_0;
                    }
                }
            } catch (Exception v0_1) {
                v3_0 = v8_14;
            } catch (Exception v0_4) {
                v3_0 = v8_14;
            } catch (Exception v0_2) {
                v3_0 = v8_14;
            }
        }
        if (v3_0 != 0) {
            try {
                v3_0.close();
            } catch (Exception v0_3) {
            }
        }
    }

Method org.apache.commons.io.input.ReversedLinesFileReader.<init>() calling method java.io.RandomAccessFile.<init>()


    public ReversedLinesFileReader(java.io.File p8, int p9, java.nio.charset.Charset p10)
    {
        this.trailingNewlineOfFileSkipped = 0;
        this.blockSize = p9;
        this.encoding = p10;
        org.apache.commons.io.input.ReversedLinesFileReader v1_1 = org.apache.commons.io.Charsets.toCharset(p10);
        if (v1_1.newEncoder().maxBytesPerChar() != 1065353216) {
            if (v1_1 != java.nio.charset.StandardCharsets.UTF_8) {
                if ((v1_1 != java.nio.charset.Charset.forName("Shift_JIS")) && ((v1_1 != java.nio.charset.Charset.forName("windows-31j")) && ((v1_1 != java.nio.charset.Charset.forName("x-windows-949")) && ((v1_1 != java.nio.charset.Charset.forName("gbk")) && (v1_1 != java.nio.charset.Charset.forName("x-windows-950")))))) {
                    if ((v1_1 != java.nio.charset.StandardCharsets.UTF_16BE) && (v1_1 != java.nio.charset.StandardCharsets.UTF_16LE)) {
                        if (v1_1 != java.nio.charset.StandardCharsets.UTF_16) {
                            String v9_3 = new StringBuilder();
                            v9_3.append("Encoding ");
                            v9_3.append(p10);
                            v9_3.append(" is not supported yet (feel free to submit a patch)");
                            throw new java.io.UnsupportedEncodingException(v9_3.toString());
                        } else {
                            throw new java.io.UnsupportedEncodingException("For UTF-16, you need to specify the byte order (use UTF-16BE or UTF-16LE)");
                        }
                    } else {
                        this.byteDecrement = 2;
                    }
                } else {
                    this.byteDecrement = 1;
                }
            } else {
                this.byteDecrement = 1;
            }
        } else {
            this.byteDecrement = 1;
        }
        long v4_0;
        org.apache.commons.io.input.ReversedLinesFileReader v1_3 = new byte[][3];
        v1_3[0] = "\r\n".getBytes(p10);
        v1_3[1] = "\n".getBytes(p10);
        v1_3[2] = "\r".getBytes(p10);
        this.newLineSequences = v1_3;
        this.avoidNewlineSplitBufferSize = this.newLineSequences[0].length;
        this.randomAccessFile = new java.io.RandomAccessFile(p8, "r");
        this.totalByteLength = this.randomAccessFile.length();
        String v0_7 = this.totalByteLength;
        java.io.UnsupportedEncodingException v8_8 = ((int) (v0_7 % ((long) p9)));
        if (v8_8 <= null) {
            this.totalBlockCount = (v0_7 / ((long) p9));
            if (v0_7 <= 0) {
                v4_0 = v8_8;
            } else {
                v4_0 = p9;
            }
        } else {
            this.totalBlockCount = ((v0_7 / ((long) p9)) + 1);
        }
        java.io.UnsupportedEncodingException v8_1 = new org.apache.commons.io.input.ReversedLinesFileReader$FilePart;
        v8_1(this, this.totalBlockCount, v4_0, 0, 0);
        this.currentFilePart = v8_1;
        return;
    }

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


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

Method com.sophos.smsec.core.smsutils.FileWiper.b() calling method java.io.RandomAccessFile.<init>()


    private void b(java.io.File p9, boolean p10)
    {
        if (this.a != null) {
            StringBuilder v0_2 = 0;
            try {
                String v1_3 = new java.io.RandomAccessFile(p9, "rw");
                try {
                    long v4_0;
                    v1_3.seek(0);
                } catch (String v10_12) {
                    v0_2 = v1_3;
                    if (v0_2 != null) {
                        try {
                            v0_2.close();
                        } catch (java.io.IOException) {
                            StringBuilder v0_11 = new StringBuilder();
                            v0_11.append("Cannot close \'");
                            v0_11.append(p9.getAbsolutePath());
                            v0_11.append("\'.");
                            com.sophos.smsec.core.smsectrace.d.d("FileWiper", v0_11.toString());
                        }
                    }
                    throw v10_12;
                } catch (java.io.IOException) {
                    v0_2 = v1_3;
                    String v1_2 = new StringBuilder();
                    v1_2.append("Error while trying to wipe \'");
                    v1_2.append(p9.getAbsolutePath());
                    v1_2.append("\'.");
                    com.sophos.smsec.core.smsectrace.d.d("FileWiper", v1_2.toString());
                    if (v0_2 != null) {
                        try {
                            v0_2.close();
                        } catch (java.io.IOException) {
                            String v10_7 = "FileWiper";
                            StringBuilder v0_5 = new StringBuilder();
                            v0_5.append("Cannot close \'");
                            v0_5.append(p9.getAbsolutePath());
                            v0_5.append("\'.");
                            com.sophos.smsec.core.smsectrace.d.d(v10_7, v0_5.toString());
                        }
                    }
                }
                if (p10 == null) {
                    v4_0 = Math.min(8192, v1_3.length());
                } else {
                    v4_0 = v1_3.length();
                }
                while (v4_0 > ((long) this.a.length)) {
                    v1_3.write(this.a);
                    v4_0 -= ((long) this.a.length);
                }
                if (v4_0 > 0) {
                    v1_3.write(this.a, 0, ((int) v4_0));
                }
                v1_3.getFD().sync();
                try {
                    v1_3.close();
                } catch (java.io.IOException) {
                    v10_7 = "FileWiper";
                    v0_5 = new StringBuilder();
                }
            } catch (String v10_12) {
            }
        }
        if (!p9.delete()) {
            StringBuilder v0_9 = new StringBuilder();
            v0_9.append("Cannot delete \'");
            v0_9.append(p9.getAbsolutePath());
            v0_9.append("\'.");
            com.sophos.smsec.core.smsectrace.d.c("FileWiper", v0_9.toString());
        }
        return;
    }

Method com.sophos.smsec.a.a.a() calling method java.io.RandomAccessFile.<init>()


    public static byte[] a(java.io.File p5)
    {
        java.io.RandomAccessFile v0_1 = new java.io.RandomAccessFile(p5, "r");
        try {
            String v1_2 = v0_1.length();
            java.io.IOException v5_4 = ((int) v1_2);
        } catch (java.io.IOException v5_2) {
            v0_1.close();
            throw v5_2;
        }
        if (((long) v5_4) != v1_2) {
            throw new java.io.IOException("File size >= 2 GB");
        } else {
            java.io.IOException v5_3 = new byte[v5_4];
            v0_1.readFully(v5_3);
            v0_1.close();
            return v5_3;
        }
    }

Method com.sophos.jsceplib.d.a() calling method java.io.RandomAccessFile.<init>()


    public static byte[] a(android.content.Context p3, String p4, String p5)
    {
        java.io.RandomAccessFile v3_3 = new java.io.RandomAccessFile(new java.io.File(p3.getFilesDir(), "SCEP_request.jks"), "r");
        try {
            java.io.IOException v4_7 = v3_3.length();
            int v0 = ((int) v4_7);
        } catch (java.io.IOException v4_3) {
            v3_3.close();
            throw v4_3;
        }
        if (((long) v0) != v4_7) {
            throw new java.io.IOException("File size >= 2 GB");
        } else {
            java.io.IOException v4_5 = new byte[v0];
            v3_3.readFully(v4_5);
            v3_3.close();
            return v4_5;
        }
    }

Method com.sophos.cloud.core.c.q.a() calling method java.io.RandomAccessFile.<init>()


    public static byte[] a(java.io.File p5)
    {
        java.io.RandomAccessFile v0_1 = new java.io.RandomAccessFile(p5, "r");
        try {
            String v1_2 = v0_1.length();
            java.io.IOException v5_4 = ((int) v1_2);
        } catch (java.io.IOException v5_2) {
            v0_1.close();
            throw v5_2;
        }
        if (((long) v5_4) != v1_2) {
            throw new java.io.IOException("File size >= 2 GB");
        } else {
            java.io.IOException v5_3 = new byte[v5_4];
            v0_1.readFully(v5_3);
            v0_1.close();
            return v5_3;
        }
    }

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


    private final boolean B()
    {
        this.w();
        try {
            this.v = new java.io.RandomAccessFile(new java.io.File(this.j.n().getFilesDir(), "google_app_measurement.db"), "rw").getChannel();
            this.u = this.v.tryLock();
        } catch (int v0_14) {
            this.j.r().c_().a("Failed to acquire storage lock", v0_14);
            return 0;
        } catch (int v0_13) {
            this.j.r().c_().a("Failed to access storage lock file", v0_13);
            return 0;
        }
        if (this.u == null) {
            this.j.r().c_().a("Storage concurrent data access panic");
            return 0;
        } else {
            this.j.r().x().a("Storage concurrent access okay");
            return 1;
        }
    }

Method com.google.firebase.iid.zzy.zza() calling method java.io.RandomAccessFile.<init>()


    private final com.google.firebase.iid.zzz zza(android.content.Context p9, String p10, com.google.firebase.iid.zzz p11, boolean p12)
    {
        if (android.util.Log.isLoggable("FirebaseInstanceId", 3)) {
            android.util.Log.d("FirebaseInstanceId", "Writing key to properties file");
        }
        StringBuilder v0_6 = new java.util.Properties();
        v0_6.setProperty("pub", com.google.firebase.iid.zzz.zza(p11));
        v0_6.setProperty("pri", com.google.firebase.iid.zzz.zzb(p11));
        v0_6.setProperty("cre", String.valueOf(com.google.firebase.iid.zzz.zzc(p11)));
        Throwable v9_3 = com.google.firebase.iid.zzy.zzf(p9, p10);
        try {
            v9_3.createNewFile();
            java.io.RandomAccessFile v2_4 = new java.io.RandomAccessFile(v9_3, "rw");
            try {
                Throwable v9_4 = v2_4.getChannel();
                try {
                    v9_4.lock();
                } catch (Throwable v11_2) {
                    String v12_10 = 0;
                    if (v9_4 != null) {
                        com.google.firebase.iid.zzy.zza(v12_10, v9_4);
                    }
                    throw v11_2;
                } catch (Throwable v11_1) {
                    try {
                        throw v11_1;
                    } catch (String v12_9) {
                        v12_10 = v11_1;
                        v11_2 = v12_9;
                    }
                }
                if ((p12 != null) && (v9_4.size() > 0)) {
                    try {
                        v9_4.position(0);
                        p11 = com.google.firebase.iid.zzy.zza(v9_4);
                    } catch (String v12_6) {
                        if (android.util.Log.isLoggable("FirebaseInstanceId", 3)) {
                            String v12_7 = String.valueOf(v12_6);
                            StringBuilder v6_1 = new StringBuilder((String.valueOf(v12_7).length() + 64));
                            v6_1.append("Tried reading key pair before writing new one, but failed with: ");
                            v6_1.append(v12_7);
                            android.util.Log.d("FirebaseInstanceId", v6_1.toString());
                        }
                    }
                    if (v9_4 != null) {
                        com.google.firebase.iid.zzy.zza(0, v9_4);
                    }
                    com.google.firebase.iid.zzy.zza(0, v2_4);
                    return p11;
                }
                v9_4.position(0);
                v0_6.store(java.nio.channels.Channels.newOutputStream(v9_4), 0);
                if (v9_4 != null) {
                    com.google.firebase.iid.zzy.zza(0, v9_4);
                }
                com.google.firebase.iid.zzy.zza(0, v2_4);
                return p11;
            } catch (Throwable v9_6) {
                Throwable v11_4 = 0;
                com.google.firebase.iid.zzy.zza(v11_4, v2_4);
                throw v9_6;
            } catch (Throwable v9_5) {
                try {
                    throw v9_5;
                } catch (Throwable v11_3) {
                    v11_4 = v9_5;
                    v9_6 = v11_3;
                }
            }
        } catch (Throwable v9_7) {
            Throwable v9_1 = String.valueOf(v9_7);
            StringBuilder v0_2 = new StringBuilder((String.valueOf(v9_1).length() + 21));
            v0_2.append("Failed to write key: ");
            v0_2.append(v9_1);
            android.util.Log.w("FirebaseInstanceId", v0_2.toString());
            return 0;
        }
    }

Method com.baidu.android.pushservice.richmedia.a.b() calling method java.io.RandomAccessFile.<init>()

Couldn't retrieve source code

Method com.baidu.android.pushservice.g.a.b.a() calling method java.io.RandomAccessFile.<init>()


    public static ark>com.baidu.android.pushservice.g.a.bark>$a a()
    {
        java.io.RandomAccessFile v0_0 = "";
        java.io.RandomAccessFile v4_2 = 0;
        try {
            java.io.Closeable[] v1_6 = new byte[1024];
            java.io.RandomAccessFile v5_1 = new java.io.RandomAccessFile("/proc/cpuinfo", "r");
            try {
                v5_1.read(v1_6);
                java.io.RandomAccessFile v4_1 = new String(v1_6);
                java.io.Closeable[] v1_1 = v4_1.indexOf(0);
            } catch (java.io.RandomAccessFile v0_1) {
                v4_2 = v5_1;
                java.io.Closeable[] v1_3 = new java.io.Closeable[1];
                v1_3[0] = v4_2;
                com.baidu.android.pushservice.e.b.a(v1_3);
                throw v0_1;
            } catch (Exception) {
                v4_2 = v5_1;
                java.io.Closeable[] v1_2 = new java.io.Closeable[1];
                v1_2[0] = v4_2;
                com.baidu.android.pushservice.e.b.a(v1_2);
                java.io.RandomAccessFile v0_2 = ark>com.baidu.android.pushservice.g.a.bark>.a(v0_0);
                if (v0_2 != null) {
                    v0_2.e = ((long) ark>com.baidu.android.pushservice.g.a.bark>.f());
                }
                return v0_2;
            }
            if (v1_1 == -1) {
                v0_0 = v4_1;
            } else {
                v0_0 = v4_1.substring(0, v1_1);
            }
            v1_2 = new java.io.Closeable[1];
            v1_2[0] = v5_1;
        } catch (java.io.RandomAccessFile v0_1) {
        } catch (Exception) {
        }
    }

Method com.sophos.smsec.plugin.webfiltering.b.b() calling method android.content.Context.openFileOutput()


    public static void b(android.content.Context p6)
    {
        Throwable v0_1;
        if (android.os.Build$VERSION.SDK_INT >= 23) {
            v0_1 = 0;
        } else {
            v0_1 = 1;
        }
        try {
            Throwable v6_5 = p6.openFileOutput("smsec_service.html", v0_1);
            Throwable v0_2 = 0;
            try {
                Throwable v1_1 = new java.io.FileWriter(v6_5.getFD());
                try {
                    Throwable v2_2 = new java.io.BufferedWriter(v1_1);
                    try {
                        v2_2.write("<html><head><script type=\"text/javascript\">window.history.go(-2);</script></head><body></body></html>\n");
                    } catch (Throwable v3_2) {
                        Throwable v4_1 = 0;
                        if (v4_1 == null) {
                            v2_2.close();
                        } else {
                            try {
                                v2_2.close();
                            } catch (Throwable v2_3) {
                                v4_1.addSuppressed(v2_3);
                            }
                        }
                        throw v3_2;
                    } catch (Throwable v3_1) {
                        try {
                            throw v3_1;
                        } catch (Throwable v4_0) {
                            v4_1 = v3_1;
                            v3_2 = v4_0;
                        }
                    }
                    v2_2.close();
                    v1_1.close();
                    if (v6_5 == null) {
                        return;
                    } else {
                        v6_5.close();
                        return;
                    }
                } catch (Throwable v2_5) {
                    Throwable v3_4 = 0;
                    if (v3_4 == null) {
                        v1_1.close();
                    } else {
                        try {
                            v1_1.close();
                        } catch (Throwable v1_2) {
                            v3_4.addSuppressed(v1_2);
                        }
                    }
                    throw v2_5;
                } catch (Throwable v2_4) {
                    try {
                        throw v2_4;
                    } catch (Throwable v3_3) {
                        v3_4 = v2_4;
                        v2_5 = v3_3;
                    }
                }
            } catch (Throwable v1_4) {
                if (v6_5 != null) {
                    if (v0_2 == null) {
                        v6_5.close();
                    } else {
                        try {
                            v6_5.close();
                        } catch (Throwable v6_1) {
                            v0_2.addSuppressed(v6_1);
                        }
                    }
                }
                throw v1_4;
            } catch (Throwable v0_2) {
                throw v0_2;
            }
        } catch (Throwable v6_4) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "File not found exeception", v6_4);
            return;
        } catch (Throwable v6_3) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "IO exeception", v6_3);
            return;
        } catch (Throwable v6_2) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "Global exeception", v6_2);
            return;
        }
    }

Method com.sophos.smsec.core.updateengine.notification.b.a() calling method android.content.Context.openFileOutput()


    public static void a(android.content.Context p3, java.io.File p4)
    {
        java.io.FileOutputStream v3_1 = p3.openFileOutput("smsec_notification.properties", 0);
        try {
            int v2_1 = new java.io.FileInputStream(p4);
            try {
                Throwable v4_1 = new byte[1024];
            } catch (Throwable v4_2) {
                if (v2_1 != 0) {
                    v2_1.close();
                }
                v3_1.close();
                throw v4_2;
            }
            while(true) {
                int v0_1 = v2_1.read(v4_1);
                if (v0_1 <= 0) {
                    break;
                }
                v3_1.write(v4_1, 0, v0_1);
            }
            v2_1.close();
            v3_1.close();
            return;
        } catch (Throwable v4_2) {
            v2_1 = 0;
        }
    }

Method com.sophos.smsec.core.datastore.log.a.c() calling method android.content.Context.openFileOutput()


    private static java.io.File c(android.content.Context p8)
    {
        try {
            int v3_3 = new java.io.File(com.sophos.smsec.core.datastore.log.a.a(p8), "smsec.log.log");
            try {
                if ((v3_3.exists()) && ((v3_3.length() > 0) && (!v3_3.delete()))) {
                    com.sophos.smsec.core.smsectrace.d.h("cannot delete file:\'smsec.log.log\'. ");
                }
            } catch (java.io.FileOutputStream v8_1) {
                Object[] v1_1 = new Object[1];
                v1_1[0] = com.sophos.smsec.core.datastore.log.a.c();
                com.sophos.smsec.core.smsectrace.d.c(String.format("Error creating trace file \'%s\'. ", v1_1), v8_1);
                return v3_3;
            }
            if (v3_3.exists()) {
                return v3_3;
            } else {
                java.io.FileOutputStream v8_4 = p8.openFileOutput("smsec.log.log", 32768);
                String v4_12 = new java.io.FileWriter(v8_4.getFD());
                java.io.BufferedWriter v5_4 = new java.io.BufferedWriter(v4_12, 8192);
                String v6_3 = new StringBuilder();
                v6_3.append("Log entries exported  at ");
                v6_3.append(com.sophos.smsec.core.smsectrace.d.j());
                v6_3.append("\n");
                v5_4.write(v6_3.toString());
                v5_4.close();
                v4_12.close();
                v8_4.close();
                return v3_3;
            }
        } catch (java.io.FileOutputStream v8_3) {
            Object[] v1_3 = new Object[1];
            v1_3[0] = com.sophos.smsec.core.datastore.log.a.c();
            com.sophos.smsec.core.smsectrace.d.c(String.format("Error creating trace file \'%s\'. ", v1_3), v8_3);
            return 0;
        } catch (java.io.FileOutputStream v8_2) {
            Object[] v1_2 = new Object[1];
            v1_2[0] = com.sophos.smsec.core.datastore.log.a.c();
            com.sophos.smsec.core.smsectrace.d.c(String.format("Error creating trace file \'%s\'. ", v1_2), v8_2);
            return 0;
        } catch (java.io.FileOutputStream v8_1) {
            v3_3 = 0;
        }
    }

Method com.google.android.gms.internal.measurement.k.g() calling method android.content.Context.openFileOutput()


    private final boolean g(String p4)
    {
        try {
            java.io.IOException v4_3 = com.google.android.gms.internal.measurement.k.a(p4);
            this.b("Storing hashed adid.");
            String v1_3 = this.k().openFileOutput("gaClientIdData", 0);
            v1_3.write(v4_3.getBytes());
            v1_3.close();
            this.d = v4_3;
            return 1;
        } catch (java.io.IOException v4_2) {
            this.e("Error creating hash file", v4_2);
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.am.a() calling method android.content.Context.openFileOutput()


    private final boolean a(android.content.Context p4, String p5)
    {
        com.google.android.gms.common.internal.r.a(p5);
        com.google.android.gms.common.internal.r.c("ClientId should be saved from worker thread");
        try {
            this.a("Storing clientId", p5);
            java.io.FileOutputStream v1 = p4.openFileOutput("gaClientId", 0);
            v1.write(p5.getBytes());
        } catch (java.io.IOException v4_6) {
            if (v1 != null) {
                try {
                    v1.close();
                } catch (String v5_5) {
                    this.e("Failed to close clientId writing stream", v5_5);
                }
            }
            throw v4_6;
        } catch (java.io.IOException v4_4) {
            this.e("Error creating clientId file", v4_4);
            if (v1 != null) {
                try {
                    v1.close();
                } catch (java.io.IOException v4_5) {
                    this.e("Failed to close clientId writing stream", v4_5);
                }
            }
            return 0;
        } catch (java.io.IOException v4_2) {
            this.e("Error writing to clientId file", v4_2);
            if (v1 != null) {
                try {
                    v1.close();
                } catch (java.io.IOException v4_3) {
                    this.e("Failed to close clientId writing stream", v4_3);
                }
            }
            return 0;
        }
        if (v1 != null) {
            try {
                v1.close();
            } catch (java.io.IOException v4_7) {
                this.e("Failed to close clientId writing stream", v4_7);
            }
        }
        return 1;
    }

Method com.google.android.gms.internal.config.l.run() calling method android.content.Context.openFileOutput()


    public final void run()
    {
        java.io.IOException v0_1 = new com.google.android.gms.internal.config.u();
        String v1_5 = this.b;
        if (v1_5 != null) {
            v0_1.a = com.google.android.gms.internal.config.l.a(v1_5);
        }
        String v1_18 = this.c;
        if (v1_18 != null) {
            v0_1.b = com.google.android.gms.internal.config.l.a(v1_18);
        }
        String v1_1 = this.d;
        if (v1_1 != null) {
            v0_1.c = com.google.android.gms.internal.config.l.a(v1_1);
        }
        if (this.e != null) {
            String v1_6 = new com.google.android.gms.internal.config.s();
            v1_6.a = this.e.a();
            v1_6.b = this.e.b();
            v0_1.d = v1_6;
        }
        String v1_7 = this.e;
        if ((v1_7 != null) && (v1_7.c() != null)) {
            String v1_10 = new java.util.ArrayList();
            String v2_5 = this.e.c();
            java.util.Iterator v3_1 = v2_5.keySet().iterator();
            while (v3_1.hasNext()) {
                int v4_2 = ((String) v3_1.next());
                if (v2_5.get(v4_2) != null) {
                    com.google.android.gms.internal.config.v v5_2 = new com.google.android.gms.internal.config.v();
                    v5_2.c = v4_2;
                    v5_2.b = ((com.google.android.gms.internal.config.j) v2_5.get(v4_2)).b();
                    v5_2.a = ((com.google.android.gms.internal.config.j) v2_5.get(v4_2)).a();
                    v1_10.add(v5_2);
                }
            }
            String v2_7 = new com.google.android.gms.internal.config.v[v1_10.size()];
            v0_1.e = ((com.google.android.gms.internal.config.v[]) v1_10.toArray(v2_7));
        }
        String v1_15 = new byte[v0_1.d()];
        try {
            String v2_9 = com.google.android.gms.internal.config.z.a(v1_15, 0, v1_15.length);
            v0_1.a(v2_9);
            v2_9.a();
            try {
                java.io.IOException v0_4 = this.a.openFileOutput("persisted_config", 0);
                v0_4.write(v1_15);
                v0_4.close();
                return;
            } catch (java.io.IOException v0_5) {
                android.util.Log.e("AsyncPersisterTask", "Could not persist config.", v0_5);
                return;
            }
        } catch (java.io.IOException v0_2) {
            throw new RuntimeException("Serializing to a byte array threw an IOException (should never happen).", v0_2);
        }
        v0_4 = this.a.openFileOutput("persisted_config", 0);
        v0_4.write(v1_15);
        v0_4.close();
        return;
    }

Method com.baidu.android.pushservice.j.e.a() calling method android.content.Context.openFileOutput()


    private boolean a(String p7)
    {
        Exception v0_5;
        if (android.os.Build$VERSION.SDK_INT < 24) {
            v0_5 = 1;
        } else {
            v0_5 = 0;
        }
        try {
            java.io.FileOutputStream v3_0 = this.b.openFileOutput("libcuid.so", v0_5);
            v3_0.write(p7.getBytes());
            v3_0.flush();
        } catch (Exception v7_4) {
            if (v3_0 != null) {
                try {
                    v3_0.close();
                } catch (Exception v0_1) {
                    ark>com.baidu.android.pushservice.j.eark>.b(v0_1);
                }
            }
            throw v7_4;
        } catch (Exception v7_2) {
            ark>com.baidu.android.pushservice.j.eark>.b(v7_2);
            if (v3_0 != null) {
                try {
                    v3_0.close();
                } catch (Exception v7_3) {
                    ark>com.baidu.android.pushservice.j.eark>.b(v7_3);
                }
            }
            return 0;
        }
        if (v3_0 != null) {
            try {
                v3_0.close();
            } catch (Exception v7_5) {
                ark>com.baidu.android.pushservice.j.eark>.b(v7_5);
            }
        }
        if (v0_5 != null) {
            return 1;
        } else {
            return ark>com.baidu.android.pushservice.j.eark>$c.a(new java.io.File(this.b.getFilesDir(), "libcuid.so").getAbsolutePath(), 436);
        }
    }

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

Couldn't retrieve source code

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


    private static long a(java.io.InputStream p5, java.io.File p6)
    {
        java.io.FileOutputStream v0_1 = new java.io.FileOutputStream(p6);
        try {
            Throwable v6_2 = new byte[1048576];
            long v1 = 0;
        } catch (Throwable v6_3) {
            v0_1.close();
            p5.close();
            throw v6_3;
        }
        while(true) {
            long v3_1 = p5.read(v6_2);
            if (v3_1 < 0) {
                break;
            }
            v0_1.write(v6_2, 0, v3_1);
            v1 += ((long) v3_1);
        }
        v0_1.close();
        p5.close();
        return v1;
    }

Method com.sophos.smsec.ui.KPViewerActivity.a() calling method java.io.FileOutputStream.<init>()


    private static android.net.Uri a(android.content.Context p4, java.io.File p5)
    {
        try {
            java.io.IOException v4_3 = com.sophos.smsec.KPSenderFileProvider.getUriForFile(p4, com.sophos.smsec.KPSenderFileProvider.a(), p5);
        } catch (String v0_6) {
            if (android.os.Build$VERSION.SDK_INT >= 24) {
                com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on >= N devices, copy to private cache", v0_6);
                String v0_2 = new java.io.File(v4_3.getCacheDir(), "Huawei");
                v0_2.mkdirs();
                IllegalArgumentException v1_2 = new java.io.File(v0_2, p5.getName());
                String v0_3 = 0;
                try {
                    String v2_3 = new java.io.FileInputStream(p5);
                    try {
                        int v5_1 = new java.io.FileOutputStream(v1_2);
                        try {
                            com.google.android.gms.common.util.l.a(v2_3, v5_1);
                            com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on >= N devices. return uri of cached file");
                            v4_3 = com.sophos.smsec.KPSenderFileProvider.getUriForFile(v4_3, com.sophos.smsec.KPSenderFileProvider.a(), v1_2);
                            com.google.android.gms.common.util.l.a(v2_3);
                            com.google.android.gms.common.util.l.a(v5_1);
                        } catch (java.io.IOException v4_2) {
                            v0_3 = v2_3;
                            com.google.android.gms.common.util.l.a(v0_3);
                            com.google.android.gms.common.util.l.a(v5_1);
                            throw v4_2;
                        } catch (java.io.IOException v4_1) {
                            v0_3 = v2_3;
                            try {
                                com.sophos.smsec.core.smsectrace.d.c("KPViewerActivity", "fix for Huawei \'external-files-path\' bug failed", v4_1);
                                throw new IllegalArgumentException("fix for Huawei \'external-files-path\' bug failed", v4_1);
                            } catch (java.io.IOException v4_2) {
                            }
                        }
                        return v4_3;
                    } catch (java.io.IOException v4_2) {
                        v5_1 = 0;
                    } catch (java.io.IOException v4_1) {
                        v5_1 = 0;
                    }
                } catch (java.io.IOException v4_2) {
                    v5_1 = 0;
                } catch (java.io.IOException v4_1) {
                    v5_1 = 0;
                }
            } else {
                com.sophos.smsec.core.smsectrace.d.b("KPViewerActivity", "try fix for Huawei \'external-files-path\' bug on < N devices, use Uri.fromFile", v0_6);
                v4_3 = android.net.Uri.fromFile(p5);
            }
        }
        return v4_3;
    }

Method com.sophos.smsec.ui.NewKeyFileActivity.a() calling method java.io.FileOutputStream.<init>()


    static java.io.File a(android.content.Context p9, android.net.Uri p10, String p11)
    {
        android.content.ContentResolver v6 = p9.getContentResolver();
        String v7 = "_unknown_file_";
        java.io.File v8 = 0;
        try {
            byte[] v1_1;
            String v0_1 = v6.query(p10, 0, 0, 0, 0);
        } catch (java.io.FileOutputStream v9_2) {
            v0_1 = 0;
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v9_2;
        } catch (Exception) {
            v0_1 = 0;
            v7 = "_unknown_file_";
            if (v0_1 != null) {
                v0_1.close();
            }
            v1_1 = 0;
            if (v7.equals("_unknown_file_")) {
                String v0_0 = "";
                if (p11) {
                    if (!p11.contains("pdf")) {
                        if (!p11.contains("image")) {
                            if (!p11.contains("keepass")) {
                                if (p11.contains("text")) {
                                    if ((!p11.contains("text")) && (!p11.contains("txt"))) {
                                        if (p11.contains("log")) {
                                            v0_0 = ".log";
                                        }
                                    } else {
                                        v0_0 = ".txt";
                                    }
                                }
                            } else {
                                v0_0 = ".kdbx";
                            }
                        } else {
                            if ((!p11.contains("jpeg")) && (!p11.contains("jpg"))) {
                                if (!p11.contains("png")) {
                                    if (!p11.contains("bmp")) {
                                        if (p11.contains("gif")) {
                                            v0_0 = ".gif";
                                        }
                                    } else {
                                        v0_0 = ".bmp";
                                    }
                                } else {
                                    v0_0 = ".png";
                                }
                            } else {
                                v0_0 = ".jpg";
                            }
                        }
                    } else {
                        v0_0 = ".pdf";
                    }
                }
                if (v1_1 == null) {
                    boolean v11_2 = new StringBuilder();
                    v11_2.append(v7);
                    v11_2.append(v0_0);
                    v7 = v11_2.toString();
                } else {
                    boolean v11_4 = new StringBuilder();
                    v11_4.append(v1_1);
                    v11_4.append(v0_0);
                    v7 = v11_4.toString();
                }
            }
            boolean v11_6 = v7.replace(47, 95);
            byte[] v1_0 = new byte[16384];
            try {
                String v10_1 = v6.openInputStream(p10);
            } catch (java.io.IOException) {
                com.sophos.smsec.core.smsectrace.d.d("NewKeyFileActivity", "Error writing file.");
                return v8;
            } catch (SecurityException) {
                com.sophos.smsec.core.smsectrace.d.d("NewKeyFileActivity", "Access to passed file denied.");
                return v8;
            }
            if (v10_1 != null) {
                if (p9.getExternalFilesDir("database") != null) {
                    v8 = new java.io.File(p9.getExternalFilesDir("database"), v11_6);
                } else {
                    v8 = new java.io.File(new java.io.File(p9.getFilesDir(), "database"), v11_6);
                }
                java.io.FileOutputStream v9_5 = new java.io.FileOutputStream(v8);
                do {
                    String v2_6 = v10_1.read(v1_0, 0, 16384);
                    if (v2_6 > null) {
                        v9_5.write(v1_0, 0, v2_6);
                    }
                } while(v2_6 > -1);
                v10_1.close();
                v9_5.close();
                return v8;
            } else {
                com.sophos.smsec.core.smsectrace.d.d("NewKeyFileActivity", "Failed to read data from content provider.");
                return 0;
            }
        } catch (java.io.FileOutputStream v9_2) {
        }
        if (v0_1 == null) {
            v1_1 = 0;
        } else {
            v0_1.moveToFirst();
            byte[] v1_3 = v0_1.getColumnIndex("_display_name");
            if (v1_3 >= null) {
                v7 = v0_1.getString(v1_3);
                if (v7 == null) {
                    v7 = "_unknown_file_";
                }
            }
            byte[] v1_5 = v0_1.getColumnIndex("title");
            if (v1_5 < null) {
                v1_1 = 0;
            } else {
                v1_1 = v0_1.getString(v1_5);
            }
        }
        if (v0_1 == null) {
        } else {
            v0_1.close();
        }
    }

Method io.fabric.sdk.android.services.b.g.a() calling method java.io.FileOutputStream.<init>()


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

Method com.sophos.smsec.core.updateengine.reader.r.j() calling method java.io.FileOutputStream.<init>()


    protected java.io.OutputStream j()
    {
        return new javax.crypto.CipherOutputStream(new java.io.FileOutputStream(this.d()), this.a.getKey());
    }

Method org.simpleframework.xml.core.Persister.write() calling method java.io.FileOutputStream.<init>()


    public void write(Object p2, java.io.File p3)
    {
        java.io.FileOutputStream v0_1 = new java.io.FileOutputStream(p3);
        try {
            this.write(p2, v0_1);
            v0_1.close();
            return;
        } catch (Throwable v2_1) {
            v0_1.close();
            throw v2_1;
        }
    }

Method org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached() calling method java.io.FileOutputStream.<init>()


    protected void thresholdReached()
    {
        int v0_0 = this.prefix;
        if (v0_0 != 0) {
            this.outputFile = java.io.File.createTempFile(v0_0, this.suffix, this.directory);
        }
        org.apache.commons.io.FileUtils.forceMkdirParent(this.outputFile);
        int v0_1 = new java.io.FileOutputStream(this.outputFile);
        try {
            this.memoryOutputStream.writeTo(v0_1);
            this.currentOutputStream = v0_1;
            this.memoryOutputStream = 0;
            return;
        } catch (java.io.IOException v1_2) {
            0.close();
            throw v1_2;
        }
    }

Method io.fabric.sdk.android.services.b.h.a() calling method java.io.FileOutputStream.<init>()


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

Method com.sophos.smsec.core.updateengine.c.a() calling method java.io.FileOutputStream.<init>()


    private static boolean a(android.content.Context p12, ark>com.sophos.smsec.core.updateengine.cark> p13, java.io.File p14)
    {
        com.sophos.smsec.core.updateengine.schedule.a.a(p12);
        String v1_0 = 0;
        try {
            int v2_0;
            int v2_3 = ((android.os.PowerManager) p12.getSystemService("power"));
            try {
                if (v2_3 == 0) {
                    v2_0 = 0;
                } else {
                    v2_0 = v2_3.newWakeLock(1, "smsec:updateEngine");
                    if (v2_0 != 0) {
                        v2_0.acquire(600000);
                    }
                }
            } catch (Throwable v12_4) {
                if (v2_0 != 0) {
                    try {
                        v2_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                }
                throw v12_4;
            } catch (Throwable v12_1) {
                v1_0 = v2_0;
                com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", "VDL update: UpdateEngineException", v12_1);
                if (v1_0 == null) {
                    return 0;
                } else {
                    try {
                        v1_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                    return 0;
                }
                String v14_11 = new StringBuilder();
                v14_11.append("VDL update: number of files updated ");
                v14_11.append(int v4_3);
                com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", v14_11.toString());
                com.sophos.smsec.core.alertmanager.a.b(p12);
                com.sophos.smsec.core.smsecresources.ui.NotificationHelper.b(p12, new com.sophos.smsec.core.alertmanager.notifications.AlertNotification(p12, com.sophos.smsec.core.updateengine.a.b.c(p12)));
                android.support.v4.content.LocalBroadcastManager.getInstance(p12).sendBroadcast(new android.content.Intent("com.sophos.smsec.vdlupdate.finished"));
                if (v2_0 != 0) {
                    try {
                        v2_0.release();
                    } catch (RuntimeException) {
                        com.sophos.smsec.core.smsectrace.d.b("UpdateEngine", "Under-locked WakeLock detected.");
                    }
                }
                return 1;
            } catch (Throwable v12_3) {
                v1_0 = v2_0;
                com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", "VDL update: StrangeException", v12_3);
                if (v1_0 == null) {
                    return 0;
                } else {
                }
            }
            p13.a();
            v4_3 = p13.a("SMSEC", "", "RECOMMENDED");
            if (v4_3 > 0) {
                ark>com.sophos.smsec.core.updateengine.cark>.b(p12);
                if (p13.c().contains("smsec.properties")) {
                    int v5_5 = new java.io.File(p14, "smsec.properties");
                    if (v5_5.exists()) {
                        try {
                            com.sophos.smsec.core.updateengine.notification.b.a(p12, v5_5);
                            com.sophos.smsec.core.updateengine.notification.b.b(p12);
                        } catch (int v5_6) {
                            com.sophos.smsec.core.smsectrace.d.c("updateNotificationData failed", v5_6);
                        }
                    }
                }
                if (p13.c().contains("networkProtection.json")) {
                    java.io.IOException v13_18 = new java.io.File(p14, "networkProtection.json");
                    if (v13_18.exists()) {
                        String v14_17 = p12.getDir("networksec", 0);
                        if (!v14_17.exists()) {
                            v14_17.mkdir();
                        }
                        try {
                            int v5_11 = new java.io.FileInputStream(v13_18);
                            try {
                                java.nio.channels.FileChannel v6_7 = new StringBuilder();
                                v6_7.append(v14_17);
                                v6_7.append(java.io.File.separator);
                                v6_7.append("networkProtection.json");
                                java.io.IOException v13_19 = new java.io.FileOutputStream(v6_7.toString());
                                try {
                                    java.nio.channels.FileChannel v6_8 = v5_11.getChannel();
                                    v6_8.transferTo(0, v6_8.size(), v13_19.getChannel());
                                    try {
                                        v5_11.close();
                                        try {
                                            v13_19.close();
                                        } catch (java.io.IOException v13_1) {
                                            String v14_1 = "UpdateEngine";
                                            com.sophos.smsec.core.smsectrace.d.c(v14_1, v13_1);
                                        }
                                    } catch (String v14_4) {
                                        com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_4);
                                    }
                                } catch (Throwable v12_2) {
                                    v1_0 = v13_19;
                                    if (v5_11 != 0) {
                                        try {
                                            v5_11.close();
                                        } catch (java.io.IOException v13_2) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v13_2);
                                        }
                                    }
                                    if (v1_0 != null) {
                                        try {
                                            v1_0.close();
                                        } catch (java.io.IOException v13_3) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v13_3);
                                        }
                                    }
                                    throw v12_2;
                                } catch (String v14_18) {
                                    v1_0 = v5_11;
                                    try {
                                        com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_18);
                                    } catch (Throwable v12_2) {
                                        v5_11 = v1_0;
                                    }
                                    if (v1_0 != null) {
                                        try {
                                            v1_0.close();
                                        } catch (String v14_22) {
                                            com.sophos.smsec.core.smsectrace.d.c("UpdateEngine", v14_22);
                                        }
                                    }
                                    if (v13_19 != null) {
                                        try {
                                            v13_19.close();
                                        } catch (java.io.IOException v13_1) {
                                            v14_1 = "UpdateEngine";
                                        }
                                    }
                                }
                            } catch (Throwable v12_2) {
                            } catch (String v14_18) {
                                v13_19 = 0;
                            }
                        } catch (Throwable v12_2) {
                            v5_11 = 0;
                        } catch (String v14_18) {
                            v13_19 = 0;
                        }
                    }
                }
                String v14_5 = p12.getResources();
                int v5_0 = new Object[1];
                v5_0[0] = com.sophos.smsec.core.sav.SavEngine.getReadableEngineVersion(p12);
                com.sophos.smsec.core.datastore.log.SMSecLog.a(com.sophos.smsec.core.datastore.log.SMSecLog$LogType.LOGTYPE_SCANNER, v14_5.getString(com.sophos.smsec.core.updateengine.a$b.log_entry_vdl_update_done, v5_0));
            }
        } catch (Throwable v12_4) {
            v2_0 = v1_0;
        } catch (Throwable v12_3) {
        }
    }

Method com.microsoft.identity.common.adal.internal.cache.StorageHelper.writeKeyData() calling method java.io.FileOutputStream.<init>()


    private void writeKeyData(byte[] p5)
    {
        android.util.Log.v("StorageHelper", "Writing key data to a file");
        java.io.FileOutputStream v1_3 = this.mContext;
        java.io.FileOutputStream v1_2 = new java.io.FileOutputStream(new java.io.File(v1_3.getDir(v1_3.getPackageName(), 0), "adalks"));
        try {
            v1_2.write(p5);
            v1_2.close();
            return;
        } catch (Throwable v5_1) {
            v1_2.close();
            throw v5_1;
        }
    }

Method com.microsoft.aad.adal.FileTokenCacheStore.writeToFile() calling method java.io.FileOutputStream.<init>()


    private void writeToFile()
    {
        try {
            if ((this.mFile != null) && (this.mInMemoryCache != null)) {
                try {
                    String v1_6 = new java.io.FileOutputStream(this.mFile);
                    String v2_3 = new java.io.ObjectOutputStream(v1_6);
                    v2_3.writeObject(this.mInMemoryCache);
                    v2_3.flush();
                    v2_3.close();
                    v1_6.close();
                } catch (String v1_1) {
                    com.microsoft.aad.adal.Logger.e(com.microsoft.aad.adal.FileTokenCacheStore.TAG, "Exception during cache flush", com.microsoft.aad.adal.ExceptionExtensions.getExceptionMessage(v1_1), com.microsoft.aad.adal.ADALError.DEVICE_FILE_CACHE_IS_NOT_WRITING_TO_FILE);
                }
            }
        } catch (String v1_3) {
            throw v1_3;
        }
        return;
    }

Method org.spongycastle.openpgp.examples.SignedFileProcessor.verifyFile() calling method java.io.FileOutputStream.<init>()


    private static void verifyFile(java.io.InputStream p7, java.io.InputStream p8)
    {
        org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory v0_0 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(((org.spongycastle.openpgp.PGPCompressedData) new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p7)).nextObject()).getDataStream());
        java.io.PrintStream v7_4 = ((org.spongycastle.openpgp.PGPOnePassSignatureList) v0_0.nextObject()).get(0);
        byte v2_1 = ((org.spongycastle.openpgp.PGPLiteralData) v0_0.nextObject());
        java.io.InputStream v3 = v2_1.getInputStream();
        String v8_2 = new org.spongycastle.openpgp.PGPPublicKeyRingCollection(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p8), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator()).getPublicKey(v7_4.getKeyID());
        java.io.FileOutputStream v4_3 = new java.io.FileOutputStream(v2_1.getFileName());
        v7_4.init(new org.spongycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider().setProvider("SC"), v8_2);
        while(true) {
            String v8_3 = v3.read();
            if (v8_3 < null) {
                break;
            }
            v7_4.update(((byte) v8_3));
            v4_3.write(v8_3);
        }
        v4_3.close();
        if (!v7_4.verify(((org.spongycastle.openpgp.PGPSignatureList) v0_0.nextObject()).get(0))) {
            System.out.println("signature verification failed.");
        } else {
            System.out.println("signature verified.");
        }
        return;
    }

Method org.spongycastle.openpgp.examples.SignedFileProcessor.main() calling method java.io.FileOutputStream.<init>()


    public static void main(String[] p7)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (!p7[0].equals("-s")) {
            if (!p7[0].equals("-v")) {
                System.err.println("usage: SignedFileProcessor -v|-s [-a] file keyfile [passPhrase]");
            } else {
                org.spongycastle.openpgp.examples.SignedFileProcessor.verifyFile(new java.io.FileInputStream(p7[1]), new java.io.FileInputStream(p7[2]));
            }
        } else {
            if (!p7[1].equals("-a")) {
                java.io.FileInputStream v1_7 = new java.io.FileInputStream(p7[2]);
                String v5_1 = new StringBuilder();
                v5_1.append(p7[1]);
                v5_1.append(".bpg");
                org.spongycastle.openpgp.examples.SignedFileProcessor.signFile(p7[1], v1_7, new java.io.FileOutputStream(v5_1.toString()), p7[3].toCharArray(), 0);
            } else {
                String v0_9 = new java.io.FileInputStream(p7[3]);
                int v4_3 = new StringBuilder();
                v4_3.append(p7[2]);
                v4_3.append(".asc");
                org.spongycastle.openpgp.examples.SignedFileProcessor.signFile(p7[2], v0_9, new java.io.FileOutputStream(v4_3.toString()), p7[4].toCharArray(), 1);
            }
        }
        return;
    }

Method org.spongycastle.openpgp.examples.RSAKeyPairGenerator.main() calling method java.io.FileOutputStream.<init>()


    public static void main(String[] p8)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        java.io.FileOutputStream v0_14 = java.security.KeyPairGenerator.getInstance("RSA", "SC");
        v0_14.initialize(1024);
        java.security.KeyPair v4 = v0_14.generateKeyPair();
        if (p8.length < 2) {
            System.out.println("RSAKeyPairGenerator [-a] identity passPhrase");
            System.exit(0);
        }
        if (!p8[0].equals("-a")) {
            org.spongycastle.openpgp.examples.RSAKeyPairGenerator.exportKeyPair(new java.io.FileOutputStream("secret.bpg"), new java.io.FileOutputStream("pub.bpg"), v4, p8[0], p8[1].toCharArray(), 0);
        } else {
            if (p8.length < 3) {
                System.out.println("RSAKeyPairGenerator [-a] identity passPhrase");
                System.exit(0);
            }
            org.spongycastle.openpgp.examples.RSAKeyPairGenerator.exportKeyPair(new java.io.FileOutputStream("secret.asc"), new java.io.FileOutputStream("pub.asc"), v4, p8[1], p8[2].toCharArray(), 1);
        }
        return;
    }

Method org.spongycastle.openpgp.examples.PBEFileProcessor.encryptFile() calling method java.io.FileOutputStream.<init>()


    private static void encryptFile(String p2, String p3, char[] p4, boolean p5, boolean p6)
    {
        java.io.BufferedOutputStream v0_1 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p2));
        org.spongycastle.openpgp.examples.PBEFileProcessor.encryptFile(v0_1, p3, p4, p5, p6);
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.PBEFileProcessor.decryptFile() calling method java.io.FileOutputStream.<init>()


    private static void decryptFile(java.io.InputStream p3, char[] p4)
    {
        java.io.PrintStream v3_2;
        java.io.InputStream v0_5 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p3));
        java.io.PrintStream v3_5 = v0_5.nextObject();
        if (!(v3_5 instanceof org.spongycastle.openpgp.PGPEncryptedDataList)) {
            v3_2 = ((org.spongycastle.openpgp.PGPEncryptedDataList) v0_5.nextObject());
        } else {
            v3_2 = ((org.spongycastle.openpgp.PGPEncryptedDataList) v3_5);
        }
        java.io.PrintStream v3_4 = ((org.spongycastle.openpgp.PGPPBEEncryptedData) v3_2.get(0));
        String v4_3 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(v3_4.getDataStream(new org.spongycastle.openpgp.operator.jcajce.JcePBEDataDecryptorFactoryBuilder(new org.spongycastle.openpgp.operator.jcajce.JcaPGPDigestCalculatorProviderBuilder().setProvider("SC").build()).setProvider("SC").build(p4))).nextObject();
        if ((v4_3 instanceof org.spongycastle.openpgp.PGPCompressedData)) {
            v4_3 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(((org.spongycastle.openpgp.PGPCompressedData) v4_3).getDataStream()).nextObject();
        }
        String v4_6 = ((org.spongycastle.openpgp.PGPLiteralData) v4_3);
        java.io.InputStream v0_11 = v4_6.getInputStream();
        java.io.BufferedOutputStream v1_6 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(v4_6.getFileName()));
        org.spongycastle.util.io.Streams.pipeAll(v0_11, v1_6);
        v1_6.close();
        if (!v3_4.isIntegrityProtected()) {
            System.err.println("no message integrity check");
        } else {
            if (v3_4.verify()) {
                System.err.println("message integrity check passed");
            } else {
                System.err.println("message failed integrity check");
            }
        }
        return;
    }

Method org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.encryptFile() calling method java.io.FileOutputStream.<init>()


    private static void encryptFile(String p2, String p3, String p4, boolean p5, boolean p6)
    {
        java.io.BufferedOutputStream v0_1 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p2));
        org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.encryptFile(v0_1, p3, org.spongycastle.openpgp.examples.PGPExampleUtil.readPublicKey(p4), p5, p6);
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.KeyBasedLargeFileProcessor.decryptFile() calling method java.io.FileOutputStream.<init>()


    private static void decryptFile(java.io.InputStream p4, java.io.InputStream p5, char[] p6, String p7)
    {
        try {
            java.io.PrintStream v4_2;
            org.spongycastle.openpgp.PGPSecretKeyRingCollection v0_3 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p4));
            java.io.PrintStream v4_17 = v0_3.nextObject();
        } catch (java.io.PrintStream v4_3) {
            System.err.println(v4_3);
            if (v4_3.getUnderlyingException() == null) {
                return;
            } else {
                v4_3.getUnderlyingException().printStackTrace();
                return;
            }
        }
        if (!(v4_17 instanceof org.spongycastle.openpgp.PGPEncryptedDataList)) {
            v4_2 = ((org.spongycastle.openpgp.PGPEncryptedDataList) v0_3.nextObject());
        } else {
            v4_2 = ((org.spongycastle.openpgp.PGPEncryptedDataList) v4_17);
        }
        java.io.PrintStream v4_5 = v4_2.getEncryptedDataObjects();
        org.spongycastle.openpgp.PGPSecretKeyRingCollection v0_1 = new org.spongycastle.openpgp.PGPSecretKeyRingCollection(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p5), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator());
        String v5_1 = 0;
        org.spongycastle.openpgp.PGPPublicKeyEncryptedData v1_2 = 0;
        while ((v5_1 == null) && (v4_5.hasNext())) {
            v1_2 = ((org.spongycastle.openpgp.PGPPublicKeyEncryptedData) v4_5.next());
            v5_1 = org.spongycastle.openpgp.examples.PGPExampleUtil.findSecretKey(v0_1, v1_2.getKeyID(), p6);
        }
        if (v5_1 == null) {
            throw new IllegalArgumentException("secret key for message not found.");
        } else {
            java.io.PrintStream v4_19 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(new java.io.BufferedInputStream(((org.spongycastle.openpgp.PGPCompressedData) new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(v1_2.getDataStream(new org.spongycastle.openpgp.operator.jcajce.JcePublicKeyDataDecryptorFactoryBuilder().setProvider("SC").build(v5_1))).nextObject()).getDataStream())).nextObject();
            if (!(v4_19 instanceof org.spongycastle.openpgp.PGPLiteralData)) {
                if (!(v4_19 instanceof org.spongycastle.openpgp.PGPOnePassSignatureList)) {
                    throw new org.spongycastle.openpgp.PGPException("message is not a simple encrypted file - type unknown.");
                } else {
                    throw new org.spongycastle.openpgp.PGPException("encrypted message contains a signed message - not literal data.");
                }
            } else {
                java.io.PrintStream v4_25 = ((org.spongycastle.openpgp.PGPLiteralData) v4_19);
                String v5_13 = v4_25.getFileName();
                if (v5_13.length() == 0) {
                    v5_13 = p7;
                }
                java.io.PrintStream v4_26 = v4_25.getInputStream();
                java.io.BufferedOutputStream v6_4 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(v5_13));
                org.spongycastle.util.io.Streams.pipeAll(v4_26, v6_4);
                v6_4.close();
                if (!v1_2.isIntegrityProtected()) {
                    System.err.println("no message integrity check");
                    return;
                } else {
                    if (v1_2.verify()) {
                        System.err.println("message integrity check passed");
                        return;
                    } else {
                        System.err.println("message failed integrity check");
                        return;
                    }
                }
            }
        }
    }

Method org.spongycastle.openpgp.examples.KeyBasedFileProcessor.encryptFile() calling method java.io.FileOutputStream.<init>()


    private static void encryptFile(String p2, String p3, String p4, boolean p5, boolean p6)
    {
        java.io.BufferedOutputStream v0_1 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p2));
        org.spongycastle.openpgp.examples.KeyBasedFileProcessor.encryptFile(v0_1, p3, org.spongycastle.openpgp.examples.PGPExampleUtil.readPublicKey(p4), p5, p6);
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.KeyBasedFileProcessor.decryptFile() calling method java.io.FileOutputStream.<init>()


    private static void decryptFile(java.io.InputStream p4, java.io.InputStream p5, char[] p6, String p7)
    {
        try {
            java.io.PrintStream v4_2;
            org.spongycastle.openpgp.PGPSecretKeyRingCollection v0_3 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p4));
            java.io.PrintStream v4_16 = v0_3.nextObject();
        } catch (java.io.PrintStream v4_3) {
            System.err.println(v4_3);
            if (v4_3.getUnderlyingException() == null) {
                return;
            } else {
                v4_3.getUnderlyingException().printStackTrace();
                return;
            }
        }
        if (!(v4_16 instanceof org.spongycastle.openpgp.PGPEncryptedDataList)) {
            v4_2 = ((org.spongycastle.openpgp.PGPEncryptedDataList) v0_3.nextObject());
        } else {
            v4_2 = ((org.spongycastle.openpgp.PGPEncryptedDataList) v4_16);
        }
        java.io.PrintStream v4_5 = v4_2.getEncryptedDataObjects();
        org.spongycastle.openpgp.PGPSecretKeyRingCollection v0_1 = new org.spongycastle.openpgp.PGPSecretKeyRingCollection(org.spongycastle.openpgp.PGPUtil.getDecoderStream(p5), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator());
        String v5_1 = 0;
        org.spongycastle.openpgp.PGPPublicKeyEncryptedData v1_2 = 0;
        while ((v5_1 == null) && (v4_5.hasNext())) {
            v1_2 = ((org.spongycastle.openpgp.PGPPublicKeyEncryptedData) v4_5.next());
            v5_1 = org.spongycastle.openpgp.examples.PGPExampleUtil.findSecretKey(v0_1, v1_2.getKeyID(), p6);
        }
        if (v5_1 == null) {
            throw new IllegalArgumentException("secret key for message not found.");
        } else {
            java.io.PrintStream v4_13 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(v1_2.getDataStream(new org.spongycastle.openpgp.operator.jcajce.JcePublicKeyDataDecryptorFactoryBuilder().setProvider("SC").build(v5_1))).nextObject();
            if ((v4_13 instanceof org.spongycastle.openpgp.PGPCompressedData)) {
                v4_13 = new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(((org.spongycastle.openpgp.PGPCompressedData) v4_13).getDataStream()).nextObject();
            }
            if (!(v4_13 instanceof org.spongycastle.openpgp.PGPLiteralData)) {
                if (!(v4_13 instanceof org.spongycastle.openpgp.PGPOnePassSignatureList)) {
                    throw new org.spongycastle.openpgp.PGPException("message is not a simple encrypted file - type unknown.");
                } else {
                    throw new org.spongycastle.openpgp.PGPException("encrypted message contains a signed message - not literal data.");
                }
            } else {
                java.io.PrintStream v4_22 = ((org.spongycastle.openpgp.PGPLiteralData) v4_13);
                String v5_14 = v4_22.getFileName();
                if (v5_14.length() == 0) {
                    v5_14 = p7;
                }
                java.io.PrintStream v4_23 = v4_22.getInputStream();
                java.io.BufferedOutputStream v6_4 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(v5_14));
                org.spongycastle.util.io.Streams.pipeAll(v4_23, v6_4);
                v6_4.close();
                if (!v1_2.isIntegrityProtected()) {
                    System.err.println("no message integrity check");
                    return;
                } else {
                    if (v1_2.verify()) {
                        System.err.println("message integrity check passed");
                        return;
                    } else {
                        System.err.println("message failed integrity check");
                        return;
                    }
                }
            }
        }
    }

Method org.spongycastle.openpgp.examples.DirectKeySignature.main() calling method java.io.FileOutputStream.<init>()


    public static void main(String[] p6)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (p6.length != 1) {
            if (p6.length != 5) {
                System.err.println("usage: DirectKeySignature secretKeyFile secretKeyPass publicKeyFile(key to be signed) NotationName NotationValue");
                System.err.println("or: DirectKeySignature signedPublicKeyFile");
            } else {
                String v4_9 = new org.spongycastle.openpgp.PGPPublicKeyRing(new java.io.ByteArrayInputStream(org.spongycastle.openpgp.examples.DirectKeySignature.signPublicKey(new org.spongycastle.openpgp.PGPSecretKeyRing(org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[0])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator()).getSecretKey(), p6[1], new org.spongycastle.openpgp.PGPPublicKeyRing(org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[2])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator()).getPublicKey(), p6[3], p6[4])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator());
                java.io.PrintStream v6_8 = new org.spongycastle.bcpg.ArmoredOutputStream(new java.io.FileOutputStream("SignedKey.asc"));
                v4_9.encode(v6_8);
                v6_8.flush();
                v6_8.close();
            }
        } else {
            java.io.PrintStream v6_12 = new org.spongycastle.openpgp.PGPPublicKeyRing(org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[0])), new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator()).getPublicKey().getSignaturesOfType(31);
            while (v6_12.hasNext()) {
                org.spongycastle.bcpg.sig.NotationData[] v0_16 = ((org.spongycastle.openpgp.PGPSignature) v6_12.next());
                java.io.PrintStream v3_12 = new StringBuilder();
                v3_12.append("Signature date is: ");
                v3_12.append(v0_16.getHashedSubPackets().getSignatureCreationTime());
                System.out.println(v3_12.toString());
                org.spongycastle.bcpg.sig.NotationData[] v0_18 = v0_16.getHashedSubPackets().getNotationDataOccurences();
                int v2_0 = 0;
                while (v2_0 < v0_18.length) {
                    String v4_1 = new StringBuilder();
                    v4_1.append("Found Notaion named \'");
                    v4_1.append(v0_18[v2_0].getNotationName());
                    v4_1.append("\' with content \'");
                    v4_1.append(v0_18[v2_0].getNotationValue());
                    v4_1.append("\'.");
                    System.out.println(v4_1.toString());
                    v2_0++;
                }
            }
        }
        return;
    }

Method org.spongycastle.openpgp.examples.DetachedSignatureProcessor.createSignature() calling method java.io.FileOutputStream.<init>()


    private static void createSignature(String p2, String p3, String p4, char[] p5, boolean p6)
    {
        java.io.BufferedInputStream v0_1 = new java.io.BufferedInputStream(new java.io.FileInputStream(p3));
        java.io.BufferedOutputStream v3_2 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p4));
        org.spongycastle.openpgp.examples.DetachedSignatureProcessor.createSignature(p2, v0_1, v3_2, p5, p6);
        v3_2.close();
        v0_1.close();
        return;
    }

Method org.spongycastle.openpgp.examples.DSAElGamalKeyRingGenerator.main() calling method java.io.FileOutputStream.<init>()


    public static void main(String[] p11)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (p11.length < 2) {
            System.out.println("DSAElGamalKeyRingGenerator [-a] identity passPhrase");
            System.exit(0);
        }
        String v0_3 = java.security.KeyPairGenerator.getInstance("DSA", "SC");
        v0_3.initialize(1024);
        java.security.KeyPair v6 = v0_3.generateKeyPair();
        String v0_5 = java.security.KeyPairGenerator.getInstance("ELGAMAL", "SC");
        v0_5.initialize(new javax.crypto.spec.DHParameterSpec(new java.math.BigInteger("9494fec095f3b85ee286542b3836fc81a5dd0a0349b4c239dd38744d488cf8e31db8bcb7d33b41abb9e5a33cca9144b1cef332c94bf0573bf047a3aca98cdf3b", 16), new java.math.BigInteger("153d5d6172adb43045b68ae8e1de1070b6137005686d29d3d73a7749199681ee5b212c9b96bfdcfa5b20cd5e3fd2044895d609cf9b410b7a0f12ca1cb9a428cc", 16)));
        java.security.KeyPair v7_1 = v0_5.generateKeyPair();
        if (!p11[0].equals("-a")) {
            org.spongycastle.openpgp.examples.DSAElGamalKeyRingGenerator.exportKeyPair(new java.io.FileOutputStream("secret.bpg"), new java.io.FileOutputStream("pub.bpg"), v6, v7_1, p11[0], p11[1].toCharArray(), 0);
        } else {
            if (p11.length < 3) {
                System.out.println("DSAElGamalKeyRingGenerator [-a] identity passPhrase");
                System.exit(0);
            }
            org.spongycastle.openpgp.examples.DSAElGamalKeyRingGenerator.exportKeyPair(new java.io.FileOutputStream("secret.asc"), new java.io.FileOutputStream("pub.asc"), v6, v7_1, p11[1], p11[2].toCharArray(), 1);
        }
        return;
    }

Method org.spongycastle.openpgp.examples.ClearSignedFileProcessor.verifyFile() calling method java.io.FileOutputStream.<init>()


    private static void verifyFile(java.io.InputStream p8, java.io.InputStream p9, String p10)
    {
        byte[] v0_1 = new org.spongycastle.bcpg.ArmoredInputStream(p8);
        java.io.PrintStream v8_4 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p10));
        java.io.ByteArrayOutputStream v1_3 = new java.io.ByteArrayOutputStream();
        int v2_5 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v1_3, v0_1);
        byte[] v3 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.getLineSeparator();
        if ((v2_5 == -1) || (!v0_1.isClearText())) {
            if (v2_5 != -1) {
                int v2_0 = v1_3.toByteArray();
                v8_4.write(v2_0, 0, org.spongycastle.openpgp.examples.ClearSignedFileProcessor.getLengthWithoutSeparatorOrTrailingWhitespace(v2_0));
                v8_4.write(v3);
            }
        } else {
            byte[] v6_2 = v1_3.toByteArray();
            v8_4.write(v6_2, 0, org.spongycastle.openpgp.examples.ClearSignedFileProcessor.getLengthWithoutSeparatorOrTrailingWhitespace(v6_2));
            v8_4.write(v3);
            while ((v2_5 != -1) && (v0_1.isClearText())) {
                v2_5 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v1_3, v2_5, v0_1);
                byte[] v6_4 = v1_3.toByteArray();
                v8_4.write(v6_4, 0, org.spongycastle.openpgp.examples.ClearSignedFileProcessor.getLengthWithoutSeparatorOrTrailingWhitespace(v6_4));
                v8_4.write(v3);
            }
        }
        v8_4.close();
        java.io.PrintStream v8_3 = new org.spongycastle.openpgp.PGPPublicKeyRingCollection(p9, new org.spongycastle.openpgp.operator.jcajce.JcaKeyFingerprintCalculator());
        String v9_5 = ((org.spongycastle.openpgp.PGPSignatureList) new org.spongycastle.openpgp.jcajce.JcaPGPObjectFactory(v0_1).nextObject()).get(0);
        v9_5.init(new org.spongycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProvider().setProvider("SC"), v8_3.getPublicKey(v9_5.getKeyID()));
        java.io.PrintStream v8_7 = new java.io.BufferedInputStream(new java.io.FileInputStream(p10));
        int v10_1 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v1_3, v8_7);
        org.spongycastle.openpgp.examples.ClearSignedFileProcessor.processLine(v9_5, v1_3.toByteArray());
        if (v10_1 != -1) {
            do {
                v10_1 = org.spongycastle.openpgp.examples.ClearSignedFileProcessor.readInputLine(v1_3, v10_1, v8_7);
                v9_5.update(13);
                v9_5.update(10);
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.processLine(v9_5, v1_3.toByteArray());
            } while(v10_1 != -1);
        }
        v8_7.close();
        if (!v9_5.verify()) {
            System.out.println("signature verification failed.");
        } else {
            System.out.println("signature verified.");
        }
        return;
    }

Method org.spongycastle.openpgp.examples.ClearSignedFileProcessor.main() calling method java.io.FileOutputStream.<init>()


    public static void main(String[] p6)
    {
        java.security.Security.addProvider(new org.spongycastle.jce.provider.BouncyCastleProvider());
        if (!p6[0].equals("-s")) {
            if (!p6[0].equals("-v")) {
                System.err.println("usage: ClearSignedFileProcessor [-s file keyfile passPhrase]|[-v sigFile keyFile]");
            } else {
                if (p6[1].indexOf(".asc") < 0) {
                    System.err.println("file needs to end in \".asc\"");
                    System.exit(1);
                }
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.verifyFile(new java.io.FileInputStream(p6[1]), org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[2])), p6[1].substring(0, (p6[1].length() - 4)));
            }
        } else {
            String v0_6 = org.spongycastle.openpgp.PGPUtil.getDecoderStream(new java.io.FileInputStream(p6[2]));
            java.io.InputStream v2_4 = new StringBuilder();
            v2_4.append(p6[1]);
            v2_4.append(".asc");
            java.io.FileInputStream v1_10 = new java.io.FileOutputStream(v2_4.toString());
            if (p6.length != 4) {
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.signFile(p6[1], v0_6, v1_10, p6[3].toCharArray(), p6[4]);
            } else {
                org.spongycastle.openpgp.examples.ClearSignedFileProcessor.signFile(p6[1], v0_6, v1_10, p6[3].toCharArray(), "SHA1");
            }
        }
        return;
    }

Method org.spongycastle.crypto.examples.DESExample.<init>() calling method java.io.FileOutputStream.<init>()


    public DESExample(String p6, String p7, String p8, boolean p9)
    {
        this.encrypt = 1;
        this.cipher = 0;
        this.in = 0;
        this.out = 0;
        this.key = 0;
        this.encrypt = p9;
        try {
            this.in = new java.io.BufferedInputStream(new java.io.FileInputStream(p6));
            try {
                this.out = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p7));
            } catch (java.io.IOException) {
                StringBuilder v2_5 = new StringBuilder();
                v2_5.append("Output file not created [");
                v2_5.append(p7);
                v2_5.append("]");
                System.err.println(v2_5.toString());
                System.exit(1);
            }
            if (p9 == null) {
                try {
                    java.io.BufferedOutputStream v7_6 = new java.io.BufferedInputStream(new java.io.FileInputStream(p8));
                    byte[] v9_7 = v7_6.available();
                    int v1_2 = new byte[v9_7];
                    v7_6.read(v1_2, 0, v9_7);
                    this.key = org.spongycastle.util.encoders.Hex.decode(v1_2);
                } catch (java.io.IOException) {
                    java.io.BufferedOutputStream v7_8 = new StringBuilder();
                    v7_8.append("Decryption key file not found, or not valid [");
                    v7_8.append(p8);
                    v7_8.append("]");
                    System.err.println(v7_8.toString());
                    System.exit(1);
                }
            } else {
                try {
                    java.io.BufferedOutputStream v7_11 = new java.security.SecureRandom();
                } catch (Exception) {
                    v7_11 = 0;
                    System.err.println("Hmmm, no SHA1PRNG, you need the Sun implementation");
                    System.exit(1);
                    byte[] v9_14 = new org.spongycastle.crypto.KeyGenerationParameters(v7_11, 192);
                    java.io.BufferedOutputStream v7_16 = new org.spongycastle.crypto.generators.DESedeKeyGenerator();
                    v7_16.init(v9_14);
                    this.key = v7_16.generateKey();
                    java.io.BufferedOutputStream v7_2 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(p8));
                    byte[] v9_4 = org.spongycastle.util.encoders.Hex.encode(this.key);
                    v7_2.write(v9_4, 0, v9_4.length);
                    v7_2.flush();
                    v7_2.close();
                } catch (java.io.IOException) {
                    java.io.BufferedOutputStream v7_13 = new StringBuilder();
                    v7_13.append("Could not decryption create key file [");
                    v7_13.append(p8);
                    v7_13.append("]");
                    System.err.println(v7_13.toString());
                    System.exit(1);
                }
                v7_11.setSeed("www.bouncycastle.org".getBytes());
            }
            return;
        } catch (java.io.FileNotFoundException) {
            String v3_3 = new StringBuilder();
            v3_3.append("Input file not found [");
            v3_3.append(p6);
            v3_3.append("]");
            System.err.println(v3_3.toString());
            System.exit(1);
        }
    }

Method org.apache.commons.io.output.XmlStreamWriter.<init>() calling method java.io.FileOutputStream.<init>()


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

Method org.apache.commons.io.output.LockableFileWriter.initWriter() calling method java.io.FileOutputStream.<init>()


    private java.io.Writer initWriter(java.io.File p5, java.nio.charset.Charset p6, boolean p7)
    {
        boolean v0 = p5.exists();
        try {
            return new java.io.OutputStreamWriter(new java.io.FileOutputStream(p5.getAbsolutePath(), p7), org.apache.commons.io.Charsets.toCharset(p6));
        } catch (java.io.IOException v6_1) {
            org.apache.commons.io.FileUtils.deleteQuietly(this.lockFile);
            if (!v0) {
                org.apache.commons.io.FileUtils.deleteQuietly(p5);
            }
            throw v6_1;
        }
    }

Method org.apache.commons.io.output.FileWriterWithEncoding.initWriter() calling method java.io.FileOutputStream.<init>()


    private static java.io.Writer initWriter(java.io.File p3, Object p4, boolean p5)
    {
        if (p3 == null) {
            throw new NullPointerException("File is missing");
        } else {
            if (p4 == null) {
                throw new NullPointerException("Encoding is missing");
            } else {
                boolean v1 = p3.exists();
                try {
                    int v2_1 = new java.io.FileOutputStream(p3, p5);
                    try {
                        if (!(p4 instanceof java.nio.charset.Charset)) {
                            if (!(p4 instanceof java.nio.charset.CharsetEncoder)) {
                                return new java.io.OutputStreamWriter(v2_1, ((String) p4));
                            } else {
                                return new java.io.OutputStreamWriter(v2_1, ((java.nio.charset.CharsetEncoder) p4));
                            }
                        } else {
                            return new java.io.OutputStreamWriter(v2_1, ((java.nio.charset.Charset) p4));
                        }
                    } catch (String v4_1) {
                        if (v2_1 != 0) {
                            try {
                                v2_1.close();
                            } catch (java.io.IOException v5_9) {
                                v4_1.addSuppressed(v5_9);
                            }
                        }
                        if (!v1) {
                            org.apache.commons.io.FileUtils.deleteQuietly(p3);
                        }
                        throw v4_1;
                    }
                } catch (String v4_1) {
                    v2_1 = 0;
                }
            }
        }
    }

Method org.apache.commons.io.FileUtils.openOutputStream() calling method java.io.FileOutputStream.<init>()


    public static java.io.FileOutputStream openOutputStream(java.io.File p2, boolean p3)
    {
        if (!p2.exists()) {
            String v0_5 = p2.getParentFile();
            if ((v0_5 != null) && ((!v0_5.mkdirs()) && (!v0_5.isDirectory()))) {
                String v3_2 = new StringBuilder();
                v3_2.append("Directory \'");
                v3_2.append(v0_5);
                v3_2.append("\' could not be created");
                throw new java.io.IOException(v3_2.toString());
            }
        } else {
            if (p2.isDirectory()) {
                String v0_4 = new StringBuilder();
                v0_4.append("File \'");
                v0_4.append(p2);
                v0_4.append("\' exists but is a directory");
                throw new java.io.IOException(v0_4.toString());
            } else {
                if (!p2.canWrite()) {
                    String v0_8 = new StringBuilder();
                    v0_8.append("File \'");
                    v0_8.append(p2);
                    v0_8.append("\' cannot be written to");
                    throw new java.io.IOException(v0_8.toString());
                }
            }
        }
        return new java.io.FileOutputStream(p2, p3);
    }

Method org.apache.commons.io.FileUtils.doCopyFile() calling method java.io.FileOutputStream.<init>()


    private static void doCopyFile(java.io.File p19, java.io.File p20, boolean p21)
    {
        if ((p20.exists()) && (p20.isDirectory())) {
            long v2_0 = new StringBuilder();
            v2_0.append("Destination \'");
            v2_0.append(p20);
            v2_0.append("\' exists but is a directory");
            throw new java.io.IOException(v2_0.toString());
        } else {
            long v2_5 = new java.io.FileInputStream(p19);
            Throwable v3_0 = 0;
            try {
                java.nio.channels.FileChannel v10 = v2_5.getChannel();
                try {
                    java.io.FileOutputStream v11_1 = new java.io.FileOutputStream(p20);
                    try {
                        java.nio.channels.FileChannel v12 = v11_1.getChannel();
                        try {
                            long v13 = v10.size();
                            long v17 = 0;
                        } catch (String v0_11) {
                            Throwable v1_5 = v0_11;
                            long v4_3 = 0;
                            if (v12 != null) {
                                if (v4_3 == 0) {
                                    v12.close();
                                } else {
                                    try {
                                        v12.close();
                                    } catch (String v0_12) {
                                        v4_3.addSuppressed(v0_12);
                                    }
                                }
                            }
                            throw v1_5;
                        } catch (String v0_9) {
                            Throwable v1_4 = v0_9;
                            try {
                                throw v1_4;
                            } catch (String v0_10) {
                                v4_3 = v1_4;
                                v1_5 = v0_10;
                            }
                        }
                        while (v17 < v13) {
                            String v8_2;
                            long v4_2 = (v13 - v17);
                            if (v4_2 <= 31457280) {
                                v8_2 = v4_2;
                            } else {
                                v8_2 = 31457280;
                            }
                            long v4_5 = v12.transferFrom(v10, v17, v8_2);
                            if (v4_5 == 0) {
                                break;
                            }
                            v17 += v4_5;
                        }
                        if (v12 != null) {
                            v12.close();
                        }
                        v11_1.close();
                        if (v10 != null) {
                            v10.close();
                        }
                        v2_5.close();
                        long v2_2 = p19.length();
                        long v4_0 = p20.length();
                        if (v2_2 != v4_0) {
                            StringBuilder v7_1 = new StringBuilder();
                            v7_1.append("Failed to copy full contents from \'");
                            v7_1.append(p19);
                            v7_1.append("\' to \'");
                            v7_1.append(p20);
                            v7_1.append("\' Expected length: ");
                            v7_1.append(v2_2);
                            v7_1.append(" Actual: ");
                            v7_1.append(v4_0);
                            throw new java.io.IOException(v7_1.toString());
                        } else {
                            if (p21) {
                                p20.setLastModified(p19.lastModified());
                            }
                            return;
                        }
                    } catch (String v0_15) {
                        Throwable v1_7 = v0_15;
                        long v4_6 = 0;
                        if (v4_6 == 0) {
                            v11_1.close();
                        } else {
                            try {
                                v11_1.close();
                            } catch (String v0_17) {
                                v4_6.addSuppressed(v0_17);
                            }
                        }
                        throw v1_7;
                    } catch (String v0_13) {
                        Throwable v1_6 = v0_13;
                        try {
                            throw v1_6;
                        } catch (String v0_14) {
                            v4_6 = v1_6;
                            v1_7 = v0_14;
                        }
                    }
                } catch (String v0_20) {
                    Throwable v1_9 = v0_20;
                    long v4_7 = 0;
                    if (v10 != null) {
                        if (v4_7 == 0) {
                            v10.close();
                        } else {
                            try {
                                v10.close();
                            } catch (String v0_21) {
                                v4_7.addSuppressed(v0_21);
                            }
                        }
                    }
                    throw v1_9;
                } catch (String v0_18) {
                    Throwable v1_8 = v0_18;
                    try {
                        throw v1_8;
                    } catch (String v0_19) {
                        v4_7 = v1_8;
                        v1_9 = v0_19;
                    }
                }
            } catch (String v0_2) {
                Throwable v1_1 = v0_2;
                if (v3_0 == null) {
                    v2_5.close();
                } else {
                    try {
                        v2_5.close();
                    } catch (String v0_3) {
                        v3_0.addSuppressed(v0_3);
                    }
                }
                throw v1_1;
            } catch (String v0_1) {
                v3_0 = v0_1;
                throw v3_0;
            }
        }
    }

Method okio.l.c() calling method java.io.FileOutputStream.<init>()


    public static okio.q c(java.io.File p2)
    {
        if (p2 == null) {
            throw new IllegalArgumentException("file == null");
        } else {
            return okio.l.a(new java.io.FileOutputStream(p2, 1));
        }
    }

Method okio.l.b() calling method java.io.FileOutputStream.<init>()


    public static okio.q b(java.io.File p1)
    {
        if (p1 == null) {
            throw new IllegalArgumentException("file == null");
        } else {
            return okio.l.a(new java.io.FileOutputStream(p1));
        }
    }

Method de.slackspace.openkeepass.a.a() calling method java.io.FileOutputStream.<init>()


    public static void a(de.slackspace.openkeepass.domain.KeePassFile p1, String p2, byte[] p3, String p4)
    {
        if ((p4 == null) || (p4.isEmpty())) {
            throw new IllegalArgumentException("You must provide a non-empty path where the database should be written to.");
        } else {
            try {
                ark>de.slackspace.openkeepass.aark>.a(p1, p2, p3, new java.io.FileOutputStream(p4));
                return;
            } catch (java.io.FileNotFoundException v1_1) {
                throw new de.slackspace.openkeepass.exception.KeePassDatabaseUnreadableException("Could not find database file", v1_1);
            }
        }
    }

Method com.sophos.smsec.plugin.webfiltering.a.b() calling method java.io.FileOutputStream.<init>()


    public static void b(android.content.Context p5)
    {
        try {
            Throwable v0_5 = new java.io.FileOutputStream(new java.io.File(com.sophos.smsec.plugin.webfiltering.a.a(p5), "smsec_service.html"));
            Throwable v5_1 = 0;
            try {
                Throwable v1_8 = new java.io.OutputStreamWriter(v0_5);
                try {
                    v1_8.append("<html><head><script type=\"text/javascript\">window.history.go(-2);</script></head><body></body></html>\n");
                } catch (Throwable v2_2) {
                    Throwable v3_1 = 0;
                    if (v3_1 == null) {
                        v1_8.close();
                    } else {
                        try {
                            v1_8.close();
                        } catch (Throwable v1_1) {
                            v3_1.addSuppressed(v1_1);
                        }
                    }
                    throw v2_2;
                } catch (Throwable v2_1) {
                    try {
                        throw v2_1;
                    } catch (Throwable v3_0) {
                        v3_1 = v2_1;
                        v2_2 = v3_0;
                    }
                }
                v1_8.close();
                v0_5.close();
                return;
            } catch (Throwable v1_2) {
                if (v5_1 == null) {
                    v0_5.close();
                } else {
                    try {
                        v0_5.close();
                    } catch (Throwable v0_1) {
                        v5_1.addSuppressed(v0_1);
                    }
                }
                throw v1_2;
            } catch (Throwable v5_1) {
                throw v5_1;
            }
        } catch (Throwable v5_5) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "File not found exeception", v5_5);
            return;
        } catch (Throwable v5_4) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "IO exeception", v5_4);
            return;
        } catch (Throwable v5_3) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "Global exeception", v5_3);
            return;
        }
    }

Method com.sophos.smsec.plugin.appprotection.l.a() calling method java.io.FileOutputStream.<init>()


    public static java.io.File a(android.content.Context p5, byte[] p6)
    {
        try {
            java.io.IOException v5_1 = ark>com.sophos.smsec.plugin.appprotection.lark>.b(p5);
        } catch (java.io.IOException v5_3) {
            com.sophos.smsec.core.smsectrace.d.c("AppProtection", "Error creating trace file \'sophos_mobile_security_app_protection_recovery.html\'. ", v5_3);
            return 0;
        } catch (java.io.IOException v5_2) {
            com.sophos.smsec.core.smsectrace.d.c("AppProtection", "Error creating trace file.\'sophos_mobile_security_app_protection_recovery.html\'. ", v5_2);
            return 0;
        }
        if ((v5_1.exists()) && ((v5_1.length() > 0) && (!Boolean.valueOf(v5_1.delete()).booleanValue()))) {
            com.sophos.smsec.core.smsectrace.d.d("AppProtection", "cannot delete file:\'sophos_mobile_security_app_protection_recovery.html\'. ");
        }
        String v1_7 = new java.io.FileOutputStream(v5_1, v5_1.exists());
        v1_7.write(p6);
        v1_7.flush();
        v1_7.close();
        return v5_1;
    }

Method com.sophos.smsec.plugin.appprotection.l.a() calling method java.io.FileOutputStream.<init>()


    public static java.io.File a(android.content.Context p5, String p6)
    {
        try {
            java.io.IOException v5_1 = ark>com.sophos.smsec.plugin.appprotection.lark>.a(p5);
        } catch (java.io.IOException v5_3) {
            com.sophos.smsec.core.smsectrace.d.c("AppProtection", "Error creating trace file \'sophos_mobile_security_app_protection_recovery.html\'. ", v5_3);
            return 0;
        } catch (java.io.IOException v5_2) {
            com.sophos.smsec.core.smsectrace.d.c("AppProtection", "Error creating trace file.\'sophos_mobile_security_app_protection_recovery.html\'. ", v5_2);
            return 0;
        }
        if ((v5_1.exists()) && ((v5_1.length() > 0) && (!Boolean.valueOf(v5_1.delete()).booleanValue()))) {
            com.sophos.smsec.core.smsectrace.d.d("AppProtection", "cannot delete file:\'sophos_mobile_security_app_protection_recovery.html\'. ");
        }
        String v1_7 = new java.io.FileOutputStream(v5_1, v5_1.exists());
        String v2_3 = new java.io.FileWriter(v1_7.getFD());
        java.io.BufferedWriter v3_2 = new java.io.BufferedWriter(v2_3);
        v3_2.write(p6);
        v3_2.close();
        v2_3.close();
        v1_7.close();
        return v5_1;
    }

Method com.sophos.smsec.core.updateengine.reader.n.j() calling method java.io.FileOutputStream.<init>()


    protected java.io.OutputStream j()
    {
        return new java.io.FileOutputStream(this.d());
    }

Method com.sophos.smsec.core.updateengine.reader.d.a() calling method java.io.FileOutputStream.<init>()


    public static void a(java.io.File p4, String p5)
    {
        String v4_1 = ark>com.sophos.smsec.core.updateengine.reader.dark>.b(p4);
        String v0_0 = 0;
        try {
            String v1_6 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(v4_1)));
            try {
                v1_6.write(p5);
                try {
                    v1_6.close();
                } catch (java.io.IOException) {
                    String v5_3 = "nge_sta";
                    String v0_2 = new StringBuilder();
                    v0_2.append("Cannot close file  ");
                    v0_2.append(v4_1.getName());
                    com.sophos.smsec.core.smsectrace.d.c(v5_3, v0_2.toString());
                }
                return;
            } catch (String v5_2) {
                v0_0 = v1_6;
                if (v0_0 != null) {
                    try {
                        v0_0.close();
                    } catch (java.io.IOException) {
                        String v0_4 = new StringBuilder();
                        v0_4.append("Cannot close file  ");
                        v0_4.append(v4_1.getName());
                        com.sophos.smsec.core.smsectrace.d.c("nge_sta", v0_4.toString());
                    }
                }
                throw v5_2;
            } catch (java.io.IOException) {
                v0_0 = v1_6;
                String v1_1 = new StringBuilder();
                v1_1.append("Cannot write file ");
                v1_1.append(v4_1.getName());
                com.sophos.smsec.core.smsectrace.d.c("nge_sta", v1_1.toString());
                if (v0_0 == null) {
                    return;
                } else {
                    try {
                        v0_0.close();
                    } catch (java.io.IOException) {
                        v5_3 = "nge_sta";
                        v0_2 = new StringBuilder();
                    }
                    return;
                }
            }
        } catch (String v5_2) {
        }
    }

Method com.sophos.smsec.core.smsectrace.d.b() calling method java.io.FileOutputStream.<init>()


    public static void b(android.content.Context p9, String p10)
    {
        if (com.sophos.smsec.core.smsectrace.d.c == null) {
            com.sophos.smsec.core.smsectrace.d.c = p9;
        }
        java.io.BufferedWriter v9_1 = 0;
        try {
            java.io.FileWriter v1_0 = new java.io.File(com.sophos.smsec.core.smsectrace.d.c(com.sophos.smsec.core.smsectrace.d.c), org.apache.commons.io.FilenameUtils.getName(p10));
        } catch (String v10_49) {
            java.io.BufferedWriter v3_2 = 0;
            if (v3_2 != null) {
                try {
                    v3_2.close();
                } catch (java.io.BufferedWriter v9_4) {
                    android.util.Log.e("Sophos", "Cleanup of IOstream really failed.", v9_4);
                }
            }
            throw v10_49;
        } catch (String v10_46) {
            v3_2 = 0;
            if (com.sophos.smsec.core.smsectrace.d.c != null) {
                com.sophos.smsec.core.smsectrace.d.d(com.sophos.smsec.core.smsectrace.d.a(com.sophos.smsec.core.smsectrace.d.c, 0));
            }
            com.sophos.smsec.core.smsectrace.d.a(0);
            String v0_2 = new StringBuilder();
            v0_2.append("Error cannot create file ");
            v0_2.append(com.sophos.smsec.core.smsectrace.d.g());
            v0_2.append(" in app folder.");
            android.util.Log.e("Sophos", v0_2.toString(), v10_46);
            if (v3_2 == null) {
                return;
            } else {
                v3_2.close();
                return;
            }
            v3_2.close();
            java.io.FileWriter v1_11.close();
            java.io.FileOutputStream v2_10.close();
            v9_1 = v3_2;
            if (v9_1 == null) {
                return;
            } else {
                v9_1.close();
                return;
            }
        } catch (String v10_49) {
        } catch (java.io.BufferedWriter v9_5) {
            android.util.Log.e("Sophos", "Cleanup of IOstream really failed.", v9_5);
            return;
        }
        if ((v1_0.exists()) && ((v1_0.isDirectory()) && (!v1_0.delete()))) {
            android.util.Log.e("Sophos", "deleting blocking folder failed.");
        }
        if ((!v1_0.exists()) || (v1_0.length() <= 2)) {
            String v4_7;
            java.io.BufferedWriter v3_4 = new StringBuilder();
            v3_4.append("calling mkdirs returned ");
            if (!v1_0.getParentFile().mkdirs()) {
                v4_7 = "false";
            } else {
                v4_7 = "true";
            }
            v3_4.append(v4_7);
            android.util.Log.v("Sophos", v3_4.toString());
            v2_10 = new java.io.FileOutputStream(v1_0);
            v1_11 = new java.io.FileWriter(v2_10.getFD());
            v3_2 = new java.io.BufferedWriter(v1_11, 8192);
            try {
                String v4_10 = new StringBuilder();
                v4_10.append("Tracefile touched (app started or preference toggled) at ");
                v4_10.append(com.sophos.smsec.core.smsectrace.d.j());
                v4_10.append("\n");
                v4_10.append("This is ");
                v4_10.append(p10);
                v4_10.append("\n");
                v4_10.append("OS Version: ");
                v4_10.append(System.getProperty("os.version"));
                v4_10.append("(");
                v4_10.append(android.os.Build$VERSION.INCREMENTAL);
                v4_10.append(")\n");
                v4_10.append("OS API Level: ");
                v4_10.append(android.os.Build$VERSION.SDK_INT);
                v4_10.append(" (");
                v4_10.append(android.os.Build$VERSION.RELEASE);
                v4_10.append(")\n");
                v4_10.append("Device: ");
                v4_10.append(android.os.Build.DEVICE);
                v4_10.append(", Model (Product): ");
                v4_10.append(android.os.Build.MODEL);
                v4_10.append(" (");
                v4_10.append(android.os.Build.PRODUCT);
                v4_10.append(")\n");
                v4_10.append("Manufacturer: ");
                v4_10.append(android.os.Build.MANUFACTURER);
            } catch (String v10_46) {
            }
            if (android.os.Build$VERSION.SDK_INT < 23) {
                v4_10.append(", Release (Product): ");
                v4_10.append(android.os.Build$VERSION.RELEASE);
                v4_10.append(" (");
            } else {
                v4_10.append(", Base_OS (Release, Product): ");
                v4_10.append(android.os.Build$VERSION.BASE_OS);
                v4_10.append(" (");
                v4_10.append(android.os.Build$VERSION.RELEASE);
                v4_10.append(", ");
            }
            v4_10.append(android.os.Build$VERSION.INCREMENTAL);
            v4_10.append(")\n");
            if (com.sophos.smsec.core.smsectrace.d.c != null) {
                String v10_20 = com.sophos.smsec.core.smsectrace.d.c.getResources().getDisplayMetrics();
                v4_10.append("Display (px): ");
                v4_10.append(v10_20.widthPixels);
                v4_10.append(" wide and ");
                v4_10.append(v10_20.heightPixels);
                v4_10.append(" high. ");
                v4_10.append(v10_20.densityDpi);
                v4_10.append(" densityDpi \n");
                String v10_25 = com.sophos.smsec.core.smsectrace.d.c.getResources().getConfiguration();
                v4_10.append("Display (dp): ");
                v4_10.append(v10_25.screenWidthDp);
                v4_10.append(" wide and ");
                v4_10.append(v10_25.screenHeightDp);
                v4_10.append(" high. Font scale = ");
                v4_10.append(v10_25.fontScale);
                v4_10.append("\n");
                if (android.os.Build$VERSION.SDK_INT < 24) {
                    v4_10.append("Locale: ");
                    v4_10.append(v10_25.locale);
                    v4_10.append(" \n");
                } else {
                    v4_10.append("Locale: ");
                    v4_10.append(v10_25.getLocales().get(0));
                    String v5_18 = 1;
                    while (v5_18 < v10_25.getLocales().size()) {
                        v4_10.append(", ");
                        v4_10.append(v10_25.getLocales().get(v5_18));
                        v5_18++;
                    }
                    v4_10.append(" \n");
                }
                try {
                    String v10_31 = com.sophos.smsec.core.smsectrace.d.c.getPackageManager().getPackageInfo(com.sophos.smsec.core.smsectrace.d.c.getPackageName(), 128);
                    v4_10.append("Sophos App (version, build): ");
                    v4_10.append(v10_31.packageName);
                    v4_10.append(" (");
                    v4_10.append(v10_31.versionName);
                    v4_10.append(", ");
                    v4_10.append(v10_31.versionCode);
                    v4_10.append(")\n");
                } catch (String v10_33) {
                    v4_10.append("Sophos App unknown: ");
                    v4_10.append(v10_33.getMessage());
                    v4_10.append("\n");
                }
                if (v10_31.lastUpdateTime <= v10_31.firstInstallTime) {
                    v4_10.append("Installed: ");
                    v4_10.append(v10_31.firstInstallTime);
                } else {
                    v4_10.append("Installed (updated): ");
                    v4_10.append(v10_31.firstInstallTime);
                    v4_10.append(" (");
                    v4_10.append(v10_31.lastUpdateTime);
                    v4_10.append(")");
                }
            }
            if (v4_10.length() > 568) {
                String v10_38 = new StringBuilder();
                v10_38.append(v4_10.toString().substring(0, 568));
                v10_38.append("\n\n");
                v3_2.write(v10_38.toString());
            } else {
                String v10_41 = new char[(568 - v4_10.length())];
                v4_10.append(String.valueOf(v10_41).replace(0, 32));
                v4_10.append("\n\n");
                v3_2.write(v4_10.toString());
            }
        } else {
            java.io.FileWriter v1_2 = new StringBuilder();
            v1_2.append("Trace file \'");
            v1_2.append(p10);
            v1_2.append("\' already exists. ");
            com.sophos.smsec.core.smsectrace.d.f(v1_2.toString());
        }
    }

Method com.sophos.smsec.core.smsectrace.d.a() calling method java.io.FileOutputStream.<init>()


    private static boolean a(java.io.File p12, java.io.File p13)
    {
        try {
            java.io.FileInputStream v0_1 = new java.io.FileInputStream(p12);
            java.nio.channels.FileChannel v7 = v0_1.getChannel();
            boolean v13_2 = java.nio.channels.Channels.newChannel(new java.util.zip.GZIPOutputStream(new java.io.FileOutputStream(p13)));
            long v10 = 0;
        } catch (java.io.IOException) {
            return 0;
        }
        do {
            long v1_2 = v7.transferTo(v10, (v7.size() - v10), v13_2);
            v10 += v1_2;
        } while((v1_2 != 0) && (v10 < v7.size()));
        v0_1.close();
        if (v13_2) {
            v13_2.close();
        }
        if (!p12.delete()) {
            ark>com.sophos.smsec.core.smsectrace.dark>.a(p12);
        }
        return 1;
    }

Method com.sophos.smsec.core.smsectrace.d.a() calling method java.io.FileOutputStream.<init>()


    static void a(java.io.File p3)
    {
        try {
            if ((p3 == null) || (!p3.exists())) {
                ark>com.sophos.smsec.core.smsectrace.dark>.d("Sophos", "file does not exist, nothing to clear.");
            } else {
                java.io.FileOutputStream v0_4 = new java.io.FileOutputStream(p3);
                java.io.FileWriter v3_1 = new java.io.FileWriter(v0_4.getFD());
                v3_1.write(10);
                v3_1.close();
                v0_4.close();
            }
        } catch (java.io.FileWriter v3_2) {
            int v1_3 = new StringBuilder();
            v1_3.append("Error cannot create empty file ");
            v1_3.append(ark>com.sophos.smsec.core.smsectrace.dark>.g());
            v1_3.append(".");
            android.util.Log.e("Sophos", v1_3.toString(), v3_2);
        }
        return;
    }

Method com.sophos.smsec.core.smsectrace.SendTraceMail.b() calling method java.io.FileOutputStream.<init>()


    private static int b(java.io.File p3, java.io.File p4)
    {
        String v0_0 = 0;
        try {
            int v1_1 = new java.io.FileInputStream(p3);
            try {
                String v3_8 = new java.io.FileOutputStream(p4);
                try {
                    String v4_1 = com.sophos.smsec.core.smsectrace.SendTraceMail.a(v1_1, v3_8);
                    try {
                        v3_8.close();
                        try {
                            v1_1.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing input stream failed.");
                        }
                        return v4_1;
                    } catch (java.io.IOException) {
                        com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing output stream failed.");
                    }
                } catch (String v4_3) {
                    v0_0 = v3_8;
                    if (v0_0 != null) {
                        try {
                            v0_0.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing output stream failed.");
                        }
                    }
                    if (v1_1 != 0) {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing input stream failed.");
                        }
                    }
                    throw v4_3;
                } catch (String v4_2) {
                    v0_0 = v3_8;
                    com.sophos.smsec.core.smsectrace.d.b("SendTraceMail", "can\'t open file stream.", v4_2);
                    if (v0_0 != null) {
                        try {
                            v0_0.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing output stream failed.");
                        }
                    }
                    if (v1_1 != 0) {
                        try {
                            v1_1.close();
                        } catch (java.io.IOException) {
                            com.sophos.smsec.core.smsectrace.d.e("SendTraceMail", "closing input stream failed.");
                        }
                    }
                    return 0;
                }
            } catch (String v4_2) {
            }
        } catch (String v4_3) {
            v1_1 = 0;
        } catch (String v4_2) {
            v1_1 = 0;
        } catch (String v4_3) {
        }
    }

Method com.sophos.smsec.core.smsectrace.SendTraceMail.a() calling method java.io.FileOutputStream.<init>()

Couldn't retrieve source code

Method com.sophos.smsec.core.smsectrace.LogCollectReceiver.onReceive() calling method java.io.FileOutputStream.<init>()


    public void onReceive(android.content.Context p6, android.content.Intent p7)
    {
        if ("com.sophos.SYNC_COLLECT_LOG".equals(p7.getAction())) {
            if (com.sophos.smsec.core.smsectrace.LogCollectReceiver.a(p6)) {
                java.io.File v0_1 = p7.getBooleanExtra("SEND_LOG", 0);
                String v7_1 = p7.getStringExtra("LOG_PATH");
                if ((v0_1 != null) || ((v7_1 == null) || (v7_1.isEmpty()))) {
                    if (v0_1 != null) {
                        com.sophos.smsec.core.smsectrace.SendTraceMail.a(p6, 0, "com.sophos.SYNC_SEND_LOG");
                    }
                } else {
                    java.io.File v0_3 = new java.io.File(v7_1);
                    if (v0_3.exists()) {
                        if (!com.sophos.smsec.core.smsectrace.d.d()) {
                            String v7_6 = p6.getApplicationInfo().packageName;
                            java.io.FileOutputStream v3_1 = new StringBuilder();
                            v3_1.append("settings.");
                            v3_1.append(v7_6);
                            v3_1.append(".sophos.log");
                            try {
                                java.io.FileOutputStream v3_4 = new java.io.FileOutputStream(new java.io.File(v0_3, v3_1.toString()));
                                String v2_4 = new StringBuilder();
                                v2_4.append(p6.getString(com.sophos.smsec.core.smsectrace.c$a.Log_verbose_titel));
                                v2_4.append(" deactivated! No logfile available for ");
                                v2_4.append(v7_6);
                                v2_4.append("!");
                                v3_4.write(v2_4.toString().getBytes(java.nio.charset.StandardCharsets.UTF_8));
                                v3_4.close();
                            } catch (java.io.IOException) {
                                com.sophos.smsec.core.smsectrace.d.d("LogCollectReceiver", "could not create settings hint.");
                            }
                        }
                        com.sophos.smsec.core.smsectrace.SendTraceMail.a(p6, v0_3, 0);
                    }
                }
            } else {
                return;
            }
        }
        return;
    }

Method com.sophos.smsec.core.sav.SavEngine.checkAndPopulateDataDir() calling method java.io.FileOutputStream.<init>()


    private static void checkAndPopulateDataDir(android.content.Context p10)
    {
        String v0_1 = new byte[4096];
        java.io.File v1 = com.sophos.smsec.core.sav.a.b(p10);
        if (!v1.isDirectory()) {
            throw new java.io.IOException("dataDir is not a directory.");
        } else {
            if (v1.list().length == 0) {
                android.content.res.AssetManager v10_1 = p10.getAssets();
                String[] v2_3 = v10_1.list("sav");
                int v3 = v2_3.length;
                int v5 = 0;
                while (v5 < v3) {
                    int v6_0 = v2_3[v5];
                    java.io.InputStream v7_1 = new StringBuilder();
                    v7_1.append("sav");
                    v7_1.append(java.io.File.separator);
                    v7_1.append(v6_0);
                    java.io.InputStream v7_3 = v10_1.open(v7_1.toString());
                    java.io.FileOutputStream v8_3 = new java.io.FileOutputStream(new java.io.File(v1, v6_0));
                    while(true) {
                        int v6_1 = v7_3.read(v0_1);
                        if (v6_1 < 0) {
                            break;
                        }
                        v8_3.write(v0_1, 0, v6_1);
                    }
                    v8_3.close();
                    v7_3.close();
                    v5++;
                }
            }
            return;
        }
    }

Method com.sophos.smsec.command.persist.a.b() calling method java.io.FileOutputStream.<init>()


    private void b(android.content.Context p5)
    {
        try {
            Throwable v1_1 = new java.util.ArrayList();
            v1_1.addAll(this.c);
            v1_1.addAll(this.a);
            try {
                Throwable v5_2 = new java.io.ObjectOutputStream(new java.io.FileOutputStream(new java.io.File(p5.getFilesDir(), "persistQueue")));
                Throwable v2_1 = 0;
                try {
                    v5_2.writeObject(v1_1);
                } catch (Throwable v1_2) {
                    if (v2_1 == null) {
                        v5_2.close();
                    } else {
                        try {
                            v5_2.close();
                        } catch (Throwable v5_3) {
                            v2_1.addSuppressed(v5_3);
                        }
                    }
                    throw v1_2;
                } catch (Throwable v2_1) {
                    throw v2_1;
                }
                v5_2.close();
                return;
            } catch (Throwable v5_4) {
                com.sophos.smsec.core.smsectrace.d.c("Persist", "could not persist command queue", v5_4);
                return;
            }
        } catch (Throwable v5_5) {
            throw v5_5;
        }
    }

Method com.sophos.smsec.a.a.a() calling method java.io.FileOutputStream.<init>()


    public static boolean a(java.io.File p4, byte[] p5)
    {
        StringBuilder v1_0 = 0;
        try {
            String v2_4 = new java.io.FileOutputStream(p4);
            try {
                v2_4.write(p5);
                v2_4.flush();
                v2_4.close();
                try {
                    v2_4.close();
                } catch (java.io.IOException) {
                    String v0_3 = new StringBuilder();
                    v0_3.append("cannot close file ");
                    v0_3.append(p4.toString());
                    com.sophos.smsec.core.smsectrace.d.d("FileUtils", v0_3.toString());
                }
                return 1;
            } catch (String v5_6) {
                v1_0 = v2_4;
                if (v1_0 != null) {
                    try {
                        v1_0.close();
                    } catch (java.io.IOException) {
                        String v0_5 = new StringBuilder();
                        v0_5.append("cannot close file ");
                        v0_5.append(p4.toString());
                        com.sophos.smsec.core.smsectrace.d.d("FileUtils", v0_5.toString());
                    }
                }
                throw v5_6;
            } catch (java.io.FileNotFoundException) {
                v1_0 = v2_4;
                String v2_10 = new StringBuilder();
                v2_10.append("cannot write file ");
                v2_10.append(p4.toString());
                com.sophos.smsec.core.smsectrace.d.d("FileUtils", v2_10.toString());
                if (v1_0 != null) {
                    try {
                        v1_0.close();
                    } catch (java.io.IOException) {
                        StringBuilder v1_7 = new StringBuilder();
                        v1_7.append("cannot close file ");
                        v1_7.append(p4.toString());
                        com.sophos.smsec.core.smsectrace.d.d("FileUtils", v1_7.toString());
                    }
                }
                return 0;
            } catch (java.io.IOException) {
                v1_0 = v2_4;
                String v2_6 = new StringBuilder();
                v2_6.append("cannot write file ");
                v2_6.append(p4.toString());
                com.sophos.smsec.core.smsectrace.d.d("FileUtils", v2_6.toString());
                if (v1_0 != null) {
                    try {
                        v1_0.close();
                    } catch (java.io.IOException) {
                        StringBuilder v1_5 = new StringBuilder();
                        v1_5.append("cannot close file ");
                        v1_5.append(p4.toString());
                        com.sophos.smsec.core.smsectrace.d.d("FileUtils", v1_5.toString());
                    }
                }
                return 0;
            } catch (RuntimeException) {
                v1_0 = v2_4;
                String v2_0 = new StringBuilder();
                v2_0.append("cannot write file ");
                if (p4 == null) {
                    String v3_1 = " without name.";
                } else {
                    v3_1 = p4.toString();
                }
                v2_0.append(v3_1);
                com.sophos.smsec.core.smsectrace.d.d("FileUtils", v2_0.toString());
                if (v1_0 != null) {
                    try {
                        v1_0.close();
                    } catch (java.io.IOException) {
                        StringBuilder v1_3 = new StringBuilder();
                        v1_3.append("cannot close file ");
                        v1_3.append(p4.toString());
                        com.sophos.smsec.core.smsectrace.d.d("FileUtils", v1_3.toString());
                    }
                }
                return 0;
            }
        } catch (String v5_6) {
        }
    }

Method com.sophos.smsec.a.a.a() calling method java.io.FileOutputStream.<init>()


    public static int a(java.io.File p1, java.io.File p2)
    {
        try {
            return ark>com.sophos.smsec.a.aark>.a(new java.io.FileInputStream(p1), new java.io.FileOutputStream(p2));
        } catch (java.io.FileNotFoundException) {
            return 0;
        }
    }

Method com.sophos.nge.utils.c.a() calling method java.io.FileOutputStream.<init>()


    public static int a(String p2, java.io.File p3)
    {
        try {
            Throwable v0_1 = new java.io.FileOutputStream(p3);
            Throwable v3_1 = 0;
            try {
                Throwable v2_5 = new ark>com.sophos.nge.utils.cark>().a(p2, v0_1);
            } catch (Throwable v2_1) {
                if (v3_1 == null) {
                    v0_1.close();
                } else {
                    try {
                        v0_1.close();
                    } catch (Throwable v0_2) {
                        v3_1.addSuppressed(v0_2);
                    }
                }
                throw v2_1;
            } catch (Throwable v2_6) {
                v3_1 = v2_6;
                throw v3_1;
            }
            v0_1.close();
            return v2_5;
        } catch (Throwable v2_2) {
            Throwable v0_4 = new StringBuilder();
            v0_4.append("Error download file: ");
            v0_4.append(v2_2);
            com.sophos.smsec.core.smsectrace.d.c("nge_sta", v0_4.toString());
            return 2;
        }
    }

Method com.sophos.nge.ste.invincea.g.b() calling method java.io.FileOutputStream.<init>()


    private void b(java.io.File p6)
    {
        String v6_1 = p6.getName();
        String v0_2 = 0;
        try {
            String v1_0 = new java.io.BufferedWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(this.d())));
            try {
                v1_0.write(v6_1.replace("apk_model_tf_", "").replace(".pb", ""));
                v1_0.newLine();
            } catch (String v6_5) {
                v0_2 = v1_0;
                if (v0_2 != null) {
                    try {
                        v0_2.close();
                    } catch (java.io.IOException) {
                        com.sophos.smsec.core.smsectrace.d.c("nge_sta", "Cannot close file MODEL_VERSION_FILE");
                    }
                }
                throw v6_5;
            } catch (java.io.IOException) {
                v0_2 = v1_0;
                com.sophos.smsec.core.smsectrace.d.c("nge_sta", "Cannot write file MODEL_VERSION_FILE");
                if (v0_2 == null) {
                    return;
                } else {
                    v0_2.close();
                    return;
                }
            }
            v1_0.close();
            return;
        } catch (String v6_5) {
        } catch (java.io.IOException) {
            com.sophos.smsec.core.smsectrace.d.c("nge_sta", "Cannot close file MODEL_VERSION_FILE");
            return;
        }
    }

Method com.sophos.nge.ste.c.a.a() calling method java.io.FileOutputStream.<init>()


    private void a(android.content.Context p4, java.util.List p5)
    {
        String v0_4 = new java.io.File(p4.getFilesDir(), "AppData");
        if (!v0_4.exists()) {
            v0_4.mkdir();
        }
        String v0_1 = 0;
        try {
            String v1_2 = new java.io.ObjectOutputStream(new java.io.FileOutputStream(new java.io.File(v0_4, "AppDataFile.sdt")));
            try {
                v1_2.writeObject(p5);
            } catch (java.io.IOException v4_4) {
                v0_1 = v1_2;
                if (v0_1 != null) {
                    try {
                        v0_1.close();
                    } catch (java.io.IOException v5_2) {
                        com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v5_2);
                    }
                }
                throw v4_4;
            } catch (java.io.IOException v4_2) {
                v0_1 = v1_2;
                com.sophos.smsec.core.smsectrace.d.c("nge_sta", "could not persist command queue", v4_2);
                if (v0_1 == null) {
                    return;
                } else {
                    v0_1.close();
                    return;
                }
            }
            v1_2.close();
            return;
        } catch (java.io.IOException v4_4) {
        } catch (java.io.IOException v4_2) {
        } catch (java.io.IOException v4_5) {
            com.sophos.smsec.core.smsectrace.d.c("nge_sta", "never happen", v4_5);
            return;
        }
    }

Method com.sophos.nge.ste.a.d.a() calling method java.io.FileOutputStream.<init>()


    private void a(boolean p8, java.util.zip.ZipFile p9, java.util.zip.ZipEntry p10, ark>com.sophos.nge.ste.a.dark>$a p11)
    {
        if ((!p8) || ((p10.getName() == null) || ((!p10.getName().startsWith("res/raw")) || (!p10.getName().endsWith("apk"))))) {
            boolean v8_3 = this.a();
            try {
                Throwable v0_5 = new java.io.BufferedInputStream(p9.getInputStream(p10), 8192);
                Throwable v9_1 = 0;
                try {
                    int v1_7 = new byte[com.sophos.nge.utils.e.a.length];
                    String v2_1 = v0_5.read(v1_7);
                } catch (Throwable v11_1) {
                    if (v9_1 == null) {
                        v0_5.close();
                    } else {
                        try {
                            v0_5.close();
                        } catch (Throwable v0_0) {
                            v9_1.addSuppressed(v0_0);
                        }
                    }
                    throw v11_1;
                } catch (Throwable v9_1) {
                    throw v9_1;
                }
                if (v2_1 == com.sophos.nge.utils.e.a.length) {
                    int v3_2 = this.a(v1_7);
                    if (v3_2 >= 0) {
                        java.io.FileOutputStream v4_1 = new java.io.FileOutputStream(v8_3);
                        try {
                            this.a(v1_7, com.sophos.nge.utils.e.a.length, v3_2);
                            v4_1.write(v1_7, 0, v2_1);
                            int v1_9 = new byte[4096];
                        } catch (Throwable v11_7) {
                            int v1_11 = 0;
                            if (v1_11 == 0) {
                                v4_1.close();
                            } else {
                                try {
                                    v4_1.close();
                                } catch (String v2_3) {
                                    v1_11.addSuppressed(v2_3);
                                }
                            }
                            throw v11_7;
                        } catch (Throwable v11_6) {
                            try {
                                throw v11_6;
                            } catch (int v1_10) {
                                v1_11 = v11_6;
                                v11_7 = v1_10;
                            }
                        }
                        do {
                            String v2_2 = v0_5.read(v1_9);
                            if (v2_2 > null) {
                                this.a(v1_9, v2_2, v3_2);
                                v4_1.write(v1_9, 0, v2_2);
                            }
                        } while(v2_2 >= null);
                        v4_1.close();
                        p11.j = com.sophos.nge.utils.e.c(v8_3.getAbsolutePath());
                        if (p11.j) {
                            p11.e = p10.getName();
                            if ((p10.getName() != null) && ((p10.getName().contains(".")) && ((!p10.getName().endsWith(".apk")) && ((!p10.getName().endsWith(".jar")) && ((!p10.getName().endsWith(".so")) && (!p10.getName().endsWith(".plugin"))))))) {
                                p11.m = 1;
                            }
                        }
                        v0_5.close();
                        v8_3.deleteOnExit();
                        return;
                    } else {
                        v0_5.close();
                        v8_3.deleteOnExit();
                        return;
                    }
                } else {
                    v0_5.close();
                    v8_3.deleteOnExit();
                    return;
                }
            } catch (Throwable v9_4) {
                v8_3.deleteOnExit();
                throw v9_4;
            }
        } else {
            return;
        }
    }

Method com.sophos.keepasseditor.ui.b.a.a() calling method java.io.FileOutputStream.<init>()


    public String a(String p5)
    {
        java.io.BufferedOutputStream v1_0 = 0;
        if (this.c == null) {
            this.c = this.a();
            if (this.c == null) {
                return 0;
            }
        }
        Throwable v5_3;
        new java.io.File(p5).mkdirs();
        if (!p5.endsWith(java.io.File.separator)) {
            java.io.BufferedOutputStream v0_4 = new StringBuilder();
            v0_4.append(p5);
            v0_4.append(java.io.File.separator);
            v0_4.append(this.d);
            v5_3 = v0_4.toString();
        } else {
            java.io.BufferedOutputStream v0_6 = new StringBuilder();
            v0_6.append(p5);
            v0_6.append(this.d);
            v5_3 = v0_6.toString();
        }
        try {
            java.io.BufferedOutputStream v0_8 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(new java.io.File(v5_3)));
            try {
                v0_8.write(this.c);
                v0_8.flush();
                v0_8.close();
                this.a(v0_8);
                return v5_3;
            } catch (Throwable v5_5) {
                v1_0 = v0_8;
                this.a(v1_0);
                throw v5_5;
            }
        } catch (Throwable v5_5) {
        }
        v0_8.write(this.c);
        v0_8.flush();
        v0_8.close();
        this.a(v0_8);
        return v5_3;
    }

Method org.apache.commons.io.FileUtils.getTempDirectory() calling method java.io.File.<init>()


    public static java.io.File getTempDirectory()
    {
        return new java.io.File(org.apache.commons.io.FileUtils.getTempDirectoryPath());
    }

Method org.apache.commons.io.FileUtils.getFile() calling method java.io.File.<init>()


    public static varargs java.io.File getFile(String[] p5)
    {
        if (p5 == null) {
            throw new NullPointerException("names must not be null");
        } else {
            java.io.File v0_0 = 0;
            int v1 = p5.length;
            int v2 = 0;
            while (v2 < v1) {
                NullPointerException v3 = p5[v2];
                if (v0_0 != null) {
                    v0_0 = new java.io.File(v0_0, v3);
                } else {
                    v0_0 = new java.io.File(v3);
                }
                v2++;
            }
            return v0_0;
        }
    }

Method org.apache.commons.io.FileUtils.getFile() calling method java.io.File.<init>()


    public static varargs java.io.File getFile(java.io.File p4, String[] p5)
    {
        if (p4 == null) {
            throw new NullPointerException("directory must not be null");
        } else {
            if (p5 == null) {
                throw new NullPointerException("names must not be null");
            } else {
                int v0 = p5.length;
                int v1 = 0;
                while (v1 < v0) {
                    java.io.File v3_1 = new java.io.File(p4, p5[v1]);
                    v1++;
                    p4 = v3_1;
                }
                return p4;
            }
        }
    }

Method org.apache.commons.io.FileUtils.doCopyDirectory() calling method java.io.File.<init>()


    private static void doCopyDirectory(java.io.File p6, java.io.File p7, java.io.FileFilter p8, boolean p9, java.util.List p10)
    {
        java.io.File[] v0;
        if (p8 != 0) {
            v0 = p6.listFiles(p8);
        } else {
            v0 = p6.listFiles();
        }
        if (v0 == null) {
            long v8_9 = new StringBuilder();
            v8_9.append("Failed to list contents of ");
            v8_9.append(p6);
            throw new java.io.IOException(v8_9.toString());
        } else {
            if (!p7.exists()) {
                if ((!p7.mkdirs()) && (!p7.isDirectory())) {
                    long v8_2 = new StringBuilder();
                    v8_2.append("Destination \'");
                    v8_2.append(p7);
                    v8_2.append("\' directory cannot be created");
                    throw new java.io.IOException(v8_2.toString());
                }
            } else {
                if (!p7.isDirectory()) {
                    long v8_4 = new StringBuilder();
                    v8_4.append("Destination \'");
                    v8_4.append(p7);
                    v8_4.append("\' exists but is not a directory");
                    throw new java.io.IOException(v8_4.toString());
                }
            }
            if (!p7.canWrite()) {
                long v8_6 = new StringBuilder();
                v8_6.append("Destination \'");
                v8_6.append(p7);
                v8_6.append("\' cannot be written to");
                throw new java.io.IOException(v8_6.toString());
            } else {
                int v1_5 = v0.length;
                int v2 = 0;
                while (v2 < v1_5) {
                    java.io.File v3 = v0[v2];
                    java.io.File v4_1 = new java.io.File(p7, v3.getName());
                    if ((p10 == null) || (!p10.contains(v3.getCanonicalPath()))) {
                        if (!v3.isDirectory()) {
                            org.apache.commons.io.FileUtils.doCopyFile(v3, v4_1, p9);
                        } else {
                            org.apache.commons.io.FileUtils.doCopyDirectory(v3, v4_1, p8, p9, p10);
                        }
                    }
                    v2++;
                }
                if (p9 != null) {
                    p7.setLastModified(p6.lastModified());
                }
                return;
            }
        }
    }

Method org.apache.commons.io.FileUtils.copyFileToDirectory() calling method java.io.File.<init>()


    public static void copyFileToDirectory(java.io.File p2, java.io.File p3, boolean p4)
    {
        if (p3 == null) {
            throw new NullPointerException("Destination must not be null");
        } else {
            if ((p3.exists()) && (!p3.isDirectory())) {
                StringBuilder v4_2 = new StringBuilder();
                v4_2.append("Destination \'");
                v4_2.append(p3);
                v4_2.append("\' is not a directory");
                throw new IllegalArgumentException(v4_2.toString());
            } else {
                org.apache.commons.io.FileUtils.copyFile(p2, new java.io.File(p3, p2.getName()), p4);
                return;
            }
        }
    }

Method org.apache.commons.io.FileUtils.copyDirectoryToDirectory() calling method java.io.File.<init>()


    public static void copyDirectoryToDirectory(java.io.File p2, java.io.File p3)
    {
        if (p2 == null) {
            throw new NullPointerException("Source must not be null");
        } else {
            if ((p2.exists()) && (!p2.isDirectory())) {
                StringBuilder v0_1 = new StringBuilder();
                v0_1.append("Source \'");
                v0_1.append(p3);
                v0_1.append("\' is not a directory");
                throw new IllegalArgumentException(v0_1.toString());
            } else {
                if (p3 == null) {
                    throw new NullPointerException("Destination must not be null");
                } else {
                    if ((p3.exists()) && (!p3.isDirectory())) {
                        StringBuilder v0_5 = new StringBuilder();
                        v0_5.append("Destination \'");
                        v0_5.append(p3);
                        v0_5.append("\' is not a directory");
                        throw new IllegalArgumentException(v0_5.toString());
                    } else {
                        org.apache.commons.io.FileUtils.copyDirectory(p2, new java.io.File(p3, p2.getName()), 1);
                        return;
                    }
                }
            }
        }
    }

Method org.apache.commons.io.FileUtils.copyDirectory() calling method java.io.File.<init>()


    public static void copyDirectory(java.io.File p6, java.io.File p7, java.io.FileFilter p8, boolean p9)
    {
        org.apache.commons.io.FileUtils.checkFileRequirements(p6, p7);
        if (!p6.isDirectory()) {
            java.io.IOException v8_4 = new StringBuilder();
            v8_4.append("Source \'");
            v8_4.append(p6);
            v8_4.append("\' exists but is not a directory");
            throw new java.io.IOException(v8_4.toString());
        } else {
            if (p6.getCanonicalPath().equals(p7.getCanonicalPath())) {
                StringBuilder v9_2 = new StringBuilder();
                v9_2.append("Source \'");
                v9_2.append(p6);
                v9_2.append("\' and destination \'");
                v9_2.append(p7);
                v9_2.append("\' are the same");
                throw new java.io.IOException(v9_2.toString());
            } else {
                java.util.ArrayList v0_4 = 0;
                if (p7.getCanonicalPath().startsWith(p6.getCanonicalPath())) {
                    java.io.File[] v1_3;
                    if (p8 != null) {
                        v1_3 = p6.listFiles(p8);
                    } else {
                        v1_3 = p6.listFiles();
                    }
                    if ((v1_3 != null) && (v1_3.length > 0)) {
                        v0_4 = new java.util.ArrayList(v1_3.length);
                        int v2_3 = v1_3.length;
                        int v3 = 0;
                        while (v3 < v2_3) {
                            v0_4.add(new java.io.File(p7, v1_3[v3].getName()).getCanonicalPath());
                            v3++;
                        }
                    }
                }
                org.apache.commons.io.FileUtils.doCopyDirectory(p6, p7, p8, p9, v0_4);
                return;
            }
        }
    }

Method org.apache.commons.io.FileSystemUtils.freeSpaceKb() calling method java.io.File.<init>()


    public static long freeSpaceKb(long p2)
    {
        return org.apache.commons.io.FileSystemUtils.freeSpaceKb(new java.io.File(".").getAbsolutePath(), p2);
    }

Method org.apache.commons.io.FileCleaningTracker$Tracker.delete() calling method java.io.File.<init>()


    public boolean delete()
    {
        return this.deleteStrategy.deleteQuietly(new java.io.File(this.path));
    }

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


    private static void a(java.io.File p4)
    {
        java.io.RandomAccessFile v1_2 = new StringBuilder();
        v1_2.append(p4.getPath());
        v1_2.append(".tmp");
        String v0_1 = new java.io.File(v1_2.toString());
        java.io.RandomAccessFile v1_1 = ark>io.fabric.sdk.android.services.common.qark>.b(v0_1);
        try {
            v1_1.setLength(4096);
            v1_1.seek(0);
            byte[] v2_3 = new byte[16];
            int[] v3_1 = new int[4];
            v3_1 = {4096, 0, 0, 0};
            ark>io.fabric.sdk.android.services.common.qark>.a(v2_3, v3_1);
            v1_1.write(v2_3);
            v1_1.close();
        } catch (java.io.IOException v4_2) {
            v1_1.close();
            throw v4_2;
        }
        if (!v0_1.renameTo(p4)) {
            throw new java.io.IOException("Rename failed!");
        } else {
            return;
        }
    }

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


    public static boolean g(android.content.Context p3)
    {
        int v3_1 = io.fabric.sdk.android.services.common.CommonUtils.f(p3);
        java.io.File v0_5 = android.os.Build.TAGS;
        if ((v3_1 != 0) || ((v0_5 == null) || (!v0_5.contains("test-keys")))) {
            if (!new java.io.File("/system/app/Superuser.apk").exists()) {
                java.io.File v0_4 = new java.io.File("/system/xbin/su");
                if ((v3_1 != 0) || (!v0_4.exists())) {
                    return 0;
                } else {
                    return 1;
                }
            } else {
                return 1;
            }
        } else {
            return 1;
        }
    }

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


    public static declared_synchronized long b()
    {
        try {
            if (io.fabric.sdk.android.services.common.CommonUtils.d == -1) {
                long v1_2 = 0;
                String v3_0 = io.fabric.sdk.android.services.common.CommonUtils.a(new java.io.File("/proc/meminfo"), "MemTotal");
                if (!android.text.TextUtils.isEmpty(v3_0)) {
                    String v3_1 = v3_0.toUpperCase(java.util.Locale.US);
                    try {
                        if (!v3_1.endsWith("KB")) {
                            if (!v3_1.endsWith("MB")) {
                                if (!v3_1.endsWith("GB")) {
                                    io.fabric.sdk.android.k v4_8 = io.fabric.sdk.android.c.g();
                                    String v6_1 = new StringBuilder();
                                    v6_1.append("Unexpected meminfo format while computing RAM: ");
                                    v6_1.append(v3_1);
                                    v4_8.a("Fabric", v6_1.toString());
                                } else {
                                    v1_2 = io.fabric.sdk.android.services.common.CommonUtils.a(v3_1, "GB", 1073741824);
                                }
                            } else {
                                v1_2 = io.fabric.sdk.android.services.common.CommonUtils.a(v3_1, "MB", 1048576);
                            }
                        } else {
                            v1_2 = io.fabric.sdk.android.services.common.CommonUtils.a(v3_1, "KB", 1024);
                        }
                    } catch (io.fabric.sdk.android.k v4_12) {
                        String v5_4 = io.fabric.sdk.android.c.g();
                        String v7_2 = new StringBuilder();
                        v7_2.append("Unexpected meminfo format while computing RAM: ");
                        v7_2.append(v3_1);
                        v5_4.e("Fabric", v7_2.toString(), v4_12);
                    }
                }
                io.fabric.sdk.android.services.common.CommonUtils.d = v1_2;
            }
        } catch (long v1_3) {
            throw v1_3;
        }
        return io.fabric.sdk.android.services.common.CommonUtils.d;
    }

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


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

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


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

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


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

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


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

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


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

Method de.slackspace.openkeepass.a.a() calling method java.io.File.<init>()


    public static ark>de.slackspace.openkeepass.aark> a(String p1)
    {
        return ark>de.slackspace.openkeepass.aark>.a(new java.io.File(p1));
    }

Method com.squareup.okhttp.internal.DiskLruCache.<init>() calling method java.io.File.<init>()


    DiskLruCache(com.squareup.okhttp.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 com.squareup.okhttp.internal.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 com.squareup.okhttp.internal.DiskLruCache$Entry.<init>() calling method java.io.File.<init>()


    private DiskLruCache$Entry(com.squareup.okhttp.internal.DiskLruCache p7, String p8)
    {
        this.this$0 = p7;
        this.key = p8;
        StringBuilder v0_5 = new long[com.squareup.okhttp.internal.DiskLruCache.access$2300(p7)];
        this.lengths = v0_5;
        StringBuilder v0_7 = new java.io.File[com.squareup.okhttp.internal.DiskLruCache.access$2300(p7)];
        this.cleanFiles = v0_7;
        StringBuilder v0_1 = new java.io.File[com.squareup.okhttp.internal.DiskLruCache.access$2300(p7)];
        this.dirtyFiles = v0_1;
        StringBuilder v0_3 = new StringBuilder(p8);
        v0_3.append(46);
        int v8_2 = v0_3.length();
        int v1 = 0;
        while (v1 < com.squareup.okhttp.internal.DiskLruCache.access$2300(p7)) {
            v0_3.append(v1);
            this.cleanFiles[v1] = new java.io.File(com.squareup.okhttp.internal.DiskLruCache.access$2800(p7), v0_3.toString());
            v0_3.append(".tmp");
            this.dirtyFiles[v1] = new java.io.File(com.squareup.okhttp.internal.DiskLruCache.access$2800(p7), v0_3.toString());
            v0_3.setLength(v8_2);
            v1++;
        }
        return;
    }

Method com.sophos.smsec.ui.NewKeyFileActivity$2.onClick() calling method java.io.File.<init>()


    public void onClick(android.view.View p3)
    {
        android.content.Intent v3_1 = new android.content.Intent(this.b, com.sophos.keepasseditor.KeepassCreateActivity);
        v3_1.setData(android.net.Uri.fromFile(new java.io.File(this.a)));
        v3_1.putExtra("application_identifier", "smsec");
        v3_1.putExtra("path", this.a);
        this.b.startActivityForResult(v3_1, 23155);
        return;
    }

Method com.sophos.smsec.tracking.analytics.j.a() calling method java.io.File.<init>()

Couldn't retrieve source code

Method com.sophos.smsec.plugin.webfiltering.i.c() calling method java.io.File.<init>()


    private java.io.File c(android.content.Context p3)
    {
        return new java.io.File(new java.io.File(p3.getFilesDir(), "temp"), "maliciousSites.json");
    }

Method com.sophos.smsec.plugin.webfiltering.b.c() calling method java.io.File.<init>()


    public static boolean c(android.content.Context p4)
    {
        long v0_1 = new java.io.File(com.sophos.smsec.plugin.webfiltering.b.a(p4), "smsec_service.html");
        if ((!v0_1.exists()) || (v0_1.length() <= 0)) {
            return 0;
        } else {
            return 1;
        }
    }

Method com.sophos.smsec.plugin.webfiltering.a.c() calling method java.io.File.<init>()


    public static boolean c(android.content.Context p5)
    {
        java.io.File v0_1 = new java.io.File(com.sophos.smsec.plugin.webfiltering.a.a(p5), "smsec_service.html");
        if ((!v0_1.exists()) || (v0_1.length() <= 0)) {
            return 0;
        } else {
            return com.sophos.smsec.plugin.webfiltering.a.a(v0_1);
        }
    }

Method com.sophos.smsec.plugin.webfiltering.a.b() calling method java.io.File.<init>()


    public static void b(android.content.Context p5)
    {
        try {
            Throwable v0_5 = new java.io.FileOutputStream(new java.io.File(com.sophos.smsec.plugin.webfiltering.a.a(p5), "smsec_service.html"));
            Throwable v5_1 = 0;
            try {
                Throwable v1_8 = new java.io.OutputStreamWriter(v0_5);
                try {
                    v1_8.append("<html><head><script type=\"text/javascript\">window.history.go(-2);</script></head><body></body></html>\n");
                } catch (Throwable v2_2) {
                    Throwable v3_1 = 0;
                    if (v3_1 == null) {
                        v1_8.close();
                    } else {
                        try {
                            v1_8.close();
                        } catch (Throwable v1_1) {
                            v3_1.addSuppressed(v1_1);
                        }
                    }
                    throw v2_2;
                } catch (Throwable v2_1) {
                    try {
                        throw v2_1;
                    } catch (Throwable v3_0) {
                        v3_1 = v2_1;
                        v2_2 = v3_0;
                    }
                }
                v1_8.close();
                v0_5.close();
                return;
            } catch (Throwable v1_2) {
                if (v5_1 == null) {
                    v0_5.close();
                } else {
                    try {
                        v0_5.close();
                    } catch (Throwable v0_1) {
                        v5_1.addSuppressed(v0_1);
                    }
                }
                throw v1_2;
            } catch (Throwable v5_1) {
                throw v5_1;
            }
        } catch (Throwable v5_5) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "File not found exeception", v5_5);
            return;
        } catch (Throwable v5_4) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "IO exeception", v5_4);
            return;
        } catch (Throwable v5_3) {
            com.sophos.smsec.core.smsectrace.d.c("WebFiltering", "Global exeception", v5_3);
            return;
        }
    }

Method com.sophos.smsec.plugin.scanner.threading.o.onEvent() calling method java.io.File.<init>()


    public void onEvent(int p7, String p8)
    {
        if (((p8 != null) && ((!this.c) || (!"tracking.csv".equals(p8)))) && (((!this.i) || (!"smc.log".equals(p8))) && (((!this.i) || (!p8.endsWith(".sophos.log"))) && (((!this.d) || (!p8.endsWith(".sophos.log"))) && (((!this.e) || (!p8.endsWith(".log"))) && ((!this.f) || (!p8.endsWith(".log")))))))) {
            long v0_33 = (p7 & 4095);
            if ((v0_33 == 8) || (v0_33 == 128)) {
                long v0_35 = new StringBuilder();
                v0_35.append(this.j);
                v0_35.append(java.io.File.separator);
                v0_35.append(p8);
                long v0_37 = v0_35.toString();
                if (!com.sophos.smsec.plugin.scanner.threading.o.a(v0_37)) {
                    if (p7 != 128) {
                        if (p7 == 8) {
                            StringBuilder v1_9 = new StringBuilder();
                            v1_9.append("CLOSE_WRITE: ");
                            v1_9.append(p8);
                            com.sophos.smsec.core.smsectrace.d.e("SDCard ObserverWrapper", v1_9.toString());
                        }
                    } else {
                        StringBuilder v1_11 = new StringBuilder();
                        v1_11.append("MOVED_TO: ");
                        v1_11.append(p8);
                        com.sophos.smsec.core.smsectrace.d.e("SDCard ObserverWrapper", v1_11.toString());
                    }
                    android.content.Context v7_14 = com.sophos.smsec.a.a.a(v0_37);
                    android.app.PendingIntent v8_10 = new android.content.Intent(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor.a, com.sophos.smsec.plugin.scanner.service.ScannerService);
                    v8_10.putExtra("com.sophos.smsec.plugin.scanner.INSTALL_AFTER_SCAN", 0);
                    v8_10.setAction("start_onview_scan");
                    v8_10.setData(android.net.Uri.parse(android.net.Uri.encode(v0_37)));
                    if (v7_14 == null) {
                        com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor.a.startService(v8_10);
                    } else {
                        com.sophos.smsec.plugin.scanner.service.g.a(v8_10);
                        ((android.app.AlarmManager) com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor.a.getSystemService("alarm")).set(0, (System.currentTimeMillis() + 1000), android.app.PendingIntent.getService(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor.a, 0, v8_10, 0));
                    }
                }
                com.sophos.smsec.plugin.scanner.threading.o.b();
            } else {
                if ((v0_33 == 256) || (v0_33 == 1024)) {
                    long v0_5 = new StringBuilder();
                    v0_5.append(this.j);
                    v0_5.append(java.io.File.separator);
                    v0_5.append(p8);
                    android.app.PendingIntent v8_2 = v0_5.toString();
                    if (p7 != 1024) {
                        if ((p7 == 1073742080) || (new java.io.File(v8_2).isDirectory())) {
                            long v0_9 = new StringBuilder();
                            v0_9.append("CREATE_FOLDER: ");
                            v0_9.append(v8_2);
                            com.sophos.smsec.core.smsectrace.d.e("SDCard ObserverWrapper", v0_9.toString());
                            new com.sophos.smsec.plugin.scanner.threading.o(v8_2).a(0);
                            android.content.Context v7_10 = new android.content.Intent(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor.a, com.sophos.smsec.plugin.scanner.service.ScannerService).setAction("start_mount_scan").setData(android.net.Uri.fromFile(new java.io.File(v8_2)));
                            StringBuilder v1_6 = new StringBuilder();
                            v1_6.append("new folder detected, start scanner delayed for: ");
                            v1_6.append(v8_2);
                            com.sophos.smsec.core.smsectrace.d.b("SDCard ObserverWrapper", v1_6.toString());
                            ((android.app.AlarmManager) com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor.a.getSystemService("alarm")).set(0, (System.currentTimeMillis() + 20000), android.app.PendingIntent.getService(com.sophos.smsec.threading.TaskPriorityThreadPoolExecutor.a, 0, v7_10, 0));
                        }
                    } else {
                        com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask.a(v8_2);
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.sophos.smsec.plugin.scanner.threading.o.a() calling method java.io.File.<init>()


    public void a(com.sophos.smsec.plugin.scanner.threading.f p8)
    {
        String v0_1 = new java.util.Stack();
        v0_1.push(this.j);
        String v2_12 = new StringBuilder();
        v2_12.append("Start file observer for path ");
        v2_12.append(this.j);
        com.sophos.smsec.core.smsectrace.d.e("SDCard ObserverWrapper", v2_12.toString());
        while ((!v0_1.isEmpty()) && ((p8 == null) || (p8.b() != com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask$ObserverTaskState.DONE))) {
            String v1_6 = String.valueOf(v0_1.pop());
            String v2_4 = new ark>com.sophos.smsec.plugin.scanner.threading.oark>(v1_6);
            if (com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask.a(v2_4)) {
                v2_4.startWatching();
            }
            String v2_7 = new java.io.File(v1_6).listFiles();
            if (v2_7 == null) {
                if (!ark>com.sophos.smsec.plugin.scanner.threading.oark>.k.equals(v1_6)) {
                } else {
                    super.stopWatching();
                    com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask.b(this);
                    String v2_11 = new StringBuilder();
                    v2_11.append("don\'t watch on empty main mount point ");
                    v2_11.append(ark>com.sophos.smsec.plugin.scanner.threading.oark>.k);
                    com.sophos.smsec.core.smsectrace.d.e("SDCard ObserverWrapper", v2_11.toString());
                }
            } else {
                String v1_10 = v2_7.length;
                int v3_3 = 0;
                while (v3_3 < v1_10) {
                    String v4_0 = v2_7[v3_3];
                    if ((v4_0.isDirectory()) && ((!v4_0.getName().equals(".")) && (!v4_0.getName().equals("..")))) {
                        v0_1.push(v4_0.getPath());
                    }
                    v3_3++;
                }
            }
        }
        String v1_4 = new StringBuilder();
        v1_4.append("stack capacity after loop is ");
        v1_4.append(v0_1.capacity());
        com.sophos.smsec.core.smsectrace.d.e("SDCard ObserverWrapper", v1_4.toString());
        return;
    }

Method com.sophos.smsec.plugin.scanner.threading.k$a.onReceive() calling method java.io.File.<init>()


    public void onReceive(android.content.Context p10, android.content.Intent p11)
    {
        if (p11 != null) {
            try {
                String v0_6 = new java.io.File(p11.getData().getPath()).getCanonicalPath();
            } catch (String v0_8) {
                String v1_9 = p11.getData().getPath();
                String v3_5 = new StringBuilder();
                v3_5.append("getCanonicalPath() failed, fall back to Uri.getPath() (");
                v3_5.append(v1_9);
                v3_5.append(").");
                com.sophos.smsec.core.smsectrace.d.d("SDCard MountObserver", v3_5.toString(), v0_8);
                v0_6 = v1_9;
            }
            if (com.sophos.smsec.core.datastore.SmSecPreferences.c(p10).d(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_STORAGE_OBSERVER_SETTING)) {
                if (!"android.intent.action.MEDIA_SCANNER_FINISHED".equals(p11.getAction())) {
                    if (!"android.intent.action.MEDIA_MOUNTED".equals(p11.getAction())) {
                        if ("android.intent.action.MEDIA_UNMOUNTED".equals(p11.getAction())) {
                            if ((android.os.Build$VERSION.SDK_INT < 26) || (((android.os.PowerManager) p10.getSystemService("power")).isIgnoringBatteryOptimizations(p10.getPackageName()))) {
                                p10.startService(new android.content.Intent(p10, com.sophos.smsec.plugin.scanner.service.ScannerService).setAction("stop_mount_scan").setData(p11.getData()));
                            } else {
                                com.sophos.smsec.core.smsectrace.d.c("MountObserver", "not allowed to start scanner service, not on battery optimization whitelist");
                            }
                            String v1_35 = new StringBuilder();
                            v1_35.append("stopping observers for: ");
                            v1_35.append(v0_6);
                            com.sophos.smsec.core.smsectrace.d.b("SDCard MountObserver", v1_35.toString());
                            com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask.a(p10, com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask$ObserverTaskCategory.STOP, v0_6);
                        }
                    } else {
                        com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask$ObserverTaskCategory v11_10 = new android.content.Intent(p10, com.sophos.smsec.plugin.scanner.service.ScannerService).setAction("start_mount_scan").setData(p11.getData());
                        if ((com.sophos.smsec.plugin.scanner.threading.k.a() + 60000) <= System.currentTimeMillis()) {
                            if ((android.os.Build$VERSION.SDK_INT < 26) || (((android.os.PowerManager) p10.getSystemService("power")).isIgnoringBatteryOptimizations(p10.getPackageName()))) {
                                String v2_2 = new StringBuilder();
                                v2_2.append("mount detected, start scanner for: ");
                                v2_2.append(v0_6);
                                com.sophos.smsec.core.smsectrace.d.b("SDCard MountObserver", v2_2.toString());
                                p10.startService(v11_10);
                            } else {
                                com.sophos.smsec.core.smsectrace.d.c("MountObserver", "action media mounted: not allowed to start scanner service, not on battery optimization whitelist");
                            }
                        } else {
                            String v2_4 = new StringBuilder();
                            v2_4.append("mount detected, start scanner delayed for: ");
                            v2_4.append(v0_6);
                            com.sophos.smsec.core.smsectrace.d.b("SDCard MountObserver", v2_4.toString());
                            ((android.app.AlarmManager) p10.getSystemService("alarm")).set(0, (System.currentTimeMillis() + 60000), android.app.PendingIntent.getService(p10, 0, v11_10, 0));
                        }
                    }
                } else {
                    String v1_13 = new StringBuilder();
                    v1_13.append("starting observers for: ");
                    v1_13.append(v0_6);
                    com.sophos.smsec.core.smsectrace.d.b("SDCard MountObserver", v1_13.toString());
                    com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask.a(p10, com.sophos.smsec.plugin.scanner.threading.SdCardObserverTask$ObserverTaskCategory.START, v0_6);
                }
            }
        }
        return;
    }

Method com.sophos.smsec.plugin.scanner.quarantine.QuarantineItem.stillExists() calling method java.io.File.<init>()


    public boolean stillExists(android.content.Context p3)
    {
        if (!com.sophos.smsec.core.a.a.a(this.getIdentifier())) {
            try {
                p3.getPackageManager().getPackageInfo(this.getIdentifier(), 0);
                return 1;
            } catch (android.content.pm.PackageManager$NameNotFoundException) {
                return 0;
            }
        } else {
            return new java.io.File(this.getIdentifier()).exists();
        }
    }

Method com.sophos.smsec.plugin.scanner.progress.ProgressType.a() calling method java.io.File.<init>()


    public static String a(android.content.Context p1, ark>com.sophos.smsec.plugin.scanner.progress.ProgressTypeark>$EProgress p2, String p3)
    {
        if (!ark>com.sophos.smsec.plugin.scanner.progress.ProgressTypeark>$EProgress.COLLECT_APKS.equals(p2)) {
            if (!ark>com.sophos.smsec.plugin.scanner.progress.ProgressTypeark>$EProgress.COLLECT_FILES.equals(p2)) {
                if ((!ark>com.sophos.smsec.plugin.scanner.progress.ProgressTypeark>$EProgress.SCAN_FILE.equals(p2)) || (p3 == null)) {
                    if ((ark>com.sophos.smsec.plugin.scanner.progress.ProgressTypeark>$EProgress.SCAN_APK.equals(p2)) && (p3 != null)) {
                        String v1_1 = com.sophos.smsec.core.smsutils.a.a(p1, p3);
                        if (v1_1 != null) {
                            return v1_1.toString();
                        }
                    }
                } else {
                    String v1_5 = new java.io.File(p3).getName();
                    if (!v1_5.isEmpty()) {
                        return v1_5;
                    }
                }
                return "";
            } else {
                return p1.getString(com.sophos.smsec.plugin.scanner.c$i.progress_collecting_files);
            }
        } else {
            return p1.getString(com.sophos.smsec.plugin.scanner.c$i.progress_collecting_apk);
        }
    }

Method com.sophos.smsec.plugin.appprotection.l.b() calling method java.io.File.<init>()


    public static java.io.File b(android.content.Context p2)
    {
        if (p2 != null) {
            String v1_2 = new StringBuilder();
            v1_2.append(p2.getFilesDir().getAbsolutePath());
            v1_2.append(java.io.File.separator);
            v1_2.append("app_recovery");
            java.io.File v0_1 = new java.io.File(v1_2.toString(), "sophos_mobile_security_app_protection_recovery.png");
            v0_1.getParentFile().mkdirs();
            return v0_1;
        } else {
            return 0;
        }
    }

Method com.sophos.smsec.plugin.appprotection.l.a() calling method java.io.File.<init>()


    public static java.io.File a(android.content.Context p2)
    {
        if (p2 != null) {
            String v1_2 = new StringBuilder();
            v1_2.append(p2.getFilesDir().getAbsolutePath());
            v1_2.append(java.io.File.separator);
            v1_2.append("app_recovery");
            java.io.File v0_1 = new java.io.File(v1_2.toString(), "sophos_mobile_security_app_protection_recovery.html");
            v0_1.getParentFile().mkdirs();
            return v0_1;
        } else {
            return 0;
        }
    }

Method com.sophos.smsec.navigation.KPShortcutActivity.a() calling method java.io.File.<init>()


    public static void a(android.content.Context p3)
    {
        com.sophos.keepasseditor.c.c();
        if (ark>com.sophos.smsec.navigation.KPShortcutActivityark>.b(p3)) {
            new java.io.File(com.sophos.smsec.core.datastore.SmSecPreferences.c(p3).a(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE)).delete();
        }
        com.sophos.smsec.core.datastore.SmSecPreferences.c(0).f(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE);
        com.sophos.jbase.i.g("$SmSecPasswordKey$");
        com.sophos.smsec.ui.KPReceiveActivity.a(p3);
        return;
    }

Method com.sophos.smsec.navigation.KPShortcutActivity.a() calling method java.io.File.<init>()


    private void a(int p5, android.content.Intent p6)
    {
        String v0_1 = com.sophos.smsec.core.datastore.SmSecPreferences.c(this).a(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE);
        String v1_1 = 1;
        if (p5 != -1) {
            if (p5 != 0) {
                if ((p5 == 1) && (p6 != null)) {
                    int v5_2 = p6.getStringExtra("resultValue");
                    if (!"unlink".equals(v5_2)) {
                        if ("export".equals(v5_2)) {
                            com.sophos.smsec.ui.KPViewerActivity.askForExport(this);
                        }
                    } else {
                        com.sophos.smsec.ui.KPViewerActivity.askForUnlink(this, 0);
                    }
                }
            } else {
                if ((p6 != null) && ("unlink".equals(p6.getAction()))) {
                    com.sophos.smsec.ui.KPViewerActivity.askForUnlink(this, 0);
                }
                this.finish();
            }
        } else {
            int v5_7 = p6.getStringExtra("filePath");
            if ((v5_7 == 0) || (v5_7.isEmpty())) {
                v5_7 = v0_1;
            }
            if ((v5_7 != 0) && (!v5_7.isEmpty())) {
                v1_1 = 0;
            }
            com.sophos.smsec.ui.KPReceiveActivity.a(this, v1_1);
            String v0_4 = p6.getStringExtra("password");
            android.content.Intent v6_5 = p6.getByteArrayExtra("keyfile");
            if ((v5_7 != 0) && ((!v5_7.isEmpty()) && (new java.io.File(v5_7).exists()))) {
                com.sophos.keepasseditor.c.a(0, v5_7, v0_4, v6_5);
                com.sophos.smsec.core.datastore.SmSecPreferences.c(this).b(com.sophos.smsec.core.datastore.SmSecPreferences$Preferences.PREF_PASSWORDSAFE_FILE, v5_7);
                android.content.Intent v6_8 = com.sophos.keepasseditor.d.a(this, com.sophos.smsec.ui.KPViewerActivity, android.net.Uri.fromFile(new java.io.File(v5_7)), "smsec");
                v6_8.addFlags(8388608);
                v6_8.putExtra("resultValue", v0_4);
                v6_8.putExtra("path", v5_7);
                this.startActivityForResult(v6_8, 18);
            }
        }
        return;
    }

Method com.sophos.smsec.navigation.KPShortcutActivity.a() calling method java.io.File.<init>()


    private static android.content.Intent a(android.content.Context p4, String p5)
    {
        if ((p5 == null) || (p5.isEmpty())) {
            boolean v1_0 = 0;
        } else {
            if (!new java.io.File(p5).exists()) {
                ark>com.sophos.smsec.navigation.KPShortcutActivityark>.a(p4);
                p5 = 0;
                v1_0 = 0;
            } else {
                if (com.sophos.keepasseditor.c.a() == null) {
                    com.sophos.keepasseditor.c.a(0, p5, 0, 0);
                }
                v1_0 = com.sophos.keepasseditor.d.a(p4, com.sophos.smsec.ui.KPViewerActivity, android.net.Uri.fromFile(new java.io.File(p5)), "smsec");
                v1_0.addFlags(8388608);
                v1_0.putExtra("path", p5);
            }
        }
        if ((p5 == null) || (p5.isEmpty())) {
            Class v5_3 = p4.getExternalFilesDir("database");
            if (v5_3 == null) {
                if (p4.getFilesDir() != null) {
                    v5_3 = new java.io.File(p4.getFilesDir(), "database");
                    if (!v5_3.exists()) {
                        v5_3.mkdirs();
                    }
                    if (!v5_3.exists()) {
                        v5_3 = 0;
                    }
                }
                if (v5_3 == null) {
                    com.sophos.smsec.core.smsectrace.d.d("KPShortcutActivity", "could not access external and internal files dir!");
                    return 0;
                }
            }
            v1_0 = new android.content.Intent(p4, com.sophos.smsec.ui.NewKeyFileActivity);
            v1_0.setData(android.net.Uri.fromFile(v5_3));
            v1_0.putExtra("path", v5_3.getAbsolutePath());
        }
        return v1_0;
    }

Method com.sophos.smsec.core.updateengine.reader.n.d() calling method java.io.File.<init>()


    protected java.io.File d()
    {
        String v0_1 = new StringBuilder();
        v0_1.append(com.sophos.smsec.core.updateengine.reader.n.a(this.d));
        v0_1.append(java.io.File.separator);
        v0_1.append(this.c);
        v0_1.append(".xml");
        return new java.io.File(v0_1.toString());
    }

Method com.sophos.smsec.core.updateengine.reader.d.b() calling method java.io.File.<init>()


    private static java.io.File b(java.io.File p4)
    {
        String v1 = p4.getParent();
        StringBuilder v2_1 = new StringBuilder();
        v2_1.append("hash_");
        v2_1.append(p4.getName());
        return new java.io.File(v1, v2_1.toString());
    }

Method com.sophos.smsec.core.smsectrace.d.d() calling method java.io.File.<init>()


    public static void d(String p2)
    {
        com.sophos.smsec.core.smsectrace.d.j = p2;
        String v0_1 = new java.io.File(p2);
        if ((v0_1.exists()) && ((!v0_1.isDirectory()) && (!v0_1.delete()))) {
            com.sophos.smsec.core.smsectrace.d.e("Sophos", "delete failed.");
        }
        if ((!v0_1.exists()) && (!v0_1.mkdirs())) {
            com.sophos.smsec.core.smsectrace.d.e("Sophos", "mkdir failed.");
        }
        return;
    }

Method com.sophos.smsec.core.smsectrace.d.b() calling method java.io.File.<init>()


    public static void b(android.content.Context p9, String p10)
    {
        if (com.sophos.smsec.core.smsectrace.d.c == null) {
            com.sophos.smsec.core.smsectrace.d.c = p9;
        }
        java.io.BufferedWriter v9_1 = 0;
        try {
            java.io.FileWriter v1_0 = new java.io.File(com.sophos.smsec.core.smsectrace.d.c(com.sophos.smsec.core.smsectrace.d.c), org.apache.commons.io.FilenameUtils.getName(p10));
        } catch (String v10_49) {
            java.io.BufferedWriter v3_2 = 0;
            if (v3_2 != null) {
                try {
                    v3_2.close()