导航菜单

页面标题

页面副标题

Tuna Cash v1.0.0 - LlLlL.java 源代码

正在查看: Tuna Cash v1.0.0 应用的 LlLlL.java JAVA 源代码文件

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


package lliLl;

import LLLLI.ilLll;
import Lillll.llLii;
import LlLlL.lIliL;
import a3d2025050999291218703.lLILIl;
import android.content.Context;
import android.text.TextUtils;
import android.util.JsonReader;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.nio.charset.Charset;
import java.util.regex.Pattern;
import java.util.zip.GZIPOutputStream;
import llLil.IlIlliI;
import org.json.JSONException;
import org.json.JSONObject;

public final class LlLlL {
    public static final Pattern iliLLil = Pattern.compile("[0-9]+s");
    public static final Charset llLii = Charset.forName("UTF-8");
    public final LlLiILL LLiIl = new LlLiILL();
    public final llLii lIliL;
    public final Context lLILIl;

    public LlLlL(Context context, llLii lllii) {
        this.lLILIl = context;
        this.lIliL = lllii;
    }

    public static void IILii(HttpURLConnection httpURLConnection) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("sdkVersion", "a:18.0.0");
            JSONObject jSONObject2 = new JSONObject();
            jSONObject2.put("installation", jSONObject);
            iiIiiI(httpURLConnection, jSONObject2.toString().getBytes("UTF-8"));
        } catch (JSONException e) {
            throw new IllegalStateException(e);
        }
    }

    public static void IiLlI(HttpURLConnection httpURLConnection, String str, String str2) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("fid", str);
            jSONObject.put("appId", str2);
            jSONObject.put("authVersion", "FIS_v2");
            jSONObject.put("sdkVersion", "a:18.0.0");
            iiIiiI(httpURLConnection, jSONObject.toString().getBytes("UTF-8"));
        } catch (JSONException e) {
            throw new IllegalStateException(e);
        }
    }

    public static void iiIiiI(URLConnection uRLConnection, byte[] bArr) {
        OutputStream outputStream = uRLConnection.getOutputStream();
        if (outputStream == null) {
            throw new IOException("Cannot send request to FIS servers. No OutputStream available.");
        }
        GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream);
        try {
            gZIPOutputStream.write(bArr);
        } finally {
            try {
                gZIPOutputStream.close();
                outputStream.close();
            } catch (IOException unused) {
            }
        }
    }

    public static LILli ilLll(HttpURLConnection httpURLConnection) {
        InputStream inputStream = httpURLConnection.getInputStream();
        JsonReader jsonReader = new JsonReader(new InputStreamReader(inputStream, llLii));
        lIliL lLILIl = LILli.lLILIl();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String nextName = jsonReader.nextName();
            if (nextName.equals("token")) {
                lLILIl.iiILI = jsonReader.nextString();
            } else if (nextName.equals("expiresIn")) {
                lLILIl.ILLiI = Long.valueOf(iliLLil(jsonReader.nextString()));
            } else {
                jsonReader.skipValue();
            }
        }
        jsonReader.endObject();
        jsonReader.close();
        inputStream.close();
        lLILIl.liLILi = IiILLi.lLlii;
        return lLILIl.LLILli();
    }

    public static long iliLLil(String str) {
        IlIlliI.IiLlI("Invalid Expiration Timestamp.", iliLLil.matcher(str).matches());
        if (str == null || str.length() == 0) {
            return 0L;
        }
        return Long.parseLong(str.substring(0, str.length() - 1));
    }

    public static void lIliL(HttpURLConnection httpURLConnection, String str, String str2, String str3) {
        InputStream errorStream = httpURLConnection.getErrorStream();
        String str4 = null;
        if (errorStream != null) {
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(errorStream, llLii));
            try {
                StringBuilder sb = new StringBuilder();
                while (true) {
                    String readLine = bufferedReader.readLine();
                    if (readLine == null) {
                        break;
                    }
                    sb.append(readLine);
                    sb.append('\n');
                }
                str4 = String.format("Error when communicating with the Firebase Installations server API. HTTP response: [%d %s: %s]", Integer.valueOf(httpURLConnection.getResponseCode()), httpURLConnection.getResponseMessage(), sb);
            } catch (IOException unused) {
            } catch (Throwable th) {
                try {
                    bufferedReader.close();
                } catch (IOException unused2) {
                }
                throw th;
            }
            try {
                bufferedReader.close();
            } catch (IOException unused3) {
            }
        }
        if (TextUtils.isEmpty(str4)) {
            return;
        }
        Log.w("Firebase-Installations", str4);
        Object[] objArr = new Object[3];
        objArr[0] = str2;
        objArr[1] = str3;
        objArr[2] = TextUtils.isEmpty(str) ? "" : lLILIl.llLii(", ", str);
        Log.w("Firebase-Installations", String.format("Firebase options used while communicating with Firebase server APIs: %s, %s%s", objArr));
    }

    public static URL lLILIl(String str) {
        try {
            return new URL(String.format("https://%s/%s/%s", "firebaseinstallations.googleapis.com", "v1", str));
        } catch (MalformedURLException e) {
            throw new ilLll(e.getMessage(), LLLLI.llLii.iiILI);
        }
    }

    public static LllLii llLii(HttpURLConnection httpURLConnection) {
        InputStream inputStream = httpURLConnection.getInputStream();
        JsonReader jsonReader = new JsonReader(new InputStreamReader(inputStream, llLii));
        lIliL lLILIl = LILli.lLILIl();
        jsonReader.beginObject();
        String str = null;
        String str2 = null;
        String str3 = null;
        LILli lILli = null;
        while (jsonReader.hasNext()) {
            String nextName = jsonReader.nextName();
            if (nextName.equals("name")) {
                str = jsonReader.nextString();
            } else if (nextName.equals("fid")) {
                str2 = jsonReader.nextString();
            } else if (nextName.equals("refreshToken")) {
                str3 = jsonReader.nextString();
            } else if (nextName.equals("authToken")) {
                jsonReader.beginObject();
                while (jsonReader.hasNext()) {
                    String nextName2 = jsonReader.nextName();
                    if (nextName2.equals("token")) {
                        lLILIl.iiILI = jsonReader.nextString();
                    } else if (nextName2.equals("expiresIn")) {
                        lLILIl.ILLiI = Long.valueOf(iliLLil(jsonReader.nextString()));
                    } else {
                        jsonReader.skipValue();
                    }
                }
                LILli LLILli = lLILIl.LLILli();
                jsonReader.endObject();
                lILli = LLILli;
            } else {
                jsonReader.skipValue();
            }
        }
        jsonReader.endObject();
        jsonReader.close();
        inputStream.close();
        return new LllLii(str, str2, str3, lILli, iliilLi.lLlii);
    }

    public final java.net.HttpURLConnection LLiIl(java.net.URL r10, java.lang.String r11) {
        throw new UnsupportedOperationException("Method not decompiled: lliLl.LlLlL.LLiIl(java.net.URL, java.lang.String):java.net.HttpURLConnection");
    }
}