Heroes III HD v1.1.6版本的 MD5 值为:99ed52e2d6b85487933b8dc8c0440b36
以下内容为反编译后的 FlurryAgent.java 源代码,内容仅作参考
package com.flurry.android;
import android.content.Context;
import android.location.Criteria;
import android.os.Build;
import com.flurry.sdk.cu;
import com.flurry.sdk.di;
import com.flurry.sdk.dk;
import com.flurry.sdk.dm;
import com.flurry.sdk.dw;
import com.flurry.sdk.el;
import com.flurry.sdk.fb;
import java.util.Date;
import java.util.Map;
import obfuse.NPStringFog;
public final class FlurryAgent {
private static final String a = FlurryAgent.class.getSimpleName();
private FlurryAgent() {
}
public static void setVersionName(String str) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064713171C03040E002F0608174E000C121D0403450601501E041A37021701071F032F0F0C0245050F034D0F1B0D0B4B"));
} else {
dm.a().a(NPStringFog.decode("38151F12070E092B130315"), (Object) str);
}
}
public static int getAgentVersion() {
return dk.a().b();
}
public static String getReleaseVersion() {
return dk.a().g();
}
public static void setReportLocation(boolean z) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
dm.a().a(NPStringFog.decode("3C151D0E1C152B0A110F04040E00"), (Object) Boolean.valueOf(z));
}
}
public static void setLocation(float f, float f2) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
dw.a().a(f, f2);
}
}
public static void clearLocation() {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
dw.a().e();
}
}
public static void setLogEnabled(boolean z) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (z) {
el.b();
} else {
el.a();
}
}
public static void setLogLevel(int i) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
el.a(i);
}
}
public static void setContinueSessionMillis(long j) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (j < com.google.android.vending.expansion.downloader.Constants.ACTIVE_THREAD_WATCHDOG) {
el.b(a, NPStringFog.decode("271E1B000208034506071D08411D0413451401024D120B12140C1D00501F041D140A1506071F035B4E") + j);
} else {
dm.a().a(NPStringFog.decode("2D1F0315070F1200210B031E08010F2A0C1E02191E"), (Object) Long.valueOf(j));
}
}
public static void setLogEvents(boolean z) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
dm.a().a(NPStringFog.decode("221F0A241804091101"), (Object) Boolean.valueOf(z));
}
}
public static void setUseHttps(boolean z) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
dm.a().a(NPStringFog.decode("3B0308291A151716"), (Object) Boolean.valueOf(z));
}
}
public static boolean getUseHttps() {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
return false;
}
return ((Boolean) dm.a().a(NPStringFog.decode("3B0308291A151716"))).booleanValue();
}
public static void setCaptureUncaughtExceptions(boolean z) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
dm.a().a(NPStringFog.decode("2D111D151B1302301C0D1118060615221D110B001908010F14"), (Object) Boolean.valueOf(z));
}
}
public static void addOrigin(String str, String str2) {
addOrigin(str, str2, null);
}
public static void addOrigin(String str, String str2, Map<String, String> map) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null || str.length() == 0) {
throw new IllegalArgumentException(NPStringFog.decode("01020406070F29041F0B50030E1A411415170D190B080B05"));
} else {
if (str2 == null || str2.length() == 0) {
throw new IllegalArgumentException(NPStringFog.decode("01020406070F3100001D19020F4E0F0811521D00080207070E0016"));
}
try {
cu.a().a(str, str2, map);
} catch (Throwable th) {
el.a(a, NPStringFog.decode(""), th);
}
}
}
public static void onStartSession(Context context, String str) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (context == null) {
throw new NullPointerException(NPStringFog.decode("2005010D4E02080B060B0819"));
} else {
if (str == null || str.length() == 0) {
throw new IllegalArgumentException(NPStringFog.decode("2F00044105041E451C01044D121E04040C14071509"));
}
try {
di.a().a(context, str);
} catch (Throwable th) {
el.a(a, NPStringFog.decode(""), th);
}
}
}
public static void onEndSession(Context context) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (context == null) {
throw new NullPointerException(NPStringFog.decode("2005010D4E02080B060B0819"));
} else {
try {
di.a().a(context);
} catch (Throwable th) {
el.a(a, NPStringFog.decode(""), th);
}
}
}
public static void logEvent(String str) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E47091D09351B0400154712131D500314020D49"));
} else {
try {
cu.a().a(str);
} catch (Throwable th) {
el.a(a, NPStringFog.decode("2811040D0B0547111D4E1C02064E0411001C1A4A4D") + str, th);
}
}
}
public static void logEvent(String str, Map<String, String> map) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E47091D09351B0400154712131D500314020D49"));
} else if (map == null) {
el.b(a, NPStringFog.decode("3D041F0800064715131C1100041A041516521E111E120B0547111D4E1C02062B17020B064E070C124E0F12091E40"));
} else {
try {
cu.a().a(str, map);
} catch (Throwable th) {
el.a(a, NPStringFog.decode("2811040D0B0547111D4E1C02064E0411001C1A4A4D") + str, th);
}
}
}
public static void logEvent(String str, boolean z) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E47091D09351B0400154712131D500314020D49"));
} else {
try {
cu.a().a(str, z);
} catch (Throwable th) {
el.a(a, NPStringFog.decode("2811040D0B0547111D4E1C02064E0411001C1A4A4D") + str, th);
}
}
}
public static void logEvent(String str, Map<String, String> map, boolean z) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E47091D09351B0400154712131D500314020D49"));
} else if (map == null) {
el.b(a, NPStringFog.decode("3D041F0800064715131C1100041A041516521E111E120B0547111D4E1C02062B17020B064E070C124E0F12091E40"));
} else {
try {
cu.a().a(str, map, z);
} catch (Throwable th) {
el.a(a, NPStringFog.decode("2811040D0B0547111D4E1C02064E0411001C1A4A4D") + str, th);
}
}
}
public static void endTimedEvent(String str) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E47001C0A24040C0B0522131700044D160F12470B07021C43"));
} else {
try {
cu.a().b(str);
} catch (Throwable th) {
el.a(a, NPStringFog.decode("2811040D0B0547111D4E0304060008011C521A1808410B0F03451D085008170B0F135F52") + str, th);
}
}
}
public static void endTimedEvent(String str, Map<String, String> map) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E47001C0A24040C0B0522131700044D160F12470B07021C43"));
} else if (map == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E47001C0A24040C0B0522131700044D160F12470B07021C43"));
} else {
try {
cu.a().b(str, map);
} catch (Throwable th) {
el.a(a, NPStringFog.decode("2811040D0B0547111D4E0304060008011C521A1808410B0F03451D085008170B0F135F52") + str, th);
}
}
}
@Deprecated
public static void onError(String str, String str2, String str3) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700001C1F1F280A411704011D1509411A0E470A1C2B021F0E1C411004014E1E180D024F"));
} else if (str2 == null) {
el.b(a, NPStringFog.decode("3D041F0800064708171D030C060B411704011D1509411A0E470A1C2B021F0E1C411004014E1E180D024F"));
} else if (str3 == null) {
el.b(a, NPStringFog.decode("3D041F0800064700001C1F1F2202001416521E111E120B0547111D4E1F03241C1308175219111E4100140B095C"));
} else {
try {
cu.a().a(str, str2, str3);
} catch (Throwable th) {
el.a(a, NPStringFog.decode(""), th);
}
}
}
public static void onError(String str, String str2, Throwable th) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700001C1F1F280A411704011D1509411A0E470A1C2B021F0E1C411004014E1E180D024F"));
} else if (str2 == null) {
el.b(a, NPStringFog.decode("3D041F0800064708171D030C060B411704011D1509411A0E470A1C2B021F0E1C411004014E1E180D024F"));
} else if (th == null) {
el.b(a, NPStringFog.decode("3A181F0E19000509174E000C121D040345060150020F2B13150A004E070C124E0F12091E40"));
} else {
try {
cu.a().a(str, str2, th);
} catch (Throwable th2) {
el.a(a, NPStringFog.decode(""), th2);
}
}
}
@Deprecated
public static void onEvent(String str) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E470A1C2B06080F1A411004014E1E180D024F"));
} else {
try {
cu.a().c(str);
} catch (Throwable th) {
el.a(a, NPStringFog.decode(""), th);
}
}
}
@Deprecated
public static void onEvent(String str, Map<String, String> map) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064700040B1E19280A411704011D1509411A0E470A1C2B06080F1A411004014E1E180D024F"));
} else if (map == null) {
el.b(a, NPStringFog.decode("3E111F0003041300001D5020001E411704011D1509411A0E470A1C2B06080F1A411004014E1E180D024F"));
} else {
try {
cu.a().c(str, map);
} catch (Throwable th) {
el.a(a, NPStringFog.decode(""), th);
}
}
}
public static void onPageView() {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
return;
}
try {
cu.a().c();
} catch (Throwable th) {
el.a(a, NPStringFog.decode(""), th);
}
}
public static void setReportUrl(String str) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
dm.a().a(NPStringFog.decode("3C151D0E1C1532171E"), (Object) str);
}
}
public static void setLocationCriteria(Criteria criteria) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else {
dm.a().a(NPStringFog.decode("221F0E001A08080B311C1919041C0806"), (Object) criteria);
}
}
public static void setAge(int i) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (i > 0 && i < 110) {
dm.a().a(NPStringFog.decode("2F1708"), (Object) Long.valueOf(new Date(new Date(System.currentTimeMillis() - (i * 31449600000L)).getYear(), 1, 1).getTime()));
}
}
public static void setGender(byte b) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
return;
}
switch (b) {
case 0:
case 1:
dm.a().a(NPStringFog.decode("291503050B13"), (Object) Byte.valueOf(b));
return;
default:
dm.a().a(NPStringFog.decode("291503050B13"), (Object) (byte) -1);
return;
}
}
public static void setUserId(String str) {
if (Build.VERSION.SDK_INT < 10) {
el.b(a, NPStringFog.decode("2A151B080D0447363625503B041C120E0A1C4E1F01050B1347111A0F1E4D505E"));
} else if (str == null) {
el.b(a, NPStringFog.decode("3D041F0800064710010B0224054E110616010B144D1501411400063B03081327054712131D500314020D49"));
} else {
dm.a().a(NPStringFog.decode("3B0308132705"), (Object) fb.a(str));
}
}
}