- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
27 lines
904 B
Java
27 lines
904 B
Java
package com.facebook.ads.internal.bridge.fbsdk;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import androidx.annotation.Keep;
|
|
import androidx.annotation.Nullable;
|
|
import com.facebook.AccessToken;
|
|
import com.facebook.infer.annotation.Nullsafe;
|
|
|
|
@Keep
|
|
@Nullsafe(Nullsafe.Mode.LOCAL)
|
|
/* loaded from: classes2.dex */
|
|
public class FBLoginASID {
|
|
@Nullable
|
|
@SuppressLint({"CatchGeneralException"})
|
|
public static String getFBLoginASID() {
|
|
try {
|
|
AccessToken.Companion companion = AccessToken.Companion;
|
|
Object invoke = AccessToken.class.getDeclaredMethod("getCurrentAccessToken", new Class[0]).invoke(null, new Object[0]);
|
|
if (invoke != null) {
|
|
return (String) AccessToken.class.getDeclaredMethod("getUserId", new Class[0]).invoke(invoke, new Object[0]);
|
|
}
|
|
} catch (Throwable unused) {
|
|
}
|
|
return null;
|
|
}
|
|
}
|