正在查看: Tuna Cash v1.0.0 应用的 IILii.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tuna Cash v1.0.0 应用的 IILii.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package LIlLlIL;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import com.facebook.CurrentAccessTokenExpirationBroadcastReceiver;
import com.facebook.FacebookSdk;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.concurrent.atomic.AtomicBoolean;
import kotlin.jvm.internal.Intrinsics;
import lliilI.IlILllI;
import lllLI.iiiIL;
import org.json.JSONException;
public final class IILii {
public static IILii IiLlI;
public static final ILIiLl.lLILIl ilLll = new ILIiLl.lLILIl(4, 0);
public lLILIl LLiIl;
public final AtomicBoolean iliLLil;
public final lIliL lIliL;
public final IIiILi.lIliL lLILIl;
public Date llLii;
public IILii(IIiILi.lIliL lilil, lIliL lilil2) {
Intrinsics.checkNotNullParameter(lilil, "localBroadcastManager");
Intrinsics.checkNotNullParameter(lilil2, "accessTokenCache");
this.lLILIl = lilil;
this.lIliL = lilil2;
this.iliLLil = new AtomicBoolean(false);
this.llLii = new Date(0L);
}
public final void LLiIl(lLILIl llilil, boolean z) {
lLILIl llilil2 = this.LLiIl;
this.LLiIl = llilil;
this.iliLLil.set(false);
this.llLii = new Date(0L);
if (z) {
lIliL lilil = this.lIliL;
if (llilil != null) {
lilil.getClass();
Intrinsics.checkNotNullParameter(llilil, "accessToken");
try {
lilil.lLILIl.edit().putString("com.facebook.AccessTokenManager.CachedAccessToken", llilil.lLILIl().toString()).apply();
} catch (JSONException | Exception unused) {
}
} else {
lilil.lLILIl.edit().remove("com.facebook.AccessTokenManager.CachedAccessToken").apply();
Context lLILIl = FacebookSdk.lLILIl();
Intrinsics.checkNotNullParameter(lLILIl, "context");
IlILllI.lIliL(lLILIl, "facebook.com");
IlILllI.lIliL(lLILIl, ".facebook.com");
IlILllI.lIliL(lLILIl, "https://facebook.com");
IlILllI.lIliL(lLILIl, "https://.facebook.com");
}
}
if (llilil2 == null) {
if (llilil == null) {
return;
}
} else if (Intrinsics.lIliL(llilil2, llilil)) {
return;
}
lIliL(llilil2, llilil);
Context lLILIl2 = FacebookSdk.lLILIl();
Date date = lLILIl.LlLlL;
lLILIl IILlL = ILIiLl.lLILIl.IILlL();
AlarmManager alarmManager = (AlarmManager) lLILIl2.getSystemService("alarm");
if (ILIiLl.lLILIl.LLLIl()) {
if ((IILlL != null ? IILlL.lLlii : null) == null || alarmManager == null) {
return;
}
Intent intent = new Intent(lLILIl2, (Class<?>) CurrentAccessTokenExpirationBroadcastReceiver.class);
intent.setAction("com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED");
try {
alarmManager.set(1, IILlL.lLlii.getTime(), Build.VERSION.SDK_INT >= 23 ? PendingIntent.getBroadcast(lLILIl2, 0, intent, 67108864) : PendingIntent.getBroadcast(lLILIl2, 0, intent, 0));
} catch (Exception unused2) {
}
}
}
public final void lIliL(lLILIl llilil, lLILIl llilil2) {
Intent intent = new Intent(FacebookSdk.lLILIl(), (Class<?>) CurrentAccessTokenExpirationBroadcastReceiver.class);
intent.setAction("com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED");
intent.putExtra("com.facebook.sdk.EXTRA_OLD_ACCESS_TOKEN", llilil);
intent.putExtra("com.facebook.sdk.EXTRA_NEW_ACCESS_TOKEN", llilil2);
this.lLILIl.LLiIl(intent);
}
public final void lLILIl() {
final lLILIl llilil = this.LLiIl;
if (llilil != null && this.iliLLil.compareAndSet(false, true)) {
this.llLii = new Date();
final HashSet hashSet = new HashSet();
final HashSet hashSet2 = new HashSet();
final HashSet hashSet3 = new HashSet();
final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
final IiLlI iiLlI = new IiLlI();
LlLlL[] llLlLArr = new LlLlL[2];
LLiIl lLiIl = new LLiIl(atomicBoolean, hashSet, hashSet2, hashSet3, 0);
Bundle bundle = new Bundle();
bundle.putString("fields", "permission,status");
String str = LlLlL.LILlLi;
LlLlL iilIlI = ILIiLl.lLILIl.iilIlI(llilil, "me/permissions", lLiIl);
Intrinsics.checkNotNullParameter(bundle, "<set-?>");
iilIlI.iliLLil = bundle;
iilLIL iillil = iilLIL.lLlii;
iilIlI.IILii = iillil;
llLlLArr[0] = iilIlI;
iliLLil ilillil = new iliLLil(iiLlI, 0);
String str2 = llilil.LILli;
if (str2 == null) {
str2 = "facebook";
}
ilLll illll2 = Intrinsics.lIliL(str2, "instagram") ? new ilLll(1) : new ilLll(0);
Bundle bundle2 = new Bundle();
bundle2.putString("grant_type", illll2.lIliL);
bundle2.putString("client_id", llilil.iiIiLl);
bundle2.putString("fields", "access_token,expires_at,expires_in,data_access_expiration_time,graph_domain");
LlLlL iilIlI2 = ILIiLl.lLILIl.iilIlI(llilil, illll2.lLILIl, ilillil);
Intrinsics.checkNotNullParameter(bundle2, "<set-?>");
iilIlI2.iliLLil = bundle2;
iilIlI2.IILii = iillil;
llLlLArr[1] = iilIlI2;
IiILLi iiILLi = new IiILLi(llLlLArr);
LlLiILL llLiILL = new LlLiILL() {
@Override
public final void onBatchCompleted(LIlLlIL.IiILLi r32) {
throw new UnsupportedOperationException("Method not decompiled: LIlLlIL.llLii.onBatchCompleted(LIlLlIL.IiILLi):void");
}
};
Intrinsics.checkNotNullParameter(llLiILL, "callback");
ArrayList arrayList = iiILLi.liLILi;
if (!arrayList.contains(llLiILL)) {
arrayList.add(llLiILL);
}
Intrinsics.checkNotNullParameter(iiILLi, "requests");
iiiIL.iliLLil(iiILLi);
new iliilLi(iiILLi).executeOnExecutor(FacebookSdk.LLiIl(), new Void[0]);
}
}
}