Spermatid v6.1.8版本的 MD5 值为:a375ce51a42d528ba6e2583c10478296
以下内容为反编译后的 c.java 源代码,内容仅作参考
package gc;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import androidx.exifinterface.media.ExifInterface;
import com.baidu.mobads.sdk.internal.bk;
import com.bytedance.sdk.openadsdk.downloadnew.core.TTDownloadField;
import com.czhj.sdk.common.network.JsonRequest;
import com.inno.innosdk.pb.InnoMain;
import com.mbridge.msdk.mbbid.out.BidResponsed;
import com.sjm.sjmsdk.core.DeviceId.SjmDeviceId;
import com.sjm.sjmsdk.core.config.SjmSdkConfig;
import gd.b;
import java.lang.ref.WeakReference;
import java.net.URLEncoder;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import xb.l;
public class c extends gd.b {
public WeakReference<Context> f32744d;
public static class a implements Comparator<Map.Entry<String, String>> {
@Override
public int compare(Map.Entry<String, String> entry, Map.Entry<String, String> entry2) {
return entry.getKey().toString().compareTo(entry2.getKey());
}
}
static {
"0123456789ABCDEF".toCharArray();
}
public c(Context context, b.a aVar) {
super(aVar, "http://api.hzsanjiaomao.com/api/adEventLog");
this.f32744d = new WeakReference<>(context);
}
public static String f(String str) {
try {
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
messageDigest.update(str.getBytes("UTF-8"));
StringBuffer stringBuffer = new StringBuffer();
for (byte b10 : messageDigest.digest()) {
stringBuffer.append(String.format("%02x", Integer.valueOf(b10 & ExifInterface.MARKER)));
}
return stringBuffer.toString();
} catch (Exception e10) {
e10.printStackTrace();
return null;
}
}
@SuppressLint({"NewApi"})
public static String g(Map<String, String> map, boolean z10, boolean z11) {
try {
ArrayList<Map.Entry> arrayList = new ArrayList(map.entrySet());
Collections.sort(arrayList, new a());
StringBuilder sb2 = new StringBuilder();
for (Map.Entry entry : arrayList) {
if (!TextUtils.isEmpty((CharSequence) entry.getKey()) && !TextUtils.isEmpty((CharSequence) entry.getValue())) {
String str = (String) entry.getKey();
String str2 = (String) entry.getValue();
if (z10) {
str2 = TextUtils.isEmpty(str2) ? "" : URLEncoder.encode(str2, JsonRequest.PROTOCOL_CHARSET);
}
if (z11) {
sb2.append(str.toLowerCase() + "=" + str2);
} else {
sb2.append(str + "=" + str2);
}
sb2.append("&");
}
}
String sb3 = sb2.toString();
return !sb3.isEmpty() ? sb3.substring(0, sb3.length() - 1) : sb3;
} catch (Exception e10) {
Log.d("test", "sign.formatmap.e=" + e10.toString());
return null;
}
}
public Context e() {
WeakReference<Context> weakReference = this.f32744d;
if (weakReference != null) {
return weakReference.get();
}
return null;
}
public final void h(b bVar) {
HashMap hashMap = new HashMap();
hashMap.put("sjmadId", bVar.f32729b);
hashMap.put("adType", bVar.f32730c);
hashMap.put("sjmPm", bVar.f32731d);
hashMap.put("sjmPmId", bVar.f32732e);
hashMap.put("sjmAppid", SjmSdkConfig.instance().sjm_appId);
hashMap.put("adEvent", bVar.f32738k.f32741a);
hashMap.put("message", bVar.f32738k.f32742b);
hashMap.put("tradeId", bVar.f32738k.f32743c + "");
hashMap.put("timeStamp", bVar.f32738k.f32743c + "");
hashMap.put("sjmSdkver", "2.4.01");
if (!TextUtils.isEmpty(bVar.f32739l)) {
hashMap.put("userId", bVar.f32739l);
}
try {
hashMap.put(InnoMain.INNO_KEY_OAID, SjmDeviceId.getDeviceId(e()));
hashMap.put("uuid", SjmDeviceId.getDeviceUUID(e()));
hashMap.put(bk.f4479j, Build.BRAND);
hashMap.put(bk.f4478i, Build.MODEL);
hashMap.put("systemVer", Build.VERSION.RELEASE);
hashMap.put(TTDownloadField.TT_VERSION_NAME, md.c.e(e()));
hashMap.put(TTDownloadField.TT_VERSION_CODE, md.c.a(e()));
hashMap.put(BidResponsed.KEY_PRICE, bVar.a() + "");
} catch (Exception unused) {
}
try {
Log.d("test", "sign.formatmap.log.appid=" + SjmSdkConfig.instance().sjm_appId + ",adId=" + bVar.f32729b + ",adType=" + bVar.f32730c + ",adEvent=" + bVar.f32738k.f32741a + bVar.f32731d + ",message=" + bVar.f32738k.f32742b + ",sdkver=2.4.01,oaid=" + SjmDeviceId.getDeviceId(e()) + ",pp=" + bVar.a());
} catch (Throwable unused2) {
}
try {
g(hashMap, true, false);
hashMap.put("sign", f(bVar.f32738k.f32741a + SjmDeviceId.getDeviceUUID(e()) + bVar.f32738k.f32743c + "J2uKcnLp8i"));
executeOnExecutor(l.a(), hashMap);
} catch (Exception unused3) {
}
}
}