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

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

MD5 校验值:5ef3f775189f42f146cf0788a99eebd7

反编译源代码说明

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


package y3;

import android.os.AsyncTask;
import com.callerid.block.main.EZCallApplication;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import org.json.JSONArray;
import org.json.JSONObject;

public class o0 {

    public static class b extends AsyncTask<String, Void, String> {

        private String f34777a;

        private String f34778b;

        private b() {
        }

        @Override
        public String doInBackground(String... strArr) {
            String optString;
            String optString2;
            String optString3;
            try {
                HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://info.ayamote.com/gonglue_xilie/ping.php?id=" + r1.z(EZCallApplication.d()) + "&version=" + r1.J(EZCallApplication.d()) + "&is_android=1").openConnection();
                httpURLConnection.setConnectTimeout(15000);
                httpURLConnection.setRequestMethod("GET");
                if (httpURLConnection.getResponseCode() != 200) {
                    return null;
                }
                StringBuffer stringBuffer = new StringBuffer();
                BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
                while (true) {
                    String readLine = bufferedReader.readLine();
                    if (readLine == null) {
                        break;
                    }
                    stringBuffer.append(readLine);
                }
                if (a0.f34733a) {
                    a0.a("neitui", "content:" + stringBuffer.toString());
                }
                JSONObject jSONObject = new JSONObject(stringBuffer.toString());
                String string = jSONObject.getString("ad_banner");
                if ("admob".equals(string)) {
                    o0.z(true);
                } else {
                    o0.z(false);
                }
                if ("iad".equals(string)) {
                    o0.A(true);
                } else {
                    o0.A(false);
                }
                if ("facebook".equals(string)) {
                    o0.B(true);
                } else {
                    o0.B(false);
                }
                JSONArray optJSONArray = jSONObject.optJSONArray("neitui_list");
                if (optJSONArray == null || optJSONArray.length() <= 0) {
                    o0.C(false);
                    return null;
                }
                JSONObject jSONObject2 = optJSONArray.getJSONObject(0);
                if (jSONObject2.has("url_scheme") && (optString3 = jSONObject2.optString("url_scheme")) != null && !"".equals(optString3)) {
                    if (!optString3.equals(o0.a())) {
                        c1.j1(EZCallApplication.d(), true);
                    }
                    o0.g(optString3);
                }
                if (jSONObject2.has("headline") && (optString2 = jSONObject2.optString("headline")) != null && !"".equals(optString2)) {
                    o0.i(optString2);
                }
                if (jSONObject2.has("description") && (optString = jSONObject2.optString("description")) != null && !"".equals(optString)) {
                    o0.h(optString);
                }
                if (jSONObject2.has("thumb_url")) {
                    String optString4 = jSONObject2.optString("thumb_url");
                    this.f34777a = optString4;
                    if (optString4 != null && !"".equals(optString4)) {
                        o0.k(this.f34777a);
                    }
                }
                if (!jSONObject2.has("img_url")) {
                    return null;
                }
                String optString5 = jSONObject2.optString("img_url");
                this.f34778b = optString5;
                if (optString5 == null || "".equals(optString5)) {
                    return null;
                }
                o0.j(this.f34778b);
                return null;
            } catch (Exception e10) {
                e10.printStackTrace();
                if (!a0.f34733a) {
                    return null;
                }
                a0.a("neitui", "Exception:" + e10.getMessage());
                return null;
            }
        }

        @Override
        public void onPostExecute(String str) {
            super.onPostExecute(str);
            o0.l(System.currentTimeMillis());
            com.bumptech.glide.b.u(EZCallApplication.d()).s(this.f34777a).D0();
            com.bumptech.glide.b.u(EZCallApplication.d()).s(this.f34778b).D0();
        }
    }

    public static void A(boolean z10) {
        k0.v("isOpenMissedAd", z10);
    }

    public static void B(boolean z10) {
        k0.v("isOpenMissedBannerAd", z10);
    }

    public static void C(boolean z10) {
        k0.v("isOpenNeituiAd", z10);
    }

    public static String a() {
        return k0.m("mr_ntapp", "com.colorflash.callerscreen");
    }

    public static String b() {
        return k0.m("nt_description", "");
    }

    public static String c() {
        return k0.m("head_line", "");
    }

    public static String d() {
        return k0.m("nt_image", "");
    }

    public static String e() {
        return k0.m("nt_thumb", "");
    }

    public static void f() {
        try {
            b bVar = new b();
            if (bVar.getStatus() != AsyncTask.Status.RUNNING) {
                bVar.cancel(true);
                new b().executeOnExecutor(m1.a(), new String[0]);
            }
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public static void g(String str) {
        k0.y("mr_ntapp", str);
    }

    public static void h(String str) {
        k0.y("nt_description", str);
    }

    public static void i(String str) {
        k0.y("head_line", str);
    }

    public static void j(String str) {
        k0.y("nt_image", str);
    }

    public static void k(String str) {
        k0.y("nt_thumb", str);
    }

    public static void l(long j10) {
        k0.x("search_ntapp_time", j10);
    }

    public static boolean w() {
        return k0.i("isOpenAd", false);
    }

    public static boolean x() {
        return k0.i("isOpenMissedBannerAd", false);
    }

    public static boolean y() {
        return k0.i("isOpenNeituiAd", false);
    }

    public static void z(boolean z10) {
        k0.v("isOpenAd", z10);
    }
}