APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Caller ID
版本号:1.8.3
包名称:com.callerid.block

MD5 校验值:5ef3f775189f42f146cf0788a99eebd7

反编译源代码说明

StartActivityTest.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package com.callerid.block.start;

import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.callerid.block.R;
import com.callerid.block.main.EZCallApplication;
import com.callerid.block.main.MainActivity;
import com.callerid.block.mvc.controller.OverlayPerActivity;

public class StartActivityTest extends AppCompatActivity {
    private static StartActivityTest S;
    public static boolean T;
    private boolean O;
    private FrameLayout P;
    private LinearLayout Q;
    private CountDownTimer R;

    class a extends CountDownTimer {
        a(long j10, long j11) {
            super(j10, j11);
        }

        @Override
        public void onFinish() {
            if (y3.a0.f34733a) {
                y3.a0.a("AppOpenManager", "onFinish");
            }
            if (EZCallApplication.d().f7264c.f8032a != null && EZCallApplication.d().f7264c.f8037t) {
                return;
            }
            StartActivityTest.T = true;
            StartActivityTest.this.t0();
        }

        @Override
        public void onTick(long j10) {
            if (y3.a0.f34733a) {
                y3.a0.a("AppOpenManager", "millisUntilFinished:" + ((j10 / 1000) + 1));
            }
        }
    }

    private void A0() {
        try {
            if (!w0()) {
                this.P.setVisibility(8);
                this.Q.setVisibility(0);
                ((FrameLayout) findViewById(R.id.fl_enable)).setOnClickListener(new View.OnClickListener() {
                    @Override
                    public final void onClick(View view) {
                        StartActivityTest.this.z0(view);
                    }
                });
                return;
            }
            Intent intent = new Intent();
            if (a4.d.f(getApplicationContext()) && a4.d.e(getApplicationContext())) {
                intent.setClass(this, MainActivity.class);
                if (getIntent() != null && "open_offline".equals(getIntent().getStringExtra("offline_notifi"))) {
                    if (y3.a0.f34733a) {
                        y3.a0.a("fcm", "open_offline");
                    }
                    intent.putExtra("offline_notifi", "open_offline");
                }
                if (getIntent() != null && "open_subscription".equals(getIntent().getStringExtra("subscription_notifi"))) {
                    if (y3.a0.f34733a) {
                        y3.a0.a("fcm", "open_subscription");
                    }
                    intent.putExtra("open_subscription", true);
                }
                if (getIntent() != null && "open_version_update".equals(getIntent().getStringExtra("version_update_notifi"))) {
                    if (y3.a0.f34733a) {
                        y3.a0.a("fcm", "open_version_update");
                    }
                    intent = new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + getApplicationContext().getPackageName()));
                    intent.setFlags(268435456);
                }
            } else {
                intent.putExtra("is_first", false);
                intent.setClass(this, StartActivity.class);
            }
            startActivity(intent);
            overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out);
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public void s0() {
        try {
            if (this.O) {
                if (!w0()) {
                    this.P.setVisibility(8);
                    this.Q.setVisibility(0);
                    ((FrameLayout) findViewById(R.id.fl_enable)).setOnClickListener(new View.OnClickListener() {
                        @Override
                        public final void onClick(View view) {
                            StartActivityTest.this.x0(view);
                        }
                    });
                    return;
                }
                y3.a0.a("first_enter", "StartActivityTest_onCreate");
                Intent intent = new Intent();
                intent.putExtra("is_first", true);
                intent.setClass(this, (a4.d.f(getApplicationContext()) && a4.d.e(getApplicationContext())) ? !a4.d.h() ? OverlayPerActivity.class : MainActivity.class : StartActivity.class);
                startActivity(intent);
                overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out);
                T = true;
            }
        } catch (Throwable th) {
            th.printStackTrace();
        }
    }

    public static StartActivityTest u0() {
        return S;
    }

    private void v0() {
        y3.n0.a().f34776a.execute(new Runnable() {
            @Override
            public final void run() {
                StartActivityTest.this.y0();
            }
        });
    }

    private boolean w0() {
        try {
            getDrawable(R.drawable.guide_select_lang);
            return true;
        } catch (Resources.NotFoundException unused) {
            return false;
        }
    }

    public void x0(View view) {
        y3.r1.n0(getApplicationContext(), y3.r1.z(getApplicationContext()));
    }

    public void y0() {
        this.O = y3.r1.r(getApplicationContext());
        if (y3.r1.q(getApplicationContext())) {
            y3.c1.v1(getApplicationContext(), System.currentTimeMillis() + 86400000);
        }
        runOnUiThread(new Runnable() {
            @Override
            public final void run() {
                StartActivityTest.this.s0();
            }
        });
    }

    public void z0(View view) {
        y3.r1.n0(getApplicationContext(), y3.r1.z(getApplicationContext()));
    }

    @Override
    public void onCreate(Bundle bundle) {
        e0.c.c(this);
        super.onCreate(bundle);
        S = this;
        if (y3.a0.f34733a) {
            y3.a0.a("wbb", "StartActivityTest开始");
        }
        if ((getIntent().getFlags() & 4194304) != 0) {
            finish();
            return;
        }
        Typeface b10 = y3.n1.b();
        try {
            setContentView(R.layout.activity_start_test);
            this.P = (FrameLayout) findViewById(R.id.fl_logo);
            this.Q = (LinearLayout) findViewById(R.id.ll_error);
            TextView textView = (TextView) findViewById(R.id.tv_error);
            TextView textView2 = (TextView) findViewById(R.id.tv_install);
            TextView textView3 = (TextView) findViewById(R.id.tv_enable);
            TextView textView4 = (TextView) findViewById(R.id.tv_logo);
            textView.setTypeface(b10);
            textView2.setTypeface(b10);
            textView3.setTypeface(b10);
            textView4.setTypeface(y3.n1.a());
            if (y3.r1.d0()) {
                y3.m.c().g("isSpecialDevice");
                finish();
            } else {
                y3.q.a();
            }
        } catch (Throwable th) {
            th.printStackTrace();
        }
    }

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

    @Override
    public void onResume() {
        super.onResume();
        try {
            if (y3.r1.r(getApplicationContext())) {
                v0();
                return;
            }
            if (y3.a0.f34733a) {
                y3.a0.a("AppOpenManager", "onStart--StartActivityTest");
            }
            if (EZCallApplication.d().f7264c.f8036e) {
                T = false;
                a aVar = new a(3000L, 1000L);
                this.R = aVar;
                aVar.start();
            }
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    @Override
    protected void onStart() {
        super.onStart();
    }

    public void t0() {
        if (y3.a0.f34733a) {
            y3.a0.a("AppOpenManager", "enterMain()");
        }
        T = true;
        CountDownTimer countDownTimer = this.R;
        if (countDownTimer != null) {
            countDownTimer.cancel();
        }
        A0();
    }
}