package com.tencent.mm.app;

import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import com.google.android.gms.common.util.CrashUtils.ErrorDialogData;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.f;
import com.tencent.mm.ai.m;
import com.tencent.mm.ai.v.a;
import com.tencent.mm.booter.notification.a.g;
import com.tencent.mm.compatible.loader.e;
import com.tencent.mm.console.Shell;
import com.tencent.mm.g.a.ak;
import com.tencent.mm.g.a.jl;
import com.tencent.mm.model.ae;
import com.tencent.mm.model.am;
import com.tencent.mm.model.an;
import com.tencent.mm.model.aw;
import com.tencent.mm.network.c;
import com.tencent.mm.plugin.report.service.IKVReportNotify;
import com.tencent.mm.sdk.platformtools.aa;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ah;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.storage.be.b;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.ui.tools.AccountDeletedAlphaAlertUI;
import com.tencent.mm.ui.tools.NewTaskUI;
import com.tencent.smtt.sdk.TbsMediaPlayer$TbsMediaPlayerListener;
import com.tencent.ytcommon.BuildConfig;
import java.util.Locale;

public final class WorkerProfile extends e implements f, a, am, com.tencent.mm.model.f.a, IKVReportNotify {
    public static final String ceo = (ah.getPackageName());
    private static WorkerProfile cfI;
    private static int cfX = -1;
    private final int ID = 2130706432;
    private final Shell cfG = new Shell();
    private final com.tencent.mm.console.a cfH = new com.tencent.mm.console.a();
    private an cfJ;
    private b cfK;
    private ae cfL;
    public boolean cfM = false;
    @Deprecated
    public boolean cfN;
    public boolean cfO;
    private final int cfP = 0;
    private final int cfQ = 1;
    private int cfR;
    private StringBuilder cfS = new StringBuilder();
    private g cfT;
    private com.tencent.mm.h.b cfU;
    public final y cfV = new y();
    public final x cfW = new x();
    private boolean cfY = false;
    protected Locale locale;

    static /* synthetic */ int Cd() {
        int i = cfX;
        cfX = i + 1;
        return i;
    }

    static {
        AppMethodBeat.i(15558);
        AppMethodBeat.o(15558);
    }

    public WorkerProfile() {
        AppMethodBeat.i(15547);
        cfI = this;
        AppMethodBeat.o(15547);
    }

    public static WorkerProfile Ca() {
        return cfI;
    }

    /* JADX WARNING: Removed duplicated region for block: B:51:0x01f9  */
    /* JADX WARNING: Removed duplicated region for block: B:109:0x07af  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x020f  */
    /* JADX WARNING: Removed duplicated region for block: B:57:0x0229  */
    /* JADX WARNING: Removed duplicated region for block: B:60:0x0269  */
    /* JADX WARNING: Removed duplicated region for block: B:65:0x02f7  */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x0466  */
    /* JADX WARNING: Removed duplicated region for block: B:71:0x062b  */
    /* JADX WARNING: Removed duplicated region for block: B:88:0x0701 A:{Splitter:B:10:0x00fa, ExcHandler: NameNotFoundException (e android.content.pm.PackageManager$NameNotFoundException)} */
    /* JADX WARNING: Removed duplicated region for block: B:88:0x0701 A:{Splitter:B:10:0x00fa, ExcHandler: NameNotFoundException (e android.content.pm.PackageManager$NameNotFoundException)} */
    /* JADX WARNING: Missing block: B:89:0x0702, code skipped:
            com.tencent.mm.sdk.platformtools.ab.e("MicroMsg.WorkerProfile", "initChannelUtil NameNotFoundException");
     */
    public final void onCreate() {
        /*
        r12 = this;
        r0 = 15548; // 0x3cbc float:2.1787E-41 double:7.6817E-320;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r0);
        r10 = java.lang.System.currentTimeMillis();
        r0 = "MicroMsg.WorkerProfile";
        r1 = "workerProfile onCreate, step 1";
        com.tencent.mm.sdk.platformtools.ab.v(r0, r1);
        r0 = "MicroMsg.WorkerProfile";
        r1 = new java.lang.StringBuilder;
        r2 = "start time check onCreate proc:%s pid:%d";
        r1.<init>(r2);
        r2 = ceo;
        r1 = r1.append(r2);
        r2 = android.os.Process.myPid();
        r1 = r1.append(r2);
        r1 = r1.toString();
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);
        r0 = "MicroMsg.WorkerProfile";
        r1 = "appOnCreate start getAccStg %b, thread name %s";
        r2 = 2;
        r2 = new java.lang.Object[r2];
        r3 = 0;
        r4 = java.lang.Boolean.TRUE;
        r2[r3] = r4;
        r3 = 1;
        r4 = java.lang.Thread.currentThread();
        r4 = r4.getName();
        r2[r3] = r4;
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1, r2);
        r2 = java.lang.System.currentTimeMillis();
        r0 = com.tencent.mm.model.d.a.abl();
        r1 = ceo;
        com.tencent.mm.model.d.a.ceK = r1;
        r1 = com.tencent.mm.sdk.platformtools.ah.xzd;
        if (r1 == 0) goto L_0x0075;
    L_0x005e:
        r1 = com.tencent.mm.model.d.a.foO;
        r1 = com.tencent.mm.a.e.deleteFile(r1);
        r4 = "MicroMsg.HandlerTraceManager";
        r5 = "trace setup delete old file ret: ";
        r1 = java.lang.String.valueOf(r1);
        r1 = r5.concat(r1);
        com.tencent.mm.sdk.platformtools.ab.i(r4, r1);
    L_0x0075:
        r4 = java.lang.System.currentTimeMillis();
        r0.fpd = r4;
        r1 = new com.tencent.mm.model.d.a$1;
        r1.<init>(r0);
        com.tencent.mm.sdk.platformtools.ak.setLogCallback(r1);
        r1 = "NetsceneQueue forbid in ";
        r4 = new com.tencent.mm.model.d.a$2;
        r4.<init>(r0);
        com.tencent.mm.sdk.platformtools.ao.a(r1, r4);
        r0 = com.tencent.mm.model.aw.Rg();
        r1 = -1;
        r0.a(r1, r12);
        com.tencent.mm.ai.v.a(r12);
        r0 = com.tencent.mm.model.aw.ZN();
        r0.fkz = r12;
        r0 = new com.tencent.mm.app.WorkerProfile$12;
        r0.<init>(r12);
        com.tencent.mm.model.aw.a(r0);
        r0 = com.tencent.mm.model.aw.getSysCmdMsgExtension();
        r1 = "getkvidkeystg";
        r4 = new com.tencent.mm.app.WorkerProfile$23;
        r4.<init>(r12);
        r5 = 1;
        r0.a(r1, r4, r5);
        r0 = r12.app;
        com.tencent.mm.sdk.platformtools.g.gj(r0);
        com.tencent.mm.sdk.platformtools.g.gk(r0);
        r1 = r0.getPackageManager();
        r0 = r0.getPackageName();	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r4 = 0;
        r0 = r1.getPackageInfo(r0, r4);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r0 = r0.applicationInfo;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r0.sourceDir;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r0 = "MicroMsg.WorkerProfile";
        r4 = "initChannelUtil sourceFile = %s";
        r5 = 1;
        r5 = new java.lang.Object[r5];	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r6 = 0;
        r5[r6] = r1;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.ab.i(r0, r4, r5);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r0 = com.tencent.mm.a.e.cs(r1);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r4 = "MicroMsg.WorkerProfile";
        r5 = "checkApkExternal, fileSize = %s";
        r6 = 1;
        r6 = new java.lang.Object[r6];	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r7 = 0;
        r8 = java.lang.Integer.valueOf(r0);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r6[r7] = r8;	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        com.tencent.mm.sdk.platformtools.ab.i(r4, r5, r6);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r4 = 8;
        if (r0 >= r4) goto L_0x06c6;
    L_0x00fa:
        r0 = com.tencent.mm.c.a.cL(r1);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r0 == 0) goto L_0x074b;
    L_0x0100:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x074b;
    L_0x0104:
        r1 = "MicroMsg.WorkerProfile";
        r4 = "apk external info not null";
        com.tencent.mm.sdk.platformtools.ab.i(r1, r4);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdf;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x0122;
    L_0x0113:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdf;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.g.cdf = r1;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = "MicroMsg.WorkerProfile";
        r4 = "read channelId from apk external";
        com.tencent.mm.sdk.platformtools.ab.i(r1, r4);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
    L_0x0122:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdh;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x0143;
    L_0x0128:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdh;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.g.cdh = r1;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = "MicroMsg.WorkerProfile";
        r4 = "ext.updateMode = %s";
        r5 = 1;
        r5 = new java.lang.Object[r5];	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r6 = 0;
        r7 = com.tencent.mm.sdk.platformtools.g.cdh;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r7 = java.lang.Integer.valueOf(r7);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r5[r6] = r7;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.ab.i(r1, r4, r5);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
    L_0x0143:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdi;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x0154;
    L_0x0149:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdi;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r4 = 0;
        r1 = com.tencent.mm.sdk.platformtools.bo.getInt(r1, r4);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.g.xyb = r1;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
    L_0x0154:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdj;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x0160;
    L_0x015a:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdj;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.g.xyc = r1;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
    L_0x0160:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdg;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x016c;
    L_0x0166:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdg;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.g.cdg = r1;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
    L_0x016c:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdm;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x018d;
    L_0x0172:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdm;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.g.xyg = r1;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = "MicroMsg.WorkerProfile";
        r4 = "ext.isNokiaol = %s";
        r5 = 1;
        r5 = new java.lang.Object[r5];	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r6 = 0;
        r7 = com.tencent.mm.sdk.platformtools.g.xyg;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r7 = java.lang.Boolean.valueOf(r7);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r5[r6] = r7;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.ab.i(r1, r4, r5);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
    L_0x018d:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdl;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x01ae;
    L_0x0193:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdl;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.g.cdl = r1;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = "MicroMsg.WorkerProfile";
        r4 = "ext.autoAddAccount = %s";
        r5 = 1;
        r5 = new java.lang.Object[r5];	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r6 = 0;
        r7 = com.tencent.mm.sdk.platformtools.g.cdl;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r7 = java.lang.Integer.valueOf(r7);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r5[r6] = r7;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.ab.i(r1, r4, r5);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
    L_0x01ae:
        r1 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r1 = r1.cdk;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        if (r1 == 0) goto L_0x01cf;
    L_0x01b4:
        r0 = r0.cdc;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r0 = r0.cdk;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.g.xyf = r0;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r0 = "MicroMsg.WorkerProfile";
        r1 = "ext.shouldShowGprsAlert = %s";
        r4 = 1;
        r4 = new java.lang.Object[r4];	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r5 = 0;
        r6 = com.tencent.mm.sdk.platformtools.g.xyf;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r6 = java.lang.Boolean.valueOf(r6);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r4[r5] = r6;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1, r4);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
    L_0x01cf:
        com.tencent.mm.app.d.Ba();
        r0 = r12.app;
        r0 = com.tencent.mm.booter.d.bo(r0);
        if (r0 == 0) goto L_0x01e3;
    L_0x01da:
        r1 = r0.ebO;
        r4 = -1;
        if (r1 == r4) goto L_0x01e3;
    L_0x01df:
        r0 = r0.ebO;
        com.tencent.mm.sdk.platformtools.g.cdf = r0;
    L_0x01e3:
        r0 = r12.app;
        r0 = r0.getApplicationContext();
        r1 = com.tencent.mm.sdk.platformtools.g.cdf;
        r4 = com.tencent.mm.protocal.d.vxo;
        if (r0 == 0) goto L_0x01f5;
    L_0x01ef:
        if (r1 < 0) goto L_0x01f5;
    L_0x01f1:
        r5 = 637534208; // 0x26000000 float:4.440892E-16 double:3.1498375E-315;
        if (r4 >= r5) goto L_0x077b;
    L_0x01f5:
        r0 = com.tencent.mm.sdk.platformtools.g.xyb;
        if (r0 <= 0) goto L_0x01fc;
    L_0x01f9:
        r0 = 1;
        com.tencent.mm.sdk.platformtools.g.xyd = r0;
    L_0x01fc:
        com.tencent.mm.bp.d.dlL();
        r1 = new java.lang.StringBuilder;
        r0 = "android-";
        r1.<init>(r0);
        r0 = com.tencent.mm.sdk.platformtools.g.cdg;
        r0 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r0);
        if (r0 == 0) goto L_0x07af;
    L_0x020f:
        r0 = android.os.Build.VERSION.SDK_INT;
        r0 = java.lang.Integer.valueOf(r0);
    L_0x0215:
        r0 = r1.append(r0);
        r0 = r0.toString();
        com.tencent.mm.protocal.d.eSg = r0;
        r0 = com.tencent.mm.sdk.a.b.dnP();
        r0 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r0);
        if (r0 != 0) goto L_0x023f;
    L_0x0229:
        r0 = new java.lang.StringBuilder;
        r1 = "android-";
        r0.<init>(r1);
        r1 = com.tencent.mm.sdk.a.b.dnP();
        r0 = r0.append(r1);
        r0 = r0.toString();
        com.tencent.mm.protocal.d.eSg = r0;
    L_0x023f:
        r0 = "MicroMsg.WorkerProfile";
        r1 = "set device type :%s  %s";
        r4 = 2;
        r4 = new java.lang.Object[r4];
        r5 = 0;
        r6 = com.tencent.mm.protocal.d.eSg;
        r4[r5] = r6;
        r5 = 1;
        r6 = com.tencent.mm.sdk.a.b.dnP();
        r4[r5] = r6;
        com.tencent.mm.sdk.platformtools.ab.v(r0, r1, r4);
        r0 = r12.app;
        r0 = r0.getBaseContext();
        r0 = com.tencent.mm.ui.MMActivity.initLanguage(r0);
        r12.locale = r0;
        r0 = com.tencent.mm.sdk.a.b.dnO();
        if (r0 == 0) goto L_0x0281;
    L_0x0269:
        r0 = r12.cfG;
        r1 = com.tencent.mm.sdk.platformtools.ah.getContext();
        r4 = r0.ewv;
        if (r4 != 0) goto L_0x0281;
    L_0x0273:
        r4 = new com.tencent.mm.console.Shell$Receiver;
        r4.<init>();
        r0.ewv = r4;
        r0 = r0.ewv;
        r4 = com.tencent.mm.console.Shell.ewx;
        r1.registerReceiver(r0, r4);
    L_0x0281:
        r0 = r12.cfH;
        r1 = com.tencent.mm.sdk.b.a.xxA;
        r1.c(r0);
        r0 = new com.tencent.mm.app.c;
        r0.<init>();
        r1 = "MicroMsg.AvatarDrawable";
        r4 = "setLoader";
        r5 = java.lang.String.valueOf(r0);
        r4 = r4.concat(r5);
        com.tencent.mm.sdk.platformtools.ab.d(r1, r4);
        com.tencent.mm.pluginsdk.ui.a.b.pqK = r0;
        r0 = new com.tencent.mm.app.WorkerProfile$26;
        r0.<init>(r12);
        com.tencent.mm.pluginsdk.f.e.vdx = r0;
        r0 = com.tencent.mm.ai.i.class;
        r1 = new com.tencent.mm.kernel.c.e;
        r4 = r12.cfW;
        r1.<init>(r4);
        com.tencent.mm.kernel.g.a(r0, r1);
        r0 = com.tencent.mm.pluginsdk.h.class;
        r1 = new com.tencent.mm.kernel.c.e;
        r4 = r12.cfW;
        r1.<init>(r4);
        com.tencent.mm.kernel.g.a(r0, r1);
        r0 = com.tencent.mm.pluginsdk.j.class;
        r1 = new com.tencent.mm.kernel.c.e;
        r4 = r12.cfW;
        r1.<init>(r4);
        com.tencent.mm.kernel.g.a(r0, r1);
        r0 = com.tencent.mm.plugin.brandservice.a.a.class;
        r1 = new com.tencent.mm.plugin.bbom.d;
        r1.<init>();
        com.tencent.mm.kernel.g.a(r0, r1);
        r0 = com.tencent.mm.pluginsdk.q.class;
        r1 = new com.tencent.mm.app.plugin.d;
        r1.<init>();
        com.tencent.mm.kernel.g.a(r0, r1);
        r0 = com.tencent.mm.choosemsgfile.compat.b.class;
        r1 = new com.tencent.mm.ui.chatting.b.a;
        r1.<init>();
        com.tencent.mm.kernel.g.a(r0, r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.plugin.b.a$a;
        r1.<init>();
        r0.c(r1);
        r0 = r12.cfJ;
        if (r0 != 0) goto L_0x0300;
    L_0x02f7:
        r0 = new com.tencent.mm.booter.notification.b;
        r1 = r12.app;
        r0.<init>(r1);
        r12.cfJ = r0;
    L_0x0300:
        r0 = new com.tencent.mm.h.b;
        r0.<init>();
        r12.cfU = r0;
        r0 = r12.cfU;
        r1 = "MicroMsg.BroadcastController";
        r4 = "summerdiz init";
        com.tencent.mm.sdk.platformtools.ab.i(r1, r4);
        r1 = com.tencent.mm.sdk.b.a.xxA;
        r0 = r0.eeX;
        r1.c(r0);
        r0 = com.tencent.mm.kiss.a.b.SM();
        r1 = com.tencent.mm.sdk.b.a.xxA;
        r4 = new com.tencent.mm.kiss.a.b$2;
        r4.<init>(r0);
        r1.c(r4);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.plugin.account.bind.ui.e;
        r1.<init>();
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$30;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$31;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$32;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$33;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$34;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$35;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$2;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$3;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$4;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$5;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$6;
        r1.<init>();
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$7;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$8;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$9;
        r1.<init>();
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$10;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$11;
        r1.<init>();
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$13;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$14;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$15;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$16;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$17;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$18;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$19;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$20;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$21;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$22;
        r1.<init>(r12);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.m;
        r4 = 2;
        r5 = 12;
        r1.<init>(r4, r5);
        r0.c(r1);
        r0 = com.tencent.mm.sdk.b.a.xxA;
        r1 = new com.tencent.mm.app.WorkerProfile$24;
        r1.<init>(r12);
        r0.c(r1);
        r0 = new com.tencent.mm.ui.transmit.d;
        r0.<init>();
        com.tencent.mm.plugin.messenger.a.g.opT = r0;
        r0 = new com.tencent.mm.app.plugin.a;
        r0.<init>();
        com.tencent.mm.pluginsdk.r.a.vax = r0;
        r0 = com.tencent.mm.app.plugin.e.Cl();
        com.tencent.mm.pluginsdk.ui.e.b.a.vrC = r0;
        r0 = com.tencent.mm.model.aw.QT();
        if (r0 != 0) goto L_0x0469;
    L_0x0466:
        com.tencent.mm.model.aw.ZK();
    L_0x0469:
        r0 = new com.tencent.mm.g.a.ck;
        r0.<init>();
        r1 = com.tencent.mm.sdk.b.a.xxA;
        r1.m(r0);
        r0 = 1;
        r12.cfM = r0;
        r0 = new com.tencent.mm.app.WorkerProfile$25;
        r0.<init>(r12);
        com.tencent.mm.opensdk.utils.Log.setLogImpl(r0);
        r0 = "MicroMsg.WorkerProfile";
        r1 = new java.lang.StringBuilder;
        r4 = "start time check WorkerProfile appOnCreate use time ";
        r1.<init>(r4);
        r4 = java.lang.System.currentTimeMillis();
        r2 = r4 - r2;
        r1 = r1.append(r2);
        r1 = r1.toString();
        com.tencent.mm.sdk.platformtools.ab.d(r0, r1);
        r0 = com.tencent.mm.sdk.platformtools.ah.getContext();
        r1 = new com.tencent.mm.app.WorkerProfile$27;
        r1.<init>(r0);
        r0 = r1.map;
        r2 = "qqmail";
        r3 = 2131300489; // 0x7f091089 float:1.821901E38 double:1.0530023526E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "fmessage";
        r3 = 2131300458; // 0x7f09106a float:1.8218946E38 double:1.0530023373E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "floatbottle";
        r3 = 2131300443; // 0x7f09105b float:1.8218916E38 double:1.05300233E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "lbsapp";
        r3 = 2131300466; // 0x7f091072 float:1.8218962E38 double:1.053002341E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "shakeapp";
        r3 = 2131300501; // 0x7f091095 float:1.8219033E38 double:1.0530023585E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "medianote";
        r3 = 2131300475; // 0x7f09107b float:1.821898E38 double:1.0530023457E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "qqfriend";
        r3 = 2131300486; // 0x7f091086 float:1.8219003E38 double:1.053002351E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "newsapp";
        r3 = 2131300497; // 0x7f091091 float:1.8219025E38 double:1.0530023565E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "facebookapp";
        r3 = 2131300452; // 0x7f091064 float:1.8218934E38 double:1.0530023343E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "masssendapp";
        r3 = 2131300472; // 0x7f091078 float:1.8218975E38 double:1.053002344E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "meishiapp";
        r3 = 2131300478; // 0x7f09107e float:1.8218987E38 double:1.053002347E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "feedsapp";
        r3 = 2131300455; // 0x7f091067 float:1.821894E38 double:1.053002336E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "voipapp";
        r3 = 2131300511; // 0x7f09109f float:1.8219054E38 double:1.0530023634E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "weixin";
        r3 = 2131301859; // 0x7f0915e3 float:1.8221788E38 double:1.0530030294E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "filehelper";
        r3 = 2131300439; // 0x7f091057 float:1.8218908E38 double:1.053002328E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "cardpackage";
        r3 = 2131300446; // 0x7f09105e float:1.8218922E38 double:1.0530023313E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "officialaccounts";
        r3 = 2131300482; // 0x7f091082 float:1.8218995E38 double:1.053002349E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "voicevoipapp";
        r3 = 2131300514; // 0x7f0910a2 float:1.821906E38 double:1.053002365E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "helper_entry";
        r3 = 2131300463; // 0x7f09106f float:1.8218956E38 double:1.0530023397E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "voiceinputapp";
        r3 = 2131300508; // 0x7f09109c float:1.8219048E38 double:1.053002362E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "linkedinplugin";
        r3 = 2131300469; // 0x7f091075 float:1.8218969E38 double:1.0530023427E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "notifymessage";
        r3 = 2131300479; // 0x7f09107f float:1.8218989E38 double:1.0530023476E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "gh_43f2581f6fd6";
        r3 = 2131300504; // 0x7f091098 float:1.821904E38 double:1.05300236E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.map;
        r2 = "appbrandcustomerservicemsg";
        r3 = 2131300440; // 0x7f091058 float:1.821891E38 double:1.0530023284E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        r0 = r1.cgf;
        r2 = "weixin";
        r3 = 2131301858; // 0x7f0915e2 float:1.8221786E38 double:1.053003029E-314;
        r3 = java.lang.Integer.valueOf(r3);
        r0.put(r2, r3);
        com.tencent.mm.n.a.a(r1);
        r0 = new com.tencent.mm.app.WorkerProfile$1;
        r0.<init>(r12);
        com.tencent.mm.ui.ai.a(r0);
        r0 = com.tencent.mm.compatible.util.f.Mn();
        if (r0 != 0) goto L_0x0682;
    L_0x062b:
        r1 = com.tencent.mm.plugin.report.service.h.pYm;
        r2 = 340; // 0x154 float:4.76E-43 double:1.68E-321;
        r0 = 19;
        r0 = com.tencent.mm.compatible.util.d.iW(r0);
        if (r0 == 0) goto L_0x07b3;
    L_0x0637:
        r4 = 5;
    L_0x0639:
        r6 = 1;
        r8 = 0;
        r1.a(r2, r4, r6, r8);
        r1 = com.tencent.mm.plugin.report.service.h.pYm;
        r2 = 11098; // 0x2b5a float:1.5552E-41 double:5.483E-320;
        r0 = 2;
        r3 = new java.lang.Object[r0];
        r4 = 0;
        r0 = 19;
        r0 = com.tencent.mm.compatible.util.d.iW(r0);
        if (r0 == 0) goto L_0x07b7;
    L_0x064f:
        r0 = 5001; // 0x1389 float:7.008E-42 double:2.471E-320;
    L_0x0651:
        r0 = java.lang.Integer.valueOf(r0);
        r3[r4] = r0;
        r0 = 1;
        r4 = "%s;%s;%s";
        r5 = 3;
        r5 = new java.lang.Object[r5];
        r6 = 0;
        r7 = com.tencent.mm.compatible.util.e.eSl;
        r5[r6] = r7;
        r6 = 1;
        r7 = android.os.Environment.getExternalStorageDirectory();
        r7 = r7.getAbsolutePath();
        r5[r6] = r7;
        r6 = 2;
        r7 = com.tencent.mm.compatible.util.h.getExternalStorageDirectory();
        r7 = r7.getAbsolutePath();
        r5[r6] = r7;
        r4 = java.lang.String.format(r4, r5);
        r3[r0] = r4;
        r1.e(r2, r3);
    L_0x0682:
        r0 = "MicroMsg.WorkerProfile";
        r1 = "start time check WorkerProfile oncreate use time :%d, launcherisFirst :%b channel:%d cv:%d. topActivityName:%s";
        r2 = 5;
        r2 = new java.lang.Object[r2];
        r3 = 0;
        r4 = java.lang.System.currentTimeMillis();
        r4 = r4 - r10;
        r4 = java.lang.Long.valueOf(r4);
        r2[r3] = r4;
        r3 = 1;
        r4 = r12.cfN;
        r4 = java.lang.Boolean.valueOf(r4);
        r2[r3] = r4;
        r3 = 2;
        r4 = com.tencent.mm.sdk.platformtools.g.cdf;
        r4 = java.lang.Integer.valueOf(r4);
        r2[r3] = r4;
        r3 = 3;
        r4 = com.tencent.mm.protocal.d.vxo;
        r4 = java.lang.Integer.valueOf(r4);
        r2[r3] = r4;
        r3 = 4;
        r4 = com.tencent.mm.sdk.platformtools.ah.getContext();
        r4 = com.tencent.mm.sdk.platformtools.bo.gW(r4);
        r2[r3] = r4;
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1, r2);
        r0 = 15548; // 0x3cbc float:2.1787E-41 double:7.6817E-320;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
        return;
    L_0x06c6:
        r4 = r0 + -8;
        r5 = 8;
        r4 = com.tencent.mm.a.e.f(r1, r4, r5);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r4 = com.tencent.mm.c.a.a.C(r4);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        if (r4 != 0) goto L_0x070d;
    L_0x06d4:
        r0 = "MicroMsg.WorkerProfile";
        r4 = "checkApkExternal, header null";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r4);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        goto L_0x00fa;
    L_0x06df:
        r0 = move-exception;
        r4 = "MicroMsg.WorkerProfile";
        r5 = "";
        r6 = 0;
        r6 = new java.lang.Object[r6];	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.ab.printErrStackTrace(r4, r0, r5, r6);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r4 = "MicroMsg.WorkerProfile";
        r5 = "Exception in checkApkExternal, %s";
        r6 = 1;
        r6 = new java.lang.Object[r6];	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r7 = 0;
        r0 = r0.getMessage();	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r6[r7] = r0;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.ab.e(r4, r5, r6);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        goto L_0x00fa;
    L_0x0701:
        r0 = move-exception;
        r0 = "MicroMsg.WorkerProfile";
        r1 = "initChannelUtil NameNotFoundException";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r1);
        goto L_0x01cf;
    L_0x070d:
        r5 = r4.cde;	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r5 = r5 + 8;
        r5 = r5 + -8;
        if (r5 < 0) goto L_0x0740;
    L_0x0715:
        r5 = new com.tencent.mm.c.b;	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r5.<init>();	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r6 = r4.cde;	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r6 = r6 + 8;
        r6 = r6 + -8;
        r0 = r0 - r6;
        r0 = r0 + -8;
        r4 = r4.cde;	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r4 = r4 + 8;
        r4 = r4 + -8;
        r0 = com.tencent.mm.a.e.f(r1, r0, r4);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r5.parseFrom(r0);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r0 = new com.tencent.mm.c.a;	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r0.<init>(r5);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        r0 = "MicroMsg.WorkerProfile";
        r4 = "checkApkExternal, check ok";
        com.tencent.mm.sdk.platformtools.ab.i(r0, r4);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        goto L_0x00fa;
    L_0x0740:
        r0 = "MicroMsg.WorkerProfile";
        r4 = "checkApkExternal header wrong";
        com.tencent.mm.sdk.platformtools.ab.e(r0, r4);	 Catch:{ Exception -> 0x06df, NameNotFoundException -> 0x0701 }
        goto L_0x00fa;
    L_0x074b:
        r1 = "MicroMsg.WorkerProfile";
        r4 = "initChannelUtil something null %s";
        r5 = 1;
        r5 = new java.lang.Object[r5];	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r6 = 0;
        if (r0 != 0) goto L_0x0779;
    L_0x0757:
        r0 = 1;
    L_0x0758:
        r0 = java.lang.Boolean.valueOf(r0);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        r5[r6] = r0;	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        com.tencent.mm.sdk.platformtools.ab.e(r1, r4, r5);	 Catch:{ NameNotFoundException -> 0x0701, Exception -> 0x0763 }
        goto L_0x01cf;
    L_0x0763:
        r0 = move-exception;
        r1 = "MicroMsg.WorkerProfile";
        r4 = "Exception in initChannel, %s";
        r5 = 1;
        r5 = new java.lang.Object[r5];
        r6 = 0;
        r0 = r0.getMessage();
        r5[r6] = r0;
        com.tencent.mm.sdk.platformtools.ab.e(r1, r4, r5);
        goto L_0x01cf;
    L_0x0779:
        r0 = 0;
        goto L_0x0758;
    L_0x077b:
        r5 = "crash_status_file";
        r6 = 4;
        r0 = r0.getSharedPreferences(r5, r6);	 Catch:{ Throwable -> 0x07ac }
        r5 = "channel";
        r6 = -1;
        r5 = r0.getInt(r5, r6);	 Catch:{ Throwable -> 0x07ac }
        r6 = "version";
        r7 = 0;
        r6 = r0.getInt(r6, r7);	 Catch:{ Throwable -> 0x07ac }
        if (r5 != r1) goto L_0x0797;
    L_0x0795:
        if (r6 == r4) goto L_0x01f5;
    L_0x0797:
        r0 = r0.edit();	 Catch:{ Throwable -> 0x07ac }
        r5 = "channel";
        r0.putInt(r5, r1);	 Catch:{ Throwable -> 0x07ac }
        r1 = "version";
        r0.putInt(r1, r4);	 Catch:{ Throwable -> 0x07ac }
        r0.commit();	 Catch:{ Throwable -> 0x07ac }
        goto L_0x01f5;
    L_0x07ac:
        r0 = move-exception;
        goto L_0x01f5;
    L_0x07af:
        r0 = com.tencent.mm.sdk.platformtools.g.cdg;
        goto L_0x0215;
    L_0x07b3:
        r4 = 6;
        goto L_0x0639;
    L_0x07b7:
        r0 = 5002; // 0x138a float:7.009E-42 double:2.4713E-320;
        goto L_0x0651;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.app.WorkerProfile.onCreate():void");
    }

    public final void onTerminate() {
        AppMethodBeat.i(15549);
        super.onTerminate();
        com.tencent.mm.h.b bVar = this.cfU;
        ab.i("MicroMsg.BroadcastController", "summerdiz release oldNoticeInfo[%s], newDisasterNoticeInfoMap[%d]", new Object[]{bVar.eeU, Integer.valueOf(bVar.eeW.size())});
        com.tencent.mm.sdk.b.a.xxA.d(bVar.eeX);
        bVar.eeU = null;
        bVar.eeV.clear();
        bVar.eeW.clear();
        this.cfU = null;
        AppMethodBeat.o(15549);
    }

    public final void onConfigurationChanged(Configuration configuration) {
        AppMethodBeat.i(15550);
        SharedPreferences sharedPreferences = ah.getContext().getSharedPreferences(ah.doA(), 0);
        ah.getContext();
        if ("language_default".equals(aa.h(sharedPreferences))) {
            ab.i("MicroMsg.WorkerProfile", "config locale %s", new Object[]{aa.c(configuration.locale)});
            Locale bM = MMActivity.bM(this.app.getBaseContext(), aa.c(configuration.locale));
            ab.i("MicroMsg.WorkerProfile", "onConfigurationChanged, locale = %s, n = %s", new Object[]{this.locale, bM});
            if (!(bM == null || this.locale == null || bM.equals(this.locale))) {
                if (aw.RK()) {
                    try {
                        com.tencent.mm.network.e eVar = aw.Rg().ftA;
                        if (eVar != null) {
                            c adg = eVar.adg();
                            if (adg != null) {
                                byte[] bArr = new byte[0];
                                byte[] bArr2 = new byte[0];
                                byte[] bArr3 = new byte[0];
                                aw.ZK();
                                adg.a(bArr, bArr2, bArr3, com.tencent.mm.model.c.QF());
                            }
                        }
                    } catch (Exception e) {
                        ab.printErrStackTrace("MicroMsg.WorkerProfile", e, BuildConfig.FLAVOR, new Object[0]);
                        ab.printErrStackTrace("MicroMsg.WorkerProfile", e, "what the f$!k", new Object[0]);
                    }
                }
                ab.w("MicroMsg.WorkerProfile", "language changed, restart process");
                System.exit(-1);
            }
        }
        AppMethodBeat.o(15550);
    }

    public final String toString() {
        return ceo;
    }

    public final an getNotification() {
        AppMethodBeat.i(15551);
        if (this.cfJ == null) {
            this.cfJ = new com.tencent.mm.booter.notification.b(this.app);
        }
        an anVar = this.cfJ;
        AppMethodBeat.o(15551);
        return anVar;
    }

    public final b Cb() {
        AppMethodBeat.i(15552);
        if (this.cfK == null) {
            this.cfK = new 28(this);
        }
        b bVar = this.cfK;
        AppMethodBeat.o(15552);
        return bVar;
    }

    public final ae Cc() {
        AppMethodBeat.i(15553);
        if (this.cfL == null) {
            this.cfL = com.tencent.mm.booter.a.Ib();
        }
        ae aeVar = this.cfL;
        AppMethodBeat.o(15553);
        return aeVar;
    }

    public final void onSceneEnd(int i, int i2, String str, m mVar) {
        AppMethodBeat.i(15554);
        ab.i("MicroMsg.WorkerProfile", "onSceneEnd dkwt type:%d [%d,%d,%s]", new Object[]{Integer.valueOf(mVar.getType()), Integer.valueOf(i), Integer.valueOf(i2), str});
        if (i == 3 && i2 == -1) {
            ab.i("MicroMsg.WorkerProfile", "getStack([ %s ]), ThreadID: %s", new Object[]{bo.dpG(), Long.valueOf(Thread.currentThread().getId())});
        }
        Intent intent;
        if (i == 4 && i2 == -3002) {
            if (bo.isNullOrNil(str)) {
                ab.e("MicroMsg.WorkerProfile", "summerdiz -3002 but errMsg is null");
                AppMethodBeat.o(15554);
                return;
            }
            if (str.startsWith("autoauth_errmsg_")) {
                str = str.substring(16);
            }
            ab.i("MicroMsg.WorkerProfile", "summerdiz MM_ERR_IDCDISASTER -3002 errStr:%s", new Object[]{str});
            ak akVar = new ak();
            akVar.cto.type = 4;
            akVar.cto.ctq = str;
            com.tencent.mm.sdk.b.a.xxA.m(akVar);
            AppMethodBeat.o(15554);
        } else if (!aw.RK() || i != 4 || ((i2 != -6 && i2 != -310 && i2 != -311) || str == null || !str.startsWith("autoauth_errmsg_"))) {
            if (mVar.getType() == TbsMediaPlayer$TbsMediaPlayerListener.MEDIA_INFO_BUFFERING_START || mVar.getType() == TbsMediaPlayer$TbsMediaPlayerListener.MEDIA_INFO_BUFFERING_END || mVar.getType() == 126 || mVar.getType() == 252 || mVar.getType() == 763 || mVar.getType() == 138) {
                jl jlVar;
                if (i == 4 && i2 == -213) {
                    jlVar = new jl();
                    jlVar.cEK.status = 0;
                    jlVar.cEK.boZ = 3;
                    com.tencent.mm.sdk.b.a.xxA.m(jlVar);
                    if (AccountDeletedAlphaAlertUI.dJp() != null) {
                        AppMethodBeat.o(15554);
                        return;
                    }
                    intent = new Intent();
                    intent.setClass(ah.getContext(), AccountDeletedAlphaAlertUI.class).addFlags(ErrorDialogData.BINDER_CRASH);
                    intent.putExtra("errmsg", str);
                    ah.getContext().startActivity(intent);
                    AppMethodBeat.o(15554);
                    return;
                } else if (i == 4 && i2 == -100) {
                    jlVar = new jl();
                    jlVar.cEK.status = 0;
                    jlVar.cEK.boZ = 1;
                    com.tencent.mm.sdk.b.a.xxA.m(jlVar);
                }
            }
            AppMethodBeat.o(15554);
        } else if (NewTaskUI.dJR() != null) {
            AppMethodBeat.o(15554);
        } else {
            intent = new Intent();
            intent.setClass(ah.getContext(), NewTaskUI.class).addFlags(ErrorDialogData.BINDER_CRASH);
            ah.getContext().startActivity(intent);
            AppMethodBeat.o(15554);
        }
    }

    public final void onReportKVDataReady(byte[] bArr, byte[] bArr2, int i) {
        AppMethodBeat.i(15555);
        aw.RS().aa(new 29(this, i, bArr2));
        AppMethodBeat.o(15555);
    }

    public final void dm(String str) {
        AppMethodBeat.i(15556);
        ab.i("MicroMsg.WorkerProfile", "summerdiz onOldDisaster errStr[%s]", new Object[]{str});
        ak akVar = new ak();
        akVar.cto.type = 4;
        akVar.cto.ctq = str;
        com.tencent.mm.sdk.b.a.xxA.m(akVar);
        AppMethodBeat.o(15556);
    }

    public final void dn(String str) {
        AppMethodBeat.i(15557);
        ab.i("MicroMsg.WorkerProfile", "summerdiz onReMoveNoticeId:%s", new Object[]{str});
        ak akVar = new ak();
        akVar.cto.type = 1;
        akVar.cto.ctq = str;
        com.tencent.mm.sdk.b.a.xxA.m(akVar);
        AppMethodBeat.o(15557);
    }
}
