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

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

MD5 校验值:5ef3f775189f42f146cf0788a99eebd7

反编译源代码说明

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


package p3;

import android.net.Uri;
import android.os.AsyncTask;
import com.android.boom.w;
import com.callerid.block.main.EZCallApplication;
import com.yanzhenjie.nohttp.RequestMethod;
import com.yanzhenjie.nohttp.rest.SyncRequestExecutor;
import java.util.HashMap;
import lb.d;
import lb.f;
import org.json.JSONObject;
import y3.a0;
import y3.q;
import y3.r1;
import y3.x;

public class c {

    public interface a {
        void a(boolean z10, boolean z11);
    }

    private static class b extends AsyncTask<String, String, Boolean> {

        private final a f33345a;

        private final String f33346b;

        private final Uri f33347c;

        private final String f33348d;

        private boolean f33349e;

        b(String str, Uri uri, String str2, a aVar) {
            this.f33345a = aVar;
            this.f33346b = str;
            this.f33347c = uri;
            this.f33348d = str2;
        }

        @Override
        public Boolean doInBackground(String... strArr) {
            byte[] a10;
            if (this.f33347c != null) {
                try {
                    EZCallApplication d10 = EZCallApplication.d();
                    String str = this.f33348d;
                    if (str != null && !"".equals(str) && (a10 = x.a(this.f33348d)) != null && a10.length > 0) {
                        if (a0.f34733a) {
                            a0.a("manageNumber", "imageByte:" + a10.length);
                            a0.a("manageNumber", "imageByte:" + (a10.length / 1048576) + "M");
                        }
                        if (a10.length / 1048576 < 10) {
                            if (a0.f34733a) {
                                HashMap hashMap = new HashMap();
                                hashMap.put("phonenumber", this.f33346b);
                                hashMap.put("uid", r1.H(d10));
                                hashMap.put("stamp", r1.D(d10, r1.H(d10)));
                                hashMap.put("origin", "ayamote");
                                if (a0.f34733a) {
                                    a0.a("manageNumber", "params: " + hashMap);
                                }
                            }
                            d execute = SyncRequestExecutor.INSTANCE.execute((f) new f("https://upload.ayamote.com/api/v1/cal_ima.php", RequestMethod.POST).c("phonenumber", w.en(this.f33346b)).c("uid", r1.H(d10)).c("stamp", r1.D(d10, r1.H(d10))).c("origin", "ayamote").b("image", new com.yanzhenjie.nohttp.d(a10, this.f33348d)));
                            if (execute.a()) {
                                String str2 = (String) execute.get();
                                if (a0.f34733a) {
                                    a0.a("manageNumber", "str: " + str2);
                                }
                                String de = w.de(str2);
                                if (a0.f34733a) {
                                    a0.a("manageNumber", "result: " + de);
                                }
                                if (de != null && !"".equals(de)) {
                                    int i10 = new JSONObject(de).getInt("status");
                                    if (i10 == 1) {
                                        return Boolean.TRUE;
                                    }
                                    if (i10 == -20) {
                                        q.a();
                                    }
                                }
                            } else if (a0.f34733a) {
                                a0.a("manageNumber", "response failed");
                            }
                        } else {
                            this.f33349e = true;
                        }
                    }
                } catch (Exception e10) {
                    e10.printStackTrace();
                }
            }
            return Boolean.FALSE;
        }

        @Override
        public void onPostExecute(Boolean bool) {
            super.onPostExecute(bool);
            a aVar = this.f33345a;
            if (aVar != null) {
                aVar.a(bool.booleanValue(), this.f33349e);
            }
        }

        @Override
        public void onProgressUpdate(String... strArr) {
            super.onProgressUpdate(strArr);
        }
    }

    public static void a(String str, Uri uri, String str2, a aVar) {
        new b(str, uri, str2, aVar).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new String[0]);
    }
}