Heroes III HD v1.1.6版本的 MD5 值为:99ed52e2d6b85487933b8dc8c0440b36
以下内容为反编译后的 dc.java 源代码,内容仅作参考
package com.flurry.sdk;
import android.os.Looper;
import java.io.Closeable;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.UUID;
import obfuse.NPStringFog;
public class dc {
private static final String d = dc.class.getSimpleName();
String a;
long b = -1;
int c = -1;
private File e;
public dc() {
this.a = null;
this.e = null;
this.a = UUID.randomUUID().toString();
this.e = dl.a().b().getFileStreamPath(NPStringFog.decode("401601141C131E01131A111E040005021710021F0E0A40") + this.a);
}
public dc(String str) {
this.a = null;
this.e = null;
this.a = str;
this.e = dl.a().b().getFileStreamPath(NPStringFog.decode("401601141C131E01131A111E040005021710021F0E0A40") + this.a);
}
public String a() {
return this.a;
}
public boolean a(byte[] bArr) {
DataOutputStream dataOutputStream;
boolean z = false;
if (Looper.myLooper() == Looper.getMainLooper()) {
el.a(6, d, NPStringFog.decode("1D1519250F15064D101704083A3348471707001E040F0941080B521A18084123202E2B521A181F040F0546"));
}
el.a(4, d, NPStringFog.decode("39020415070F00453402051F1317250611133D1503050B1325091D0D1B240F080E5D45") + this.e.getAbsolutePath());
try {
if (fa.a(this.e)) {
dataOutputStream = new DataOutputStream(new FileOutputStream(this.e));
try {
int length = bArr.length;
dataOutputStream.writeShort(length);
dataOutputStream.write(bArr);
dataOutputStream.writeShort(0);
z = true;
this.c = length;
this.b = System.currentTimeMillis();
} catch (Throwable th) {
th = th;
try {
el.a(6, d, NPStringFog.decode(""), th);
return z;
} finally {
fb.a(dataOutputStream);
}
}
} else {
fb.a((Closeable) null);
}
} catch (Throwable th2) {
th = th2;
dataOutputStream = null;
}
return z;
}
public byte[] b() {
DataInputStream dataInputStream;
byte[] bArr = null;
if (Looper.myLooper() == Looper.getMainLooper()) {
el.a(6, d, NPStringFog.decode("091519250F15064D5B4E02180F0008090252011E4D150604472833273E4D1506130204164F"));
}
if (this.e.exists()) {
el.a(4, d, NPStringFog.decode("3C150C05070F00453402051F1317250611133D1503050B1325091D0D1B240F080E5D45") + this.e.getAbsolutePath());
try {
dataInputStream = new DataInputStream(new FileInputStream(this.e));
try {
int readUnsignedShort = dataInputStream.readUnsignedShort();
if (readUnsignedShort != 0) {
bArr = new byte[readUnsignedShort];
dataInputStream.readFully(bArr);
if (dataInputStream.readUnsignedShort() == 0) {
}
}
} catch (Throwable th) {
th = th;
try {
el.a(6, d, NPStringFog.decode("2B021F0E1C41100D170050010E0F050E0B154E0008131D0814111700044D07070D02"), th);
return bArr;
} finally {
fb.a(dataInputStream);
}
}
} catch (Throwable th2) {
th = th2;
dataInputStream = null;
}
} else {
el.a(4, d, NPStringFog.decode("2F17080F1A4104041106154D07070D02451601151E0F491547000A0703194F"));
}
return bArr;
}
public boolean c() {
if (this.e.exists()) {
if (this.e.delete()) {
el.a(4, d, NPStringFog.decode("2A1501041A040345020B021E081D15020B110B500B080204"));
this.b = -1L;
this.c = -1;
return true;
}
el.a(6, d, NPStringFog.decode("2D11030F0115470117021519044E11021701070319040002024514071C08"));
}
return false;
}
}