正在查看: 小柿子 v1.3.8 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 小柿子 v1.3.8 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package j2;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import b2.m;
import com.mbridge.msdk.foundation.tools.SameMD5;
import com.mbridge.msdk.mbbid.out.BidResponsed;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.upstream.DataSchemeDataSource;
import com.sjm.sjmsdk.core.DeviceId.SjmDeviceId;
import com.sjm.sjmsdk.core.config.SjmSdkConfig;
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 m3.b;
import s3.f;
public class d extends m3.b {
public static final char[] e = "0123456789ABCDEF".toCharArray();
public WeakReference<Context> d;
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());
}
}
public d(Context context, b.a aVar) {
super(aVar, "http://api.spstmind.com/api/staEvent");
this.d = new WeakReference<>(context);
}
public static String f(String str) {
try {
MessageDigest messageDigest = MessageDigest.getInstance(SameMD5.TAG);
messageDigest.update(str.getBytes(C.UTF8_NAME));
StringBuffer stringBuffer = new StringBuffer();
for (byte b : messageDigest.digest()) {
stringBuffer.append(String.format("%02x", Integer.valueOf(b & 255)));
}
return stringBuffer.toString();
} catch (Exception e5) {
e5.printStackTrace();
return null;
}
}
@SuppressLint({"NewApi"})
public static String g(Map<String, String> map, boolean z, boolean z4) {
try {
ArrayList<Map.Entry> arrayList = new ArrayList(map.entrySet());
Collections.sort(arrayList, new a());
StringBuilder sb = 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 (z) {
str2 = TextUtils.isEmpty(str2) ? "" : URLEncoder.encode(str2, "utf-8");
}
if (z4) {
sb.append(str.toLowerCase() + "=" + str2);
} else {
sb.append(str + "=" + str2);
}
sb.append("&");
}
}
String sb2 = sb.toString();
return !sb2.isEmpty() ? sb2.substring(0, sb2.length() - 1) : sb2;
} catch (Exception e5) {
StringBuilder sb3 = new StringBuilder();
sb3.append("sign.formatmap.e=");
sb3.append(e5.toString());
return null;
}
}
public Context e() {
WeakReference<Context> weakReference = this.d;
if (weakReference != null) {
return weakReference.get();
}
return null;
}
public final void h(b bVar) {
HashMap hashMap = new HashMap();
hashMap.put("sjmadId", bVar.b);
hashMap.put("adType", bVar.c);
hashMap.put("sjmPm", bVar.d);
hashMap.put("sjmPmId", bVar.e);
hashMap.put("sjmAppid", SjmSdkConfig.instance().sjm_appId);
hashMap.put("adEvent", bVar.k.a);
hashMap.put("message", bVar.k.b);
hashMap.put("tradeId", bVar.k.c + "");
hashMap.put("timeStamp", bVar.k.c + "");
hashMap.put("sjmSdkver", "2.4.16");
if (!TextUtils.isEmpty(bVar.l)) {
hashMap.put("userId", bVar.l);
}
try {
hashMap.put("oaid", SjmDeviceId.getDeviceId(e()));
hashMap.put("uuid", SjmDeviceId.getDeviceUUID(e()));
hashMap.put("brand", Build.BRAND);
hashMap.put("model", Build.MODEL);
hashMap.put("systemVer", Build.VERSION.RELEASE);
hashMap.put("packageName", e().getPackageName());
hashMap.put("versionName", f.e(e()));
hashMap.put("versionCode", f.a(e()));
hashMap.put(BidResponsed.KEY_PRICE, bVar.a() + "");
} catch (Exception unused) {
}
try {
String a5 = s3.b.a(g(hashMap, true, false));
String f = f(bVar.k.a + SjmDeviceId.getDeviceUUID(e()) + bVar.k.c + "J2uKcnLp8i");
HashMap hashMap2 = new HashMap();
hashMap2.put(DataSchemeDataSource.SCHEME_DATA, a5);
hashMap2.put("sign", f);
executeOnExecutor(m.a(), hashMap2);
} catch (Exception unused2) {
}
}
}