- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
63 lines
2.4 KiB
Java
63 lines
2.4 KiB
Java
package com.google.android.gms.measurement.internal;
|
|
|
|
import android.content.Context;
|
|
import android.database.sqlite.SQLiteDatabase;
|
|
import android.database.sqlite.SQLiteDatabaseLockedException;
|
|
import android.database.sqlite.SQLiteException;
|
|
import android.database.sqlite.SQLiteOpenHelper;
|
|
import androidx.annotation.WorkerThread;
|
|
|
|
/* loaded from: classes3.dex */
|
|
final class zzfs extends SQLiteOpenHelper {
|
|
private final /* synthetic */ zzft zza;
|
|
|
|
@Override // android.database.sqlite.SQLiteOpenHelper
|
|
@WorkerThread
|
|
public final SQLiteDatabase getWritableDatabase() throws SQLiteException {
|
|
try {
|
|
return super.getWritableDatabase();
|
|
} catch (SQLiteDatabaseLockedException e) {
|
|
throw e;
|
|
} catch (SQLiteException unused) {
|
|
this.zza.zzj().zzg().zza("Opening the local database failed, dropping and recreating it");
|
|
if (!this.zza.zza().getDatabasePath("google_app_measurement_local.db").delete()) {
|
|
this.zza.zzj().zzg().zza("Failed to delete corrupted local db file", "google_app_measurement_local.db");
|
|
}
|
|
try {
|
|
return super.getWritableDatabase();
|
|
} catch (SQLiteException e2) {
|
|
this.zza.zzj().zzg().zza("Failed to open local database. Events will bypass local storage", e2);
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.database.sqlite.SQLiteOpenHelper
|
|
@WorkerThread
|
|
public final void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
|
|
}
|
|
|
|
@Override // android.database.sqlite.SQLiteOpenHelper
|
|
@WorkerThread
|
|
public final void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public zzfs(zzft zzftVar, Context context, String str) {
|
|
super(context, str, (SQLiteDatabase.CursorFactory) null, 1);
|
|
this.zza = zzftVar;
|
|
}
|
|
|
|
@Override // android.database.sqlite.SQLiteOpenHelper
|
|
@WorkerThread
|
|
public final void onCreate(SQLiteDatabase sQLiteDatabase) {
|
|
zzas.zza(this.zza.zzj(), sQLiteDatabase);
|
|
}
|
|
|
|
@Override // android.database.sqlite.SQLiteOpenHelper
|
|
@WorkerThread
|
|
public final void onOpen(SQLiteDatabase sQLiteDatabase) {
|
|
zzas.zza(this.zza.zzj(), sQLiteDatabase, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", null);
|
|
}
|
|
}
|