Idle Tower v2.48版本的 MD5 值为:56f20496f6a85726b376356ed2ecee23

以下内容为反编译后的 j4.java 源代码,内容仅作参考


package com.my.target;

import android.content.Context;
import android.os.Build;
import android.util.Base64;
import com.google.android.exoplayer2.source.rtsp.SessionDescription;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.unity3d.services.core.di.ServiceProvider;
import java.nio.charset.Charset;
import org.json.JSONObject;

public class j4 {
    public static boolean h = true;
    public static String i = "https://ad.mail.ru/sdk/log/";

    public final String f7008a;
    public final String b;
    public String c;
    public int d;
    public String e;
    public String f;
    public String g;

    public j4(String str, String str2) {
        this.f7008a = str;
        this.b = str2;
    }

    public static j4 a(String str) {
        return new j4(str, CampaignEx.JSON_NATIVE_VIDEO_ERROR);
    }

    public void a(Context context) {
        String a2 = a();
        j9.a("send message to log:\n " + a2);
        if (h) {
            s1.d().a(i, Base64.encodeToString(a2.getBytes(Charset.forName("UTF-8")), 0), context);
        }
    }

    public j4 a(int i2) {
        this.d = i2;
        return this;
    }

    public String a() {
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put(ServiceProvider.NAMED_SDK, "myTarget");
            jSONObject.put("sdkver", "5.17.0");
            jSONObject.put("os", "Android");
            jSONObject.put("osver", Build.VERSION.RELEASE);
            jSONObject.put(SessionDescription.ATTR_TYPE, this.b);
            jSONObject.put("name", this.f7008a);
            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 j4 b(String str) {
        this.e = str;
        return this;
    }

    public void b(final Context context) {
        z.b(new Runnable() {
            @Override
            public final void run() {
                j4.this.a(context);
            }
        });
    }

    public j4 c(String str) {
        this.f = str;
        return this;
    }

    public j4 d(String str) {
        this.g = str;
        return this;
    }

    public j4 e(String str) {
        this.c = str;
        return this;
    }
}