Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.safe.guard.sdk.c;
import android.os.Build;
import android.util.Log;
import com.google.gson.Gson;
import com.safe.guard.sdk.BuildConfig;
import com.safe.guard.sdk.GuardManager;
import com.tradplus.ads.base.bean.TPAdInfo;
import com.tradplus.ads.base.util.AppKeyManager;
import java.util.HashMap;
import java.util.Map;
public final class c extends a {
private String c;
private TPAdInfo d;
private String e;
public c(String str, TPAdInfo tPAdInfo, String str2) {
Log.i("PushSourceRequest", "body = ".concat(String.valueOf(str)));
this.c = str;
this.d = tPAdInfo;
this.e = str2;
}
@Override
protected final Object a(String str) {
Log.i("PushSourceRequest", "result = ".concat(String.valueOf(str)));
return str;
}
@Override
protected final String a() {
return com.safe.guard.sdk.a.b.a().i ? "https://test-api.quality-ad.com/material" : "https://api.quality-ad.com/material";
}
@Override
protected final Map<String, String> b() {
HashMap hashMap = new HashMap();
hashMap.put("s", GuardManager.getInstance().getUserUUID());
hashMap.put("content-type", "text/plain");
return hashMap;
}
@Override
protected final byte[] c() {
Log.i("PushSourceRequest", "postContent = ");
try {
HashMap hashMap = new HashMap();
com.safe.guard.sdk.a.b a = com.safe.guard.sdk.a.b.a();
hashMap.put("appkey", GuardManager.getInstance().getAppKey());
hashMap.put("sdkv", a.a);
hashMap.put("os", "1");
hashMap.put("package", a.c);
hashMap.put("iso", a.d);
hashMap.put("did", a.j);
hashMap.put("device_aaid", a.k);
hashMap.put("device_oaid", "");
hashMap.put("device_make", Build.BRAND);
hashMap.put("device_model", Build.MODEL);
StringBuilder sb = new StringBuilder();
sb.append(a.b());
hashMap.put("device_contype", sb.toString());
hashMap.put("device_osv", Build.VERSION.RELEASE);
hashMap.put("device_eid", a.k);
hashMap.put("device_type", a.l);
hashMap.put("material", this.c);
hashMap.put("adsource_id", this.d.adNetworkId);
hashMap.put("adsource_sdkv", this.e);
hashMap.put("material_sdkv", BuildConfig.VERSION_NAME);
hashMap.put("request_id", this.d.requestId);
hashMap.put(AppKeyManager.ADSOURCE_PLACEMENT_ID, this.d.adSourcePlacementId);
hashMap.put("bucket_id", this.d.bucketId);
hashMap.put("segment_id", this.d.segmentId);
String a2 = new com.safe.guard.sdk.a.a().a(new Gson().toJson(hashMap));
Log.i("PushSourceRequest", "body = ".concat(String.valueOf(a2)));
return a2.getBytes("UTF-8");
} catch (Throwable th) {
th.printStackTrace();
return null;
}
}
}