Kate Mobile v109.1版本的 MD5 值为:fcd76ded5f363ecbfac46035a4ed2a23
以下内容为反编译后的 g4.java 源代码,内容仅作参考
package com.my.target;
import android.content.Context;
import android.os.Build;
import android.util.Base64;
import java.nio.charset.Charset;
import org.json.JSONObject;
public class g4 {
public static boolean h = true;
public static String i = "https://ad.mail.ru/sdk/log/";
public final String a;
public final String b;
public String c;
public int d;
public String e;
public String f;
public String g;
public g4(String str, String str2) {
this.a = str;
this.b = str2;
}
public static g4 a(String str) {
return new g4(str, "error");
}
public void a(Context context) {
String a = a();
x8.a("send message to log:\n " + a);
if (h) {
q1.d().a(i, Base64.encodeToString(a.getBytes(Charset.forName("UTF-8")), 0), context);
}
}
public g4 a(int i2) {
this.d = i2;
return this;
}
public String a() {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("sdk", "myTarget");
jSONObject.put("sdkver", "5.15.5");
jSONObject.put("os", "Android");
jSONObject.put("osver", Build.VERSION.RELEASE);
jSONObject.put("type", this.b);
jSONObject.put("name", this.a);
String str = this.c;
if (str != null) {
jSONObject.put("message", str);
}
int i2 = this.d;
if (i2 > 0) {
jSONObject.put("slot", i2);
}
String str2 = this.e;
if (str2 != null) {
jSONObject.put("url", str2);
}
String str3 = this.f;
if (str3 != null) {
jSONObject.put("bannerId", str3);
}
String str4 = this.g;
if (str4 != null) {
jSONObject.put("data", str4);
}
} catch (Throwable unused) {
}
return jSONObject.toString();
}
public g4 b(String str) {
this.e = str;
return this;
}
public void b(final Context context) {
y.b(new Runnable() {
@Override
public final void run() {
g4.this.a(context);
}
});
}
public g4 c(String str) {
this.f = str;
return this;
}
public g4 d(String str) {
this.c = str;
return this;
}
}