导航菜单

页面标题

页面副标题

泰剧兔 v1.5.7.0 - GApplication.java 源代码

正在查看: 泰剧兔 v1.5.7.0 应用的 GApplication.java JAVA 源代码文件

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


package app.video.guoguo;

import android.app.Application;
import android.app.Instrumentation;
import android.os.Handler;
import android.os.Looper;
import android.widget.Toast;
import app.video.guoguo.GApplication;
import f.a;
import f.f;
import io.sentry.Sentry;
import io.sentry.SentryOptions;
import io.sentry.android.core.SentryAndroid;
import io.sentry.android.core.SentryAndroidOptions;
import java.lang.reflect.Field;

public class GApplication extends Application {

    public static Handler f312a;

    static {
        System.loadLibrary("loader");
    }

    public static void c() {
        try {
            Class<?> cls = Class.forName("android.app.ActivityThread");
            Field declaredField = cls.getDeclaredField("sCurrentActivityThread");
            declaredField.setAccessible(true);
            Object obj = declaredField.get(null);
            Field declaredField2 = cls.getDeclaredField("mInstrumentation");
            declaredField2.setAccessible(true);
            declaredField2.set(obj, new f((Instrumentation) declaredField2.get(obj)));
        } catch (ClassNotFoundException | IllegalAccessException | NoSuchFieldException e2) {
            e2.printStackTrace();
        }
    }

    public static void d(SentryAndroidOptions sentryAndroidOptions) {
        sentryAndroidOptions.setDsn("http://" + a.f2500e + "@124.222.91.157:9000/" + a.f2499d);
        sentryAndroidOptions.setEnableNdk(true);
    }

    public final void e(String str) {
        Toast.makeText(this, str, 1).show();
    }

    public native void init();

    @Override
    public void onCreate() {
        c();
        f312a = new Handler(Looper.getMainLooper());
        if (a.f2499d != -1) {
            SentryAndroid.init(this, new Sentry.OptionsConfiguration() {
                public final void configure(SentryOptions sentryOptions) {
                    GApplication.d((SentryAndroidOptions) sentryOptions);
                }
            });
        }
        init();
        super.onCreate();
    }

    public void toast(final String str) {
        f312a.post(new Runnable() {
            @Override
            public final void run() {
                GApplication.this.e(str);
            }
        });
    }
}