MD5 校验值:8df004f6dd2453bdf1d8ecd51cca1137
w.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package uf; import android.content.Context; import android.content.SharedPreferences; import android.text.TextUtils; import android.webkit.URLUtil; import com.correos.prepago_domain.DateUtils; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.json.JSONException; import org.json.JSONObject; public class w { private static w f30453g = null; private static String f30454h = null; private static String f30455i = null; private static boolean f30456j = false; public static String f30457k; private final SharedPreferences f30458a; private SharedPreferences.Editor f30459b; private final JSONObject f30460c = new JSONObject(); private final JSONObject f30461d = new JSONObject(); private final JSONObject f30462e = new JSONObject(); final j f30463f = new j(); private w(Context context) { SharedPreferences sharedPreferences = context.getSharedPreferences("branch_referral_shared_pref", 0); this.f30458a = sharedPreferences; this.f30459b = sharedPreferences.edit(); } static void a0(JSONObject jSONObject, j jVar) throws JSONException { if (jSONObject == null) { return; } JSONObject jSONObject2 = new JSONObject(); for (Map.Entry<String, ConcurrentHashMap<String, String>> entry : jVar.a().entrySet()) { JSONObject jSONObject3 = new JSONObject(); for (Map.Entry<String, String> entry2 : entry.getValue().entrySet()) { jSONObject3.put(entry2.getKey(), entry2.getValue()); } jSONObject2.put(entry.getKey(), jSONObject3); } jSONObject.put(s.PartnerData.b(), jSONObject2); } private void c() { String B = B(); String C = C(); String i10 = i(); String G = G(); this.f30459b.clear(); r0(B); s0(C); d0(i10); u0(G); this.f30459b.apply(); } public static String o() { if (!TextUtils.isEmpty(f30455i)) { return f30455i; } return "https://cdn.branch.io/"; } public static w z(Context context) { if (f30453g == null) { f30453g = new w(context); } return f30453g; } public int A(String str, int i10) { return this.f30458a.getInt(str, i10); } public void A0(String str) { C0("bnc_session_id", str); } public String B() { return S("bnc_link_click_id"); } public void B0(String str) { C0("bnc_session_params", str); } public String C() { return S("bnc_link_click_identifier"); } public void C0(String str, String str2) { this.f30459b.putString(str, str2).apply(); } public long D(String str) { return E(str, 0L); } public void D0(String str) { C0("bnc_user_url", str); } public long E(String str, long j10) { return this.f30458a.getLong(str, j10); } public int F() { return A("bnc_no_connection_retry_max", 3); } public String G() { return S("bnc_push_identifier"); } public String H() { String S = S("bnc_randomized_bundle_token"); if (!TextUtils.isEmpty(S) && !S.equals("bnc_no_value")) { return S; } return S("bnc_identity_id"); } public String I() { String S = S("bnc_randomized_device_token"); if (!TextUtils.isEmpty(S) && !S.equals("bnc_no_value")) { return S; } return S("bnc_device_fingerprint_id"); } public String J() { return S("bnc_randomly_generated_uuid"); } public String K() { String S = S("bnc_gclid_json_object"); if (S.equals("bnc_no_value")) { return "bnc_no_value"; } String str = null; try { JSONObject jSONObject = new JSONObject(S); if (((Long) jSONObject.get("bnc_gclid_expiration_date")).longValue() - System.currentTimeMillis() > 0) { str = jSONObject.getString("bnc_gclid_value"); } else { b0("bnc_gclid_json_object"); } } catch (JSONException e10) { b0("bnc_gclid_json_object"); e10.printStackTrace(); } return str; } public long L() { return E("bnc_gclid_expiration_window", 2592000000L); } public JSONObject M() { String S = S("bnc_referringUrlQueryParameters"); JSONObject jSONObject = new JSONObject(); if (!TextUtils.isEmpty(S) && !"bnc_no_value".equals(S)) { try { return new JSONObject(S); } catch (JSONException e10) { i.j("Unable to get URL query parameters as string: " + e10); return jSONObject; } } return jSONObject; } public JSONObject N() { return this.f30460c; } public int O() { return A("bnc_retry_count", 3); } public int P() { return A("bnc_retry_interval", DateUtils.ONE_SECOND_IN_MILLIS); } public String Q() { return S("bnc_session_id"); } public String R() { return S("bnc_session_params"); } public String S(String str) { return this.f30458a.getString(str, "bnc_no_value"); } public int T() { return A("bnc_timeout", 5500) + A("bnc_connect_timeout", 10000); } public int U() { return A("bnc_timeout", 5500); } public boolean V(String str) { return this.f30458a.contains(str); } public boolean W() { return m("bnc_limit_facebook_tracking"); } public boolean X() { if (V("bnc_dma_eea")) { return true; } return false; } public boolean Y() { return m("bnc_is_full_app_conversion"); } public void Z(JSONObject jSONObject) throws JSONException { a0(jSONObject, this.f30463f); } public void a(String str, String str2) { if (str == null) { return; } try { this.f30461d.putOpt(str, str2); } catch (JSONException e10) { i.a(e10.getMessage()); } } public void b() { b0("bnc_gclid_json_object"); } public void b0(String str) { this.f30459b.remove(str).apply(); } public void c0(String str) { C0("bnc_anon_id", str); } public String d() { if (URLUtil.isHttpsUrl(f30454h)) { return f30454h; } if (f30456j) { return "https://api3-eu.branch.io/"; } return "https://api2.branch.io/"; } public void d0(String str) { C0("bnc_app_link", str); } public boolean e() { return m("bnc_ad_network_callouts_disabled"); } public void e0(String str) { C0("bnc_google_play_install_referrer_extras", str); } public boolean f() { return m("bnc_dma_ad_personalization"); } public void f0(String str) { if (!TextUtils.isEmpty(str)) { C0("bnc_app_store_source", str); } } public boolean g() { return m("bnc_dma_ad_user_data"); } public void g0(String str) { C0("bnc_app_version", str); } public String h() { return S("bnc_anon_id"); } public void h0(String str, Boolean bool) { this.f30459b.putBoolean(str, bool.booleanValue()).apply(); } public String i() { return S("bnc_app_link"); } public boolean i0(String str) { if (!S("bnc_branch_key").equals(str)) { c(); C0("bnc_branch_key", str); if (c.L() != null) { c.L().f30219i.clear(); c.L().f30218h.e(); return true; } return true; } return false; } public String j() { return S("bnc_google_play_install_referrer_extras"); } public void j0(String str) { C0("bnc_external_intent_extra", str); } public String k() { return S("bnc_app_store_source"); } public void k0(String str) { C0("bnc_external_intent_uri", str); } public String l() { return S("bnc_app_version"); } public void l0(String str) { C0("bnc_google_search_install_identifier", str); } public boolean m(String str) { return this.f30458a.getBoolean(str, false); } public void m0(String str) { C0("bnc_identity", str); } public String n() { return S("bnc_branch_key"); } public void n0(String str) { C0("bnc_initial_referrer", str); } public void o0(String str) { C0("bnc_install_params", str); } public int p() { return A("bnc_connect_timeout", 10000); } public void p0(String str) { C0("bnc_install_referrer", str); } public boolean q() { return m("bnc_dma_eea"); } public void q0(boolean z10) { h0("bnc_is_full_app_conversion", Boolean.valueOf(z10)); } public String r() { return S("bnc_external_intent_extra"); } public void r0(String str) { C0("bnc_link_click_id", str); } public String s() { return S("bnc_external_intent_uri"); } public void s0(String str) { C0("bnc_link_click_identifier", str); } public String t() { return S("bnc_google_search_install_identifier"); } public void t0(String str, long j10) { this.f30459b.putLong(str, j10).apply(); } public String u() { return S("bnc_identity"); } public void u0(String str) { C0("bnc_push_identifier", str); } public String v() { return S("bnc_initial_referrer"); } public void v0(String str) { C0("bnc_randomized_bundle_token", str); } public String w(String str) { if (str == null) { return null; } try { return this.f30461d.get(str).toString(); } catch (JSONException e10) { i.a(e10.getMessage()); return null; } } public void w0(String str) { C0("bnc_randomized_device_token", str); } public JSONObject x() { return this.f30461d; } public void x0(String str) { C0("bnc_randomly_generated_uuid", str); } public String y() { return S("bnc_install_params"); } public void y0(JSONObject jSONObject) { if (jSONObject != null && jSONObject.length() != 0) { C0("bnc_referringUrlQueryParameters", jSONObject.toString()); } else { C0("bnc_referringUrlQueryParameters", "bnc_no_value"); } } public void z0(String str, String str2) { if (str == null) { return; } if (this.f30460c.has(str) && str2 == null) { this.f30460c.remove(str); } try { this.f30460c.put(str, str2); } catch (JSONException unused) { } } }