正在查看: OLX India v19.42.007 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.amazon.aps.shared;
import android.content.Context;
import android.util.Log;
import com.amazon.aps.ads.d;
import com.amazon.aps.shared.analytics.c;
import com.amazon.aps.shared.util.APSNetworkManager;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
public abstract class a {
private static String a = "1.0";
private static Context b = null;
private static String c = null;
private static boolean d = false;
private static String e;
private static String f;
private static Map g;
private static String h;
public static final int i = 0;
public static String a() {
return c;
}
public static String b() {
return h;
}
public static String c() {
return e;
}
public static String d(String str, String str2) {
return (str == null || str.trim().isEmpty()) ? str2 : str;
}
public static String e() {
return f;
}
public static String f() {
return a;
}
public static void g(Context context) {
h(context, 1, "e9026ffd475a1a3691e6b2ce637a9b92aab1073ebf53a67c5f2583be8a804ecb");
}
public static void h(Context context, int i2, String str) {
b = context;
n(str);
p(i2);
o("https://prod.cm.publishers.adversising.a2z.com/logrecord/putlog");
h = "";
c = null;
g = new HashMap();
}
public static boolean i() {
return b != null && d;
}
public static void j(com.amazon.aps.shared.analytics.b bVar, c cVar, String str) {
k(bVar, cVar, str, null);
}
public static void k(com.amazon.aps.shared.analytics.b bVar, c cVar, String str, Exception exc) {
try {
d.d("APSAnalytics", str + exc);
if (i()) {
m(new com.amazon.aps.shared.analytics.a(b, bVar, cVar.name()).f(exc).c(str).a());
} else {
Log.d("APSAnalytics", "Analytics not initialized, and ignoring the event");
}
} catch (RuntimeException e2) {
Log.e("APSAnalytics", "Error in processing the event: ", e2);
}
}
private static void l(com.amazon.aps.shared.analytics.a aVar) {
APSNetworkManager.g(b).m(aVar);
}
private static void m(com.amazon.aps.shared.analytics.a aVar) {
if (aVar.b() == com.amazon.aps.shared.analytics.b.FATAL) {
l(aVar);
}
}
public static void n(String str) {
e = d(str, "e9026ffd475a1a3691e6b2ce637a9b92aab1073ebf53a67c5f2583be8a804ecb");
}
public static void o(String str) {
f = d(str, "https://prod.cm.publishers.adversising.a2z.com/logrecord/putlog");
}
public static void p(int i2) {
boolean z = true;
if (i2 < 0 || i2 > 100) {
Log.e("APSAnalytics", "Invalid sampling rate - setting the default one");
i2 = 1;
}
try {
if (new Random().nextInt(100) + 1 > i2) {
z = false;
}
d = z;
} catch (RuntimeException e2) {
Log.e("APSAnalytics", "Unable to set the sampling rate", e2);
}
}
public static void q(String str) {
if (str == null || str.trim().isEmpty()) {
return;
}
a = str.trim();
}
}