package com.tencent.mm.console; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.Typeface; import android.net.Uri; import android.os.Build; import android.os.Debug; import android.os.Looper; import android.os.Process; import android.provider.Settings; import android.text.TextUtils; import android.text.method.ScrollingMovementMethod; import android.util.Base64; import android.view.ViewGroup; import android.widget.TextView; import bf2.e0; import bw3.n3; import bw3.na3; import bw3.sh3; import bw3.th3; import cn.s; import com.google.android.gms.common.Scopes; import com.google.android.gms.common.internal.ImagesContract; import com.google.firebase.analytics.FirebaseAnalytics; import com.tencent.mars.cdn.CdnLogicTest; import com.tencent.mars.cdn.CronetLogicTest; import com.tencent.mars.smc.SmcLogic; import com.tencent.matrix.battery.accumulate.persist.FlattProperty; import com.tencent.midas.api.APMidasPayAPI; import com.tencent.mm.BuildConfig; import com.tencent.mm.R; import com.tencent.mm.autogen.events.BackupProcessMgrExitEvent; import com.tencent.mm.autogen.events.BackupStartMergeEvent; import com.tencent.mm.autogen.events.CheckMobileSpaceEvent; import com.tencent.mm.autogen.events.CheckResUpdateCacheFileEvent; import com.tencent.mm.autogen.events.CleanError0831Event; import com.tencent.mm.autogen.events.CleanWebViewCacheEvent; import com.tencent.mm.autogen.events.DeletePackageEvent; import com.tencent.mm.autogen.events.DumpSnsEvent; import com.tencent.mm.autogen.events.DumpSnsTableInfoEvent; import com.tencent.mm.autogen.events.DynamicConfigUpdatedEvent; import com.tencent.mm.autogen.events.GameCommOperationEvent; import com.tencent.mm.autogen.events.GameSilentDownloadNotifyEvent; import com.tencent.mm.autogen.events.QueryGameMessageEvent; import com.tencent.mm.autogen.events.SnsClearDBEvent; import com.tencent.mm.autogen.events.SnsFileCollectEvent; import com.tencent.mm.autogen.events.SnsNewSyncObjectEvent; import com.tencent.mm.autogen.events.SnsResetLuckyEvent; import com.tencent.mm.autogen.events.WebViewShortcutCommandEvent; import com.tencent.mm.autogen.events.WepkgNotifyEvent; import com.tencent.mm.booter.notification.MMNotification; import com.tencent.mm.model.newabtest.SubCoreNewABTest; import com.tencent.mm.model.newabtest.a; import com.tencent.mm.modelcdntran.b0; import com.tencent.mm.modelcdntran.h0; import com.tencent.mm.modelsimple.w; import com.tencent.mm.modelstat.WatchDogPushReceiver; import com.tencent.mm.network.i; import com.tencent.mm.network.v; import com.tencent.mm.network.x; import com.tencent.mm.platformtools.SpellMap; import com.tencent.mm.plugin.base.stub.WXCustomSchemeEntryActivity; import com.tencent.mm.plugin.eggspring.ui.SpringCardActivity; import com.tencent.mm.plugin.magicbrush.api.WxaMagicPkgInfo; import com.tencent.mm.plugin.magicbrush.q0; import com.tencent.mm.plugin.performance.watchdogs.MemoryWatchDog; import com.tencent.mm.plugin.profile.NewContactWidgetNormal; import com.tencent.mm.plugin.sandbox.SubCoreSandBox; import com.tencent.mm.plugin.sns.model.f1; import com.tencent.mm.pluginsdk.model.app.a2; import com.tencent.mm.sdk.NativeLibraries; import com.tencent.mm.sdk.crash.CrashReportFactory; import com.tencent.mm.sdk.platformtools.BuildInfo; import com.tencent.mm.sdk.platformtools.ChannelUtil; import com.tencent.mm.sdk.platformtools.ClipboardHelper; import com.tencent.mm.sdk.platformtools.InetUtil; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import com.tencent.mm.sdk.platformtools.MMEntryLock; import com.tencent.mm.sdk.platformtools.MMHandler; import com.tencent.mm.sdk.platformtools.MMHandlerThread; import com.tencent.mm.sdk.platformtools.MMStack; import com.tencent.mm.sdk.platformtools.MTimerHandler; import com.tencent.mm.sdk.platformtools.MultiProcSharedPreferences; import com.tencent.mm.sdk.platformtools.MultiProcessMMKV; import com.tencent.mm.sdk.platformtools.NetStatusUtil; import com.tencent.mm.sdk.platformtools.SdcardUtil; import com.tencent.mm.sdk.platformtools.Util; import com.tencent.mm.sdk.platformtools.WeChatHosts; import com.tencent.mm.sdk.platformtools.WeChatProcess; import com.tencent.mm.sdk.platformtools.XmlParser; import com.tencent.mm.storage.f4; import com.tencent.mm.storage.g4; import com.tencent.mm.storage.h2; import com.tencent.mm.storage.i2; import com.tencent.mm.storage.k1; import com.tencent.mm.storage.l1; import com.tencent.mm.storage.m1; import com.tencent.mm.storage.s1; import com.tencent.mm.storage.t1; import com.tencent.mm.storage.t4; import com.tencent.mm.storage.w1; import com.tencent.mm.storage.z1; import com.tencent.mm.ui.LauncherUI; import com.tencent.mm.ui.MMAppMgr; import com.tencent.mm.ui.MMWizardActivity; import com.tencent.mm.ui.chatting.ChattingUIFragment; import com.tencent.mm.ui.chatting.r1; import com.tencent.mm.ui.widget.MMNeat7extView; import com.tencent.mm.vfs.n2; import com.tencent.mm.vfs.q1; import com.tencent.mm.vfs.u1; import com.tencent.mm.vfs.x1; import com.tencent.mm.vfs.y1; import com.tencent.soter.core.biometric.FingerprintManagerProxy; import com.tencent.tav.coremedia.TimeUtil; import com.tencent.tmassistantsdk.openSDK.QQDownloader.AssistantStore; import com.tencent.xweb.CookieManager; import cu3.a0; import d60.m0; import d60.z; import dk0.j0; import dk0.n0; import dv3.i1; import fh0.u; import i14.y0; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.LineNumberReader; import java.lang.Thread; import java.lang.reflect.Field; import java.nio.ByteBuffer; import java.nio.channels.WritableByteChannel; import java.nio.charset.StandardCharsets; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Map; import jh2.k0; import jo3.a1; import junit.framework.Assert; import mi.c3; import n72.m; import nf0.b3; import nf0.b4; import nf0.c4; import nf0.h4; import nf0.k4; import nf0.o3; import nf0.p3; import nf0.u0; import nf0.w0; import sq0.t0; import uu3.g; import vj.f0; import yf0.m; import yf0.y; import yv3.c1; public final class a { /* renamed from: a reason: collision with root package name */ public static final HashSet<String> f74053a; /* renamed from: com.tencent.mm.console.a$a reason: collision with other inner class name */ public class C0676a implements e0 { /* renamed from: com.tencent.mm.console.a$a$a reason: collision with other inner class name */ public class RunnableC0677a implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ WxaMagicPkgInfo f74054d; public RunnableC0677a(C0676a aVar, WxaMagicPkgInfo wxaMagicPkgInfo) { this.f74054d = wxaMagicPkgInfo; } public void run() { y0.makeText(MMApplicationContext.getContext(), this.f74054d.f132184n, 1).show(); } } /* renamed from: com.tencent.mm.console.a$a$b */ public class b implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f74055d; public b(C0676a aVar, String str) { this.f74055d = str; } public void run() { y0.makeText(MMApplicationContext.getContext(), this.f74055d, 1).show(); } } @Override // bf2.e0 public void l0(String str) { Log.i("shortlink", "checkMagicPkg failed with %s", str); ((xc4.j) xc4.j.f338034d).z(new b(this, str)); } @Override // bf2.e0 public void m0(WxaMagicPkgInfo wxaMagicPkgInfo) { Log.i("shortlink", "checkMagicPkg success with %s", wxaMagicPkgInfo); if (wxaMagicPkgInfo != null) { ((xc4.j) xc4.j.f338034d).z(new RunnableC0677a(this, wxaMagicPkgInfo)); } } } public class b implements Runnable { public void run() { new SnsNewSyncObjectEvent().publish(); } } public class c implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ int f74056d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ ArrayList f74057e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ Context f74058f; /* renamed from: com.tencent.mm.console.a$c$a reason: collision with other inner class name */ public class C0678a implements jd4.h { /* renamed from: com.tencent.mm.console.a$c$a$a reason: collision with other inner class name */ public class RunnableC0679a implements Runnable { public RunnableC0679a() { } public void run() { Context context = c.this.f74058f; i14.j.U(context, context.getString(R.string.blg), 1); } } /* renamed from: com.tencent.mm.console.a$c$a$b */ public class b implements Runnable { public b() { } public void run() { Context context = c.this.f74058f; i14.j.U(context, context.getString(R.string.blf), 1); } } public C0678a() { } @Override // jd4.g, jd4.h public String getKey() { return "copypackage"; } public void run() { try { String g05 = z80.b.g0(); p3.b().getClass(); String a15 = na1.a.a(); z.h(); String str = z.s().f198642c; String substring = a15.substring(g05.length()); Log.i("MicroMsg.CommandProcessor", "summercmd copypackage size:%d, root:%s, pkgFullPath:%s, sysPath:%s, pkgPath:%s", Integer.valueOf(c.this.f74056d), g05, a15, str, substring); int i15 = 0; while (true) { c cVar = c.this; if (i15 < cVar.f74056d) { String str2 = ((SdcardUtil.StatMountParse) cVar.f74057e.get(i15)).mountDir; if (!Util.isNullOrNil(str2)) { if (!g05.contains(str2)) { q1 q1Var = new q1(str2 + substring); if (q1Var.m() && q1Var.u()) { boolean b15 = u1.b(q1Var.o(), a15); Log.i("MicroMsg.CommandProcessor", "summercmd copypackage done pkgFullPath:%s, old:%s, ret:%b", a15, q1Var.o(), Boolean.valueOf(b15)); if (b15) { new MMHandler(Looper.getMainLooper()).post(new RunnableC0679a()); return; } } } } i15++; } else { new MMHandler(Looper.getMainLooper()).post(new b()); return; } } } catch (Exception e15) { Log.w("MicroMsg.CommandProcessor", "summercmd copypackage e:%s", e15.getMessage()); } } } public c(int i15, ArrayList arrayList, Context context) { this.f74056d = i15; this.f74057e = arrayList; this.f74058f = context; } public void onClick(DialogInterface dialogInterface, int i15) { ((xc4.j) xc4.j.f338034d).f(new C0678a()); } } public class d implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f74062d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ int f74063e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ ArrayList f74064f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ Context f74065g; /* renamed from: com.tencent.mm.console.a$d$a reason: collision with other inner class name */ public class RunnableC0680a implements Runnable { /* renamed from: com.tencent.mm.console.a$d$a$a reason: collision with other inner class name */ public class RunnableC0681a implements Runnable { public RunnableC0681a() { } public void run() { Context context = d.this.f74065g; i14.j.U(context, context.getString(R.string.blg), 1); } } /* renamed from: com.tencent.mm.console.a$d$a$b */ public class b implements Runnable { public b() { } public void run() { Context context = d.this.f74065g; i14.j.U(context, context.getString(R.string.blf), 1); } } public RunnableC0680a() { } public void run() { try { String substring = d.this.f74062d.substring(10); String g05 = z80.b.g0(); String f15 = p3.b().f(); String str = f15 + substring; String substring2 = str.substring(g05.length()); Log.i("MicroMsg.CommandProcessor", "summercmd copy -n subDir:%s, root:%s, accPath:%s destPath:%s, subPath:%s", substring, g05, f15, str, substring2); int i15 = 0; while (true) { d dVar = d.this; if (i15 < dVar.f74063e) { String str2 = ((SdcardUtil.StatMountParse) dVar.f74064f.get(i15)).mountDir; if (!Util.isNullOrNil(str2)) { if (!g05.contains(str2)) { q1 q1Var = new q1(str2 + substring2); if (q1Var.m() && q1Var.u()) { q1 q1Var2 = new q1(n2.a(str)); if (!q1Var2.m()) { q1Var2.F(); } boolean b15 = u1.b(q1Var.o(), q1Var2.o()); Log.i("MicroMsg.CommandProcessor", "summercmd copy -n done new:%s, old:%s, ret:%b", q1Var2.o(), q1Var.o(), Boolean.valueOf(b15)); if (b15) { new MMHandler(Looper.getMainLooper()).post(new RunnableC0681a()); return; } } } } i15++; } else { new MMHandler(Looper.getMainLooper()).post(new b()); return; } } } catch (Exception e15) { Log.w("MicroMsg.CommandProcessor", "summercmd copy -n e:%s", e15.getMessage()); } } } public d(String str, int i15, ArrayList arrayList, Context context) { this.f74062d = str; this.f74063e = i15; this.f74064f = arrayList; this.f74065g = context; } public void onClick(DialogInterface dialogInterface, int i15) { ((xc4.j) xc4.j.f338034d).f(new RunnableC0680a()); } } public class e implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ k1 f74069d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ String f74070e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ String f74071f; public e(k1 k1Var, String str, String str2) { this.f74069d = k1Var; this.f74070e = str; this.f74071f = str2; } public void run() { int i15; int x25 = this.f74069d.x2(); k1 k1Var = this.f74069d; int i16 = k1Var.field_chatroomdataflag; int u25 = k1Var.u2(); k1 k1Var2 = this.f74069d; if (k1Var2.A2(k1Var2.f174787x1)) { k1Var2.q2(); } int i17 = k1Var2.f174787x1.f283682g; int t25 = this.f74069d.t2(); k1 k1Var3 = this.f74069d; if (k1Var3.A2(k1Var3.f174787x1)) { k1Var3.q2(); } String str = k1Var3.f174787x1.f283684i; List<String> w25 = this.f74069d.w2(); f4 RZ = ((g4) p3.b().z()).RZ(this.f74070e, " and msgSeq != 0 and flag & 2 != 0"); boolean z15 = RZ != null && RZ.getMsgId() > 0; int Bc0 = ((g4) p3.b().z()).Bc0(this.f74070e); Log.i("MicroMsg.CommandProcessor", "summercrinfo chatroomId[%s], version[%d], flag[%d], type[%d], status[%d], get[%b], msgCount[%d], maxCount[%d], upgrader[%s], membersize[%d]", this.f74070e, Integer.valueOf(x25), Integer.valueOf(i16), Integer.valueOf(u25), Integer.valueOf(i17), Boolean.valueOf(z15), Integer.valueOf(Bc0), Integer.valueOf(t25), str, Integer.valueOf(w25.size())); StringBuilder sb5 = new StringBuilder(); sb5.append("---chatroominfo---"); sb5.append("\nid:"); sb5.append(this.f74070e); sb5.append("\nver:"); sb5.append(x25); sb5.append("\nflag:"); sb5.append(i16); sb5.append("\ntype:"); sb5.append(u25); sb5.append("\nstatus:"); sb5.append(i17); sb5.append("\nget:"); sb5.append(z15); sb5.append("\nmsgCount:"); sb5.append(Bc0); sb5.append("\nmaxCount:"); sb5.append(t25); sb5.append("\nupgrader:"); sb5.append(str); sb5.append("\nmembersize:"); sb5.append(w25.size()); sb5.append("\nisSilence:"); sb5.append(((k0) z.q(k0.class)).U70().k(this.f74070e)); sb5.append("\nsillenceBlock:"); sb5.append(((k0) z.q(k0.class)).U70().n(this.f74070e).toString()); try { i15 = Util.getInt(this.f74071f.split(" ")[1], 0); } catch (Exception unused) { i15 = -1; } if (i15 == -1) { i15 = w25.size(); } if (i15 > w25.size()) { i15 = w25.size(); } if (i15 > 10) { i15 = 10; } if (i15 > 0) { sb5.append("\nmember:"); } for (int i18 = 0; i18 < i15; i18++) { sb5.append("\n"); sb5.append(w25.get(i18)); } f4 f4Var = new f4(); f4Var.i3(this.f74070e); f4Var.Z2(2); f4Var.setType(1); f4Var.S2(System.currentTimeMillis()); f4Var.R2(sb5.toString()); nf0.f4.x(f4Var); } } public class f implements yf0.n { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ boolean f74072d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ Context f74073e; /* renamed from: com.tencent.mm.console.a$f$a reason: collision with other inner class name */ public class RunnableC0682a implements Runnable { public RunnableC0682a() { } public void run() { a.a(f.this.f74073e, "RSA(req) fatal err, must recheck!!!"); } } public class b implements yf0.n { /* renamed from: com.tencent.mm.console.a$f$b$a reason: collision with other inner class name */ public class RunnableC0683a implements Runnable { public RunnableC0683a() { } public void run() { a.a(f.this.f74073e, "RSA(base) fatal err, must recheck!!!"); } } public b() { } @Override // yf0.n public void onSceneEnd(int i15, int i16, String str, y yVar) { Log.i("MicroMsg.CommandProcessor", "summercert testdefaultrsa NetSceneGetCert onSceneEnd [%d, %d, %s]", Integer.valueOf(i15), Integer.valueOf(i16), str); if (i15 == 4 && i16 == -102) { MMHandlerThread.postToMainThread(new RunnableC0683a()); return; } ak.a.makeText(f.this.f74073e, "DefaultRSA check pass", 0).show(); a.a(f.this.f74073e, ""); } } public f(boolean z15, Context context) { this.f74072d = z15; this.f74073e = context; } @Override // yf0.n public void onSceneEnd(int i15, int i16, String str, y yVar) { Log.i("MicroMsg.CommandProcessor", "summercert testdefaultrsa NetSceneManualAuth onSceneEnd [%d, %d, %s]", Integer.valueOf(i15), Integer.valueOf(i16), str); if (i15 != 4 || i16 == -102 || this.f74072d) { new com.tencent.mm.modelsimple.t(0).doScene(z.l().f198618b.f345515d, new b()); } else { MMHandlerThread.postToMainThread(new RunnableC0682a()); } } } public class g implements yf0.n { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ Context f74077d; public g(Context context) { this.f74077d = context; } @Override // yf0.n public void onSceneEnd(int i15, int i16, String str, y yVar) { if (2812 == yVar.getType()) { z.d().p(2812, this); ob1.a aVar = (ob1.a) yVar; Context context = this.f74077d; ak.a.makeText(context, "errType:" + i15 + ", errCode:" + i16 + ", coupon ret_code:" + aVar.f275944f + ", coupon ret_msg:" + aVar.f275945g + ".", 1).show(); } } } public class h implements k4.b { @Override // nf0.k4.b public void a(com.tencent.mm.network.f fVar) { if (fVar != null) { fVar.U3().h1(new byte[0], new byte[0], new byte[0], p3.b().G()); } } } public class i implements k4.b { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ int f74078a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f74079b; public i(int i15, int i16) { this.f74078a = i15; this.f74079b = i16; } @Override // nf0.k4.b public void a(com.tencent.mm.network.f fVar) { int i15 = this.f74078a; int i16 = this.f74079b; com.tencent.mm.network.f[] fVarArr = com.tencent.mm.app.k0.f61309a; Date date = new Date(); date.setTime(Util.nowMilliSecond() - (((long) i15) * 86400000)); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd", Locale.getDefault()); com.tencent.mm.app.k0.d(z80.b.a() + "crash_" + simpleDateFormat.format(date) + ".txt", 20001, i16, null, null, null); } } public class j extends v.a { @Override // com.tencent.mm.network.v public void KG(boolean z15, float f15, float f16, boolean z16, int i15, int i16, int i17) { } @Override // com.tencent.mm.network.v public void Zx(boolean z15, float f15, float f16, boolean z16, int i15, int i16, int i17, boolean z17, int i18, int i19, int i25) { } } public class k implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f74080d; public k(String str) { this.f74080d = str; } public void onClick(DialogInterface dialogInterface, int i15) { ClipboardHelper.setText(this.f74080d); } } public class l extends i.a { @Override // com.tencent.mm.network.i public void E2(boolean z15, int i15) { } } public class m implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f74081d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ Context f74082e; public m(String str, Context context) { this.f74081d = str; this.f74082e = context; } public void onClick(DialogInterface dialogInterface, int i15) { ClipboardHelper.setText(this.f74081d); ak.a.makeText(this.f74082e, (int) R.string.kbv, 0).show(); } } public class n implements Runnable { /* renamed from: com.tencent.mm.console.a$n$a reason: collision with other inner class name */ public class C0684a implements MTimerHandler.CallBack { public C0684a(n nVar) { } /* JADX WARNING: Removed duplicated region for block: B:31:0x00cb A[SYNTHETIC, Splitter:B:31:0x00cb] */ /* JADX WARNING: Removed duplicated region for block: B:38:0x00fe */ /* JADX WARNING: Removed duplicated region for block: B:44:0x012a A[SYNTHETIC, Splitter:B:44:0x012a] */ @Override // com.tencent.mm.sdk.platformtools.MTimerHandler.CallBack public boolean onTimerExpired() { LineNumberReader lineNumberReader; Throwable th5; Exception e15; if (ck.e.c(23)) { Log.i("MicroMsg.CommandProcessor", "gcCount: %s", Debug.getRuntimeStats()); } else { Log.i("MicroMsg.CommandProcessor", "gcCount: %d %d", Integer.valueOf(Debug.getGlobalGcInvocationCount()), Integer.valueOf(Debug.getThreadGcInvocationCount())); } long pss = Debug.getPss(); Debug.MemoryInfo memoryInfo = new Debug.MemoryInfo(); Debug.getMemoryInfo(memoryInfo); if (ck.e.c(23)) { Log.i("MicroMsg.CommandProcessor", "pss: %d, memoryInfo:%s", Long.valueOf(pss), memoryInfo.getMemoryStats()); } else { Log.i("MicroMsg.CommandProcessor", "pss: %d, memoryInfo:%d", Long.valueOf(pss), Integer.valueOf(memoryInfo.nativePss)); } try { Process exec = Runtime.getRuntime().exec("top -m 5 -n 1"); lineNumberReader = new LineNumberReader(new InputStreamReader(exec.getInputStream())); while (true) { try { String readLine = lineNumberReader.readLine(); if (readLine == null) { break; } else if (readLine.length() > 0) { Log.i("MicroMsg.CommandProcessor", readLine); } } catch (Exception e16) { e15 = e16; try { Log.e("MicroMsg.CommandProcessor", "getRunningAppProcessesByPs fail, ex = %s", e15.getMessage()); if (lineNumberReader != null) { } Log.i("MicroMsg.CommandProcessor", "thread count:%d", Integer.valueOf(Thread.activeCount())); Map<Thread, StackTraceElement[]> allStackTraces = Thread.getAllStackTraces(); while (r1.hasNext()) { } return true; } catch (Throwable th6) { th5 = th6; if (lineNumberReader != null) { try { lineNumberReader.close(); } catch (Exception e17) { Log.e("MicroMsg.CommandProcessor", "getRunningProcessesByPs finally got ex = %s", e17.getMessage()); } } throw th5; } } } exec.waitFor(); exec.destroy(); try { lineNumberReader.close(); } catch (Exception e18) { Log.e("MicroMsg.CommandProcessor", "getRunningProcessesByPs finally got ex = %s", e18.getMessage()); } } catch (Exception e19) { lineNumberReader = null; e15 = e19; Log.e("MicroMsg.CommandProcessor", "getRunningAppProcessesByPs fail, ex = %s", e15.getMessage()); if (lineNumberReader != null) { try { lineNumberReader.close(); } catch (Exception e25) { Log.e("MicroMsg.CommandProcessor", "getRunningProcessesByPs finally got ex = %s", e25.getMessage()); } } Log.i("MicroMsg.CommandProcessor", "thread count:%d", Integer.valueOf(Thread.activeCount())); Map<Thread, StackTraceElement[]> allStackTraces2 = Thread.getAllStackTraces(); while (r1.hasNext()) { } return true; } catch (Throwable th7) { lineNumberReader = null; th5 = th7; if (lineNumberReader != null) { } throw th5; } Log.i("MicroMsg.CommandProcessor", "thread count:%d", Integer.valueOf(Thread.activeCount())); Map<Thread, StackTraceElement[]> allStackTraces22 = Thread.getAllStackTraces(); for (Thread thread : allStackTraces22.keySet()) { if (thread.getState() == Thread.State.RUNNABLE) { Log.i("MicroMsg.CommandProcessor", "Running thread: %s\n %s", thread.getName(), MMStack.stackTraceToString(allStackTraces22.get(thread))); } } return true; } } public void run() { new MTimerHandler(new C0684a(this), true).startTimer(10000); } } public class o implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f74083d; public o(String str) { this.f74083d = str; } public void onClick(DialogInterface dialogInterface, int i15) { ClipboardHelper.setText(this.f74083d); } } public class p implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f74084d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ Context f74085e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ Activity f74086f; public p(String str, Context context, Activity activity) { this.f74084d = str; this.f74085e = context; this.f74086f = activity; } public void onClick(DialogInterface dialogInterface, int i15) { s1 s1Var = new s1(w1.f175136a + "SdcardInfo.cfg"); s1Var.f(1, this.f74084d); Log.i("MicroMsg.CommandProcessor", "switchsdcard reset to sdcard root: " + s1Var.a(1)); MMEntryLock.unlock("welcome_page_show"); m0.a(this.f74085e, true); BackupProcessMgrExitEvent backupProcessMgrExitEvent = new BackupProcessMgrExitEvent(); backupProcessMgrExitEvent.f61887d.f61888a = false; backupProcessMgrExitEvent.publish(); ((dn.h) yz3.j.c(dn.h.class)).Ev().C30(); ((MMNotification) p3.f()).h(); com.tencent.mm.xwebutil.p.b("com.tencent.mm.intent.ACTION_KILL_TOOLS_PROCESS"); g.a aVar = uu3.g.f320474a; if (aVar != null) { Activity activity = this.f74086f; ((s.c) aVar).getClass(); MMAppMgr.e(activity, true); } this.f74086f.finish(); } } public class q implements k4.b { @Override // nf0.k4.b public void a(com.tencent.mm.network.f fVar) { if (fVar != null) { String[] a65 = fVar.a6(true); for (int i15 = 0; i15 < a65.length; i15++) { String str = a65[i15]; pi0.c.a(a65[i15]).toString(); } String[] a66 = fVar.a6(false); for (int i16 = 0; i16 < a66.length; i16++) { String str2 = a66[i16]; pi0.c.a(a66[i16]).toString(); } } } } public class r implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f74087d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ Context f74088e; public r(String str, Context context) { this.f74087d = str; this.f74088e = context; } public void onClick(DialogInterface dialogInterface, int i15) { ClipboardHelper.setText(this.f74087d); ak.a.makeText(this.f74088e, (int) R.string.kbv, 0).show(); } } public class s implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f74089d; public s(String str) { this.f74089d = str; } public void onClick(DialogInterface dialogInterface, int i15) { ClipboardHelper.setText(this.f74089d); } } public static class t implements com.tencent.mm.ipcinvoker.e { private t() { } @Override // com.tencent.mm.ipcinvoker.e public void invoke(Object obj, com.tencent.mm.ipcinvoker.g gVar) { CookieManager instance = CookieManager.getInstance(); Log.i("MicroMsg.CommandProcessor", "ClearGameA8keyCookie before, cookie : %s", instance.getCookie("." + WeChatHosts.domainString(R.string.fxy))); CookieManager instance2 = CookieManager.getInstance(); instance2.setCookie("." + WeChatHosts.domainString(R.string.fxy), "cookie_passkey=; max-age=0"); CookieManager instance3 = CookieManager.getInstance(); instance3.setCookie("." + WeChatHosts.domainString(R.string.fxy), "uin=; max-age=0; httponly"); CookieManager instance4 = CookieManager.getInstance(); instance4.setCookie("." + WeChatHosts.domainString(R.string.fxy), "key=; max-age=0; httponly"); CookieManager instance5 = CookieManager.getInstance(); instance5.setCookie("." + WeChatHosts.domainString(R.string.fxy), "pass_ticket=; max-age=0; httponly"); CookieManager.getInstance().flush(); CookieManager instance6 = CookieManager.getInstance(); Log.i("MicroMsg.CommandProcessor", "ClearGameA8keyCookie end, cookie : %s", instance6.getCookie("." + WeChatHosts.domainString(R.string.fxy))); } } static { int i15 = fk.e.f215215a; int i16 = fk.j.f215220a; int i17 = fk.l.f215222a; int i18 = fk.h.f215218a; int i19 = fk.i.f215219a; int i25 = fk.c.f215213a; int i26 = fk.d.f215214a; int i27 = fk.o.f215225a; int i28 = fk.m.f215223a; int i29 = fk.p.f215226a; int i35 = fk.n.f215224a; int i36 = fk.g.f215217a; int i37 = fk.k.f215221a; com.tencent.mm.pluginsdk.cmd.a.b(new fk.a(), "//clearrecent"); int i38 = fk.b.f215212a; ((uw.t) yz3.j.c(uw.t.class)).R80(); HashSet<String> hashSet = new HashSet<>(); f74053a = hashSet; hashSet.add("//uplog"); hashSet.add("//pullxlog"); hashSet.add("//upcrash"); hashSet.add("//getfpkey"); hashSet.add("//voipdebug"); hashSet.add("//setkey"); hashSet.add("//wxcamera"); hashSet.add("//setNfcOpenUrl"); hashSet.add("//resetwxspace"); } /* JADX WARNING: Code restructure failed: missing block: B:20:0x0167, code lost: if (r9 != null) goto L_0x0169; */ /* JADX WARNING: Removed duplicated region for block: B:30:0x0192 A[SYNTHETIC, Splitter:B:30:0x0192] */ public static boolean a(Context context, String str) { Throwable th5; y1 y1Var; Exception e15; StringBuffer stringBuffer = new StringBuffer(); if (!Util.isNullOrNil(str)) { stringBuffer.append(str + "\n\n"); } stringBuffer.append("Default RSA Info:\n"); stringBuffer.append("ClientVersion: " + BuildInfo.CLIENT_VERSION + "\n"); stringBuffer.append("BASE_RSA_PUBLIC_VERSION = 199\n"); stringBuffer.append("BASE_RSA_PUBLIC_KEYN = ADA9E573417691226521F9FF1B3732DF83EDA19BA60870A357E430135298469E68EF31E9E2109CA5E0CA661F769FCB2FE33A3021B9A790D5DFCA6720A439BEF69E138FAB1B05475228FD33BB11D07321A6DB4DB2689CA850C483630855DB7EDDD8B4505349DA863677E3EB78A46B5912FAE11BDE92BE9D98E3E2F2A47E03777E8795A51D67D7CC4B86EDEBD3D8968AAC51A58FFDBAA068750E4771BD364911B22420F96F8B0D7730455CC8CE1933B406C38675A9540E51C11C9872F692E2EC693448913781D1A8DD61A1FCC97B8B078CA06DDE9EBC35A1A22A697831879588F52BD6A108E1EE6519C518EDC887F65587D7F769C22E81131940085E6FAED67FCF len(512)\n"); stringBuffer.append("BASE_RSA_PUBLIC_KEYE = 010001\n\n"); stringBuffer.append("REQ_RSA_PUBLIC_VERSION = 200\n"); stringBuffer.append("REQ_RSA_PUBLIC_KEYN = 9357B6A18EE981DDA2C3CBBF39F5D308FC21656F30CF2EE7D75F6E9CB12928B972364B1AC57E2FB1F4ECC113A4060B9E97EEEF868FBD2623DDEFF77C3A048507F65DF9200CE4B2321E8D39B414C0663A8A10F6278543D28B2939BC8BD5CC7BE9A95F868C4F3C4F758C6A78ADD98BDE33D56E58377B10DD7F225426B5B27F4038302BE2DCA9332B8EC57B5E29C90B7A7DE6417D7378CB1D8B51E68BE1E99B2EB5EB49E613DCFF3FAED6F8C4875F6425F1AF6AEF3358403E4B0A92E456E1D5BE84999907A1246F2BECE05683959614312026492BDC302F82F38AD2EE99FDDB8675736274989B2389E95E80F8B597E69FD6A2CCB279226A578465EF9D50D29AE5ED len(512)\n"); stringBuffer.append("REQ_RSA_PUBLIC_KEYE = 010001\n"); Log.i("MicroMsg.CommandProcessor", "summercert dumpdefaultrsa " + stringBuffer.toString()); boolean z15 = false; if (!CrashReportFactory.hasDebuger()) { return false; } TextView textView = new TextView(context); textView.setText(stringBuffer.toString()); textView.setGravity(19); textView.setTextSize(1, 10.0f); textView.setLayoutParams(new ViewGroup.LayoutParams(-1, -2)); textView.setTextColor(context.getResources().getColor(R.color.FG_0)); textView.setTypeface(Typeface.MONOSPACE); int dimensionPixelSize = context.getResources().getDimensionPixelSize(R.dimen.j_); textView.setPadding(dimensionPixelSize, dimensionPixelSize, dimensionPixelSize, dimensionPixelSize); textView.setMovementMethod(ScrollingMovementMethod.getInstance()); y1 y1Var2 = null; i14.j.q(context, null, textView, null); try { y1Var = new y1(z80.b.E() + "DefaultRSARef.java"); try { y1Var.write("package com.tencent.mm.protocal;\n\n"); y1Var.write("/**\n *\n * @ClientVersion: " + BuildInfo.CLIENT_VERSION + "\n"); y1Var.write(" * @DumpTime: " + new SimpleDateFormat(TimeUtil.YYYY2MM2DD_HH1MM1SS).format(new Date()) + " \n */\n"); y1Var.write("public final class DefaultRSA {\n"); y1Var.write("\n\tpublic final static int BASE_RSA_PUBLIC_VERSION = 199;"); y1Var.write("\n\tpublic final static String BASE_RSA_PUBLIC_KEYN = \"ADA9E573417691226521F9FF1B3732DF83EDA19BA60870A357E430135298469E68EF31E9E2109CA5E0CA661F769FCB2FE33A3021B9A790D5DFCA6720A439BEF69E138FAB1B05475228FD33BB11D07321A6DB4DB2689CA850C483630855DB7EDDD8B4505349DA863677E3EB78A46B5912FAE11BDE92BE9D98E3E2F2A47E03777E8795A51D67D7CC4B86EDEBD3D8968AAC51A58FFDBAA068750E4771BD364911B22420F96F8B0D7730455CC8CE1933B406C38675A9540E51C11C9872F692E2EC693448913781D1A8DD61A1FCC97B8B078CA06DDE9EBC35A1A22A697831879588F52BD6A108E1EE6519C518EDC887F65587D7F769C22E81131940085E6FAED67FCF\";"); y1Var.write("\n\tpublic final static String BASE_RSA_PUBLIC_KEYE = \"010001\";\n"); y1Var.write("\n\tpublic final static int REQ_RSA_PUBLIC_VERSION = 200;"); y1Var.write("\n\tpublic final static String REQ_RSA_PUBLIC_KEYN = \"9357B6A18EE981DDA2C3CBBF39F5D308FC21656F30CF2EE7D75F6E9CB12928B972364B1AC57E2FB1F4ECC113A4060B9E97EEEF868FBD2623DDEFF77C3A048507F65DF9200CE4B2321E8D39B414C0663A8A10F6278543D28B2939BC8BD5CC7BE9A95F868C4F3C4F758C6A78ADD98BDE33D56E58377B10DD7F225426B5B27F4038302BE2DCA9332B8EC57B5E29C90B7A7DE6417D7378CB1D8B51E68BE1E99B2EB5EB49E613DCFF3FAED6F8C4875F6425F1AF6AEF3358403E4B0A92E456E1D5BE84999907A1246F2BECE05683959614312026492BDC302F82F38AD2EE99FDDB8675736274989B2389E95E80F8B597E69FD6A2CCB279226A578465EF9D50D29AE5ED\";"); y1Var.write("\n\tpublic final static String REQ_RSA_PUBLIC_KEYE = \"010001\";\n\n}\n"); z15 = true; } catch (Exception e16) { e15 = e16; try { Log.printErrStackTrace("MicroMsg.RsaInfo", e15, "", new Object[0]); } catch (Throwable th6) { th5 = th6; y1Var2 = y1Var; if (y1Var2 != null) { } throw th5; } } } catch (Exception e17) { e15 = e17; y1Var = null; Log.printErrStackTrace("MicroMsg.RsaInfo", e15, "", new Object[0]); } catch (Throwable th7) { th5 = th7; if (y1Var2 != null) { try { y1Var2.close(); } catch (Exception unused) { } } throw th5; } try { y1Var.close(); } catch (Exception unused2) { } if (z15) { ak.a.makeText(context, "dump file:" + z80.b.E() + "DefaultRSARef.java", 1).show(); } return true; } public static String b(String str) { int indexOf = str.indexOf(" "); if (indexOf < 0) { return ""; } return str.substring(indexOf).trim(); } public static boolean c(String str) { Iterator<String> it = f74053a.iterator(); while (it.hasNext()) { if (str.startsWith(it.next())) { return true; } } return false; } /* JADX WARNING: Removed duplicated region for block: B:30:0x00dd */ /* JADX WARNING: Removed duplicated region for block: B:34:0x00e3 A[SYNTHETIC, Splitter:B:34:0x00e3] */ public static StringBuilder d(int i15) { Throwable th5; Exception e15; Date date = new Date(Util.nowMilliSecond() - (((long) i15) * 86400000)); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd", Locale.getDefault()); String str = z80.b.a() + "crash_" + simpleDateFormat.format(date) + ".txt"; StringBuilder sb5 = new StringBuilder(); if (u1.k(str)) { return new StringBuilder(" day -" + i15 + " no crash."); } BufferedReader bufferedReader = null; try { BufferedReader bufferedReader2 = new BufferedReader(new x1(str)); try { if (Util.isNullOrNil(bufferedReader2.readLine())) { bufferedReader2.close(); StringBuilder sb6 = new StringBuilder("read day -" + i15 + "file failed"); try { bufferedReader2.close(); } catch (Exception unused) { } return sb6; } while (true) { String readLine = bufferedReader2.readLine(); if (readLine != null) { sb5.append(new String(Base64.decode(readLine.split("error_")[1], 0)).split("#accinfo.uin=")[1]); sb5.append("\n_____________________________________\n"); } else { try { break; } catch (Exception unused2) { } } } bufferedReader2.close(); return sb5; } catch (Exception e16) { e15 = e16; bufferedReader = bufferedReader2; try { Log.printErrStackTrace("MicroMsg.CommandProcessor", e15, "", new Object[0]); if (bufferedReader != null) { } return sb5; } catch (Throwable th6) { th5 = th6; if (bufferedReader != null) { } throw th5; } } catch (Throwable th7) { th5 = th7; bufferedReader = bufferedReader2; if (bufferedReader != null) { try { bufferedReader.close(); } catch (Exception unused3) { } } throw th5; } } catch (Exception e17) { e15 = e17; Log.printErrStackTrace("MicroMsg.CommandProcessor", e15, "", new Object[0]); if (bufferedReader != null) { bufferedReader.close(); } return sb5; } } /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARNING: Code restructure failed: missing block: B:79:0x01ee, code lost: return true; */ /* JADX WARNING: Exception block dominator not found, dom blocks: [] */ /* JADX WARNING: Removed duplicated region for block: B:1415:0x2941 */ /* JADX WARNING: Removed duplicated region for block: B:1424:0x2976 */ /* JADX WARNING: Removed duplicated region for block: B:1577:0x2e7a */ /* JADX WARNING: Removed duplicated region for block: B:1578:0x2e9b */ /* JADX WARNING: Removed duplicated region for block: B:1689:0x30ba */ /* JADX WARNING: Removed duplicated region for block: B:471:0x0e78 */ /* JADX WARNING: Removed duplicated region for block: B:472:0x0e7a */ public static boolean e(Context context, String str, String str2) { String str3; Integer num; int i15; String str4; String str5; boolean z15; int i16; int i17; int i18; String[] split; String str6; c3 ei02; Exception e15; boolean z16; String str7; boolean z17; boolean z18; boolean z19; String str8; long j15; String str9; String str10; String str11; String str12; String str13; String str14; String str15; String str16; long j16; if (!str.startsWith("//")) { return false; } if (1 < Log.getLogLevel() && !c(str)) { Log.i("MicroMsg.CommandProcessor", "summer processed log level[%s], need open debug ret false", Integer.valueOf(Log.getLogLevel())); return false; } else if (com.tencent.mm.pluginsdk.cmd.a.a(context, str, str2)) { return true; } else { if (str.startsWith("//clearWXSNSDB")) { new SnsClearDBEvent().publish(); return true; } else if (str.startsWith("//verifytokenerror")) { n0.P = true; return true; } else if (str.startsWith("//testcrash")) { Log.i("MicroMsg.CommandProcessor", "testcrash"); throw new IllegalArgumentException("test exception."); } else if (str.startsWith("//testcov")) { Log.i("MicroMsg.CommandProcessor", "TEST TCOV xxx1"); Log.i("MicroMsg.CommandProcessor", "TEST TCOV xxx2"); Log.i("MicroMsg.CommandProcessor", "TEST TCOV xxx3"); Log.i("MicroMsg.CommandProcessor", "TEST TCOV xxx4"); return true; } else if (str.startsWith("//nativeLibraries")) { NativeLibraries.list(); return true; } else if (str.startsWith("//getprofile")) { String r15 = u0.r(); if (!TextUtils.isEmpty(r15)) { p3.e().f(new w(r15)); } return true; } else if (str.startsWith("//testLqt")) { String[] split2 = str.split(" "); if (split2.length == 2) { if (Util.getInt(split2[1], 0) == 1) { n0.R = true; } else { n0.R = false; } } return true; } else if (str.startsWith("//resetbackupdata")) { t1 u15 = p3.b().u(); w1.a aVar = w1.a.f175685v6; Boolean bool = Boolean.FALSE; u15.L(aVar, bool); p3.b().u().L(w1.a.f175711w6, bool); p3.b().u().L(w1.a.f175738x6, bool); p3.b().u().L(w1.a.f175765y6, bool); p3.b().u().L(w1.a.f175791z6, bool); p3.b().u().L(w1.a.A6, bool); p3.b().k().deleteAllData(); p3.b().j().deleteAllData(); p3.b().i().deleteAllData(); ak.a.makeText(MMApplicationContext.getContext(), "backup data has been reset!", 1).show(); return true; } else if (str.startsWith("//backuptest")) { BackupStartMergeEvent backupStartMergeEvent = new BackupStartMergeEvent(); backupStartMergeEvent.f61889d.f61890a = 1; backupStartMergeEvent.publish(); return true; } else if (str.startsWith("//startmerge")) { BackupStartMergeEvent backupStartMergeEvent2 = new BackupStartMergeEvent(); backupStartMergeEvent2.f61889d.f61890a = 2; backupStartMergeEvent2.publish(); return true; } else if (str.startsWith("//deletemerge")) { BackupStartMergeEvent backupStartMergeEvent3 = new BackupStartMergeEvent(); backupStartMergeEvent3.f61889d.f61890a = 3; backupStartMergeEvent3.publish(); return true; } else if (str.startsWith("//cleanadd")) { String[] split3 = str.split(" "); long j17 = 500; if (split3.length > 1) { j17 = (long) Util.getInt(split3[1], 500); } q1 q1Var = new q1(z80.b.Z() + "/testtest/"); if (!q1Var.m()) { q1Var.k(); } WritableByteChannel K = u1.K(q1Var); for (int i19 = 0; ((long) i19) < j17; i19++) { K.write(ByteBuffer.allocate((int) 1048576)); } K.close(); return true; } else if (str.startsWith("//cleanresetindex")) { MultiProcessMMKV.getMMKV("CleanCalcMMKV").encode("CleanCalcAlreadyResetIndex", false); return true; } else if (str.startsWith("//resetwxspace")) { return com.tencent.mm.pluginsdk.cmd.a.a(context, "//clean reset", str2); } else { if (str.startsWith("//resetliveverify")) { MultiProcessMMKV.getSingleMMKV("tag_live_core").putBoolean("anchor_verify", false); return true; } else if (str.startsWith("//open livefaceverify")) { MultiProcessMMKV.getSingleMMKV("tag_live_core").putBoolean("test_mmkv_live_face_verify", true); return true; } else if (str.startsWith("//close livefaceverify")) { MultiProcessMMKV.getSingleMMKV("tag_live_core").putBoolean("test_mmkv_live_face_verify", false); return true; } else if (str.startsWith("//skip livemobileverify")) { MultiProcessMMKV.getSingleMMKV("tag_live_core").putBoolean("test_mmkv_live_skip_mobile_verify", true); return true; } else if (str.startsWith("//reset livemobileverify")) { MultiProcessMMKV.getSingleMMKV("tag_live_core").putBoolean("test_mmkv_live_skip_mobile_verify", false); return true; } else if (str.startsWith("//delete livetipsbar")) { ((qu.c) yz3.j.c(qu.c.class)).vf0().deleteAllData(); return true; } else if (str.startsWith("//add livetipsbar")) { ((qu.c) yz3.j.c(qu.c.class)).UG(ChattingUIFragment.S); return true; } else if (str.startsWith("//dbcheck")) { xk.a.a(); return true; } else if (str.startsWith("//threadpool replace")) { if (str.startsWith("//threadpool replace false")) { MMApplicationContext.getDefaultPreference().edit().putBoolean("REPLACE_WORKER_BOOLEAN", false).commit(); } else if (str.startsWith("//threadpool replace true")) { MMApplicationContext.getDefaultPreference().edit().putBoolean("REPLACE_WORKER_BOOLEAN", true).commit(); } return true; } else if (str.equalsIgnoreCase("//ftsmsbiz")) { th3 c15 = a1.c(); StringBuilder sb5 = new StringBuilder(); Iterator<sh3> it = c15.f37601d.iterator(); while (it.hasNext()) { sh3 next = it.next(); sb5.append(String.format("%s | %.2f | %s", ((hh2.j) yz3.j.c(hh2.j.class)).getDisplayName(next.f36469d), Double.valueOf(next.f36470e), uu3.j.d("yyyy-MM-dd HH:mm", next.f36471f / 1000))); sb5.append("\n"); } TextView textView = new TextView(context); textView.setText(sb5.toString()); textView.setGravity(19); textView.setTextSize(1, 10.0f); textView.setLayoutParams(new ViewGroup.LayoutParams(-1, -2)); textView.setTextColor(context.getResources().getColor(R.color.FG_0)); textView.setTypeface(Typeface.MONOSPACE); int dimensionPixelSize = context.getResources().getDimensionPixelSize(R.dimen.f359247hf); textView.setPadding(dimensionPixelSize, dimensionPixelSize, dimensionPixelSize, dimensionPixelSize); i14.j.q(context, null, textView, null); return true; } else if (str.startsWith("//cleanww")) { ((si0.j) yz3.j.c(si0.j.class)).Gj(); return true; } else { String str17 = ""; if (CrashReportFactory.hasDebuger()) { if (str.startsWith("//launchapp clear")) { z.s().i().L(w1.a.f175477n7, str17); return true; } else if (str.startsWith("//setsupportwxcode")) { z.s().i().L(w1.a.L8, Boolean.TRUE); return true; } else if (str.startsWith("//setnotsupportwxcode")) { z.s().i().L(w1.a.L8, Boolean.FALSE); return true; } else if (str.startsWith("//resetsupportwxcode")) { z.s().i().L(w1.a.L8, null); return true; } } if (str.startsWith("//testsightwidget")) { Intent intent = new Intent(); intent.putExtra("KSightPath", "/mnt/sdcard/tencent/tempvideo4.mp4"); intent.putExtra("KSightThumbPath", str17); intent.putExtra("sight_md5", u1.q("/mnt/sdcard/tencent/tempvideo4.mp4")); intent.putExtra("KSnsPostManu", true); intent.putExtra("KTouchCameraTime", Util.nowSecond()); intent.putExtra("Ksnsupload_type", 14); sv3.b.i(context, "sns", ".ui.SnsUploadUI", intent); return true; } else if (str.startsWith("//openremitbank")) { z.s().i().L(w1.a.Fb, 1); return true; } else if (str.startsWith("//chatroomdebug ")) { if (str.substring(str.indexOf(" ") + 1).equalsIgnoreCase("true")) { ((o61.c) z.q(o61.c.class)).k0(true); } else { ((o61.c) z.q(o61.c.class)).k0(false); } return true; } else { String str18 = "0"; if (str.startsWith("//angerbag")) { t1 i25 = z.s().i(); w1.a aVar2 = w1.a.Sd; if (((String) i25.f(aVar2, str18)).equals(str18)) { str18 = "1"; } z.s().i().L(aVar2, str18); return true; } else if (str.startsWith("//clearbag")) { z.s().i().L(w1.a.Rd, str17); return true; } else if (str.startsWith("//closeremitbank")) { z.s().i().L(w1.a.Fb, 0); return true; } else { if (str.startsWith("//ftstemplatetest")) { CheckResUpdateCacheFileEvent checkResUpdateCacheFileEvent = new CheckResUpdateCacheFileEvent(); CheckResUpdateCacheFileEvent.a aVar3 = checkResUpdateCacheFileEvent.f62051d; aVar3.f62052a = 1; aVar3.f62054c = "/sdcard/fts_template.zip"; checkResUpdateCacheFileEvent.publish(); } if (str.startsWith("//remit")) { sv3.b.i(context, "remittance", ".ui.RemittanceBusiUI", new Intent()); return true; } else if (str.startsWith("//fixtools")) { Intent intent2 = new Intent(); intent2.setClassName(context, "com.tencent.mm.plugin.setting.ui.fixtools.FixToolsUI"); intent2.putExtra("entry_fix_tools", 2); k30.a aVar4 = new k30.a(); aVar4.c(intent2); j30.a.d(context, aVar4.b(), "com/tencent/mm/console/CommandProcessor", "processed", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar4.a(0)); j30.a.e(context, "com/tencent/mm/console/CommandProcessor", "processed", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); return true; } else if (str.startsWith("//uplog")) { Intent intent3 = new Intent(); intent3.setClassName(context, "com.tencent.mm.plugin.setting.ui.fixtools.FixToolsUplogUI"); intent3.putExtra("entry_fix_tools_uplog", 5); MMWizardActivity.X7(context, intent3); return true; } else if (str.startsWith("//pullxlog")) { Log.moveLogsFromCacheDirToLogDir(); ak.a.makeText(context, "move success", 0).show(); return true; } else if (str.startsWith("//upcrash")) { int g15 = p3.a() ? z.b().g() : 0; String[] split4 = str.split(" "); p3.e().f(new k4(new i((split4 == null || split4.length <= 1) ? 0 : Util.getInt(split4[1], 0), g15))); return true; } else if (str.startsWith("//fixError0831")) { Log.i("MicroMsg.CommandProcessor", "fixError0831"); new CleanError0831Event().publish(); return true; } else if (str.startsWith("//resetbankremit")) { z.s().i().L(w1.a.Gb, 0); return true; } else if (str.startsWith("//busiluck ")) { Intent intent4 = new Intent(); intent4.putExtra("key_way", 5); intent4.putExtra("key_native_url", "weixin://openNativeUrl/weixinHB/startreceivebizhbrequest?sendid=" + str.replace("//busiluck ", str17)); sv3.b.i(context, "luckymoney", ".ui.LuckyMoneyBusiReceiveUI", intent4); return true; } else if (str.startsWith("//testsoter")) { Intent intent5 = new Intent(); intent5.setClassName(MMApplicationContext.getPackageName(), "com.tencent.mm.plugin.soter.ui.SoterTestUI"); k30.a aVar5 = new k30.a(); aVar5.c(intent5); j30.a.d(context, aVar5.b(), "com/tencent/mm/console/CommandProcessor", "processed", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar5.a(0)); j30.a.e(context, "com/tencent/mm/console/CommandProcessor", "processed", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); return true; } else if (str.startsWith("//facevideo")) { String[] split5 = str.split(" "); if (split5.length == 3) { o3.f270764c.d("imgType", split5[1]); o3.f270764c.d("depth", split5[2]); } return true; } else if (str.startsWith("//alpha")) { String[] split6 = str.split(" "); if (split6.length == 2) { o3.f270764c.d("alpha_duration", split6[1]); } return true; } else if (str.startsWith("//forceNotifyError")) { String[] split7 = str.split(" "); if (split7.length == 2) { ((s52.b) yz3.j.c(s52.b.class)).Bv(split7[1].equalsIgnoreCase("true")); } return true; } else if (str.startsWith("//rectwidth")) { String[] split8 = str.split(" "); if (split8.length == 2) { o3.f270764c.d("rect_width", split8[1]); } return true; } else if (str.startsWith("//clearnewtips")) { ro2.b.XN0().deleteAllData(); return true; } else if (str.startsWith("//clearfavoffline")) { fi1.b.b(); return true; } else if (str.startsWith("//newyearsw ")) { t1 u16 = p3.b().u(); w1.a aVar6 = w1.a.f175293g1; p3.b().u().L(aVar6, Integer.valueOf(((Integer) u16.f(aVar6, 0)).intValue() ^ 1)); return true; } else if (str.startsWith("//openimcreatesw")) { t1 u17 = p3.b().u(); w1.a aVar7 = w1.a.Zm; int intValue = ((Integer) u17.f(aVar7, 1)).intValue() ^ 1; y0.makeText(MMApplicationContext.getContext(), "sw:" + intValue, 1).show(); p3.b().u().L(aVar7, Integer.valueOf(intValue)); return true; } else if (str.startsWith("//commitxlog")) { p3.e().i(); Log.appenderFlush(); return true; } else if (str.startsWith("//liteapppreload")) { long currentTimeMillis = System.currentTimeMillis(); ((ku.f) yz3.j.c(ku.f.class)).G80(); Log.i("MicroMsg.CommandProcessor", "johnjh preload liteapp time : " + (System.currentTimeMillis() - currentTimeMillis)); return true; } else if (str.startsWith("//open neattextview")) { z.s().i().L(w1.a.Kb, Boolean.TRUE); return true; } else if (str.startsWith("//close neattextview")) { z.s().i().L(w1.a.Kb, Boolean.FALSE); return true; } else if (str.startsWith("//unprint specialtext")) { MMNeat7extView.S = false; return true; } else if (str.startsWith("//print specialtext")) { MMNeat7extView.S = true; return true; } else if (str.startsWith("//netstatus")) { String dumpNetStatus = NetStatusUtil.dumpNetStatus(MMApplicationContext.getContext()); i14.j.A(context, dumpNetStatus, "netstatus", context.getString(R.string.kbu), context.getString(R.string.baz), new k(dumpNetStatus), null); return true; } else { long j18 = -1; if (str.startsWith("//scaninterval ")) { try { j16 = Util.getLong(str.split(" ")[1], -1); } catch (Exception unused) { j16 = -1; } if (j16 > 0) { p3.b().u().L(w1.a.f175502o6, Long.valueOf(j16)); Log.i("MicroMsg.CommandProcessor", "summerclean reset scaninterval[%d]", Long.valueOf(j16)); return true; } } if (str.startsWith("//scanwait ")) { try { j18 = Util.getLong(str.split(" ")[1], -1); } catch (Exception unused2) { } if (j18 > 0) { p3.b().u().L(w1.a.f175529p6, Long.valueOf(j18)); Log.i("MicroMsg.CommandProcessor", "summerclean reset scanwait[%d]", Long.valueOf(j18)); return true; } } if (str.equalsIgnoreCase("//delayquery")) { n0.Q = !n0.Q; return true; } else if (str.startsWith("//newinit -hard")) { z.h(); z.s().i().K(15, 0); return true; } else if (str.startsWith("//websearch-widget-draw ")) { String[] split9 = str.split("\\s+"); if (split9.length == 2) { ((z00.s) yz3.j.c(z00.s.class)).Hm0(Util.safeParseInt(split9[1].trim())); } return true; } else if (str.equalsIgnoreCase("//swipe")) { SharedPreferences defaultPreference = MMApplicationContext.getDefaultPreference(); defaultPreference.edit().putBoolean("settings_support_swipe", !defaultPreference.getBoolean("settings_support_swipe", true)).commit(); return true; } else if (str.equalsIgnoreCase("//multiwebview")) { SharedPreferences sharedPreferences = LauncherUI.getInstance().getSharedPreferences(MMApplicationContext.getDefaultPreferencePath(), 0); boolean z25 = sharedPreferences.getBoolean("settings_multi_webview", false); if (z25) { sharedPreferences.edit().putBoolean("settings_multi_webview", !z25).commit(); } return true; } else if (str.equalsIgnoreCase("//sightinfo")) { p3.b().u().K(344065, Boolean.valueOf(!((Boolean) p3.b().u().e(344065, Boolean.FALSE)).booleanValue())); p3.b().u().a(true); return true; } else if (str.startsWith("//verifycgi")) { ((w00.f) yz3.j.c(w00.f.class)).rV(); return true; } else if (str.startsWith("//reusetopush")) { nf0.a.e(); return true; } else if (str.startsWith("//sighttest")) { p3.b().u().K(344066, Integer.valueOf(Util.safeParseInt(str.replace("//sighttest ", str17)))); p3.b().u().a(true); return true; } else if (str.startsWith("//wxcamera")) { int safeParseInt = Util.safeParseInt(str.replace("//wxcamera ", str17)); Log.i("MicroMsg.CommandProcessor", "set param %d", Integer.valueOf(safeParseInt)); p3.b().u().L(w1.a.U5, Integer.valueOf(safeParseInt)); return true; } else if (str.startsWith("//printcrash")) { String replace = str.replace("//printcrash ", str17); TextView textView2 = new TextView(context); textView2.setText(d(Util.getInt(replace, 0))); textView2.setGravity(19); textView2.setTextSize(1, 8.0f); textView2.setLayoutParams(new ViewGroup.LayoutParams(-1, -2)); textView2.setTextColor(context.getResources().getColor(R.color.FG_0)); textView2.setTypeface(Typeface.MONOSPACE); int dimensionPixelSize2 = context.getResources().getDimensionPixelSize(R.dimen.j_); textView2.setPadding(dimensionPixelSize2, dimensionPixelSize2, dimensionPixelSize2, dimensionPixelSize2); textView2.setMovementMethod(ScrollingMovementMethod.getInstance()); i14.j.q(context, null, textView2, null); return true; } else if (str.startsWith("//printleak")) { TextView textView3 = new TextView(context); textView3.setText(sj.f.b()); textView3.setGravity(19); textView3.setTextSize(1, 8.0f); textView3.setLayoutParams(new ViewGroup.LayoutParams(-1, -2)); textView3.setTextColor(context.getResources().getColor(R.color.FG_0)); textView3.setTypeface(Typeface.MONOSPACE); int dimensionPixelSize3 = context.getResources().getDimensionPixelSize(R.dimen.j_); textView3.setPadding(dimensionPixelSize3, dimensionPixelSize3, dimensionPixelSize3, dimensionPixelSize3); textView3.setMovementMethod(ScrollingMovementMethod.getInstance()); i14.j.q(context, null, textView3, null); return true; } else if (str.startsWith("//resetmapcnt")) { p3.b().u().L(w1.a.M8, 0); return true; } else if (str.equals("//testrsa")) { c1.f("010001", "E338E5DAD46B331E3071FAFD4C0F84C7C7965DBBE64C6F8CC0F7CF04DC640C1F84A2014431A48D65F2B2F172BA9BE6F5A049BF52C78C14B0965E20F0D80D85A9180EBABB913D49821D28BFD9601DF52A4F3230AECAD96D23415F5E94D51A87CAA7630C5F3CB70345BAF572A4F61A134A2265AFD8FADDFE0222BD9ABF7DBEB7444D031454E8F21820BBC725E6857F765660E987FADEBCF6B3A15355C4CD3752A7B544D1D7E037AF4F9725BE37681A84C9E1DC431B3065294EAD53E913BAF16D46714B013EA077191E6CA08ABA6D70E9CA792D898D692E3168D6341369976657CD5E1504B9E2458F107225176734D11621AD36D7FFA26C573D6612455B09105C41", 106); return true; } else if (str.equals("//testrsabad")) { c1.f("010001", "F338E5DAD46B331E3071FAFD4C0F84C7C7965DBBE64C6F8CC0F7CF04DC640C1F84A2014431A48D65F2B2F172BA9BE6F5A049BF52C78C14B0965E20F0D80D85A9180EBABB913D49821D28BFD9601DF52A4F3230AECAD96D23415F5E94D51A87CAA7630C5F3CB70345BAF572A4F61A134A2265AFD8FADDFE0222BD9ABF7DBEB7444D031454E8F21820BBC725E6857F765660E987FADEBCF6B3A15355C4CD3752A7B544D1D7E037AF4F9725BE37681A84C9E1DC431B3065294EAD53E913BAF16D46714B013EA077191E6CA08ABA6D70E9CA792D898D692E3168D6341369976657CD5E1504B9E2458F107225176734D11621AD36D7FFA26C573D6612455B09105C41", 106); return true; } else if (str.equals("//walletofflinetest")) { p3.b().u().L(w1.a.D5, Boolean.FALSE); return false; } else if (str.startsWith("//makemsgdata ")) { ((g4) p3.b().z()).co0(ChattingUIFragment.S, (long) Util.getInt(str.split(" ")[1], 0)); return true; } else if (str.startsWith("//pullappservice")) { a2.c().e(MMApplicationContext.getContext()); return true; } else if (str.startsWith("//boundaryconfig")) { Log.i("MicroMsg.CommandProcessor", "boundaryconfig SessionTextMsg:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitSessionTextMsg"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig SNSObjectText:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitSNSObjectText"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig SnsCommentMaxSize:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("SnsCommentMaxSize"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig FavText:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitFavText"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig EmotionBufSize:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitSendEmotionBufSize"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig EmotionWidth:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitSendEmotionWidth"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig FavImageSize:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitFavImageSize"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig FavVoiceLength:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitFavVoiceLength"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig ShortVideoAutoDownloadBufSize:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitSessionShortVideoBufSize"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig VideoSize:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitVideoSize"), 0))); Log.i("MicroMsg.CommandProcessor", "boundaryconfig FileSize:%d", Integer.valueOf(Util.getInt(((jt3.b) z.q(jt3.b.class)).gv0().d("InputLimitFileSize"), 0))); return true; } else if (str.startsWith("//whatsnew")) { Activity activity = (Activity) context; return true; } else if (str.startsWith("//profile ")) { z1 z1Var = p3.b().v().get(str.replace("//profile ", str17).trim()); if (!(z1Var == null || z1Var.q3() == 0)) { Intent intent6 = new Intent(); intent6.putExtra("Contact_User", z1Var.getUsername()); sv3.b.i(context, Scopes.PROFILE, ".ui.ContactInfoUI", intent6); } return true; } else if (str.startsWith("//minigameupdate")) { p3.b().u().L(w1.a.E, 0L); return true; } else { if (CrashReportFactory.hasDebuger()) { if (str.startsWith("//cs")) { Intent intent7 = new Intent(); intent7.putExtra("voipCSBizId", "gh_b35727b00b78"); intent7.putExtra("voipCSAppId", "wx6e7147e8d764e85d"); sv3.b.i(MMApplicationContext.getContext(), "voip_cs", ".ui.VoipCSMainUI", intent7); return true; } else if (str.startsWith("//acs")) { Intent intent8 = new Intent(); intent8.putExtra("voipCSBizId", "gh_e8b085bb67e0"); intent8.putExtra("voipCSAppId", "wx1224160e0adcefd6"); sv3.b.i(MMApplicationContext.getContext(), "voip_cs", ".ui.VoipCSMainUI", intent8); return true; } else if (str.startsWith("//wifiset")) { return true; } else { if (str.startsWith("//bcs")) { Intent intent9 = new Intent(); intent9.putExtra("voipCSBizId", "gh_e8b085bb67e0"); intent9.putExtra("voipCSAppId", "wx1224160e0adcefd6"); intent9.putExtra("voipCSAllowBackCamera", "1"); intent9.putExtra("voipCSShowOther", "1"); intent9.putExtra("voipCSAvatarUrl", "https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=28737416,3249768666&fm=58"); intent9.putExtra("voipCSContext", APMidasPayAPI.ENV_TEST); sv3.b.i(MMApplicationContext.getContext(), "voip_cs", ".ui.VoipCSMainUI", intent9); return true; } } } if (str.startsWith("//getfpkey")) { String Ga = t4.Ga(); i14.j.A(context, Ga, "Fingerprint Key", context.getString(R.string.kbu), context.getString(R.string.baz), new m(Ga, context), null); return true; } else if (str.startsWith("//commitwd")) { WatchDogPushReceiver.b(); return true; } else if (str.startsWith("//setsnstestenv")) { String[] split10 = str.split(" +"); if (split10.length > 1) { String str19 = split10[1]; if (InetUtil.isIPv4Address(str19) || InetUtil.isIPv6Address(str19)) { if (split10.length > 2) { str16 = split10[2]; if (InetUtil.isIPv4Address(str16) || InetUtil.isIPv6Address(str16)) { if (split10.length > 3) { str14 = split10[3]; str15 = str19; n0.C = str15 == null; n0.A = str15; n0.N = str16; n0.O = str14; h0.eO0().iO0(5); ak.a.makeText(context, String.format("%s %s %s", n0.A, n0.N, n0.O), 1).show(); return true; } str15 = str19; str14 = null; n0.C = str15 == null; n0.A = str15; n0.N = str16; n0.O = str14; h0.eO0().iO0(5); ak.a.makeText(context, String.format("%s %s %s", n0.A, n0.N, n0.O), 1).show(); return true; } } str15 = str19; str16 = null; str14 = null; n0.C = str15 == null; n0.A = str15; n0.N = str16; n0.O = str14; h0.eO0().iO0(5); ak.a.makeText(context, String.format("%s %s %s", n0.A, n0.N, n0.O), 1).show(); return true; } } str16 = null; str15 = null; str14 = null; n0.C = str15 == null; n0.A = str15; n0.N = str16; n0.O = str14; h0.eO0().iO0(5); ak.a.makeText(context, String.format("%s %s %s", n0.A, n0.N, n0.O), 1).show(); return true; } else if (str.startsWith("//snswithtateach")) { MultiProcessMMKV.getMMKV("SnsMMKV").encode("SnsMMKVWithTaTeachDialog", true); return true; } else if (str.startsWith("//snsfold")) { String[] split11 = str.split(" "); if (split11.length >= 2) { na3 na32 = new na3(); na32.b(split11[1]); na32.c(0); ((eh0.p) ((k0) z.q(k0.class)).Na0()).h(new kh2.n(230, na32)); f1.lO0().a(); ak.a.makeText(context, "已重置" + split11[1] + "折叠标记", 1).show(); } return true; } else if (str.startsWith("//deleteopenimsnstable")) { ((ri0.b) yz3.j.c(ri0.b.class)).aO0().Ga(); return true; } else if (str.startsWith("//profileopenAlbum")) { boolean z26 = !NewContactWidgetNormal.A; NewContactWidgetNormal.A = z26; ak.a.makeText(context, String.format("debugOpenAlbum: %s", Boolean.valueOf(z26)), 0).show(); return true; } else if (str.startsWith("//snsvcodec")) { String[] split12 = str.split(" +"); if (split12.length > 1) { String str20 = split12[1]; if ("on".equalsIgnoreCase(str20)) { f(1); Log.i("MicroMsg.CommandProcessor", "snsvcodec val: 1"); } else if ("off".equalsIgnoreCase(str20)) { f(0); Log.i("MicroMsg.CommandProcessor", "snsvcodec val: 0"); } } else { f(-1); Log.i("MicroMsg.CommandProcessor", "snsvcodec val: -1"); } return true; } else if (str.startsWith("//snswxpc")) { String[] split13 = str.split(" +"); if (split13.length > 1) { String str21 = split13[1]; if ("on".equalsIgnoreCase(str21)) { g(1); Log.i("MicroMsg.CommandProcessor", "snswxpc val: 1"); } else if ("off".equalsIgnoreCase(str21)) { g(0); Log.i("MicroMsg.CommandProcessor", "snswxpc val: 0"); } } else { g(-1); Log.i("MicroMsg.CommandProcessor", "snswxpc val: -1"); } return true; } else if (str.startsWith("//mmdumpsys")) { ((xc4.j) xc4.j.f338034d).f(new n()); return true; } else if (str.startsWith("//remittance reset")) { p3.b().u().K(327729, str18); return true; } else if (str.startsWith("//wv ")) { String replace2 = str.replace("//wv ", str17); Intent intent10 = new Intent(); intent10.putExtra("rawUrl", replace2); sv3.b.i(context, "webview", ".ui.tools.WebViewUI", intent10); return true; } else if (str.startsWith("//wvjsapi ")) { String replace3 = str.replace("//wvjsapi ", str17); Intent intent11 = new Intent(); intent11.putExtra("rawUrl", replace3); sv3.b.i(context, "webview", ".ui.tools.WebViewTestUI", intent11); return true; } else if (str.startsWith("//setibeacontabuinopen")) { if (!p3.a()) { return false; } p3.b().u().L(w1.a.S3, 1); return true; } else if (str.startsWith("//setibeacontabuinclose")) { if (!p3.a()) { return false; } p3.b().u().L(w1.a.S3, 0); return true; } else if (str.startsWith("//setibeaconpushopen")) { if (!p3.a()) { return false; } p3.b().u().L(w1.a.P3, Boolean.TRUE); return true; } else if (str.startsWith("//setibeaconpushclose")) { if (!p3.a()) { return false; } p3.b().u().L(w1.a.P3, Boolean.FALSE); return true; } else if (str.startsWith("//ibeacon")) { int i26 = Build.VERSION.SDK_INT; BluetoothAdapter defaultAdapter = BluetoothAdapter.getDefaultAdapter(); boolean z27 = defaultAdapter != null && defaultAdapter.getState() == 12; boolean hasSystemFeature = context.getPackageManager().hasSystemFeature("android.hardware.bluetooth_le"); String str22 = "isNowSupportedIbeacon:" + (z27 && hasSystemFeature) + "\n\nisSystemSupported:" + true + "\nisBlueStateOn:" + z27 + "\nisSupportedBLE:" + hasSystemFeature + "\nSDK:" + i26 + "\nModel:" + Build.BRAND + "-" + vj.r.k() + "\noperatingSystemInfo:" + Build.VERSION.RELEASE; i14.j.A(context, str22, "TestResult", context.getString(R.string.b1i), context.getString(R.string.baz), new o(str22), null); return true; } else if (str.startsWith("//wvsha1")) { SharedPreferences.Editor edit = context.getSharedPreferences("com.tencent.mm_webview_x5_preferences", 4).edit(); try { str17 = str.substring(str.indexOf(":") + 1); } catch (IndexOutOfBoundsException unused3) { } edit.putBoolean("wvsha1", Boolean.parseBoolean(str17)); edit.apply(); return true; } else { if (str.startsWith("//channelId")) { i14.j.s(context, str17 + ChannelUtil.channelId, AssistantStore.DownloadInfos.DownloadInfoColumns.CHANNELID); } if (str.startsWith("//traceroute")) { sv3.b.h(context, "traceroute", ".ui.NetworkDiagnoseIntroUI"); return true; } else if (str.startsWith("//testoom")) { for (int i27 = 0; i27 < 20; i27++) { Bitmap.createBitmap(1024, 1920, Bitmap.Config.ARGB_8888); } if (!ck.e.c(23)) { return true; } Debug.getMemoryInfo(new Debug.MemoryInfo()); Log.i("MicroMsg.CommandProcessor", "testoom %s", Long.valueOf(Runtime.getRuntime().totalMemory()), Long.valueOf(Runtime.getRuntime().freeMemory())); return true; } else { if (str.startsWith("//qzone ")) { new i1(context).a(str.replace("//qzone ", str17)); } if (str.startsWith("//dumpcrash")) { u1.b(z80.b.e() + "crash/", z80.b.a()); return true; } else if (str.startsWith("//dumpanr")) { u1.b("/data/anr/", z80.b.a()); return true; } else if (str.startsWith("//testanr")) { nf0.f4.B(); return true; } else if (str.startsWith("//opensnsadRightbar")) { n0.f200784x = true; return true; } else if (str.startsWith("//setlocation ")) { String[] split14 = str.split(" "); if (split14 == null || !CrashReportFactory.hasDebuger()) { return false; } n0.f200762b = true; if (split14.length > 0) { n0.f200785y = Util.getDouble(split14[1], 0.0d); } if (split14.length > 1) { n0.f200786z = Util.getDouble(split14[2], 0.0d); } return true; } else if (str.startsWith("//switchsdcard")) { ArrayList<SdcardUtil.StatMountParse> writableStatMountParseForStorage = SdcardUtil.getWritableStatMountParseForStorage(); int size = writableStatMountParseForStorage.size(); Log.i("MicroMsg.CommandProcessor", "switchsdcard sdcard size = " + size); if (size > 0 && writableStatMountParseForStorage.get(0) != null && !Util.isNullOrNil(writableStatMountParseForStorage.get(0).mountDir)) { for (int i28 = 0; i28 < size; i28++) { Log.i("MicroMsg.CommandProcessor", "switchsdcard list i = " + i28 + " StatMountParse: " + writableStatMountParseForStorage.get(i28)); } } int i29 = 0; while (true) { if (i29 >= size) { str13 = null; break; } else if (!writableStatMountParseForStorage.get(i29).mountDir.equals(z80.b.g0())) { str13 = writableStatMountParseForStorage.get(i29).mountDir; break; } else { i29++; } } Activity activity2 = (Activity) context; Log.i("MicroMsg.CommandProcessor", "switchsdcard newSdcard: " + str13); if (Util.isNullOrNil(str13)) { i14.j.U(context, context.getString(R.string.jnw), 1); return true; } i14.j.A(context, context.getString(R.string.jnx), "", context.getString(R.string.f367559x1), context.getString(R.string.f367394sg), new p(str13, context, activity2), null); return true; } else if (str.startsWith("//getip")) { p3.e().f(new k4(new q())); return true; } else if (str.startsWith("//localjsapi")) { Intent intent12 = new Intent(); intent12.putExtra("rawUrl", "file://" + z80.b.E() + "test_jsapi.html"); sv3.b.i(context, "webview", ".ui.tools.WebViewUI", intent12); return true; } else if (str.startsWith("//getlocalkey")) { String fb5 = t4.fb(); i14.j.A(context, fb5, "Fingerprint Key", context.getString(R.string.kbu), context.getString(R.string.baz), new r(fb5, context), null); return true; } else if (str.startsWith("//getdevid")) { String h15 = vj.r.h(); i14.j.A(context, h15, "devid", context.getString(R.string.b1i), context.getString(R.string.baz), new s(h15), null); return true; } else if (str.startsWith("//testhtml")) { Intent intent13 = new Intent(); intent13.putExtra("rawUrl", "file:///android_asset/jsapi/reader_test1.html"); sv3.b.i(context, "webview", ".ui.tools.WebViewUI", intent13); return true; } else if (str.startsWith("//testlocalhtml ")) { String replace4 = str.replace("//testlocalhtml ", str17); Intent intent14 = new Intent(); intent14.putExtra("rawUrl", "file://" + replace4); intent14.putExtra("neverGetA8Key", true); sv3.b.i(context, "webview", ".ui.tools.WebViewUI", intent14); return true; } else if (str.startsWith("//setkey")) { if (!t4.qd(str.replace("//setkey", str17))) { return true; } ak.a.makeText(context, (int) R.string.kal, 0).show(); return true; } else if (str.startsWith("//tinker")) { ((lo.h) yz3.j.c(lo.h.class)).hb(); return true; } else if (str.startsWith("//mbpkg ")) { String[] split15 = str.replace("//mbpkg ", str17).split(","); if (split15.length == 2) { str11 = split15[0]; str12 = split15[1]; } else if (split15.length == 1) { str11 = split15[0]; str12 = str17; } else { str12 = str17; str11 = str12; } if (str11.equalsIgnoreCase(str17)) { str11 = "magicemo"; } ((q0) yz3.j.c(q0.class)).AT(str11, str12, false, new C0676a()); return true; } else if (str.startsWith("//clearmbpkg")) { if (str.replace("//clearmbpkg ", str17).equalsIgnoreCase(FlattProperty.PROC_ALL)) { ((q0) yz3.j.c(q0.class)).nK0(); return true; } ((q0) yz3.j.c(q0.class)).S2(str17); return true; } else if (str.startsWith("//registmbpkg ")) { String[] split16 = str.replace("//registmbpkg ", str17).split(","); if (split16.length >= 2) { str9 = split16[0]; str10 = split16[1]; } else { str9 = "regist"; str10 = str17; } if (str10.equalsIgnoreCase(str17)) { str10 = "magicemo"; } if (str9.equalsIgnoreCase("regist")) { ((q0) yz3.j.c(q0.class)).Pc0(str10); return true; } ((q0) yz3.j.c(q0.class)).ZB(str10); return true; } else if (str.startsWith("//getmbpkg ")) { String replace5 = str.replace("//getmbpkg ", str17); if (replace5.equalsIgnoreCase(str17)) { replace5 = "magicemo"; } WxaMagicPkgInfo VH0 = ((q0) yz3.j.c(q0.class)).VH0(replace5); if (VH0 == null) { return true; } y0.makeText(MMApplicationContext.getContext(), VH0.f132184n, 1).show(); Log.i("shortlink", "getmbpkg patchId:%s", VH0.f132184n); return true; } else { boolean z28 = true; if (str.startsWith("//mbsetpkg ")) { String[] split17 = str.replace("//mbsetpkg ", str17).split(" "); if (split17.length == 2) { str8 = split17[0]; j15 = (long) Integer.parseInt(split17[1]); } else { str8 = str17; j15 = 0; } MultiProcessMMKV.getMMKV("MagicBootsPkgVersion").encode(str8.toLowerCase(), j15); Context context2 = MMApplicationContext.getContext(); StringBuilder sb6 = new StringBuilder(); str3 = "webview"; sb6.append("Done, bizName:"); sb6.append(str8); sb6.append("to version:"); sb6.append(j15); z28 = true; y0.makeText(context2, sb6.toString(), 1).show(); } else { str3 = "webview"; } if (str.startsWith("//checkspell")) { String replace6 = str.replace("//checkspell ", str17); if (Util.isNullOrNil(replace6)) { return z28; } StringBuilder sb7 = new StringBuilder(); for (int i35 = 0; i35 < replace6.length(); i35++) { sb7.append("[" + replace6.charAt(i35) + ":" + SpellMap.a(replace6.charAt(i35)) + "]"); } i14.j.s(context, sb7.toString(), "Check Spell"); return true; } else if (str.startsWith("//gallery ")) { String replace7 = str.replace("//gallery ", str17); if (Util.isNullOrNil(replace7)) { return z28; } context.getSharedPreferences(MMApplicationContext.getDefaultPreferencePath(), 0).edit().putString("gallery", replace7).commit(); return z28; } else if (str.startsWith("//svgtag")) { String replace8 = str.replace("//svgtag ", str17); if (replace8.equals("on")) { hy3.i.a(z28); } else if (replace8.equals("off")) { hy3.i.a(false); } return z28; } else if (str.startsWith("//svgcode")) { try { String replace9 = str.replace("//svgcode ", str17); if (!replace9.equals("on")) { replace9.equals("off"); } Field declaredField = BuildConfig.class.getDeclaredField("SVGCode"); declaredField.setAccessible(true); z18 = declaredField.getBoolean(BuildConfig.class); } catch (ClassNotFoundException e16) { Log.printErrStackTrace("MicroMsg.CommandProcessor", e16, str17, new Object[0]); z18 = false; } catch (NoSuchFieldException e17) { z19 = false; Log.printErrStackTrace("MicroMsg.CommandProcessor", e17, str17, new Object[0]); z18 = z19; } catch (IllegalAccessException e18) { z19 = false; Log.printErrStackTrace("MicroMsg.CommandProcessor", e18, str17, new Object[0]); z18 = z19; } catch (IllegalArgumentException e19) { z19 = false; try { Log.printErrStackTrace("MicroMsg.CommandProcessor", e19, str17, new Object[0]); z18 = z19; } catch (Exception unused4) { } } try { ak.a.makeText(MMApplicationContext.getContext(), "Using SVG Code : " + z18 + " " + d04.b.b(), 1).show(); return true; } catch (Exception unused5) { return true; } } else if (str.startsWith("//testMbanner")) { try { String[] split18 = str.replace("//testMbanner ", str17).split(","); if (split18.length >= 2) { try { c4.e().g(new b4(Integer.valueOf(split18[0]).intValue(), Integer.valueOf(split18[1]).intValue(), null)); } catch (Exception unused6) { return true; } } } catch (Exception unused7) { } return true; } else { if (str.startsWith("//testrsa")) { c1.f("010001", "E338E5DAD46B331E3071FAFD4C0F84C7C7965DBBE64C6F8CC0F7CF04DC640C1F84A2014431A48D65F2B2F172BA9BE6F5A049BF52C78C14B0965E20F0D80D85A9180EBABB913D49821D28BFD9601DF52A4F3230AECAD96D23415F5E94D51A87CAA7630C5F3CB70345BAF572A4F61A134A2265AFD8FADDFE0222BD9ABF7DBEB7444D031454E8F21820BBC725E6857F765660E987FADEBCF6B3A15355C4CD3752A7B544D1D7E037AF4F9725BE37681A84C9E1DC431B3065294EAD53E913BAF16D46714B013EA077191E6CA08ABA6D70E9CA792D898D692E3168D6341369976657CD5E1504B9E2458F107225176734D11621AD36D7FFA26C573D6612455B09105C41", 106); } if (str.startsWith("//recomT")) { try { try { p3.b().s().g(str.replace("//recomT ", str17), true, null); return true; } catch (Exception unused8) { return true; } } catch (Exception unused9) { return true; } } else if (str.startsWith("//recomF")) { try { p3.b().s().g(str.replace("//recomF ", str17), false, null); return true; } catch (Exception unused10) { return true; } } else if (str.startsWith("//resetwxpayagree")) { z.h(); z.s().i().L(w1.a.f175640td, Boolean.FALSE); return true; } else if (str.startsWith("//ffmpeg")) { try { int indexOf = str.indexOf("-r "); int indexOf2 = str.indexOf("-b "); String substring = str.substring(indexOf + 3, indexOf2); String substring2 = str.substring(indexOf2 + 3); float f15 = Util.getFloat(substring.trim(), 0.0f); int i36 = Util.getInt(substring2.trim(), 0); com.tencent.mm.plugin.sight.base.c.f146176c = i36; com.tencent.mm.plugin.sight.base.c.f146177d = f15; ak.a.makeText(MMApplicationContext.getContext(), "set C2C video encode frame rate " + f15 + " bitrate " + i36, 0).show(); return true; } catch (Exception unused11) { ak.a.makeText(MMApplicationContext.getContext(), "set C2C video frame rate fail, please ensure your command.", 1).show(); return true; } } else if (str.startsWith("//onlinevideo")) { try { int i37 = Util.getInt(str.replace("//onlinevideo ", str17), 0); p3.b().u().L(w1.a.C5, Integer.valueOf(i37)); ak.a.makeText(MMApplicationContext.getContext(), i37 > 0 ? "online video" : "offline video", 0).show(); return true; } catch (Exception e25) { Log.printErrStackTrace("MicroMsg.CommandProcessor", e25, str17, new Object[0]); ak.a.makeText(MMApplicationContext.getContext(), "set online video fail, please ensure your command.", 1).show(); return true; } } else if (str.startsWith("//hevcinfo")) { String c16 = wh2.f.c(); String str23 = ChattingUIFragment.S; f4 f4Var = new f4(); f4Var.i3(str23); f4Var.Z2(2); f4Var.setType(1); f4Var.S2(System.currentTimeMillis()); f4Var.R2(c16); nf0.f4.x(f4Var); return true; } else if (str.startsWith("//presns")) { ((xc4.j) xc4.j.f338034d).i(new b(), 3000); ak.a.makeText(MMApplicationContext.getContext(), "preload sns", 0).show(); return true; } else if (str.startsWith("//calcwxdata")) { p3.b().u().L(w1.a.U8, 0L); ak.a.makeText(MMApplicationContext.getContext(), "calc wx data success", 0).show(); return true; } else if (str.startsWith("//checkspace")) { try { int i38 = Util.getInt(str.replace("//checkspace ", str17), 0); CheckMobileSpaceEvent checkMobileSpaceEvent = new CheckMobileSpaceEvent(); checkMobileSpaceEvent.f62049d.f62050a = i38; checkMobileSpaceEvent.publish(); ak.a.makeText(MMApplicationContext.getContext(), "check space code " + i38, 0).show(); return true; } catch (Exception e26) { Log.printErrStackTrace("MicroMsg.CommandProcessor", e26, str17, new Object[0]); ak.a.makeText(MMApplicationContext.getContext(), "check space code fail, please ensure your command.", 1).show(); return true; } } else { if (str.startsWith("//showkv") && CrashReportFactory.hasDebuger()) { try { Intent intent15 = new Intent(); intent15.addFlags(268435456); intent15.addFlags(524288); ((ie1.g) yz3.j.c(ie1.g.class)).pF(context, intent15); return true; } catch (Exception e27) { Log.e("MicroMsg.CommandProcessor", "showkv error [%s]", e27.toString()); } } if (str.startsWith("//showexpt2") && CrashReportFactory.hasDebuger()) { ((ie1.h) yz3.j.c(ie1.h.class)).Cf(context, new Intent()); return true; } else if (str.trim().startsWith("//testreportsdk") && CrashReportFactory.hasDebuger()) { ((z81.g) yz3.j.c(z81.g.class)).EY(context, new Intent()); return true; } else if (str.startsWith("//showexpt") && CrashReportFactory.hasDebuger()) { ((ie1.h) yz3.j.c(ie1.h.class)).qB0(context, new Intent()); return true; } else if (str.startsWith("//resetvfs") && CrashReportFactory.hasDebuger()) { MultiProcessMMKV.getMMKV("VFSStrategy").encode("VFSSwitch", false); MultiProcessMMKV.getMMKV("extmig_status_memo_storage").clear().commit(); MultiProcessMMKV.getMMKV("extmig_switch_storage").clear().commit(); ak.a.makeText(MMApplicationContext.getContext(), "vfsSwitch close", 1).show(); return true; } else if (str.startsWith("//openvfs") && CrashReportFactory.hasDebuger()) { MultiProcessMMKV.getMMKV("VFSStrategy").encode("VFSSwitch", true); MultiProcessMMKV.getMMKV("extmig_switch_storage").encode("is_routine_enabled", true); ak.a.makeText(MMApplicationContext.getContext(), "vfsSwitch open", 1).show(); return true; } else if (str.startsWith("//upfacemodel")) { p3.e().f(new com.tencent.mm.pluginsdk.res.downloader.checkresupdate.o(42)); return true; } else if (str.startsWith("//facett")) { p3.b().u().L(w1.a.f175503o7, Boolean.FALSE); return true; } else if (str.startsWith("//startstory")) { boolean z29 = n0.f200761a; return true; } else if (str.startsWith("//axauth")) { z.l().b().j().U3().y1(); return true; } else if (str.startsWith("//timeout")) { String replace10 = str.replace("//timeout ", str17); Log.i("MicroMsg.CommandProcessor", "set session timeouot cgi %s", replace10); x.A = replace10; z.l().b().j().V1(replace10); return true; } else if (str.startsWith("//mmlogic")) { String replace11 = str.replace("//mmlogic ", str17); Log.i("MicroMsg.CommandProcessor", "get mmlogic command %s", replace11); z.l().b().j().simpleTestCommand(replace11); return true; } else if (str.startsWith("//livespeedtest")) { Log.i("MicroMsg.CommandProcessor", "do livespeedtest"); z.l().b().j().doLiveSpeedTest("101.91.37.26", 524288, 10, 6, 5, "upload Ctx".getBytes(StandardCharsets.UTF_8), "download Ctx".getBytes(StandardCharsets.UTF_8), new j()); return true; } else if (str.startsWith("//weaknet")) { Log.i("MicroMsg.CommandProcessor", "do weaknet"); z.l().b().j().addMMNetCommonCallback(new l()); return true; } else if (str.startsWith("//mockextdeeplink")) { String trim = str.replaceFirst("//mockextdeeplink", str17).trim(); if (TextUtils.isEmpty(trim) || !trim.startsWith("weixin://dl")) { return true; } Intent intent16 = new Intent(context, WXCustomSchemeEntryActivity.class); intent16.addFlags(268435456); intent16.setData(Uri.parse(trim)); intent16.putExtra("translate_link_scene", 2); k30.a aVar8 = new k30.a(); aVar8.c(intent16); j30.a.d(context, aVar8.b(), "com/tencent/mm/console/CommandProcessor", "processed", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar8.a(0)); j30.a.e(context, "com/tencent/mm/console/CommandProcessor", "processed", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); return true; } else if (str.startsWith("//switchpaytype")) { String[] split19 = str.split(" "); if (split19 == null || split19.length < 2) { return false; } try { p3.b().u().K(339975, Integer.valueOf(Util.getInt(split19[1], 0))); return true; } catch (Exception unused12) { Log.e("MicroMsg.CommandProcessor", "hy: switch wallet type error"); return false; } } else if (str.startsWith("//setNfcOpenUrl ")) { String replace12 = str.replace("//setNfcOpenUrl ", str17); SharedPreferences.Editor edit2 = MMApplicationContext.getToolsProcesstPreference().edit(); if (!replace12.equalsIgnoreCase("null")) { str17 = replace12; } edit2.putString("nfc_open_url", str17); edit2.commit(); return true; } else if (str.startsWith("//setMBV8Debug ")) { String replace13 = str.replace("//setMBV8Debug ", str17); SharedPreferences.Editor edit3 = MMApplicationContext.getToolsProcesstPreference().edit(); if (replace13.equalsIgnoreCase("true")) { z17 = true; edit3.putBoolean("appbrandgame_open_v8debug", true); } else { z17 = true; edit3.putBoolean("appbrandgame_open_v8debug", false); } edit3.commit(); return z17; } else if (str.startsWith("//setWcwss ")) { String replace14 = str.replace("//setWcwss ", str17); SharedPreferences.Editor edit4 = MMApplicationContext.getToolsProcesstPreference().edit(); if (!replace14.equalsIgnoreCase("null")) { str17 = replace14; } edit4.putString("appbrandgame_open_wcwss", str17); edit4.commit(); return true; } else if (str.startsWith("//setNativeWss ")) { String replace15 = str.replace("//setNativeWss ", str17); SharedPreferences.Editor edit5 = MMApplicationContext.getToolsProcesstPreference().edit(); if (!replace15.equalsIgnoreCase("null")) { str17 = replace15; } edit5.putString("appbrandgame_open_nativewss", str17); edit5.commit(); return true; } else if (str.startsWith("//setCdnRequest ")) { String replace16 = str.replace("//setCdnRequest ", str17); SharedPreferences.Editor edit6 = MMApplicationContext.getToolsProcesstPreference().edit(); if (!replace16.equalsIgnoreCase("null")) { str17 = replace16; } edit6.putString("appbrandgame_open_cdnrequest", str17); edit6.commit(); return true; } else if (str.startsWith("//setCronetDownload ")) { String replace17 = str.replace("//setCronetDownload ", str17); SharedPreferences.Editor edit7 = MMApplicationContext.getToolsProcesstPreference().edit(); if (!replace17.equalsIgnoreCase("null")) { str17 = replace17; } edit7.putString("appbrandgame_open_cronetdownload", str17); edit7.commit(); return true; } else if (str.startsWith("//setCronetUpload ")) { String replace18 = str.replace("//setCronetUpload ", str17); SharedPreferences.Editor edit8 = MMApplicationContext.getToolsProcesstPreference().edit(); if (!replace18.equalsIgnoreCase("null")) { str17 = replace18; } edit8.putString("appbrandgame_open_cronetupload", str17); edit8.commit(); return true; } else if (str.startsWith("//setNativeLibuv ")) { String replace19 = str.replace("//setNativeLibuv ", str17); SharedPreferences.Editor edit9 = MMApplicationContext.getToolsProcesstPreference().edit(); if (!replace19.equalsIgnoreCase("null")) { str17 = replace19; } edit9.putString("appbrandgame_open_nativelibuv", str17); edit9.commit(); return true; } else if (str.startsWith("//reportfailip ")) { z.l().b().j().l5(str.replace("//reportfailip ", str17).equals("1")); return true; } else if (str.startsWith("//forcev6 ")) { z.l().b().j().D4(str.replace("//forcev6 ", str17).equals("1")); return true; } else if (str.startsWith("//active ")) { z.l().b().j().C4(str.replace("//active ", str17).equals("1")); return true; } else if (str.startsWith("//testcrash")) { throw null; } else if (str.startsWith("//deletepsk")) { z.l().b().j().B4(); return true; } else if (str.startsWith("//setmmtlsregion ")) { z.l().b().j().P4(Integer.parseInt(str.replace("//setmmtlsregion ", str17))); return true; } else if (str.startsWith("//setecdhversion ")) { yv3.g.g(Integer.parseInt(str.replace("//setecdhversion ", str17))); return true; } else if (str.startsWith("//debughost ")) { z.l().b().j().R5("short.wechat.com"); return true; } else if (str.startsWith("//getcdndns")) { h0.eO0().iO0(1); return true; } else if (str.startsWith("//cronet")) { CronetLogicTest.cronetDebugTest(); return true; } else if (str.startsWith("//cdnlogictest")) { CdnLogicTest.test(); return true; } else if (str.startsWith("//gamecb ")) { String trim2 = str.replace("//gamecb ", str17).trim(); SharedPreferences.Editor edit10 = MMApplicationContext.getToolsProcesstPreference().edit(); int safeParseInt2 = Util.safeParseInt(trim2); edit10.putInt("appbrandgame_use_commandbuffer", safeParseInt2); Context context3 = MMApplicationContext.getContext(); StringBuilder sb8 = new StringBuilder(); sb8.append("小游戏 CommandBuffer "); sb8.append(safeParseInt2 == 0 ? "关闭" : safeParseInt2 == -1 ? "默认" : "开启"); ak.a.makeText(context3, sb8.toString(), 1).show(); edit10.commit(); return true; } else if (str.startsWith("//gamecp ")) { String trim3 = str.replace("//gamecp ", str17).trim(); SharedPreferences.Editor edit11 = MMApplicationContext.getToolsProcesstPreference().edit(); int safeParseInt3 = Util.safeParseInt(trim3); edit11.putInt("appbrandgame_cmd_pool_type", safeParseInt3); String[] strArr = {"readwritequeue", "swapqueue", "cmdqueue"}; if ((safeParseInt3 < -1) || (safeParseInt3 > 2)) { safeParseInt3 = -1; } Context context4 = MMApplicationContext.getContext(); StringBuilder sb9 = new StringBuilder(); sb9.append("小游戏 cmd pool "); if (safeParseInt3 == -1) { str7 = "default"; } else { str7 = strArr[safeParseInt3]; } sb9.append(str7); ak.a.makeText(context4, sb9.toString(), 1).show(); edit11.commit(); return true; } else if (str.startsWith("//wasmopt ")) { String trim4 = str.replace("//wasmopt ", str17).trim(); SharedPreferences.Editor edit12 = MMApplicationContext.getToolsProcesstPreference().edit(); int safeParseInt4 = Util.safeParseInt(trim4); edit12.putInt("appbrand_wasm_opt", safeParseInt4); Context context5 = MMApplicationContext.getContext(); StringBuilder sb10 = new StringBuilder(); sb10.append("Wasm优化 "); sb10.append(safeParseInt4 == 0 ? "关闭" : safeParseInt4 == -1 ? "默认开启" : safeParseInt4 == -2 ? "默认关闭" : "开启"); ak.a.makeText(context5, sb10.toString(), 1).show(); edit12.commit(); return true; } else if (str.startsWith("//snskvtest ")) { String trim5 = str.replace("//snskvtest", str17).trim(); if (trim5.equals(str18)) { n0.G = false; return true; } else if (!trim5.equals("1")) { return true; } else { n0.G = true; return true; } } else if (str.startsWith("//emoji ")) { ((ic1.h) ((vb1.g) yz3.j.c(vb1.g.class)).bp()).x(str.replace("//emoji ", str17)); return true; } else if (str.startsWith("//share ")) { p3.b().u().K(229635, Integer.valueOf(Integer.valueOf(str.replace("//share ", str17)).intValue())); return true; } else if (str.startsWith("//dumpappinfoblob ")) { com.tencent.mm.pluginsdk.model.app.j Sa = com.tencent.mm.pluginsdk.model.app.y1.YN0().Sa(str.replace("//dumpappinfoblob ", str17)); i14.j.s(context, Sa.r2() + "\n" + Sa.q2() + "\n" + Sa.s2(), str17); return true; } else if (str.startsWith("//googleauth ")) { String replace20 = str.replace("//googleauth ", str17); if (TextUtils.isEmpty(replace20)) { return true; } if (str3.equals(replace20)) { context.getSharedPreferences(MMApplicationContext.getDefaultPreferencePath(), 0).edit().putBoolean("googleauth", true).commit(); return true; } else if (!ImagesContract.LOCAL.equals(replace20)) { return true; } else { context.getSharedPreferences(MMApplicationContext.getDefaultPreferencePath(), 0).edit().putBoolean("googleauth", false).commit(); return true; } } else if (str.startsWith("//clrgamecache")) { n72.m a15 = m.a.a(); if (a15 != null) { a15.jo0(context); } return true; } else if (str.startsWith("//clearwepkg")) { WepkgNotifyEvent wepkgNotifyEvent = new WepkgNotifyEvent(); wepkgNotifyEvent.f65265d.f65266a = 6; String trim6 = str.replace("//clearwepkg ", str17).trim(); if (!Util.isNullOrNil(trim6) && !trim6.equals("//clearwepkg")) { wepkgNotifyEvent.f65265d.f65267b = trim6; } wepkgNotifyEvent.publish(); return true; } else if (str.startsWith("//disableWePkg")) { WepkgNotifyEvent wepkgNotifyEvent2 = new WepkgNotifyEvent(); wepkgNotifyEvent2.f65265d.f65266a = 7; wepkgNotifyEvent2.publish(); return true; } else if (str.startsWith("//gameBgMix ")) { z.s().i().L(w1.a.O9, str.replace("//gameBgMix ", str17).trim()); return true; } else if (str.startsWith("//deleteChatRoomDB")) { u1.h(z.s().g() + "GameChatRoom.db"); GameCommOperationEvent gameCommOperationEvent = new GameCommOperationEvent(); gameCommOperationEvent.f63042d.f63044a = 6; gameCommOperationEvent.publish(); return true; } else if (str.startsWith("//updateGameConfig")) { GameCommOperationEvent gameCommOperationEvent2 = new GameCommOperationEvent(); GameCommOperationEvent.a aVar9 = gameCommOperationEvent2.f63042d; aVar9.f63044a = 5; aVar9.f63045b = String.valueOf(8); gameCommOperationEvent2.publish(); return true; } else if (str.startsWith("//resetGameMsgExposure")) { z.s().i().L(w1.a.F, 0L); z.s().i().L(w1.a.f175758y, str17); return true; } else if (str.startsWith("//forceFirstEnterRoom")) { n0.T = true; return true; } else if (str.startsWith("//clrgsd")) { GameSilentDownloadNotifyEvent gameSilentDownloadNotifyEvent = new GameSilentDownloadNotifyEvent(); gameSilentDownloadNotifyEvent.f63081d.f63082a = 3; String trim7 = str.replace("//clrgsd ", str17).trim(); if (!Util.isNullOrNil(trim7) && !trim7.equals("//clrgsd")) { gameSilentDownloadNotifyEvent.f63081d.f63083b = trim7; } gameSilentDownloadNotifyEvent.publish(); return true; } else if (str.startsWith("//delDownload")) { GameSilentDownloadNotifyEvent gameSilentDownloadNotifyEvent2 = new GameSilentDownloadNotifyEvent(); gameSilentDownloadNotifyEvent2.f63081d.f63082a = 4; String trim8 = str.replace("//delDownload ", str17).trim(); if (Util.isNullOrNil(trim8) || trim8.equals("//delDownload")) { return true; } gameSilentDownloadNotifyEvent2.f63081d.f63083b = trim8; gameSilentDownloadNotifyEvent2.publish(); return true; } else if (str.startsWith("//googlemap")) { boolean z35 = n0.f200761a; return true; } else if (str.startsWith("//sosomap")) { boolean z36 = n0.f200761a; return true; } else if (str.startsWith("//updateConversation")) { Log.i("MicroMsg.CommandProcessor", "update all conversation start"); Iterator it4 = ((ArrayList) ((i2) p3.b().w()).F(null)).iterator(); while (it4.hasNext()) { ((i2) p3.b().w()).p0(((g4) p3.b().z()).RZ((String) it4.next(), " and not ( type = 10000 and isSend != 2 ) ")); } Log.i("MicroMsg.CommandProcessor", "update all conversation end"); return true; } else if (str.startsWith("//setshakecarddata")) { a0.b().setShakeCardEntranceData(); return true; } else if (str.startsWith("//clearshakecarddata")) { a0.b().clearShakeCardEntranceData(); return true; } else if (str.startsWith("//pageSize")) { ak.a.makeText(MMApplicationContext.getContext(), "pageSize is " + p3.b().x().i(), 1).show(); return true; } else if (str.startsWith("//resetDBStatus")) { q1 q1Var2 = new q1(p3.b().o()); try { String str24 = p3.b().p() + q1Var2.getName().replace(".db", ".db.backup"); u1.c(str24, q1Var2.t()); Log.i("MicroMsg.CommandProcessor", "backupPath db path is %s", str24); u1.x(q1Var2.t(), q1Var2.o() + "err" + System.currentTimeMillis()); ak.a.makeText(MMApplicationContext.getContext(), "db状态已重置,请重启微信", 1).show(); return true; } catch (Exception e28) { Log.w("MicroMsg.CommandProcessor", "delete failed: " + e28.getMessage()); return true; } } else if (str.startsWith("//setsnsupload ")) { n0.B = Util.getInt(str.replace("//setsnsupload ", str17), 0); return true; } else if (str.startsWith("//logsnstable")) { new DumpSnsTableInfoEvent().publish(); return true; } else if (str.startsWith("//resetsnstip")) { p3.b().u().K(327776, 0); return true; } else if (str.startsWith("//checkcount")) { ak.a.makeText(context, "current count :" + ((g4) p3.b().z()).Ld0(ChattingUIFragment.S) + " countAuto :" + ((g4) p3.b().z()).Bc0(ChattingUIFragment.S), 1).show(); return true; } else if (str.startsWith("//changeframe ")) { MMApplicationContext.getContext().getSharedPreferences("preferences_animation", 0).edit().putFloat("frameInterval", Float.valueOf(str.replace("//changeframe ", str17)).floatValue()).commit(); return true; } else if (str.startsWith("//dumpmemory")) { Runtime.getRuntime().gc(); Runtime.getRuntime().gc(); ((MemoryWatchDog) ((uw.x) yz3.j.c(uw.x.class)).f40()).g(); return true; } else if (str.startsWith("//dumpsnsfile")) { new SnsFileCollectEvent().publish(); return true; } else if (str.startsWith("//testverifypsw ")) { String trim9 = str.replace("//testverifypsw ", str17).trim(); if (trim9.equals(str18)) { n0.I = false; z16 = true; } else { z16 = true; if (trim9.equals("1")) { n0.I = true; } } boolean z37 = n0.f200761a; return z16; } else if (str.startsWith("//netid")) { z.l().b().f(new oi0.a()); return true; } else if (str.startsWith("//flushreport")) { SmcLogic.flushAllReportData(); return true; } else if (str.startsWith("//pickpoi")) { Intent intent17 = new Intent(); intent17.putExtra("map_view_type", 8); sv3.b.i(context, FirebaseAnalytics.b.LOCATION, ".ui.RedirectUI", intent17); return true; } else if (str.startsWith("//configlist")) { if (str.matches("^//configlist set ([\\S]*)=([\\S]*)$")) { List<String> c17 = dk0.q0.c(str, "^//configlist set ([\\S]*)=([\\S]*)$"); if (c17 != null && c17.size() == 2) { ((jt3.b) z.q(jt3.b.class)).gv0().g(c17.get(0), c17.get(1)); new DynamicConfigUpdatedEvent().publish(); } } else if (str.matches("^//configlist get ([\\S]*)$")) { List<String> c18 = dk0.q0.c(str, "^//configlist get ([\\S]*)$"); if (c18 != null) { if (c18.size() != 1) { return true; } String str25 = c18.get(0); ak.a.makeText(context, str25 + "=" + ((jt3.b) z.q(jt3.b.class)).gv0().d(str25), 0).show(); } } else { String str26 = z80.b.E() + "dynacfg.xml"; Util.writeToFile(str26, (((String) p3.b().u().e(278530, str17)) + ((String) p3.b().u().e(278529, str17))).getBytes()); ak.a.makeText(context, "output dynacfg xml to " + str26, 0).show(); } return true; } else if (str.startsWith("//security")) { try { try { p3.b().t().g(str.replace("//security ", str17), true, null); return true; } catch (Exception unused13) { return true; } } catch (Exception unused14) { return true; } } else if (str.startsWith("//updatepackage")) { try { p3.e().f(new u(Util.getInt(str.replace("//updatepackage ", str17).trim(), 0))); return true; } catch (Exception unused15) { return true; } } else if (str.startsWith("//copypackage")) { Log.i("MicroMsg.CommandProcessor", "summercmd copypackage msg:%s", str); ArrayList<SdcardUtil.StatMountParse> writableStatMountParseForStorage2 = SdcardUtil.getWritableStatMountParseForStorage(); int size2 = writableStatMountParseForStorage2.size(); Log.i("MicroMsg.CommandProcessor", "summercmd copypackage size:%d", Integer.valueOf(size2)); if (size2 < 2) { i14.j.U(context, context.getString(R.string.blf), 1); return true; } i14.j.A(context, context.getString(R.string.blh), "", context.getString(R.string.f367559x1), context.getString(R.string.f367394sg), new c(size2, writableStatMountParseForStorage2, context), null); return true; } else if (str.startsWith("//copy -n ")) { Log.i("MicroMsg.CommandProcessor", "summercmd copy -n msg:%s ", str); ArrayList<SdcardUtil.StatMountParse> writableStatMountParseForStorage3 = SdcardUtil.getWritableStatMountParseForStorage(); int size3 = writableStatMountParseForStorage3.size(); Log.i("MicroMsg.CommandProcessor", "summercmd copy -n size:%d", Integer.valueOf(size3)); if (size3 < 2) { i14.j.U(context, context.getString(R.string.blf), 1); return true; } i14.j.A(context, context.getString(R.string.blh), "", context.getString(R.string.f367559x1), context.getString(R.string.f367394sg), new d(str, size3, writableStatMountParseForStorage3, context), null); return true; } else if (str.startsWith("//deletepackage")) { try { String replace21 = str.replace("//deletepackage ", str17); DeletePackageEvent deletePackageEvent = new DeletePackageEvent(); deletePackageEvent.f62169d.f62170a = Util.getInt(replace21, 0); deletePackageEvent.publish(); return true; } catch (Exception unused16) { return true; } } else if (str.startsWith("//audiowritetofile")) { f0.f327016c.G = true; return true; } else if (str.startsWith("//bankcard")) { Intent intent18 = new Intent(); intent18.putExtra("BaseScanUI_select_scan_mode", 7); intent18.putExtra("bank_card_owner", APMidasPayAPI.ENV_TEST); if (zk.a.g(context) || zk.a.u(context) || zk.a.b(context)) { return true; } sv3.b.i((Activity) context, "scanner", ".ui.ScanCardUI", intent18); return true; } else { if (str.startsWith("//banner")) { Map<String, String> parseXml = XmlParser.parseXml("<sysmsg type=\"banner\"><mainframebanner type=\"11\"><showtype>1</showtype></mainframebanner></sysmsg>", "sysmsg", null); parseXml.get(".sysmsg.mainframebanner.$type"); parseXml.get(".sysmsg.mainframebanner.showtype"); parseXml.get(".sysmsg.mainframebanner.data"); } if (str.startsWith("//gamemsg")) { QueryGameMessageEvent queryGameMessageEvent = new QueryGameMessageEvent(); queryGameMessageEvent.f64003d.f64014k = str; queryGameMessageEvent.publish(); return true; } else if (str.startsWith("//shortcut#")) { WebViewShortcutCommandEvent webViewShortcutCommandEvent = new WebViewShortcutCommandEvent(); webViewShortcutCommandEvent.f65241d.f65242a = str; webViewShortcutCommandEvent.publish(); return true; } else if (str.startsWith("//gallerytype")) { r1.f180959v = !r1.f180959v; return true; } else { context.getString(R.string.kdp); if (str.startsWith("//fullexit")) { MMEntryLock.unlock("show_whatsnew"); m0.a(context, true); MMAppMgr.d(context); p3.k(); z.h().j(str17); MMAppMgr.g(); return true; } else if (str.startsWith("//cleardldb")) { ((va1.b) ((com.tencent.mm.plugin.downloader.api.c) yz3.j.c(com.tencent.mm.plugin.downloader.api.c.class)).b3()).Ga(); return true; } else if (str.startsWith("//setcardlayouttestdata")) { p3.b().u().L(w1.a.R1, str.replace("//setcardlayouttestdata ", str17)); return true; } else if (str.startsWith("//delchatroomsysmsg")) { String replace22 = str.replace("//delchatroomsysmsg ", str17); int indexOf3 = replace22.indexOf(" "); String substring3 = replace22.substring(0, indexOf3); String substring4 = replace22.substring(indexOf3); if (Util.isNullOrNil(substring3) || !substring4.startsWith("<")) { return false; } f4 f4Var2 = new f4(); f4Var2.S2(System.currentTimeMillis()); f4Var2.setType(10002); f4Var2.R2(substring4); f4Var2.Z2(0); f4Var2.i3(substring3); nf0.f4.x(f4Var2); return true; } else { if (str.startsWith("//resetcrseq")) { String[] split20 = str.split(" "); try { long j19 = Util.getLong(split20[1], -1); num = 0; try { long j25 = Util.getLong(split20[2], -1); long j26 = Util.getLong(split20[3], -1); int i39 = Util.getInt(split20[4], -1); if (j19 > 0) { h2 j27 = ((i2) p3.b().w()).j(j19 + "@chatroom"); if (j27 != null) { Log.i("MicroMsg.CommandProcessor", "summerbadcr resetcrseq [%s] before [%d, %d, %d] [%d, %d, %d]", j27.getUsername(), Long.valueOf(j27.y2()), Long.valueOf(j27.F2()), Integer.valueOf(j27.L2()), Long.valueOf(j25), Long.valueOf(j26), Integer.valueOf(i39)); if (j25 > -1) { j27.Y2(j25); } if (j26 > -1) { j27.f3(j26); } if (i39 > -1) { j27.l3(i39); } Log.i("MicroMsg.CommandProcessor", "summerbadcr resetcrseq [%s] done [%d, %d, %d] ret:%d", j27.getUsername(), Long.valueOf(j27.y2()), Long.valueOf(j27.F2()), Integer.valueOf(j27.L2()), Integer.valueOf(((i2) p3.b().w()).m0(j27, j27.getUsername(), false))); return true; } } } catch (Exception e29) { e15 = e29; Log.printErrStackTrace("MicroMsg.CommandProcessor", e15, "summerbadcr resetcrseq", new Object[0]); if (str.startsWith("//printchatroominfo")) { } } } catch (Exception e35) { e15 = e35; num = 0; Log.printErrStackTrace("MicroMsg.CommandProcessor", e15, "summerbadcr resetcrseq", new Object[0]); if (str.startsWith("//printchatroominfo")) { } } } else { num = 0; } if (str.startsWith("//printchatroominfo")) { String str27 = ChattingUIFragment.S; if (!z1.Y5(str27)) { return false; } k1 Sa2 = ((l1) p3.b().q()).Sa(str27); if (Sa2 == null) { Log.e("MicroMsg.CommandProcessor", "summercrinfo chatroomId[%s], member is null", str27); return false; } ((xc4.j) xc4.j.f338034d).f(new e(Sa2, str27, str)); return true; } else if (str.startsWith("//clean chatroomblock")) { String str28 = ChattingUIFragment.S; kh2.e U70 = ((k0) z.q(k0.class)).U70(); if (str.equals("//clean chatroomblock hard")) { long c19 = U70.c(str28); ak.a.makeText(MMApplicationContext.getContext(), "clean block hard! ret:" + c19, 1).show(); return true; } else if (str.equals("//clean chatroomblock all")) { boolean D = U70.D(); ak.a.makeText(MMApplicationContext.getContext(), "delete table! ret:" + D, 1).show(); return true; } else { m1 v15 = U70.v(str28); if (v15 == null) { return true; } v15.field_lastLocalSeq = v15.field_lastPushSeq; v15.field_lastLocalCreateTime = v15.field_lastPushCreateTime; pj.d dVar = v15.field_seqBlockInfo; if (dVar != null) { dVar.f283695d.clear(); } long E = U70.E(v15); Log.i("MicroMsg.CommandProcessor", "[chatroomblock] ret:" + E); ak.a.makeText(MMApplicationContext.getContext(), "clean chatroomblock! ret:" + E, 1).show(); return true; } } else if (str.equals("//testupdate")) { try { str17 = Util.convertStreamToString(context.getAssets().open("aplha_update_info.xml")); } catch (IOException e36) { Log.printErrStackTrace("MicroMsg.CommandProcessor", e36, str17, new Object[0]); } p3.b().u().K(352273, str17); p3.b().u().K(352274, Long.valueOf(System.currentTimeMillis())); new com.tencent.mm.pluginsdk.model.app.b(str17).b(); return true; } else if (str.equals("//checkUpdate0") || str.equals("//checkUpdate1")) { ((SubCoreSandBox) wi2.c.a()).a(str.equals("//checkUpdate1")); return true; } else if (str.equals("//debugsnstimelinestat")) { n0.E = !n0.E; ak.a.makeText(MMApplicationContext.getContext(), "debugSnsTimelineStat: " + n0.E, 0).show(); return true; } else if (str.startsWith("//abtestmsg") && CrashReportFactory.hasDebuger()) { a.C0727a c25 = com.tencent.mm.model.newabtest.a.c(str.replace("//abtestmsg", str17)); SubCoreNewABTest.WN0().fb(c25.f78363a, 0); SubCoreNewABTest.VN0().Sa(c25.f78364b, 1); return true; } else if (str.startsWith("//triggergetabtest")) { p3.b().u().L(w1.a.B2, 1L); return true; } else if (str.startsWith("//vad")) { SharedPreferences defaultPreference2 = MMApplicationContext.getDefaultPreference(); if (defaultPreference2 == null) { return false; } if (str.startsWith("//vad get")) { i14.j.s(context, yh0.b.a(), "VAD PARAMS").show(); return true; } SharedPreferences.Editor edit13 = defaultPreference2.edit(); if (str.startsWith("//vad sd")) { edit13.putInt("s_delay_time", Integer.valueOf(str.substring(9).trim()).intValue()); } if (str.startsWith("//vad st")) { edit13.putInt("sil_time", Integer.valueOf(str.substring(9).trim()).intValue()); } if (str.startsWith("//vad snr")) { edit13.putFloat("s_n_ration", Float.valueOf(str.substring(10).trim()).floatValue()); } if (str.startsWith("//vad sw")) { edit13.putInt("s_window", Integer.valueOf(str.substring(9).trim()).intValue()); } if (str.startsWith("//vad sl")) { edit13.putInt("s_length", Integer.valueOf(str.substring(9).trim()).intValue()); } edit13.apply(); return true; } else if (str.startsWith("//dumpabtestrecords")) { if (2 < Log.getLogLevel()) { return false; } String Ga2 = str.contains("info") ? SubCoreNewABTest.VN0().Ga() : SubCoreNewABTest.WN0().Ga(); TextView textView4 = new TextView(context); textView4.setText(Ga2); textView4.setGravity(8388627); textView4.setTextSize(1, 10.0f); textView4.setLayoutParams(new ViewGroup.LayoutParams(-1, -2)); textView4.setTextColor(context.getResources().getColor(R.color.FG_0)); textView4.setTypeface(Typeface.MONOSPACE); textView4.setMovementMethod(new ScrollingMovementMethod()); int dimensionPixelSize4 = context.getResources().getDimensionPixelSize(R.dimen.f359247hf); textView4.setPadding(dimensionPixelSize4, dimensionPixelSize4, dimensionPixelSize4, dimensionPixelSize4); i14.j.q(context, null, textView4, null); return true; } else if (str.startsWith("//triggerWebViewCookiesCleanup")) { p3.b().u().L(w1.a.I3, 0L); return true; } else if (str.startsWith("//cleanwebcache")) { new CleanWebViewCacheEvent().publish(); return true; } else if (str.startsWith("//triggerWebViewCacheCleanup")) { com.tencent.mm.xwebutil.p.b("com.tencent.mm.intent.ACTION_CLEAR_WEBVIEW_CACHE"); return true; } else if (str.startsWith("//dumpsilkvoicefile")) { n0.F = true; return true; } else if (str.startsWith("//fucktit")) { p3.b().u().L(w1.a.f175735x3, Boolean.TRUE); return true; } else if (str.startsWith("//clog ")) { String substring5 = str.substring(7); com.tencent.mm.plugin.report.service.q.INSTANCE.o(substring5, "test cLog " + System.currentTimeMillis()); return true; } else if (str.startsWith("//testformsg") && CrashReportFactory.hasDebuger()) { String trim10 = str.substring(12).trim(); Log.i("MicroMsg.CommandProcessor", "MMCore.getSysCmdMsgExtension() " + p3.i()); n3 n3Var = new n3(); n3Var.f30478h = j0.i(trim10); n3Var.f30475e = j0.i("weixin"); n3Var.f30476f = j0.i(u0.r()); n3Var.f30481n = j0.h(APMidasPayAPI.ENV_TEST, true); n3Var.f30477g = 10002; p3.i().CE(new m.a(n3Var, false, false, false)); return true; } else if (str.startsWith("//resetsnslukcy")) { p3.b().u().L(w1.a.f175322h4, Boolean.FALSE); p3.b().u().L(w1.a.f175348i4, num); p3.b().u().L(w1.a.f175373j4, num); new SnsResetLuckyEvent().publish(); return true; } else if (str.startsWith("//enablempsp")) { MultiProcSharedPreferences.DynamicConfigStorage.setDisabledFlagManually(false); ak.a.makeText(context, "设置成功,请重启微信!", 0).show(); return true; } else if (str.startsWith("//disablempsp")) { MultiProcSharedPreferences.DynamicConfigStorage.setDisabledFlagManually(true); ak.a.makeText(context, "设置成功,请重启微信!", 0).show(); return true; } else if (str.startsWith("//soterpay")) { sv3.b.h(context, FingerprintManagerProxy.FINGERPRINT_SERVICE, ".ui.SoterPayTestUI"); return true; } else if (str.startsWith(context.getString(R.string.kbg))) { if (str.split(" ").length == 1) { n0.L = !n0.L; ak.a.makeText(MMApplicationContext.getContext(), String.format("showVoipDebugLog:%b", Boolean.valueOf(n0.L)), 0).show(); } return true; } else if (str.startsWith("//cameraeffectdebug")) { n0.M = !n0.M; ak.a.makeText(MMApplicationContext.getContext(), String.format("showCameraEffectDebugLog:%b", Boolean.valueOf(n0.M)), 0).show(); return true; } else if (str.startsWith("//getdltaskinfo")) { String replace23 = str.replace("//getdltaskinfo ", str17); try { c3 Uj = ((kq.t) yz3.j.c(kq.t.class)).Uj(Util.getLong(replace23, 0)); if (Uj != null) { Object[] objArr = {Long.valueOf(Uj.field_downloadId), Uj.field_downloadUrl, Uj.field_filePath, Uj.field_md5}; str6 = "getdltaskinfo"; try { Log.i(str6, "%d, %s, %s, %s", objArr); } catch (Exception unused17) { ei02 = ((kq.t) yz3.j.c(kq.t.class)).ei0(replace23); if (ei02 == null) { Log.i(str6, "%d, %s, %s, %s", Long.valueOf(ei02.field_downloadId), ei02.field_downloadUrl, ei02.field_filePath, ei02.field_md5); return true; } Log.i(str6, "infoURL null"); return true; } } else { Log.i("getdltaskinfo", "infoID null"); } return true; } catch (Exception unused18) { str6 = "getdltaskinfo"; ei02 = ((kq.t) yz3.j.c(kq.t.class)).ei0(replace23); if (ei02 == null) { } } } else if (str.startsWith("//testscan ")) { String[] split21 = str.split(" "); n0.K = Util.getFloat(split21[1], 0.0f); n0.J = Util.getFloat(split21[2], 0.0f); ak.a.makeText(MMApplicationContext.getContext(), "mode auto:" + n0.K + ",mode continuous:" + n0.J, 1).show(); return true; } else if (str.startsWith("//switchrecordmode")) { SharedPreferences defaultPreference3 = MMApplicationContext.getDefaultPreference(); boolean z38 = defaultPreference3.getBoolean("settings_voicerecorder_mode", false); defaultPreference3.edit().putBoolean("settings_voicerecorder_mode", !z38).commit(); if (z38) { ak.a.makeText(MMApplicationContext.getContext(), "Turn off silk record", 1).show(); return true; } ak.a.makeText(MMApplicationContext.getContext(), "Turn on silk record", 1).show(); return true; } else if (str.startsWith("//facedebug") || str.startsWith("//rstfacett")) { return true; } else { if (str.startsWith("//rfcdn")) { try { h0.fO0().keep_OnRequestDoGetCdnDnsInfo(888); return true; } catch (Exception e37) { Log.e("MicroMsg.CommandProcessor", "rfcdn :%s", Util.stackTraceToString(e37)); return true; } } else if (str.startsWith("//testcrscroll ") && (split = str.split(" ")) != null && split.length > 1) { Log.i("MicroMsg.CommandProcessor", "summerbadcr testscroll new BADCR_SCROLL_DELAY[%d]", Integer.valueOf(Util.getInt(split[1], 0))); return true; } else if (str.startsWith("//removeaudioplayer")) { String[] split22 = str.split(" "); if (split22.length >= 2 && (i18 = Util.getInt(split22[1], 3)) >= 2 && i18 <= 9) { p3.b().u().L(w1.a.f175326h8, Integer.valueOf(i18)); } return true; } else if (str.startsWith("//showaudiotoast")) { String[] split23 = str.split(" "); if (split23.length >= 2) { p3.b().u().L(w1.a.f175352i8, Boolean.valueOf(Util.getInt(split23[1], 0) == 1)); } return true; } else if (str.startsWith("//openmixaudio")) { String[] split24 = str.split(" "); if (split24.length >= 2) { p3.b().u().L(w1.a.f175377j8, Boolean.valueOf(Util.getInt(split24[1], 0) == 1)); } return true; } else if (str.startsWith("//switchmusicplayer")) { Log.i("MicroMsg.CommandProcessor", "msg:%s", str); String[] split25 = str.split(" "); if (split25.length <= 2) { return true; } boolean z39 = Util.getInt(split25[1], 0) != 0; int i45 = Util.getInt(split25[2], -1); t1 u18 = p3.b().u(); w1.a aVar10 = w1.a.f175300g8; int intValue2 = ((Integer) u18.f(aVar10, num)).intValue(); if (i45 == -1) { if (z39) { i17 = 255; } else { i16 = 0; intValue2 = i16; z15 = true; if (z15) { p3.b().u().L(aVar10, Integer.valueOf(intValue2)); } return true; } } else if (i45 == 0) { i17 = z39 ? intValue2 | 1 : intValue2 & -2; } else if (i45 == 1) { i17 = z39 ? intValue2 | 2 : intValue2 & -3; } else if (i45 == 4) { i17 = z39 ? intValue2 | 4 : intValue2 & -5; } else if (i45 == 6) { i17 = z39 ? intValue2 | 16 : intValue2 & -17; } else if (i45 == 7) { i17 = z39 ? intValue2 | 32 : intValue2 & -33; } else if (i45 == 8) { i17 = z39 ? intValue2 | 64 : intValue2 & -65; } else if (i45 == 9) { i17 = z39 ? intValue2 | 128 : intValue2 & -129; } else { z15 = false; if (z15) { } return true; } i16 = i17; intValue2 = i16; z15 = true; if (z15) { } return true; } else if (str.startsWith("//testdefaultrsa")) { Log.i("MicroMsg.CommandProcessor", "summercert testdefaultrsa"); String[] split26 = str.split(" "); boolean z45 = split26 != null && split26.length > 1; c1.f(str17, str17, 0); com.tencent.mm.network.f j28 = z.l().b().j(); if (j28 == null) { Log.w("MicroMsg.CommandProcessor", "summercert testdefaultrsa push not alive"); return false; } com.tencent.mm.modelsimple.a0 a0Var = new com.tencent.mm.modelsimple.a0(str17, str17, str17, 0); a0Var.w1(true); a0Var.doScene(j28, new f(z45, context)); return true; } else if (str.startsWith("//dumpdefaultrsa")) { return a(context, str17); } else { if (str.startsWith("//hardwareinfo")) { ((eb2.b) yz3.j.c(eb2.b.class)).kr(true); return true; } else if (str.startsWith("//showStringName")) { SharedPreferences defaultPreference4 = MMApplicationContext.getDefaultPreference(); defaultPreference4.edit().putBoolean("ShowStringName", !defaultPreference4.getBoolean("ShowStringName", false)).commit(); return true; } else if (str.startsWith("//mmphotoedit")) { sv3.b.i(context, "mmsight", ".ui.TestVideoEditUI", new Intent()); return true; } else if (str.startsWith("//msgDelay")) { com.tencent.mm.ui.conversation.banner.u.b(context); return true; } else if (str.startsWith("//cpDelayedMsg")) { com.tencent.mm.ui.conversation.banner.u.a(context); return true; } else if (str.startsWith("//testhce")) { sv3.b.h(context, "nfc", ".ui.HceTestUI"); return true; } else if (str.startsWith("//debugbigimg")) { String[] split27 = str.split(" "); if (split27.length == 2) { if (split27[1].equals("1")) { MMApplicationContext.getDefaultPreference().edit().putBoolean("debug_big_img", true).apply(); } else { MMApplicationContext.getDefaultPreference().edit().putBoolean("debug_big_img", false).apply(); } } return true; } else if (str.startsWith("//testservice ")) { String replace24 = str.replace("//testservice ", str17); context.getSharedPreferences("com.tencent.mm_webview_x5_preferences", 4).edit().putBoolean("forceTrigger", replace24 != null && replace24.equals("1")).commit(); return true; } else if (str.startsWith("//openDetect")) { MMApplicationContext.getContext().getSharedPreferences("system_config_prefs", 4).edit().putBoolean("msg_delay_close_detect", false).apply(); return true; } else if (str.startsWith("//closeDetect")) { MMApplicationContext.getContext().getSharedPreferences("system_config_prefs", 4).edit().putBoolean("msg_delay_close_detect", true).apply(); return true; } else if (str.startsWith("//snsimage")) { try { int i46 = Util.getInt(str.replace("//snsimage ", str17), 0); h0.gO0().v(i46); ak.a.makeText(MMApplicationContext.getContext(), i46 > 0 ? "tcp sns image download" : "http sns image download", 0).show(); return true; } catch (Exception e38) { Log.printErrStackTrace("MicroMsg.CommandProcessor", e38, str17, new Object[0]); ak.a.makeText(MMApplicationContext.getContext(), "set snsimage fail, please ensure your command.", 1).show(); return true; } } else if (str.startsWith("//resetWeishi")) { z.s().i().L(w1.a.f175383je, num); return true; } else if (str.startsWith("//clearWxWebCacheAndCookie")) { Intent intent19 = new Intent(); intent19.putExtra("tools_process_action_code_key", "com.tencent.mm.intent.ACTION_CLEAR_WEBVIEW_CACHE"); intent19.putExtra("tools_clean_webview_cache_ignore_cookie", true); com.tencent.mm.xwebutil.p.a(intent19); return true; } else if (str.startsWith("//destroyPreloadGameWebCore")) { com.tencent.mm.plugin.game.luggage.q.b(); return true; } else { if (str.startsWith("//ecdhml ")) { try { int i47 = Util.getInt(str.replace("//ecdhml ", str17), 0); if (i47 > 0 && i47 < 5) { SharedPreferences sharedPreferences2 = MMApplicationContext.getContext().getSharedPreferences("auth_info_key_prefs", 4); String str29 = "enable"; if (i47 < 3) { sharedPreferences2.edit().putBoolean("auth_info_prefs_use_new_ecdh", i47 == 1).commit(); boolean z46 = sharedPreferences2.getBoolean("auth_info_prefs_use_new_ecdh", true); StringBuilder sb11 = new StringBuilder(); sb11.append("reset ecdh mode "); if (yv3.g.f349200a) { str5 = str29; } else { str5 = "disable"; } sb11.append(str5); sb11.append(" to "); if (!z46) { str29 = "disable"; } sb11.append(str29); y0.makeText(context, sb11.toString(), 0).show(); Log.i("MicroMsg.CommandProcessor", "summerauths reset ecdh " + z46); return true; } sharedPreferences2.edit().putBoolean("auth_info_prefs_use_net_ml_cert", i47 == 3).commit(); boolean z47 = sharedPreferences2.getBoolean("auth_info_prefs_use_new_ecdh", false); StringBuilder sb12 = new StringBuilder(); sb12.append("reset ecdh ml mode "); if (yv3.g.f349201b) { str4 = str29; } else { str4 = "disable"; } sb12.append(str4); sb12.append(" to "); if (!z47) { str29 = "disable"; } sb12.append(str29); y0.makeText(context, sb12.toString(), 0).show(); Log.i("MicroMsg.CommandProcessor", "summerauths reset ecdh ml" + z47); return true; } } catch (Exception unused19) { } } if (str.startsWith("//storyPostThreshold ")) { try { i15 = Integer.valueOf(str.substring(21)).intValue(); } catch (NumberFormatException unused20) { Log.printDebugStack("MicroMsg.CommandProcessor", "NumberFormatException", new Object[0]); i15 = 0; } z.s().i().L(w1.a.f175511of, Integer.valueOf(i15)); return true; } else if (str.startsWith("//hbemojisw")) { t1 u19 = p3.b().u(); w1.a aVar11 = w1.a.Ef; p3.b().u().L(aVar11, Integer.valueOf(((Integer) u19.f(aVar11, num)).intValue() ^ 1)); return true; } else if (str.startsWith("//addbywework")) { t1 u25 = p3.b().u(); w1.a aVar12 = w1.a.f175550q1; p3.b().u().L(aVar12, Integer.valueOf(((Integer) u25.f(aVar12, num)).intValue() ^ 1)); return true; } else if (str.startsWith("//enableDyBg ")) { String[] split28 = str.split(" "); if (split28.length == 2) { if (split28[1].equals("1")) { MMApplicationContext.getDefaultPreference().edit().putBoolean("enable_dynamic_background_for_test", true).apply(); } else { MMApplicationContext.getDefaultPreference().edit().putBoolean("enable_dynamic_background_for_test", false).apply(); } } return true; } else if (str.startsWith("//setbgfps ")) { String[] split29 = str.split(" "); if (split29.length != 2) { return true; } int intValue3 = Integer.valueOf(split29[1]).intValue(); if (intValue3 > 0 && intValue3 <= 50) { MMApplicationContext.getDefaultPreference().edit().putInt("dynamic_bg_fps", intValue3).apply(); } return true; } else if (str.equalsIgnoreCase("//luckyBag")) { Intent intent20 = new Intent(context, SpringCardActivity.class); k30.a aVar13 = new k30.a(); aVar13.c(intent20); j30.a.d(context, aVar13.b(), "com/tencent/mm/console/CommandProcessor", "processed", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar13.a(0)); j30.a.e(context, "com/tencent/mm/console/CommandProcessor", "processed", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); return true; } else if (str.equalsIgnoreCase("//weChatCouponTest")) { z.d().a(2812, new g(context)); z.d().f(new ob1.a(new xv3.b("2970ab7af847a6f4df4cc859d1b9713ef3834fe2cedc52624957de63ea3f6e8e6d02ae00148de17691af0b721bbd1abc4efdb29074030220142ed6a027e0ae8970881aa5fb0045845c23c04184829f96b5cca9ad420081d7e4a9fb9afdef515b50611066d1c969b0b71f3db61da723483880fceca2f7fb9482c57b963c05c67bde9860f5fec35f50a9990cc144b9a7455f73aa7234c3a8a57793c6c7ee7a74a9a74426ab3488d42031c3e3caebeb984f7bdb00850f3a4288ca3cbd5a457f843cda1cb8b335f9baac584afc35e9de62830add14bdf3711c7bbc46bc81cc9f1e3d4c79b76661aecc300024052d01846db357d8f6f98ea0452adcaa2b6a737812ffd70c86f8f3798724ffe3f43e5a753783c3ef0d79aa0378885c4f24b6572e596d".getBytes()))); return true; } else if (str.startsWith("//transVoice")) { String[] split30 = str.split(" "); if (2 == split30.length) { if ("1".equals(split30[1])) { sh3.g.T0 = 1; } else if (str18.equals(split30[1])) { sh3.g.T0 = 0; } else { sh3.g.T0 = -1; } } return true; } else if (str.startsWith("//voice2TxtBlur")) { String[] split31 = str.split(" "); if (2 == split31.length) { if ("1".equals(split31[1])) { rh3.b.f294757a.a(1); } else if (str18.equals(split31[1])) { rh3.b.f294757a.a(0); } else { rh3.b.f294757a.a(-1); } } return true; } else if (str.startsWith("//scanSample")) { sv3.b.i(context, "scanner", ".ui.ScanSampleActivity", null); return true; } else if (str.startsWith("//setcdnip")) { String[] split32 = str.split(" "); n0.C = false; if (split32.length >= 2) { n0.C = true; n0.D = split32[1]; ak.a.makeText(context, "set cdn debugip " + n0.D + " ok.", 0).show(); return true; } ak.a.makeText(context, "clean cdn debugip ok.", 0).show(); return true; } else if (str.startsWith("//snsvideoredirect")) { String[] split33 = str.split(" "); n0.C = false; if (split33.length >= 2) { n0.C = true; ak.a.makeText(context, Util.getInt(split33[1], 0) != 0 ? "enable sns video redirect" : "disable sns video redirect", 0).show(); } return true; } else if (str.startsWith("//gamelifecleardb")) { ((s92.d) yz3.j.c(s92.d.class)).WN0(); return true; } else if (str.startsWith("//gamelifechat")) { ((s92.d) yz3.j.c(s92.d.class)).hO0(); return true; } else if (str.startsWith("//cdnnodebug")) { n0.C = false; return true; } else if (str.startsWith("//setLaunchRecovery")) { Log.e("MicroMsg.CommandProcessor", "#setLaunchRecovery, set crash to launch recovery"); ((qx.b) yz3.j.c(qx.b.class)).Vg0(context); return true; } else if (str.startsWith("//clearGameA8keyCookie")) { com.tencent.mm.ipcinvoker.o.d(WeChatProcess.PROCESS_TOOLS, null, t.class, null); return true; } else { if (str.startsWith("//weseeSwitch")) { String[] split34 = str.split(" "); if (2 == split34.length) { if ("1".equals(split34[1])) { MMApplicationContext.getDefaultPreference().edit().putBoolean("wesee_switch", true).apply(); } else { MMApplicationContext.getDefaultPreference().edit().putBoolean("wesee_switch", false).apply(); } } } if (str.startsWith("//snsad")) { k13.h.a(context, str); return true; } else if (str.startsWith("//snsdist")) { p3.e().f(new b0(2, 30, 1)); return true; } else if (str.startsWith("//accrotation")) { int i48 = Settings.System.getInt(MMApplicationContext.getContext().getContentResolver(), "accelerometer_rotation", 0); Context context6 = MMApplicationContext.getContext(); StringBuilder sb13 = new StringBuilder(); sb13.append("自动旋转:"); sb13.append(i48 == 1 ? "开" : "关"); y0.k(context6, sb13.toString()); return true; } else if (str.startsWith("//myuid")) { int myUid = Process.myUid(); y0.k(MMApplicationContext.getContext(), "myuid:" + myUid); return true; } else { switch (h(str)) { case 568: Assert.assertTrue("test errlog", false); return true; case 569: p3.b().c(); return true; case 570: if (t4.qd(b(str))) { ak.a.makeText(context, (int) R.string.kal, 0).show(); } return true; case 571: zg0.j0.f352575a.c(Util.decodeHexString(b(str)), true); return true; case 572: ChannelUtil.updateMode = Integer.valueOf(b(str)).intValue(); return true; case 573: case 575: case 576: case 577: case 578: case com.tencent.mm.plugin.appbrand.jsapi.share.h.CTRL_INDEX /*{ENCODED_INT: 589}*/: default: return false; case 574: i14.j.s(context, gh.g.f((vj.r.f(true) + p3.b().G()).getBytes()), "md5"); return true; case sq0.r1.CTRL_INDEX /*{ENCODED_INT: 579}*/: b3.a().d(b(str), str17); return true; case 580: p3.e().f(new k4(new h())); return true; case 581: com.tencent.mm.pluginsdk.model.app.y1.XN0().e(b(str)); return true; case t0.CTRL_INDEX /*{ENCODED_INT: 582}*/: z1 z1Var2 = p3.b().v().get(b(str)); if (z1Var2 == null || z1Var2.q3() == 0) { return false; } z1Var2.V3(); w0.Z(z1Var2); return true; case 583: break; case sq0.s1.CTRL_INDEX /*{ENCODED_INT: 584}*/: case nb.b.CTRL_INDEX /*{ENCODED_INT: 585}*/: h4.G(b(str)); break; case 586: String[] split35 = str.split(" "); if (split35 != null && split35.length == 3) { zg0.n0.a(Util.getInt(split35[1], 0), Util.getInt(split35[2], 0), str17); } return true; case 587: new DumpSnsEvent().publish(); return true; case 588: u1.v("/sdcard/tencent/MicroMsg/back"); u1.b(p3.b().p(), "/sdcard/tencent/MicroMsg/back"); return true; case com.tencent.mm.plugin.appbrand.jsapi.j0.CTRL_INDEX /*{ENCODED_INT: 590}*/: return true; case 591: try { String[] split36 = str.split(" "); if (split36 != null && split36.length > 1) { p3.b().r().e(XmlParser.parseXml(split36[0], "sysmsg", null)); } } catch (Exception e39) { Log.printErrStackTrace("MicroMsg.CommandProcessor", e39, "hy: error occured in commandProcessor", new Object[0]); } return true; } return true; } } } } } } } } } } } } } } } } } } } } } public static void f(int i15) { SharedPreferences sharedPreferences = MultiProcSharedPreferences.getSharedPreferences(MMApplicationContext.getContext(), "sp_sns_dynswitch_stg", 4, false); if (i15 == -1) { sharedPreferences.edit().remove("st_sw_use_vcodec_img").commit(); } else if (i15 == 0) { sharedPreferences.edit().putBoolean("st_sw_use_vcodec_img", false).commit(); } else if (i15 == 1) { sharedPreferences.edit().putBoolean("st_sw_use_vcodec_img", true).commit(); } else { throw new IllegalArgumentException("Bad op parameter: " + i15); } } public static void g(int i15) { SharedPreferences sharedPreferences = MultiProcSharedPreferences.getSharedPreferences(MMApplicationContext.getContext(), "sp_sns_dynswitch_stg", 4, false); if (i15 == -1) { sharedPreferences.edit().remove("st_sw_use_wxpc_img").commit(); } else if (i15 == 0) { sharedPreferences.edit().putBoolean("st_sw_use_wxpc_img", false).commit(); } else if (i15 == 1) { sharedPreferences.edit().putBoolean("st_sw_use_wxpc_img", true).commit(); } else { throw new IllegalArgumentException("Bad op parameter: " + i15); } } public static int h(String str) { if (str.startsWith("//") && str.length() > 2) { int indexOf = str.indexOf(" "); if (indexOf == -1) { indexOf = str.length(); } try { int i15 = Util.getInt(str.substring(2, indexOf), 0); int i16 = yv3.d.f349176g % 256; if (i16 != 0 && i15 >= i16 && i15 % i16 == 0) { return i15 / i16; } } catch (Exception unused) { } } return 0; } }