what-the-bank/sources/o/PkX.java

88 lines
3.4 KiB
Java

package o;
import android.content.ComponentName;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.PackageItemInfo;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import androidx.startup.StartupException;
import java.util.HashSet;
import java.util.Iterator;
import o.ttp;
/* loaded from: classes.dex */
public class PkX extends ContentProvider {
/* JADX WARN: Multi-variable type inference failed */
@Override // android.content.ContentProvider
public final boolean onCreate() {
Context context = getContext();
if (context != null) {
if (context.getApplicationContext() == null) {
return true;
}
C6313cPD c = C6313cPD.c(context);
try {
try {
C1776aOB.a("Startup");
Bundle bundle = (Bundle) PackageItemInfo.class.getField("metaData").get(c.b.getPackageManager().getProviderInfo(new ComponentName(c.b.getPackageName(), PkX.class.getName()), 128));
String string = c.b.getString(ttp.IeS.androidx_startup);
if (bundle != null) {
try {
HashSet hashSet = new HashSet();
for (String str : bundle.keySet()) {
if (string.equals(bundle.getString(str, null))) {
Class<?> cls = Class.forName(str);
if (qYK.class.isAssignableFrom(cls)) {
c.e.add(cls);
}
}
}
Iterator<Class<? extends qYK<?>>> it = c.e.iterator();
while (it.hasNext()) {
c.c(it.next(), hashSet);
}
} catch (ClassNotFoundException e) {
throw new StartupException(e);
}
}
return true;
} catch (PackageManager.NameNotFoundException e2) {
throw new StartupException(e2);
}
} finally {
C1776aOB.c();
}
}
throw new StartupException("Context cannot be null");
}
@Override // android.content.ContentProvider
public final Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
throw new IllegalStateException("Not allowed.");
}
@Override // android.content.ContentProvider
public final String getType(Uri uri) {
throw new IllegalStateException("Not allowed.");
}
@Override // android.content.ContentProvider
public final Uri insert(Uri uri, ContentValues contentValues) {
throw new IllegalStateException("Not allowed.");
}
@Override // android.content.ContentProvider
public final int delete(Uri uri, String str, String[] strArr) {
throw new IllegalStateException("Not allowed.");
}
@Override // android.content.ContentProvider
public final int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
throw new IllegalStateException("Not allowed.");
}
}