导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - a.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 a.java JAVA 源代码文件

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


package f7;

import android.content.Context;
import android.content.SharedPreferences;
import com.google.firebase.perf.network.FirebasePerfOkHttpClient;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import h7.d;
import java.io.IOException;
import java.util.HashMap;
import ml.o;
import no.RequestBody;
import no.s;
import no.u;
import no.w;
import no.x;
import no.y;
import no.z;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import vj.h;

public final class a {
    public static final h b = h.f(a.class);
    public static volatile a c;
    public final Context a;

    public a(Context context) {
        this.a = context.getApplicationContext();
    }

    public static h7.a a(String str) {
        try {
            JSONObject jSONObject = new JSONObject(str);
            int optInt = jSONObject.optInt("version_code", 0);
            return new h7.a(jSONObject.optLong("date", 0L), jSONObject.optString("version_name", "0"), jSONObject.optString("pattern"), optInt);
        } catch (JSONException e) {
            b.d((String) null, e);
            return null;
        }
    }

    public static HashMap b(String str) {
        HashMap hashMap = new HashMap();
        try {
            JSONArray jSONArray = new JSONArray(str);
            for (int i = 0; i < jSONArray.length(); i++) {
                JSONObject jSONObject = jSONArray.getJSONObject(i);
                hashMap.put(jSONObject.getString("md5"), new d(jSONObject.optInt("score", -100), jSONObject.optString("virus_name")));
            }
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return hashMap;
    }

    public final h7.a c(boolean z10) throws IOException {
        Context context = this.a;
        h hVar = b;
        try {
            u uVar = new u();
            String valueOf = String.valueOf(System.currentTimeMillis());
            String f = sk.a.f("5aa10ed9647f4898b3ba34bc0de5de35" + valueOf);
            x.a aVar = new x.a();
            SharedPreferences sharedPreferences = context.getSharedPreferences("main", 0);
            s.a k = s.l((sharedPreferences == null ? false : sharedPreferences.getBoolean("use_staging_server", false) ? "https://fancy-virus-test.herokuapp.com/api" : "https://antivirus.thinkyeah.com/api").concat("/v1/pattern")).k();
            k.a(CampaignEx.JSON_KEY_TIMESTAMP, valueOf);
            k.a("api_token", "5aa10ed9647f4898b3ba34bc0de5de35");
            k.a("signature", o.b(f));
            SharedPreferences sharedPreferences2 = context.getSharedPreferences("virus_scan", 0);
            k.a("last_version_code", String.valueOf(sharedPreferences2 == null ? 0 : sharedPreferences2.getInt("pattern_version_code", 0)));
            if (z10) {
                k.a("account_sync", "1");
            }
            aVar.e(k.b());
            aVar.b("GET", (RequestBody) null);
            y execute = FirebasePerfOkHttpClient.execute(w.c(uVar, aVar.a(), false));
            int i = execute.e;
            z zVar = execute.i;
            if (i == 200) {
                return a(zVar.string());
            }
            if (i == 304) {
                hVar.d("no need to update pattern", (Throwable) null);
                h7.a aVar2 = new h7.a();
                aVar2.a = 1;
                return aVar2;
            }
            hVar.d("get pattern info failed, errorCode=" + new JSONObject(zVar.string()).getInt("error_code"), (Throwable) null);
            h7.a aVar3 = new h7.a();
            aVar3.a = 2;
            return aVar3;
        } catch (JSONException e) {
            hVar.d("JSONException when scanning result: ", e);
            return null;
        }
    }

    public final java.util.HashMap d(java.util.List r9) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: f7.a.d(java.util.List):java.util.HashMap");
    }

    public final boolean e(java.util.List<h7.c> r10) throws java.lang.Exception {
        throw new UnsupportedOperationException("Method not decompiled: f7.a.e(java.util.List):boolean");
    }
}