1288 lines
79 KiB
Java
1288 lines
79 KiB
Java
package com.google.android.gms.measurement.internal;
|
|
|
|
import android.content.Context;
|
|
import android.content.pm.PackageInfo;
|
|
import android.content.pm.PackageManager;
|
|
import android.database.sqlite.SQLiteDatabase;
|
|
import android.database.sqlite.SQLiteException;
|
|
import android.net.Uri;
|
|
import android.text.TextUtils;
|
|
import android.util.Pair;
|
|
import androidx.collection.ArrayMap;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.common.util.Clock;
|
|
import com.google.android.gms.common.wrappers.Wrappers;
|
|
import java.io.File;
|
|
import java.io.FileNotFoundException;
|
|
import java.io.IOException;
|
|
import java.io.RandomAccessFile;
|
|
import java.net.MalformedURLException;
|
|
import java.net.URL;
|
|
import java.nio.ByteBuffer;
|
|
import java.nio.channels.FileChannel;
|
|
import java.nio.channels.FileLock;
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.concurrent.ExecutionException;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeoutException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class zzfo implements zzct {
|
|
private static volatile zzfo y;
|
|
private zzbq a;
|
|
private zzaw b;
|
|
private zzt c;
|
|
private zzbb d;
|
|
private zzfk e;
|
|
private zzm f;
|
|
private final zzfu g;
|
|
private zzdv h;
|
|
private final zzbw i;
|
|
private boolean j;
|
|
private boolean k;
|
|
private boolean l;
|
|
private long m;
|
|
private List<Runnable> n;
|
|
private int o;
|
|
private int p;
|
|
private boolean q;
|
|
private boolean r;
|
|
private boolean s;
|
|
private FileLock t;
|
|
private FileChannel u;
|
|
private List<Long> v;
|
|
private List<Long> w;
|
|
private long x;
|
|
|
|
class zza implements zzv {
|
|
com.google.android.gms.internal.measurement.zzfw a;
|
|
List<Long> b;
|
|
List<com.google.android.gms.internal.measurement.zzft> c;
|
|
private long d;
|
|
|
|
private zza(zzfo zzfoVar) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzv
|
|
public final void a(com.google.android.gms.internal.measurement.zzfw zzfwVar) {
|
|
Preconditions.a(zzfwVar);
|
|
this.a = zzfwVar;
|
|
}
|
|
|
|
/* synthetic */ zza(zzfo zzfoVar, zzfp zzfpVar) {
|
|
this(zzfoVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzv
|
|
public final boolean a(long j, com.google.android.gms.internal.measurement.zzft zzftVar) {
|
|
Preconditions.a(zzftVar);
|
|
if (this.c == null) {
|
|
this.c = new ArrayList();
|
|
}
|
|
if (this.b == null) {
|
|
this.b = new ArrayList();
|
|
}
|
|
if (this.c.size() > 0 && a(this.c.get(0)) != a(zzftVar)) {
|
|
return false;
|
|
}
|
|
long b = this.d + zzftVar.b();
|
|
if (b >= Math.max(0, zzai.s.a().intValue())) {
|
|
return false;
|
|
}
|
|
this.d = b;
|
|
this.c.add(zzftVar);
|
|
this.b.add(Long.valueOf(j));
|
|
return this.c.size() < Math.max(1, zzai.t.a().intValue());
|
|
}
|
|
|
|
private static long a(com.google.android.gms.internal.measurement.zzft zzftVar) {
|
|
return ((zzftVar.e.longValue() / 1000) / 60) / 60;
|
|
}
|
|
}
|
|
|
|
private zzfo(zzft zzftVar) {
|
|
this(zzftVar, null);
|
|
}
|
|
|
|
private final void A() {
|
|
t();
|
|
if (this.q || this.r || this.s) {
|
|
this.i.e().B().a("Not stopping services. fetch, network, upload", Boolean.valueOf(this.q), Boolean.valueOf(this.r), Boolean.valueOf(this.s));
|
|
return;
|
|
}
|
|
this.i.e().B().a("Stopping uploading service(s)");
|
|
List<Runnable> list = this.n;
|
|
if (list == null) {
|
|
return;
|
|
}
|
|
Iterator<Runnable> it = list.iterator();
|
|
while (it.hasNext()) {
|
|
it.next().run();
|
|
}
|
|
this.n.clear();
|
|
}
|
|
|
|
private final boolean B() {
|
|
t();
|
|
try {
|
|
this.u = new RandomAccessFile(new File(this.i.b().getFilesDir(), "google_app_measurement.db"), "rw").getChannel();
|
|
this.t = this.u.tryLock();
|
|
if (this.t != null) {
|
|
this.i.e().B().a("Storage concurrent access okay");
|
|
return true;
|
|
}
|
|
this.i.e().t().a("Storage concurrent data access panic");
|
|
return false;
|
|
} catch (FileNotFoundException e) {
|
|
this.i.e().t().a("Failed to acquire storage lock", e);
|
|
return false;
|
|
} catch (IOException e2) {
|
|
this.i.e().t().a("Failed to access storage lock file", e2);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
private final boolean C() {
|
|
t();
|
|
o();
|
|
return this.k;
|
|
}
|
|
|
|
public static zzfo a(Context context) {
|
|
Preconditions.a(context);
|
|
Preconditions.a(context.getApplicationContext());
|
|
if (y == null) {
|
|
synchronized (zzfo.class) {
|
|
if (y == null) {
|
|
y = new zzfo(new zzft(context));
|
|
}
|
|
}
|
|
}
|
|
return y;
|
|
}
|
|
|
|
private final void t() {
|
|
this.i.a().f();
|
|
}
|
|
|
|
private final zzbq u() {
|
|
b(this.a);
|
|
return this.a;
|
|
}
|
|
|
|
private final zzbb v() {
|
|
zzbb zzbbVar = this.d;
|
|
if (zzbbVar != null) {
|
|
return zzbbVar;
|
|
}
|
|
throw new IllegalStateException("Network broadcast receiver not created");
|
|
}
|
|
|
|
private final zzfk w() {
|
|
b(this.e);
|
|
return this.e;
|
|
}
|
|
|
|
private final long x() {
|
|
long a = this.i.d().a();
|
|
zzbd t = this.i.t();
|
|
t.o();
|
|
t.f();
|
|
long a2 = t.i.a();
|
|
if (a2 == 0) {
|
|
a2 = 1 + t.k().u().nextInt(86400000);
|
|
t.i.a(a2);
|
|
}
|
|
return ((((a + a2) / 1000) / 60) / 60) / 24;
|
|
}
|
|
|
|
private final boolean y() {
|
|
t();
|
|
o();
|
|
return l().D() || !TextUtils.isEmpty(l().y());
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:34:0x01a0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x01be */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
private final void z() {
|
|
/*
|
|
Method dump skipped, instructions count: 645
|
|
To view this dump change 'Code comments level' option to 'DEBUG'
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfo.z():void");
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzct
|
|
public final Context b() {
|
|
return this.i.b();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzct
|
|
public final zzn c() {
|
|
return this.i.c();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzct
|
|
public final Clock d() {
|
|
return this.i.d();
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzct
|
|
public final zzas e() {
|
|
return this.i.e();
|
|
}
|
|
|
|
protected final void f() {
|
|
this.i.a().f();
|
|
l().A();
|
|
if (this.i.t().e.a() == 0) {
|
|
this.i.t().e.a(this.i.d().a());
|
|
}
|
|
z();
|
|
}
|
|
|
|
public final zzaq g() {
|
|
return this.i.r();
|
|
}
|
|
|
|
public final zzfy h() {
|
|
return this.i.s();
|
|
}
|
|
|
|
public final zzq i() {
|
|
return this.i.u();
|
|
}
|
|
|
|
public final zzfu j() {
|
|
b(this.g);
|
|
return this.g;
|
|
}
|
|
|
|
public final zzm k() {
|
|
b(this.f);
|
|
return this.f;
|
|
}
|
|
|
|
public final zzt l() {
|
|
b(this.c);
|
|
return this.c;
|
|
}
|
|
|
|
public final zzaw m() {
|
|
b(this.b);
|
|
return this.b;
|
|
}
|
|
|
|
public final zzdv n() {
|
|
b(this.h);
|
|
return this.h;
|
|
}
|
|
|
|
final void o() {
|
|
if (!this.j) {
|
|
throw new IllegalStateException("UploadController is not initialized");
|
|
}
|
|
}
|
|
|
|
final void p() {
|
|
zzg b;
|
|
String str;
|
|
t();
|
|
o();
|
|
this.s = true;
|
|
try {
|
|
this.i.c();
|
|
Boolean G = this.i.m().G();
|
|
if (G == null) {
|
|
this.i.e().w().a("Upload data called on the client side before use of service was decided");
|
|
return;
|
|
}
|
|
if (G.booleanValue()) {
|
|
this.i.e().t().a("Upload called in the client side when service should be used");
|
|
return;
|
|
}
|
|
if (this.m > 0) {
|
|
z();
|
|
return;
|
|
}
|
|
t();
|
|
if (this.v != null) {
|
|
this.i.e().B().a("Uploading requested multiple times");
|
|
return;
|
|
}
|
|
if (!m().u()) {
|
|
this.i.e().B().a("Network not connected, ignoring upload request");
|
|
z();
|
|
return;
|
|
}
|
|
long a = this.i.d().a();
|
|
a((String) null, a - zzq.v());
|
|
long a2 = this.i.t().e.a();
|
|
if (a2 != 0) {
|
|
this.i.e().A().a("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs(a - a2)));
|
|
}
|
|
String y2 = l().y();
|
|
if (TextUtils.isEmpty(y2)) {
|
|
this.x = -1L;
|
|
String a3 = l().a(a - zzq.v());
|
|
if (!TextUtils.isEmpty(a3) && (b = l().b(a3)) != null) {
|
|
a(b);
|
|
}
|
|
} else {
|
|
if (this.x == -1) {
|
|
this.x = l().F();
|
|
}
|
|
List<Pair<com.google.android.gms.internal.measurement.zzfw, Long>> a4 = l().a(y2, this.i.u().b(y2, zzai.q), Math.max(0, this.i.u().b(y2, zzai.r)));
|
|
if (!a4.isEmpty()) {
|
|
Iterator<Pair<com.google.android.gms.internal.measurement.zzfw, Long>> it = a4.iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
str = null;
|
|
break;
|
|
}
|
|
com.google.android.gms.internal.measurement.zzfw zzfwVar = (com.google.android.gms.internal.measurement.zzfw) it.next().first;
|
|
if (!TextUtils.isEmpty(zzfwVar.u)) {
|
|
str = zzfwVar.u;
|
|
break;
|
|
}
|
|
}
|
|
if (str != null) {
|
|
int i = 0;
|
|
while (true) {
|
|
if (i >= a4.size()) {
|
|
break;
|
|
}
|
|
com.google.android.gms.internal.measurement.zzfw zzfwVar2 = (com.google.android.gms.internal.measurement.zzfw) a4.get(i).first;
|
|
if (!TextUtils.isEmpty(zzfwVar2.u) && !zzfwVar2.u.equals(str)) {
|
|
a4 = a4.subList(0, i);
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
com.google.android.gms.internal.measurement.zzfv zzfvVar = new com.google.android.gms.internal.measurement.zzfv();
|
|
zzfvVar.c = new com.google.android.gms.internal.measurement.zzfw[a4.size()];
|
|
ArrayList arrayList = new ArrayList(a4.size());
|
|
boolean z = zzq.w() && this.i.u().c(y2);
|
|
for (int i2 = 0; i2 < zzfvVar.c.length; i2++) {
|
|
zzfvVar.c[i2] = (com.google.android.gms.internal.measurement.zzfw) a4.get(i2).first;
|
|
arrayList.add((Long) a4.get(i2).second);
|
|
zzfvVar.c[i2].t = Long.valueOf(this.i.u().o());
|
|
zzfvVar.c[i2].f = Long.valueOf(a);
|
|
com.google.android.gms.internal.measurement.zzfw zzfwVar3 = zzfvVar.c[i2];
|
|
this.i.c();
|
|
zzfwVar3.B = false;
|
|
if (!z) {
|
|
zzfvVar.c[i2].K = null;
|
|
}
|
|
}
|
|
String b2 = this.i.e().a(2) ? j().b(zzfvVar) : null;
|
|
byte[] a5 = j().a(zzfvVar);
|
|
String a6 = zzai.A.a();
|
|
try {
|
|
URL url = new URL(a6);
|
|
Preconditions.a(!arrayList.isEmpty());
|
|
if (this.v != null) {
|
|
this.i.e().t().a("Set uploading progress before finishing the previous upload");
|
|
} else {
|
|
this.v = new ArrayList(arrayList);
|
|
}
|
|
this.i.t().f.a(a);
|
|
this.i.e().B().a("Uploading data. app, uncompressed size, data", zzfvVar.c.length > 0 ? zzfvVar.c[0].q : "?", Integer.valueOf(a5.length), b2);
|
|
this.r = true;
|
|
zzaw m = m();
|
|
zzfq zzfqVar = new zzfq(this, y2);
|
|
m.f();
|
|
m.r();
|
|
Preconditions.a(url);
|
|
Preconditions.a(a5);
|
|
Preconditions.a(zzfqVar);
|
|
m.a().b(new zzba(m, y2, url, a5, null, zzfqVar));
|
|
} catch (MalformedURLException unused) {
|
|
this.i.e().t().a("Failed to parse upload URL. Not uploading. appId", zzas.a(y2), a6);
|
|
}
|
|
}
|
|
}
|
|
} finally {
|
|
this.s = false;
|
|
A();
|
|
}
|
|
}
|
|
|
|
final void q() {
|
|
t();
|
|
o();
|
|
if (!this.l) {
|
|
this.l = true;
|
|
t();
|
|
o();
|
|
if ((this.i.u().a(zzai.n0) || C()) && B()) {
|
|
int a = a(this.u);
|
|
int E = this.i.l().E();
|
|
t();
|
|
if (a > E) {
|
|
this.i.e().t().a("Panic: can't downgrade version. Previous, current version", Integer.valueOf(a), Integer.valueOf(E));
|
|
} else if (a < E) {
|
|
if (a(E, this.u)) {
|
|
this.i.e().B().a("Storage version upgraded. Previous, current version", Integer.valueOf(a), Integer.valueOf(E));
|
|
} else {
|
|
this.i.e().t().a("Storage version upgrade failed. Previous, current version", Integer.valueOf(a), Integer.valueOf(E));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.k || this.i.u().a(zzai.n0)) {
|
|
return;
|
|
}
|
|
this.i.e().z().a("This instance being marked as an uploader");
|
|
this.k = true;
|
|
z();
|
|
}
|
|
|
|
final void r() {
|
|
this.p++;
|
|
}
|
|
|
|
final zzbw s() {
|
|
return this.i;
|
|
}
|
|
|
|
private zzfo(zzft zzftVar, zzbw zzbwVar) {
|
|
this.j = false;
|
|
Preconditions.a(zzftVar);
|
|
this.i = zzbw.a(zzftVar.a, (zzan) null);
|
|
this.x = -1L;
|
|
zzfu zzfuVar = new zzfu(this);
|
|
zzfuVar.t();
|
|
this.g = zzfuVar;
|
|
zzaw zzawVar = new zzaw(this);
|
|
zzawVar.t();
|
|
this.b = zzawVar;
|
|
zzbq zzbqVar = new zzbq(this);
|
|
zzbqVar.t();
|
|
this.a = zzbqVar;
|
|
this.i.a().a(new zzfp(this, zzftVar));
|
|
}
|
|
|
|
private static void b(zzfn zzfnVar) {
|
|
if (zzfnVar == null) {
|
|
throw new IllegalStateException("Upload Component not created");
|
|
}
|
|
if (zzfnVar.q()) {
|
|
return;
|
|
}
|
|
String valueOf = String.valueOf(zzfnVar.getClass());
|
|
StringBuilder sb = new StringBuilder(String.valueOf(valueOf).length() + 27);
|
|
sb.append("Component not initialized: ");
|
|
sb.append(valueOf);
|
|
throw new IllegalStateException(sb.toString());
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x007c */
|
|
/* JADX WARN: Removed duplicated region for block: B:28:0x00d6 */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x00fa */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x0108 */
|
|
/* JADX WARN: Removed duplicated region for block: B:47:0x0132 */
|
|
/* JADX WARN: Removed duplicated region for block: B:50:0x0140 */
|
|
/* JADX WARN: Removed duplicated region for block: B:53:0x014e */
|
|
/* JADX WARN: Removed duplicated region for block: B:55:0x0156 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x006a */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
public final com.google.android.gms.measurement.internal.zzg e(com.google.android.gms.measurement.internal.zzk r9) {
|
|
/*
|
|
Method dump skipped, instructions count: 350
|
|
To view this dump change 'Code comments level' option to 'DEBUG'
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfo.e(com.google.android.gms.measurement.internal.zzk):com.google.android.gms.measurement.internal.zzg");
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:100:0x0332 A[Catch: all -> 0x0449, TryCatch #4 {all -> 0x0449, blocks: (B:27:0x00a0, B:29:0x00ac, B:31:0x00c3, B:33:0x00eb, B:35:0x0135, B:39:0x0148, B:41:0x015c, B:44:0x0169, B:46:0x0173, B:47:0x01cd, B:49:0x01d2, B:51:0x01f1, B:54:0x0205, B:56:0x022e, B:57:0x023c, B:59:0x0269, B:60:0x026c, B:62:0x027a, B:64:0x027e, B:65:0x0283, B:67:0x028f, B:68:0x0344, B:70:0x035f, B:71:0x0362, B:72:0x03db, B:74:0x03eb, B:76:0x0401, B:77:0x0406, B:78:0x043a, B:83:0x02a6, B:86:0x02b3, B:88:0x02d4, B:90:0x02dc, B:92:0x02e4, B:93:0x02ea, B:96:0x02f4, B:98:0x0308, B:100:0x0332, B:102:0x0338, B:103:0x033b, B:105:0x0341, B:108:0x031a, B:114:0x02bc, B:120:0x037b, B:122:0x03ad, B:123:0x03b0, B:125:0x03be, B:127:0x03c2, B:128:0x03c7, B:129:0x041b, B:131:0x0421, B:133:0x01e1, B:135:0x0196, B:137:0x019e, B:139:0x01aa), top: B:26:0x00a0, inners: #1, #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:129:0x041b A[Catch: all -> 0x0449, TryCatch #4 {all -> 0x0449, blocks: (B:27:0x00a0, B:29:0x00ac, B:31:0x00c3, B:33:0x00eb, B:35:0x0135, B:39:0x0148, B:41:0x015c, B:44:0x0169, B:46:0x0173, B:47:0x01cd, B:49:0x01d2, B:51:0x01f1, B:54:0x0205, B:56:0x022e, B:57:0x023c, B:59:0x0269, B:60:0x026c, B:62:0x027a, B:64:0x027e, B:65:0x0283, B:67:0x028f, B:68:0x0344, B:70:0x035f, B:71:0x0362, B:72:0x03db, B:74:0x03eb, B:76:0x0401, B:77:0x0406, B:78:0x043a, B:83:0x02a6, B:86:0x02b3, B:88:0x02d4, B:90:0x02dc, B:92:0x02e4, B:93:0x02ea, B:96:0x02f4, B:98:0x0308, B:100:0x0332, B:102:0x0338, B:103:0x033b, B:105:0x0341, B:108:0x031a, B:114:0x02bc, B:120:0x037b, B:122:0x03ad, B:123:0x03b0, B:125:0x03be, B:127:0x03c2, B:128:0x03c7, B:129:0x041b, B:131:0x0421, B:133:0x01e1, B:135:0x0196, B:137:0x019e, B:139:0x01aa), top: B:26:0x00a0, inners: #1, #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:132:0x01df */
|
|
/* JADX WARN: Removed duplicated region for block: B:49:0x01d2 A[Catch: all -> 0x0449, TryCatch #4 {all -> 0x0449, blocks: (B:27:0x00a0, B:29:0x00ac, B:31:0x00c3, B:33:0x00eb, B:35:0x0135, B:39:0x0148, B:41:0x015c, B:44:0x0169, B:46:0x0173, B:47:0x01cd, B:49:0x01d2, B:51:0x01f1, B:54:0x0205, B:56:0x022e, B:57:0x023c, B:59:0x0269, B:60:0x026c, B:62:0x027a, B:64:0x027e, B:65:0x0283, B:67:0x028f, B:68:0x0344, B:70:0x035f, B:71:0x0362, B:72:0x03db, B:74:0x03eb, B:76:0x0401, B:77:0x0406, B:78:0x043a, B:83:0x02a6, B:86:0x02b3, B:88:0x02d4, B:90:0x02dc, B:92:0x02e4, B:93:0x02ea, B:96:0x02f4, B:98:0x0308, B:100:0x0332, B:102:0x0338, B:103:0x033b, B:105:0x0341, B:108:0x031a, B:114:0x02bc, B:120:0x037b, B:122:0x03ad, B:123:0x03b0, B:125:0x03be, B:127:0x03c2, B:128:0x03c7, B:129:0x041b, B:131:0x0421, B:133:0x01e1, B:135:0x0196, B:137:0x019e, B:139:0x01aa), top: B:26:0x00a0, inners: #1, #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:51:0x01f1 A[Catch: all -> 0x0449, TRY_LEAVE, TryCatch #4 {all -> 0x0449, blocks: (B:27:0x00a0, B:29:0x00ac, B:31:0x00c3, B:33:0x00eb, B:35:0x0135, B:39:0x0148, B:41:0x015c, B:44:0x0169, B:46:0x0173, B:47:0x01cd, B:49:0x01d2, B:51:0x01f1, B:54:0x0205, B:56:0x022e, B:57:0x023c, B:59:0x0269, B:60:0x026c, B:62:0x027a, B:64:0x027e, B:65:0x0283, B:67:0x028f, B:68:0x0344, B:70:0x035f, B:71:0x0362, B:72:0x03db, B:74:0x03eb, B:76:0x0401, B:77:0x0406, B:78:0x043a, B:83:0x02a6, B:86:0x02b3, B:88:0x02d4, B:90:0x02dc, B:92:0x02e4, B:93:0x02ea, B:96:0x02f4, B:98:0x0308, B:100:0x0332, B:102:0x0338, B:103:0x033b, B:105:0x0341, B:108:0x031a, B:114:0x02bc, B:120:0x037b, B:122:0x03ad, B:123:0x03b0, B:125:0x03be, B:127:0x03c2, B:128:0x03c7, B:129:0x041b, B:131:0x0421, B:133:0x01e1, B:135:0x0196, B:137:0x019e, B:139:0x01aa), top: B:26:0x00a0, inners: #1, #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:70:0x035f A[Catch: all -> 0x0449, TryCatch #4 {all -> 0x0449, blocks: (B:27:0x00a0, B:29:0x00ac, B:31:0x00c3, B:33:0x00eb, B:35:0x0135, B:39:0x0148, B:41:0x015c, B:44:0x0169, B:46:0x0173, B:47:0x01cd, B:49:0x01d2, B:51:0x01f1, B:54:0x0205, B:56:0x022e, B:57:0x023c, B:59:0x0269, B:60:0x026c, B:62:0x027a, B:64:0x027e, B:65:0x0283, B:67:0x028f, B:68:0x0344, B:70:0x035f, B:71:0x0362, B:72:0x03db, B:74:0x03eb, B:76:0x0401, B:77:0x0406, B:78:0x043a, B:83:0x02a6, B:86:0x02b3, B:88:0x02d4, B:90:0x02dc, B:92:0x02e4, B:93:0x02ea, B:96:0x02f4, B:98:0x0308, B:100:0x0332, B:102:0x0338, B:103:0x033b, B:105:0x0341, B:108:0x031a, B:114:0x02bc, B:120:0x037b, B:122:0x03ad, B:123:0x03b0, B:125:0x03be, B:127:0x03c2, B:128:0x03c7, B:129:0x041b, B:131:0x0421, B:133:0x01e1, B:135:0x0196, B:137:0x019e, B:139:0x01aa), top: B:26:0x00a0, inners: #1, #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:74:0x03eb A[Catch: all -> 0x0449, TryCatch #4 {all -> 0x0449, blocks: (B:27:0x00a0, B:29:0x00ac, B:31:0x00c3, B:33:0x00eb, B:35:0x0135, B:39:0x0148, B:41:0x015c, B:44:0x0169, B:46:0x0173, B:47:0x01cd, B:49:0x01d2, B:51:0x01f1, B:54:0x0205, B:56:0x022e, B:57:0x023c, B:59:0x0269, B:60:0x026c, B:62:0x027a, B:64:0x027e, B:65:0x0283, B:67:0x028f, B:68:0x0344, B:70:0x035f, B:71:0x0362, B:72:0x03db, B:74:0x03eb, B:76:0x0401, B:77:0x0406, B:78:0x043a, B:83:0x02a6, B:86:0x02b3, B:88:0x02d4, B:90:0x02dc, B:92:0x02e4, B:93:0x02ea, B:96:0x02f4, B:98:0x0308, B:100:0x0332, B:102:0x0338, B:103:0x033b, B:105:0x0341, B:108:0x031a, B:114:0x02bc, B:120:0x037b, B:122:0x03ad, B:123:0x03b0, B:125:0x03be, B:127:0x03c2, B:128:0x03c7, B:129:0x041b, B:131:0x0421, B:133:0x01e1, B:135:0x0196, B:137:0x019e, B:139:0x01aa), top: B:26:0x00a0, inners: #1, #2 }] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
final void c(com.google.android.gms.measurement.internal.zzk r22) {
|
|
/*
|
|
Method dump skipped, instructions count: 1106
|
|
To view this dump change 'Code comments level' option to 'DEBUG'
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfo.c(com.google.android.gms.measurement.internal.zzk):void");
|
|
}
|
|
|
|
final String d(zzk zzkVar) {
|
|
try {
|
|
return (String) this.i.a().a(new zzfs(this, zzkVar)).get(30000L, TimeUnit.MILLISECONDS);
|
|
} catch (InterruptedException | ExecutionException | TimeoutException e) {
|
|
this.i.e().t().a("Failed to get app instance id. appId", zzas.a(zzkVar.packageName), e);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
final void b(zzk zzkVar) {
|
|
t();
|
|
o();
|
|
Preconditions.b(zzkVar.packageName);
|
|
e(zzkVar);
|
|
}
|
|
|
|
/* JADX WARN: Can't wrap try/catch for region: R(14:184|(1:186)(1:208)|187|(7:192|193|(1:195)|196|(0)|42|(0)(0))|201|202|203|204|193|(0)|196|(0)|42|(0)(0)) */
|
|
/* JADX WARN: Code restructure failed: missing block: B:133:0x074d, code lost:
|
|
|
|
r2 = true;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:206:0x022e, code lost:
|
|
|
|
r0 = move-exception;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:207:0x022f, code lost:
|
|
|
|
r9.e().t().a("Error pruning currencies. appId", com.google.android.gms.measurement.internal.zzas.a(r15), r0);
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:195:0x0261 A[Catch: all -> 0x0800, TryCatch #0 {all -> 0x0800, blocks: (B:35:0x0106, B:38:0x0115, B:42:0x02a8, B:44:0x02e6, B:46:0x02eb, B:47:0x0304, B:51:0x0315, B:53:0x032b, B:55:0x0330, B:56:0x034b, B:61:0x0372, B:65:0x0398, B:66:0x03b1, B:69:0x03c1, B:72:0x03e4, B:73:0x0400, B:75:0x040e, B:77:0x0418, B:79:0x0424, B:81:0x042a, B:82:0x0435, B:84:0x0441, B:85:0x0458, B:87:0x047f, B:90:0x048f, B:93:0x04cb, B:94:0x04f3, B:97:0x0544, B:100:0x0566, B:102:0x0578, B:103:0x0582, B:105:0x0590, B:107:0x059a, B:109:0x059e, B:110:0x0608, B:112:0x0657, B:114:0x065d, B:115:0x065f, B:117:0x066b, B:118:0x06cd, B:119:0x06ec, B:121:0x06f2, B:124:0x0725, B:125:0x072d, B:127:0x0735, B:128:0x073b, B:130:0x0741, B:134:0x0788, B:136:0x078e, B:137:0x07a7, B:139:0x07bb, B:144:0x074f, B:146:0x0773, B:152:0x0792, B:153:0x05ab, B:155:0x05bd, B:157:0x05c1, B:159:0x05d3, B:160:0x0606, B:161:0x05eb, B:163:0x05f1, B:164:0x0560, B:165:0x053d, B:166:0x04e5, B:169:0x0124, B:172:0x0136, B:174:0x014d, B:179:0x0166, B:180:0x0192, B:182:0x0198, B:184:0x01a6, B:186:0x01b2, B:187:0x01bc, B:189:0x01c7, B:192:0x01ce, B:193:0x0257, B:195:0x0261, B:198:0x0299, B:201:0x01f8, B:203:0x0217, B:204:0x0240, B:207:0x022f, B:208:0x01b7, B:210:0x016b, B:211:0x0188), top: B:34:0x0106, inners: #1, #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:198:0x0299 A[Catch: all -> 0x0800, TRY_LEAVE, TryCatch #0 {all -> 0x0800, blocks: (B:35:0x0106, B:38:0x0115, B:42:0x02a8, B:44:0x02e6, B:46:0x02eb, B:47:0x0304, B:51:0x0315, B:53:0x032b, B:55:0x0330, B:56:0x034b, B:61:0x0372, B:65:0x0398, B:66:0x03b1, B:69:0x03c1, B:72:0x03e4, B:73:0x0400, B:75:0x040e, B:77:0x0418, B:79:0x0424, B:81:0x042a, B:82:0x0435, B:84:0x0441, B:85:0x0458, B:87:0x047f, B:90:0x048f, B:93:0x04cb, B:94:0x04f3, B:97:0x0544, B:100:0x0566, B:102:0x0578, B:103:0x0582, B:105:0x0590, B:107:0x059a, B:109:0x059e, B:110:0x0608, B:112:0x0657, B:114:0x065d, B:115:0x065f, B:117:0x066b, B:118:0x06cd, B:119:0x06ec, B:121:0x06f2, B:124:0x0725, B:125:0x072d, B:127:0x0735, B:128:0x073b, B:130:0x0741, B:134:0x0788, B:136:0x078e, B:137:0x07a7, B:139:0x07bb, B:144:0x074f, B:146:0x0773, B:152:0x0792, B:153:0x05ab, B:155:0x05bd, B:157:0x05c1, B:159:0x05d3, B:160:0x0606, B:161:0x05eb, B:163:0x05f1, B:164:0x0560, B:165:0x053d, B:166:0x04e5, B:169:0x0124, B:172:0x0136, B:174:0x014d, B:179:0x0166, B:180:0x0192, B:182:0x0198, B:184:0x01a6, B:186:0x01b2, B:187:0x01bc, B:189:0x01c7, B:192:0x01ce, B:193:0x0257, B:195:0x0261, B:198:0x0299, B:201:0x01f8, B:203:0x0217, B:204:0x0240, B:207:0x022f, B:208:0x01b7, B:210:0x016b, B:211:0x0188), top: B:34:0x0106, inners: #1, #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:44:0x02e6 A[Catch: all -> 0x0800, TryCatch #0 {all -> 0x0800, blocks: (B:35:0x0106, B:38:0x0115, B:42:0x02a8, B:44:0x02e6, B:46:0x02eb, B:47:0x0304, B:51:0x0315, B:53:0x032b, B:55:0x0330, B:56:0x034b, B:61:0x0372, B:65:0x0398, B:66:0x03b1, B:69:0x03c1, B:72:0x03e4, B:73:0x0400, B:75:0x040e, B:77:0x0418, B:79:0x0424, B:81:0x042a, B:82:0x0435, B:84:0x0441, B:85:0x0458, B:87:0x047f, B:90:0x048f, B:93:0x04cb, B:94:0x04f3, B:97:0x0544, B:100:0x0566, B:102:0x0578, B:103:0x0582, B:105:0x0590, B:107:0x059a, B:109:0x059e, B:110:0x0608, B:112:0x0657, B:114:0x065d, B:115:0x065f, B:117:0x066b, B:118:0x06cd, B:119:0x06ec, B:121:0x06f2, B:124:0x0725, B:125:0x072d, B:127:0x0735, B:128:0x073b, B:130:0x0741, B:134:0x0788, B:136:0x078e, B:137:0x07a7, B:139:0x07bb, B:144:0x074f, B:146:0x0773, B:152:0x0792, B:153:0x05ab, B:155:0x05bd, B:157:0x05c1, B:159:0x05d3, B:160:0x0606, B:161:0x05eb, B:163:0x05f1, B:164:0x0560, B:165:0x053d, B:166:0x04e5, B:169:0x0124, B:172:0x0136, B:174:0x014d, B:179:0x0166, B:180:0x0192, B:182:0x0198, B:184:0x01a6, B:186:0x01b2, B:187:0x01bc, B:189:0x01c7, B:192:0x01ce, B:193:0x0257, B:195:0x0261, B:198:0x0299, B:201:0x01f8, B:203:0x0217, B:204:0x0240, B:207:0x022f, B:208:0x01b7, B:210:0x016b, B:211:0x0188), top: B:34:0x0106, inners: #1, #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:50:0x0313 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
private final void b(com.google.android.gms.measurement.internal.zzag r27, com.google.android.gms.measurement.internal.zzk r28) {
|
|
/*
|
|
Method dump skipped, instructions count: 2057
|
|
To view this dump change 'Code comments level' option to 'DEBUG'
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfo.b(com.google.android.gms.measurement.internal.zzag, com.google.android.gms.measurement.internal.zzk):void");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public final void a(zzft zzftVar) {
|
|
this.i.a().f();
|
|
zzt zztVar = new zzt(this);
|
|
zztVar.t();
|
|
this.c = zztVar;
|
|
this.i.u().a(this.a);
|
|
zzm zzmVar = new zzm(this);
|
|
zzmVar.t();
|
|
this.f = zzmVar;
|
|
zzdv zzdvVar = new zzdv(this);
|
|
zzdvVar.t();
|
|
this.h = zzdvVar;
|
|
zzfk zzfkVar = new zzfk(this);
|
|
zzfkVar.t();
|
|
this.e = zzfkVar;
|
|
this.d = new zzbb(this);
|
|
if (this.o != this.p) {
|
|
this.i.e().t().a("Not all upload components initialized", Integer.valueOf(this.o), Integer.valueOf(this.p));
|
|
}
|
|
this.j = true;
|
|
}
|
|
|
|
@Override // com.google.android.gms.measurement.internal.zzct
|
|
public final zzbr a() {
|
|
return this.i.a();
|
|
}
|
|
|
|
final void a(zzag zzagVar, String str) {
|
|
zzg b = l().b(str);
|
|
if (b != null && !TextUtils.isEmpty(b.e())) {
|
|
Boolean b2 = b(b);
|
|
if (b2 == null) {
|
|
if (!"_ui".equals(zzagVar.name)) {
|
|
this.i.e().w().a("Could not find package. appId", zzas.a(str));
|
|
}
|
|
} else if (!b2.booleanValue()) {
|
|
this.i.e().t().a("App version does not match; dropping event. appId", zzas.a(str));
|
|
return;
|
|
}
|
|
a(zzagVar, new zzk(str, b.c(), b.e(), b.l(), b.m(), b.n(), b.o(), (String) null, b.d(), false, b.b(), b.B(), 0L, 0, b.C(), b.D(), false, b.h()));
|
|
return;
|
|
}
|
|
this.i.e().A().a("No app data available; dropping event", str);
|
|
}
|
|
|
|
final void a(zzag zzagVar, zzk zzkVar) {
|
|
List<zzo> a;
|
|
List<zzo> a2;
|
|
List<zzo> a3;
|
|
Preconditions.a(zzkVar);
|
|
Preconditions.b(zzkVar.packageName);
|
|
t();
|
|
o();
|
|
String str = zzkVar.packageName;
|
|
long j = zzagVar.zzaig;
|
|
if (j().a(zzagVar, zzkVar)) {
|
|
if (!zzkVar.zzafr) {
|
|
e(zzkVar);
|
|
return;
|
|
}
|
|
l().u();
|
|
try {
|
|
zzt l = l();
|
|
Preconditions.b(str);
|
|
l.f();
|
|
l.r();
|
|
if (j < 0) {
|
|
l.e().w().a("Invalid time querying timed out conditional properties", zzas.a(str), Long.valueOf(j));
|
|
a = Collections.emptyList();
|
|
} else {
|
|
a = l.a("active=0 and app_id=? and abs(? - creation_timestamp) > trigger_timeout", new String[]{str, String.valueOf(j)});
|
|
}
|
|
for (zzo zzoVar : a) {
|
|
if (zzoVar != null) {
|
|
this.i.e().A().a("User property timed out", zzoVar.packageName, this.i.r().c(zzoVar.zzags.name), zzoVar.zzags.getValue());
|
|
if (zzoVar.zzagt != null) {
|
|
b(new zzag(zzoVar.zzagt, j), zzkVar);
|
|
}
|
|
l().f(str, zzoVar.zzags.name);
|
|
}
|
|
}
|
|
zzt l2 = l();
|
|
Preconditions.b(str);
|
|
l2.f();
|
|
l2.r();
|
|
if (j < 0) {
|
|
l2.e().w().a("Invalid time querying expired conditional properties", zzas.a(str), Long.valueOf(j));
|
|
a2 = Collections.emptyList();
|
|
} else {
|
|
a2 = l2.a("active<>0 and app_id=? and abs(? - triggered_timestamp) > time_to_live", new String[]{str, String.valueOf(j)});
|
|
}
|
|
ArrayList arrayList = new ArrayList(a2.size());
|
|
for (zzo zzoVar2 : a2) {
|
|
if (zzoVar2 != null) {
|
|
this.i.e().A().a("User property expired", zzoVar2.packageName, this.i.r().c(zzoVar2.zzags.name), zzoVar2.zzags.getValue());
|
|
l().c(str, zzoVar2.zzags.name);
|
|
if (zzoVar2.zzagv != null) {
|
|
arrayList.add(zzoVar2.zzagv);
|
|
}
|
|
l().f(str, zzoVar2.zzags.name);
|
|
}
|
|
}
|
|
int size = arrayList.size();
|
|
int i = 0;
|
|
while (i < size) {
|
|
Object obj = arrayList.get(i);
|
|
i++;
|
|
b(new zzag((zzag) obj, j), zzkVar);
|
|
}
|
|
zzt l3 = l();
|
|
String str2 = zzagVar.name;
|
|
Preconditions.b(str);
|
|
Preconditions.b(str2);
|
|
l3.f();
|
|
l3.r();
|
|
if (j < 0) {
|
|
l3.e().w().a("Invalid time querying triggered conditional properties", zzas.a(str), l3.j().a(str2), Long.valueOf(j));
|
|
a3 = Collections.emptyList();
|
|
} else {
|
|
a3 = l3.a("active=0 and app_id=? and trigger_event_name=? and abs(? - creation_timestamp) <= trigger_timeout", new String[]{str, str2, String.valueOf(j)});
|
|
}
|
|
ArrayList arrayList2 = new ArrayList(a3.size());
|
|
for (zzo zzoVar3 : a3) {
|
|
if (zzoVar3 != null) {
|
|
zzfv zzfvVar = zzoVar3.zzags;
|
|
zzfx zzfxVar = new zzfx(zzoVar3.packageName, zzoVar3.origin, zzfvVar.name, j, zzfvVar.getValue());
|
|
if (l().a(zzfxVar)) {
|
|
this.i.e().A().a("User property triggered", zzoVar3.packageName, this.i.r().c(zzfxVar.c), zzfxVar.e);
|
|
} else {
|
|
this.i.e().t().a("Too many active user properties, ignoring", zzas.a(zzoVar3.packageName), this.i.r().c(zzfxVar.c), zzfxVar.e);
|
|
}
|
|
if (zzoVar3.zzagu != null) {
|
|
arrayList2.add(zzoVar3.zzagu);
|
|
}
|
|
zzoVar3.zzags = new zzfv(zzfxVar);
|
|
zzoVar3.active = true;
|
|
l().a(zzoVar3);
|
|
}
|
|
}
|
|
b(zzagVar, zzkVar);
|
|
int size2 = arrayList2.size();
|
|
int i2 = 0;
|
|
while (i2 < size2) {
|
|
Object obj2 = arrayList2.get(i2);
|
|
i2++;
|
|
b(new zzag((zzag) obj2, j), zzkVar);
|
|
}
|
|
l().x();
|
|
} finally {
|
|
l().v();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Can't wrap try/catch for region: R(9:(1:7)|(6:9|(2:570|571)(1:11)|(1:13)(1:569)|14|15|(5:(1:18)|19|(2:24|(27:26|(3:27|28|(4:30|31|(6:33|(4:38|(1:42)|43|44)|46|(2:40|42)|43|44)(24:47|48|(2:50|(2:52|(6:54|(3:228|(1:225)(1:63)|(1:65)(9:224|130|(1:220)(7:133|(4:136|(2:138|139)(2:141|(2:143|144)(1:145))|140|134)|146|147|(2:149|(4:154|(1:156)(3:202|(4:208|(3:211|(2:214|215)(1:213)|209)|216|217)(0)|207)|(1:158)|159)(1:153))|219|159)|160|(2:162|(2:164|(5:(4:188|(3:176|(2:181|(1:183)(1:184))|185)|186|187)|171|(4:174|176|(3:178|181|(0)(0))|185)|186|187))(2:189|(2:191|(5:(2:194|(5:198|171|(0)|186|187))(1:200)|199|(0)|186|187))))|201|(0)|186|187))|57|(1:59)|225|(0)(0))(6:229|(4:231|(0)|225|(0)(0))|57|(0)|225|(0)(0)))(6:232|(4:234|(0)|225|(0)(0))|57|(0)|225|(0)(0)))(1:235)|66|(1:68)|69|70|(5:73|74|(2:76|77)(2:79|(2:81|82)(1:83))|78|71)|84|(1:223)(1:87)|(1:89)|90|(2:92|(2:93|(1:221)(2:95|(6:98|99|(1:101)|102|(1:104)|105)(1:97))))(1:222)|106|(4:111|(3:113|(2:115|116)(2:118|(2:120|121)(1:122))|117)|123|(1:(1:128)(1:129))(1:126))|130|(0)|220|160|(0)|201|(0)|186|187)|45)(1:236))|237|(4:239|(4:241|(2:243|(3:245|246|247))|(2:249|(2:255|256))(1:260)|247)|261|262)|263|(1:265)|(8:267|(6:272|273|(2:274|(2:276|(2:279|280)(1:278))(2:286|287))|(1:282)|283|(1:285))|288|273|(3:274|(0)(0)|278)|(0)|283|(0))|289|(9:365|366|(5:368|(4:370|(1:372)|373|(6:375|(1:377)|378|(1:382)|383|384)(1:388))(5:390|(1:477)(3:393|394|(1:(2:396|(3:399|400|(1:404)(0))(1:398))(1:476)))|475|(1:406)(1:466)|(2:408|409)(7:410|(1:414)|415|(1:417)(1:465)|418|419|(4:421|422|(1:430)|431)(2:432|(4:434|(1:436)|437|438)(5:439|440|(3:442|(2:444|445)(1:461)|446)(3:462|(2:464|448)|460)|(4:450|(1:452)|453|454)(2:455|(2:457|458)(1:459))|387))))|385|386|387)|478|479|(1:481)|482|(2:485|483)|486)(1:291)|292|(6:295|(1:297)|298|(2:300|301)(1:303)|302|293)|304|305|(2:307|308)(2:345|(7:347|(1:349)(1:359)|350|(1:352)(1:358)|353|(1:355)(1:357)|356))|309|(5:311|(2:316|317)|318|(1:320)(1:321)|317)|322|(3:(2:326|327)(1:329)|328|323)|330|331|(1:333)|334|335|336|337|338|339)(4:487|488|489|490))|491|(0)(0))(4:492|493|494|495))(6:575|(2:577|578)(1:589)|(1:580)(1:588)|581|582|(5:(1:585)|19|(3:21|24|(0)(0))|491|(0)(0))(2:586|587))|496|497|(2:499|(1:501))(11:502|503|504|505|(1:507)|508|(1:510)(1:554)|511|512|513|(2:515|(1:517))(1:(8:518|519|520|521|522|(2:530|(1:532))|524|(2:526|(1:528))(1:529))))|19|(0)|491|(0)(0)) */
|
|
/* JADX WARN: Code restructure failed: missing block: B:447:0x0af4, code lost:
|
|
|
|
if (r24 != r14) goto L448;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:562:0x023c, code lost:
|
|
|
|
r0 = e;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:563:0x023d, code lost:
|
|
|
|
r6 = r8;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:564:0x0239, code lost:
|
|
|
|
r0 = th;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:162:0x0663 A[Catch: all -> 0x0d97, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:173:0x06d7 A[ADDED_TO_REGION] */
|
|
/* JADX WARN: Removed duplicated region for block: B:183:0x06f6 A[Catch: all -> 0x0d97, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:184:0x070e A[Catch: all -> 0x0d97, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x026a A[Catch: all -> 0x0d97, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:224:0x03a9 */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0278 A[Catch: all -> 0x0d97, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:276:0x0834 A[Catch: all -> 0x0d97, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:282:0x084c A[Catch: all -> 0x0d97, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:285:0x086c A[Catch: all -> 0x0d97, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:286:0x0849 A[SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:487:0x0d7a */
|
|
/* JADX WARN: Removed duplicated region for block: B:543:0x0263 A[Catch: all -> 0x0d97, TRY_ENTER, TryCatch #11 {all -> 0x0d97, blocks: (B:3:0x000b, B:18:0x0084, B:19:0x0266, B:21:0x026a, B:26:0x0278, B:27:0x02a7, B:30:0x02b7, B:33:0x02d7, B:35:0x030a, B:40:0x031e, B:42:0x0326, B:45:0x073d, B:47:0x034a, B:50:0x035e, B:66:0x03b3, B:68:0x03b7, B:69:0x03bc, B:74:0x03cc, B:76:0x03d8, B:78:0x03f1, B:79:0x03e1, B:81:0x03e9, B:87:0x03fc, B:89:0x043f, B:90:0x047b, B:93:0x04af, B:95:0x04b4, B:99:0x04c0, B:101:0x04c9, B:102:0x04cf, B:104:0x04d2, B:105:0x04db, B:97:0x04de, B:106:0x04e3, B:109:0x04ed, B:111:0x0520, B:113:0x053f, B:117:0x0556, B:118:0x054d, B:126:0x055f, B:128:0x0572, B:129:0x057d, B:130:0x0594, B:133:0x05a6, B:134:0x05ab, B:136:0x05ae, B:140:0x05c9, B:141:0x05bc, B:149:0x05cf, B:151:0x05d5, B:153:0x05db, B:158:0x062e, B:159:0x064d, B:160:0x0651, B:162:0x0663, B:164:0x066b, B:167:0x0678, B:169:0x068f, B:174:0x06d9, B:176:0x06e1, B:178:0x06e5, B:181:0x06eb, B:183:0x06f6, B:184:0x070e, B:185:0x0717, B:186:0x072e, B:189:0x069a, B:191:0x06a4, B:194:0x06af, B:196:0x06c8, B:202:0x0602, B:204:0x0608, B:209:0x0611, B:211:0x0617, B:213:0x0622, B:226:0x037c, B:229:0x0386, B:232:0x0390, B:241:0x075b, B:243:0x0767, B:245:0x0772, B:247:0x07a2, B:249:0x0786, B:251:0x078f, B:253:0x0793, B:255:0x079d, B:263:0x07a7, B:265:0x07af, B:267:0x07bb, B:269:0x07c9, B:272:0x07ce, B:273:0x0811, B:274:0x082f, B:276:0x0834, B:280:0x0840, B:282:0x084c, B:285:0x086c, B:278:0x0846, B:288:0x07f4, B:289:0x0884, B:370:0x08ce, B:372:0x08e1, B:373:0x08f0, B:375:0x08f4, B:377:0x08fe, B:378:0x090d, B:380:0x0911, B:382:0x0919, B:383:0x092a, B:394:0x0977, B:396:0x0981, B:400:0x098d, B:402:0x0991, B:406:0x09c1, B:408:0x09d3, B:412:0x09fb, B:414:0x0a0b, B:422:0x0a5e, B:424:0x0a66, B:426:0x0a6a, B:428:0x0a6e, B:430:0x0a72, B:434:0x0a87, B:436:0x0aa5, B:437:0x0aae, B:444:0x0ad6, B:467:0x0999, B:469:0x099d, B:471:0x09a5, B:473:0x09a9, B:398:0x09b3, B:501:0x0130, B:517:0x01c1, B:532:0x01f6, B:528:0x0216, B:543:0x0263, B:560:0x0235, B:585:0x00e2, B:504:0x0143), top: B:2:0x000b, inners: #14 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:548:0x0d91 A[Catch: all -> 0x0d95, TRY_ENTER, TryCatch #9 {all -> 0x0d95, blocks: (B:308:0x0c0a, B:309:0x0c80, B:311:0x0c85, B:313:0x0c98, B:316:0x0c9d, B:317:0x0ccc, B:318:0x0ca2, B:320:0x0cac, B:321:0x0cb5, B:322:0x0cd5, B:323:0x0cec, B:326:0x0cf4, B:328:0x0cf9, B:331:0x0d09, B:333:0x0d23, B:334:0x0d3c, B:336:0x0d44, B:337:0x0d66, B:344:0x0d55, B:345:0x0c22, B:347:0x0c29, B:349:0x0c33, B:350:0x0c39, B:355:0x0c4b, B:356:0x0c51, B:488:0x0d7b, B:548:0x0d91, B:549:0x0d94), top: B:5:0x0025, inners: #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:550:? A[Catch: all -> 0x0d95, SYNTHETIC, TRY_LEAVE, TryCatch #9 {all -> 0x0d95, blocks: (B:308:0x0c0a, B:309:0x0c80, B:311:0x0c85, B:313:0x0c98, B:316:0x0c9d, B:317:0x0ccc, B:318:0x0ca2, B:320:0x0cac, B:321:0x0cb5, B:322:0x0cd5, B:323:0x0cec, B:326:0x0cf4, B:328:0x0cf9, B:331:0x0d09, B:333:0x0d23, B:334:0x0d3c, B:336:0x0d44, B:337:0x0d66, B:344:0x0d55, B:345:0x0c22, B:347:0x0c29, B:349:0x0c33, B:350:0x0c39, B:355:0x0c4b, B:356:0x0c51, B:488:0x0d7b, B:548:0x0d91, B:549:0x0d94), top: B:5:0x0025, inners: #2 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:59:0x039d */
|
|
/* JADX WARN: Removed duplicated region for block: B:65:0x03a8 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
private final boolean a(java.lang.String r43, long r44) {
|
|
/*
|
|
Method dump skipped, instructions count: 3490
|
|
To view this dump change 'Code comments level' option to 'DEBUG'
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfo.a(java.lang.String, long):boolean");
|
|
}
|
|
|
|
private final Boolean b(zzg zzgVar) {
|
|
try {
|
|
if (zzgVar.l() != -2147483648L) {
|
|
if (zzgVar.l() == Wrappers.a(this.i.b()).b(zzgVar.f(), 0).versionCode) {
|
|
return true;
|
|
}
|
|
} else {
|
|
String str = Wrappers.a(this.i.b()).b(zzgVar.f(), 0).versionName;
|
|
if (zzgVar.e() != null && zzgVar.e().equals(str)) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
} catch (PackageManager.NameNotFoundException unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
final void b(zzfv zzfvVar, zzk zzkVar) {
|
|
t();
|
|
o();
|
|
if (TextUtils.isEmpty(zzkVar.zzafi) && TextUtils.isEmpty(zzkVar.zzafv)) {
|
|
return;
|
|
}
|
|
if (!zzkVar.zzafr) {
|
|
e(zzkVar);
|
|
return;
|
|
}
|
|
this.i.e().A().a("Removing user property", this.i.r().c(zzfvVar.name));
|
|
l().u();
|
|
try {
|
|
e(zzkVar);
|
|
l().c(zzkVar.packageName, zzfvVar.name);
|
|
l().x();
|
|
this.i.e().A().a("User property removed", this.i.r().c(zzfvVar.name));
|
|
} finally {
|
|
l().v();
|
|
}
|
|
}
|
|
|
|
final void b(zzo zzoVar) {
|
|
zzk a = a(zzoVar.packageName);
|
|
if (a != null) {
|
|
b(zzoVar, a);
|
|
}
|
|
}
|
|
|
|
final void b(zzo zzoVar, zzk zzkVar) {
|
|
Preconditions.a(zzoVar);
|
|
Preconditions.b(zzoVar.packageName);
|
|
Preconditions.a(zzoVar.zzags);
|
|
Preconditions.b(zzoVar.zzags.name);
|
|
t();
|
|
o();
|
|
if (TextUtils.isEmpty(zzkVar.zzafi) && TextUtils.isEmpty(zzkVar.zzafv)) {
|
|
return;
|
|
}
|
|
if (!zzkVar.zzafr) {
|
|
e(zzkVar);
|
|
return;
|
|
}
|
|
l().u();
|
|
try {
|
|
e(zzkVar);
|
|
zzo e = l().e(zzoVar.packageName, zzoVar.zzags.name);
|
|
if (e != null) {
|
|
this.i.e().A().a("Removing conditional user property", zzoVar.packageName, this.i.r().c(zzoVar.zzags.name));
|
|
l().f(zzoVar.packageName, zzoVar.zzags.name);
|
|
if (e.active) {
|
|
l().c(zzoVar.packageName, zzoVar.zzags.name);
|
|
}
|
|
if (zzoVar.zzagv != null) {
|
|
b(this.i.s().a(zzoVar.packageName, zzoVar.zzagv.name, zzoVar.zzagv.zzahu != null ? zzoVar.zzagv.zzahu.zziy() : null, e.origin, zzoVar.zzagv.zzaig, true, false), zzkVar);
|
|
}
|
|
} else {
|
|
this.i.e().w().a("Conditional user property doesn't exist", zzas.a(zzoVar.packageName), this.i.r().c(zzoVar.zzags.name));
|
|
}
|
|
l().x();
|
|
} finally {
|
|
l().v();
|
|
}
|
|
}
|
|
|
|
private final boolean a(com.google.android.gms.internal.measurement.zzft zzftVar, com.google.android.gms.internal.measurement.zzft zzftVar2) {
|
|
Long l;
|
|
Preconditions.a("_e".equals(zzftVar.d));
|
|
j();
|
|
com.google.android.gms.internal.measurement.zzfu a = zzfu.a(zzftVar, "_sc");
|
|
String str = a == null ? null : a.d;
|
|
j();
|
|
com.google.android.gms.internal.measurement.zzfu a2 = zzfu.a(zzftVar2, "_pc");
|
|
String str2 = a2 != null ? a2.d : null;
|
|
if (str2 == null || !str2.equals(str)) {
|
|
return false;
|
|
}
|
|
j();
|
|
com.google.android.gms.internal.measurement.zzfu a3 = zzfu.a(zzftVar, "_et");
|
|
Long l2 = a3.e;
|
|
if (l2 != null && l2.longValue() > 0) {
|
|
long longValue = a3.e.longValue();
|
|
j();
|
|
com.google.android.gms.internal.measurement.zzfu a4 = zzfu.a(zzftVar2, "_et");
|
|
if (a4 != null && (l = a4.e) != null && l.longValue() > 0) {
|
|
longValue += a4.e.longValue();
|
|
}
|
|
j();
|
|
zzftVar2.c = zzfu.a(zzftVar2.c, "_et", Long.valueOf(longValue));
|
|
j();
|
|
zzftVar.c = zzfu.a(zzftVar.c, "_fr", (Object) 1L);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
private static com.google.android.gms.internal.measurement.zzfu[] a(com.google.android.gms.internal.measurement.zzfu[] zzfuVarArr, String str) {
|
|
int i = 0;
|
|
while (true) {
|
|
if (i >= zzfuVarArr.length) {
|
|
i = -1;
|
|
break;
|
|
}
|
|
if (str.equals(zzfuVarArr[i].c)) {
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
return i < 0 ? zzfuVarArr : a(zzfuVarArr, i);
|
|
}
|
|
|
|
private static com.google.android.gms.internal.measurement.zzfu[] a(com.google.android.gms.internal.measurement.zzfu[] zzfuVarArr, int i) {
|
|
com.google.android.gms.internal.measurement.zzfu[] zzfuVarArr2 = new com.google.android.gms.internal.measurement.zzfu[zzfuVarArr.length - 1];
|
|
if (i > 0) {
|
|
System.arraycopy(zzfuVarArr, 0, zzfuVarArr2, 0, i);
|
|
}
|
|
if (i < zzfuVarArr2.length) {
|
|
System.arraycopy(zzfuVarArr, i + 1, zzfuVarArr2, i, zzfuVarArr2.length - i);
|
|
}
|
|
return zzfuVarArr2;
|
|
}
|
|
|
|
private static com.google.android.gms.internal.measurement.zzfu[] a(com.google.android.gms.internal.measurement.zzfu[] zzfuVarArr, int i, String str) {
|
|
for (com.google.android.gms.internal.measurement.zzfu zzfuVar : zzfuVarArr) {
|
|
if ("_err".equals(zzfuVar.c)) {
|
|
return zzfuVarArr;
|
|
}
|
|
}
|
|
com.google.android.gms.internal.measurement.zzfu[] zzfuVarArr2 = new com.google.android.gms.internal.measurement.zzfu[zzfuVarArr.length + 2];
|
|
System.arraycopy(zzfuVarArr, 0, zzfuVarArr2, 0, zzfuVarArr.length);
|
|
com.google.android.gms.internal.measurement.zzfu zzfuVar2 = new com.google.android.gms.internal.measurement.zzfu();
|
|
zzfuVar2.c = "_err";
|
|
zzfuVar2.e = Long.valueOf(i);
|
|
com.google.android.gms.internal.measurement.zzfu zzfuVar3 = new com.google.android.gms.internal.measurement.zzfu();
|
|
zzfuVar3.c = "_ev";
|
|
zzfuVar3.d = str;
|
|
zzfuVarArr2[zzfuVarArr2.length - 2] = zzfuVar2;
|
|
zzfuVarArr2[zzfuVarArr2.length - 1] = zzfuVar3;
|
|
return zzfuVarArr2;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0158, code lost:
|
|
|
|
r9.i.t().g.a(r9.i.d().a());
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
final void a(int r10, java.lang.Throwable r11, byte[] r12, java.lang.String r13) {
|
|
/*
|
|
Method dump skipped, instructions count: 400
|
|
To view this dump change 'Code comments level' option to 'DEBUG'
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfo.a(int, java.lang.Throwable, byte[], java.lang.String):void");
|
|
}
|
|
|
|
private final void a(zzg zzgVar) {
|
|
ArrayMap arrayMap;
|
|
t();
|
|
if (TextUtils.isEmpty(zzgVar.c()) && (!zzq.x() || TextUtils.isEmpty(zzgVar.h()))) {
|
|
a(zzgVar.f(), 204, null, null, null);
|
|
return;
|
|
}
|
|
zzq u = this.i.u();
|
|
Uri.Builder builder = new Uri.Builder();
|
|
String c = zzgVar.c();
|
|
if (TextUtils.isEmpty(c) && zzq.x()) {
|
|
c = zzgVar.h();
|
|
}
|
|
Uri.Builder encodedAuthority = builder.scheme(zzai.o.a()).encodedAuthority(zzai.p.a());
|
|
String valueOf = String.valueOf(c);
|
|
encodedAuthority.path(valueOf.length() != 0 ? "config/app/".concat(valueOf) : new String("config/app/")).appendQueryParameter("app_instance_id", zzgVar.a()).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", String.valueOf(u.o()));
|
|
String uri = builder.build().toString();
|
|
try {
|
|
URL url = new URL(uri);
|
|
this.i.e().B().a("Fetching remote configuration", zzgVar.f());
|
|
com.google.android.gms.internal.measurement.zzfp a = u().a(zzgVar.f());
|
|
String b = u().b(zzgVar.f());
|
|
if (a == null || TextUtils.isEmpty(b)) {
|
|
arrayMap = null;
|
|
} else {
|
|
ArrayMap arrayMap2 = new ArrayMap();
|
|
arrayMap2.put("If-Modified-Since", b);
|
|
arrayMap = arrayMap2;
|
|
}
|
|
this.q = true;
|
|
zzaw m = m();
|
|
String f = zzgVar.f();
|
|
zzfr zzfrVar = new zzfr(this);
|
|
m.f();
|
|
m.r();
|
|
Preconditions.a(url);
|
|
Preconditions.a(zzfrVar);
|
|
m.a().b(new zzba(m, f, url, null, arrayMap, zzfrVar));
|
|
} catch (MalformedURLException unused) {
|
|
this.i.e().t().a("Failed to parse config URL. Not fetching. appId", zzas.a(zzgVar.f()), uri);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:30:0x00b0, code lost:
|
|
|
|
r6.i.t().g.a(r6.i.d().a());
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:49:0x013a A[Catch: all -> 0x018d, TryCatch #1 {all -> 0x018d, blocks: (B:5:0x0029, B:12:0x0045, B:13:0x0179, B:23:0x0061, B:30:0x00b0, B:31:0x00c5, B:34:0x00cd, B:36:0x00d9, B:38:0x00df, B:42:0x00ec, B:47:0x0124, B:49:0x013a, B:50:0x0162, B:52:0x016c, B:54:0x0172, B:55:0x0176, B:56:0x014a, B:57:0x0103, B:59:0x010d), top: B:4:0x0029, outer: #0 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:56:0x014a A[Catch: all -> 0x018d, TryCatch #1 {all -> 0x018d, blocks: (B:5:0x0029, B:12:0x0045, B:13:0x0179, B:23:0x0061, B:30:0x00b0, B:31:0x00c5, B:34:0x00cd, B:36:0x00d9, B:38:0x00df, B:42:0x00ec, B:47:0x0124, B:49:0x013a, B:50:0x0162, B:52:0x016c, B:54:0x0172, B:55:0x0176, B:56:0x014a, B:57:0x0103, B:59:0x010d), top: B:4:0x0029, outer: #0 }] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
final void a(java.lang.String r7, int r8, java.lang.Throwable r9, byte[] r10, java.util.Map<java.lang.String, java.util.List<java.lang.String>> r11) {
|
|
/*
|
|
Method dump skipped, instructions count: 413
|
|
To view this dump change 'Code comments level' option to 'DEBUG'
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfo.a(java.lang.String, int, java.lang.Throwable, byte[], java.util.Map):void");
|
|
}
|
|
|
|
final void a(Runnable runnable) {
|
|
t();
|
|
if (this.n == null) {
|
|
this.n = new ArrayList();
|
|
}
|
|
this.n.add(runnable);
|
|
}
|
|
|
|
private final int a(FileChannel fileChannel) {
|
|
t();
|
|
if (fileChannel != null && fileChannel.isOpen()) {
|
|
ByteBuffer allocate = ByteBuffer.allocate(4);
|
|
try {
|
|
fileChannel.position(0L);
|
|
int read = fileChannel.read(allocate);
|
|
if (read == 4) {
|
|
allocate.flip();
|
|
return allocate.getInt();
|
|
}
|
|
if (read != -1) {
|
|
this.i.e().w().a("Unexpected data length. Bytes read", Integer.valueOf(read));
|
|
}
|
|
return 0;
|
|
} catch (IOException e) {
|
|
this.i.e().t().a("Failed to read from channel", e);
|
|
return 0;
|
|
}
|
|
}
|
|
this.i.e().t().a("Bad channel to read from");
|
|
return 0;
|
|
}
|
|
|
|
private final boolean a(int i, FileChannel fileChannel) {
|
|
t();
|
|
if (fileChannel != null && fileChannel.isOpen()) {
|
|
ByteBuffer allocate = ByteBuffer.allocate(4);
|
|
allocate.putInt(i);
|
|
allocate.flip();
|
|
try {
|
|
fileChannel.truncate(0L);
|
|
fileChannel.write(allocate);
|
|
fileChannel.force(true);
|
|
if (fileChannel.size() != 4) {
|
|
this.i.e().t().a("Error writing to channel. Bytes written", Long.valueOf(fileChannel.size()));
|
|
}
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.i.e().t().a("Failed to write to channel", e);
|
|
return false;
|
|
}
|
|
}
|
|
this.i.e().t().a("Bad channel to read from");
|
|
return false;
|
|
}
|
|
|
|
final void a(zzk zzkVar) {
|
|
if (this.v != null) {
|
|
this.w = new ArrayList();
|
|
this.w.addAll(this.v);
|
|
}
|
|
zzt l = l();
|
|
String str = zzkVar.packageName;
|
|
Preconditions.b(str);
|
|
l.f();
|
|
l.r();
|
|
try {
|
|
SQLiteDatabase w = l.w();
|
|
String[] strArr = {str};
|
|
int delete = w.delete("apps", "app_id=?", strArr) + 0 + w.delete("events", "app_id=?", strArr) + w.delete("user_attributes", "app_id=?", strArr) + w.delete("conditional_properties", "app_id=?", strArr) + w.delete("raw_events", "app_id=?", strArr) + w.delete("raw_events_metadata", "app_id=?", strArr) + w.delete("queue", "app_id=?", strArr) + w.delete("audience_filter_values", "app_id=?", strArr) + w.delete("main_event_params", "app_id=?", strArr);
|
|
if (delete > 0) {
|
|
l.e().B().a("Reset analytics data. app, records", str, Integer.valueOf(delete));
|
|
}
|
|
} catch (SQLiteException e) {
|
|
l.e().t().a("Error resetting analytics data. appId, error", zzas.a(str), e);
|
|
}
|
|
zzk a = a(this.i.b(), zzkVar.packageName, zzkVar.zzafi, zzkVar.zzafr, zzkVar.zzaft, zzkVar.zzafu, zzkVar.zzago, zzkVar.zzafv);
|
|
if (!this.i.u().i(zzkVar.packageName) || zzkVar.zzafr) {
|
|
c(a);
|
|
}
|
|
}
|
|
|
|
private final zzk a(Context context, String str, String str2, boolean z, boolean z2, boolean z3, long j, String str3) {
|
|
String str4;
|
|
int i;
|
|
String str5;
|
|
PackageManager packageManager = context.getPackageManager();
|
|
if (packageManager == null) {
|
|
this.i.e().t().a("PackageManager is null, can not log app install information");
|
|
return null;
|
|
}
|
|
try {
|
|
str4 = packageManager.getInstallerPackageName(str);
|
|
} catch (IllegalArgumentException unused) {
|
|
this.i.e().t().a("Error retrieving installer package name. appId", zzas.a(str));
|
|
str4 = "Unknown";
|
|
}
|
|
if (str4 == null) {
|
|
str4 = "manual_install";
|
|
} else if ("com.android.vending".equals(str4)) {
|
|
str4 = "";
|
|
}
|
|
String str6 = str4;
|
|
try {
|
|
PackageInfo b = Wrappers.a(context).b(str, 0);
|
|
if (b != null) {
|
|
CharSequence b2 = Wrappers.a(context).b(str);
|
|
if (!TextUtils.isEmpty(b2)) {
|
|
b2.toString();
|
|
}
|
|
String str7 = b.versionName;
|
|
i = b.versionCode;
|
|
str5 = str7;
|
|
} else {
|
|
i = Integer.MIN_VALUE;
|
|
str5 = "Unknown";
|
|
}
|
|
this.i.c();
|
|
return new zzk(str, str2, str5, i, str6, this.i.u().o(), this.i.s().a(context, str), (String) null, z, false, "", 0L, this.i.u().k(str) ? j : 0L, 0, z2, z3, false, str3);
|
|
} catch (PackageManager.NameNotFoundException unused2) {
|
|
this.i.e().t().a("Error retrieving newly installed package info. appId, appName", zzas.a(str), "Unknown");
|
|
return null;
|
|
}
|
|
}
|
|
|
|
final void a(zzfv zzfvVar, zzk zzkVar) {
|
|
t();
|
|
o();
|
|
if (TextUtils.isEmpty(zzkVar.zzafi) && TextUtils.isEmpty(zzkVar.zzafv)) {
|
|
return;
|
|
}
|
|
if (!zzkVar.zzafr) {
|
|
e(zzkVar);
|
|
return;
|
|
}
|
|
int b = this.i.s().b(zzfvVar.name);
|
|
if (b != 0) {
|
|
this.i.s();
|
|
String a = zzfy.a(zzfvVar.name, 24, true);
|
|
String str = zzfvVar.name;
|
|
this.i.s().a(zzkVar.packageName, b, "_ev", a, str != null ? str.length() : 0);
|
|
return;
|
|
}
|
|
int b2 = this.i.s().b(zzfvVar.name, zzfvVar.getValue());
|
|
if (b2 != 0) {
|
|
this.i.s();
|
|
String a2 = zzfy.a(zzfvVar.name, 24, true);
|
|
Object value = zzfvVar.getValue();
|
|
this.i.s().a(zzkVar.packageName, b2, "_ev", a2, (value == null || !((value instanceof String) || (value instanceof CharSequence))) ? 0 : String.valueOf(value).length());
|
|
return;
|
|
}
|
|
Object c = this.i.s().c(zzfvVar.name, zzfvVar.getValue());
|
|
if (c == null) {
|
|
return;
|
|
}
|
|
if (this.i.u().p(zzkVar.packageName) && "_sno".equals(zzfvVar.name)) {
|
|
long j = 0;
|
|
zzfx d = l().d(zzkVar.packageName, "_sno");
|
|
if (d != null) {
|
|
Object obj = d.e;
|
|
if (obj instanceof Long) {
|
|
j = ((Long) obj).longValue();
|
|
c = Long.valueOf(j + 1);
|
|
}
|
|
}
|
|
zzac b3 = l().b(zzkVar.packageName, "_s");
|
|
if (b3 != null) {
|
|
j = b3.c;
|
|
this.i.e().B().a("Backfill the session number. Last used session number", Long.valueOf(j));
|
|
}
|
|
c = Long.valueOf(j + 1);
|
|
}
|
|
zzfx zzfxVar = new zzfx(zzkVar.packageName, zzfvVar.origin, zzfvVar.name, zzfvVar.zzauk, c);
|
|
this.i.e().A().a("Setting user property", this.i.r().c(zzfxVar.c), c);
|
|
l().u();
|
|
try {
|
|
e(zzkVar);
|
|
boolean a3 = l().a(zzfxVar);
|
|
l().x();
|
|
if (a3) {
|
|
this.i.e().A().a("User property set", this.i.r().c(zzfxVar.c), zzfxVar.e);
|
|
} else {
|
|
this.i.e().t().a("Too many unique user properties are set. Ignoring user property", this.i.r().c(zzfxVar.c), zzfxVar.e);
|
|
this.i.s().a(zzkVar.packageName, 9, (String) null, (String) null, 0);
|
|
}
|
|
} finally {
|
|
l().v();
|
|
}
|
|
}
|
|
|
|
final void a(zzfn zzfnVar) {
|
|
this.o++;
|
|
}
|
|
|
|
private final zzk a(String str) {
|
|
zzg b = l().b(str);
|
|
if (b != null && !TextUtils.isEmpty(b.e())) {
|
|
Boolean b2 = b(b);
|
|
if (b2 != null && !b2.booleanValue()) {
|
|
this.i.e().t().a("App version does not match; dropping. appId", zzas.a(str));
|
|
return null;
|
|
}
|
|
return new zzk(str, b.c(), b.e(), b.l(), b.m(), b.n(), b.o(), (String) null, b.d(), false, b.b(), b.B(), 0L, 0, b.C(), b.D(), false, b.h());
|
|
}
|
|
this.i.e().A().a("No app data available; dropping", str);
|
|
return null;
|
|
}
|
|
|
|
final void a(zzo zzoVar) {
|
|
zzk a = a(zzoVar.packageName);
|
|
if (a != null) {
|
|
a(zzoVar, a);
|
|
}
|
|
}
|
|
|
|
final void a(zzo zzoVar, zzk zzkVar) {
|
|
Preconditions.a(zzoVar);
|
|
Preconditions.b(zzoVar.packageName);
|
|
Preconditions.a(zzoVar.origin);
|
|
Preconditions.a(zzoVar.zzags);
|
|
Preconditions.b(zzoVar.zzags.name);
|
|
t();
|
|
o();
|
|
if (TextUtils.isEmpty(zzkVar.zzafi) && TextUtils.isEmpty(zzkVar.zzafv)) {
|
|
return;
|
|
}
|
|
if (!zzkVar.zzafr) {
|
|
e(zzkVar);
|
|
return;
|
|
}
|
|
zzo zzoVar2 = new zzo(zzoVar);
|
|
boolean z = false;
|
|
zzoVar2.active = false;
|
|
l().u();
|
|
try {
|
|
zzo e = l().e(zzoVar2.packageName, zzoVar2.zzags.name);
|
|
if (e != null && !e.origin.equals(zzoVar2.origin)) {
|
|
this.i.e().w().a("Updating a conditional user property with different origin. name, origin, origin (from DB)", this.i.r().c(zzoVar2.zzags.name), zzoVar2.origin, e.origin);
|
|
}
|
|
if (e != null && e.active) {
|
|
zzoVar2.origin = e.origin;
|
|
zzoVar2.creationTimestamp = e.creationTimestamp;
|
|
zzoVar2.triggerTimeout = e.triggerTimeout;
|
|
zzoVar2.triggerEventName = e.triggerEventName;
|
|
zzoVar2.zzagu = e.zzagu;
|
|
zzoVar2.active = e.active;
|
|
zzoVar2.zzags = new zzfv(zzoVar2.zzags.name, e.zzags.zzauk, zzoVar2.zzags.getValue(), e.zzags.origin);
|
|
} else if (TextUtils.isEmpty(zzoVar2.triggerEventName)) {
|
|
zzoVar2.zzags = new zzfv(zzoVar2.zzags.name, zzoVar2.creationTimestamp, zzoVar2.zzags.getValue(), zzoVar2.zzags.origin);
|
|
zzoVar2.active = true;
|
|
z = true;
|
|
}
|
|
if (zzoVar2.active) {
|
|
zzfv zzfvVar = zzoVar2.zzags;
|
|
zzfx zzfxVar = new zzfx(zzoVar2.packageName, zzoVar2.origin, zzfvVar.name, zzfvVar.zzauk, zzfvVar.getValue());
|
|
if (l().a(zzfxVar)) {
|
|
this.i.e().A().a("User property updated immediately", zzoVar2.packageName, this.i.r().c(zzfxVar.c), zzfxVar.e);
|
|
} else {
|
|
this.i.e().t().a("(2)Too many active user properties, ignoring", zzas.a(zzoVar2.packageName), this.i.r().c(zzfxVar.c), zzfxVar.e);
|
|
}
|
|
if (z && zzoVar2.zzagu != null) {
|
|
b(new zzag(zzoVar2.zzagu, zzoVar2.creationTimestamp), zzkVar);
|
|
}
|
|
}
|
|
if (l().a(zzoVar2)) {
|
|
this.i.e().A().a("Conditional property added", zzoVar2.packageName, this.i.r().c(zzoVar2.zzags.name), zzoVar2.zzags.getValue());
|
|
} else {
|
|
this.i.e().t().a("Too many conditional properties, ignoring", zzas.a(zzoVar2.packageName), this.i.r().c(zzoVar2.zzags.name), zzoVar2.zzags.getValue());
|
|
}
|
|
l().x();
|
|
} finally {
|
|
l().v();
|
|
}
|
|
}
|
|
|
|
final void a(boolean z) {
|
|
z();
|
|
}
|
|
}
|