导航菜单

页面标题

页面副标题

Hyouka private v5.8.9 - CrashlyticsInitProvider.java 源代码

正在查看: Hyouka private v5.8.9 应用的 CrashlyticsInitProvider.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.crashlytics.android;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import io.fabric.sdk.android.c;
import io.fabric.sdk.android.services.common.r;

public class CrashlyticsInitProvider extends ContentProvider {
    private static final String NDK_MANIFEST_FLAG = "firebase_crashlytics_ndk_enabled";
    private static final String TAG = "CrashlyticsInitProvider";

    interface EnabledCheckStrategy {
        boolean isCrashlyticsEnabled(Context context);
    }

    private io.fabric.sdk.android.h[] createCrashlyticsKits(android.content.Context r7) {
        throw new UnsupportedOperationException("Method not decompiled: com.crashlytics.android.CrashlyticsInitProvider.createCrashlyticsKits(android.content.Context):io.fabric.sdk.android.h[]");
    }

    @Override
    public int delete(Uri uri, String str, String[] strArr) {
        return 0;
    }

    @Override
    public String getType(Uri uri) {
        return null;
    }

    @Override
    public Uri insert(Uri uri, ContentValues contentValues) {
        return null;
    }

    @Override
    public boolean onCreate() {
        Context context = getContext();
        if (!shouldInitializeFabric(context, new r(), new ManifestEnabledCheckStrategy())) {
            c.p().k(TAG, "CrashlyticsInitProvider skipping initialization");
            return true;
        }
        try {
            c.x(context, createCrashlyticsKits(context.getApplicationContext()));
            c.p().k(TAG, "CrashlyticsInitProvider initialization successful");
            return true;
        } catch (IllegalStateException unused) {
            c.p().k(TAG, "CrashlyticsInitProvider initialization unsuccessful");
            return false;
        }
    }

    @Override
    public Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
        return null;
    }

    boolean shouldInitializeFabric(Context context, r rVar, EnabledCheckStrategy enabledCheckStrategy) {
        return rVar.f(context) ? enabledCheckStrategy.isCrashlyticsEnabled(context) : rVar.e(context);
    }

    @Override
    public int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
        return 0;
    }
}