导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - b0.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 b0.java JAVA 源代码文件

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


package kf;

import java.io.IOException;
import java.util.Locale;
import sk0.c0;

public class b0 {
    public final sk0.a0 a;

    public class a implements sk0.f {
        public final lf.g a;

        public a(lf.g gVar) {
            this.a = gVar;
        }

        public void c(sk0.e eVar, sk0.e0 e0Var) throws IOException {
            if (!e0Var.q0()) {
                jc.a.j("ReactNative", "Got non-success http code from packager when requesting status: " + e0Var.q());
                this.a.a(false);
                return;
            }
            sk0.f0 a = e0Var.a();
            if (a == null) {
                jc.a.j("ReactNative", "Got null body response from packager when requesting status");
                this.a.a(false);
                return;
            }
            String u = a.u();
            if ("packager-status:running".equals(u)) {
                this.a.a(true);
                return;
            }
            jc.a.j("ReactNative", "Got unexpected response from packager when requesting status: " + u);
            this.a.a(false);
        }

        public void f(sk0.e eVar, IOException iOException) {
            jc.a.I("ReactNative", "The packager does not seem to be running as we got an IOException requesting its status: " + iOException.getMessage());
            this.a.a(false);
        }
    }

    public b0(sk0.a0 a0Var) {
        this.a = a0Var;
    }

    public static String a(String str) {
        return String.format(Locale.US, "http://%s/status", str);
    }

    public void b(String str, lf.g gVar) {
        this.a.a(new c0.a().l(a(str)).b()).r0(new a(gVar));
    }
}