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.ofss.fcdb.mobile.android.phone.social.k.a() calling method java.io.FileOutputStream.<init>()


    private android.graphics.Bitmap a(String p5)
    {
        java.io.File v1 = this.b.a(p5);
        int v0_3 = this.a(v1);
        if (v0_3 == 0) {
            try {
                int v0_1 = ((java.net.HttpURLConnection) new java.net.URL(p5).openConnection());
                v0_1.setConnectTimeout(30000);
                v0_1.setReadTimeout(30000);
                v0_1.setInstanceFollowRedirects(1);
                java.io.InputStream v2_3 = v0_1.getInputStream();
                java.io.FileOutputStream v3_1 = new java.io.FileOutputStream(v1);
                com.ofss.fcdb.mobile.android.phone.social.r.a(v2_3, v3_1);
                v3_1.close();
                v0_1.disconnect();
                this.g = this.a(v1);
                v0_3 = this.g;
            } catch (int v0_4) {
                v0_4.printStackTrace();
                if ((v0_4 instanceof OutOfMemoryError)) {
                    this.a.a();
                }
                v0_3 = 0;
            }
        }
        return v0_3;
    }

Method com.ofss.fcdb.mobile.android.phone.mleapdatatypes.ImageType.getView() calling method java.io.FileOutputStream.<init>()


    public android.view.View getView()
    {
        if (this.w == null) {
            this.w = new com.ofss.fcdb.mobile.android.phone.ui.components.FCImageView(this.t, this);
            com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.u);
            if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.c)) {
                if (!this.c.equalsIgnoreCase("pu")) {
                    if ((this.c.equalsIgnoreCase("ll")) && (this.J == null)) {
                        this.J = new com.ofss.fcdb.mobile.android.phone.helpers.bh(this.D, this.t, this.G, this.H, this.I);
                        this.J.a();
                        this.J.a(this.w);
                    }
                } else {
                    if (com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.b)) {
                        if ((!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.G)) && (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.H))) {
                            if (this.J == null) {
                                this.J = new com.ofss.fcdb.mobile.android.phone.helpers.bh(this.D, this.t, this.G, this.H, this.I);
                            }
                            this.J.a();
                            this.J.a(this.w);
                        }
                    } else {
                        String v0_66 = android.util.Base64.decode(this.b, 0);
                        this.w.setImageBitmap(android.graphics.BitmapFactory.decodeByteArray(v0_66, 0, v0_66.length, 0));
                        android.graphics.Bitmap v1_26 = new StringBuilder();
                        v1_26.append(this.t.getCacheDir());
                        v1_26.append(java.io.File.separator);
                        v1_26.append(this.D);
                        String v2_18 = new java.io.File(v1_26.toString());
                        if (!v2_18.exists()) {
                            v2_18.mkdir();
                        }
                        v1_26.append(java.io.File.separator);
                        v1_26.append(this.a);
                        try {
                            String v2_22 = new java.io.FileOutputStream(v1_26.toString());
                            v2_22.write(v0_66);
                            v2_22.flush();
                            v2_22.close();
                            System.gc();
                        } catch (String v0_5) {
                            System.gc();
                            throw v0_5;
                        } catch (String v0_3) {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_3));
                            System.gc();
                        } catch (String v0_1) {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_1));
                            System.gc();
                        }
                        this.D.f().put(new StringBuilder(String.valueOf(this.a)).append("_loc").toString(), android.net.Uri.parse(v1_26.toString()));
                    }
                }
            }
            new com.ofss.fcdb.mobile.android.phone.j.t();
            if (com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.B)) {
                if ((!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.c)) && (this.c.equalsIgnoreCase("c"))) {
                    if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.b)) {
                        this.w.setImageURI(android.net.Uri.parse(this.b));
                    }
                    try {
                        if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.C)) {
                            this.w.setImageBitmap(com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.t, this.C.toLowerCase(), Integer.toString(this.j), Integer.toString(this.k)));
                        }
                    } catch (String v0_22) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_22));
                    }
                }
            } else {
                this.w.setImageBitmap(com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.t, this.B, Integer.toString(this.j), Integer.toString(this.k)));
            }
        }
        if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.E)) {
            com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.w, this.D, this.E);
        }
        if (this.F == 0) {
            this.enableView();
        }
        if (this.D.C() != 0) {
            if (this.F >= this.D.C()) {
                this.disableView();
            } else {
                this.enableView();
            }
        }
        String v0_45;
        if (!"h".equalsIgnoreCase(this.c)) {
            this.p = new java.util.HashMap();
            this.p.put("MleapDataType", this);
            if (this.J != null) {
                this.p.put("PARAM_NAME_LAZY_DOWNLOADER", this.J);
            }
            this.w.setTag(this.p);
            v0_45 = this.w;
        } else {
            this.D.f(this.B);
            v0_45 = 0;
        }
        return v0_45;
    }

Method com.ofss.fcdb.mobile.android.phone.mleapdatatypes.ImageButtonType$LocalBroadcast.onReceive() calling method java.io.FileOutputStream.<init>()


    public void onReceive(android.content.Context p6, android.content.Intent p7)
    {
        String v0_9 = android.util.Base64.decode(p7.getStringExtra("dataValue"), 0);
        com.ofss.fcdb.mobile.android.phone.mleapdatatypes.ImageButtonType.a(this.a).setVolumeControlStream(3);
        android.media.MediaPlayer v1_1 = new android.media.MediaPlayer();
        try {
            com.ofss.fcdb.mobile.android.phone.mleapdatatypes.af v2_1 = java.io.File.createTempFile("Captcha", "mp3", p6.getCacheDir());
            v2_1.deleteOnExit();
            java.io.FileOutputStream v3_2 = new java.io.FileOutputStream(v2_1);
            v3_2.write(v0_9);
            v3_2.close();
            v1_1.setDataSource(new java.io.FileInputStream(v2_1).getFD());
            v1_1.prepare();
            com.ofss.fcdb.mobile.android.phone.mleapdatatypes.ImageButtonType.b(this.a).setOnClickListener(new com.ofss.fcdb.mobile.android.phone.mleapdatatypes.af(this, v1_1));
        } catch (String v0_7) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_7));
        }
        return;
    }

Method com.ofss.fcdb.mobile.android.phone.j.t.a() calling method java.io.FileOutputStream.<init>()


    public Object a(String p8)
    {
        Exception v1_0 = 0;
        try {
            android.graphics.Typeface v0_10;
            switch (com.ofss.fcdb.mobile.android.b.c.f.f(p8, this.c)) {
                case -4:
                    if (com.ofss.fcdb.mobile.android.b.c.f.a() == null) {
                        com.ofss.fcdb.mobile.android.b.c.f.b();
                    }
                    android.graphics.Typeface v0_14 = this.d.a(p8);
                    try {
                        if (!v0_14.equalsIgnoreCase("defaultFontType")) {
                            v0_10 = android.graphics.Typeface.createFromAsset(this.c.getAssets(), v0_14);
                            v1_0 = this.a;
                            v1_0.a(49);
                            return v0_10;
                        } else {
                            v0_10 = android.graphics.Typeface.DEFAULT;
                            v1_0 = this.a;
                            v1_0.a(49);
                            return v0_10;
                        }
                    } catch (Exception v1_1) {
                    }
                case 4:
                    int v2_2 = new StringBuilder().append(this.c.getDir("fontdir", 2)).append("/").append(p8).toString();
                    int v3_1 = new java.io.ByteArrayInputStream(((byte[]) com.ofss.fcdb.mobile.android.b.b.c.i.get(p8)));
                    android.graphics.Typeface v0_8 = new java.io.File(v2_2);
                    v0_8.createNewFile();
                    int v2_4 = new java.io.FileOutputStream(v0_8);
                    while(true) {
                        int v4_0 = v3_1.read();
                        if (v4_0 == -1) {
                            break;
                        }
                        v2_4.write(v4_0);
                    }
                    v2_4.flush();
                    v2_4.close();
                    this.a.a(94);
                    v0_10 = android.graphics.Typeface.createFromFile(v0_8);
                    return v0_10;
                default:
                    v0_10 = 0;
                    return v0_10;
            }
        } catch (android.graphics.Typeface v0_16) {
            v0_10 = v1_0;
            v1_1 = v0_16;
        }
        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v1_1));
        v1_0 = this.a;
        v1_0.a(99);
        return v0_10;
    }

Method com.ofss.fcdb.mobile.android.phone.helpers.k.a() calling method java.io.FileOutputStream.<init>()


    public void a(String p22, String p23, android.content.Context p24, android.os.ResultReceiver p25, Boolean p26)
    {
        this.c = this.a.W;
        android.content.Intent v7_2 = 0;
        boolean v3_37 = 0;
        android.content.Intent v6_11 = 0;
        String v5_2 = 0;
        int v9 = 0;
        String[] v4_0 = 0;
        try {
            int v2_18;
            if (this.a.y != null) {
                android.content.Intent v8_3 = new java.net.URL(this.a.y);
                try {
                    int v2_2;
                    if (!"https".equals(v8_3.getProtocol())) {
                        v3_37 = v8_3.openConnection();
                        ((java.net.HttpURLConnection) v3_37).setRequestMethod("POST");
                        v2_2 = v3_37;
                    } else {
                        this.b = javax.net.ssl.SSLContext.getInstance("TLS");
                        int v2_34 = this.b;
                        long v10_56 = new javax.net.ssl.TrustManager[1];
                        v10_56[0] = new com.ofss.fcdb.mobile.android.phone.helpers.o(this, com.ofss.fcdb.mobile.android.b.c.f.d);
                        v2_34.init(0, v10_56, new java.security.SecureRandom());
                        javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(this.b.getSocketFactory());
                        v3_37 = v8_3.openConnection();
                        ((javax.net.ssl.HttpsURLConnection) v3_37).setHostnameVerifier(new com.ofss.fcdb.mobile.android.phone.helpers.n(this, 0));
                        ((javax.net.ssl.HttpsURLConnection) v3_37).setRequestMethod("POST");
                        v2_2 = v3_37;
                    }
                    try {
                        v2_2.setConnectTimeout(Integer.parseInt(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.VALUE.CONNECTION.TIMEOUT", p24)));
                    } catch (boolean v3_1) {
                        v7_2 = v8_3;
                        try {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_1));
                        } catch (boolean v3_2) {
                            v8_3 = v7_2;
                        }
                        if (v3_1.getMessage().contains("Hostname")) {
                            if (v3_1.getMessage().contains("was not verified")) {
                                v9 = 1;
                                com.ofss.fcdb.mobile.android.b.d.a.a("HTTPWorker cert_error", v3_1.getMessage());
                                android.widget.Toast.makeText(this.c, com.ofss.fcdb.mobile.android.phone.i.b.b(this.c, "CERTIFICATE_ERROR"), 0).show();
                                this.a.N = 0;
                                this.a.u = 0;
                                this.a.s = 0;
                                this.a.j.clear();
                                if (this.a.C != null) {
                                    this.a.C.clear();
                                }
                                this.a.A.clear();
                                this.a.K.clear();
                                this.a.I.clear();
                                try {
                                    boolean v3_56 = Class.forName(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.VALUE.LAUNCHER.CLASS", this.c));
                                } catch (boolean v3_57) {
                                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_57));
                                    v3_56 = 0;
                                }
                                if (v3_56) {
                                    android.content.Intent v8_17 = new android.content.Intent(this.c, v3_56);
                                    v8_17.addFlags(268468224);
                                    this.c.startActivity(v8_17);
                                }
                            }
                        }
                        boolean v3_61 = v9;
                        if (v2_2 != 0) {
                            if (!"https".equals(v7_2.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_2).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_2).disconnect();
                            }
                        }
                        if (v6_11 != null) {
                            try {
                                v6_11.close();
                            } catch (int v2) {
                            }
                        }
                        if (v5_2 == null) {
                            v2_18 = v3_61;
                            if (v2_18 == 0) {
                                int v2_30 = new android.os.Bundle();
                                if ((p26.booleanValue()) || ((v4_0 == null) || (com.ofss.fcdb.mobile.android.phone.helpers.a.a(v4_0[1])))) {
                                    v2_30.putString("ext", ark>com.ofss.fcdb.mobile.android.phone.helpers.kark>.a(p23));
                                } else {
                                    v2_30.putString("ext", new StringBuilder(".").append(v4_0[1]).toString());
                                }
                                v2_30.putString("filepath", p23);
                                v2_30.putInt("progress", 100);
                                p25.send(1234, v2_30);
                            }
                            return;
                        } else {
                            try {
                                v5_2.close();
                                v2_18 = v3_61;
                            } catch (int v2) {
                                v2_18 = v3_61;
                            }
                        }
                    } catch (boolean v3_0) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_0));
                        if (v2_2 != 0) {
                            if (!"https".equals(v8_3.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_2).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_2).disconnect();
                            }
                        }
                        if (v6_11 != null) {
                            try {
                                v6_11.close();
                            } catch (int v2) {
                            }
                        }
                        if (v5_2 == null) {
                            v2_18 = 0;
                        } else {
                            try {
                                v5_2.close();
                                v2_18 = 0;
                            } catch (int v2) {
                                v2_18 = 0;
                            }
                        }
                    }
                    if (this.a.s != null) {
                        p22 = new StringBuilder(String.valueOf(p22)).append("&").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.SESSIONID", this.c)).append("=").append(this.a.s).toString();
                        v2_2.setRequestProperty("Cookie", new StringBuilder("JSESSIONID=").append(this.a.u).toString());
                    }
                    if ((!com.ofss.fcdb.mobile.android.phone.helpers.a.a(com.ofss.fcdb.mobile.android.phone.helpers.a.c("APP.JSF", this.c))) && (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.a.u))) {
                        v2_2.setRequestProperty("Cookie", new StringBuilder("JSESSIONID=").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("APP.JSF", this.c).replace("{0}", this.a.u)).toString());
                    }
                    boolean v3_29 = new StringBuilder(String.valueOf(p22)).append("&").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.LANGID", this.c)).append("=").append(this.c.getResources().getString(this.c.getResources().getIdentifier("LANG_ID", "string", this.c.getPackageName()))).toString().concat(new StringBuilder("&").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.DEVICE", this.c)).append("=").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.VALUE.DEVICE", this.c)).toString());
                    if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.a.z)) {
                        System.setProperty("http.agent", this.a.z);
                    } else {
                        System.setProperty("http.agent", "AndPhone");
                    }
                    v2_2.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
                    System.setProperty("http.keepAlive", "false");
                    v2_2.setRequestProperty("Content-Length", new StringBuilder().append(Integer.toString(v3_29.getBytes().length)).toString());
                    v2_2.setRequestProperty("Content-Language", "en-US");
                    v2_2.setUseCaches(0);
                    v2_2.setDoInput(1);
                    v2_2.setDoOutput(1);
                    v2_2.connect();
                    android.content.Intent v7_45 = v2_2.getOutputStream();
                    v7_45.write(v3_29.getBytes());
                    v7_45.flush();
                    v7_45.close();
                    android.content.Intent v7_46 = v2_2.getInputStream();
                    try {
                        boolean v3_31 = v2_2.getContentLength();
                    } catch (boolean v3_2) {
                        v6_11 = v7_46;
                    } catch (boolean v3_1) {
                        v6_11 = v7_46;
                        v7_2 = v8_3;
                    } catch (boolean v3_0) {
                        v6_11 = v7_46;
                    }
                    if (!p26.booleanValue()) {
                        android.content.Intent v6_2 = new android.text.format.Time(android.text.format.Time.getCurrentTimezone());
                        v6_2.setToNow();
                        android.content.Intent v6_5 = new StringBuilder(String.valueOf(v6_2.monthDay)).append("_").append(v6_2.month).append("_").append(v6_2.year).append(v6_2.hour).append("_").append(v6_2.minute).append("_").append(v6_2.second).toString();
                        v4_0 = v2_2.getContentType().split("/");
                        p23 = new StringBuilder(String.valueOf(p23)).append("_").append(v6_5).append(".").append(v4_0[1]).toString();
                        android.content.Intent v6_10 = new java.io.File(p23);
                        if (v6_10.exists()) {
                            v6_10.delete();
                        }
                    }
                    android.content.Intent v6_13 = new java.io.FileOutputStream(p23);
                    try {
                        String v5_1 = new byte[1024];
                        long v10_48 = 0;
                    } catch (boolean v3_2) {
                        v5_2 = v6_13;
                        v6_11 = v7_46;
                    } catch (boolean v3_1) {
                        v5_2 = v6_13;
                        v6_11 = v7_46;
                        v7_2 = v8_3;
                    } catch (boolean v3_0) {
                        v5_2 = v6_13;
                        v6_11 = v7_46;
                    }
                    while(true) {
                        int v12_3 = v7_46.read(v5_1);
                        if (v12_3 == -1) {
                            break;
                        }
                        v10_48 += ((long) v12_3);
                        int v13_4 = new android.os.Bundle();
                        v13_4.putInt("progress", ((int) ((100 * v10_48) / ((long) v3_31))));
                        v13_4.putString("filepath", p23);
                        p25.send(8344, v13_4);
                        v6_13.write(v5_1, 0, v12_3);
                    }
                    v6_13.flush();
                    v6_13.close();
                    v7_46.close();
                    if (v2_2 != 0) {
                        if (!"https".equals(v8_3.getProtocol())) {
                            ((java.net.HttpURLConnection) v2_2).disconnect();
                        } else {
                            ((javax.net.ssl.HttpsURLConnection) v2_2).disconnect();
                        }
                    }
                    if (v7_46 != null) {
                        try {
                            v7_46.close();
                        } catch (int v2) {
                        }
                    }
                    if (v6_13 == null) {
                    } else {
                        try {
                            v6_13.close();
                            v2_18 = 0;
                        } catch (int v2) {
                            v2_18 = 0;
                        }
                    }
                } catch (int v2_26) {
                    v2_2 = v3_37;
                    v3_2 = v2_26;
                } catch (int v2_21) {
                    v7_2 = v8_3;
                    v3_1 = v2_21;
                    v2_2 = v3_37;
                } catch (int v2_20) {
                    v2_2 = v3_37;
                    v3_0 = v2_20;
                } catch (int v2_5) {
                    v2_2 = v3_37;
                    v3_2 = v2_5;
                } catch (int v2_4) {
                    v7_2 = v8_3;
                    v3_1 = v2_4;
                    v2_2 = v3_37;
                } catch (int v2_3) {
                    v2_2 = v3_37;
                    v3_0 = v2_3;
                }
            } else {
                this.a.y = com.ofss.fcdb.mobile.android.phone.helpers.a.c("APP.SERVER.LIST.URL", this.c);
            }
        } catch (int v2_14) {
            v8_3 = 0;
            v3_2 = v2_14;
            v2_2 = 0;
        } catch (int v2_13) {
            v2_2 = 0;
            v3_1 = v2_13;
        } catch (int v2_12) {
            v8_3 = 0;
            v3_0 = v2_12;
            v2_2 = 0;
        } catch (boolean v3_2) {
        }
        if (v2_2 != 0) {
            if (!"https".equals(v8_3.getProtocol())) {
                ((java.net.HttpURLConnection) v2_2).disconnect();
            } else {
                ((javax.net.ssl.HttpsURLConnection) v2_2).disconnect();
            }
        }
        if (v6_11 != null) {
            try {
                v6_11.close();
            } catch (int v2) {
            }
        }
        if (v5_2 != null) {
            try {
                v5_2.close();
            } catch (int v2) {
            }
        }
        throw v3_2;
    }

Method com.ofss.fcdb.mobile.android.phone.helpers.bk.onWrite() calling method java.io.FileOutputStream.<init>()


    public void onWrite(android.print.PageRange[] p6, android.os.ParcelFileDescriptor p7, android.os.CancellationSignal p8, android.print.PrintDocumentAdapter$WriteResultCallback p9)
    {
        int v2_0 = 0;
        try {
            int v3_1 = new java.io.FileInputStream(new java.io.File(this.a.a));
            try {
                String v1_0 = new java.io.FileOutputStream(p7.getFileDescriptor());
                try {
                    String v0_6 = new byte[1024];
                } catch (String v0_0) {
                    v2_0 = v1_0;
                    try {
                        v3_1.close();
                        v2_0.close();
                    } catch (String v1_4) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v1_4));
                    }
                    throw v0_0;
                } catch (String v0_4) {
                    v2_0 = v3_1;
                    try {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_4));
                        try {
                            v2_0.close();
                            v1_0.close();
                        } catch (String v0_14) {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_14));
                        }
                        return;
                    } catch (String v0_0) {
                        v3_1 = v2_0;
                        v2_0 = v1_0;
                    }
                } catch (String v0_3) {
                    v2_0 = v1_0;
                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_3));
                    try {
                        v3_1.close();
                        v2_0.close();
                    } catch (String v0_10) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_10));
                    }
                    return;
                }
                while(true) {
                    int v2_1 = v3_1.read(v0_6);
                    if (v2_1 <= 0) {
                        break;
                    }
                    v1_0.write(v0_6, 0, v2_1);
                }
                String v0_8 = new android.print.PageRange[1];
                v0_8[0] = android.print.PageRange.ALL_PAGES;
                p9.onWriteFinished(v0_8);
                try {
                    v3_1.close();
                    v1_0.close();
                } catch (String v0_16) {
                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_16));
                }
                return;
            } catch (String v0_4) {
                v1_0 = 0;
                v2_0 = v3_1;
            } catch (String v0_3) {
            }
        } catch (String v0_0) {
            v3_1 = 0;
        } catch (String v0_4) {
            v1_0 = 0;
        } catch (String v0_3) {
            v3_1 = 0;
        } catch (String v0_0) {
        }
    }

Method com.ofss.fcdb.mobile.android.phone.helpers.bh.a() calling method java.io.FileOutputStream.<init>()


    private void a(String p4, byte[] p5)
    {
        try {
            int v0_1 = new java.io.File(new StringBuilder().append(this.c.getCacheDir()).append(java.io.File.separator).append(this.d).toString());
        } catch (int v0_6) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_6));
            this.e = 1;
            this.h = 0;
            this.b();
            return;
        } catch (int v0_4) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_4));
            this.e = 1;
            this.h = 0;
            this.b();
            return;
        }
        if (!v0_1.exists()) {
            v0_1.mkdir();
        }
        int v0_3 = new java.io.FileOutputStream(new StringBuilder().append(this.c.getCacheDir()).append(java.io.File.separator).append(this.d).append(java.io.File.separator).append(p4).toString());
        this.f = android.net.Uri.parse(new StringBuilder().append(this.c.getCacheDir()).append(java.io.File.separator).append(this.d).append(java.io.File.separator).append(p4).toString());
        v0_3.write(p5);
        v0_3.flush();
        v0_3.close();
        this.e = 1;
        this.h = 0;
        this.b();
        return;
    }

Method com.ofss.fcdb.mobile.android.b.c.a.a() calling method java.io.FileOutputStream.<init>()


    public Object a(String p16, android.content.Context p17, String p18)
    {
        java.net.HttpURLConnection v2_2;
        this.f = p17;
        if ((com.ofss.fcdb.mobile.android.b.c.f.a(com.ofss.fcdb.mobile.android.b.c.f.c)) || ((com.ofss.fcdb.mobile.android.b.c.f.a(p18)) || (!p18.equalsIgnoreCase("IVRMS")))) {
            v2_2 = com.ofss.fcdb.mobile.android.b.c.f.b;
        } else {
            v2_2 = com.ofss.fcdb.mobile.android.b.c.f.c;
        }
        this.e = new com.ofss.fcdb.mobile.android.b.f.a(p17);
        this.c = p18;
        org.json.JSONException v4_26 = 0;
        try {
            this.b = new com.ofss.fcdb.mobile.android.b.g.g(p17);
            String v5_6 = new java.net.URL(v2_2);
            try {
                org.json.JSONObject v3_1;
                java.net.HttpURLConnection v2_15;
                if (!"https".equals(v5_6.getProtocol())) {
                    v2_15 = ((java.net.HttpURLConnection) v5_6.openConnection());
                    ((java.net.HttpURLConnection) v2_15).setRequestMethod("POST");
                    v3_1 = "httpConnection";
                } else {
                    this.a = javax.net.ssl.SSLContext.getInstance("TLS");
                    java.net.HttpURLConnection v2_24 = this.a;
                    java.io.File v7_14 = new javax.net.ssl.TrustManager[1];
                    v7_14[0] = new com.ofss.fcdb.mobile.android.b.c.e(this, com.ofss.fcdb.mobile.android.b.c.f.d);
                    v2_24.init(0, v7_14, new java.security.SecureRandom());
                    javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(this.a.getSocketFactory());
                    v2_15 = ((javax.net.ssl.HttpsURLConnection) v5_6.openConnection());
                    ((javax.net.ssl.HttpsURLConnection) v2_15).setHostnameVerifier(new com.ofss.fcdb.mobile.android.b.c.d(this, 0));
                    ((javax.net.ssl.HttpsURLConnection) v2_15).setRequestMethod("POST");
                    v3_1 = 0;
                }
                try {
                    java.net.HttpURLConnection v2_5;
                    v2_15.setConnectTimeout(Integer.parseInt(com.ofss.fcdb.mobile.android.b.c.f.a("PARAM.VALUE.CONNECTION.TIMEOUT", p17)));
                    v2_15.setRequestProperty("Content-Language", "en-US");
                    v2_15.setUseCaches(0);
                    v2_15.setDoInput(1);
                    v2_15.setDoOutput(1);
                    v2_15.connect();
                } catch (org.json.JSONException v4_30) {
                    v4_26 = v3_1;
                    org.json.JSONObject v3_2 = v4_30;
                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_2));
                    if (this.d.equals("certexpired")) {
                        org.json.JSONObject v3_16 = "certificateexpired";
                    } else {
                        if (this.d.equals("notintruststore")) {
                        } else {
                            if (!this.d.equals("certnotvalid")) {
                                v3_16 = v4_26;
                            }
                        }
                    }
                    if (v2_15 != null) {
                        try {
                            if (!"https".equals(v5_6.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_15).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                            }
                        } catch (java.net.HttpURLConnection v2) {
                            v2_5 = v3_16;
                            return v2_5;
                        }
                    }
                    v2_5 = v3_16;
                    return v2_5;
                }
                if ((com.ofss.fcdb.mobile.android.b.c.f.a(p18)) || (!p18.equalsIgnoreCase("IVRMS"))) {
                    com.ofss.fcdb.mobile.android.b.d.a.a(new StringBuilder().append("urlparameters=====").append(p16).toString());
                    org.json.JSONException v4_16 = new java.io.DataOutputStream(v2_15.getOutputStream());
                    v4_16.writeBytes(p16);
                    v4_16.flush();
                    v4_16.close();
                    org.json.JSONException v4_18 = v2_15.getInputStream();
                    String v8_0 = v2_15.getContentType();
                    if ((v8_0 != null) && (v2_15.getContentType().contains("zip"))) {
                        String v6_13 = new StringBuilder().append(p17.getDir("rmsdir", 2)).append("/").append("file").append(".zip").toString();
                        new java.io.File(v6_13).createNewFile();
                        java.io.FileOutputStream v9_2 = new java.io.FileOutputStream(v6_13);
                        byte[] v10_0 = new byte[1024];
                        String v6_15 = 0;
                        while(true) {
                            int v11 = v4_18.read(v10_0);
                            if (v11 == -1) {
                                break;
                            }
                            v6_15 += ((long) v11);
                            v9_2.write(v10_0, 0, v11);
                        }
                        v9_2.flush();
                        v9_2.close();
                    }
                    String v6_17 = new java.io.BufferedReader(new java.io.InputStreamReader(v4_18, "UTF-8"), 8);
                    java.io.File v7_12 = new StringBuffer();
                    while(true) {
                        org.json.JSONException v4_20 = v6_17.readLine();
                        if (v4_20 == null) {
                            break;
                        }
                        v7_12.append(v4_20);
                        v7_12.append(13);
                    }
                    if (v8_0 != null) {
                        if (!v2_15.getContentType().contains("xml")) {
                            if (v2_15.getContentType().contains("plain")) {
                                try {
                                    v3_1 = new org.json.JSONObject(v7_12.toString().trim());
                                } catch (org.json.JSONException v4) {
                                }
                            }
                        } else {
                            v3_1 = v7_12.toString().trim();
                        }
                    }
                    if (v2_15 != null) {
                        try {
                            if (!"https".equals(v5_6.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_15).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                            }
                        } catch (java.net.HttpURLConnection v2) {
                            v2_5 = v3_1;
                            return v2_5;
                        }
                    }
                    v2_5 = v3_1;
                    return v2_5;
                } else {
                    if (v2_15 != null) {
                        try {
                            if (!"https".equals(v5_6.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_15).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                            }
                        } catch (java.net.HttpURLConnection v2) {
                        }
                    }
                    v2_5 = v3_1;
                    return v2_5;
                }
            } catch (java.net.HttpURLConnection v2_32) {
                v2_15 = 0;
                org.json.JSONObject v3_17 = v2_32;
                if (v2_15 != null) {
                    try {
                        if (!"https".equals(v5_6.getProtocol())) {
                            ((java.net.HttpURLConnection) v2_15).disconnect();
                        } else {
                            ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                        }
                    } catch (java.net.HttpURLConnection v2) {
                    }
                }
                throw v3_17;
            } catch (java.net.HttpURLConnection v2_30) {
                v2_15 = 0;
                v3_2 = v2_30;
            } catch (java.net.HttpURLConnection v2_29) {
                v2_15 = 0;
                org.json.JSONObject v3_5 = v2_29;
                com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_5));
                if (v2_15 != null) {
                    try {
                        if (!"https".equals(v5_6.getProtocol())) {
                            ((java.net.HttpURLConnection) v2_15).disconnect();
                        } else {
                            ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                        }
                    } catch (java.net.HttpURLConnection v2) {
                        v2_5 = "connectionfailed";
                        return v2_5;
                    }
                }
                v2_5 = "connectionfailed";
                return v2_5;
            } catch (org.json.JSONObject v3_2) {
            } catch (org.json.JSONObject v3_5) {
            }
        } catch (java.net.HttpURLConnection v2_18) {
            v5_6 = 0;
            v3_17 = v2_18;
            v2_15 = 0;
        } catch (java.net.HttpURLConnection v2_16) {
            v5_6 = 0;
            v3_2 = v2_16;
            v2_15 = 0;
        } catch (java.net.HttpURLConnection v2_10) {
            v5_6 = 0;
            v3_5 = v2_10;
            v2_15 = 0;
        } catch (org.json.JSONObject v3_17) {
        }
    }

Method com.facebook.b.c.b() calling method java.io.FileOutputStream.<init>()


    public java.io.OutputStream b(String p8, String p9)
    {
        String v4_1 = com.facebook.b.g.b(this.e);
        v4_1.delete();
        if (v4_1.createNewFile()) {
            try {
                String v2_2 = new java.io.BufferedOutputStream(new com.facebook.b.j(new java.io.FileOutputStream(v4_1), new com.facebook.b.d(this, System.currentTimeMillis(), v4_1, p8)), 8192);
                try {
                    String v0_7 = new org.json.JSONObject();
                    v0_7.put("key", p8);
                } catch (String v0_11) {
                    v2_2.close();
                    throw v0_11;
                } catch (String v0_8) {
                    com.facebook.b.ab.a(com.facebook.ax.d, 5, com.facebook.b.c.a, new StringBuilder("Error creating JSON header for cache file: ").append(v0_8).toString());
                    throw new java.io.IOException(v0_8.getMessage());
                }
                if (!com.facebook.b.aq.a(p9)) {
                    v0_7.put("tag", p9);
                }
                com.facebook.b.o.a(v2_2, v0_7);
                return v2_2;
            } catch (String v0_4) {
                com.facebook.b.ab.a(com.facebook.ax.d, p8, com.facebook.b.c.a, new StringBuilder("Error creating buffer output stream: ").append(v0_4).toString());
                throw new java.io.IOException(v0_4.getMessage());
            }
        } else {
            throw new java.io.IOException(new StringBuilder("Could not create file at ").append(v4_1.getAbsolutePath()).toString());
        }
    }

Method com.ofss.fcdb.mobile.android.phone.handlers.o.c() calling method java.io.FileWriter.<init>()


    private String c()
    {
        String v1 = 0;
        try {
            String v0_4 = this.c.getPackageManager().getPackageInfo(this.c.getPackageName(), 0);
        } catch (String v0_3) {
            String v2_0 = java.io.FileWriter v4_12;
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_3));
            if (v2_0 == null) {
                return v1;
            } else {
                try {
                    v2_0.close();
                } catch (String v0) {
                }
                return v1;
            }
        }
        String v2_1 = android.os.Build.MODEL;
        if (!v2_1.startsWith(android.os.Build.MANUFACTURER)) {
            v2_1 = new StringBuilder(String.valueOf(android.os.Build.MANUFACTURER)).append(" ").append(v2_1).toString();
        }
        String v3_13 = new StringBuilder(String.valueOf(new StringBuilder().append(android.os.Environment.getExternalStorageDirectory()).append("/").toString())).append("FCDBErrorLogReport.log").toString();
        com.ofss.fcdb.mobile.android.b.d.a.a(new StringBuilder("fullName==>").append(v3_13).toString());
        try {
            v4_12 = new java.io.FileWriter(new java.io.File(v3_13));
        } catch (String v0_3) {
            v2_0 = 0;
        }
        String v0_8;
        v4_12.write(new StringBuilder("Android version: ").append(android.os.Build$VERSION.SDK_INT).append("\n").toString());
        v4_12.write(new StringBuilder("Device: ").append(v2_1).append("\n").toString());
        String v2_9 = new StringBuilder("App version: ");
        if (v0_4 != null) {
            v0_8 = Integer.valueOf(v0_4.versionCode);
        } else {
            v0_8 = "(null)";
        }
        v4_12.write(v2_9.append(v0_8).append("\n").toString());
        v4_12.write(this.a());
        v4_12.flush();
        v4_12.close();
        v1 = v3_13;
        return v1;
    }

Method com.ofss.fcdb.mobile.android.phone.social.k.a() calling method java.io.FileInputStream.<init>()


    private android.graphics.Bitmap a(java.io.File p7)
    {
        int v0_0 = 1;
        try {
            int v2_4 = new android.graphics.BitmapFactory$Options();
            v2_4.inJustDecodeBounds = 1;
            int v3_5 = new java.io.FileInputStream(p7);
            android.graphics.BitmapFactory.decodeStream(v3_5, 0, v2_4);
            v3_5.close();
            int v3_0 = v2_4.outWidth;
            int v2_0 = v2_4.outHeight;
        } catch (int v0_5) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_5));
            int v0_2 = 0;
            return v0_2;
        } catch (int v0_3) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_3));
        }
        while (((v3_0 / 2) >= 70) && ((v2_0 / 2) >= 70)) {
            v3_0 /= 2;
            v2_0 /= 2;
            v0_0 *= 2;
        }
        int v2_2 = new android.graphics.BitmapFactory$Options();
        v2_2.inSampleSize = v0_0;
        int v3_2 = new java.io.FileInputStream(p7);
        v0_2 = android.graphics.BitmapFactory.decodeStream(v3_2, 0, v2_2);
        v3_2.close();
        return v0_2;
    }

Method com.ofss.fcdb.mobile.android.phone.mleapdatatypes.ImageButtonType$LocalBroadcast.onReceive() calling method java.io.FileInputStream.<init>()


    public void onReceive(android.content.Context p6, android.content.Intent p7)
    {
        String v0_9 = android.util.Base64.decode(p7.getStringExtra("dataValue"), 0);
        com.ofss.fcdb.mobile.android.phone.mleapdatatypes.ImageButtonType.a(this.a).setVolumeControlStream(3);
        android.media.MediaPlayer v1_1 = new android.media.MediaPlayer();
        try {
            com.ofss.fcdb.mobile.android.phone.mleapdatatypes.af v2_1 = java.io.File.createTempFile("Captcha", "mp3", p6.getCacheDir());
            v2_1.deleteOnExit();
            java.io.FileOutputStream v3_2 = new java.io.FileOutputStream(v2_1);
            v3_2.write(v0_9);
            v3_2.close();
            v1_1.setDataSource(new java.io.FileInputStream(v2_1).getFD());
            v1_1.prepare();
            com.ofss.fcdb.mobile.android.phone.mleapdatatypes.ImageButtonType.b(this.a).setOnClickListener(new com.ofss.fcdb.mobile.android.phone.mleapdatatypes.af(this, v1_1));
        } catch (String v0_7) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_7));
        }
        return;
    }

Method com.ofss.fcdb.mobile.android.phone.helpers.bk.onWrite() calling method java.io.FileInputStream.<init>()


    public void onWrite(android.print.PageRange[] p6, android.os.ParcelFileDescriptor p7, android.os.CancellationSignal p8, android.print.PrintDocumentAdapter$WriteResultCallback p9)
    {
        int v2_0 = 0;
        try {
            int v3_1 = new java.io.FileInputStream(new java.io.File(this.a.a));
            try {
                String v1_0 = new java.io.FileOutputStream(p7.getFileDescriptor());
                try {
                    String v0_6 = new byte[1024];
                } catch (String v0_0) {
                    v2_0 = v1_0;
                    try {
                        v3_1.close();
                        v2_0.close();
                    } catch (String v1_4) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v1_4));
                    }
                    throw v0_0;
                } catch (String v0_4) {
                    v2_0 = v3_1;
                    try {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_4));
                        try {
                            v2_0.close();
                            v1_0.close();
                        } catch (String v0_14) {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_14));
                        }
                        return;
                    } catch (String v0_0) {
                        v3_1 = v2_0;
                        v2_0 = v1_0;
                    }
                } catch (String v0_3) {
                    v2_0 = v1_0;
                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_3));
                    try {
                        v3_1.close();
                        v2_0.close();
                    } catch (String v0_10) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_10));
                    }
                    return;
                }
                while(true) {
                    int v2_1 = v3_1.read(v0_6);
                    if (v2_1 <= 0) {
                        break;
                    }
                    v1_0.write(v0_6, 0, v2_1);
                }
                String v0_8 = new android.print.PageRange[1];
                v0_8[0] = android.print.PageRange.ALL_PAGES;
                p9.onWriteFinished(v0_8);
                try {
                    v3_1.close();
                    v1_0.close();
                } catch (String v0_16) {
                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_16));
                }
                return;
            } catch (String v0_4) {
                v1_0 = 0;
                v2_0 = v3_1;
            } catch (String v0_3) {
            }
        } catch (String v0_0) {
            v3_1 = 0;
        } catch (String v0_4) {
            v1_0 = 0;
        } catch (String v0_3) {
            v3_1 = 0;
        } catch (String v0_0) {
        }
    }

Method com.ofss.fcdb.mobile.android.phone.application.AddAttachment.run() calling method java.io.FileInputStream.<init>()


    public void run()
    {
        try {
            java.io.FileInputStream v8_1 = new java.io.FileInputStream(new java.io.File(this.r));
            this.u = v8_1.available();
            this.v = Math.min(this.u, this.w);
            byte[] v5 = new byte[this.v];
            this.t = v8_1.read(v5, 0, this.v);
            String v0_11 = new String(new com.ofss.fcdb.mobile.android.phone.helpers.r(this.n.y, com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.FILEFIELD", this), this.r, this.s, v5, this.q, this).b()).toString().trim();
            android.os.Message v1_8 = this.A.obtainMessage();
            v1_8.obj = v0_11;
            this.A.sendMessage(v1_8);
            v8_1.close();
        } catch (String v0_13) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_13));
        }
        return;
    }

Method com.ofss.fcdb.mobile.android.b.g.g.a() calling method java.io.FileInputStream.<init>()


    public void a(java.io.InputStream p8)
    {
        this.m = new com.ofss.fcdb.mobile.android.b.g.e();
        this.n = new com.ofss.fcdb.mobile.android.b.b.a(this.o);
        java.io.IOException v1_2 = new byte[4096];
        try {
            java.util.zip.ZipInputStream v2_8 = new java.util.zip.ZipInputStream(new java.io.FileInputStream(new java.io.File(new StringBuilder().append(this.o.getDir("rmsdir", 2)).append("/").append("file").append(".zip").toString())));
        } catch (com.ofss.fcdb.mobile.android.b.f.a v0) {
            this.p.a(23);
            return;
        }
        while(true) {
            com.ofss.fcdb.mobile.android.b.f.a v0_66 = v2_8.getNextEntry();
            if (v0_66 == null) {
                break;
            }
            int v3_25 = new java.io.ByteArrayOutputStream();
            com.ofss.fcdb.mobile.android.b.f.a v0_68 = v0_66.getName();
            String v4_30 = v0_68.lastIndexOf(".");
            String v5_1 = v0_68.substring(0, v4_30);
            com.ofss.fcdb.mobile.android.b.f.a v0_70 = v0_68.substring((v4_30 + 1), v0_68.length());
            try {
                while(true) {
                    String v4_32 = v2_8.read(v1_2);
                    v3_25.write(v1_2, 0, v4_32);
                }
                if (v3_25 != 0) {
                    try {
                        v3_25.close();
                    } catch (String v4) {
                    }
                }
                if (v0_70.equalsIgnoreCase("mth")) {
                    v0_70 = "html";
                }
                if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("png"))) {
                    if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("css"))) {
                        if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("xml"))) {
                            if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("ttf"))) {
                                if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("txt"))) {
                                    if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("html"))) {
                                        this.p.a(21);
                                    } else {
                                        if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                                        } else {
                                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                                            if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                                this.p.a(22);
                                            } else {
                                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                                this.n.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                                            }
                                        }
                                    }
                                } else {
                                    if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                                    } else {
                                        ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                                        if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                            this.p.a(20);
                                        } else {
                                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                            this.n.b(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                                        }
                                    }
                                }
                            } else {
                                if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                                    this.p.a(21);
                                } else {
                                    ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                                    if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                        ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                        this.p.a(20);
                                    } else {
                                        ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                        this.n.e(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                                    }
                                }
                            }
                        } else {
                            if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                                this.p.a(12);
                            } else {
                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                                if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                    ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                    this.p.a(15);
                                } else {
                                    ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                    this.n.d(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                                }
                            }
                        }
                    } else {
                        if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                            this.p.a(11);
                        } else {
                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                            if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                this.p.a(14);
                            } else {
                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                this.n.f(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                            }
                        }
                    }
                } else {
                    if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                        this.p.a(10);
                    } else {
                        ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                        if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                            this.p.a(13);
                        } else {
                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                            this.n.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                        }
                    }
                }
            } catch (com.ofss.fcdb.mobile.android.b.f.a v0_71) {
                if (v3_25 != 0) {
                    try {
                        v3_25.close();
                    } catch (java.io.IOException v1) {
                    }
                }
                throw v0_71;
            }
            if (v4_32 != -1) {
            }
        }
        v2_8.closeEntry();
        v2_8.close();
        this.n.a();
        return;
    }

Method com.ofss.fcdb.mobile.android.augmented_reality.b.e.a() calling method java.io.FileInputStream.<init>()


    protected static java.io.InputStream a(String p6)
    {
        if (p6 != null) {
            boolean v3 = 0;
            try {
                int v0_2;
                if (!p6.startsWith("file://")) {
                    Exception v2_0 = new java.net.URL(p6).openConnection();
                    try {
                        v2_0.setReadTimeout(10000);
                        v2_0.setConnectTimeout(10000);
                        v0_2 = v2_0.getInputStream();
                    } catch (int v0_3) {
                        int v0_4 = v2_0;
                        Exception v2_1 = v0_3;
                    }
                    return v0_2;
                } else {
                    v0_2 = new java.io.FileInputStream(p6.replace("file://", ""));
                    return v0_2;
                }
                try {
                    v3.close();
                    try {
                        v3 = (v0_4 instanceof java.net.HttpURLConnection);
                    } catch (int v0) {
                        v2_1.printStackTrace();
                        v0_2 = 0;
                        return v0_2;
                    }
                    if (!v3) {
                    } else {
                        ((java.net.HttpURLConnection) v0_4).disconnect();
                    }
                } catch (boolean v3) {
                }
            } catch (int v0_6) {
                v2_1 = v0_6;
                v0_4 = 0;
            }
        } else {
            throw new NullPointerException();
        }
    }

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


    public java.io.InputStream a(String p9, String p10)
    {
        java.io.IOException v0_0 = 0;
        java.io.File v2_1 = new java.io.File(this.e, com.facebook.b.aq.b(p9));
        try {
            java.io.IOException v1_0 = new java.io.BufferedInputStream(new java.io.FileInputStream(v2_1), 8192);
            try {
                String v3_0 = com.facebook.b.o.a(v1_0);
            } catch (java.io.IOException v0_4) {
                v1_0.close();
                throw v0_4;
            }
            if (v3_0 != null) {
                long v4_1 = v3_0.optString("key");
                if ((v4_1 != 0) && (v4_1.equals(p9))) {
                    String v3_1 = v3_0.optString("tag", 0);
                    if (((p10 != null) || (v3_1 == null)) && ((p10 == null) || (p10.equals(v3_1)))) {
                        long v4_4 = new java.util.Date().getTime();
                        com.facebook.b.ab.a(com.facebook.ax.d, ark>com.facebook.b.cark>.a, new StringBuilder("Setting lastModified to ").append(Long.valueOf(v4_4)).append(" for ").append(v2_1.getName()).toString());
                        v2_1.setLastModified(v4_4);
                        v0_0 = v1_0;
                        return v0_0;
                    } else {
                        v1_0.close();
                        return v0_0;
                    }
                } else {
                    v1_0.close();
                    return v0_0;
                }
            } else {
                v1_0.close();
                return v0_0;
            }
        } catch (java.io.IOException v1) {
            return v0_0;
        }
    }

Method com.ofss.fcdb.mobile.android.phone.social.i.a() calling method java.io.File.<init>()


    public java.io.File a(String p4)
    {
        return new java.io.File(this.a, String.valueOf(p4.hashCode()));
    }

Method com.ofss.fcdb.mobile.android.phone.social.i.<init>() calling method java.io.File.<init>()


    public i(android.content.Context p4)
    {
        if (!android.os.Environment.getExternalStorageState().equals("mounted")) {
            this.a = p4.getCacheDir();
        } else {
            this.a = new java.io.File(android.os.Environment.getExternalStorageDirectory(), "LazyList");
        }
        if (!this.a.exists()) {
            this.a.mkdirs();
        }
        return;
    }

Method com.ofss.fcdb.mobile.android.phone.mleapdatatypes.ImageType.getView() calling method java.io.File.<init>()


    public android.view.View getView()
    {
        if (this.w == null) {
            this.w = new com.ofss.fcdb.mobile.android.phone.ui.components.FCImageView(this.t, this);
            com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.u);
            if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.c)) {
                if (!this.c.equalsIgnoreCase("pu")) {
                    if ((this.c.equalsIgnoreCase("ll")) && (this.J == null)) {
                        this.J = new com.ofss.fcdb.mobile.android.phone.helpers.bh(this.D, this.t, this.G, this.H, this.I);
                        this.J.a();
                        this.J.a(this.w);
                    }
                } else {
                    if (com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.b)) {
                        if ((!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.G)) && (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.H))) {
                            if (this.J == null) {
                                this.J = new com.ofss.fcdb.mobile.android.phone.helpers.bh(this.D, this.t, this.G, this.H, this.I);
                            }
                            this.J.a();
                            this.J.a(this.w);
                        }
                    } else {
                        String v0_66 = android.util.Base64.decode(this.b, 0);
                        this.w.setImageBitmap(android.graphics.BitmapFactory.decodeByteArray(v0_66, 0, v0_66.length, 0));
                        android.graphics.Bitmap v1_26 = new StringBuilder();
                        v1_26.append(this.t.getCacheDir());
                        v1_26.append(java.io.File.separator);
                        v1_26.append(this.D);
                        String v2_18 = new java.io.File(v1_26.toString());
                        if (!v2_18.exists()) {
                            v2_18.mkdir();
                        }
                        v1_26.append(java.io.File.separator);
                        v1_26.append(this.a);
                        try {
                            String v2_22 = new java.io.FileOutputStream(v1_26.toString());
                            v2_22.write(v0_66);
                            v2_22.flush();
                            v2_22.close();
                            System.gc();
                        } catch (String v0_5) {
                            System.gc();
                            throw v0_5;
                        } catch (String v0_3) {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_3));
                            System.gc();
                        } catch (String v0_1) {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_1));
                            System.gc();
                        }
                        this.D.f().put(new StringBuilder(String.valueOf(this.a)).append("_loc").toString(), android.net.Uri.parse(v1_26.toString()));
                    }
                }
            }
            new com.ofss.fcdb.mobile.android.phone.j.t();
            if (com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.B)) {
                if ((!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.c)) && (this.c.equalsIgnoreCase("c"))) {
                    if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.b)) {
                        this.w.setImageURI(android.net.Uri.parse(this.b));
                    }
                    try {
                        if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.C)) {
                            this.w.setImageBitmap(com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.t, this.C.toLowerCase(), Integer.toString(this.j), Integer.toString(this.k)));
                        }
                    } catch (String v0_22) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_22));
                    }
                }
            } else {
                this.w.setImageBitmap(com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.t, this.B, Integer.toString(this.j), Integer.toString(this.k)));
            }
        }
        if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.E)) {
            com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.w, this.D, this.E);
        }
        if (this.F == 0) {
            this.enableView();
        }
        if (this.D.C() != 0) {
            if (this.F >= this.D.C()) {
                this.disableView();
            } else {
                this.enableView();
            }
        }
        String v0_45;
        if (!"h".equalsIgnoreCase(this.c)) {
            this.p = new java.util.HashMap();
            this.p.put("MleapDataType", this);
            if (this.J != null) {
                this.p.put("PARAM_NAME_LAZY_DOWNLOADER", this.J);
            }
            this.w.setTag(this.p);
            v0_45 = this.w;
        } else {
            this.D.f(this.B);
            v0_45 = 0;
        }
        return v0_45;
    }

Method com.ofss.fcdb.mobile.android.phone.mleapdatatypes.AttachmentType.a() calling method java.io.File.<init>()


    private void a(String p7)
    {
        android.net.Uri v4 = 0;
        if (com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.C)) {
            ((String) this.I.get("value")).subSequence((((String) this.I.get("value")).lastIndexOf(".") + 1), (((String) this.I.get("value")).length() - 1));
            android.content.Intent v0_5 = ((String) this.I.get("value"));
            if (v0_5.contains("/")) {
                v4 = android.net.Uri.fromFile(new java.io.File(v0_5.substring(v0_5.indexOf("/"))));
            }
            android.content.Intent v0_9 = new android.content.Intent("android.intent.action.VIEW");
            v0_9.setDataAndType(v4, "*/*");
            this.t.startActivity(android.content.Intent.createChooser(v0_9, "Open With"));
        } else {
            this.F.put(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.REQUESTID", this.t), this.C);
            this.F.put(this.a, this.I.get("value"));
            this.A.a(this.F);
            com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.t, this.A, new StringBuilder("/").append(((String) this.I.get("label"))).toString(), Boolean.valueOf(1), 0, p7);
        }
        return;
    }

Method com.ofss.fcdb.mobile.android.phone.j.t.a() calling method java.io.File.<init>()


    public Object a(String p8)
    {
        Exception v1_0 = 0;
        try {
            android.graphics.Typeface v0_10;
            switch (com.ofss.fcdb.mobile.android.b.c.f.f(p8, this.c)) {
                case -4:
                    if (com.ofss.fcdb.mobile.android.b.c.f.a() == null) {
                        com.ofss.fcdb.mobile.android.b.c.f.b();
                    }
                    android.graphics.Typeface v0_14 = this.d.a(p8);
                    try {
                        if (!v0_14.equalsIgnoreCase("defaultFontType")) {
                            v0_10 = android.graphics.Typeface.createFromAsset(this.c.getAssets(), v0_14);
                            v1_0 = this.a;
                            v1_0.a(49);
                            return v0_10;
                        } else {
                            v0_10 = android.graphics.Typeface.DEFAULT;
                            v1_0 = this.a;
                            v1_0.a(49);
                            return v0_10;
                        }
                    } catch (Exception v1_1) {
                    }
                case 4:
                    int v2_2 = new StringBuilder().append(this.c.getDir("fontdir", 2)).append("/").append(p8).toString();
                    int v3_1 = new java.io.ByteArrayInputStream(((byte[]) com.ofss.fcdb.mobile.android.b.b.c.i.get(p8)));
                    android.graphics.Typeface v0_8 = new java.io.File(v2_2);
                    v0_8.createNewFile();
                    int v2_4 = new java.io.FileOutputStream(v0_8);
                    while(true) {
                        int v4_0 = v3_1.read();
                        if (v4_0 == -1) {
                            break;
                        }
                        v2_4.write(v4_0);
                    }
                    v2_4.flush();
                    v2_4.close();
                    this.a.a(94);
                    v0_10 = android.graphics.Typeface.createFromFile(v0_8);
                    return v0_10;
                default:
                    v0_10 = 0;
                    return v0_10;
            }
        } catch (android.graphics.Typeface v0_16) {
            v0_10 = v1_0;
            v1_1 = v0_16;
        }
        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v1_1));
        v1_0 = this.a;
        v1_0.a(99);
        return v0_10;
    }

Method com.ofss.fcdb.mobile.android.phone.helpers.k.a() calling method java.io.File.<init>()


    public void a(String p22, String p23, android.content.Context p24, android.os.ResultReceiver p25, Boolean p26)
    {
        this.c = this.a.W;
        android.content.Intent v7_2 = 0;
        boolean v3_37 = 0;
        android.content.Intent v6_11 = 0;
        String v5_2 = 0;
        int v9 = 0;
        String[] v4_0 = 0;
        try {
            int v2_18;
            if (this.a.y != null) {
                android.content.Intent v8_3 = new java.net.URL(this.a.y);
                try {
                    int v2_2;
                    if (!"https".equals(v8_3.getProtocol())) {
                        v3_37 = v8_3.openConnection();
                        ((java.net.HttpURLConnection) v3_37).setRequestMethod("POST");
                        v2_2 = v3_37;
                    } else {
                        this.b = javax.net.ssl.SSLContext.getInstance("TLS");
                        int v2_34 = this.b;
                        long v10_56 = new javax.net.ssl.TrustManager[1];
                        v10_56[0] = new com.ofss.fcdb.mobile.android.phone.helpers.o(this, com.ofss.fcdb.mobile.android.b.c.f.d);
                        v2_34.init(0, v10_56, new java.security.SecureRandom());
                        javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(this.b.getSocketFactory());
                        v3_37 = v8_3.openConnection();
                        ((javax.net.ssl.HttpsURLConnection) v3_37).setHostnameVerifier(new com.ofss.fcdb.mobile.android.phone.helpers.n(this, 0));
                        ((javax.net.ssl.HttpsURLConnection) v3_37).setRequestMethod("POST");
                        v2_2 = v3_37;
                    }
                    try {
                        v2_2.setConnectTimeout(Integer.parseInt(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.VALUE.CONNECTION.TIMEOUT", p24)));
                    } catch (boolean v3_1) {
                        v7_2 = v8_3;
                        try {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_1));
                        } catch (boolean v3_2) {
                            v8_3 = v7_2;
                        }
                        if (v3_1.getMessage().contains("Hostname")) {
                            if (v3_1.getMessage().contains("was not verified")) {
                                v9 = 1;
                                com.ofss.fcdb.mobile.android.b.d.a.a("HTTPWorker cert_error", v3_1.getMessage());
                                android.widget.Toast.makeText(this.c, com.ofss.fcdb.mobile.android.phone.i.b.b(this.c, "CERTIFICATE_ERROR"), 0).show();
                                this.a.N = 0;
                                this.a.u = 0;
                                this.a.s = 0;
                                this.a.j.clear();
                                if (this.a.C != null) {
                                    this.a.C.clear();
                                }
                                this.a.A.clear();
                                this.a.K.clear();
                                this.a.I.clear();
                                try {
                                    boolean v3_56 = Class.forName(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.VALUE.LAUNCHER.CLASS", this.c));
                                } catch (boolean v3_57) {
                                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_57));
                                    v3_56 = 0;
                                }
                                if (v3_56) {
                                    android.content.Intent v8_17 = new android.content.Intent(this.c, v3_56);
                                    v8_17.addFlags(268468224);
                                    this.c.startActivity(v8_17);
                                }
                            }
                        }
                        boolean v3_61 = v9;
                        if (v2_2 != 0) {
                            if (!"https".equals(v7_2.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_2).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_2).disconnect();
                            }
                        }
                        if (v6_11 != null) {
                            try {
                                v6_11.close();
                            } catch (int v2) {
                            }
                        }
                        if (v5_2 == null) {
                            v2_18 = v3_61;
                            if (v2_18 == 0) {
                                int v2_30 = new android.os.Bundle();
                                if ((p26.booleanValue()) || ((v4_0 == null) || (com.ofss.fcdb.mobile.android.phone.helpers.a.a(v4_0[1])))) {
                                    v2_30.putString("ext", ark>com.ofss.fcdb.mobile.android.phone.helpers.kark>.a(p23));
                                } else {
                                    v2_30.putString("ext", new StringBuilder(".").append(v4_0[1]).toString());
                                }
                                v2_30.putString("filepath", p23);
                                v2_30.putInt("progress", 100);
                                p25.send(1234, v2_30);
                            }
                            return;
                        } else {
                            try {
                                v5_2.close();
                                v2_18 = v3_61;
                            } catch (int v2) {
                                v2_18 = v3_61;
                            }
                        }
                    } catch (boolean v3_0) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_0));
                        if (v2_2 != 0) {
                            if (!"https".equals(v8_3.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_2).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_2).disconnect();
                            }
                        }
                        if (v6_11 != null) {
                            try {
                                v6_11.close();
                            } catch (int v2) {
                            }
                        }
                        if (v5_2 == null) {
                            v2_18 = 0;
                        } else {
                            try {
                                v5_2.close();
                                v2_18 = 0;
                            } catch (int v2) {
                                v2_18 = 0;
                            }
                        }
                    }
                    if (this.a.s != null) {
                        p22 = new StringBuilder(String.valueOf(p22)).append("&").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.SESSIONID", this.c)).append("=").append(this.a.s).toString();
                        v2_2.setRequestProperty("Cookie", new StringBuilder("JSESSIONID=").append(this.a.u).toString());
                    }
                    if ((!com.ofss.fcdb.mobile.android.phone.helpers.a.a(com.ofss.fcdb.mobile.android.phone.helpers.a.c("APP.JSF", this.c))) && (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.a.u))) {
                        v2_2.setRequestProperty("Cookie", new StringBuilder("JSESSIONID=").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("APP.JSF", this.c).replace("{0}", this.a.u)).toString());
                    }
                    boolean v3_29 = new StringBuilder(String.valueOf(p22)).append("&").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.LANGID", this.c)).append("=").append(this.c.getResources().getString(this.c.getResources().getIdentifier("LANG_ID", "string", this.c.getPackageName()))).toString().concat(new StringBuilder("&").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.DEVICE", this.c)).append("=").append(com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.VALUE.DEVICE", this.c)).toString());
                    if (!com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.a.z)) {
                        System.setProperty("http.agent", this.a.z);
                    } else {
                        System.setProperty("http.agent", "AndPhone");
                    }
                    v2_2.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
                    System.setProperty("http.keepAlive", "false");
                    v2_2.setRequestProperty("Content-Length", new StringBuilder().append(Integer.toString(v3_29.getBytes().length)).toString());
                    v2_2.setRequestProperty("Content-Language", "en-US");
                    v2_2.setUseCaches(0);
                    v2_2.setDoInput(1);
                    v2_2.setDoOutput(1);
                    v2_2.connect();
                    android.content.Intent v7_45 = v2_2.getOutputStream();
                    v7_45.write(v3_29.getBytes());
                    v7_45.flush();
                    v7_45.close();
                    android.content.Intent v7_46 = v2_2.getInputStream();
                    try {
                        boolean v3_31 = v2_2.getContentLength();
                    } catch (boolean v3_2) {
                        v6_11 = v7_46;
                    } catch (boolean v3_1) {
                        v6_11 = v7_46;
                        v7_2 = v8_3;
                    } catch (boolean v3_0) {
                        v6_11 = v7_46;
                    }
                    if (!p26.booleanValue()) {
                        android.content.Intent v6_2 = new android.text.format.Time(android.text.format.Time.getCurrentTimezone());
                        v6_2.setToNow();
                        android.content.Intent v6_5 = new StringBuilder(String.valueOf(v6_2.monthDay)).append("_").append(v6_2.month).append("_").append(v6_2.year).append(v6_2.hour).append("_").append(v6_2.minute).append("_").append(v6_2.second).toString();
                        v4_0 = v2_2.getContentType().split("/");
                        p23 = new StringBuilder(String.valueOf(p23)).append("_").append(v6_5).append(".").append(v4_0[1]).toString();
                        android.content.Intent v6_10 = new java.io.File(p23);
                        if (v6_10.exists()) {
                            v6_10.delete();
                        }
                    }
                    android.content.Intent v6_13 = new java.io.FileOutputStream(p23);
                    try {
                        String v5_1 = new byte[1024];
                        long v10_48 = 0;
                    } catch (boolean v3_2) {
                        v5_2 = v6_13;
                        v6_11 = v7_46;
                    } catch (boolean v3_1) {
                        v5_2 = v6_13;
                        v6_11 = v7_46;
                        v7_2 = v8_3;
                    } catch (boolean v3_0) {
                        v5_2 = v6_13;
                        v6_11 = v7_46;
                    }
                    while(true) {
                        int v12_3 = v7_46.read(v5_1);
                        if (v12_3 == -1) {
                            break;
                        }
                        v10_48 += ((long) v12_3);
                        int v13_4 = new android.os.Bundle();
                        v13_4.putInt("progress", ((int) ((100 * v10_48) / ((long) v3_31))));
                        v13_4.putString("filepath", p23);
                        p25.send(8344, v13_4);
                        v6_13.write(v5_1, 0, v12_3);
                    }
                    v6_13.flush();
                    v6_13.close();
                    v7_46.close();
                    if (v2_2 != 0) {
                        if (!"https".equals(v8_3.getProtocol())) {
                            ((java.net.HttpURLConnection) v2_2).disconnect();
                        } else {
                            ((javax.net.ssl.HttpsURLConnection) v2_2).disconnect();
                        }
                    }
                    if (v7_46 != null) {
                        try {
                            v7_46.close();
                        } catch (int v2) {
                        }
                    }
                    if (v6_13 == null) {
                    } else {
                        try {
                            v6_13.close();
                            v2_18 = 0;
                        } catch (int v2) {
                            v2_18 = 0;
                        }
                    }
                } catch (int v2_26) {
                    v2_2 = v3_37;
                    v3_2 = v2_26;
                } catch (int v2_21) {
                    v7_2 = v8_3;
                    v3_1 = v2_21;
                    v2_2 = v3_37;
                } catch (int v2_20) {
                    v2_2 = v3_37;
                    v3_0 = v2_20;
                } catch (int v2_5) {
                    v2_2 = v3_37;
                    v3_2 = v2_5;
                } catch (int v2_4) {
                    v7_2 = v8_3;
                    v3_1 = v2_4;
                    v2_2 = v3_37;
                } catch (int v2_3) {
                    v2_2 = v3_37;
                    v3_0 = v2_3;
                }
            } else {
                this.a.y = com.ofss.fcdb.mobile.android.phone.helpers.a.c("APP.SERVER.LIST.URL", this.c);
            }
        } catch (int v2_14) {
            v8_3 = 0;
            v3_2 = v2_14;
            v2_2 = 0;
        } catch (int v2_13) {
            v2_2 = 0;
            v3_1 = v2_13;
        } catch (int v2_12) {
            v8_3 = 0;
            v3_0 = v2_12;
            v2_2 = 0;
        } catch (boolean v3_2) {
        }
        if (v2_2 != 0) {
            if (!"https".equals(v8_3.getProtocol())) {
                ((java.net.HttpURLConnection) v2_2).disconnect();
            } else {
                ((javax.net.ssl.HttpsURLConnection) v2_2).disconnect();
            }
        }
        if (v6_11 != null) {
            try {
                v6_11.close();
            } catch (int v2) {
            }
        }
        if (v5_2 != null) {
            try {
                v5_2.close();
            } catch (int v2) {
            }
        }
        throw v3_2;
    }

Method com.ofss.fcdb.mobile.android.phone.helpers.bk.onWrite() calling method java.io.File.<init>()


    public void onWrite(android.print.PageRange[] p6, android.os.ParcelFileDescriptor p7, android.os.CancellationSignal p8, android.print.PrintDocumentAdapter$WriteResultCallback p9)
    {
        int v2_0 = 0;
        try {
            int v3_1 = new java.io.FileInputStream(new java.io.File(this.a.a));
            try {
                String v1_0 = new java.io.FileOutputStream(p7.getFileDescriptor());
                try {
                    String v0_6 = new byte[1024];
                } catch (String v0_0) {
                    v2_0 = v1_0;
                    try {
                        v3_1.close();
                        v2_0.close();
                    } catch (String v1_4) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v1_4));
                    }
                    throw v0_0;
                } catch (String v0_4) {
                    v2_0 = v3_1;
                    try {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_4));
                        try {
                            v2_0.close();
                            v1_0.close();
                        } catch (String v0_14) {
                            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_14));
                        }
                        return;
                    } catch (String v0_0) {
                        v3_1 = v2_0;
                        v2_0 = v1_0;
                    }
                } catch (String v0_3) {
                    v2_0 = v1_0;
                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_3));
                    try {
                        v3_1.close();
                        v2_0.close();
                    } catch (String v0_10) {
                        com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_10));
                    }
                    return;
                }
                while(true) {
                    int v2_1 = v3_1.read(v0_6);
                    if (v2_1 <= 0) {
                        break;
                    }
                    v1_0.write(v0_6, 0, v2_1);
                }
                String v0_8 = new android.print.PageRange[1];
                v0_8[0] = android.print.PageRange.ALL_PAGES;
                p9.onWriteFinished(v0_8);
                try {
                    v3_1.close();
                    v1_0.close();
                } catch (String v0_16) {
                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_16));
                }
                return;
            } catch (String v0_4) {
                v1_0 = 0;
                v2_0 = v3_1;
            } catch (String v0_3) {
            }
        } catch (String v0_0) {
            v3_1 = 0;
        } catch (String v0_4) {
            v1_0 = 0;
        } catch (String v0_3) {
            v3_1 = 0;
        } catch (String v0_0) {
        }
    }

Method com.ofss.fcdb.mobile.android.phone.helpers.bh.a() calling method java.io.File.<init>()


    private void a(String p4, byte[] p5)
    {
        try {
            int v0_1 = new java.io.File(new StringBuilder().append(this.c.getCacheDir()).append(java.io.File.separator).append(this.d).toString());
        } catch (int v0_6) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_6));
            this.e = 1;
            this.h = 0;
            this.b();
            return;
        } catch (int v0_4) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_4));
            this.e = 1;
            this.h = 0;
            this.b();
            return;
        }
        if (!v0_1.exists()) {
            v0_1.mkdir();
        }
        int v0_3 = new java.io.FileOutputStream(new StringBuilder().append(this.c.getCacheDir()).append(java.io.File.separator).append(this.d).append(java.io.File.separator).append(p4).toString());
        this.f = android.net.Uri.parse(new StringBuilder().append(this.c.getCacheDir()).append(java.io.File.separator).append(this.d).append(java.io.File.separator).append(p4).toString());
        v0_3.write(p5);
        v0_3.flush();
        v0_3.close();
        this.e = 1;
        this.h = 0;
        this.b();
        return;
    }

Method com.ofss.fcdb.mobile.android.phone.helpers.DownloadReceiver.onReceiveResult() calling method java.io.File.<init>()


    protected void onReceiveResult(int p8, android.os.Bundle p9)
    {
        String v1_2;
        super.onReceiveResult(p8, p9);
        if (com.ofss.fcdb.mobile.android.phone.helpers.a.a(this.b)) {
            v1_2 = 0;
        } else {
            v1_2 = this.b.split("~");
        }
        if (p8 == 1234) {
            String v2_22 = p9.getInt("progress");
            int v3_8 = p9.getString("ext");
            this.a.setProgress(v2_22);
            if (v2_22 == 100) {
                String v0_15;
                if (com.ofss.fcdb.mobile.android.phone.helpers.a.a(v3_8)) {
                    v0_15 = android.net.Uri.parse(p9.getString("filepath"));
                } else {
                    try {
                        v0_15 = android.net.Uri.parse(p9.getString("filepath"));
                    } catch (String v2) {
                    }
                }
                this.a.dismiss();
                if ((this.d == null) || (!this.d.equalsIgnoreCase("AttachmentSave"))) {
                    if ((this.d == null) || (!this.d.equalsIgnoreCase("pb"))) {
                        if ((this.d == null) || ((!this.d.equalsIgnoreCase("em")) || (v3_8 == 0))) {
                            if ((this.d == null) || ((!this.d.equalsIgnoreCase("em")) || (this.d.equalsIgnoreCase("AttachmentOpen")))) {
                                String v1_29 = new android.content.Intent("android.intent.action.VIEW");
                                if (v3_8 != 0) {
                                    if (!v3_8.equalsIgnoreCase("pdf")) {
                                        v1_29.setDataAndType(android.net.Uri.fromFile(new java.io.File(v0_15.toString())), "*/*");
                                    } else {
                                        v1_29.setDataAndType(android.net.Uri.fromFile(new java.io.File(v0_15.toString())), "application/pdf");
                                    }
                                    v1_29.setFlags(67108864);
                                    this.c.startActivity(android.content.Intent.createChooser(v1_29, this.c.getResources().getString(com.ofss.fcdb.mobile.android.phone.i.b.Q(this.c))));
                                }
                            }
                        } else {
                            if (v1_2 == null) {
                                this.a("", "", v0_15.toString());
                            } else {
                                if (v1_2.length != 0) {
                                    if (v1_2.length != 1) {
                                        if (v1_2.length == 2) {
                                            try {
                                                this.a(this.b.split("~")[0], this.b.split("~")[1], v0_15.toString());
                                            } catch (String v0_4) {
                                                com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_4));
                                            }
                                        }
                                    } else {
                                        try {
                                            this.a(this.b.split("~")[0], "", v0_15.toString());
                                        } catch (String v1) {
                                            this.a("", this.b.split("~")[1], v0_15.toString());
                                        }
                                    }
                                } else {
                                    this.a("", "", v0_15.toString());
                                }
                            }
                        }
                    } else {
                        if (android.os.Build$VERSION.SDK_INT < 19) {
                            android.widget.Toast.makeText(this.c, this.c.getResources().getIdentifier("printError", "string", this.c.getPackageName()), 0).show();
                        } else {
                            new com.ofss.fcdb.mobile.android.phone.helpers.bj(v0_15.toString(), this.c).a();
                        }
                    }
                } else {
                    android.widget.Toast.makeText(this.c, this.c.getResources().getString(com.ofss.fcdb.mobile.android.phone.i.b.h()), 1).show();
                }
            }
        }
        return;
    }

Method com.ofss.fcdb.mobile.android.phone.handlers.o.c() calling method java.io.File.<init>()


    private String c()
    {
        String v1 = 0;
        try {
            String v0_4 = this.c.getPackageManager().getPackageInfo(this.c.getPackageName(), 0);
        } catch (String v0_3) {
            String v2_0 = java.io.FileWriter v4_12;
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_3));
            if (v2_0 == null) {
                return v1;
            } else {
                try {
                    v2_0.close();
                } catch (String v0) {
                }
                return v1;
            }
        }
        String v2_1 = android.os.Build.MODEL;
        if (!v2_1.startsWith(android.os.Build.MANUFACTURER)) {
            v2_1 = new StringBuilder(String.valueOf(android.os.Build.MANUFACTURER)).append(" ").append(v2_1).toString();
        }
        String v3_13 = new StringBuilder(String.valueOf(new StringBuilder().append(android.os.Environment.getExternalStorageDirectory()).append("/").toString())).append("FCDBErrorLogReport.log").toString();
        com.ofss.fcdb.mobile.android.b.d.a.a(new StringBuilder("fullName==>").append(v3_13).toString());
        try {
            v4_12 = new java.io.FileWriter(new java.io.File(v3_13));
        } catch (String v0_3) {
            v2_0 = 0;
        }
        String v0_8;
        v4_12.write(new StringBuilder("Android version: ").append(android.os.Build$VERSION.SDK_INT).append("\n").toString());
        v4_12.write(new StringBuilder("Device: ").append(v2_1).append("\n").toString());
        String v2_9 = new StringBuilder("App version: ");
        if (v0_4 != null) {
            v0_8 = Integer.valueOf(v0_4.versionCode);
        } else {
            v0_8 = "(null)";
        }
        v4_12.write(v2_9.append(v0_8).append("\n").toString());
        v4_12.write(this.a());
        v4_12.flush();
        v4_12.close();
        v1 = v3_13;
        return v1;
    }

Method com.ofss.fcdb.mobile.android.phone.application.AddAttachment.run() calling method java.io.File.<init>()


    public void run()
    {
        try {
            java.io.FileInputStream v8_1 = new java.io.FileInputStream(new java.io.File(this.r));
            this.u = v8_1.available();
            this.v = Math.min(this.u, this.w);
            byte[] v5 = new byte[this.v];
            this.t = v8_1.read(v5, 0, this.v);
            String v0_11 = new String(new com.ofss.fcdb.mobile.android.phone.helpers.r(this.n.y, com.ofss.fcdb.mobile.android.phone.helpers.a.c("PARAM.NAME.FILEFIELD", this), this.r, this.s, v5, this.q, this).b()).toString().trim();
            android.os.Message v1_8 = this.A.obtainMessage();
            v1_8.obj = v0_11;
            this.A.sendMessage(v1_8);
            v8_1.close();
        } catch (String v0_13) {
            com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v0_13));
        }
        return;
    }

Method com.ofss.fcdb.mobile.android.b.g.g.a() calling method java.io.File.<init>()


    public void a(java.io.InputStream p8)
    {
        this.m = new com.ofss.fcdb.mobile.android.b.g.e();
        this.n = new com.ofss.fcdb.mobile.android.b.b.a(this.o);
        java.io.IOException v1_2 = new byte[4096];
        try {
            java.util.zip.ZipInputStream v2_8 = new java.util.zip.ZipInputStream(new java.io.FileInputStream(new java.io.File(new StringBuilder().append(this.o.getDir("rmsdir", 2)).append("/").append("file").append(".zip").toString())));
        } catch (com.ofss.fcdb.mobile.android.b.f.a v0) {
            this.p.a(23);
            return;
        }
        while(true) {
            com.ofss.fcdb.mobile.android.b.f.a v0_66 = v2_8.getNextEntry();
            if (v0_66 == null) {
                break;
            }
            int v3_25 = new java.io.ByteArrayOutputStream();
            com.ofss.fcdb.mobile.android.b.f.a v0_68 = v0_66.getName();
            String v4_30 = v0_68.lastIndexOf(".");
            String v5_1 = v0_68.substring(0, v4_30);
            com.ofss.fcdb.mobile.android.b.f.a v0_70 = v0_68.substring((v4_30 + 1), v0_68.length());
            try {
                while(true) {
                    String v4_32 = v2_8.read(v1_2);
                    v3_25.write(v1_2, 0, v4_32);
                }
                if (v3_25 != 0) {
                    try {
                        v3_25.close();
                    } catch (String v4) {
                    }
                }
                if (v0_70.equalsIgnoreCase("mth")) {
                    v0_70 = "html";
                }
                if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("png"))) {
                    if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("css"))) {
                        if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("xml"))) {
                            if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("ttf"))) {
                                if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("txt"))) {
                                    if (!v0_70.equalsIgnoreCase(com.ofss.fcdb.mobile.android.b.c.h.a("html"))) {
                                        this.p.a(21);
                                    } else {
                                        if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                                        } else {
                                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                                            if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                                this.p.a(22);
                                            } else {
                                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                                this.n.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                                            }
                                        }
                                    }
                                } else {
                                    if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                                    } else {
                                        ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                                        if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                            this.p.a(20);
                                        } else {
                                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                            this.n.b(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                                        }
                                    }
                                }
                            } else {
                                if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                                    this.p.a(21);
                                } else {
                                    ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                                    if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                        ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                        this.p.a(20);
                                    } else {
                                        ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                        this.n.e(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                                    }
                                }
                            }
                        } else {
                            if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                                this.p.a(12);
                            } else {
                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                                if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                    ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                    this.p.a(15);
                                } else {
                                    ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                    this.n.d(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                                }
                            }
                        }
                    } else {
                        if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                            this.p.a(11);
                        } else {
                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                            if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                                this.p.a(14);
                            } else {
                                ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                                this.n.f(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                            }
                        }
                    }
                } else {
                    if (ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1) == null) {
                        this.p.a(10);
                    } else {
                        ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), this.m.a(v3_25.toByteArray()));
                        if (!ark>com.ofss.fcdb.mobile.android.b.g.gark>.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1))) {
                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "false");
                            this.p.a(13);
                        } else {
                            ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), "true");
                            this.n.a(ark>com.ofss.fcdb.mobile.android.b.g.gark>.c(v5_1), v3_25.toByteArray());
                        }
                    }
                }
            } catch (com.ofss.fcdb.mobile.android.b.f.a v0_71) {
                if (v3_25 != 0) {
                    try {
                        v3_25.close();
                    } catch (java.io.IOException v1) {
                    }
                }
                throw v0_71;
            }
            if (v4_32 != -1) {
            }
        }
        v2_8.closeEntry();
        v2_8.close();
        this.n.a();
        return;
    }

Method com.ofss.fcdb.mobile.android.b.c.f.d() calling method java.io.File.<init>()


    private static boolean d()
    {
        int v0 = 1;
        String[] v3 = new String[9];
        v3[0] = "/system/app/Superuser.apk";
        v3[1] = "/sbin/su";
        v3[2] = "/system/bin/su";
        v3[3] = "/system/xbin/su";
        v3[4] = "/data/local/xbin/su";
        v3[5] = "/data/local/bin/su";
        v3[6] = "/system/sd/xbin/su";
        v3[7] = "/system/bin/failsafe/su";
        v3[8] = "/data/local/su";
        int v2_7 = 0;
        while (v2_7 < v3.length) {
            if (!new java.io.File(v3[v2_7]).exists()) {
                v2_7++;
            }
            return v0;
        }
        v0 = 0;
        return v0;
    }

Method com.ofss.fcdb.mobile.android.b.c.a.a() calling method java.io.File.<init>()


    public Object a(String p16, android.content.Context p17, String p18)
    {
        java.net.HttpURLConnection v2_2;
        this.f = p17;
        if ((com.ofss.fcdb.mobile.android.b.c.f.a(com.ofss.fcdb.mobile.android.b.c.f.c)) || ((com.ofss.fcdb.mobile.android.b.c.f.a(p18)) || (!p18.equalsIgnoreCase("IVRMS")))) {
            v2_2 = com.ofss.fcdb.mobile.android.b.c.f.b;
        } else {
            v2_2 = com.ofss.fcdb.mobile.android.b.c.f.c;
        }
        this.e = new com.ofss.fcdb.mobile.android.b.f.a(p17);
        this.c = p18;
        org.json.JSONException v4_26 = 0;
        try {
            this.b = new com.ofss.fcdb.mobile.android.b.g.g(p17);
            String v5_6 = new java.net.URL(v2_2);
            try {
                java.net.HttpURLConnection v2_15;
                org.json.JSONObject v3_1;
                if (!"https".equals(v5_6.getProtocol())) {
                    v2_15 = ((java.net.HttpURLConnection) v5_6.openConnection());
                    ((java.net.HttpURLConnection) v2_15).setRequestMethod("POST");
                    v3_1 = "httpConnection";
                } else {
                    this.a = javax.net.ssl.SSLContext.getInstance("TLS");
                    java.net.HttpURLConnection v2_24 = this.a;
                    java.io.File v7_14 = new javax.net.ssl.TrustManager[1];
                    v7_14[0] = new com.ofss.fcdb.mobile.android.b.c.e(this, com.ofss.fcdb.mobile.android.b.c.f.d);
                    v2_24.init(0, v7_14, new java.security.SecureRandom());
                    javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(this.a.getSocketFactory());
                    v2_15 = ((javax.net.ssl.HttpsURLConnection) v5_6.openConnection());
                    ((javax.net.ssl.HttpsURLConnection) v2_15).setHostnameVerifier(new com.ofss.fcdb.mobile.android.b.c.d(this, 0));
                    ((javax.net.ssl.HttpsURLConnection) v2_15).setRequestMethod("POST");
                    v3_1 = 0;
                }
                try {
                    java.net.HttpURLConnection v2_5;
                    v2_15.setConnectTimeout(Integer.parseInt(com.ofss.fcdb.mobile.android.b.c.f.a("PARAM.VALUE.CONNECTION.TIMEOUT", p17)));
                    v2_15.setRequestProperty("Content-Language", "en-US");
                    v2_15.setUseCaches(0);
                    v2_15.setDoInput(1);
                    v2_15.setDoOutput(1);
                    v2_15.connect();
                } catch (org.json.JSONException v4_30) {
                    v4_26 = v3_1;
                    org.json.JSONObject v3_2 = v4_30;
                    com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_2));
                    if (this.d.equals("certexpired")) {
                        org.json.JSONObject v3_16 = "certificateexpired";
                    } else {
                        if (this.d.equals("notintruststore")) {
                        } else {
                            if (!this.d.equals("certnotvalid")) {
                                v3_16 = v4_26;
                            }
                        }
                    }
                    if (v2_15 != null) {
                        try {
                            if (!"https".equals(v5_6.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_15).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                            }
                        } catch (java.net.HttpURLConnection v2) {
                            v2_5 = v3_16;
                            return v2_5;
                        }
                    }
                    v2_5 = v3_16;
                    return v2_5;
                }
                if ((com.ofss.fcdb.mobile.android.b.c.f.a(p18)) || (!p18.equalsIgnoreCase("IVRMS"))) {
                    com.ofss.fcdb.mobile.android.b.d.a.a(new StringBuilder().append("urlparameters=====").append(p16).toString());
                    org.json.JSONException v4_16 = new java.io.DataOutputStream(v2_15.getOutputStream());
                    v4_16.writeBytes(p16);
                    v4_16.flush();
                    v4_16.close();
                    org.json.JSONException v4_18 = v2_15.getInputStream();
                    String v8_0 = v2_15.getContentType();
                    if ((v8_0 != null) && (v2_15.getContentType().contains("zip"))) {
                        String v6_13 = new StringBuilder().append(p17.getDir("rmsdir", 2)).append("/").append("file").append(".zip").toString();
                        new java.io.File(v6_13).createNewFile();
                        java.io.FileOutputStream v9_2 = new java.io.FileOutputStream(v6_13);
                        byte[] v10_0 = new byte[1024];
                        String v6_15 = 0;
                        while(true) {
                            int v11 = v4_18.read(v10_0);
                            if (v11 == -1) {
                                break;
                            }
                            v6_15 += ((long) v11);
                            v9_2.write(v10_0, 0, v11);
                        }
                        v9_2.flush();
                        v9_2.close();
                    }
                    String v6_17 = new java.io.BufferedReader(new java.io.InputStreamReader(v4_18, "UTF-8"), 8);
                    java.io.File v7_12 = new StringBuffer();
                    while(true) {
                        org.json.JSONException v4_20 = v6_17.readLine();
                        if (v4_20 == null) {
                            break;
                        }
                        v7_12.append(v4_20);
                        v7_12.append(13);
                    }
                    if (v8_0 != null) {
                        if (!v2_15.getContentType().contains("xml")) {
                            if (v2_15.getContentType().contains("plain")) {
                                try {
                                    v3_1 = new org.json.JSONObject(v7_12.toString().trim());
                                } catch (org.json.JSONException v4) {
                                }
                            }
                        } else {
                            v3_1 = v7_12.toString().trim();
                        }
                    }
                    if (v2_15 != null) {
                        try {
                            if (!"https".equals(v5_6.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_15).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                            }
                        } catch (java.net.HttpURLConnection v2) {
                            v2_5 = v3_1;
                            return v2_5;
                        }
                    }
                    v2_5 = v3_1;
                    return v2_5;
                } else {
                    if (v2_15 != null) {
                        try {
                            if (!"https".equals(v5_6.getProtocol())) {
                                ((java.net.HttpURLConnection) v2_15).disconnect();
                            } else {
                                ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                            }
                        } catch (java.net.HttpURLConnection v2) {
                        }
                    }
                    v2_5 = v3_1;
                    return v2_5;
                }
            } catch (java.net.HttpURLConnection v2_32) {
                v2_15 = 0;
                org.json.JSONObject v3_17 = v2_32;
                if (v2_15 != null) {
                    try {
                        if (!"https".equals(v5_6.getProtocol())) {
                            ((java.net.HttpURLConnection) v2_15).disconnect();
                        } else {
                            ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                        }
                    } catch (java.net.HttpURLConnection v2) {
                    }
                }
                throw v3_17;
            } catch (java.net.HttpURLConnection v2_30) {
                v2_15 = 0;
                v3_2 = v2_30;
            } catch (java.net.HttpURLConnection v2_29) {
                v2_15 = 0;
                org.json.JSONObject v3_5 = v2_29;
                com.ofss.fcdb.mobile.android.b.d.a.a(android.util.Log.getStackTraceString(v3_5));
                if (v2_15 != null) {
                    try {
                        if (!"https".equals(v5_6.getProtocol())) {
                            ((java.net.HttpURLConnection) v2_15).disconnect();
                        } else {
                            ((javax.net.ssl.HttpsURLConnection) v2_15).disconnect();
                        }
                    } catch (java.net.HttpURLConnection v2) {
                        v2_5 = "connectionfailed";
                        return v2_5;
                    }
                }
                v2_5 = "connectionfailed";
                return v2_5;
            } catch (org.json.JSONObject v3_2) {
            } catch (org.json.JSONObject v3_5) {
            }
        } catch (java.net.HttpURLConnection v2_18) {
            v5_6 = 0;
            v3_17 = v2_18;
            v2_15 = 0;
        } catch (java.net.HttpURLConnection v2_16) {
            v5_6 = 0;
            v3_2 = v2_16;
            v2_15 = 0;
        } catch (java.net.HttpURLConnection v2_10) {
            v5_6 = 0;
            v3_5 = v2_10;
            v2_15 = 0;
        } catch (org.json.JSONObject v3_17) {
        }
    }

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


    public android.webkit.WebResourceResponse shouldInterceptRequest(android.webkit.WebView p5, String p6)
    {
        try {
            android.webkit.WebResourceResponse v1_5;
            if ("mraid.js".equalsIgnoreCase(new java.io.File(p6).getName())) {
                if ((p5 instanceof com.google.android.gms.internal.cq)) {
                    ((com.google.android.gms.internal.cq) p5).e().b();
                    if (!((com.google.android.gms.internal.cq) p5).d().e) {
                        if (!((com.google.android.gms.internal.cq) p5).h()) {
                            com.google.android.gms.internal.bo.d("shouldInterceptRequest(http://media.admob.com/mraid/v1/mraid_app_banner.js)");
                            v1_5 = com.google.android.gms.internal.cd.a(((com.google.android.gms.internal.cq) p5).getContext(), this.a.g().b, "http://media.admob.com/mraid/v1/mraid_app_banner.js");
                        } else {
                            com.google.android.gms.internal.bo.d("shouldInterceptRequest(http://media.admob.com/mraid/v1/mraid_app_expanded_banner.js)");
                            v1_5 = com.google.android.gms.internal.cd.a(((com.google.android.gms.internal.cq) p5).getContext(), this.a.g().b, "http://media.admob.com/mraid/v1/mraid_app_expanded_banner.js");
                        }
                    } else {
                        com.google.android.gms.internal.bo.d("shouldInterceptRequest(http://media.admob.com/mraid/v1/mraid_app_interstitial.js)");
                        v1_5 = com.google.android.gms.internal.cd.a(((com.google.android.gms.internal.cq) p5).getContext(), this.a.g().b, "http://media.admob.com/mraid/v1/mraid_app_interstitial.js");
                    }
                } else {
                    com.google.android.gms.internal.bo.e("Tried to intercept request from a WebView that wasn\'t an AdWebView.");
                    v1_5 = super.shouldInterceptRequest(p5, p6);
                }
            } else {
                v1_5 = super.shouldInterceptRequest(p5, p6);
            }
        } catch (android.webkit.WebResourceResponse v1_10) {
            com.google.android.gms.internal.bo.e(new StringBuilder().append("Could not fetching MRAID JS. ").append(v1_10.getMessage()).toString());
            v1_5 = super.shouldInterceptRequest(p5, p6);
        }
        return v1_5;
    }

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


    public static void a(android.content.Context p4, android.webkit.WebSettings p5)
    {
        p5.setAppCachePath(new java.io.File(p4.getCacheDir(), "com.google.android.gms.ads.appcache").getAbsolutePath());
        p5.setAppCacheMaxSize(0);
        p5.setAppCacheEnabled(1);
        p5.setDatabasePath(p4.getDatabasePath("com.google.android.gms.ads.db").getAbsolutePath());
        p5.setDatabaseEnabled(1);
        p5.setDomStorageEnabled(1);
        p5.setDisplayZoomControls(0);
        p5.setBuiltInZoomControls(1);
        p5.setSupportZoom(1);
        return;
    }

Method com.facebook.ba.a() calling method java.io.File.<init>()


    java.io.File a(java.util.UUID p4, boolean p5)
    {
        java.io.File v0_1;
        if (ark>com.facebook.baark>.b != null) {
            v0_1 = new java.io.File(ark>com.facebook.baark>.b, p4.toString());
            if ((p5) && (!v0_1.exists())) {
                v0_1.mkdirs();
            }
        } else {
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.facebook.ba.a() calling method java.io.File.<init>()


    java.io.File a(java.util.UUID p5, String p6, boolean p7)
    {
        java.io.File v0 = 0;
        java.io.File v2 = this.a(p5, p7);
        if (v2 != null) {
            try {
                v0 = new java.io.File(v2, java.net.URLEncoder.encode(p6, "UTF-8"));
            } catch (java.io.UnsupportedEncodingException v1) {
            }
        }
        return v0;
    }

Method com.facebook.b.g.b() calling method java.io.File.<init>()


    static java.io.File b(java.io.File p4)
    {
        return new java.io.File(p4, new StringBuilder("buffer").append(Long.valueOf(com.facebook.b.c.b().incrementAndGet()).toString()).toString());
    }

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


    public java.io.InputStream a(String p9, String p10)
    {
        java.io.IOException v0_0 = 0;
        java.io.File v2_1 = new java.io.File(this.e, com.facebook.b.aq.b(p9));
        try {
            java.io.IOException v1_0 = new java.io.BufferedInputStream(new java.io.FileInputStream(v2_1), 8192);
            try {
                String v3_0 = com.facebook.b.o.a(v1_0);
            } catch (java.io.IOException v0_4) {
                v1_0.close();
                throw v0_4;
            }
            if (v3_0 != null) {
                long v4_1 = v3_0.optString("key");
                if ((v4_1 != 0) && (v4_1.equals(p9))) {
                    String v3_1 = v3_0.optString("tag", 0);
                    if (((p10 != null) || (v3_1 == null)) && ((p10 == null) || (p10.equals(v3_1)))) {
                        long v4_4 = new java.util.Date().getTime();
                        com.facebook.b.ab.a(com.facebook.ax.d, ark>com.facebook.b.cark>.a, new StringBuilder("Setting lastModified to ").append(Long.valueOf(v4_4)).append(" for ").append(v2_1.getName()).toString());
                        v2_1.setLastModified(v4_4);
                        v0_0 = v1_0;
                        return v0_0;
                    } else {
                        v1_0.close();
                        return v0_0;
                    }
                } else {
                    v1_0.close();
                    return v0_0;
                }
            } else {
                v1_0.close();
                return v0_0;
            }
        } catch (java.io.IOException v1) {
            return v0_0;
        }
    }

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


    private void a(String p4, java.io.File p5)
    {
        if (!p5.renameTo(new java.io.File(this.e, com.facebook.b.aq.b(p4)))) {
            p5.delete();
        }
        this.c();
        return;
    }

Method com.facebook.b.c.<init>() calling method java.io.File.<init>()


    public c(android.content.Context p5, String p6, com.facebook.b.l p7)
    {
        this.i = new java.util.concurrent.atomic.AtomicLong(0);
        this.c = p6;
        this.d = p7;
        this.e = new java.io.File(p5.getCacheDir(), p6);
        this.h = new Object();
        if ((this.e.mkdirs()) || (this.e.isDirectory())) {
            com.facebook.b.g.a(this.e);
        }
        return;
    }

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


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

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


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

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


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

Method com.facebook.p.b() calling method android.content.Context.openFileOutput()


    private void b()
    {
        try {
            int v1_1 = new java.io.ObjectOutputStream(new java.io.BufferedOutputStream(this.b.openFileOutput("AppEventsLogger.persistedevents", 0)));
            try {
                v1_1.writeObject(this.c);
                com.facebook.b.aq.a(v1_1);
            } catch (Exception v0_0) {
                android.util.Log.d(com.facebook.c.c(), new StringBuilder("Got unexpected exception: ").append(v0_0.toString()).toString());
                com.facebook.b.aq.a(v1_1);
            }
            return;
        } catch (Exception v0_1) {
            v1_1 = 0;
            com.facebook.b.aq.a(v1_1);
            throw v0_1;
        } catch (Exception v0_0) {
            v1_1 = 0;
        } catch (Exception v0_1) {
        }
    }