WeChat.apk(点击下载) / AppBrandGlobalSystemConfig.java
package com.tencent.mm.plugin.appbrand.config;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.LongSparseArray;
import bb.e;
import com.tencent.mm.R;
import com.tencent.mm.sdk.http.HttpWrapperBase;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.sdk.platformtools.Util;
import com.tencent.mm.sdk.platformtools.WeChatHosts;
import com.tencent.mm.vfs.q1;
import com.tencent.mm.vfs.u1;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import kh4.l;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import sc.d;
import wg4.b0;
public final class AppBrandGlobalSystemConfig implements Parcelable {
public static final Parcelable.Creator<AppBrandGlobalSystemConfig> CREATOR = new b();
/* renamed from: p0 reason: collision with root package name */
public static volatile AppBrandGlobalSystemConfig f85409p0;
/* renamed from: x0 reason: collision with root package name */
public static final AppBrandGlobalSystemConfig f85410x0;
public int A;
public int B;
public int C;
public int D;
public int E;
public String[] F;
public double G;
public int H;
public int I;
public WeAppSyncVersionSetting J;
public PackageManager K;
public long L;
public String[] M;
public int N;
public int P;
public int Q;
public String[] R;
public long S;
public int T;
public int U;
public String V;
public RelievedBuySetting W = new RelievedBuySetting();
public FlagshipSetting X = new FlagshipSetting();
public double Y;
public String Z;
/* renamed from: d reason: collision with root package name */
public int f85411d = Integer.MAX_VALUE;
/* renamed from: e reason: collision with root package name */
public int f85412e;
/* renamed from: f reason: collision with root package name */
public int f85413f;
/* renamed from: g reason: collision with root package name */
public int f85414g;
/* renamed from: h reason: collision with root package name */
public int f85415h;
/* renamed from: i reason: collision with root package name */
public int f85416i;
/* renamed from: j reason: collision with root package name */
public int f85417j;
/* renamed from: n reason: collision with root package name */
public int f85418n;
/* renamed from: o reason: collision with root package name */
public int f85419o;
/* renamed from: p reason: collision with root package name */
public int f85420p;
/* renamed from: q reason: collision with root package name */
public String f85421q;
/* renamed from: r reason: collision with root package name */
public String f85422r;
/* renamed from: s reason: collision with root package name */
public HttpSetting f85423s = new HttpSetting();
/* renamed from: t reason: collision with root package name */
public int[] f85424t;
/* renamed from: u reason: collision with root package name */
public int f85425u;
/* renamed from: v reason: collision with root package name */
public int f85426v;
/* renamed from: w reason: collision with root package name */
public int f85427w;
/* renamed from: x reason: collision with root package name */
public int f85428x;
/* renamed from: y reason: collision with root package name */
public int f85429y;
/* renamed from: z reason: collision with root package name */
public int f85430z;
public class a implements l<JSONObject, b0> {
public a() {
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kh4.l
public b0 invoke(JSONObject jSONObject) {
JSONObject jSONObject2 = jSONObject;
try {
LinkedList linkedList = new LinkedList();
d.b(jSONObject2.getJSONArray("list"), new c(this, linkedList));
AppBrandGlobalSystemConfig.this.J.f85462h.put(jSONObject2.getLong("UsedTime"), linkedList);
} catch (JSONException unused) {
}
return b0.f332794a;
}
}
public class b implements Parcelable.Creator<AppBrandGlobalSystemConfig> {
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // android.os.Parcelable.Creator
public AppBrandGlobalSystemConfig createFromParcel(Parcel parcel) {
return new AppBrandGlobalSystemConfig(parcel);
}
/* Return type fixed from 'java.lang.Object[]' to match base method */
@Override // android.os.Parcelable.Creator
public AppBrandGlobalSystemConfig[] newArray(int i15) {
return new AppBrandGlobalSystemConfig[i15];
}
}
public interface c {
/* renamed from: a reason: collision with root package name */
public static final String f85465a = (HttpWrapperBase.PROTOCAL_HTTPS + WeChatHosts.domainString(R.string.fyg) + "");
/* renamed from: b reason: collision with root package name */
public static final int[] f85466b = new int[0];
/* renamed from: c reason: collision with root package name */
public static final String[] f85467c = {"https://wx.qlogo.cn/"};
/* renamed from: d reason: collision with root package name */
public static final String[] f85468d = new String[0];
/* renamed from: e reason: collision with root package name */
public static final String[] f85469e = new String[0];
}
static {
AppBrandGlobalSystemConfig appBrandGlobalSystemConfig = new AppBrandGlobalSystemConfig();
f85410x0 = appBrandGlobalSystemConfig;
appBrandGlobalSystemConfig.f85412e = 5;
appBrandGlobalSystemConfig.f85413f = 1;
appBrandGlobalSystemConfig.f85414g = 300;
appBrandGlobalSystemConfig.f85415h = 50;
appBrandGlobalSystemConfig.f85416i = 1048576;
appBrandGlobalSystemConfig.f85417j = 1048576;
appBrandGlobalSystemConfig.f85418n = 20971520;
appBrandGlobalSystemConfig.f85419o = 200;
appBrandGlobalSystemConfig.f85420p = 5120;
appBrandGlobalSystemConfig.f85424t = c.f85466b;
appBrandGlobalSystemConfig.f85425u = 50;
appBrandGlobalSystemConfig.f85426v = 11;
appBrandGlobalSystemConfig.f85427w = 12;
appBrandGlobalSystemConfig.f85429y = 1800;
appBrandGlobalSystemConfig.f85430z = 307200;
appBrandGlobalSystemConfig.A = 25;
appBrandGlobalSystemConfig.B = 104857600;
appBrandGlobalSystemConfig.C = 314572800;
appBrandGlobalSystemConfig.D = 1;
appBrandGlobalSystemConfig.E = 50;
appBrandGlobalSystemConfig.F = c.f85467c;
appBrandGlobalSystemConfig.G = 0.0d;
appBrandGlobalSystemConfig.H = 60;
appBrandGlobalSystemConfig.I = 60;
appBrandGlobalSystemConfig.J = new WeAppSyncVersionSetting();
appBrandGlobalSystemConfig.K = new PackageManager();
appBrandGlobalSystemConfig.L = 30;
appBrandGlobalSystemConfig.M = c.f85468d;
appBrandGlobalSystemConfig.N = 10;
appBrandGlobalSystemConfig.Q = 86400;
appBrandGlobalSystemConfig.R = c.f85469e;
appBrandGlobalSystemConfig.S = 60;
appBrandGlobalSystemConfig.T = 1;
appBrandGlobalSystemConfig.U = 1;
appBrandGlobalSystemConfig.Z = null;
}
public AppBrandGlobalSystemConfig() {
}
public static String a() {
q1 q1Var = new q1(z80.b.i(), "wxaapp/res/");
if (!q1Var.m()) {
q1Var.F();
}
return new q1(q1Var, "AppService.conf").o();
}
/* JADX WARNING: Removed duplicated region for block: B:15:0x0032 A[DONT_GENERATE] */
/* JADX WARNING: Removed duplicated region for block: B:16:0x0034 */
public static AppBrandGlobalSystemConfig b() {
AppBrandGlobalSystemConfig appBrandGlobalSystemConfig;
String str;
synchronized (AppBrandGlobalSystemConfig.class) {
if (f85409p0 == null) {
appBrandGlobalSystemConfig = null;
try {
str = u1.M(a());
} catch (FileNotFoundException unused) {
((dc.a) e.a(dc.a.class)).SE();
} catch (IOException e15) {
Log.e("MicroMsg.AppBrandGlobalSystemConfig", "read config file, exp = %s", e15);
}
if (Util.isNullOrNil(str)) {
f85409p0 = c(str);
}
}
appBrandGlobalSystemConfig = f85409p0;
}
if (appBrandGlobalSystemConfig == null) {
return f85410x0;
}
return appBrandGlobalSystemConfig;
str = null;
if (Util.isNullOrNil(str)) {
}
}
/* JADX WARNING: Removed duplicated region for block: B:53:0x02bd A[Catch:{ Exception -> 0x042b }] */
/* JADX WARNING: Removed duplicated region for block: B:63:0x02fe A[Catch:{ Exception -> 0x042b }] */
/* JADX WARNING: Removed duplicated region for block: B:73:0x0343 A[Catch:{ Exception -> 0x042b }] */
/* JADX WARNING: Removed duplicated region for block: B:77:0x0364 */
/* JADX WARNING: Removed duplicated region for block: B:88:0x03d3 */
public static AppBrandGlobalSystemConfig c(String str) {
JSONArray optJSONArray;
JSONArray optJSONArray2;
JSONObject optJSONObject;
JSONObject optJSONObject2;
try {
JSONObject jSONObject = new JSONObject(str);
AppBrandGlobalSystemConfig appBrandGlobalSystemConfig = new AppBrandGlobalSystemConfig();
JSONObject optJSONObject3 = jSONObject.optJSONObject("HTTPSetting");
if (optJSONObject3 != null) {
String optString = optJSONObject3.optString("HTTPHeaderMode", "");
if (optString.equals("BlackList")) {
appBrandGlobalSystemConfig.f85423s.f85437d = 1;
} else if (optString.equals("WhiteList")) {
appBrandGlobalSystemConfig.f85423s.f85437d = 2;
}
JSONArray optJSONArray3 = optJSONObject3.optJSONArray("HeaderBlackList");
if (optJSONArray3 != null) {
appBrandGlobalSystemConfig.f85423s.f85438e = new ArrayList<>();
for (int i15 = 0; i15 < optJSONArray3.length(); i15++) {
appBrandGlobalSystemConfig.f85423s.f85438e.add(optJSONArray3.getString(i15));
}
}
JSONArray optJSONArray4 = optJSONObject3.optJSONArray("HeaderWhiteList");
if (optJSONArray4 != null) {
appBrandGlobalSystemConfig.f85423s.f85439f = new ArrayList<>();
for (int i16 = 0; i16 < optJSONArray4.length(); i16++) {
appBrandGlobalSystemConfig.f85423s.f85439f.add(optJSONArray4.getString(i16));
}
}
appBrandGlobalSystemConfig.f85423s.f85440g = optJSONObject3.optInt("WebsocketMaxTimeoutMS", -1);
appBrandGlobalSystemConfig.f85423s.f85441h = optJSONObject3.optInt("UploadMaxTimeoutMS", -1);
appBrandGlobalSystemConfig.f85423s.f85442i = optJSONObject3.optInt("DownloadMaxTimeoutMS", -1);
appBrandGlobalSystemConfig.f85423s.f85443j = optJSONObject3.optInt("RequestMaxTimeoutMS", -1);
appBrandGlobalSystemConfig.f85423s.f85444n = optJSONObject3.optString("HTTPHeaderReferer");
}
appBrandGlobalSystemConfig.J = new WeAppSyncVersionSetting();
JSONObject optJSONObject4 = jSONObject.optJSONObject("SyncVersionSetting");
if (optJSONObject4 != null) {
WeAppSyncVersionSetting weAppSyncVersionSetting = appBrandGlobalSystemConfig.J;
weAppSyncVersionSetting.f85458d = optJSONObject4.optLong("PullVersionInterval", weAppSyncVersionSetting.f85458d);
WeAppSyncVersionSetting weAppSyncVersionSetting2 = appBrandGlobalSystemConfig.J;
weAppSyncVersionSetting2.f85459e = optJSONObject4.optLong("PullVersionWxaUsageLastInterval", weAppSyncVersionSetting2.f85459e);
WeAppSyncVersionSetting weAppSyncVersionSetting3 = appBrandGlobalSystemConfig.J;
weAppSyncVersionSetting3.f85460f = optJSONObject4.optInt("PullVersionMaxCount", weAppSyncVersionSetting3.f85460f);
WeAppSyncVersionSetting weAppSyncVersionSetting4 = appBrandGlobalSystemConfig.J;
weAppSyncVersionSetting4.f85461g = optJSONObject4.optInt("PullVersionMaxCountPerRequest", weAppSyncVersionSetting4.f85461g);
if (optJSONObject4.has("PreDownloadList")) {
appBrandGlobalSystemConfig.J.f85462h = new LongSparseArray<>();
d.b(optJSONObject4.getJSONArray("PreDownloadList"), new a());
}
appBrandGlobalSystemConfig.J.f85463i = optJSONObject4.optLong("InvalidContactFreqBlockSeconds", 30);
}
appBrandGlobalSystemConfig.K = new PackageManager();
JSONObject optJSONObject5 = jSONObject.optJSONObject("PackageManager");
if (optJSONObject5 != null) {
PackageManager packageManager = appBrandGlobalSystemConfig.K;
packageManager.f85445d = optJSONObject5.optLong("CheckInterval", packageManager.f85445d);
PackageManager packageManager2 = appBrandGlobalSystemConfig.K;
packageManager2.f85446e = optJSONObject5.optLong("WithoutContactClearSeconds", packageManager2.f85446e);
PackageManager packageManager3 = appBrandGlobalSystemConfig.K;
packageManager3.f85447f = optJSONObject5.optLong("ClientStorageMinMB", packageManager3.f85447f);
PackageManager packageManager4 = appBrandGlobalSystemConfig.K;
packageManager4.f85448g = optJSONObject5.optInt("WholeClientStoragePercent", packageManager4.f85448g);
}
appBrandGlobalSystemConfig.f85421q = jSONObject.optString("CDNBaseURL");
appBrandGlobalSystemConfig.f85422r = jSONObject.optString("CDNPreConnectURL", c.f85465a);
appBrandGlobalSystemConfig.f85412e = jSONObject.optInt("AppMaxRunningCount", 5);
appBrandGlobalSystemConfig.f85413f = jSONObject.optInt("AppSharedResourceBackgroundRunningCount", 1);
appBrandGlobalSystemConfig.f85414g = jSONObject.optInt("TempFileSizeLimitTotal", 300);
appBrandGlobalSystemConfig.f85415h = jSONObject.optInt("DownloadFileSizeLimit", 50);
appBrandGlobalSystemConfig.f85416i = jSONObject.optInt("MaxLocalStorageItemSize", 1048576);
appBrandGlobalSystemConfig.f85417j = jSONObject.optInt("MaxGlobalStorageItemSize", 1048576);
appBrandGlobalSystemConfig.f85418n = jSONObject.optInt("MaxGlobalStorageSize", 20971520);
appBrandGlobalSystemConfig.f85419o = jSONObject.optInt("SingleWxaFileStorageCleanMbThreshold", 200);
appBrandGlobalSystemConfig.f85420p = jSONObject.optInt("GlobalWxaFileStorageCleanMbThreshold", 5120);
appBrandGlobalSystemConfig.B = jSONObject.optInt("NativeBufferSizeLimitByte", 104857600);
appBrandGlobalSystemConfig.C = jSONObject.optInt("NativeBufferQueueLimitByte", 314572800);
appBrandGlobalSystemConfig.Q = jSONObject.optInt("WeUseRecallInterval", 86400);
JSONArray optJSONArray5 = jSONObject.optJSONArray("SyncLaunchSceneList");
if (optJSONArray5 != null) {
appBrandGlobalSystemConfig.f85424t = new int[optJSONArray5.length()];
for (int i17 = 0; i17 < optJSONArray5.length(); i17++) {
appBrandGlobalSystemConfig.f85424t[i17] = optJSONArray5.optInt(i17, 0);
}
}
if (appBrandGlobalSystemConfig.f85424t == null) {
appBrandGlobalSystemConfig.f85424t = c.f85466b;
}
appBrandGlobalSystemConfig.f85425u = jSONObject.optInt("StarNumberLimitation", 50);
appBrandGlobalSystemConfig.f85426v = jSONObject.optInt("TaskBarItemCountLimitation", 11);
appBrandGlobalSystemConfig.f85427w = jSONObject.optInt("NewTaskBarRecentsItemCountLimitation", 12);
appBrandGlobalSystemConfig.f85428x = jSONObject.optInt("TaskBarSyncUsageRecordIntervalMinute", 20);
appBrandGlobalSystemConfig.f85429y = jSONObject.optInt("WidgetImageFlowLimitDuration", 1800);
appBrandGlobalSystemConfig.f85430z = jSONObject.optInt("WidgetImageFlowLimitMaxSize", 307200);
appBrandGlobalSystemConfig.A = jSONObject.optInt("WidgetDrawMinInterval", 25);
appBrandGlobalSystemConfig.D = jSONObject.optInt("GameMaxRunningCount", 1);
appBrandGlobalSystemConfig.E = jSONObject.optInt("GameDownloadFileSizeLimit", 50);
JSONArray optJSONArray6 = jSONObject.optJSONArray("SubContextImgDomain");
if (optJSONArray6 != null) {
if (optJSONArray6.length() != 0) {
appBrandGlobalSystemConfig.F = new String[optJSONArray6.length()];
for (int i18 = 0; i18 < optJSONArray6.length(); i18++) {
appBrandGlobalSystemConfig.F[i18] = optJSONArray6.optString(i18, null);
}
appBrandGlobalSystemConfig.G = jSONObject.optDouble("GamePerfCollectSamplePercentage", 0.0d);
appBrandGlobalSystemConfig.H = jSONObject.optInt("GamePerfCollectInterval", 60);
appBrandGlobalSystemConfig.I = jSONObject.optInt("PerformIndexReportGapInSeconds", 60);
appBrandGlobalSystemConfig.L = jSONObject.optLong("OpendataMaxFileStorageSize", 30);
optJSONArray = jSONObject.optJSONArray("PreDownloadUserNameBlackList");
if (optJSONArray != null) {
if (optJSONArray.length() > 0) {
appBrandGlobalSystemConfig.M = new String[optJSONArray.length()];
for (int i19 = 0; i19 < optJSONArray.length(); i19++) {
appBrandGlobalSystemConfig.M[i19] = optJSONArray.optString(i19, null);
}
appBrandGlobalSystemConfig.N = jSONObject.optInt("WXDataMaxRequestConcurrent", 10);
appBrandGlobalSystemConfig.P = jSONObject.optInt("WxaWebRenderingCacheMaxStorageSizeMB", 100);
optJSONArray2 = jSONObject.optJSONArray("UsePackageConfirmSubDescScopeList");
if (optJSONArray2 != null) {
if (optJSONArray2.length() > 0) {
appBrandGlobalSystemConfig.R = new String[optJSONArray2.length()];
for (int i25 = 0; i25 < optJSONArray2.length(); i25++) {
appBrandGlobalSystemConfig.R[i25] = optJSONArray2.optString(i25, null);
}
appBrandGlobalSystemConfig.S = jSONObject.optLong("BluetoothBackgroundTimeoutWithoutConnectionInSeconds", 60);
appBrandGlobalSystemConfig.T = jSONObject.optInt("AppMaxBackgroundBluetoothCount", 1);
appBrandGlobalSystemConfig.U = jSONObject.optInt("AppMaxBackgroundLaunchBluetoothCount", 1);
if (jSONObject.optJSONObject("AgeAppropriateIcon") != null) {
appBrandGlobalSystemConfig.V = jSONObject.optJSONObject("AgeAppropriateIcon").toString();
}
optJSONObject = jSONObject.optJSONObject("RelievedBuySetting");
appBrandGlobalSystemConfig.W = new RelievedBuySetting();
if (optJSONObject != null) {
JSONObject optJSONObject6 = optJSONObject.optJSONObject("icon_green");
if (optJSONObject6 != null) {
appBrandGlobalSystemConfig.W.f85449d = optJSONObject6.optString("url");
appBrandGlobalSystemConfig.W.f85450e = optJSONObject6.optInt("width", 0);
appBrandGlobalSystemConfig.W.f85451f = optJSONObject6.optInt("height", 0);
}
JSONObject optJSONObject7 = optJSONObject.optJSONObject("icon_gray");
if (optJSONObject7 != null) {
appBrandGlobalSystemConfig.W.f85452g = optJSONObject7.optString("url");
appBrandGlobalSystemConfig.W.f85453h = optJSONObject7.optInt("width", 0);
appBrandGlobalSystemConfig.W.f85454i = optJSONObject7.optInt("height", 0);
}
JSONObject optJSONObject8 = optJSONObject.optJSONObject("icon_big");
if (optJSONObject8 != null) {
appBrandGlobalSystemConfig.W.f85455j = optJSONObject8.optString("url");
appBrandGlobalSystemConfig.W.f85456n = optJSONObject8.optInt("width", 0);
appBrandGlobalSystemConfig.W.f85457o = optJSONObject8.optInt("height", 0);
}
}
optJSONObject2 = jSONObject.optJSONObject("FlagshipSetting");
appBrandGlobalSystemConfig.X = new FlagshipSetting();
if (optJSONObject2 != null) {
JSONObject optJSONObject9 = optJSONObject.optJSONObject("icon_dark");
if (optJSONObject9 != null) {
appBrandGlobalSystemConfig.X.f85431d = optJSONObject9.optString("url");
appBrandGlobalSystemConfig.X.f85432e = optJSONObject9.optInt("width", 0);
appBrandGlobalSystemConfig.X.f85433f = optJSONObject9.optInt("height", 0);
}
JSONObject optJSONObject10 = optJSONObject.optJSONObject("icon_light");
if (optJSONObject10 != null) {
appBrandGlobalSystemConfig.X.f85434g = optJSONObject10.optString("url");
appBrandGlobalSystemConfig.X.f85435h = optJSONObject10.optInt("width", 0);
appBrandGlobalSystemConfig.X.f85436i = optJSONObject10.optInt("height", 0);
}
}
appBrandGlobalSystemConfig.Y = jSONObject.optDouble("WhiteScreenDetectThresholdFloatNew", 0.949999988079071d);
String str2 = c.f85465a;
appBrandGlobalSystemConfig.Z = jSONObject.optString("TradeGuaranteeMenuSetting", null);
return appBrandGlobalSystemConfig;
}
}
appBrandGlobalSystemConfig.R = c.f85469e;
appBrandGlobalSystemConfig.S = jSONObject.optLong("BluetoothBackgroundTimeoutWithoutConnectionInSeconds", 60);
appBrandGlobalSystemConfig.T = jSONObject.optInt("AppMaxBackgroundBluetoothCount", 1);
appBrandGlobalSystemConfig.U = jSONObject.optInt("AppMaxBackgroundLaunchBluetoothCount", 1);
if (jSONObject.optJSONObject("AgeAppropriateIcon") != null) {
}
optJSONObject = jSONObject.optJSONObject("RelievedBuySetting");
appBrandGlobalSystemConfig.W = new RelievedBuySetting();
if (optJSONObject != null) {
}
optJSONObject2 = jSONObject.optJSONObject("FlagshipSetting");
appBrandGlobalSystemConfig.X = new FlagshipSetting();
if (optJSONObject2 != null) {
}
appBrandGlobalSystemConfig.Y = jSONObject.optDouble("WhiteScreenDetectThresholdFloatNew", 0.949999988079071d);
String str22 = c.f85465a;
appBrandGlobalSystemConfig.Z = jSONObject.optString("TradeGuaranteeMenuSetting", null);
return appBrandGlobalSystemConfig;
}
}
appBrandGlobalSystemConfig.M = c.f85468d;
appBrandGlobalSystemConfig.N = jSONObject.optInt("WXDataMaxRequestConcurrent", 10);
appBrandGlobalSystemConfig.P = jSONObject.optInt("WxaWebRenderingCacheMaxStorageSizeMB", 100);
optJSONArray2 = jSONObject.optJSONArray("UsePackageConfirmSubDescScopeList");
if (optJSONArray2 != null) {
}
appBrandGlobalSystemConfig.R = c.f85469e;
appBrandGlobalSystemConfig.S = jSONObject.optLong("BluetoothBackgroundTimeoutWithoutConnectionInSeconds", 60);
appBrandGlobalSystemConfig.T = jSONObject.optInt("AppMaxBackgroundBluetoothCount", 1);
appBrandGlobalSystemConfig.U = jSONObject.optInt("AppMaxBackgroundLaunchBluetoothCount", 1);
if (jSONObject.optJSONObject("AgeAppropriateIcon") != null) {
}
optJSONObject = jSONObject.optJSONObject("RelievedBuySetting");
appBrandGlobalSystemConfig.W = new RelievedBuySetting();
if (optJSONObject != null) {
}
optJSONObject2 = jSONObject.optJSONObject("FlagshipSetting");
appBrandGlobalSystemConfig.X = new FlagshipSetting();
if (optJSONObject2 != null) {
}
appBrandGlobalSystemConfig.Y = jSONObject.optDouble("WhiteScreenDetectThresholdFloatNew", 0.949999988079071d);
String str222 = c.f85465a;
appBrandGlobalSystemConfig.Z = jSONObject.optString("TradeGuaranteeMenuSetting", null);
return appBrandGlobalSystemConfig;
}
}
appBrandGlobalSystemConfig.F = c.f85467c;
appBrandGlobalSystemConfig.G = jSONObject.optDouble("GamePerfCollectSamplePercentage", 0.0d);
appBrandGlobalSystemConfig.H = jSONObject.optInt("GamePerfCollectInterval", 60);
appBrandGlobalSystemConfig.I = jSONObject.optInt("PerformIndexReportGapInSeconds", 60);
appBrandGlobalSystemConfig.L = jSONObject.optLong("OpendataMaxFileStorageSize", 30);
optJSONArray = jSONObject.optJSONArray("PreDownloadUserNameBlackList");
if (optJSONArray != null) {
}
appBrandGlobalSystemConfig.M = c.f85468d;
appBrandGlobalSystemConfig.N = jSONObject.optInt("WXDataMaxRequestConcurrent", 10);
appBrandGlobalSystemConfig.P = jSONObject.optInt("WxaWebRenderingCacheMaxStorageSizeMB", 100);
optJSONArray2 = jSONObject.optJSONArray("UsePackageConfirmSubDescScopeList");
if (optJSONArray2 != null) {
}
appBrandGlobalSystemConfig.R = c.f85469e;
appBrandGlobalSystemConfig.S = jSONObject.optLong("BluetoothBackgroundTimeoutWithoutConnectionInSeconds", 60);
appBrandGlobalSystemConfig.T = jSONObject.optInt("AppMaxBackgroundBluetoothCount", 1);
appBrandGlobalSystemConfig.U = jSONObject.optInt("AppMaxBackgroundLaunchBluetoothCount", 1);
if (jSONObject.optJSONObject("AgeAppropriateIcon") != null) {
}
optJSONObject = jSONObject.optJSONObject("RelievedBuySetting");
appBrandGlobalSystemConfig.W = new RelievedBuySetting();
if (optJSONObject != null) {
}
optJSONObject2 = jSONObject.optJSONObject("FlagshipSetting");
appBrandGlobalSystemConfig.X = new FlagshipSetting();
if (optJSONObject2 != null) {
}
appBrandGlobalSystemConfig.Y = jSONObject.optDouble("WhiteScreenDetectThresholdFloatNew", 0.949999988079071d);
String str2222 = c.f85465a;
appBrandGlobalSystemConfig.Z = jSONObject.optString("TradeGuaranteeMenuSetting", null);
return appBrandGlobalSystemConfig;
} catch (Exception e15) {
Log.e("MicroMsg.AppBrandGlobalSystemConfig", "parse exception = %s", Util.stackTraceToString(e15));
return null;
}
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int i15) {
parcel.writeInt(this.f85411d);
parcel.writeInt(this.f85412e);
parcel.writeInt(this.f85413f);
parcel.writeInt(this.f85414g);
parcel.writeInt(this.f85415h);
parcel.writeInt(this.f85416i);
parcel.writeInt(this.f85417j);
parcel.writeInt(this.f85418n);
parcel.writeInt(this.f85419o);
parcel.writeInt(this.f85420p);
parcel.writeString(this.f85421q);
parcel.writeString(this.f85422r);
parcel.writeParcelable(this.f85423s, i15);
parcel.writeIntArray(this.f85424t);
parcel.writeInt(this.f85425u);
parcel.writeInt(this.f85426v);
parcel.writeInt(this.f85429y);
parcel.writeInt(this.f85430z);
parcel.writeInt(this.A);
parcel.writeInt(this.B);
parcel.writeInt(this.C);
parcel.writeInt(this.D);
parcel.writeInt(this.E);
parcel.writeStringArray(this.F);
parcel.writeDouble(this.G);
parcel.writeInt(this.H);
parcel.writeParcelable(this.J, i15);
parcel.writeParcelable(this.K, i15);
parcel.writeLong(this.L);
parcel.writeStringArray(this.M);
parcel.writeInt(this.N);
parcel.writeInt(this.Q);
parcel.writeInt(this.P);
parcel.writeInt(this.I);
parcel.writeStringArray(this.R);
parcel.writeLong(this.S);
parcel.writeInt(this.T);
parcel.writeInt(this.U);
parcel.writeString(this.V);
parcel.writeParcelable(this.W, i15);
parcel.writeParcelable(this.X, i15);
parcel.writeDouble(this.Y);
parcel.writeString(this.Z);
}
public static final class HttpSetting implements Parcelable {
public static final Parcelable.Creator<HttpSetting> CREATOR = new a();
/* renamed from: d reason: collision with root package name */
public int f85437d = 0;
/* renamed from: e reason: collision with root package name */
public ArrayList<String> f85438e;
/* renamed from: f reason: collision with root package name */
public ArrayList<String> f85439f;
/* renamed from: g reason: collision with root package name */
public int f85440g;
/* renamed from: h reason: collision with root package name */
public int f85441h;
/* renamed from: i reason: collision with root package name */
public int f85442i;
/* renamed from: j reason: collision with root package name */
public int f85443j;
/* renamed from: n reason: collision with root package name */
public String f85444n;
public class a implements Parcelable.Creator<HttpSetting> {
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // android.os.Parcelable.Creator
public HttpSetting createFromParcel(Parcel parcel) {
return new HttpSetting(parcel);
}
/* Return type fixed from 'java.lang.Object[]' to match base method */
@Override // android.os.Parcelable.Creator
public HttpSetting[] newArray(int i15) {
return new HttpSetting[i15];
}
}
public HttpSetting() {
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int i15) {
parcel.writeInt(this.f85437d);
parcel.writeStringList(this.f85438e);
parcel.writeStringList(this.f85439f);
parcel.writeInt(this.f85440g);
parcel.writeInt(this.f85441h);
parcel.writeInt(this.f85442i);
parcel.writeInt(this.f85443j);
parcel.writeString(this.f85444n);
}
public HttpSetting(Parcel parcel) {
this.f85437d = parcel.readInt();
this.f85438e = parcel.createStringArrayList();
this.f85439f = parcel.createStringArrayList();
this.f85440g = parcel.readInt();
this.f85441h = parcel.readInt();
this.f85442i = parcel.readInt();
this.f85443j = parcel.readInt();
this.f85444n = parcel.readString();
}
}
public static final class PackageManager implements Parcelable {
public static final Parcelable.Creator<PackageManager> CREATOR = new a();
/* renamed from: d reason: collision with root package name */
public long f85445d = 86400;
/* renamed from: e reason: collision with root package name */
public long f85446e = 864000;
/* renamed from: f reason: collision with root package name */
public long f85447f = 256;
/* renamed from: g reason: collision with root package name */
public int f85448g = 5;
public class a implements Parcelable.Creator<PackageManager> {
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // android.os.Parcelable.Creator
public PackageManager createFromParcel(Parcel parcel) {
return new PackageManager(parcel);
}
/* Return type fixed from 'java.lang.Object[]' to match base method */
@Override // android.os.Parcelable.Creator
public PackageManager[] newArray(int i15) {
return new PackageManager[i15];
}
}
public PackageManager() {
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int i15) {
parcel.writeLong(this.f85445d);
parcel.writeLong(this.f85446e);
parcel.writeLong(this.f85447f);
parcel.writeInt(this.f85448g);
}
public PackageManager(Parcel parcel) {
this.f85445d = parcel.readLong();
this.f85446e = parcel.readLong();
this.f85447f = parcel.readLong();
this.f85448g = parcel.readInt();
}
}
public static final class WeAppSyncVersionSetting implements Parcelable {
public static final Parcelable.Creator<WeAppSyncVersionSetting> CREATOR = new a();
/* renamed from: d reason: collision with root package name */
public long f85458d = 21600;
/* renamed from: e reason: collision with root package name */
public long f85459e = 604800;
/* renamed from: f reason: collision with root package name */
public int f85460f = 1000;
/* renamed from: g reason: collision with root package name */
public int f85461g = 100;
/* renamed from: h reason: collision with root package name */
public LongSparseArray<List<String>> f85462h;
/* renamed from: i reason: collision with root package name */
public long f85463i = 30;
public class a implements Parcelable.Creator<WeAppSyncVersionSetting> {
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // android.os.Parcelable.Creator
public WeAppSyncVersionSetting createFromParcel(Parcel parcel) {
return new WeAppSyncVersionSetting(parcel);
}
/* Return type fixed from 'java.lang.Object[]' to match base method */
@Override // android.os.Parcelable.Creator
public WeAppSyncVersionSetting[] newArray(int i15) {
return new WeAppSyncVersionSetting[i15];
}
}
public WeAppSyncVersionSetting() {
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int i15) {
parcel.writeLong(this.f85458d);
parcel.writeLong(this.f85459e);
parcel.writeInt(this.f85460f);
parcel.writeInt(this.f85461g);
LongSparseArray<List<String>> longSparseArray = this.f85462h;
if (longSparseArray == null || longSparseArray.size() == 0) {
parcel.writeInt(-1);
} else {
parcel.writeInt(this.f85462h.size());
for (int i16 = 0; i16 < this.f85462h.size(); i16++) {
parcel.writeLong(this.f85462h.keyAt(i16));
parcel.writeStringList(this.f85462h.valueAt(i16));
}
}
parcel.writeLong(this.f85463i);
}
public WeAppSyncVersionSetting(Parcel parcel) {
this.f85458d = parcel.readLong();
this.f85459e = parcel.readLong();
this.f85460f = parcel.readInt();
this.f85461g = parcel.readInt();
int readInt = parcel.readInt();
if (readInt > 0) {
this.f85462h = new LongSparseArray<>(readInt);
for (int i15 = 0; i15 < readInt; i15++) {
long readLong = parcel.readLong();
LinkedList linkedList = new LinkedList();
parcel.readStringList(linkedList);
this.f85462h.put(readLong, linkedList);
}
}
this.f85463i = parcel.readLong();
}
}
public AppBrandGlobalSystemConfig(Parcel parcel) {
this.f85411d = parcel.readInt();
this.f85412e = parcel.readInt();
this.f85413f = parcel.readInt();
this.f85414g = parcel.readInt();
this.f85415h = parcel.readInt();
this.f85416i = parcel.readInt();
this.f85417j = parcel.readInt();
this.f85418n = parcel.readInt();
this.f85419o = parcel.readInt();
this.f85420p = parcel.readInt();
this.f85421q = parcel.readString();
this.f85422r = parcel.readString();
this.f85423s = (HttpSetting) parcel.readParcelable(HttpSetting.class.getClassLoader());
this.f85424t = parcel.createIntArray();
this.f85425u = parcel.readInt();
this.f85426v = parcel.readInt();
this.f85429y = parcel.readInt();
this.f85430z = parcel.readInt();
this.A = parcel.readInt();
this.B = parcel.readInt();
this.C = parcel.readInt();
this.D = parcel.readInt();
this.E = parcel.readInt();
this.F = parcel.createStringArray();
this.G = parcel.readDouble();
this.H = parcel.readInt();
this.J = (WeAppSyncVersionSetting) parcel.readParcelable(WeAppSyncVersionSetting.class.getClassLoader());
this.K = (PackageManager) parcel.readParcelable(PackageManager.class.getClassLoader());
this.L = parcel.readLong();
this.M = parcel.createStringArray();
this.N = parcel.readInt();
this.Q = parcel.readInt();
this.P = parcel.readInt();
this.I = parcel.readInt();
this.R = parcel.createStringArray();
this.S = parcel.readLong();
this.T = parcel.readInt();
this.U = parcel.readInt();
this.V = parcel.readString();
this.W = (RelievedBuySetting) parcel.readParcelable(RelievedBuySetting.class.getClassLoader());
this.X = (FlagshipSetting) parcel.readParcelable(FlagshipSetting.class.getClassLoader());
this.Y = parcel.readDouble();
this.Z = parcel.readString();
}
public static final class FlagshipSetting implements Parcelable {
public static final Parcelable.Creator<FlagshipSetting> CREATOR = new a();
/* renamed from: d reason: collision with root package name */
public String f85431d = "";
/* renamed from: e reason: collision with root package name */
public int f85432e = 0;
/* renamed from: f reason: collision with root package name */
public int f85433f = 0;
/* renamed from: g reason: collision with root package name */
public String f85434g = "";
/* renamed from: h reason: collision with root package name */
public int f85435h = 0;
/* renamed from: i reason: collision with root package name */
public int f85436i = 0;
public class a implements Parcelable.Creator<FlagshipSetting> {
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // android.os.Parcelable.Creator
public FlagshipSetting createFromParcel(Parcel parcel) {
return new FlagshipSetting(parcel);
}
/* Return type fixed from 'java.lang.Object[]' to match base method */
@Override // android.os.Parcelable.Creator
public FlagshipSetting[] newArray(int i15) {
return new FlagshipSetting[i15];
}
}
public FlagshipSetting() {
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int i15) {
String str = this.f85431d;
String str2 = "";
if (str == null) {
str = str2;
}
parcel.writeString(str);
parcel.writeInt(this.f85432e);
parcel.writeInt(this.f85433f);
String str3 = this.f85434g;
if (str3 != null) {
str2 = str3;
}
parcel.writeString(str2);
parcel.writeInt(this.f85435h);
parcel.writeInt(this.f85436i);
}
public FlagshipSetting(Parcel parcel) {
this.f85431d = parcel.readString();
this.f85432e = parcel.readInt();
this.f85433f = parcel.readInt();
this.f85434g = parcel.readString();
this.f85435h = parcel.readInt();
this.f85436i = parcel.readInt();
}
}
public static final class RelievedBuySetting implements Parcelable {
public static final Parcelable.Creator<RelievedBuySetting> CREATOR = new a();
/* renamed from: d reason: collision with root package name */
public String f85449d = "";
/* renamed from: e reason: collision with root package name */
public int f85450e = 0;
/* renamed from: f reason: collision with root package name */
public int f85451f = 0;
/* renamed from: g reason: collision with root package name */
public String f85452g = "";
/* renamed from: h reason: collision with root package name */
public int f85453h = 0;
/* renamed from: i reason: collision with root package name */
public int f85454i = 0;
/* renamed from: j reason: collision with root package name */
public String f85455j = "";
/* renamed from: n reason: collision with root package name */
public int f85456n = 0;
/* renamed from: o reason: collision with root package name */
public int f85457o = 0;
public class a implements Parcelable.Creator<RelievedBuySetting> {
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // android.os.Parcelable.Creator
public RelievedBuySetting createFromParcel(Parcel parcel) {
return new RelievedBuySetting(parcel);
}
/* Return type fixed from 'java.lang.Object[]' to match base method */
@Override // android.os.Parcelable.Creator
public RelievedBuySetting[] newArray(int i15) {
return new RelievedBuySetting[i15];
}
}
public RelievedBuySetting() {
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel parcel, int i15) {
String str = this.f85449d;
String str2 = "";
if (str == null) {
str = str2;
}
parcel.writeString(str);
parcel.writeInt(this.f85450e);
parcel.writeInt(this.f85451f);
String str3 = this.f85452g;
if (str3 == null) {
str3 = str2;
}
parcel.writeString(str3);
parcel.writeInt(this.f85453h);
parcel.writeInt(this.f85454i);
String str4 = this.f85455j;
if (str4 != null) {
str2 = str4;
}
parcel.writeString(str2);
parcel.writeInt(this.f85456n);
parcel.writeInt(this.f85457o);
}
public RelievedBuySetting(Parcel parcel) {
this.f85449d = parcel.readString();
this.f85450e = parcel.readInt();
this.f85451f = parcel.readInt();
this.f85452g = parcel.readString();
this.f85453h = parcel.readInt();
this.f85454i = parcel.readInt();
this.f85455j = parcel.readString();
this.f85456n = parcel.readInt();
this.f85457o = parcel.readInt();
}
}
}