正在查看: 火箭TNT加速 v1.5.4 应用的 RemoteService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 火箭TNT加速 v1.5.4 应用的 RemoteService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.github.kr328.clash.service;
import android.content.Intent;
import android.os.IBinder;
import com.facebook.react.uimanager.events.PointerEventHelper;
import com.github.kr328.clash.core.bridge.Bridge;
import com.github.kr328.clash.service.remote.IClashManager;
import com.github.kr328.clash.service.remote.IClashManagerKt;
import com.github.kr328.clash.service.remote.IProfileManager;
import com.github.kr328.clash.service.remote.IRemoteService;
import com.github.kr328.clash.service.remote.IRemoteServiceKt;
import com.github.kr328.clash.service.util.CoroutineKt;
import com.google.android.gms.common.Scopes;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003J\b\u0010\u0006\u001a\u00020\tH\u0016J\u0012\u0010\u000e\u001a\u00020\u00052\b\u0010\u000f\u001a\u0004\u0018\u00010\u0010H\u0016J\b\u0010\u0011\u001a\u00020\u0012H\u0016J\b\u0010\u0013\u001a\u00020\u0012H\u0016J\b\u0010\n\u001a\u00020\rH\u0016R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\b\u001a\u0004\u0018\u00010\tX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\n\u001a\u0004\u0018\u00010\u000bX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\f\u001a\u0004\u0018\u00010\rX\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Lcom/github/kr328/clash/service/RemoteService;", "Lcom/github/kr328/clash/service/BaseService;", "Lcom/github/kr328/clash/service/remote/IRemoteService;", "()V", "binder", "Landroid/os/IBinder;", "clash", "Lcom/github/kr328/clash/service/ClashManager;", "clashBinder", "Lcom/github/kr328/clash/service/remote/IClashManager;", Scopes.PROFILE, "Lcom/github/kr328/clash/service/ProfileManager;", "profileBinder", "Lcom/github/kr328/clash/service/remote/IProfileManager;", "onBind", "intent", "Landroid/content/Intent;", "onCreate", PointerEventHelper.POINTER_TYPE_UNKNOWN, "onDestroy", "service_meta-alphaRelease"}, k = 1, mv = {1, 7, 1}, xi = 48)
public final class RemoteService extends BaseService implements IRemoteService {
private final IBinder binder = IRemoteServiceKt.wrap(this);
private ClashManager clash;
private IClashManager clashBinder;
private ProfileManager profile;
private IProfileManager profileBinder;
@Override
public void onCreate() {
super.onCreate();
Bridge.touch();
ClashManager clashManager = new ClashManager(this);
this.clash = clashManager;
this.clashBinder = (IClashManager) IClashManagerKt.wrap(clashManager);
}
@Override
public void onDestroy() {
super.onDestroy();
ClashManager clashManager = this.clash;
if (clashManager != null) {
CoroutineKt.cancelAndJoinBlocking(clashManager);
}
}
@Override
public IBinder onBind(Intent intent) {
return this.binder;
}
@Override
public IClashManager clash() {
IClashManager iClashManager = this.clashBinder;
Intrinsics.checkNotNull(iClashManager);
return iClashManager;
}
@Override
public IProfileManager profile() {
IProfileManager iProfileManager = this.profileBinder;
Intrinsics.checkNotNull(iProfileManager);
return iProfileManager;
}
}