Apk Done v1.0版本的 MD5 值为:44cfb8e1ce639995aa7f0de6a3a6388b
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.bytedance.sdk.openadsdk.core.j;
import android.os.Build;
import android.text.TextUtils;
import com.amazon.device.ads.DtbConstants;
import com.applovin.sdk.AppLovinMediationProvider;
import com.bytedance.sdk.component.utils.i;
import com.bytedance.sdk.component.utils.l;
import com.bytedance.sdk.component.utils.t;
import com.bytedance.sdk.component.utils.u;
import com.bytedance.sdk.openadsdk.core.h;
import com.bytedance.sdk.openadsdk.core.o;
import com.bytedance.sdk.openadsdk.l.r;
import com.google.android.gms.auth.api.proxy.AuthApiStatusCodes;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class e implements b {
private String M;
private String N;
private String O;
private int Q;
private String R;
private String T;
private String j;
private String l;
private String s;
private String v;
private String w;
private String x;
private String y;
private static final String n = r.m();
private static final String p = null;
private static final String q = null;
private static final String r = null;
public static String a = null;
public static String b = DtbConstants.IABTCF_TC_STRING;
public static String c = t.a(o.a(), "tt_txt_skip");
public static String d = t.a(o.a(), "tt_feedback_submit_text");
public static String e = t.a(o.a(), "tt_feedback_thank_text") + "\n" + t.a(o.a(), "tt_feedback_experience_text");
static ArrayList<String> f = new ArrayList<>(Arrays.asList("ja", "en", "ko", "zh", "th", "vi", "id", "ru", "ar", "fr", "de", "it", "es", "hi", "pt", "zh-Hant"));
private int g = Integer.MAX_VALUE;
private Map<String, a> h = new HashMap();
private Map<String, Object> i = new HashMap();
private Set<String> k = new HashSet();
private Set<String> m = Collections.synchronizedSet(new HashSet());
private Set<String> o = Collections.synchronizedSet(new HashSet());
private int t = Integer.MAX_VALUE;
private int u = Integer.MAX_VALUE;
private int z = Integer.MAX_VALUE;
private int A = Integer.MAX_VALUE;
private int B = Integer.MAX_VALUE;
private long C = 0;
private Set<String> D = Collections.synchronizedSet(new HashSet());
private Set<String> E = Collections.synchronizedSet(new HashSet());
private int F = Integer.MAX_VALUE;
private int G = Integer.MAX_VALUE;
private long H = 2147483647L;
private int I = Integer.MAX_VALUE;
private int J = Integer.MAX_VALUE;
private int K = Integer.MAX_VALUE;
private int L = Integer.MAX_VALUE;
private int P = Integer.MAX_VALUE;
private int S = Integer.MAX_VALUE;
private String U = null;
private String V = null;
private boolean W = false;
private String X = "";
private int Y = Integer.MAX_VALUE;
private int Z = Integer.MAX_VALUE;
private int aa = Integer.MAX_VALUE;
private int ab = Integer.MAX_VALUE;
private int ac = Integer.MAX_VALUE;
private int ad = Integer.MAX_VALUE;
private int ae = Integer.MAX_VALUE;
private int af = Integer.MAX_VALUE;
private final Set<String> ag = Collections.synchronizedSet(new HashSet());
private volatile boolean ah = false;
private int aj = Integer.MAX_VALUE;
private float ak = 2.14748365E9f;
private int al = Integer.MAX_VALUE;
private final u ai = u.a("tt_sdk_settings", o.a());
private int a(boolean z) {
return z ? 20 : 5;
}
private static boolean i(int i) {
return i == 1 || i == 2;
}
@Override
public synchronized void a() {
this.ah = true;
int i = 0;
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.s = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "xpath", "");
this.H = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", IronSourceConstants.EVENTS_DURATION, 10000L);
this.I = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", AppLovinMediationProvider.MAX, 50);
this.t = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "download_config_dl_network", 1);
this.u = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "download_config_dl_size", 30);
this.J = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "vbtt", 5);
this.K = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "fetch_template", 3600);
this.l = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "template_ids", (String) null);
this.v = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ab_test_version", (String) null);
this.w = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ab_test_param", (String) null);
this.x = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "pyload_h5", (String) null);
this.y = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "playableLoadH5Url", (String) null);
this.z = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "splash_load_type", 1);
this.A = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "splash_check_type", 1);
this.F = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "if_both_open", 0);
this.G = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "support_tnc", 1);
this.X = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "force_language", "");
this.Y = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "fetch_tpl_timeout_ctrl", (int) AuthApiStatusCodes.AUTH_API_INVALID_CREDENTIALS);
this.al = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "disable_rotate_banner_on_dislike", Integer.MAX_VALUE);
this.Z = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "max_tpl_cnts", 100);
this.j = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "tpl_infos", (String) null);
this.B = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "app_list_control", 0);
this.C = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "hit_app_list_time", 0L);
this.M = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ads_url", q);
this.N = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "app_log_url", p);
this.O = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "apm_url", "");
this.P = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "coppa", -99);
this.Q = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "ccpa", -1);
h.d().c(this.P);
this.R = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "policy_url", r);
this.T = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "consent_url", "https://lf-hs-sg.ibytedtos.com/obj/union-platform-i18n/union_platform_gdpr_607_en.html");
this.S = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "isGdprUser", -1);
this.U = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "dyn_draw_engine_url", n);
this.V = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "dc", (String) null);
this.aa = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_ad_enable", Integer.MAX_VALUE);
this.ab = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_personalized_ad", Integer.MAX_VALUE);
this.ac = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_sladar_enable", Integer.MAX_VALUE);
this.ad = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_app_log_enable", Integer.MAX_VALUE);
this.ae = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_sec_enable", Integer.MAX_VALUE);
this.af = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_debug_unlock", Integer.MAX_VALUE);
String b2 = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "privacy_fields_allowed", (String) null);
this.L = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "webview_cache_count", 20);
if (this.o != null) {
this.o.clear();
}
Set<String> b3 = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "gecko_hosts", (Set<String>) null);
this.o = b3;
this.o = a(b3);
this.ak = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "global_rate", 1.0f);
this.g = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "sp_key_if_sp_cache", 0);
if (!TextUtils.isEmpty(b2)) {
try {
JSONArray jSONArray = new JSONArray(b2);
int length = jSONArray.length();
this.ag.clear();
for (int i2 = 0; i2 < length; i2++) {
this.ag.add(jSONArray.getString(i2));
}
} catch (JSONException e2) {
e2.printStackTrace();
}
}
this.D.clear();
Set<String> b4 = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "hit_app_list_data", (Set<String>) null);
if (b4 != null && !b4.isEmpty()) {
for (String str : b4) {
this.D.add(str);
}
}
this.E.clear();
Set<String> b5 = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "scheme_list_data", (Set<String>) null);
if (b5 != null && !b5.isEmpty()) {
for (String str2 : b5) {
this.E.add(str2);
}
}
String b6 = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ad_slot_conf", (String) null);
if (!TextUtils.isEmpty(b6)) {
try {
JSONArray jSONArray2 = new JSONArray(b6);
int length2 = jSONArray2.length();
if (length2 > 0) {
this.h.clear();
while (i < length2) {
a b7 = b(jSONArray2.optJSONObject(i));
if (b7 != null) {
this.h.put(b7.a, b7);
}
i++;
}
}
} catch (Exception unused) {
}
}
this.aj = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "read_video_from_cache", 1);
return;
}
this.s = this.ai.b("xpath", "");
this.H = this.ai.b(IronSourceConstants.EVENTS_DURATION, 10000L);
this.I = this.ai.b(AppLovinMediationProvider.MAX, 50);
this.t = this.ai.b("download_config_dl_network", 1);
this.u = this.ai.b("download_config_dl_size", 30);
this.K = this.ai.b("fetch_template", 3600);
this.v = this.ai.a("ab_test_version");
this.w = this.ai.a("ab_test_param");
this.J = this.ai.b("vbtt", 5);
this.l = this.ai.b("template_ids", (String) null);
this.x = this.ai.b("pyload_h5", (String) null);
this.y = this.ai.b("playableLoadH5Url", (String) null);
this.z = this.ai.b("splash_load_type", 1);
this.A = this.ai.b("splash_check_type", 1);
this.F = this.ai.b("if_both_open", 0);
this.G = this.ai.b("support_tnc", 1);
this.j = this.ai.b("tpl_infos", (String) null);
this.B = this.ai.b("app_list_control", 0);
this.X = this.ai.b("force_language", "");
this.Y = this.ai.b("fetch_tpl_timeout_ctrl", AuthApiStatusCodes.AUTH_API_INVALID_CREDENTIALS);
this.al = this.ai.b("disable_rotate_banner_on_dislike", Integer.MAX_VALUE);
this.Z = this.ai.b("max_tpl_cnts", 100);
this.C = this.ai.b("hit_app_list_time", 0L);
this.M = this.ai.a("ads_url");
this.N = this.ai.a("app_log_url");
this.O = this.ai.a("apm_url");
this.P = this.ai.b("coppa", -99);
this.Q = this.ai.b("ccpa", -1);
h.d().c(this.P);
this.R = this.ai.b("policy_url", r);
this.T = this.ai.b("consent_url", "https://lf-hs-sg.ibytedtos.com/obj/union-platform-i18n/union_platform_gdpr_607_en.html");
this.U = this.ai.b("dyn_draw_engine_url", n);
this.V = this.ai.a("dc");
this.S = this.ai.b("isGdprUser", -1);
this.aa = this.ai.b("privacy_ad_enable", Integer.MAX_VALUE);
this.ab = this.ai.b("privacy_personalized_ad", Integer.MAX_VALUE);
this.ac = this.ai.b("privacy_sladar_enable", Integer.MAX_VALUE);
this.ad = this.ai.b("privacy_app_log_enable", Integer.MAX_VALUE);
this.ae = this.ai.b("privacy_sec_enable", Integer.MAX_VALUE);
this.af = this.ai.b("privacy_debug_unlock", Integer.MAX_VALUE);
if (this.o != null) {
this.o.clear();
}
Set<String> b8 = this.ai.b("gecko_hosts", (Set<String>) null);
this.o = b8;
this.o = a(b8);
this.ak = this.ai.b("global_rate", 1.0f);
this.g = this.ai.b("sp_key_if_sp_cache", 0);
String b9 = this.ai.b("privacy_fields_allowed", (String) null);
if (!TextUtils.isEmpty(b9)) {
try {
JSONArray jSONArray3 = new JSONArray(b9);
int length3 = jSONArray3.length();
this.ag.clear();
for (int i3 = 0; i3 < length3; i3++) {
this.ag.add(jSONArray3.getString(i3));
}
} catch (JSONException e3) {
e3.printStackTrace();
}
}
this.D.clear();
Set<String> b10 = this.ai.b("hit_app_list_data", (Set<String>) null);
if (b10 != null && !b10.isEmpty()) {
for (String str3 : b10) {
this.D.add(str3);
}
}
this.E.clear();
Set<String> b11 = this.ai.b("scheme_list_data", (Set<String>) null);
if (b11 != null && !b11.isEmpty()) {
for (String str4 : b11) {
this.E.add(str4);
}
}
String b12 = this.ai.b("ad_slot_conf", (String) null);
if (!TextUtils.isEmpty(b12)) {
try {
JSONArray jSONArray4 = new JSONArray(b12);
int length4 = jSONArray4.length();
if (length4 > 0) {
this.h.clear();
while (i < length4) {
a b13 = b(jSONArray4.optJSONObject(i));
if (b13 != null) {
this.h.put(b13.a, b13);
}
i++;
}
}
} catch (Exception unused2) {
}
}
this.aj = this.ai.b("read_video_from_cache", 1);
this.L = this.ai.b("webview_cache_count", 20);
return;
}
private static a b(JSONObject jSONObject) {
if (jSONObject == null) {
return null;
}
String optString = jSONObject.optString("code_id");
int optInt = jSONObject.optInt("auto_play", 1);
int optInt2 = jSONObject.optInt("voice_control", 1);
int optInt3 = jSONObject.optInt("rv_preload", 2);
int optInt4 = jSONObject.optInt("nv_preload", 1);
int optInt5 = jSONObject.optInt("proportion_watching", 100);
int optInt6 = jSONObject.optInt("skip_time_displayed", 0);
int optInt7 = jSONObject.optInt("video_skip_result", 2);
int optInt8 = jSONObject.optInt("reg_creative_control", 1);
int optInt9 = jSONObject.optInt("play_bar_show_time", 3);
int optInt10 = jSONObject.optInt("rv_skip_time", -1);
int optInt11 = jSONObject.optInt("voice_control", 2);
int optInt12 = jSONObject.optInt("if_show_win", 1);
int optInt13 = jSONObject.optInt("sp_preload", 0);
int optInt14 = jSONObject.optInt("stop_time", 1500);
int optInt15 = jSONObject.optInt("native_playable_delay", 2);
int optInt16 = jSONObject.optInt("time_out_control", -1);
int optInt17 = jSONObject.optInt("playable_close_time", -1);
int optInt18 = jSONObject.optInt("playable_reward_type", 0);
int optInt19 = jSONObject.optInt("reward_is_callback", 0);
int optInt20 = jSONObject.optInt("iv_skip_time", 5);
JSONArray optJSONArray = jSONObject.optJSONArray("parent_tpl_ids");
int optInt21 = jSONObject.optInt("slot_type", 2);
boolean optBoolean = jSONObject.optBoolean("close_on_click", false);
int optInt22 = jSONObject.optInt("allow_system_back", 0);
if (!i(optInt2)) {
optInt2 = 1;
}
return a.a().a(optString).k(optInt).l(optInt2).m(optInt3).n(optInt4).o(optInt5).p(optInt6).q(optInt7).r(optInt8).j(optInt9).i(optInt10).h(!i(optInt11) ? 1 : optInt11).s(optInt12).e(optInt13).f(optInt14).g(optInt15).d(optInt16).b(optInt18).c(optInt19).a(optInt17).t(optInt21).u(optInt20).a(optJSONArray).a(optBoolean).v(optInt22);
}
public int b() {
if (this.Z == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.Z = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "max_tpl_cnts", 100);
} else {
this.Z = this.ai.b("max_tpl_cnts", 100);
}
}
return this.Z;
}
@Override
public void a(JSONObject jSONObject) {
String str;
this.s = jSONObject.optString("xpath");
JSONObject optJSONObject = jSONObject.optJSONObject("feq_policy");
if (optJSONObject != null) {
this.H = optJSONObject.optLong(IronSourceConstants.EVENTS_DURATION) * 1000;
this.I = optJSONObject.optInt(AppLovinMediationProvider.MAX);
}
this.J = jSONObject.optInt("vbtt", 5);
this.K = jSONObject.optInt("fetch_tpl_interval", 3600);
JSONObject optJSONObject2 = jSONObject.optJSONObject("abtest");
if (optJSONObject2 != null) {
this.v = optJSONObject2.optString("version");
this.w = optJSONObject2.optString("param");
} else {
F();
}
JSONObject optJSONObject3 = jSONObject.optJSONObject("log_rate_conf");
if (optJSONObject3 != null) {
this.ak = (float) optJSONObject3.optDouble("global_rate", 1.0d);
}
this.x = jSONObject.optString("pyload_h5");
this.y = jSONObject.optString("pure_pyload_h5");
this.M = jSONObject.optString("ads_url");
this.N = jSONObject.optString("app_log_url");
this.O = jSONObject.optString("apm_url");
this.P = jSONObject.optInt("coppa", -99);
this.Q = jSONObject.optInt("ccpa", -1);
h.d().c(this.P);
this.R = jSONObject.optString("privacy_url", r);
this.T = jSONObject.optString("consent_url", "https://lf-hs-sg.ibytedtos.com/obj/union-platform-i18n/union_platform_gdpr_607_en.html");
this.V = jSONObject.optString("dc");
c(jSONObject);
d(jSONObject);
this.z = e(jSONObject);
l.e("splashLoad", "setting-》mSplashLoadType=" + this.z);
this.A = f(jSONObject);
l.e("splashLoad", "setting-》mSplashCheckType=" + this.A);
this.F = jSONObject.optInt("if_both_open", 0);
this.G = jSONObject.optInt("support_tnc", 1);
this.B = jSONObject.optInt("al", 0);
this.Z = jSONObject.optInt("max_tpl_cnts", 100);
JSONObject optJSONObject4 = jSONObject.optJSONObject("app_common_config");
if (optJSONObject4 != null) {
this.X = optJSONObject4.optString("force_language");
this.Y = optJSONObject4.optInt("fetch_tpl_timeout_ctrl", AuthApiStatusCodes.AUTH_API_INVALID_CREDENTIALS);
this.al = optJSONObject4.optInt("disable_rotate_banner_on_dislike", Integer.MAX_VALUE);
this.g = optJSONObject4.optInt("if_sp_cache", 0);
this.L = optJSONObject4.optInt("webview_cache_count", 20);
try {
this.o.clear();
JSONArray optJSONArray = optJSONObject4.optJSONArray("gecko_hosts");
if (optJSONArray != null && optJSONArray.length() != 0) {
for (int i = 0; i < optJSONArray.length(); i++) {
this.o.add(optJSONArray.getString(i));
}
}
this.o = a(this.o);
} catch (Throwable th) {
l.b("GeckoLog: settings json error " + th);
}
}
this.C = System.currentTimeMillis();
this.D.clear();
JSONArray optJSONArray2 = jSONObject.optJSONArray("spam_app_list");
if (optJSONArray2 != null) {
int length = optJSONArray2.length();
for (int i2 = 0; i2 < length; i2++) {
String optString = optJSONArray2.optString(i2);
if (!TextUtils.isEmpty(optString)) {
this.D.add(optString);
}
}
}
this.E.clear();
JSONArray optJSONArray3 = jSONObject.optJSONArray("scheme_check_list");
if (optJSONArray3 != null) {
int length2 = optJSONArray3.length();
for (int i3 = 0; i3 < length2; i3++) {
String optString2 = optJSONArray3.optString(i3);
if (!TextUtils.isEmpty(optString2)) {
this.E.add(optString2);
}
}
}
JSONObject optJSONObject5 = jSONObject.optJSONObject("download_config");
if (optJSONObject5 != null) {
this.t = optJSONObject5.optInt("dl_network", 1);
this.u = optJSONObject5.optInt("dl_size", 30);
}
this.aj = jSONObject.optInt("read_video_from_cache", 1);
JSONArray optJSONArray4 = jSONObject.optJSONArray("ad_slot_conf_list");
if (optJSONArray4 != null) {
str = optJSONArray4.toString();
int length3 = optJSONArray4.length();
if (length3 > 0) {
this.h.clear();
for (int i4 = 0; i4 < length3; i4++) {
a b2 = b(optJSONArray4.optJSONObject(i4));
if (b2 != null) {
this.h.put(b2.a, b2);
}
}
}
} else {
str = null;
}
JSONObject optJSONObject6 = jSONObject.optJSONObject("privacy");
if (optJSONObject6 != null) {
this.aa = optJSONObject6.optInt("ad_enable", Integer.MAX_VALUE);
this.ab = optJSONObject6.optInt("personalized_ad", Integer.MAX_VALUE);
this.ac = optJSONObject6.optInt("sladar_enable", Integer.MAX_VALUE);
this.ad = optJSONObject6.optInt("app_log_enable", Integer.MAX_VALUE);
this.ae = optJSONObject6.optInt("sec_enable", Integer.MAX_VALUE);
this.af = optJSONObject6.optInt("debug_unlock", Integer.MAX_VALUE);
String optString3 = optJSONObject6.optString("fields_allowed", "");
if (!TextUtils.isEmpty(optString3)) {
try {
JSONArray jSONArray = new JSONArray(optString3);
int length4 = jSONArray.length();
this.ag.clear();
for (int i5 = 0; i5 < length4; i5++) {
this.ag.add(jSONArray.getString(i5));
}
} catch (JSONException e2) {
e2.printStackTrace();
}
} else {
this.ag.clear();
}
} else {
this.aa = Integer.MAX_VALUE;
this.ab = Integer.MAX_VALUE;
this.ac = Integer.MAX_VALUE;
this.ad = Integer.MAX_VALUE;
this.ae = Integer.MAX_VALUE;
this.af = Integer.MAX_VALUE;
this.ag.clear();
}
a(str, (String) null);
a((Boolean) true);
this.W = true;
}
private void F() {
this.w = null;
this.v = null;
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ab_test_version");
com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ab_test_param");
return;
}
this.ai.b("ab_test_version");
this.ai.b("ab_test_param");
}
private void c(JSONObject jSONObject) {
String b2;
if (jSONObject == null) {
return;
}
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
b2 = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "dyn_draw_engine_url", n);
} else {
b2 = this.ai.b("dyn_draw_engine_url", n);
}
this.U = jSONObject.optString("dyn_draw_engine_url", n);
l.e("TemplateManager", "settinng---TTDynamic.init().....oldDynDrawEngineUrl=" + b2);
l.e("TemplateManager", "settinng---TTDynamic.init().....newmDynDrawEngineUrl=" + this.U);
if (TextUtils.isEmpty(b2) || TextUtils.isEmpty(this.U) || this.U.equals(b2)) {
return;
}
l.b("TemplateManager", "Reinitialize the template TTDynamic.init().....");
try {
Thread.sleep(5000L);
} catch (InterruptedException e2) {
e2.printStackTrace();
}
com.bytedance.sdk.component.adexpress.a.b.b.a().g();
com.bytedance.sdk.component.adexpress.a.b.b.a().b(false);
com.bytedance.sdk.component.adexpress.a.b.a.b();
com.bytedance.sdk.component.adexpress.a.b.b.a().b();
}
public int a(String str) {
if (str == null) {
return 0;
}
return o.h().m(String.valueOf(str)).r;
}
private void d(JSONObject jSONObject) {
int optInt = jSONObject.optInt("is_gdpr_user", -1);
this.S = optInt;
if (optInt == -1 || optInt == 1 || optInt == 0) {
return;
}
this.S = -1;
}
private int e(JSONObject jSONObject) {
int optInt = jSONObject.optInt("splash_load_type", 1);
this.z = optInt;
if (optInt == 0 || optInt == 1 || optInt == 2 || optInt == 3) {
return this.z;
}
return 1;
}
private int f(JSONObject jSONObject) {
int optInt = jSONObject.optInt("splash_check_type", 1);
this.A = optInt;
if (optInt == 0 || optInt == 1) {
return this.A;
}
return 1;
}
private void a(String str, String str2) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "xpath", this.s);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", IronSourceConstants.EVENTS_DURATION, Long.valueOf(this.H));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", AppLovinMediationProvider.MAX, Integer.valueOf(this.I));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "download_config_dl_network", Integer.valueOf(this.t));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "download_config_dl_size", Integer.valueOf(this.u));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "vbtt", Integer.valueOf(this.J));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "fetch_template", Integer.valueOf(this.K));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "splash_load_type", Integer.valueOf(this.z));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "splash_check_type", Integer.valueOf(this.A));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "if_both_open", Integer.valueOf(this.F));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "support_tnc", Integer.valueOf(this.G));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "pyload_h5", this.x);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "playableLoadH5Url", this.y);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "app_list_control", Integer.valueOf(this.B));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "max_tpl_cnts", Integer.valueOf(this.Z));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "fetch_tpl_timeout_ctrl", Integer.valueOf(this.Y));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "disable_rotate_banner_on_dislike", Integer.valueOf(this.al));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "hit_app_list_time", Long.valueOf(this.C));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "hit_app_list_data", this.D);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "scheme_list_data", this.E);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "ads_url", this.M);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "app_log_url", this.N);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "apm_url", this.O);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "coppa", Integer.valueOf(this.P));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "ccpa", Integer.valueOf(this.Q));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "policy_url", this.R);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "consent_url", this.T);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "dyn_draw_engine_url", this.U);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "dc", this.V);
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "isGdprUser", Integer.valueOf(this.S));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "sp_key_if_sp_cache", Integer.valueOf(this.g));
if (!TextUtils.isEmpty(this.X) && f.contains(this.X)) {
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "force_language", this.X);
}
String str3 = this.v;
if (str3 != null) {
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "ab_test_version", str3);
}
String str4 = this.w;
if (str4 != null) {
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "ab_test_param", str4);
}
if (!TextUtils.isEmpty(str)) {
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "ad_slot_conf", str);
}
if (!TextUtils.isEmpty(this.l)) {
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "template_ids", this.l);
}
if (!TextUtils.isEmpty(this.j)) {
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "tpl_infos", this.j);
}
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_ad_enable", Integer.valueOf(this.aa));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_personalized_ad", Integer.valueOf(this.ab));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_sladar_enable", Integer.valueOf(this.ac));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_app_log_enable", Integer.valueOf(this.ad));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_sec_enable", Integer.valueOf(this.ae));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_debug_unlock", Integer.valueOf(this.af));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "gecko_hosts", this.o);
if (this.ag.size() > 0) {
JSONArray jSONArray = new JSONArray();
for (String str5 : this.ag) {
jSONArray.put(str5);
}
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_fields_allowed", jSONArray.toString());
} else {
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_fields_allowed", "");
}
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "read_video_from_cache", Integer.valueOf(this.aj));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "global_rate", Float.valueOf(this.ak));
com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "webview_cache_count", Integer.valueOf(this.L));
return;
}
this.ai.a("xpath", this.s);
this.ai.a(IronSourceConstants.EVENTS_DURATION, this.H);
this.ai.a(AppLovinMediationProvider.MAX, this.I);
this.ai.a("download_config_dl_network", this.t);
this.ai.a("download_config_dl_size", this.u);
this.ai.a("fetch_template", this.K);
this.ai.a("pyload_h5", this.x);
this.ai.a("playableLoadH5Url", this.y);
this.ai.a("splash_load_type", this.z);
this.ai.a("splash_check_type", this.A);
this.ai.a("if_both_open", this.F);
this.ai.a("support_tnc", this.G);
this.ai.a("app_list_control", this.B);
this.ai.a("max_tpl_cnts", this.Z);
this.ai.a("fetch_tpl_timeout_ctrl", this.Y);
this.ai.a("disable_rotate_banner_on_dislike", this.al);
this.ai.a("hit_app_list_time", this.C);
this.ai.a("hit_app_list_data", this.D);
this.ai.a("scheme_list_data", this.E);
this.ai.a("ads_url", this.M);
this.ai.a("app_log_url", this.N);
this.ai.a("apm_url", this.O);
this.ai.a("coppa", this.P);
this.ai.a("ccpa", this.Q);
this.ai.a("policy_url", this.R);
this.ai.a("consent_url", this.T);
this.ai.a("dyn_draw_engine_url", this.U);
this.ai.a("dc", this.V);
this.ai.a("isGdprUser", this.S);
this.ai.a("sp_key_if_sp_cache", this.g);
if (!TextUtils.isEmpty(this.X) && f.contains(this.X)) {
this.ai.a("force_language", this.X);
}
String str6 = this.v;
if (str6 != null) {
this.ai.a("ab_test_version", str6);
}
String str7 = this.w;
if (str7 != null) {
this.ai.a("ab_test_param", str7);
}
this.ai.a("vbtt", this.J);
if (!TextUtils.isEmpty(str)) {
this.ai.a("ad_slot_conf", str);
}
if (!TextUtils.isEmpty(this.l)) {
this.ai.a("template_ids", this.l);
}
if (!TextUtils.isEmpty(this.j)) {
this.ai.a("tpl_infos", this.j);
}
this.ai.a("privacy_ad_enable", this.aa);
this.ai.a("privacy_personalized_ad", this.ab);
this.ai.a("privacy_sladar_enable", this.ac);
this.ai.a("privacy_app_log_enable", this.ad);
this.ai.a("privacy_sec_enable", this.ae);
this.ai.a("privacy_debug_unlock", this.af);
this.ai.a("gecko_hosts", this.o);
if (this.ag.size() > 0) {
JSONArray jSONArray2 = new JSONArray();
for (String str8 : this.ag) {
jSONArray2.put(str8);
}
this.ai.a("privacy_fields_allowed", jSONArray2.toString());
} else {
this.ai.a("privacy_fields_allowed", "");
}
this.ai.a("read_video_from_cache", this.aj);
this.ai.a("global_rate", this.ak);
this.ai.a("webview_cache_count", this.L);
}
public boolean c() {
if (this.F == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.F = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "if_both_open", 0);
} else {
this.F = this.ai.b("if_both_open", 0);
}
}
return this.F == 1;
}
public boolean d() {
if (this.G == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.G = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "support_tnc", 1);
} else {
this.G = this.ai.b("support_tnc", 1);
}
}
return this.G == 1;
}
public String e() {
if (this.v == null) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.v = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ab_test_version", (String) null);
} else {
this.v = this.ai.a("ab_test_version");
}
}
return this.v;
}
public String f() {
if (this.w == null) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.w = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ab_test_param", (String) null);
} else {
this.w = this.ai.a("ab_test_param");
}
}
return this.w;
}
public long g() {
if (this.H == 2147483647L) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.H = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", IronSourceConstants.EVENTS_DURATION, 10000L);
} else {
this.H = this.ai.b(IronSourceConstants.EVENTS_DURATION, 10000L);
}
}
return this.H;
}
public int h() {
if (this.I == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.I = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", AppLovinMediationProvider.MAX, 50);
} else {
this.I = this.ai.b(AppLovinMediationProvider.MAX, 50);
}
}
return this.I;
}
public String i() {
if (TextUtils.isEmpty(this.x)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.x = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "pyload_h5", (String) null);
} else {
this.x = this.ai.b("pyload_h5", (String) null);
}
}
return this.x;
}
public String j() {
if (TextUtils.isEmpty(this.y)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.y = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "playableLoadH5Url", (String) null);
} else {
this.y = this.ai.b("playableLoadH5Url", (String) null);
}
}
return this.y;
}
public int k() {
if (this.Y == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.Y = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "fetch_tpl_timeout_ctrl", (int) AuthApiStatusCodes.AUTH_API_INVALID_CREDENTIALS);
} else {
this.Y = this.ai.b("fetch_tpl_timeout_ctrl", AuthApiStatusCodes.AUTH_API_INVALID_CREDENTIALS);
}
}
if (this.Y <= 0) {
this.Y = AuthApiStatusCodes.AUTH_API_INVALID_CREDENTIALS;
}
return this.Y;
}
public void a(Boolean bool) {
if (Build.VERSION.SDK_INT >= 17) {
if (bool.booleanValue() && (TextUtils.isEmpty(this.X) || !f.contains(this.X))) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.X = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "force_language", "");
} else {
this.X = this.ai.b("force_language", "");
}
}
if (TextUtils.isEmpty(this.X)) {
return;
}
if (this.X.equals("zh-Hant")) {
i.a(o.a(), "zh", "tw");
} else {
i.a(o.a(), this.X, null);
}
c = t.a(o.a(), "tt_txt_skip");
d = t.a(o.a(), "tt_feedback_submit_text");
e = t.a(o.a(), "tt_feedback_thank_text") + "\n" + t.a(o.a(), "tt_feedback_experience_text");
}
}
public int l() {
if (this.al == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.al = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "disable_rotate_banner_on_dislike", Integer.MAX_VALUE);
} else {
this.al = this.ai.b("disable_rotate_banner_on_dislike", Integer.MAX_VALUE);
}
}
return this.al;
}
public boolean a(int i) {
return m(String.valueOf(i)).c == 1;
}
public boolean b(String str) {
int i = o.h().m(String.valueOf(str)).e;
if (i != 1) {
return i == 2 && com.bytedance.sdk.component.utils.o.c(o.a()) != 0;
}
return com.bytedance.sdk.component.utils.o.d(o.a());
}
public boolean c(String str) {
return m(String.valueOf(str)).g == 1;
}
public boolean d(String str) {
return str == null || o.h().m(String.valueOf(str)).m == 1;
}
public int e(String str) {
if (str == null) {
return 1500;
}
return o.h().m(String.valueOf(str)).o;
}
public int f(String str) {
return o.h().m(String.valueOf(str)).k;
}
public JSONArray g(String str) {
try {
Set<String> b2 = com.bytedance.sdk.component.adexpress.a.b.a.b(str);
if (b2 != null && b2.size() != 0) {
JSONArray jSONArray = new JSONArray();
for (String str2 : b2) {
com.bytedance.sdk.component.adexpress.a.c.b a2 = com.bytedance.sdk.component.adexpress.a.b.a.a(str2);
if (a2 != null) {
JSONObject jSONObject = new JSONObject();
jSONObject.put("id", a2.b());
jSONObject.put("md5", a2.c());
jSONArray.put(jSONObject);
}
}
return jSONArray;
}
} catch (Exception unused) {
}
return null;
}
public boolean h(String str) {
try {
a m = o.h().m(String.valueOf(str));
if (m != null) {
return m.v != null;
}
return false;
} catch (Exception unused) {
return false;
}
}
public boolean i(String str) {
try {
a m = o.h().m(String.valueOf(str));
if (m != null) {
return m.w == 8;
}
return false;
} catch (Exception unused) {
return false;
}
}
public boolean m() {
return this.W;
}
public int j(String str) {
return m(String.valueOf(str)).h;
}
public int k(String str) {
return m(str).j;
}
public int a(String str, boolean z) {
if (str == null) {
return a(z);
}
a m = o.h().m(str);
return m.x != -1 ? m.x : a(z);
}
public boolean l(String str) {
return m(String.valueOf(str)).u == 0;
}
public boolean b(int i) {
return i != 0 && o.h().m(String.valueOf(i)).l == 1;
}
public String n() {
if (TextUtils.isEmpty(this.M)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.M = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "ads_url", q);
} else {
this.M = this.ai.b("ads_url", q);
}
if (TextUtils.isEmpty(this.M)) {
this.M = q;
}
}
return this.M;
}
public String o() {
if (TextUtils.isEmpty(this.N)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.N = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "app_log_url", p);
} else {
this.N = this.ai.a("app_log_url");
}
if (TextUtils.isEmpty(this.N)) {
this.N = p;
}
}
return this.N;
}
public String p() {
if (TextUtils.isEmpty(this.O)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.O = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "apm_url", "");
} else {
this.O = this.ai.b("apm_url", "");
}
}
return this.O;
}
public String q() {
if (TextUtils.isEmpty(this.R)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.R = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "policy_url", r);
} else {
this.R = this.ai.b("policy_url", r);
}
}
return this.R;
}
public String r() {
if (TextUtils.isEmpty(this.T)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.T = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "consent_url", "https://lf-hs-sg.ibytedtos.com/obj/union-platform-i18n/union_platform_gdpr_607_en.html");
} else {
this.T = this.ai.b("consent_url", "https://lf-hs-sg.ibytedtos.com/obj/union-platform-i18n/union_platform_gdpr_607_en.html");
}
}
return this.T;
}
public String s() {
if (TextUtils.isEmpty(this.U)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.U = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "dyn_draw_engine_url", n);
} else {
this.U = this.ai.b("dyn_draw_engine_url", n);
}
}
return this.U;
}
public String t() {
if (TextUtils.isEmpty(this.V)) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.V = com.bytedance.sdk.openadsdk.multipro.d.a.b("tt_sdk_settings", "dc", (String) null);
} else {
this.V = this.ai.a("dc");
}
}
return this.V;
}
public int u() {
if (this.S == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.S = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "isGdprUser", -1);
} else {
this.S = this.ai.b("isGdprUser", -1);
}
}
return this.S;
}
public int c(int i) {
return m(String.valueOf(i)).b;
}
public int d(int i) {
return m(String.valueOf(i)).i;
}
public int v() {
if (this.J == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.J = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "vbtt", 5);
} else {
this.J = this.ai.b("vbtt", 5);
}
}
return this.J;
}
public int e(int i) {
return m(String.valueOf(i)).s;
}
public int f(int i) {
return m(String.valueOf(i)).k;
}
public boolean g(int i) {
return m(String.valueOf(i)).t;
}
public int h(int i) {
return m(String.valueOf(i)).y;
}
public a m(String str) {
a aVar = this.h.get(str);
return aVar == null ? p(str) : aVar;
}
private a p(String str) {
return a.a().a(str).k(1).l(!this.k.contains(str) ? 1 : 0).m(2).n(1).o(100).p(0).r(1).j(3).i(-1).h(2).s(1).d(-1).a(-1).t(2).u(5).a((JSONArray) null).a(false).v(0);
}
public void n(String str) {
this.k.add(str);
}
public boolean w() {
if (this.aa == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.aa = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_ad_enable", Integer.MAX_VALUE);
} else {
this.aa = this.ai.b("privacy_ad_enable", Integer.MAX_VALUE);
}
}
int i = this.aa;
if (i == 1) {
return true;
}
if (i == 0) {
return false;
}
int o = r.o();
return o == 1 || o == 2 || o == 3;
}
public int x() {
if (this.ab == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.ab = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_personalized_ad", Integer.MAX_VALUE);
} else {
this.ab = this.ai.b("privacy_personalized_ad", Integer.MAX_VALUE);
}
}
int i = this.ab;
if (i != Integer.MAX_VALUE) {
return i;
}
int o = r.o();
if (o == 1 || o == 2) {
return 2;
}
return o != 3 ? 0 : 1;
}
public boolean y() {
if (this.ac == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.ac = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_sladar_enable", Integer.MAX_VALUE);
} else {
this.ac = this.ai.b("privacy_sladar_enable", Integer.MAX_VALUE);
}
}
return this.ac == 1;
}
public boolean z() {
if (this.ae == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.ae = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_sec_enable", Integer.MAX_VALUE);
} else {
this.ae = this.ai.b("privacy_sec_enable", Integer.MAX_VALUE);
}
}
if ("VA".equalsIgnoreCase(t()) || r.o() == 3) {
return false;
}
int i = this.ae;
if (i == 1) {
return true;
}
if (i == 0) {
return false;
}
int o = r.o();
return o == 1 || o == 2 || o == 3;
}
public boolean A() {
if (this.af == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.af = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "privacy_debug_unlock", Integer.MAX_VALUE);
} else {
this.af = this.ai.b("privacy_debug_unlock", Integer.MAX_VALUE);
}
}
return this.af != 0;
}
public boolean o(String str) {
if (this.ag.size() == 0) {
int o = r.o();
if (o != 1) {
if (o != 2) {
if (o != 3) {
return false;
}
return "mcc".equals(str) || "mnc".equals(str);
} else if (!"mcc".equals(str) && !"mnc".equals(str)) {
return false;
}
}
return true;
}
return this.ag.contains(str);
}
public Set<String> a(Set<String> set) {
try {
if (set == null) {
return new HashSet();
}
HashSet hashSet = new HashSet();
for (String str : set) {
if (!TextUtils.isEmpty(str)) {
hashSet.add(str);
}
}
return hashSet;
} catch (Throwable unused) {
return new HashSet();
}
}
public boolean B() {
return this.ah;
}
public boolean C() {
if (this.ak == 2.14748365E9f) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.ak = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "global_rate", 1.0f);
} else {
this.ak = this.ai.b("global_rate", 1.0f);
}
}
return this.ak == 1.0f;
}
public boolean D() {
if (this.aj == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.aj = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "read_video_from_cache", 1);
} else {
this.aj = this.ai.b("read_video_from_cache", 1);
}
}
return this.aj == 1;
}
public int E() {
if (this.L == Integer.MAX_VALUE) {
if (com.bytedance.sdk.openadsdk.multipro.b.c()) {
this.L = com.bytedance.sdk.openadsdk.multipro.d.a.a("tt_sdk_settings", "webview_cache_count", 20);
} else {
this.L = this.ai.b("webview_cache_count", 20);
}
}
int i = this.L;
if (i < 0) {
return 20;
}
return i;
}
}