正在查看: Perplexity v2.48.1 应用的 RealtimeVoiceService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Perplexity v2.48.1 应用的 RealtimeVoiceService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ai.perplexity.app.android.ui.voice2voice.realtime;
import Jn.c;
import V6.C1101q;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lai/perplexity/app/android/ui/voice2voice/realtime/RealtimeVoiceService;", "Landroid/app/Service;", "<init>", "()V", "PerplexityAndroid_v260454(2.48.1)_20250618_122841_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class RealtimeVoiceService extends Service {
@Override
public final IBinder onBind(Intent intent) {
return null;
}
@Override
public final int onStartCommand(Intent intent, int i10, int i11) {
NotificationManager notificationManager = (NotificationManager) getSystemService(NotificationManager.class);
if (notificationManager != null) {
notificationManager.createNotificationChannel(new NotificationChannel("perplexity_voice_mode", "Perplexity Voice Mode", 2));
}
C1101q c1101q = new C1101q(this, "perplexity_voice_mode");
c1101q.f16142e = C1101q.b("Perplexity Voice Mode");
c1101q.f16159v.icon = 2131231108;
c1101q.f16147j = -1;
Notification a4 = c1101q.a();
Intrinsics.g(a4, "build(...)");
try {
startForeground(1, a4);
return 1;
} catch (Exception e10) {
c.a.e(e10, "Could not startForeground: %s", new Object[]{e10.getLocalizedMessage()});
stopSelf();
return 2;
}
}
}