- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
37 lines
1.2 KiB
Java
37 lines
1.2 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.os.Bundle;
|
|
import android.os.IBinder;
|
|
import java.lang.reflect.InvocationTargetException;
|
|
import java.lang.reflect.Method;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class n2 {
|
|
private static Method a;
|
|
|
|
public static IBinder a(Bundle bundle, String str) {
|
|
return xp.a >= 18 ? bundle.getBinder(str) : b(bundle, str);
|
|
}
|
|
|
|
private static IBinder b(Bundle bundle, String str) {
|
|
Method method = a;
|
|
if (method == null) {
|
|
try {
|
|
Method method2 = Bundle.class.getMethod("getIBinder", String.class);
|
|
a = method2;
|
|
method2.setAccessible(true);
|
|
method = a;
|
|
} catch (NoSuchMethodException e) {
|
|
pc.b("BundleUtil", "Failed to retrieve getIBinder method", e);
|
|
return null;
|
|
}
|
|
}
|
|
try {
|
|
return (IBinder) method.invoke(bundle, str);
|
|
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e2) {
|
|
pc.b("BundleUtil", "Failed to invoke getIBinder via reflection", e2);
|
|
return null;
|
|
}
|
|
}
|
|
}
|