正在查看: Perplexity v2.48.1 应用的 AssistantService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Perplexity v2.48.1 应用的 AssistantService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ai.perplexity.app.android.assistant;
import Jk.h;
import K.j;
import L.AbstractC0350j;
import Lk.c;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.service.voice.VoiceInteractionService;
import androidx.fragment.app.AbstractC1355z;
import b.C1441d;
import b.l;
import c.f;
import c.g;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import l0.C3198q0;
import l0.y2;
import om.F;
import om.H;
import om.x;
import om.y;
import s.AbstractC3964a;
import t.C4067d;
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u0000B\u0007¢\u0006\u0004\b\u0001\u0010\u0002¨\u0006\u0003"}, d2 = {"Lai/perplexity/app/android/assistant/AssistantService;", "<init>", "()V", "assistant_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
@SourceDebugExtension
public final class AssistantService extends VoiceInteractionService implements c {
public y2 f19480X;
public x f19481Y;
public C4067d f19482Z;
public C3198q0 f19483r0;
public W.c f19484s0;
public volatile h f19485w;
public final Object f19486x = new Object();
public boolean f19487y = false;
public j f19488z;
public final Object a() {
if (this.f19485w == null) {
synchronized (this.f19486x) {
try {
if (this.f19485w == null) {
this.f19485w = new h(this);
}
} finally {
}
}
}
return this.f19485w.a();
}
public final void b() {
if (!this.f19487y) {
this.f19487y = true;
l lVar = ((C1441d) ((g) a())).f21684a;
this.f19488z = (j) lVar.f21836d0.get();
this.f19480X = (y2) lVar.f21855h.get();
this.f19481Y = AbstractC3964a.c();
this.f19482Z = (C4067d) lVar.f21803X.get();
this.f19483r0 = (C3198q0) lVar.f21819a0.get();
this.f19484s0 = (W.c) lVar.E1.get();
}
super.onCreate();
}
@Override
public final IBinder onBind(Intent intent) {
SharedPreferences sharedPreferences = getSharedPreferences("ai.perplexity.app.android.assistant", 0);
if (sharedPreferences.getBoolean("redirect_to_main_app", false)) {
SharedPreferences.Editor edit = sharedPreferences.edit();
edit.putBoolean("redirect_to_main_app", false);
edit.commit();
C4067d c4067d = this.f19482Z;
if (c4067d == null) {
Intrinsics.n("analytics");
throw null;
}
c4067d.f41402l.f42910a.c("assistant enabled from onboarding", bl.g.w);
j jVar = this.f19488z;
if (jVar == null) {
Intrinsics.n("remoteThreadRequests");
throw null;
}
jVar.f5972j.invoke(this);
}
C3198q0 c3198q0 = this.f19483r0;
if (c3198q0 == null) {
Intrinsics.n("userLocationRefresher");
throw null;
}
c3198q0.a();
x xVar = this.f19481Y;
if (xVar == null) {
Intrinsics.n("mainImmediate");
throw null;
}
H.o(AbstractC1355z.r(y.w, xVar.plus(H.c())), (CoroutineContext) null, (F) null, new f(this, null), 3);
return super.onBind(intent);
}
@Override
public final void onCreate() {
b();
int i10 = AbstractC0350j.f6897a;
}
@Override
public final void onReady() {
super.onReady();
W.c cVar = this.f19484s0;
if (cVar != null) {
cVar.a();
} else {
Intrinsics.n("dynamicShortcuts");
throw null;
}
}
@Override
public final void onShutdown() {
super.onShutdown();
W.c cVar = this.f19484s0;
if (cVar != null) {
cVar.a();
} else {
Intrinsics.n("dynamicShortcuts");
throw null;
}
}
}