导航菜单

页面标题

页面副标题

Oolka v2.4.42 - UXCamContentProvider.java 源代码

正在查看: Oolka v2.4.42 应用的 UXCamContentProvider.java JAVA 源代码文件

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


package com.uxcam;

import android.app.Activity;
import android.app.Application;
import android.content.ComponentCallbacks;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.res.Configuration;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.view.WindowManager;
import com.uxcam.internals.ao;
import com.uxcam.internals.bt;
import com.uxcam.screenaction.di.ScreenActionModule;
import com.uxcam.screenshot.di.ScreenshotModule;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;

@Metadata
public final class UXCamContentProvider extends ContentProvider {

    public static final class a implements ComponentCallbacks {
        public a() {
        }

        @Override
        public final void onConfigurationChanged(@NotNull Configuration newConfig) {
            Intrinsics.checkNotNullParameter(newConfig, "newConfig");
            Context context = UXCamContentProvider.this.getContext();
            Intrinsics.checkNotNull(context);
            Object systemService = context.getSystemService("window");
            Intrinsics.checkNotNull(systemService, "null cannot be cast to non-null type android.view.WindowManager");
            int rotation = ((WindowManager) systemService).getDefaultDisplay().getRotation();
            if (bt.K == null) {
                bt.K = new bt(ScreenshotModule.s.a(), ScreenActionModule.i.a());
            }
            bt btVar = bt.K;
            Intrinsics.checkNotNull(btVar);
            btVar.i().r(rotation, System.currentTimeMillis());
        }

        @Override
        public final void onLowMemory() {
        }
    }

    public static final class aa implements Application.ActivityLifecycleCallbacks {
        @Override
        public final void onActivityCreated(@NotNull Activity activity, Bundle bundle) {
            Intrinsics.checkNotNullParameter(activity, "activity");
            if (bt.K == null) {
                bt.K = new bt(ScreenshotModule.s.a(), ScreenActionModule.i.a());
            }
            bt btVar = bt.K;
            Intrinsics.checkNotNull(btVar);
            ao b = btVar.b();
            if (b.b == 0) {
                b.b = System.currentTimeMillis();
            }
        }

        @Override
        public final void onActivityDestroyed(@NotNull Activity activity) {
            Intrinsics.checkNotNullParameter(activity, "activity");
        }

        @Override
        public final void onActivityPaused(@NotNull Activity activity) {
            Intrinsics.checkNotNullParameter(activity, "activity");
        }

        @Override
        public final void onActivityResumed(@NotNull Activity activity) {
            Intrinsics.checkNotNullParameter(activity, "activity");
            if (bt.K == null) {
                bt.K = new bt(ScreenshotModule.s.a(), ScreenActionModule.i.a());
            }
            bt btVar = bt.K;
            Intrinsics.checkNotNull(btVar);
            btVar.b().b(activity);
        }

        @Override
        public final void onActivitySaveInstanceState(@NotNull Activity activity, @NotNull Bundle outState) {
            Intrinsics.checkNotNullParameter(activity, "activity");
            Intrinsics.checkNotNullParameter(outState, "outState");
        }

        @Override
        public final void onActivityStarted(@NotNull Activity activity) {
            Intrinsics.checkNotNullParameter(activity, "activity");
            if (bt.K == null) {
                bt.K = new bt(ScreenshotModule.s.a(), ScreenActionModule.i.a());
            }
            bt btVar = bt.K;
            Intrinsics.checkNotNull(btVar);
            ao b = btVar.b();
            if (b.b == 0) {
                b.b = System.currentTimeMillis();
            }
        }

        @Override
        public final void onActivityStopped(@NotNull Activity activity) {
            Intrinsics.checkNotNullParameter(activity, "activity");
        }
    }

    @Override
    public final int delete(@NotNull Uri uri, String str, String[] strArr) {
        Intrinsics.checkNotNullParameter(uri, "uri");
        return 0;
    }

    @Override
    public final String getType(@NotNull Uri uri) {
        Intrinsics.checkNotNullParameter(uri, "uri");
        return null;
    }

    @Override
    public final Uri insert(@NotNull Uri uri, ContentValues contentValues) {
        Intrinsics.checkNotNullParameter(uri, "uri");
        return null;
    }

    @Override
    public final boolean onCreate() {
        try {
            if (bt.K == null) {
                bt.K = new bt(ScreenshotModule.s.a(), ScreenActionModule.i.a());
            }
            bt btVar = bt.K;
            Intrinsics.checkNotNull(btVar);
            ao b = btVar.b();
            b.a = true;
            b.b = System.currentTimeMillis();
            com.uxcam.internals.f.a(b);
            Context context = getContext();
            Context applicationContext = context != null ? context.getApplicationContext() : null;
            Application application = applicationContext instanceof Application ? (Application) applicationContext : null;
            if (application != null) {
                application.registerActivityLifecycleCallbacks(new aa());
            }
            if (application != null) {
                application.registerComponentCallbacks(new a());
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return true;
    }

    @Override
    public final Cursor query(@NotNull Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
        Intrinsics.checkNotNullParameter(uri, "uri");
        return null;
    }

    @Override
    public final int update(@NotNull Uri uri, ContentValues contentValues, String str, String[] strArr) {
        Intrinsics.checkNotNullParameter(uri, "uri");
        return 0;
    }
}