正在查看: Meine NEW v2.0.3616 应用的 MlKitInitProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Meine NEW v2.0.3616 应用的 MlKitInitProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.google.mlkit.common.internal;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.ProviderInfo;
import android.database.Cursor;
import android.net.Uri;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.tasks.TaskExecutors;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentDiscovery;
import com.google.firebase.components.ComponentRuntime;
import w4.h;
public class MlKitInitProvider extends ContentProvider {
@Override
public final void attachInfo(Context context, ProviderInfo providerInfo) {
Preconditions.checkState(!providerInfo.authority.equals("com.google.mlkit.common.mlkitinitprovider"), "Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle.");
super.attachInfo(context, providerInfo);
}
@Override
public final int delete(Uri uri, String str, String[] strArr) {
return 0;
}
@Override
public final String getType(Uri uri) {
return null;
}
@Override
public final Uri insert(Uri uri, ContentValues contentValues) {
return null;
}
@Override
public final boolean onCreate() {
Context context = getContext();
if (context == null) {
return false;
}
synchronized (h.f5788b) {
Preconditions.checkState(h.c == null, "MlKitContext is already initialized");
h hVar = new h();
h.c = hVar;
Context applicationContext = context.getApplicationContext();
if (applicationContext != null) {
context = applicationContext;
}
ComponentRuntime build = ComponentRuntime.builder(TaskExecutors.MAIN_THREAD).addLazyComponentRegistrars(ComponentDiscovery.forContext(context, MlKitComponentDiscoveryService.class).discoverLazy()).addComponent(Component.of(context, Context.class, new Class[0])).addComponent(Component.of(hVar, h.class, new Class[0])).build();
hVar.f5789a = build;
build.initializeEagerComponents(true);
}
return false;
}
@Override
public final Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
return null;
}
@Override
public final int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
return 0;
}
}