Initial commit
This commit is contained in:
107
sources/com/tencent/bugly/crashreport/biz/UserInfoBean.java
Normal file
107
sources/com/tencent/bugly/crashreport/biz/UserInfoBean.java
Normal file
@@ -0,0 +1,107 @@
|
||||
package com.tencent.bugly.crashreport.biz;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.tencent.bugly.proguard.z;
|
||||
import com.ubt.jimu.diy.model.CategoryModel;
|
||||
import java.util.Map;
|
||||
|
||||
/* compiled from: BUGLY */
|
||||
/* loaded from: classes.dex */
|
||||
public class UserInfoBean implements Parcelable {
|
||||
public static final Parcelable.Creator<UserInfoBean> CREATOR = new Parcelable.Creator<UserInfoBean>() { // from class: com.tencent.bugly.crashreport.biz.UserInfoBean.1
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ UserInfoBean createFromParcel(Parcel parcel) {
|
||||
return new UserInfoBean(parcel);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* bridge */ /* synthetic */ UserInfoBean[] newArray(int i) {
|
||||
return new UserInfoBean[i];
|
||||
}
|
||||
};
|
||||
public long a;
|
||||
public int b;
|
||||
public String c;
|
||||
public String d;
|
||||
public long e;
|
||||
public long f;
|
||||
public long g;
|
||||
public long h;
|
||||
public long i;
|
||||
public String j;
|
||||
public long k;
|
||||
public boolean l;
|
||||
public String m;
|
||||
public String n;
|
||||
public int o;
|
||||
public int p;
|
||||
public int q;
|
||||
public Map<String, String> r;
|
||||
public Map<String, String> s;
|
||||
|
||||
public UserInfoBean() {
|
||||
this.k = 0L;
|
||||
this.l = false;
|
||||
this.m = CategoryModel.unknown;
|
||||
this.p = -1;
|
||||
this.q = -1;
|
||||
this.r = null;
|
||||
this.s = null;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeInt(this.b);
|
||||
parcel.writeString(this.c);
|
||||
parcel.writeString(this.d);
|
||||
parcel.writeLong(this.e);
|
||||
parcel.writeLong(this.f);
|
||||
parcel.writeLong(this.g);
|
||||
parcel.writeLong(this.h);
|
||||
parcel.writeLong(this.i);
|
||||
parcel.writeString(this.j);
|
||||
parcel.writeLong(this.k);
|
||||
parcel.writeByte(this.l ? (byte) 1 : (byte) 0);
|
||||
parcel.writeString(this.m);
|
||||
parcel.writeInt(this.p);
|
||||
parcel.writeInt(this.q);
|
||||
z.b(parcel, this.r);
|
||||
z.b(parcel, this.s);
|
||||
parcel.writeString(this.n);
|
||||
parcel.writeInt(this.o);
|
||||
}
|
||||
|
||||
public UserInfoBean(Parcel parcel) {
|
||||
this.k = 0L;
|
||||
this.l = false;
|
||||
this.m = CategoryModel.unknown;
|
||||
this.p = -1;
|
||||
this.q = -1;
|
||||
this.r = null;
|
||||
this.s = null;
|
||||
this.b = parcel.readInt();
|
||||
this.c = parcel.readString();
|
||||
this.d = parcel.readString();
|
||||
this.e = parcel.readLong();
|
||||
this.f = parcel.readLong();
|
||||
this.g = parcel.readLong();
|
||||
this.h = parcel.readLong();
|
||||
this.i = parcel.readLong();
|
||||
this.j = parcel.readString();
|
||||
this.k = parcel.readLong();
|
||||
this.l = parcel.readByte() == 1;
|
||||
this.m = parcel.readString();
|
||||
this.p = parcel.readInt();
|
||||
this.q = parcel.readInt();
|
||||
this.r = z.b(parcel);
|
||||
this.s = z.b(parcel);
|
||||
this.n = parcel.readString();
|
||||
this.o = parcel.readInt();
|
||||
}
|
||||
}
|
332
sources/com/tencent/bugly/crashreport/biz/a.java
Normal file
332
sources/com/tencent/bugly/crashreport/biz/a.java
Normal file
@@ -0,0 +1,332 @@
|
||||
package com.tencent.bugly.crashreport.biz;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
import com.liulishuo.filedownloader.model.FileDownloadModel;
|
||||
import com.tencent.bugly.proguard.o;
|
||||
import com.tencent.bugly.proguard.p;
|
||||
import com.tencent.bugly.proguard.w;
|
||||
import com.tencent.bugly.proguard.x;
|
||||
import com.tencent.bugly.proguard.z;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* compiled from: BUGLY */
|
||||
/* loaded from: classes.dex */
|
||||
public final class a {
|
||||
private Context a;
|
||||
private long b;
|
||||
private int c;
|
||||
private boolean d;
|
||||
|
||||
/* compiled from: BUGLY */
|
||||
/* renamed from: com.tencent.bugly.crashreport.biz.a$2, reason: invalid class name */
|
||||
final class AnonymousClass2 implements Runnable {
|
||||
AnonymousClass2() {
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
try {
|
||||
a.this.c();
|
||||
} catch (Throwable th) {
|
||||
x.a(th);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: BUGLY */
|
||||
/* renamed from: com.tencent.bugly.crashreport.biz.a$a, reason: collision with other inner class name */
|
||||
class RunnableC0012a implements Runnable {
|
||||
private boolean a;
|
||||
private UserInfoBean b;
|
||||
|
||||
public RunnableC0012a(UserInfoBean userInfoBean, boolean z) {
|
||||
this.b = userInfoBean;
|
||||
this.a = z;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
com.tencent.bugly.crashreport.common.info.a b;
|
||||
try {
|
||||
if (this.b != null) {
|
||||
UserInfoBean userInfoBean = this.b;
|
||||
if (userInfoBean != null && (b = com.tencent.bugly.crashreport.common.info.a.b()) != null) {
|
||||
userInfoBean.j = b.e();
|
||||
}
|
||||
x.c("[UserInfo] Record user info.", new Object[0]);
|
||||
a.a(a.this, this.b, false);
|
||||
}
|
||||
if (this.a) {
|
||||
a aVar = a.this;
|
||||
w a = w.a();
|
||||
if (a != null) {
|
||||
a.a(aVar.new AnonymousClass2());
|
||||
}
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
if (x.a(th)) {
|
||||
return;
|
||||
}
|
||||
th.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: BUGLY */
|
||||
class b implements Runnable {
|
||||
b() {
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
long currentTimeMillis = System.currentTimeMillis();
|
||||
if (currentTimeMillis < a.this.b) {
|
||||
w.a().a(a.this.new b(), (a.this.b - currentTimeMillis) + 5000);
|
||||
} else {
|
||||
a.this.a(3, false, 0L);
|
||||
a.this.a();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: BUGLY */
|
||||
class c implements Runnable {
|
||||
private long a;
|
||||
|
||||
public c(long j) {
|
||||
this.a = 21600000L;
|
||||
this.a = j;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
a aVar = a.this;
|
||||
w a = w.a();
|
||||
if (a != null) {
|
||||
a.a(aVar.new AnonymousClass2());
|
||||
}
|
||||
a aVar2 = a.this;
|
||||
long j = this.a;
|
||||
w.a().a(aVar2.new c(j), j);
|
||||
}
|
||||
}
|
||||
|
||||
public a(Context context, boolean z) {
|
||||
this.d = true;
|
||||
this.a = context;
|
||||
this.d = z;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:118:0x0116 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:76:0x00f2 A[Catch: all -> 0x018b, TryCatch #0 {, blocks: (B:3:0x0001, B:8:0x0007, B:12:0x000f, B:16:0x0017, B:18:0x001d, B:22:0x0027, B:24:0x003c, B:27:0x0045, B:29:0x004c, B:30:0x004f, B:32:0x0055, B:34:0x0069, B:36:0x0079, B:43:0x0081, B:45:0x008b, B:46:0x0090, B:48:0x0096, B:50:0x00a4, B:52:0x00b1, B:53:0x00b4, B:56:0x00c2, B:58:0x00c6, B:60:0x00cb, B:63:0x00d0, B:73:0x00d7, B:74:0x00ec, B:76:0x00f2, B:78:0x00f7, B:81:0x00ff, B:84:0x0117, B:86:0x011d, B:89:0x0126, B:91:0x012c, B:94:0x0135, B:97:0x013e, B:99:0x0146, B:102:0x014f, B:104:0x0160, B:105:0x0165, B:107:0x016a, B:108:0x016f, B:111:0x017d, B:115:0x016d, B:116:0x0163, B:119:0x0182, B:123:0x00e6), top: B:2:0x0001 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:83:0x0114 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:86:0x011d A[Catch: all -> 0x018b, TRY_LEAVE, TryCatch #0 {, blocks: (B:3:0x0001, B:8:0x0007, B:12:0x000f, B:16:0x0017, B:18:0x001d, B:22:0x0027, B:24:0x003c, B:27:0x0045, B:29:0x004c, B:30:0x004f, B:32:0x0055, B:34:0x0069, B:36:0x0079, B:43:0x0081, B:45:0x008b, B:46:0x0090, B:48:0x0096, B:50:0x00a4, B:52:0x00b1, B:53:0x00b4, B:56:0x00c2, B:58:0x00c6, B:60:0x00cb, B:63:0x00d0, B:73:0x00d7, B:74:0x00ec, B:76:0x00f2, B:78:0x00f7, B:81:0x00ff, B:84:0x0117, B:86:0x011d, B:89:0x0126, B:91:0x012c, B:94:0x0135, B:97:0x013e, B:99:0x0146, B:102:0x014f, B:104:0x0160, B:105:0x0165, B:107:0x016a, B:108:0x016f, B:111:0x017d, B:115:0x016d, B:116:0x0163, B:119:0x0182, B:123:0x00e6), top: B:2:0x0001 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:89:0x0126 A[Catch: all -> 0x018b, TRY_ENTER, TryCatch #0 {, blocks: (B:3:0x0001, B:8:0x0007, B:12:0x000f, B:16:0x0017, B:18:0x001d, B:22:0x0027, B:24:0x003c, B:27:0x0045, B:29:0x004c, B:30:0x004f, B:32:0x0055, B:34:0x0069, B:36:0x0079, B:43:0x0081, B:45:0x008b, B:46:0x0090, B:48:0x0096, B:50:0x00a4, B:52:0x00b1, B:53:0x00b4, B:56:0x00c2, B:58:0x00c6, B:60:0x00cb, B:63:0x00d0, B:73:0x00d7, B:74:0x00ec, B:76:0x00f2, B:78:0x00f7, B:81:0x00ff, B:84:0x0117, B:86:0x011d, B:89:0x0126, B:91:0x012c, B:94:0x0135, B:97:0x013e, B:99:0x0146, B:102:0x014f, B:104:0x0160, B:105:0x0165, B:107:0x016a, B:108:0x016f, B:111:0x017d, B:115:0x016d, B:116:0x0163, B:119:0x0182, B:123:0x00e6), top: B:2:0x0001 }] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public synchronized void c() {
|
||||
/*
|
||||
Method dump skipped, instructions count: 398
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.tencent.bugly.crashreport.biz.a.c():void");
|
||||
}
|
||||
|
||||
static /* synthetic */ void a(a aVar, UserInfoBean userInfoBean, boolean z) {
|
||||
List<UserInfoBean> a;
|
||||
if (userInfoBean != null) {
|
||||
if (!z && userInfoBean.b != 1 && (a = aVar.a(com.tencent.bugly.crashreport.common.info.a.a(aVar.a).d)) != null && a.size() >= 20) {
|
||||
x.a("[UserInfo] There are too many user info in local: %d", Integer.valueOf(a.size()));
|
||||
return;
|
||||
}
|
||||
long a2 = p.a().a("t_ui", a(userInfoBean), (o) null, true);
|
||||
if (a2 >= 0) {
|
||||
x.c("[Database] insert %s success with ID: %d", "t_ui", Long.valueOf(a2));
|
||||
userInfoBean.a = a2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void b() {
|
||||
w a = w.a();
|
||||
if (a != null) {
|
||||
a.a(new AnonymousClass2());
|
||||
}
|
||||
}
|
||||
|
||||
public final void a(int i, boolean z, long j) {
|
||||
com.tencent.bugly.crashreport.common.strategy.a a = com.tencent.bugly.crashreport.common.strategy.a.a();
|
||||
if (a != null && !a.c().h && i != 1 && i != 3) {
|
||||
x.e("UserInfo is disable", new Object[0]);
|
||||
return;
|
||||
}
|
||||
if (i == 1 || i == 3) {
|
||||
this.c++;
|
||||
}
|
||||
com.tencent.bugly.crashreport.common.info.a a2 = com.tencent.bugly.crashreport.common.info.a.a(this.a);
|
||||
UserInfoBean userInfoBean = new UserInfoBean();
|
||||
userInfoBean.b = i;
|
||||
userInfoBean.c = a2.d;
|
||||
userInfoBean.d = a2.g();
|
||||
userInfoBean.e = System.currentTimeMillis();
|
||||
userInfoBean.f = -1L;
|
||||
userInfoBean.n = a2.j;
|
||||
userInfoBean.o = i == 1 ? 1 : 0;
|
||||
userInfoBean.l = a2.a();
|
||||
userInfoBean.m = a2.p;
|
||||
userInfoBean.g = a2.q;
|
||||
userInfoBean.h = a2.r;
|
||||
userInfoBean.i = a2.s;
|
||||
userInfoBean.k = a2.t;
|
||||
userInfoBean.r = a2.B();
|
||||
userInfoBean.s = a2.G();
|
||||
userInfoBean.p = a2.H();
|
||||
userInfoBean.q = a2.I();
|
||||
w.a().a(new RunnableC0012a(userInfoBean, z), 0L);
|
||||
}
|
||||
|
||||
public final void a() {
|
||||
this.b = z.b() + 86400000;
|
||||
w.a().a(new b(), (this.b - System.currentTimeMillis()) + 5000);
|
||||
}
|
||||
|
||||
public final List<UserInfoBean> a(String str) {
|
||||
Cursor cursor;
|
||||
String str2;
|
||||
try {
|
||||
if (z.a(str)) {
|
||||
str2 = null;
|
||||
} else {
|
||||
str2 = "_pc = '" + str + "'";
|
||||
}
|
||||
cursor = p.a().a("t_ui", null, str2, null, null, true);
|
||||
if (cursor == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
while (cursor.moveToNext()) {
|
||||
UserInfoBean a = a(cursor);
|
||||
if (a != null) {
|
||||
arrayList.add(a);
|
||||
} else {
|
||||
try {
|
||||
long j = cursor.getLong(cursor.getColumnIndex(FileDownloadModel.ID));
|
||||
sb.append(" or _id");
|
||||
sb.append(" = ");
|
||||
sb.append(j);
|
||||
} catch (Throwable unused) {
|
||||
x.d("[Database] unknown id.", new Object[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
String sb2 = sb.toString();
|
||||
if (sb2.length() > 0) {
|
||||
x.d("[Database] deleted %s error data %d", "t_ui", Integer.valueOf(p.a().a("t_ui", sb2.substring(4), (String[]) null, (o) null, true)));
|
||||
}
|
||||
if (cursor != null) {
|
||||
cursor.close();
|
||||
}
|
||||
return arrayList;
|
||||
} catch (Throwable th) {
|
||||
th = th;
|
||||
try {
|
||||
if (!x.a(th)) {
|
||||
th.printStackTrace();
|
||||
}
|
||||
if (cursor != null) {
|
||||
cursor.close();
|
||||
}
|
||||
return null;
|
||||
} finally {
|
||||
if (cursor != null) {
|
||||
cursor.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Throwable th2) {
|
||||
th = th2;
|
||||
cursor = null;
|
||||
}
|
||||
}
|
||||
|
||||
private static void a(List<UserInfoBean> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < list.size() && i < 50; i++) {
|
||||
UserInfoBean userInfoBean = list.get(i);
|
||||
sb.append(" or _id");
|
||||
sb.append(" = ");
|
||||
sb.append(userInfoBean.a);
|
||||
}
|
||||
String sb2 = sb.toString();
|
||||
if (sb2.length() > 0) {
|
||||
sb2 = sb2.substring(4);
|
||||
}
|
||||
String str = sb2;
|
||||
sb.setLength(0);
|
||||
try {
|
||||
x.c("[Database] deleted %s data %d", "t_ui", Integer.valueOf(p.a().a("t_ui", str, (String[]) null, (o) null, true)));
|
||||
} catch (Throwable th) {
|
||||
if (x.a(th)) {
|
||||
return;
|
||||
}
|
||||
th.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static ContentValues a(UserInfoBean userInfoBean) {
|
||||
if (userInfoBean == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
ContentValues contentValues = new ContentValues();
|
||||
if (userInfoBean.a > 0) {
|
||||
contentValues.put(FileDownloadModel.ID, Long.valueOf(userInfoBean.a));
|
||||
}
|
||||
contentValues.put("_tm", Long.valueOf(userInfoBean.e));
|
||||
contentValues.put("_ut", Long.valueOf(userInfoBean.f));
|
||||
contentValues.put("_tp", Integer.valueOf(userInfoBean.b));
|
||||
contentValues.put("_pc", userInfoBean.c);
|
||||
contentValues.put("_dt", z.a(userInfoBean));
|
||||
return contentValues;
|
||||
} catch (Throwable th) {
|
||||
if (!x.a(th)) {
|
||||
th.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static UserInfoBean a(Cursor cursor) {
|
||||
if (cursor == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
byte[] blob = cursor.getBlob(cursor.getColumnIndex("_dt"));
|
||||
if (blob == null) {
|
||||
return null;
|
||||
}
|
||||
long j = cursor.getLong(cursor.getColumnIndex(FileDownloadModel.ID));
|
||||
UserInfoBean userInfoBean = (UserInfoBean) z.a(blob, UserInfoBean.CREATOR);
|
||||
if (userInfoBean != null) {
|
||||
userInfoBean.a = j;
|
||||
}
|
||||
return userInfoBean;
|
||||
} catch (Throwable th) {
|
||||
if (!x.a(th)) {
|
||||
th.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
138
sources/com/tencent/bugly/crashreport/biz/b.java
Normal file
138
sources/com/tencent/bugly/crashreport/biz/b.java
Normal file
@@ -0,0 +1,138 @@
|
||||
package com.tencent.bugly.crashreport.biz;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import com.tencent.bugly.BuglyStrategy;
|
||||
import com.tencent.bugly.crashreport.biz.a.AnonymousClass2;
|
||||
import com.tencent.bugly.crashreport.common.strategy.StrategyBean;
|
||||
import com.tencent.bugly.proguard.w;
|
||||
import com.tencent.bugly.proguard.x;
|
||||
import com.tencent.bugly.proguard.z;
|
||||
|
||||
/* compiled from: BUGLY */
|
||||
/* loaded from: classes.dex */
|
||||
public class b {
|
||||
public static a a = null;
|
||||
private static boolean b = false;
|
||||
private static int c = 10;
|
||||
private static long d = 300000;
|
||||
private static long e = 30000;
|
||||
private static long f = 0;
|
||||
private static int g = 0;
|
||||
private static long h = 0;
|
||||
private static long i = 0;
|
||||
private static long j = 0;
|
||||
private static Application.ActivityLifecycleCallbacks k = null;
|
||||
private static Class<?> l = null;
|
||||
private static boolean m = true;
|
||||
|
||||
static /* synthetic */ String a(String str, String str2) {
|
||||
return z.a() + " " + str + " " + str2 + "\n";
|
||||
}
|
||||
|
||||
static /* synthetic */ int g() {
|
||||
int i2 = g;
|
||||
g = i2 + 1;
|
||||
return i2;
|
||||
}
|
||||
|
||||
public static void a(final Context context, final BuglyStrategy buglyStrategy) {
|
||||
long j2;
|
||||
if (b) {
|
||||
return;
|
||||
}
|
||||
m = com.tencent.bugly.crashreport.common.info.a.a(context).e;
|
||||
a = new a(context, m);
|
||||
b = true;
|
||||
if (buglyStrategy != null) {
|
||||
l = buglyStrategy.getUserInfoActivity();
|
||||
j2 = buglyStrategy.getAppReportDelay();
|
||||
} else {
|
||||
j2 = 0;
|
||||
}
|
||||
if (j2 <= 0) {
|
||||
c(context, buglyStrategy);
|
||||
} else {
|
||||
w.a().a(new Runnable() { // from class: com.tencent.bugly.crashreport.biz.b.1
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
b.c(context, buglyStrategy);
|
||||
}
|
||||
}, j2);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x0068 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x0069 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public static void c(android.content.Context r14, com.tencent.bugly.BuglyStrategy r15) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 273
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.tencent.bugly.crashreport.biz.b.c(android.content.Context, com.tencent.bugly.BuglyStrategy):void");
|
||||
}
|
||||
|
||||
public static void a(long j2) {
|
||||
if (j2 < 0) {
|
||||
j2 = com.tencent.bugly.crashreport.common.strategy.a.a().c().q;
|
||||
}
|
||||
f = j2;
|
||||
}
|
||||
|
||||
public static void a(StrategyBean strategyBean, boolean z) {
|
||||
w a2;
|
||||
a aVar = a;
|
||||
if (aVar != null && !z && (a2 = w.a()) != null) {
|
||||
a2.a(aVar.new AnonymousClass2());
|
||||
}
|
||||
if (strategyBean == null) {
|
||||
return;
|
||||
}
|
||||
long j2 = strategyBean.q;
|
||||
if (j2 > 0) {
|
||||
e = j2;
|
||||
}
|
||||
int i2 = strategyBean.w;
|
||||
if (i2 > 0) {
|
||||
c = i2;
|
||||
}
|
||||
long j3 = strategyBean.x;
|
||||
if (j3 > 0) {
|
||||
d = j3;
|
||||
}
|
||||
}
|
||||
|
||||
public static void a() {
|
||||
a aVar = a;
|
||||
if (aVar != null) {
|
||||
aVar.a(2, false, 0L);
|
||||
}
|
||||
}
|
||||
|
||||
public static void a(Context context) {
|
||||
if (!b || context == null) {
|
||||
return;
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= 14) {
|
||||
Application application = context.getApplicationContext() instanceof Application ? (Application) context.getApplicationContext() : null;
|
||||
if (application != null) {
|
||||
try {
|
||||
if (k != null) {
|
||||
application.unregisterActivityLifecycleCallbacks(k);
|
||||
}
|
||||
} catch (Exception e2) {
|
||||
if (!x.a(e2)) {
|
||||
e2.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
b = false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user