正在查看: BetterTogether v3.0.0 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package i8;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import android.util.Log;
import b0.p0;
import com.airbnb.lottie.LottieAnimationView;
import com.google.protobuf.f1;
import com.google.protobuf.h0;
import com.google.protobuf.j0;
import com.google.protobuf.k;
import com.google.protobuf.q1;
import io.sentry.f3;
import io.sentry.i0;
import io.sentry.i2;
import io.sentry.z1;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Queue;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import pl.c1;
public final class f implements Callable {
public final int f8964d;
public final Object f8965e;
public final Object f8966i;
public f(int i10, Object obj, Object obj2) {
this.f8964d = i10;
this.f8966i = obj;
this.f8965e = obj2;
}
private final void a() {
dn.c cVar = (dn.c) this.f8966i;
dn.d dVar = (dn.d) this.f8965e;
dn.m mVar = cVar.b;
synchronized (mVar) {
FileOutputStream openFileOutput = mVar.a.openFileOutput(mVar.b, 0);
try {
openFileOutput.write(dVar.toString().getBytes("UTF-8"));
} finally {
openFileOutput.close();
}
}
}
@Override
public final Object call() {
k lVar;
ServiceInfo serviceInfo;
String str;
int i10;
ComponentName startService;
ByteArrayOutputStream byteArrayOutputStream;
BufferedWriter bufferedWriter;
String str2 = null;
switch (this.f8964d) {
case 0:
LottieAnimationView lottieAnimationView = (LottieAnimationView) this.f8966i;
String str3 = (String) this.f8965e;
if (!lottieAnimationView.R) {
return n.b(lottieAnimationView.getContext(), str3, null);
}
Context context = lottieAnimationView.getContext();
HashMap hashMap = n.f9001a;
return n.b(context, str3, "asset_" + str3);
case 1:
return n.c((String) this.f8965e, (InputStream) this.f8966i);
case 2:
me.p pVar = (me.p) this.f8966i;
Context context2 = (Context) this.f8965e;
Intrinsics.checkNotNullParameter(pVar, "this$0");
Intrinsics.checkNotNullParameter(context2, "$context");
pVar.h.a();
((ld.b) pVar.i).a();
return Unit.f12192a;
case 3:
ze.g gVar = (ze.g) this.f8966i;
Context context3 = (Context) this.f8965e;
Intrinsics.checkNotNullParameter(gVar, "this$0");
Intrinsics.checkNotNullParameter(context3, "$context");
gVar.e.a();
((ld.b) gVar.f).a();
return Unit.f12192a;
case 4:
y8.k kVar = (y8.k) this.f8966i;
Callable callable = (Callable) this.f8965e;
Intrinsics.checkNotNullParameter(kVar, "this$0");
Intrinsics.checkNotNullParameter(callable, "$callable");
try {
kVar.e = callable.call();
return null;
} finally {
CountDownLatch countDownLatch = (CountDownLatch) kVar.i;
if (countDownLatch != null) {
countDownLatch.countDown();
}
}
case 5:
pm.f0 f0Var = (pm.f0) this.f8966i;
com.google.protobuf.a0 a0Var = (f1) this.f8965e;
synchronized (f0Var) {
try {
FileInputStream openFileInput = f0Var.a.openFileInput(f0Var.b);
try {
com.google.protobuf.a0 a0Var2 = a0Var;
a0Var2.getClass();
if (openFileInput == null) {
byte[] bArr = h0.b;
lVar = com.google.protobuf.m.d(bArr, 0, bArr.length, false);
} else {
lVar = new com.google.protobuf.l(openFileInput);
}
com.google.protobuf.c0 a10 = a0Var2.a(lVar, com.google.protobuf.a0.b);
lVar.a(0);
if (!com.google.protobuf.c0.k(a10, true)) {
throw new j0(new q1().getMessage());
}
if (openFileInput != null) {
openFileInput.close();
}
return a10;
} catch (Throwable th2) {
if (openFileInput != null) {
try {
openFileInput.close();
} catch (Throwable th3) {
th2.addSuppressed(th3);
}
}
throw th2;
}
} catch (FileNotFoundException | j0 e10) {
c1.x("Recoverable exception while reading cache: " + e10.getMessage());
return null;
}
}
case 6:
pm.f0 f0Var2 = (pm.f0) this.f8966i;
com.google.protobuf.a aVar = (com.google.protobuf.a) this.f8965e;
synchronized (f0Var2) {
FileOutputStream openFileOutput = f0Var2.a.openFileOutput(f0Var2.b, 0);
try {
openFileOutput.write(aVar.b());
openFileOutput.close();
} finally {
}
}
return aVar;
case 7:
Context context4 = (Context) this.f8966i;
Intent intent = (Intent) this.f8965e;
Object obj = com.google.firebase.messaging.i.c;
com.google.firebase.messaging.q i11 = com.google.firebase.messaging.q.i();
i11.getClass();
if (Log.isLoggable("FirebaseMessaging", 3)) {
Log.d("FirebaseMessaging", "Starting service");
}
((Queue) i11.v).offer(intent);
Intent intent2 = new Intent("com.google.firebase.MESSAGING_EVENT");
intent2.setPackage(context4.getPackageName());
synchronized (i11) {
Object obj2 = i11.d;
if (((String) obj2) != null) {
str2 = (String) obj2;
} else {
ResolveInfo resolveService = context4.getPackageManager().resolveService(intent2, 0);
if (resolveService != null && (serviceInfo = resolveService.serviceInfo) != null) {
if (context4.getPackageName().equals(serviceInfo.packageName) && (str = serviceInfo.name) != null) {
if (str.startsWith(".")) {
i11.d = context4.getPackageName() + serviceInfo.name;
} else {
i11.d = serviceInfo.name;
}
str2 = (String) i11.d;
}
Log.e("FirebaseMessaging", "Error resolving target intent service, skipping classname enforcement. Resolved service was: " + serviceInfo.packageName + "/" + serviceInfo.name);
}
Log.e("FirebaseMessaging", "Failed to resolve target intent service, skipping classname enforcement");
}
}
if (str2 != null) {
if (Log.isLoggable("FirebaseMessaging", 3)) {
Log.d("FirebaseMessaging", "Restricting intent to a specific service: ".concat(str2));
}
intent2.setClassName(context4.getPackageName(), str2);
}
try {
if (i11.l(context4)) {
startService = com.google.firebase.messaging.z.b(context4, intent2);
} else {
startService = context4.startService(intent2);
Log.d("FirebaseMessaging", "Missing wake lock permission, service start may be delayed");
}
if (startService == null) {
Log.e("FirebaseMessaging", "Error while delivering the message: ServiceIntent not found.");
i10 = 404;
} else {
i10 = -1;
}
} catch (IllegalStateException e11) {
Log.e("FirebaseMessaging", "Failed to start service while in background: " + e11);
i10 = 402;
} catch (SecurityException e12) {
Log.e("FirebaseMessaging", "Error while delivering the message to the serviceIntent", e12);
i10 = 401;
}
return Integer.valueOf(i10);
case 8:
cn.b bVar = (cn.b) this.f8966i;
p0 p0Var = (p0) this.f8965e;
dn.j jVar = bVar.g;
synchronized (jVar.b) {
jVar.a.edit().putLong("fetch_timeout_in_seconds", p0Var.f2878a).putLong("minimum_fetch_interval_in_seconds", p0Var.f2879b).commit();
}
return null;
case com.bumptech.glide.c.f5128a:
a();
return null;
case 10:
i0 i0Var = (i0) this.f8966i;
f3 f3Var = (f3) this.f8965e;
Charset charset = i2.f9731d;
byteArrayOutputStream = new ByteArrayOutputStream();
try {
bufferedWriter = new BufferedWriter(new OutputStreamWriter(byteArrayOutputStream, i2.f9731d));
try {
i0Var.j(bufferedWriter, f3Var);
byte[] byteArray = byteArrayOutputStream.toByteArray();
bufferedWriter.close();
byteArrayOutputStream.close();
return byteArray;
} finally {
try {
bufferedWriter.close();
} catch (Throwable th4) {
th.addSuppressed(th4);
}
}
} finally {
}
case 11:
i0 i0Var2 = (i0) this.f8966i;
io.sentry.clientreport.a aVar2 = (io.sentry.clientreport.a) this.f8965e;
Charset charset2 = i2.f9731d;
byteArrayOutputStream = new ByteArrayOutputStream();
try {
bufferedWriter = new BufferedWriter(new OutputStreamWriter(byteArrayOutputStream, i2.f9731d));
try {
i0Var2.j(bufferedWriter, aVar2);
byte[] byteArray2 = byteArrayOutputStream.toByteArray();
bufferedWriter.close();
byteArrayOutputStream.close();
return byteArray2;
} finally {
}
} finally {
}
default:
i0 i0Var3 = (i0) this.f8966i;
z1 z1Var = (z1) this.f8965e;
Charset charset3 = i2.f9731d;
ByteArrayOutputStream byteArrayOutputStream2 = new ByteArrayOutputStream();
try {
BufferedWriter bufferedWriter2 = new BufferedWriter(new OutputStreamWriter(byteArrayOutputStream2, i2.f9731d));
try {
i0Var3.j(bufferedWriter2, z1Var);
byte[] byteArray3 = byteArrayOutputStream2.toByteArray();
bufferedWriter2.close();
byteArrayOutputStream2.close();
return byteArray3;
} finally {
try {
bufferedWriter2.close();
} catch (Throwable th5) {
th.addSuppressed(th5);
}
}
} finally {
try {
byteArrayOutputStream2.close();
} catch (Throwable th6) {
th.addSuppressed(th6);
}
}
}
}
}