正在查看: Tuna Cash v1.0.0 应用的 LlLlL.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tuna Cash v1.0.0 应用的 LlLlL.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package LIlLlIL;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import com.facebook.FacebookSdk;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.regex.Pattern;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import lliilI.IlILllI;
import lllLI.iiiIL;
import org.json.JSONObject;
public final class LlLlL {
public static final Pattern IiLIL;
public static final String LILlLi = LlLlL.class.getSimpleName();
public static final String iLLLl;
public static volatile String lLILl;
public iilLIL IILii;
public IILlL IiLlI;
public JSONObject LLiIl;
public boolean iiIiiI;
public final String ilLll;
public Bundle iliLLil;
public final String lIliL;
public final lLILIl lLILIl;
public Object llLii;
static {
char[] charArray = "-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
Intrinsics.checkNotNullExpressionValue(charArray, "this as java.lang.String).toCharArray()");
StringBuilder sb = new StringBuilder();
SecureRandom secureRandom = new SecureRandom();
int nextInt = secureRandom.nextInt(11) + 30;
for (int i = 0; i < nextInt; i++) {
sb.append(charArray[secureRandom.nextInt(charArray.length)]);
}
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "buffer.toString()");
iLLLl = sb2;
IiLIL = Pattern.compile("^/?v\\d+\\.\\d+/(.*)");
}
public LlLlL(lLILIl llilil, String str, Bundle bundle, iilLIL iillil, IILlL iILlL) {
this.lLILIl = llilil;
this.lIliL = str;
this.ilLll = null;
LILlLi(iILlL);
this.IILii = iillil == null ? iilLIL.lLlii : iillil;
if (bundle != null) {
this.iliLLil = new Bundle(bundle);
} else {
this.iliLLil = new Bundle();
}
String str2 = FacebookSdk.IiLIL;
String format = String.format("getGraphApiVersion: %s", Arrays.copyOf(new Object[]{str2}, 1));
Intrinsics.checkNotNullExpressionValue(format, "format(format, *args)");
IlILllI.iliilLi("com.facebook.FacebookSdk", format);
this.ilLll = str2;
}
public static String ilLll() {
String lIliL = FacebookSdk.lIliL();
iiiIL.IILii();
String str = FacebookSdk.ilLll;
if (str == null) {
throw new LILlLi("A valid Facebook client token must be set in the AndroidManifest.xml or set by calling FacebookSdk.setClientToken before initializing the sdk. Visit https://developers.facebook.com/docs/android/getting-started#add-app_id for more information.");
}
if (lIliL.length() <= 0 || str.length() <= 0) {
IlILllI.iliilLi(LILlLi, "Warning: Request without access token missing application ID or client token.");
return null;
}
return lIliL + '|' + str;
}
public final String IILii(String str) {
if (!(!Intrinsics.lIliL(FacebookSdk.iliLLil(), "instagram.com") ? true : !iiIiiI())) {
str = androidx.compose.foundation.text.selection.lLILIl.LLILli(new Object[]{FacebookSdk.lLlii}, 1, "https://graph.%s", "format(format, *args)");
}
Object[] objArr = new Object[2];
objArr[0] = str;
Pattern pattern = IiLIL;
String str2 = this.lIliL;
if (!pattern.matcher(str2).matches()) {
str2 = androidx.compose.foundation.text.selection.lLILIl.LLILli(new Object[]{this.ilLll, str2}, 2, "%s/%s", "format(format, *args)");
}
objArr[1] = str2;
return androidx.compose.foundation.text.selection.lLILIl.LLILli(objArr, 2, "%s/%s", "format(format, *args)");
}
public final String IiLlI() {
String LLILli;
String str;
if (this.IILii == iilLIL.iiILI && (str = this.lIliL) != null && kotlin.text.LllLii.IiLlI(str, "/videos", false)) {
LLILli = androidx.compose.foundation.text.selection.lLILIl.LLILli(new Object[]{FacebookSdk.iliLLil()}, 1, "https://graph-video.%s", "format(format, *args)");
} else {
String iliLLil = FacebookSdk.iliLLil();
Intrinsics.checkNotNullParameter(iliLLil, "subdomain");
LLILli = androidx.compose.foundation.text.selection.lLILIl.LLILli(new Object[]{iliLLil}, 1, "https://graph.%s", "format(format, *args)");
}
String IILii = IILii(LLILli);
lLILIl();
return lIliL(IILii, false);
}
public final void LILlLi(IILlL iILlL) {
if (FacebookSdk.IiLlI(iLilI.IILlL) || FacebookSdk.IiLlI(iLilI.LLILli)) {
this.IiLlI = new iliLLil(iILlL, 1);
} else {
this.IiLlI = iILlL;
}
}
public final liIiI LLiIl() {
Intrinsics.checkNotNullParameter(this, "request");
LlLlL[] llLlLArr = {this};
Intrinsics.checkNotNullParameter(llLlLArr, "requests");
List IlllI = kotlin.collections.iLilI.IlllI(llLlLArr);
Intrinsics.checkNotNullParameter(IlllI, "requests");
ArrayList ILLiI = ILIiLl.lLILIl.ILLiI(new IiILLi(IlllI));
if (ILLiI.size() == 1) {
return (liIiI) ILLiI.get(0);
}
throw new LILlLi("invalid state: expected a single response");
}
public final boolean iiIiiI() {
String str = this.lIliL;
if (str == null) {
return false;
}
StringBuilder sb = new StringBuilder("^/?");
sb.append(FacebookSdk.lIliL());
sb.append("/?.*");
return this.iiIiiI || Pattern.matches(sb.toString(), str) || Pattern.matches("^/?app/?.*", str);
}
public final void iliLLil() {
LlLlL[] llLlLArr = {this};
Intrinsics.checkNotNullParameter(llLlLArr, "requests");
List IlllI = kotlin.collections.iLilI.IlllI(llLlLArr);
Intrinsics.checkNotNullParameter(IlllI, "requests");
IiILLi iiILLi = new IiILLi(IlllI);
Intrinsics.checkNotNullParameter(iiILLi, "requests");
iiiIL.iliLLil(iiILLi);
new iliilLi(iiILLi).executeOnExecutor(FacebookSdk.LLiIl(), new Void[0]);
}
public final String lIliL(String str, boolean z) {
if (!z && this.IILii == iilLIL.iiILI) {
return str;
}
Uri.Builder buildUpon = Uri.parse(str).buildUpon();
for (String str2 : this.iliLLil.keySet()) {
Object obj = this.iliLLil.get(str2);
if (obj == null) {
obj = "";
}
if (ILIiLl.lLILIl.lIlilI(obj)) {
buildUpon.appendQueryParameter(str2, ILIiLl.lLILIl.iliLLil(obj).toString());
} else if (this.IILii != iilLIL.lLlii) {
String format = String.format(Locale.US, "Unsupported parameter type for GET request: %s", Arrays.copyOf(new Object[]{obj.getClass().getSimpleName()}, 1));
Intrinsics.checkNotNullExpressionValue(format, "format(locale, format, *args)");
throw new IllegalArgumentException(format);
}
}
String builder = buildUpon.toString();
Intrinsics.checkNotNullExpressionValue(builder, "uriBuilder.toString()");
return builder;
}
public final void lLILIl() {
Bundle bundle = this.iliLLil;
String llLii = llLii();
boolean iilLIL = llLii != null ? StringsKt.iilLIL(llLii, "|", false) : false;
if ((llLii == null || !kotlin.text.LllLii.iiILI(llLii, "IG", false) || iilLIL || !iiIiiI()) && (!Intrinsics.lIliL(FacebookSdk.iliLLil(), "instagram.com") || (!iiIiiI()) || iilLIL)) {
String llLii2 = llLii();
if (llLii2 != null) {
bundle.putString("access_token", llLii2);
}
} else {
bundle.putString("access_token", ilLll());
}
if (!bundle.containsKey("access_token")) {
FacebookSdk facebookSdk = FacebookSdk.lLILIl;
iiiIL.IILii();
String str = FacebookSdk.ilLll;
if (str == null) {
throw new LILlLi("A valid Facebook client token must be set in the AndroidManifest.xml or set by calling FacebookSdk.setClientToken before initializing the sdk. Visit https://developers.facebook.com/docs/android/getting-started#add-app_id for more information.");
}
if (IlILllI.LllLii(str)) {
Log.w(LILlLi, "Starting with v13 of the SDK, a client token must be embedded in your client code before making Graph API calls. Visit https://developers.facebook.com/docs/android/getting-started#client-token to learn how to implement this change.");
}
}
bundle.putString("sdk", "android");
bundle.putString("format", "json");
if (FacebookSdk.IiLlI(iLilI.IILlL)) {
bundle.putString("debug", "info");
} else if (FacebookSdk.IiLlI(iLilI.LLILli)) {
bundle.putString("debug", "warning");
}
}
public final String llLii() {
lLILIl llilil = this.lLILIl;
if (llilil != null) {
if (!this.iliLLil.containsKey("access_token")) {
lliilI.iliilLi iliilli = lliilI.LLLIl.LLiIl;
String str = llilil.lIIiL;
iliilli.ilLll(str);
return str;
}
} else if (!this.iliLLil.containsKey("access_token")) {
return ilLll();
}
return this.iliLLil.getString("access_token");
}
public final String toString() {
StringBuilder sb = new StringBuilder("{Request: accessToken: ");
Object obj = this.lLILIl;
if (obj == null) {
obj = "null";
}
sb.append(obj);
sb.append(", graphPath: ");
sb.append(this.lIliL);
sb.append(", graphObject: ");
sb.append(this.LLiIl);
sb.append(", httpMethod: ");
sb.append(this.IILii);
sb.append(", parameters: ");
sb.append(this.iliLLil);
sb.append("}");
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder()\n …(\"}\")\n .toString()");
return sb2;
}
}