92 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| package com.tencent.bugly.crashreport.crash;
 | |
| 
 | |
| import android.content.Context;
 | |
| import com.tencent.bugly.proguard.w;
 | |
| import com.tencent.bugly.proguard.x;
 | |
| import com.tencent.bugly.proguard.z;
 | |
| import java.util.Map;
 | |
| 
 | |
| /* compiled from: BUGLY */
 | |
| /* loaded from: classes.dex */
 | |
| public final class d {
 | |
|     private static d a;
 | |
|     private com.tencent.bugly.crashreport.common.strategy.a b;
 | |
|     private com.tencent.bugly.crashreport.common.info.a c;
 | |
|     private b d;
 | |
|     private Context e;
 | |
| 
 | |
|     private d(Context context) {
 | |
|         c a2 = c.a();
 | |
|         if (a2 == null) {
 | |
|             return;
 | |
|         }
 | |
|         this.b = com.tencent.bugly.crashreport.common.strategy.a.a();
 | |
|         this.c = com.tencent.bugly.crashreport.common.info.a.a(context);
 | |
|         this.d = a2.p;
 | |
|         this.e = context;
 | |
|         w.a().a(new Runnable() { // from class: com.tencent.bugly.crashreport.crash.d.1
 | |
|             @Override // java.lang.Runnable
 | |
|             public final void run() {
 | |
|                 d.a(d.this);
 | |
|             }
 | |
|         });
 | |
|     }
 | |
| 
 | |
|     static /* synthetic */ void a(d dVar) {
 | |
|         x.c("[ExtraCrashManager] Trying to notify Bugly agents.", new Object[0]);
 | |
|         try {
 | |
|             Class<?> cls = Class.forName("com.tencent.bugly.agent.GameAgent");
 | |
|             dVar.c.getClass();
 | |
|             z.a(cls, "sdkPackageName", "com.tencent.bugly", (Object) null);
 | |
|             x.c("[ExtraCrashManager] Bugly game agent has been notified.", new Object[0]);
 | |
|         } catch (Throwable unused) {
 | |
|             x.a("[ExtraCrashManager] no game agent", new Object[0]);
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /* JADX WARN: Removed duplicated region for block: B:38:0x00df  */
 | |
|     /* JADX WARN: Removed duplicated region for block: B:42:0x015a A[Catch: all -> 0x0250, TRY_ENTER, TryCatch #1 {all -> 0x0250, blocks: (B:15:0x0045, B:17:0x004d, B:18:0x0054, B:21:0x0060, B:23:0x0068, B:32:0x00b6, B:34:0x00ba, B:39:0x00e0, B:42:0x015a, B:44:0x0161, B:46:0x0166, B:48:0x01fa, B:50:0x0203, B:51:0x0208, B:53:0x0243, B:57:0x00c8, B:59:0x00cc), top: B:14:0x0045 }] */
 | |
|     /* JADX WARN: Removed duplicated region for block: B:48:0x01fa A[Catch: all -> 0x0250, TryCatch #1 {all -> 0x0250, blocks: (B:15:0x0045, B:17:0x004d, B:18:0x0054, B:21:0x0060, B:23:0x0068, B:32:0x00b6, B:34:0x00ba, B:39:0x00e0, B:42:0x015a, B:44:0x0161, B:46:0x0166, B:48:0x01fa, B:50:0x0203, B:51:0x0208, B:53:0x0243, B:57:0x00c8, B:59:0x00cc), top: B:14:0x0045 }] */
 | |
|     /* JADX WARN: Removed duplicated region for block: B:50:0x0203 A[Catch: all -> 0x0250, TryCatch #1 {all -> 0x0250, blocks: (B:15:0x0045, B:17:0x004d, B:18:0x0054, B:21:0x0060, B:23:0x0068, B:32:0x00b6, B:34:0x00ba, B:39:0x00e0, B:42:0x015a, B:44:0x0161, B:46:0x0166, B:48:0x01fa, B:50:0x0203, B:51:0x0208, B:53:0x0243, B:57:0x00c8, B:59:0x00cc), top: B:14:0x0045 }] */
 | |
|     /* JADX WARN: Removed duplicated region for block: B:53:0x0243 A[Catch: all -> 0x0250, TRY_LEAVE, TryCatch #1 {all -> 0x0250, blocks: (B:15:0x0045, B:17:0x004d, B:18:0x0054, B:21:0x0060, B:23:0x0068, B:32:0x00b6, B:34:0x00ba, B:39:0x00e0, B:42:0x015a, B:44:0x0161, B:46:0x0166, B:48:0x01fa, B:50:0x0203, B:51:0x0208, B:53:0x0243, B:57:0x00c8, B:59:0x00cc), top: B:14:0x0045 }] */
 | |
|     /* JADX WARN: Removed duplicated region for block: B:56:0x0165  */
 | |
|     /*
 | |
|         Code decompiled incorrectly, please refer to instructions dump.
 | |
|         To view partially-correct code enable 'Show inconsistent code' option in preferences
 | |
|     */
 | |
|     static /* synthetic */ void a(com.tencent.bugly.crashreport.crash.d r16, java.lang.Thread r17, int r18, java.lang.String r19, java.lang.String r20, java.lang.String r21, java.util.Map r22) {
 | |
|         /*
 | |
|             Method dump skipped, instructions count: 615
 | |
|             To view this dump change 'Code comments level' option to 'DEBUG'
 | |
|         */
 | |
|         throw new UnsupportedOperationException("Method not decompiled: com.tencent.bugly.crashreport.crash.d.a(com.tencent.bugly.crashreport.crash.d, java.lang.Thread, int, java.lang.String, java.lang.String, java.lang.String, java.util.Map):void");
 | |
|     }
 | |
| 
 | |
|     public static d a(Context context) {
 | |
|         if (a == null) {
 | |
|             a = new d(context);
 | |
|         }
 | |
|         return a;
 | |
|     }
 | |
| 
 | |
|     public static void a(final Thread thread, final int i, final String str, final String str2, final String str3, final Map<String, String> map) {
 | |
|         w.a().a(new Runnable() { // from class: com.tencent.bugly.crashreport.crash.d.2
 | |
|             @Override // java.lang.Runnable
 | |
|             public final void run() {
 | |
|                 try {
 | |
|                     if (d.a == null) {
 | |
|                         x.e("[ExtraCrashManager] Extra crash manager has not been initialized.", new Object[0]);
 | |
|                     } else {
 | |
|                         d.a(d.a, thread, i, str, str2, str3, map);
 | |
|                     }
 | |
|                 } catch (Throwable th) {
 | |
|                     if (!x.b(th)) {
 | |
|                         th.printStackTrace();
 | |
|                     }
 | |
|                     x.e("[ExtraCrashManager] Crash error %s %s %s", str, str2, str3);
 | |
|                 }
 | |
|             }
 | |
|         });
 | |
|     }
 | |
| }
 |