VegeFruits v7.1版本的 MD5 值为:2ff167dfba698c783e879938fe00b9ce
以下内容为反编译后的 x.java 源代码,内容仅作参考
package com.adcolony.sdk;
import android.util.Log;
import com.applovin.sdk.AppLovinEventTypes;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
public class x {
static final int b = 4000;
static final int c = 4;
static final int d = 3;
static final int e = 2;
static final int f = 1;
static final int g = 0;
static ag j;
static boolean a = false;
static int h = 3;
static int i = 1;
public static void a(int i2, String str, boolean z) {
a(str, i2);
if ((!z || a) && h != 4) {
for (int i3 = 0; i3 <= str.length() / b; i3++) {
int i4 = i3 * b;
int i5 = (i3 + 1) * b;
if (i5 > str.length()) {
i5 = str.length();
}
if (i2 == 3 && h >= 3) {
Log.d("AdColony [TRACE]", str.substring(i4, i5));
} else if (i2 == 2 && h >= 2) {
Log.i("AdColony [INFO]", str.substring(i4, i5));
} else if (i2 == 1 && h >= 1) {
Log.w("AdColony [WARNING]", str.substring(i4, i5));
} else if (i2 == 0 && h >= 0) {
Log.e("AdColony [ERROR]", str.substring(i4, i5));
}
}
}
}
public static void a(HashMap<String, Object> hashMap) {
try {
j = new ag(new u(new URL("https://wd.adcolony.com/logs")), new s("adcolony_android", "3.1.2", "Development"), Executors.newSingleThreadScheduledExecutor(), new ArrayList(), hashMap);
j.a(5L, TimeUnit.SECONDS);
} catch (MalformedURLException e2) {
e2.printStackTrace();
}
}
static void a(String str, int i2) {
if (j != null && i != 4) {
if (i2 == 3 && i >= 3) {
j.c(str);
return;
}
if (i2 == 2 && i >= 2) {
j.d(str);
return;
}
if (i2 == 1 && i >= 1) {
j.e(str);
} else if (i2 == 0 && i >= 0) {
j.f(str);
}
}
}
public static void a() {
a.a("Log.set_log_level", new ac() {
@Override
public void a(aa aaVar) {
x.h = t.c(aaVar.c(), AppLovinEventTypes.USER_COMPLETED_LEVEL);
}
});
a.a("Log.public.trace", new ac() {
@Override
public void a(aa aaVar) {
x.a(3, t.b(aaVar.c(), "message"), false);
}
});
a.a("Log.private.trace", new ac() {
@Override
public void a(aa aaVar) {
x.a(3, t.b(aaVar.c(), "message"), true);
}
});
a.a("Log.public.info", new ac() {
@Override
public void a(aa aaVar) {
x.a(2, t.b(aaVar.c(), "message"), false);
}
});
a.a("Log.private.info", new ac() {
@Override
public void a(aa aaVar) {
x.a(2, t.b(aaVar.c(), "message"), true);
}
});
a.a("Log.public.warning", new ac() {
@Override
public void a(aa aaVar) {
x.a(1, t.b(aaVar.c(), "message"), false);
}
});
a.a("Log.private.warning", new ac() {
@Override
public void a(aa aaVar) {
x.a(1, t.b(aaVar.c(), "message"), true);
}
});
a.a("Log.public.error", new ac() {
@Override
public void a(aa aaVar) {
x.a(0, t.b(aaVar.c(), "message"), false);
}
});
a.a("Log.private.error", new ac() {
@Override
public void a(aa aaVar) {
x.a(0, t.b(aaVar.c(), "message"), true);
}
});
}
}