导航菜单

页面标题

页面副标题

微商客 v2.1.2 - a.java 源代码

正在查看: 微商客 v2.1.2 应用的 a.java JAVA 源代码文件

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


package ab.yu.yu.Hx;

import ab.yu.yu.c;
import ab.yu.yu.nz.d;
import android.content.Context;
import android.text.TextUtils;
import java.net.URLDecoder;
import org.json.JSONException;
import org.json.JSONObject;

public final class a {

    public static class C0001a {
        public final String a;
        public final int b;

        C0001a(String str, int i) {
            this.a = str;
            this.b = i;
        }
    }

    public static C0001a a(Context context, int i, String str, String str2, String str3) {
        ab.yu.yu.ab.a.c("HttpUtil", "queryOtaPlugins");
        C0001a a = a(context, i, str, str2, str3, c.b());
        if (TextUtils.isEmpty(a.a)) {
            ab.yu.yu.ab.a.c("HttpUtil", "inner error");
            return a;
        }
        if (a.b == 200) {
            try {
                return new C0001a(URLDecoder.decode(new JSONObject(a.a).get("data").toString(), "utf-8"), a.b);
            } catch (Throwable th) {
                ab.yu.yu.ab.a.b("HttpUtil", th.toString());
            }
        } else {
            try {
                return new C0001a(new JSONObject(a.a).get("msg").toString(), a.b);
            } catch (Throwable th2) {
                ab.yu.yu.ab.a.b("HttpUtil", th2.toString());
            }
        }
        return a;
    }

    public static C0001a a(Context context, int i, String str, String str2, String str3, String str4) {
        ab.yu.yu.ab.a.c("HttpUtil", "postOta");
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("pt", 1);
            jSONObject.put("pid", i);
            jSONObject.put("chs", "tv");
            jSONObject.put("clientver", str);
            jSONObject.put("channel", str2);
            jSONObject.put("deviceid", str4);
            jSONObject.put("name", str3);
            jSONObject.put("model", c.c());
            jSONObject.put("sv", c.g());
            jSONObject.put("te", ab.yu.yu.nz.a.a() ? "true" : "false");
            jSONObject.put("sys", ab.yu.yu.nz.a.a(context) ? "true" : "false");
            if (context != null && context.getApplicationInfo() != null && !TextUtils.isEmpty(context.getApplicationInfo().packageName)) {
                jSONObject.put("pkgname", context.getApplicationInfo().packageName);
            }
            long a = (d.a(context) / 1024) / 1024;
            long a2 = (d.a() / 1024) / 1024;
            jSONObject.put("ram", Long.toString(a));
            jSONObject.put("rom", Long.toString(a2));
        } catch (JSONException e) {
            ab.yu.yu.ab.a.d("HttpUtil", e.toString());
        }
        ab.yu.yu.ab.a.b("http:// httputils:", "channel:" + str2);
        if (str2.equals("app_testOta")) {
            try {
                jSONObject.put("pid", 1403);
            } catch (JSONException e2) {
                ab.yu.yu.ab.a.d("HttpUtil", e2.toString());
            }
            return a("http://10.205.34.12:8505/config_delivery?pid=1403&ch=" + str2 + "&ver=" + str + "&name=" + str3, jSONObject.toString());
        }
        return a("https://ota.baidu.com/config_delivery?pid=" + i + "&ch=" + str2 + "&ver=" + str + "&name=" + str3, jSONObject.toString());
    }

    public static ab.yu.yu.Hx.a.C0001a a(java.lang.String r7, java.lang.String r8) {
        throw new UnsupportedOperationException("Method not decompiled: ab.yu.yu.Hx.a.a(java.lang.String, java.lang.String):ab.yu.yu.Hx.a$a");
    }
}