Call Recorder v6.34.2版本的 MD5 值为:298659ce317c966b10d9947b76831521
以下内容为反编译后的 r0.java 源代码,内容仅作参考
package j4;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import com.google.android.gms.dynamite.DynamiteModule;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public final class r0 {
private static volatile r0 f24093j;
private final String f24094a;
protected final a4.d f24095b;
protected final ExecutorService f24096c;
private final l4.a f24097d;
private final List f24098e;
private int f24099f;
private boolean f24100g;
private final String f24101h;
private volatile k f24102i;
protected r0(Context context, String str, String str2, String str3, Bundle bundle) {
if (str != null && l(str2, str3)) {
this.f24094a = str;
} else {
this.f24094a = "FA";
}
this.f24095b = a4.g.d();
g.a();
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(), new e0(this));
threadPoolExecutor.allowCoreThreadTimeOut(true);
this.f24096c = Executors.unconfigurableExecutorService(threadPoolExecutor);
this.f24097d = new l4.a(this);
this.f24098e = new ArrayList();
try {
if (m4.b.a(context, "google_app_id", m4.a.a(context)) != null && !h()) {
this.f24101h = null;
this.f24100g = true;
Log.w(this.f24094a, "Disabling data collection. Found google_app_id in strings.xml but Google Analytics for Firebase is missing. Remove this value or add Google Analytics for Firebase to resume data collection.");
return;
}
} catch (IllegalStateException unused) {
}
if (l(str2, str3)) {
this.f24101h = str2;
} else {
this.f24101h = "fa";
if (str2 == null || str3 == null) {
if ((str2 == null) ^ (str3 == null)) {
Log.w(this.f24094a, "Specified origin or custom app id is null. Both parameters will be ignored.");
}
} else {
Log.v(this.f24094a, "Deferring to Google Analytics for Firebase for event data collection. https://goo.gl/J1sWQy");
}
}
k(new t(this, str2, str3, context, bundle));
Application application = (Application) context.getApplicationContext();
if (application == null) {
Log.w(this.f24094a, "Unable to register lifecycle notifications. Application null.");
} else {
application.registerActivityLifecycleCallbacks(new q0(this));
}
}
protected static final boolean h() {
try {
Class.forName("com.google.firebase.analytics.FirebaseAnalytics");
return true;
} catch (ClassNotFoundException unused) {
return false;
}
}
public final void i(Exception exc, boolean z8, boolean z9) {
this.f24100g |= z8;
if (z8) {
Log.w(this.f24094a, "Data collection startup failed. No data will be collected.", exc);
return;
}
if (z9) {
a(5, "Error with data collection. Data lost.", exc, null, null);
}
Log.w(this.f24094a, "Error with data collection. Data lost.", exc);
}
private final void j(String str, String str2, Bundle bundle, boolean z8, boolean z9, Long l9) {
k(new g0(this, l9, str, str2, bundle, z8, z9));
}
public final void k(i0 i0Var) {
this.f24096c.execute(i0Var);
}
public static final boolean l(String str, String str2) {
return (str2 == null || str == null || h()) ? false : true;
}
public static r0 s(Context context, String str, String str2, String str3, Bundle bundle) {
v3.i.j(context);
if (f24093j == null) {
synchronized (r0.class) {
if (f24093j == null) {
f24093j = new r0(context, str, str2, str3, bundle);
}
}
}
return f24093j;
}
public final Map A(String str, String str2, boolean z8) {
h hVar = new h();
k(new b0(this, str, str2, z8, hVar));
Bundle S = hVar.S(5000L);
if (S != null && S.size() != 0) {
HashMap hashMap = new HashMap(S.size());
for (String str3 : S.keySet()) {
Object obj = S.get(str3);
if ((obj instanceof Double) || (obj instanceof Long) || (obj instanceof String)) {
hashMap.put(str3, obj);
}
}
return hashMap;
}
return Collections.emptyMap();
}
public final void E(String str) {
k(new u(this, str));
}
public final void F(String str, String str2, Bundle bundle) {
k(new p(this, str, str2, bundle));
}
public final void G(String str) {
k(new v(this, str));
}
public final void H(String str, String str2, Bundle bundle) {
j(str, str2, bundle, true, true, null);
}
public final void a(int i9, String str, Object obj, Object obj2, Object obj3) {
k(new c0(this, false, 5, str, obj, null, null));
}
public final void b(Bundle bundle) {
k(new o(this, bundle));
}
public final void c(Bundle bundle) {
k(new s(this, bundle));
}
public final void d(Activity activity, String str, String str2) {
k(new r(this, activity, str, str2));
}
public final void e(String str, String str2, Object obj, boolean z8) {
k(new h0(this, str, str2, obj, z8));
}
public final int m(String str) {
h hVar = new h();
k(new f0(this, str, hVar));
Integer num = (Integer) h.V3(hVar.S(10000L), Integer.class);
if (num == null) {
return 25;
}
return num.intValue();
}
public final long n() {
h hVar = new h();
k(new y(this, hVar));
Long l9 = (Long) h.V3(hVar.S(500L), Long.class);
if (l9 == null) {
long nextLong = new Random(System.nanoTime() ^ this.f24095b.a()).nextLong();
int i9 = this.f24099f + 1;
this.f24099f = i9;
return nextLong + i9;
}
return l9.longValue();
}
public final Bundle o(Bundle bundle, boolean z8) {
h hVar = new h();
k(new d0(this, bundle, hVar));
if (z8) {
return hVar.S(5000L);
}
return null;
}
public final l4.a p() {
return this.f24097d;
}
public final k r(Context context, boolean z8) {
try {
return j.S(DynamiteModule.e(context, DynamiteModule.f7323e, "com.google.android.gms.measurement.dynamite").d("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService"));
} catch (DynamiteModule.a e9) {
i(e9, true, false);
return null;
}
}
public final String u() {
return this.f24101h;
}
public final String v() {
h hVar = new h();
k(new x(this, hVar));
return hVar.T(50L);
}
public final String w() {
h hVar = new h();
k(new a0(this, hVar));
return hVar.T(500L);
}
public final String x() {
h hVar = new h();
k(new z(this, hVar));
return hVar.T(500L);
}
public final String y() {
h hVar = new h();
k(new w(this, hVar));
return hVar.T(500L);
}
public final List z(String str, String str2) {
h hVar = new h();
k(new q(this, str, str2, hVar));
List list = (List) h.V3(hVar.S(5000L), List.class);
return list == null ? Collections.emptyList() : list;
}
}