导航菜单

页面标题

页面副标题

Kredinesia v8.3.1 - c.java 源代码

正在查看: Kredinesia v8.3.1 应用的 c.java JAVA 源代码文件

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


package Y9;

import A.C0020o;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import org.greenrobot.greendao.DaoException;

public abstract class c extends SQLiteOpenHelper {
    private final Context context;
    private b encryptedHelper;
    private boolean loadSQLCipherNativeLibs;
    private final String name;
    private final int version;

    public c(Context context, String str, SQLiteDatabase.CursorFactory cursorFactory) {
        super(context, str, cursorFactory, 27);
        this.loadSQLCipherNativeLibs = true;
        this.context = context;
        this.name = str;
        this.version = 27;
    }

    public final void b() {
        try {
            Class.forName("net.sqlcipher.database.SQLiteOpenHelper");
            try {
                if (Class.forName("Y9.e").getConstructor(c.class, Context.class, String.class, Integer.TYPE, Boolean.TYPE).newInstance(this, this.context, this.name, Integer.valueOf(this.version), Boolean.valueOf(this.loadSQLCipherNativeLibs)) == null) {
                } else {
                    throw new ClassCastException();
                }
            } catch (Exception e10) {
                DaoException daoException = new DaoException();
                try {
                    daoException.initCause(e10);
                    throw daoException;
                } catch (Throwable th) {
                    Log.e("greenDAO", "Could not set initial cause", th);
                    Log.e("greenDAO", "Initial cause is:", e10);
                    throw daoException;
                }
            }
        } catch (ClassNotFoundException unused) {
            throw new DaoException("Using an encrypted database requires SQLCipher, make sure to add it to dependencies: https://greenrobot.org/greendao/documentation/database-encryption/");
        }
    }

    public a getEncryptedReadableDb(String str) {
        b();
        throw null;
    }

    public a getEncryptedWritableDb(String str) {
        b();
        throw null;
    }

    public a getReadableDb() {
        return wrap(getReadableDatabase());
    }

    public a getWritableDb() {
        return wrap(getWritableDatabase());
    }

    public abstract void onCreate(a aVar);

    @Override
    public void onCreate(SQLiteDatabase sQLiteDatabase) {
        onCreate(wrap(sQLiteDatabase));
    }

    @Override
    public void onOpen(SQLiteDatabase sQLiteDatabase) {
        onOpen(wrap(sQLiteDatabase));
    }

    @Override
    public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i4, int i10) {
        onUpgrade(wrap(sQLiteDatabase), i4, i10);
    }

    public void setLoadSQLCipherNativeLibs(boolean z9) {
        this.loadSQLCipherNativeLibs = z9;
    }

    public a wrap(SQLiteDatabase sQLiteDatabase) {
        return new C0020o(25, sQLiteDatabase);
    }

    public void onOpen(a aVar) {
    }

    public void onUpgrade(a aVar, int i4, int i10) {
    }

    public a getEncryptedReadableDb(char[] cArr) {
        b();
        throw null;
    }

    public a getEncryptedWritableDb(char[] cArr) {
        b();
        throw null;
    }
}