Pixel Fusion v1.0.2版本的 MD5 值为:7c04c460c2996569d4ad075cd671a946
以下内容为反编译后的 ServerURL.java 源代码,内容仅作参考
package com.json.mediationsdk.server;
import ADBCBBAAdD.BbdcDCacCa;
import CBcBD.CdCaB;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import android.util.Pair;
import androidx.fragment.app.BcBaaccAbbd;
import caCbdcBC.DAbacDAb;
import com.json.i0;
import com.json.ke;
import com.json.l6;
import com.json.l8;
import com.json.mediationsdk.config.ConfigFile;
import com.json.mediationsdk.metadata.a;
import com.json.mediationsdk.utils.IronSourceAES;
import com.json.mediationsdk.utils.IronSourceUtils;
import com.json.p4;
import com.json.pd;
import com.json.q1;
import com.json.r7;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
public class ServerURL {
private static final String AMPERSAND = "&";
private static final String ANDROID = "android";
private static final String APPLICATION_KEY = "applicationKey";
private static final String APPLICATION_USER_ID = "applicationUserId";
private static final String APPLICATION_VERSION = "appVer";
private static final String AUID = "auid";
private static String BASE_URL_PREFIX = "https://i-sdk.mediation.unity3d.com/sdk/v";
private static final String BASE_URL_SUFFIX = "?request=";
private static final String BROWSER_USER_AGENT = "browserUserAgent";
private static final String BUNDLE_ID = "bundleId";
private static final String CONNECTION_TYPE = "connType";
private static final String COPPA = "coppa";
private static final String DEVICE_LANG = "deviceLang";
private static final String DEVICE_MAKE = "devMake";
private static final String DEVICE_MODEL = "devModel";
private static final String EQUAL = "=";
private static final String FIRST_SESSION = "fs";
private static final String GAID = "advId";
private static final String GOOGLE_FAMILY_SUPPORT = "dff";
private static final String IMPRESSION = "impression";
private static final String ISO_COUNTRY_CODE = "icc";
private static final String IS_DEMAND_ONLY = "isDemandOnly";
private static final String MEDIATION_TYPE = "mt";
private static final String MOBILE_CARRIER = "mCar";
private static final String MOBILE_COUNTRY_CODE = "mcc";
private static final String MOBILE_NETWORK_CODE = "mnc";
private static final String OS_VERSION = "osVer";
private static final String PLACEMENT = "placementId";
private static final String PLATFORM_KEY = "platform";
private static final String PLUGIN_FW_VERSION = "plugin_fw_v";
private static final String PLUGIN_TYPE = "pluginType";
private static final String PLUGIN_VERSION = "pluginVersion";
private static final String REWARDED_VIDEO_MANUAL_MODE = "rvManual";
private static final String SDK_VERSION = "sdkVersion";
private static final String SERR = "serr";
private static final String TEST_SUITE = "ts";
private static final String TIME_ZONE_ID = "tz";
private static final String TIME_ZONE_OFFSET = "tzOff";
public static String buildInitURL(Context context, String str, String str2, String str3, String str4, boolean z, List<Pair<String, String>> list, boolean z2) throws UnsupportedEncodingException {
String str5;
List<String> list2;
l8 d = ke.k().d();
ArrayList arrayList = new ArrayList();
arrayList.add(new Pair(PLATFORM_KEY, "android"));
arrayList.add(new Pair("applicationKey", str));
if (!TextUtils.isEmpty(str2)) {
arrayList.add(new Pair("applicationUserId", str2));
}
arrayList.add(new Pair("sdkVersion", IronSourceUtils.getSDKVersion()));
if (z) {
arrayList.add(new Pair(REWARDED_VIDEO_MANUAL_MODE, "1"));
}
if (!IronSourceUtils.isEncryptedResponse()) {
arrayList.add(new Pair(SERR, "0"));
}
if (!TextUtils.isEmpty(ConfigFile.getConfigFile().getPluginType())) {
arrayList.add(new Pair(PLUGIN_TYPE, ConfigFile.getConfigFile().getPluginType()));
}
if (!TextUtils.isEmpty(ConfigFile.getConfigFile().getPluginVersion())) {
arrayList.add(new Pair(PLUGIN_VERSION, ConfigFile.getConfigFile().getPluginVersion()));
}
if (!TextUtils.isEmpty(ConfigFile.getConfigFile().getPluginFrameworkVersion())) {
arrayList.add(new Pair(PLUGIN_FW_VERSION, ConfigFile.getConfigFile().getPluginFrameworkVersion()));
}
if (!TextUtils.isEmpty(str3)) {
arrayList.add(new Pair("advId", str3));
}
if (!TextUtils.isEmpty(str4)) {
arrayList.add(new Pair("mt", str4));
}
String b = q1.b(context, context.getPackageName());
if (!TextUtils.isEmpty(b)) {
arrayList.add(new Pair(APPLICATION_VERSION, b));
}
arrayList.add(new Pair(OS_VERSION, Build.VERSION.SDK_INT + ""));
arrayList.add(new Pair(DEVICE_MAKE, Build.MANUFACTURER));
arrayList.add(new Pair(DEVICE_MODEL, Build.MODEL));
arrayList.add(new Pair("fs", (IronSourceUtils.getFirstSession(context) ? 1 : 0) + ""));
ConcurrentHashMap<String, List<String>> c = pd.b().c();
if (c.containsKey(a.b)) {
arrayList.add(new Pair("coppa", c.get(a.b).get(0)));
}
if (c.containsKey(a.f)) {
String str6 = c.get(a.f).get(0);
if (!TextUtils.isEmpty(str6) && str6.equalsIgnoreCase(a.j)) {
arrayList.add(new Pair("ts", "1"));
}
}
if (c.containsKey(a.d)) {
String str7 = c.get(a.d).get(0);
if (!TextUtils.isEmpty(str7) && str7.equalsIgnoreCase(a.g)) {
arrayList.add(new Pair(GOOGLE_FAMILY_SUPPORT, "1"));
}
}
if (c.containsKey(a.e) && (list2 = c.get(a.e)) != null) {
arrayList.add(new Pair(a.e, list2.get(0)));
}
String connectionType = IronSourceUtils.getConnectionType(context);
if (!TextUtils.isEmpty(connectionType)) {
arrayList.add(new Pair(CONNECTION_TYPE, connectionType));
}
if (list != null) {
arrayList.addAll(list);
}
String s = d.s();
if (s.length() != 0) {
arrayList.add(new Pair(BROWSER_USER_AGENT, s));
}
try {
str5 = d.b(context) + "-" + d.F(context);
} catch (Exception e) {
e.printStackTrace();
str5 = null;
}
if (str5 != null && str5.length() != 0) {
arrayList.add(new Pair(DEVICE_LANG, str5));
}
arrayList.add(new Pair("bundleId", context.getPackageName()));
arrayList.add(new Pair("mcc", "" + p4.b(context)));
arrayList.add(new Pair("mnc", "" + p4.c(context)));
String n = d.n(context);
if (!TextUtils.isEmpty(n)) {
arrayList.add(new Pair("icc", n));
}
String j = d.j(context);
if (!TextUtils.isEmpty(j)) {
arrayList.add(new Pair("mCar", j));
}
String b2 = d.b();
if (!TextUtils.isEmpty(b2)) {
arrayList.add(new Pair("tz", b2));
}
arrayList.add(new Pair("tzOff", "" + d.p()));
String s2 = d.s(context);
if (!TextUtils.isEmpty(s2)) {
arrayList.add(new Pair("auid", s2));
}
if (z2) {
arrayList.add(new Pair("isDemandOnly", "1"));
}
arrayList.add(new Pair(r7.V, String.valueOf(i0.a())));
return CdCaB.BbdcDCacCa(new StringBuilder(), getBaseUrl(IronSourceUtils.getSDKVersion()), URLEncoder.encode(IronSourceAES.encode(l6.b().c(), createURLParams(arrayList)), "UTF-8"));
}
private static String createURLParams(List<Pair<String, String>> list) throws UnsupportedEncodingException {
String str = "";
for (Pair<String, String> pair : list) {
if (str.length() > 0) {
str = str.concat("&");
}
StringBuilder BbdcDCacCa2 = BbdcDCacCa.BbdcDCacCa(str);
BbdcDCacCa2.append((String) pair.first);
BbdcDCacCa2.append("=");
BbdcDCacCa2.append(URLEncoder.encode((String) pair.second, "UTF-8"));
str = BbdcDCacCa2.toString();
}
return str;
}
private static String getBaseUrl(String str) {
return BcBaaccAbbd.BbdcDCacCa(new StringBuilder(), BASE_URL_PREFIX, str, BASE_URL_SUFFIX);
}
public static String getRequestURL(String str, boolean z, int i) throws UnsupportedEncodingException {
ArrayList arrayList = new ArrayList();
arrayList.add(new Pair("impression", Boolean.toString(z)));
arrayList.add(new Pair("placementId", Integer.toString(i)));
return DAbacDAb.BbdcDCacCa(str, "&", createURLParams(arrayList));
}
private static void setBaseUrlPrefix(String str) {
BASE_URL_PREFIX = str;
}
}