正在查看: FileWipe Pro v3.0.0 应用的 v.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: FileWipe Pro v3.0.0 应用的 v.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package f4;
import android.net.Uri;
import android.os.Bundle;
import com.facebook.AccessToken;
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 org.json.JSONObject;
public final class v {
public static final String f15303j;
public static final Pattern f15304k;
public static volatile String l;
public final AccessToken f15305a;
public final String f15306b;
public JSONObject f15307c;
public Bundle f15308d;
public String f15309e;
public final String f15310f;
public r f15311g;
public z f15312h;
public boolean f15313i;
static {
char[] charArray = "-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
Intrinsics.checkNotNullExpressionValue(charArray, "this as java.lang.String).toCharArray()");
StringBuilder sb2 = new StringBuilder();
SecureRandom secureRandom = new SecureRandom();
int nextInt = secureRandom.nextInt(11) + 30;
for (int i10 = 0; i10 < nextInt; i10++) {
sb2.append(charArray[secureRandom.nextInt(charArray.length)]);
}
String sb3 = sb2.toString();
Intrinsics.checkNotNullExpressionValue(sb3, "buffer.toString()");
f15303j = sb3;
f15304k = Pattern.compile("^/?v\\d+\\.\\d+/(.*)");
}
public v(AccessToken accessToken, String str, Bundle bundle, z zVar, r rVar) {
this.f15305a = accessToken;
this.f15306b = str;
this.f15310f = null;
j(rVar);
this.f15312h = zVar == null ? z.f15326a : zVar;
if (bundle != null) {
this.f15308d = new Bundle(bundle);
} else {
this.f15308d = new Bundle();
}
this.f15310f = n.d();
}
public static String f() {
String b10 = n.b();
z4.f.k();
String str = n.f15283f;
if (str == null) {
throw new h("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 (b10.length() <= 0 || str.length() <= 0) {
return null;
}
return b10 + '|' + str;
}
public final void a() {
throw new UnsupportedOperationException("Method not decompiled: f4.v.a():void");
}
public final String b(String str, boolean z3) {
if (!z3 && this.f15312h == z.f15327b) {
return str;
}
Uri.Builder buildUpon = Uri.parse(str).buildUpon();
for (String str2 : this.f15308d.keySet()) {
Object obj = this.f15308d.get(str2);
if (obj == null) {
obj = "";
}
if (com.google.android.gms.measurement.internal.o.l(obj)) {
buildUpon.appendQueryParameter(str2, com.google.android.gms.measurement.internal.o.a(obj).toString());
} else if (this.f15312h != z.f15326a) {
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 y c() {
Intrinsics.checkNotNullParameter(this, "request");
v[] vVarArr = {this};
Intrinsics.checkNotNullParameter(vVarArr, "requests");
List r6 = kotlin.collections.r.r(vVarArr);
Intrinsics.checkNotNullParameter(r6, "requests");
ArrayList f10 = com.google.android.gms.measurement.internal.o.f(new x(r6));
if (f10.size() == 1) {
return (y) f10.get(0);
}
throw new h("invalid state: expected a single response");
}
public final w d() {
v[] vVarArr = {this};
Intrinsics.checkNotNullParameter(vVarArr, "requests");
List r6 = kotlin.collections.r.r(vVarArr);
Intrinsics.checkNotNullParameter(r6, "requests");
x xVar = new x(r6);
Intrinsics.checkNotNullParameter(xVar, "requests");
z4.f.i(xVar);
w wVar = new w(xVar);
wVar.executeOnExecutor(n.c(), new Void[0]);
return wVar;
}
public final String e() {
AccessToken accessToken = this.f15305a;
if (accessToken != null) {
if (!this.f15308d.containsKey("access_token")) {
ia.a aVar = z4.x.f20807c;
String str = accessToken.f4996e;
aVar.p(str);
return str;
}
} else if (!this.f15308d.containsKey("access_token")) {
return f();
}
return this.f15308d.getString("access_token");
}
public final String g() {
String s8;
String str;
if (this.f15312h == z.f15327b && (str = this.f15306b) != null && kotlin.text.s.e(str, "/videos", false)) {
s8 = s1.a.s(new Object[]{n.e()}, 1, "https://graph-video.%s", "format(format, *args)");
} else {
String e4 = n.e();
Intrinsics.checkNotNullParameter(e4, "subdomain");
s8 = s1.a.s(new Object[]{e4}, 1, "https://graph.%s", "format(format, *args)");
}
String h7 = h(s8);
a();
return b(h7, false);
}
public final String h(String str) {
if (!(!Intrinsics.a(n.e(), "instagram.com") ? true : !i())) {
str = s1.a.s(new Object[]{n.f15292q}, 1, "https://graph.%s", "format(format, *args)");
}
Pattern pattern = f15304k;
String str2 = this.f15306b;
if (!pattern.matcher(str2).matches()) {
str2 = s1.a.s(new Object[]{this.f15310f, str2}, 2, "%s/%s", "format(format, *args)");
}
return s1.a.s(new Object[]{str, str2}, 2, "%s/%s", "format(format, *args)");
}
public final boolean i() {
String str = this.f15306b;
if (str == null) {
return false;
}
StringBuilder sb2 = new StringBuilder("^/?");
sb2.append(n.b());
sb2.append("/?.*");
return this.f15313i || Pattern.matches(sb2.toString(), str) || Pattern.matches("^/?app/?.*", str);
}
public final void j(r rVar) {
n.h(a0.f15224g);
n.h(a0.f15223f);
this.f15311g = rVar;
}
public final String toString() {
StringBuilder sb2 = new StringBuilder("{Request: accessToken: ");
Object obj = this.f15305a;
if (obj == null) {
obj = "null";
}
sb2.append(obj);
sb2.append(", graphPath: ");
sb2.append(this.f15306b);
sb2.append(", graphObject: ");
sb2.append(this.f15307c);
sb2.append(", httpMethod: ");
sb2.append(this.f15312h);
sb2.append(", parameters: ");
sb2.append(this.f15308d);
sb2.append("}");
String sb3 = sb2.toString();
Intrinsics.checkNotNullExpressionValue(sb3, "StringBuilder()\n …(\"}\")\n .toString()");
return sb3;
}
}