Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 k.java 源代码,内容仅作参考
package com.zendrive.sdk.i;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteStatement;
import android.os.Bundle;
import android.util.Log;
import androidx.annotation.NonNull;
import com.zendrive.sdk.data.AccidentMotion;
import com.zendrive.sdk.data.AccidentRawAccelerometer;
import com.zendrive.sdk.data.Barometer;
import com.zendrive.sdk.data.ClientSnapshot;
import com.zendrive.sdk.data.DetectorInfo;
import com.zendrive.sdk.data.DistractedDrivingPhoneState;
import com.zendrive.sdk.data.Driver;
import com.zendrive.sdk.data.Event;
import com.zendrive.sdk.data.GPS;
import com.zendrive.sdk.data.GPSDerivedFeature;
import com.zendrive.sdk.data.GeofenceBreach;
import com.zendrive.sdk.data.HighFreqGps;
import com.zendrive.sdk.data.InsurancePeriodEvent;
import com.zendrive.sdk.data.Motion;
import com.zendrive.sdk.data.PartialTrip;
import com.zendrive.sdk.data.PauseTrackingInfo;
import com.zendrive.sdk.data.PhoneScreenTap;
import com.zendrive.sdk.data.RecognizedActivity;
import com.zendrive.sdk.data.ScannedBeaconInfo;
import com.zendrive.sdk.data.SdkHealth;
import com.zendrive.sdk.data.SdkLog;
import com.zendrive.sdk.data.SpeedLimitDataPoint;
import com.zendrive.sdk.data.Trip;
import com.zendrive.sdk.data.TripAdditionalInfo;
import com.zendrive.sdk.data.TripInsight;
import com.zendrive.sdk.data.TripTimestampPoint;
import com.zendrive.sdk.data.TripTrail;
import com.zendrive.sdk.data.Vehicle;
import com.zendrive.sdk.data.ZendriveBluetoothDevice;
import com.zendrive.sdk.data.feedback.EventFeedback;
import com.zendrive.sdk.data.feedback.TripFeedback;
import java.io.File;
import java.lang.reflect.Field;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
public class k extends SQLiteOpenHelper implements n4 {
@SuppressLint({"StaticFieldLeak"})
private static k f41341l;
private static Comparator<Field> f41342m = new b();
public static final int f41343n = 0;
private SQLiteDatabase f41344a;
private o f41345b;
private k4 f41346c;
private j7 f41347d;
private u f41348e;
private j4 f41349f;
private Context f41350g;
private String f41351h;
private List<com.zendrive.sdk.data.e> f41352i;
private Map<Class<? extends com.zendrive.sdk.data.e>, SQLiteStatement> f41353j;
private boolean f41354k;
private static class b implements Comparator<Field> {
private b() {
}
@Override
public int compare(Field field, Field field2) {
return field.getName().compareTo(field2.getName());
}
}
public enum c {
ASC,
DESC
}
protected k(Context context, String str, String str2) {
super(context.getApplicationContext(), str2, (SQLiteDatabase.CursorFactory) null, 58);
this.f41352i = Collections.synchronizedList(new ArrayList());
this.f41353j = null;
this.f41354k = true;
this.f41350g = context.getApplicationContext();
this.f41351h = str;
getWritableDatabase();
}
public static void a() {
f41341l = null;
}
private void c(SQLiteDatabase sQLiteDatabase) {
Cursor rawQuery = sQLiteDatabase.rawQuery("SELECT name FROM sqlite_master WHERE type='table'", null);
ArrayList arrayList = new ArrayList();
while (rawQuery.moveToNext()) {
arrayList.add(rawQuery.getString(0));
}
rawQuery.close();
Iterator it = arrayList.iterator();
while (it.hasNext()) {
String str = (String) it.next();
if (!str.equals("android_metadata")) {
sQLiteDatabase.execSQL("DROP TABLE IF EXISTS " + str);
}
}
this.f41345b = null;
this.f41348e = null;
this.f41347d = null;
this.f41346c = null;
onCreate(sQLiteDatabase);
}
public static k f() {
return f41341l;
}
private void g(SQLiteDatabase sQLiteDatabase) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom43To44", "Upgrading db from 43 to 44", new Object[0]);
String simpleName = TripInsight.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName, "rapidAccelerationRating", "TEXT", "NA");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName, "hardBrakeRating", "TEXT", "NA");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName, "hardTurnRating", "TEXT", "NA");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName, "phoneUseRating", "TEXT", "NA");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName, "overSpeedingRating", "TEXT", "NA");
sQLiteDatabase.execSQL(a(TripAdditionalInfo.class));
sQLiteDatabase.execSQL(a(DetectorInfo.class));
}
private void j(SQLiteDatabase sQLiteDatabase) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom53to54", "Upgrading db from 53 to 54", new Object[0]);
String simpleName = Trip.class.getSimpleName();
String simpleName2 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName, "extrapolatedDistance", "DOUBLE", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName2, "extrapolatedDistance", "DOUBLE", "-1");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "estimatedStartLocationLatitude", "DOUBLE");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2, "estimatedStartLocationLatitude", "DOUBLE");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "estimatedStartLocationLongitude", "DOUBLE");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2, "estimatedStartLocationLongitude", "DOUBLE");
sQLiteDatabase.execSQL(a(TripTimestampPoint.class));
sQLiteDatabase.execSQL("INSERT INTO " + TripTimestampPoint.class.getSimpleName() + " (timestamp,timestampEnd) SELECT timestamp,timestampEnd from " + Trip.class.getSimpleName());
}
private void k(SQLiteDatabase sQLiteDatabase) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom54to55", "Upgrading db from 54 to 55", new Object[0]);
sQLiteDatabase.execSQL(a(PauseTrackingInfo.class));
sQLiteDatabase.execSQL(a(DistractedDrivingPhoneState.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, SdkHealth.class.getSimpleName(), "isAutoTrackingPaused", "INTEGER");
String simpleName = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "pauseTrackingInfoDataMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "pauseTrackingInfoDataWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "distractedDrivingPhoneStateMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "distractedDrivingPhoneStateWatermark", "INTEGER");
}
public j4 b() {
return this.f41349f;
}
public k4 d() {
return this.f41346c;
}
public o e() {
return this.f41345b;
}
public j7 h() {
return this.f41347d;
}
public u i() {
return this.f41348e;
}
@Override
public void onConfigure(SQLiteDatabase sQLiteDatabase) {
sQLiteDatabase.enableWriteAheadLogging();
}
@Override
public void onCreate(SQLiteDatabase sQLiteDatabase) {
Iterator<Class<? extends com.zendrive.sdk.data.e>> it = com.zendrive.sdk.utilities.i0.c().iterator();
while (it.hasNext()) {
try {
sQLiteDatabase.execSQL(a(it.next()));
} catch (Exception e15) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "onCreate", Log.getStackTraceString(e15), new Object[0]);
}
}
try {
a(sQLiteDatabase).a();
if (this.f41346c == null) {
this.f41346c = new k4(sQLiteDatabase);
}
this.f41346c.g();
if (this.f41347d == null) {
this.f41347d = new j7(sQLiteDatabase);
}
this.f41347d.a();
b(sQLiteDatabase).a();
if (this.f41349f == null) {
this.f41349f = new j4(sQLiteDatabase);
}
this.f41349f.c();
} catch (Exception e16) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "onCreate", Log.getStackTraceString(e16), new Object[0]);
}
}
@Override
public void onDowngrade(SQLiteDatabase sQLiteDatabase, int i15, int i16) {
c(sQLiteDatabase);
}
@Override
public void onOpen(SQLiteDatabase sQLiteDatabase) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "onOpen", "DB is now open for " + this.f41351h, new Object[0]);
this.f41344a = sQLiteDatabase;
this.f41345b = a(sQLiteDatabase);
if (this.f41346c == null) {
this.f41346c = new k4(sQLiteDatabase);
}
k4 k4Var = this.f41346c;
this.f41346c = k4Var;
k4Var.b();
if (this.f41347d == null) {
this.f41347d = new j7(sQLiteDatabase);
}
this.f41347d = this.f41347d;
this.f41348e = b(sQLiteDatabase);
if (this.f41349f == null) {
this.f41349f = new j4(sQLiteDatabase);
}
this.f41349f = this.f41349f;
if (this.f41353j == null) {
this.f41353j = new HashMap();
ArrayList<Class<? extends com.zendrive.sdk.data.e>> c15 = com.zendrive.sdk.utilities.i0.c();
StringBuilder sb5 = new StringBuilder(160);
StringBuilder sb6 = new StringBuilder(80);
Iterator<Class<? extends com.zendrive.sdk.data.e>> it = c15.iterator();
while (it.hasNext()) {
Class<? extends com.zendrive.sdk.data.e> next = it.next();
Field[] p15 = com.zendrive.sdk.cdetectorlib.h.p(next);
Arrays.sort(p15, f41342m);
sb5.setLength(0);
sb6.setLength(0);
String simpleName = next.getSimpleName();
sb5.append("INSERT INTO ");
sb5.append(simpleName);
sb5.append("(");
sb6.append(" VALUES (");
int length = p15.length;
boolean z15 = true;
int i15 = 0;
while (i15 < length) {
Field field = p15[i15];
if (!z15) {
sb5.append(", ");
sb6.append(", ");
}
sb5.append(field.getName());
sb6.append("?");
i15++;
z15 = false;
}
sb5.append(")");
sb6.append(");");
sb5.append((CharSequence) sb6);
this.f41353j.put(next, this.f41344a.compileStatement(sb5.toString()));
}
}
}
@Override
public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i15, int i16) {
Class cls;
Class cls2;
String str;
String str2;
Class<? extends com.zendrive.sdk.data.e> cls3;
Class<? extends com.zendrive.sdk.data.e> cls4;
String simpleName;
String str3;
Class<? extends com.zendrive.sdk.data.e> cls5;
switch (i15) {
case 9:
cls = Event.class;
try {
cls2 = GPS.class;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, GPS.class.getSimpleName(), "course", "INTEGER");
str = "DOUBLE";
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom10To11", "Upgrading DB from 10 to 11", new Object[0]);
sQLiteDatabase.execSQL(a(AccidentMotion.class));
String simpleName2 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2, "accidentMotionMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2, "accidentMotionWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Driver.class.getSimpleName(), "deviceInfo", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom12To13", "Upgrading DB from 12 to 13", new Object[0]);
String simpleName3 = Motion.class.getSimpleName();
String simpleName4 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName3, "proximity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName4, "proximity", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom13To14", "Upgrading DB from 13 to 14", new Object[0]);
sQLiteDatabase.execSQL(a(AccidentRawAccelerometer.class));
String simpleName5 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName5, "accidentRawAccelerometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName5, "accidentRawAccelerometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom14To15", "Upgrading DB from 14 to 15", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom15To16", "Upgrading DB from 15 to 16", new Object[0]);
sQLiteDatabase.execSQL(a(SdkLog.class));
String simpleName6 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName6, "sdkLogWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName6, "sdkLogMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom16To17", "Upgrading DB from 16 to 17", new Object[0]);
str2 = str;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName7 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName8 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8, "quaternionW", str2);
String simpleName9 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName10 = Trip.class.getSimpleName();
String simpleName11 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName10, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName11, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName12 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName12, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName12, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName13 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
this.f41346c = new k4(sQLiteDatabase);
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15 = a(sQLiteDatabase);
a15.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, simpleName);
sQLiteDatabase.execSQL(a(cls4));
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
this.f41347d = new j7(sQLiteDatabase);
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16 = Driver.class.getSimpleName();
String simpleName17 = Trip.class.getSimpleName();
String simpleName18 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
this.f41349f = new j4(sQLiteDatabase);
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20, "isPreciseLocationDisabled", "INTEGER");
return;
} catch (Exception e15) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "onUpgrade", Log.getStackTraceString(e15), new Object[0]);
c(sQLiteDatabase);
return;
}
case 10:
cls = Event.class;
cls2 = GPS.class;
str = "DOUBLE";
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom10To11", "Upgrading DB from 10 to 11", new Object[0]);
sQLiteDatabase.execSQL(a(AccidentMotion.class));
String simpleName22 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName22, "accidentMotionMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName22, "accidentMotionWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Driver.class.getSimpleName(), "deviceInfo", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom12To13", "Upgrading DB from 12 to 13", new Object[0]);
String simpleName32 = Motion.class.getSimpleName();
String simpleName42 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName32, "proximity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName42, "proximity", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom13To14", "Upgrading DB from 13 to 14", new Object[0]);
sQLiteDatabase.execSQL(a(AccidentRawAccelerometer.class));
String simpleName52 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName52, "accidentRawAccelerometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName52, "accidentRawAccelerometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom14To15", "Upgrading DB from 14 to 15", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom15To16", "Upgrading DB from 15 to 16", new Object[0]);
sQLiteDatabase.execSQL(a(SdkLog.class));
String simpleName62 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName62, "sdkLogWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName62, "sdkLogMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom16To17", "Upgrading DB from 16 to 17", new Object[0]);
str2 = str;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName72 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName82 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82, "quaternionW", str2);
String simpleName92 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName102 = Trip.class.getSimpleName();
String simpleName112 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName102, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName112, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName122 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName122, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName122, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName132 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a152 = a(sQLiteDatabase);
a152.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162 = Driver.class.getSimpleName();
String simpleName172 = Trip.class.getSimpleName();
String simpleName182 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202, "isPreciseLocationDisabled", "INTEGER");
return;
case 11:
str = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Driver.class.getSimpleName(), "deviceInfo", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom12To13", "Upgrading DB from 12 to 13", new Object[0]);
String simpleName322 = Motion.class.getSimpleName();
String simpleName422 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName322, "proximity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName422, "proximity", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom13To14", "Upgrading DB from 13 to 14", new Object[0]);
sQLiteDatabase.execSQL(a(AccidentRawAccelerometer.class));
String simpleName522 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName522, "accidentRawAccelerometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName522, "accidentRawAccelerometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom14To15", "Upgrading DB from 14 to 15", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom15To16", "Upgrading DB from 15 to 16", new Object[0]);
sQLiteDatabase.execSQL(a(SdkLog.class));
String simpleName622 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName622, "sdkLogWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName622, "sdkLogMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom16To17", "Upgrading DB from 16 to 17", new Object[0]);
str2 = str;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName722 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName822 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822, "quaternionW", str2);
String simpleName922 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName1022 = Trip.class.getSimpleName();
String simpleName1122 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1022, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1122, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName1222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName1322 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a1522 = a(sQLiteDatabase);
a1522.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a1522.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622 = Driver.class.getSimpleName();
String simpleName1722 = Trip.class.getSimpleName();
String simpleName1822 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022, "isPreciseLocationDisabled", "INTEGER");
return;
case 12:
str = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom12To13", "Upgrading DB from 12 to 13", new Object[0]);
String simpleName3222 = Motion.class.getSimpleName();
String simpleName4222 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName3222, "proximity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName4222, "proximity", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom13To14", "Upgrading DB from 13 to 14", new Object[0]);
sQLiteDatabase.execSQL(a(AccidentRawAccelerometer.class));
String simpleName5222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName5222, "accidentRawAccelerometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName5222, "accidentRawAccelerometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom14To15", "Upgrading DB from 14 to 15", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom15To16", "Upgrading DB from 15 to 16", new Object[0]);
sQLiteDatabase.execSQL(a(SdkLog.class));
String simpleName6222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName6222, "sdkLogWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName6222, "sdkLogMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom16To17", "Upgrading DB from 16 to 17", new Object[0]);
str2 = str;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName7222 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName8222 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222, "quaternionW", str2);
String simpleName9222 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName10222 = Trip.class.getSimpleName();
String simpleName11222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName10222, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName11222, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName12222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName12222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName12222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName13222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15222 = a(sQLiteDatabase);
a15222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222 = Driver.class.getSimpleName();
String simpleName17222 = Trip.class.getSimpleName();
String simpleName18222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222, "isPreciseLocationDisabled", "INTEGER");
return;
case 13:
str = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom13To14", "Upgrading DB from 13 to 14", new Object[0]);
sQLiteDatabase.execSQL(a(AccidentRawAccelerometer.class));
String simpleName52222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName52222, "accidentRawAccelerometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName52222, "accidentRawAccelerometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom14To15", "Upgrading DB from 14 to 15", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom15To16", "Upgrading DB from 15 to 16", new Object[0]);
sQLiteDatabase.execSQL(a(SdkLog.class));
String simpleName62222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName62222, "sdkLogWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName62222, "sdkLogMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom16To17", "Upgrading DB from 16 to 17", new Object[0]);
str2 = str;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName72222 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName82222 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82222, "quaternionW", str2);
String simpleName92222 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92222, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName102222 = Trip.class.getSimpleName();
String simpleName112222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName102222, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName112222, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName122222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName122222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName122222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName132222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a152222 = a(sQLiteDatabase);
a152222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222 = Driver.class.getSimpleName();
String simpleName172222 = Trip.class.getSimpleName();
String simpleName182222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222, "isPreciseLocationDisabled", "INTEGER");
return;
case 14:
str = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom14To15", "Upgrading DB from 14 to 15", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "tripEndReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom15To16", "Upgrading DB from 15 to 16", new Object[0]);
sQLiteDatabase.execSQL(a(SdkLog.class));
String simpleName622222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName622222, "sdkLogWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName622222, "sdkLogMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom16To17", "Upgrading DB from 16 to 17", new Object[0]);
str2 = str;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName722222 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName822222 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822222, "quaternionW", str2);
String simpleName922222 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922222, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName1022222 = Trip.class.getSimpleName();
String simpleName1122222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1022222, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1122222, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName1222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1222222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1222222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName1322222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a1522222 = a(sQLiteDatabase);
a1522222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a1522222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222 = Driver.class.getSimpleName();
String simpleName1722222 = Trip.class.getSimpleName();
String simpleName1822222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222, "isPreciseLocationDisabled", "INTEGER");
return;
case 15:
str = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom15To16", "Upgrading DB from 15 to 16", new Object[0]);
sQLiteDatabase.execSQL(a(SdkLog.class));
String simpleName6222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName6222222, "sdkLogWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName6222222, "sdkLogMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom16To17", "Upgrading DB from 16 to 17", new Object[0]);
str2 = str;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName7222222 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222222, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222222, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222222, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222222, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222222, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName7222222, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName8222222 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222222, "quaternionW", str2);
String simpleName9222222 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222222, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName10222222 = Trip.class.getSimpleName();
String simpleName11222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName10222222, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName11222222, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName12222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName12222222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName12222222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName13222222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15222222 = a(sQLiteDatabase);
a15222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222 = Driver.class.getSimpleName();
String simpleName17222222 = Trip.class.getSimpleName();
String simpleName18222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 16:
str = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom16To17", "Upgrading DB from 16 to 17", new Object[0]);
str2 = str;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "maxSpeed", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName72222222 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222222, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222222, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222222, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222222, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222222, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName72222222, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName82222222 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82222222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82222222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82222222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName82222222, "quaternionW", str2);
String simpleName92222222 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92222222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92222222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92222222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName92222222, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName102222222 = Trip.class.getSimpleName();
String simpleName112222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName102222222, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName112222222, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName122222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName122222222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName122222222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName132222222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a152222222 = a(sQLiteDatabase);
a152222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222 = Driver.class.getSimpleName();
String simpleName172222222 = Trip.class.getSimpleName();
String simpleName182222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 17:
str2 = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom17To18", "Upgrading DB from 17 to 18", new Object[0]);
String simpleName722222222 = cls.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222222, "severity", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222222, "eventDetectorId", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222222, "latitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222222, "longitudeStart", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222222, "latitudeEnd", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName722222222, "longitudeEnd", str2);
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(cls3));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName822222222 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822222222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822222222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822222222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName822222222, "quaternionW", str2);
String simpleName922222222 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922222222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922222222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922222222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName922222222, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName1022222222 = Trip.class.getSimpleName();
String simpleName1122222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1022222222, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1122222222, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName1222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1222222222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1222222222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName1322222222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a1522222222 = a(sQLiteDatabase);
a1522222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a1522222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222 = Driver.class.getSimpleName();
String simpleName1722222222 = Trip.class.getSimpleName();
String simpleName1822222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 18:
str2 = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
cls3 = TripTrail.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom18To19", "Upgrading DB from 18 to 19", new Object[0]);
String simpleName8222222222 = Motion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222222222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222222222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222222222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName8222222222, "quaternionW", str2);
String simpleName9222222222 = AccidentMotion.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222222222, "quaternionX", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222222222, "quaternionY", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222222222, "quaternionZ", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName9222222222, "quaternionW", str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName10222222222 = Trip.class.getSimpleName();
String simpleName11222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName10222222222, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName11222222222, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName12222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName12222222222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName12222222222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName13222222222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15222222222 = a(sQLiteDatabase);
a15222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222 = Driver.class.getSimpleName();
String simpleName17222222222 = Trip.class.getSimpleName();
String simpleName18222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 19:
str2 = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
cls3 = TripTrail.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom19To20", "Upgrading DB from 19 to 20", new Object[0]);
String simpleName102222222222 = Trip.class.getSimpleName();
String simpleName112222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName102222222222, "isValid", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName112222222222, "isValid", "INTEGER");
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName122222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName122222222222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName122222222222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName132222222222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222222222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222222222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName132222222222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a152222222222 = a(sQLiteDatabase);
a152222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222 = Driver.class.getSimpleName();
String simpleName172222222222 = Trip.class.getSimpleName();
String simpleName182222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 20:
str2 = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
cls3 = TripTrail.class;
sQLiteDatabase.execSQL(a(GPSDerivedFeature.class));
String simpleName1222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1222222222222, "speedBandWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1222222222222, "speedBandMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls3.getSimpleName(), "isSpeedLimitPoint", "INTEGER");
a(sQLiteDatabase).a();
String simpleName1322222222222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222222222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222222222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1322222222222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a1522222222222 = a(sQLiteDatabase);
a1522222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a1522222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222 = Driver.class.getSimpleName();
String simpleName1722222222222 = Trip.class.getSimpleName();
String simpleName1822222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 21:
str2 = "DOUBLE";
cls = Event.class;
cls2 = GPS.class;
a(sQLiteDatabase).a();
String simpleName13222222222222 = cls2.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222222222, "estimatedSpeed", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222222222, "smoothedLatitude", str2);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName13222222222222, "smoothedLongitude", str2);
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15222222222222 = a(sQLiteDatabase);
a15222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 22:
str2 = "DOUBLE";
cls = Event.class;
d(sQLiteDatabase);
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a152222222222222 = a(sQLiteDatabase);
a152222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222222 = Driver.class.getSimpleName();
String simpleName172222222222222 = Trip.class.getSimpleName();
String simpleName182222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 23:
str2 = "DOUBLE";
cls = Event.class;
sQLiteDatabase.execSQL(a(TripInsight.class));
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a1522222222222222 = a(sQLiteDatabase);
a1522222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a1522222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222222 = Driver.class.getSimpleName();
String simpleName1722222222222222 = Trip.class.getSimpleName();
String simpleName1822222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 24:
str2 = "DOUBLE";
cls = Event.class;
a(sQLiteDatabase).e();
a(sQLiteDatabase, Trip.class);
a(sQLiteDatabase, PartialTrip.class);
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15222222222222222 = a(sQLiteDatabase);
a15222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 25:
str2 = "DOUBLE";
cls = Event.class;
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a152222222222222222 = a(sQLiteDatabase);
a152222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222222222 = Driver.class.getSimpleName();
String simpleName172222222222222222 = Trip.class.getSimpleName();
String simpleName182222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 26:
str2 = "DOUBLE";
cls = Event.class;
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "state", "TEXT", Trip.a.ANALYZED.name());
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "state", "TEXT");
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a1522222222222222222 = a(sQLiteDatabase);
a1522222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a1522222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222222222 = Driver.class.getSimpleName();
String simpleName1722222222222222222 = Trip.class.getSimpleName();
String simpleName1822222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 27:
str2 = "DOUBLE";
cls = Event.class;
if (this.f41346c == null) {
}
this.f41346c.g();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15222222222222222222 = a(sQLiteDatabase);
a15222222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15222222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 28:
str2 = "DOUBLE";
cls = Event.class;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, RecognizedActivity.class.getSimpleName(), "generatedAtTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a152222222222222222222 = a(sQLiteDatabase);
a152222222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152222222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222222222222 = Driver.class.getSimpleName();
String simpleName172222222222222222222 = Trip.class.getSimpleName();
String simpleName182222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 29:
str2 = "DOUBLE";
cls = Event.class;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "insurancePeriod", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "insurancePeriod", "TEXT");
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a1522222222222222222222 = a(sQLiteDatabase);
a1522222222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a1522222222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222222222222 = Driver.class.getSimpleName();
String simpleName1722222222222222222222 = Trip.class.getSimpleName();
String simpleName1822222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 30:
str2 = "DOUBLE";
cls = Event.class;
sQLiteDatabase.execSQL(a(InsurancePeriodEvent.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "insurancePeriodEventMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15222222222222222222222 = a(sQLiteDatabase);
a15222222222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15222222222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 31:
str2 = "DOUBLE";
cls = Event.class;
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls.getSimpleName(), "prod", "INTEGER");
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a152222222222222222222222 = a(sQLiteDatabase);
a152222222222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152222222222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222222222222222 = Driver.class.getSimpleName();
String simpleName172222222222222222222222 = Trip.class.getSimpleName();
String simpleName182222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 32:
str2 = "DOUBLE";
e(sQLiteDatabase);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a1522222222222222222222222 = a(sQLiteDatabase);
a1522222222222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a1522222222222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222222222222222 = Driver.class.getSimpleName();
String simpleName1722222222222222222222222 = Trip.class.getSimpleName();
String simpleName1822222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 33:
str2 = "DOUBLE";
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "playServicesVersion", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "playServicesVersion", "INTEGER");
o a15222222222222222222222222 = a(sQLiteDatabase);
a15222222222222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a15222222222222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 34:
str2 = "DOUBLE";
o a152222222222222222222222222 = a(sQLiteDatabase);
a152222222222222222222222222.f42108a.delete("grids", null, null);
com.zendrive.sdk.utilities.m.K(a152222222222222222222222222.b(), "zendrive_transit_");
a(sQLiteDatabase).e();
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName142222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName142222222222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222222222222222222 = Driver.class.getSimpleName();
String simpleName172222222222222222222222222 = Trip.class.getSimpleName();
String simpleName182222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 35:
str2 = "DOUBLE";
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "SpeedBand");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Battery");
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName1422222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1422222222222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222222222222222222 = Driver.class.getSimpleName();
String simpleName1722222222222222222222222222 = Trip.class.getSimpleName();
String simpleName1822222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 36:
str2 = "DOUBLE";
cls4 = PhoneScreenTap.class;
sQLiteDatabase.execSQL(a(cls4));
String simpleName14222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222222222222222, "phoneScreenTapMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName14222222222222222222222222222, "phoneScreenTapWatermark", "INTEGER");
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 37:
str2 = "DOUBLE";
cls4 = PhoneScreenTap.class;
simpleName = cls4.getSimpleName();
if (com.zendrive.sdk.cdetectorlib.h.n(sQLiteDatabase, simpleName, "action")) {
}
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName172222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName182222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 38:
str2 = "DOUBLE";
f(sQLiteDatabase);
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName1522222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1522222222222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName1722222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName1822222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 39:
str2 = "DOUBLE";
sQLiteDatabase.execSQL(a(HighFreqGps.class));
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, ClientSnapshot.class.getSimpleName(), "eventDataWatermarkJSON", "TEXT");
str3 = "-1";
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "pgrDistance", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName15222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName15222222222222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 40:
str2 = "DOUBLE";
str3 = "-1";
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom40To41", "Upgrading DB from 40 to 41", new Object[0]);
sQLiteDatabase.execSQL(a(Barometer.class));
String simpleName152222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222222222222222, "barometerWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName152222222222222222222222222222222, "barometerMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName172222222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName182222222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 41:
str2 = "DOUBLE";
str3 = "-1";
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom41To42", "Upgrading db from 41 to 42", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "mountFraction", str2, str3);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName1722222222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName1822222222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 42:
str3 = "-1";
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom42To43", "Upgrading db from 42 to 43", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "phonePosition", "TEXT", "Unknown");
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 43:
str3 = "-1";
g(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName162222222222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName172222222222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName182222222222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName162222222222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName172222222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName182222222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 44:
str3 = "-1";
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom44To45", "Upgrading db from 44 to 45", new Object[0]);
if (this.f41347d == null) {
}
this.f41347d.a();
b(sQLiteDatabase).a();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName1622222222222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName1722222222222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName1822222222222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1622222222222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1722222222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName1822222222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName1922222222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName1922222222222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 45:
str3 = "-1";
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom45to46", "Upgrading db from 45 to 46", new Object[0]);
String simpleName16222222222222222222222222222222222222 = Driver.class.getSimpleName();
String simpleName17222222222222222222222222222222222222 = Trip.class.getSimpleName();
String simpleName18222222222222222222222222222222222222 = PartialTrip.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName16222222222222222222222222222222222222, "region", "TEXT");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName17222222222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName18222222222222222222222222222222222222, "tripEndDecisionTimestamp", "INTEGER", str3);
h(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName19222222222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName19222222222222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 46:
h(sQLiteDatabase);
case 47:
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom47to48", "Upgrading db from 47 to 48", new Object[0]);
if (this.f41349f == null) {
}
this.f41349f.c();
break;
case 48:
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom48to49", "Upgrading db from 48 to 49", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawAccelerometer");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "AccidentRawGravity");
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "RawGravity");
case 49:
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom49to50", "Upgrading db from 49 to 50", new Object[0]);
cls5 = SdkHealth.class;
sQLiteDatabase.execSQL(a(cls5));
String simpleName192222222222222222222222222222222222222 = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222222222222222, "sdkHealthMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName192222222222222222222222222222222222222, "sdkHealthWatermark", "INTEGER");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 50:
cls5 = SdkHealth.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom50to51", "Upgrading db from 50 to 51", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isNetworkReachable", "INTEGER");
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 51:
cls5 = SdkHealth.class;
i(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 52:
cls5 = SdkHealth.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom52to53", "Upgrading db from 52 to 53", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, cls5.getSimpleName(), "isBluetoothEnabled", "INTEGER");
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 53:
cls5 = SdkHealth.class;
j(sQLiteDatabase);
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 54:
cls5 = SdkHealth.class;
k(sQLiteDatabase);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 55:
cls5 = SdkHealth.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom55to56", "Upgrading db from 55 to 56", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "TagInfo");
sQLiteDatabase.execSQL(a(Vehicle.class));
sQLiteDatabase.execSQL(a(ScannedBeaconInfo.class));
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName202222222222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName202222222222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 56:
cls5 = SdkHealth.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom56to57", "Upgrading db from 56 to 57", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PauseTrackingInfo.class.getSimpleName(), "pauseTrackingReason", "TEXT");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName2022222222222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName2022222222222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
case 57:
cls5 = SdkHealth.class;
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom57to58", "Upgrading db from 57 to 58", new Object[0]);
String simpleName20222222222222222222222222222222222222222222222 = cls5.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222222222222222, "sdkHealthReason", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName20222222222222222222222222222222222222222222222, "isPreciseLocationDisabled", "INTEGER");
return;
default:
return;
}
}
public static k a(Context context, String str) {
return new k(context, str, a(str));
}
public static k b(Context context, String str) {
if (f41341l == null) {
f41341l = a(context, str);
} else {
String str2 = "data store already created with different driver id. Old driverId: " + f41341l.f41351h + ", new driverId: " + str;
if (!f41341l.f41351h.equals(str)) {
com.zendrive.sdk.utilities.b1.g("CentralDataStore", "createInstance", str2, new Object[0]);
f41341l = a(context, str);
}
}
return f41341l;
}
private void d(SQLiteDatabase sQLiteDatabase) {
sQLiteDatabase.execSQL(a(TripFeedback.class));
sQLiteDatabase.execSQL(a(EventFeedback.class));
String simpleName = ClientSnapshot.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "tripFeedbackWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "tripFeedbackMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "eventFeedbackWatermark", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "eventFeedbackMaxSavedTimestamp", "INTEGER");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, Trip.class.getSimpleName(), "tripTypeV2", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "tripTypeV2", "TEXT");
}
private void e(SQLiteDatabase sQLiteDatabase) {
sQLiteDatabase.execSQL(a(SpeedLimitDataPoint.class));
String simpleName = TripInsight.class.getSimpleName();
String str = "tmp" + simpleName;
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, str);
sQLiteDatabase.execSQL("ALTER TABLE " + simpleName + " RENAME TO " + str);
StringBuilder sb5 = new StringBuilder();
sb5.append("CREATE TABLE ");
sb5.append(simpleName);
sb5.append(" (timestamp INTEGER, zendriveScore DOUBLE, overSpeedingScore DOUBLE, hardBrakeScore DOUBLE, phoneUseScore DOUBLE, rapidAccelerationScore DOUBLE);");
sQLiteDatabase.execSQL(sb5.toString());
sQLiteDatabase.execSQL("INSERT INTO " + simpleName + " (timestamp, zendriveScore) SELECT timestamp,zendriveScore from " + str);
StringBuilder sb6 = new StringBuilder();
sb6.append("UPDATE ");
sb6.append(simpleName);
sb6.append(" SET overSpeedingScore = -1, hardBrakeScore = -1, phoneUseScore = -1, rapidAccelerationScore = -1");
sQLiteDatabase.execSQL(sb6.toString());
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, str);
com.zendrive.sdk.cdetectorlib.h.l(sQLiteDatabase, Trip.class.getSimpleName(), "nonIdleTimeMillis", "INTEGER", "timestampEnd - timestamp");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, PartialTrip.class.getSimpleName(), "nonIdleTimeMillis", "INTEGER");
String W = com.zendrive.sdk.utilities.m.W(this.f41350g);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "countryCode", "TEXT", W);
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "countryCode", "TEXT", W);
com.zendrive.sdk.cdetectorlib.h.l(sQLiteDatabase, Trip.class.getSimpleName(), "version", "INTEGER", "(CASE WHEN state = '" + Trip.a.ANALYZED.name() + "' THEN 0 ELSE 1 END)");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "version", "INTEGER", "1");
}
private void f(SQLiteDatabase sQLiteDatabase) {
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "numLeftTurns", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "numRightTurns", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "numLeftTurns", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "numRightTurns", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, TripInsight.class.getSimpleName(), "hardTurnScore", "DOUBLE", "-1");
}
private void h(SQLiteDatabase sQLiteDatabase) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom46to47", "Upgrading db from 46 to 47", new Object[0]);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, "Geofence");
sQLiteDatabase.execSQL(a(GeofenceBreach.class));
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, GPS.class.getSimpleName(), "receivedAtTimestamp", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, HighFreqGps.class.getSimpleName(), "receivedAtTimestamp", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Motion.class.getSimpleName(), "receivedAtTimestamp", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, AccidentMotion.class.getSimpleName(), "receivedAtTimestamp", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, AccidentRawAccelerometer.class.getSimpleName(), "receivedAtTimestamp", "INTEGER", "-1");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Barometer.class.getSimpleName(), "receivedAtTimestamp", "INTEGER", "-1");
}
private void i(SQLiteDatabase sQLiteDatabase) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "upgradeDatabaseFrom51to52", "Upgrading db from 51 to 52", new Object[0]);
String simpleName = Driver.class.getSimpleName();
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "brand", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "manufacturer", "TEXT");
com.zendrive.sdk.cdetectorlib.h.k(sQLiteDatabase, simpleName, "model", "TEXT");
sQLiteDatabase.execSQL(a(ZendriveBluetoothDevice.class));
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, Trip.class.getSimpleName(), "isDedicatedVehicleType", "INTEGER", "0");
String simpleName2 = Trip.class.getSimpleName();
e6 e6Var = e6.Unknown;
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, simpleName2, "vehicleType", "TEXT", e6Var.name());
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "isDedicatedVehicleType", "INTEGER", "0");
com.zendrive.sdk.cdetectorlib.h.r(sQLiteDatabase, PartialTrip.class.getSimpleName(), "vehicleType", "TEXT", e6Var.name());
}
public static String a(String str) {
return "com.zendrive.sdk.db." + str;
}
private void a(SQLiteDatabase sQLiteDatabase, Class<? extends com.zendrive.sdk.data.e> cls) {
String str = "CASE WHEN autoStart=0 THEN \"" + z6.Manual.name() + "\" WHEN autoStart=1 THEN \"" + z6.Auto.name() + "\" END";
String simpleName = cls.getSimpleName();
if (!sQLiteDatabase.isOpen()) {
String str2 = "DB is not open. Cannot upgrade " + simpleName + ": rename autoStart to tripStartReason";
new IllegalStateException(str2);
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "migrateColumn", str2, new Object[0]);
return;
}
StringBuilder sb5 = new StringBuilder();
StringBuilder sb6 = new StringBuilder("CREATE TABLE ");
sb6.append(simpleName);
sb6.append(" (");
Cursor rawQuery = sQLiteDatabase.rawQuery("PRAGMA table_info(" + simpleName + ")", null);
try {
rawQuery.moveToFirst();
while (!rawQuery.isAfterLast()) {
String string = rawQuery.getString(1);
if ("tripStartReason".equals(string)) {
rawQuery.close();
return;
}
if (!"autoStart".equals(string)) {
sb5.append(string);
sb5.append(',');
sb6.append(string);
sb6.append(' ');
sb6.append(rawQuery.getString(2));
sb6.append(',');
}
rawQuery.moveToNext();
}
rawQuery.close();
sb6.append("tripStartReason");
sb6.append(' ');
sb6.append("TEXT");
sb6.append(");");
String sb7 = sb5.toString();
String str3 = "tmp" + simpleName;
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, str3);
sQLiteDatabase.execSQL("ALTER TABLE " + simpleName + " RENAME TO " + str3);
sQLiteDatabase.execSQL(sb6.toString());
sQLiteDatabase.execSQL("INSERT INTO " + simpleName + " (" + sb7 + "tripStartReason) SELECT " + sb7 + str + " AS tripStartReason FROM " + str3);
com.zendrive.sdk.cdetectorlib.h.j(sQLiteDatabase, str3);
} catch (Throwable th4) {
try {
throw th4;
} catch (Throwable th5) {
if (rawQuery != null) {
try {
rawQuery.close();
} catch (Throwable th6) {
th4.addSuppressed(th6);
}
}
throw th5;
}
}
}
public static k b(String str) {
k kVar = f41341l;
if (kVar == null || kVar.f41351h.equals(str)) {
return f41341l;
}
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "getInstance", "data store already created with different driver id. Old driverId: " + f41341l.f41351h + ", new driverId: " + str, new Object[0]);
return null;
}
private u b(SQLiteDatabase sQLiteDatabase) {
if (this.f41348e == null) {
this.f41348e = new u(this.f41350g, sQLiteDatabase, this.f41351h);
}
return this.f41348e;
}
public synchronized ClientSnapshot g() {
ArrayList b15 = b(ClientSnapshot.class, 0L, com.zendrive.sdk.utilities.q0.a(), -1);
if (b15.size() == 0) {
ClientSnapshot clientSnapshot = new ClientSnapshot();
clientSnapshot.timestamp = com.zendrive.sdk.utilities.q0.a();
a(clientSnapshot);
a(true);
return clientSnapshot;
}
return (ClientSnapshot) b15.get(b15.size() - 1);
}
public static File c(Context context, String str) {
return context.getDatabasePath(a(str));
}
public ArrayList<HighFreqGps> b(long j15, long j16, int i15, int i16) {
ArrayList<HighFreqGps> b15 = b(HighFreqGps.class, j15, j16, i15);
if (i16 < 0) {
return b15;
}
ArrayList<HighFreqGps> arrayList = new ArrayList<>();
Iterator<HighFreqGps> it = b15.iterator();
while (it.hasNext()) {
HighFreqGps next = it.next();
if (next.horizontalAccuracy <= i16) {
arrayList.add(next);
}
}
return arrayList;
}
public String c() {
return this.f41344a.getPath();
}
public Trip b(long j15, long j16) {
ArrayList a15;
c cVar = c.DESC;
synchronized (this) {
a15 = a(Trip.class, j15, j16, -1, cVar, null);
}
for (int i15 = 0; i15 < a15.size(); i15++) {
Trip trip = (Trip) a15.get(i15);
if (trip.state == Trip.a.ANALYZED) {
return trip;
}
}
return null;
}
public synchronized void b(Trip trip) {
if (!com.zendrive.sdk.cdetectorlib.h.m()) {
new AssertionError("Updating trip table on unexpected thread: " + Thread.currentThread().getName());
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "updateTripInTripTable", "Updating trip table failed. Unexpected thread: %s", Thread.currentThread().getName());
return;
}
this.f41344a.execSQL(b((com.zendrive.sdk.data.e) trip) + " WHERE timestamp = " + trip.timestamp);
}
public void b(Event event) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "updateEvent", "Updating event in db of type: " + event.eventType.name(), new Object[0]);
this.f41344a.execSQL(b((com.zendrive.sdk.data.e) event) + " WHERE timestamp = " + event.timestamp);
}
public void b(TripAdditionalInfo tripAdditionalInfo) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "updateTripAdditionalInfoPoint", "Updating TripAdditionalInfo point in db of timestamp %d", Long.valueOf(tripAdditionalInfo.timestamp));
this.f41344a.execSQL(b((com.zendrive.sdk.data.e) tripAdditionalInfo) + " WHERE timestamp = " + tripAdditionalInfo.timestamp);
}
public void b(Vehicle vehicle) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "updateVehiclePoint", "Updating vehicle point in db of timestamp %d", Long.valueOf(vehicle.timestamp));
this.f41344a.execSQL(b((com.zendrive.sdk.data.e) vehicle) + " WHERE timestamp = " + vehicle.timestamp);
}
private o a(SQLiteDatabase sQLiteDatabase) {
if (this.f41345b == null) {
this.f41345b = new o(this.f41350g, sQLiteDatabase);
}
return this.f41345b;
}
public ArrayList<Event> a(long j15, long j16, int i15, boolean z15) {
ArrayList<Event> b15 = b(Event.class, j15, j16, i15);
if (!z15) {
return b15;
}
ArrayList<Event> arrayList = new ArrayList<>(b15.size());
Iterator<Event> it = b15.iterator();
while (it.hasNext()) {
Event next = it.next();
if (next.prod) {
arrayList.add(next);
}
}
return arrayList;
}
public synchronized <T extends com.zendrive.sdk.data.e> ArrayList<T> b(Class<T> cls, long j15, long j16, int i15) {
ArrayList<T> a15;
c cVar = c.ASC;
synchronized (this) {
a15 = a(cls, j15, j16, i15, cVar, null);
}
return a15;
return a15;
}
@NonNull
public ArrayList<GPS> b(long j15, long j16, int i15, boolean z15) {
ArrayList<GPS> a15;
c cVar = z15 ? c.ASC : c.DESC;
synchronized (this) {
a15 = a(GPS.class, j15, j16, i15, cVar, null);
}
return a15;
}
private String b(com.zendrive.sdk.data.e eVar) {
String str;
Field[] p15 = com.zendrive.sdk.cdetectorlib.h.p(eVar.getClass());
StringBuilder sb5 = new StringBuilder();
String simpleName = eVar.getClass().getSimpleName();
sb5.append("UPDATE ");
sb5.append(simpleName);
sb5.append(" SET ");
try {
boolean z15 = true;
for (Field field : p15) {
if (field.get(eVar) != null) {
Class<?> type = field.getType();
if (String.class.isAssignableFrom(type)) {
str = "'" + field.get(eVar) + "'";
} else if (type == Integer.TYPE) {
str = String.valueOf(field.getInt(eVar));
} else if (type == Long.TYPE) {
str = String.valueOf(field.getLong(eVar));
} else if (type == Boolean.TYPE) {
str = String.valueOf(field.getBoolean(eVar) ? 1 : 0);
} else if (type == Double.TYPE) {
str = String.valueOf(field.getDouble(eVar));
} else if (type == Float.TYPE) {
str = String.valueOf(field.getFloat(eVar));
} else if (type.isEnum()) {
str = "'" + ((Enum) field.get(eVar)).name() + "'";
} else {
str = null;
}
if (str == null) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "updateTableQueryFromClass", "Unknown field type found: " + eVar.getClass().getName() + "." + field.getName(), new Object[0]);
} else {
if (!z15) {
sb5.append(", ");
}
sb5.append(field.getName());
sb5.append(" = ");
sb5.append(str);
z15 = false;
}
}
}
} catch (IllegalAccessException e15) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "updateTableQueryFromClass", "Error: " + e15.getMessage(), new Object[0]);
} catch (IllegalArgumentException e16) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "updateTableQueryFromClass", "Error: " + e16.getMessage(), new Object[0]);
}
return sb5.toString();
}
public ArrayList<Event> a(long j15, long j16, n6 n6Var, int i15) {
return a(Event.class, j15, j16, i15, c.ASC, String.format("eventType = \"%s\"", n6Var.name()));
}
public ArrayList<GPS> a(long j15, long j16, int i15, int i16) {
ArrayList<GPS> b15 = b(GPS.class, j15, j16, i15);
if (i16 < 0) {
return b15;
}
ArrayList<GPS> arrayList = new ArrayList<>();
Iterator<GPS> it = b15.iterator();
while (it.hasNext()) {
GPS next = it.next();
if (next.horizontalAccuracy <= i16) {
arrayList.add(next);
}
}
return arrayList;
}
public ArrayList<Vehicle> a(long j15) {
return b(Vehicle.class, j15, j15, -1);
}
public <T extends com.zendrive.sdk.data.e> T a(Class<T> cls, long j15) {
ArrayList<T> b15 = b(cls, j15, j15 + 1, 1);
if (b15.isEmpty()) {
return null;
}
return b15.get(0);
}
public void a(Event event) {
String str = event.data;
if (str != null && str.getBytes(StandardCharsets.UTF_8).length >= 900000) {
a((com.zendrive.sdk.data.e) new Event.Builder(event).setData("data dropped due to large size").build2());
return;
}
synchronized (this) {
this.f41352i.add(event);
a(false);
}
}
public void a(GPS gps, boolean z15) {
if (this.f41354k) {
synchronized (this) {
this.f41352i.add(gps);
a(false);
}
}
if (z15) {
a((k) gps, "com.zendrive.sdk.GPS");
}
}
public void a(Trip trip) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveTripPoint", "Saving Trip: " + trip.timestamp + '.' + trip.timestampEnd, new Object[0]);
synchronized (this) {
this.f41352i.add(trip);
a(false);
}
}
public void b(boolean z15) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "setSaveGps", "Setting saveGps: " + z15, new Object[0]);
this.f41354k = z15;
}
public void a(TripTimestampPoint tripTimestampPoint) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveTripTimestampPoint", "Saving TripTimestamp point: " + tripTimestampPoint.timestamp + '.' + tripTimestampPoint.timestampEnd, new Object[0]);
synchronized (this) {
this.f41352i.add(tripTimestampPoint);
a(false);
}
}
public void a(PartialTrip partialTrip) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "savePartialTripPoint", "Saving Partial Trip: " + partialTrip.timestamp, new Object[0]);
synchronized (this) {
this.f41352i.add(partialTrip);
a(false);
}
}
public void a(RecognizedActivity recognizedActivity) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveRecognizedActivityPoint", "Saving recognized activity: " + recognizedActivity.timestamp + " - " + recognizedActivity.activity, new Object[0]);
synchronized (this) {
this.f41352i.add(recognizedActivity);
a(false);
}
}
public void a(TripFeedback tripFeedback) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveFeedback", "Saving feedback: " + tripFeedback.toString(), new Object[0]);
synchronized (this) {
this.f41352i.add(tripFeedback);
a(false);
}
}
public void a(EventFeedback eventFeedback) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveFeedback", "Saving feedback: " + eventFeedback.toString(), new Object[0]);
synchronized (this) {
this.f41352i.add(eventFeedback);
a(false);
}
}
public void a(TripInsight tripInsight) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveTripInsight", "Saving tripInsight: " + tripInsight.toString(), new Object[0]);
synchronized (this) {
this.f41352i.add(tripInsight);
a(false);
}
}
public void a(SpeedLimitDataPoint speedLimitDataPoint) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveSpeedLimitData", "Saving speedLimitData", new Object[0]);
synchronized (this) {
this.f41352i.add(speedLimitDataPoint);
a(false);
}
}
public void a(GeofenceBreach geofenceBreach) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveGeofenceBreachPoint", "Saving GeofenceBreachPoint", new Object[0]);
synchronized (this) {
this.f41352i.add(geofenceBreach);
a(false);
}
}
public void a(SdkHealth sdkHealth) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveSdkHealthPoint", "Saving SdkHealthPoint", new Object[0]);
synchronized (this) {
this.f41352i.add(sdkHealth);
a(false);
}
a(true);
}
public void a(Vehicle vehicle) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveVehiclePoint", "Saving Vehicle Point", new Object[0]);
synchronized (this) {
this.f41352i.add(vehicle);
a(false);
}
}
public void a(ScannedBeaconInfo scannedBeaconInfo) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveScannedBeaconInfo", "Saving ScannedBeaconInfo point %s", scannedBeaconInfo.toString());
synchronized (this) {
this.f41352i.add(scannedBeaconInfo);
a(false);
}
}
public void a(ZendriveBluetoothDevice zendriveBluetoothDevice) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "saveBluetoothDeviceInfo", "Saving BluetoothDeviceInfo", new Object[0]);
synchronized (this) {
this.f41352i.add(zendriveBluetoothDevice);
a(false);
}
}
public void a(PauseTrackingInfo pauseTrackingInfo) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "savePauseTrackingInfo", "Saving PauseTrackingInfo", new Object[0]);
synchronized (this) {
this.f41352i.add(pauseTrackingInfo);
a(false);
}
}
public synchronized void a(boolean z15) {
try {
if (com.zendrive.sdk.cdetectorlib.h.m()) {
if (z15) {
com.zendrive.sdk.utilities.m.h0();
}
if (this.f41352i.isEmpty()) {
return;
}
if (z15 || this.f41352i.size() > 180) {
synchronized (this) {
List<com.zendrive.sdk.data.e> list = this.f41352i;
this.f41352i = Collections.synchronizedList(new ArrayList());
synchronized (this) {
if (list.size() != 0) {
if (!this.f41344a.isOpen()) {
new IllegalStateException("DB is not open. Data is dropped.");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "flushDataPoints", "DB is not open. flushDataPoints drops data.", new Object[0]);
}
try {
try {
this.f41344a.beginTransaction();
for (com.zendrive.sdk.data.e eVar : list) {
Class<?> cls = eVar.getClass();
SQLiteStatement sQLiteStatement = this.f41353j.get(cls);
Field[] p15 = com.zendrive.sdk.cdetectorlib.h.p(cls);
Arrays.sort(p15, f41342m);
int i15 = 0;
for (Field field : p15) {
i15++;
field.setAccessible(true);
Class<?> type = field.getType();
if (field.get(eVar) == null) {
sQLiteStatement.bindNull(i15);
} else if (String.class.isAssignableFrom(type)) {
sQLiteStatement.bindString(i15, (String) field.get(eVar));
} else if (type == Integer.TYPE) {
sQLiteStatement.bindLong(i15, field.getInt(eVar));
} else if (type == Long.TYPE) {
sQLiteStatement.bindLong(i15, field.getLong(eVar));
} else if (type == Boolean.TYPE) {
sQLiteStatement.bindLong(i15, field.getBoolean(eVar) ? 1L : 0L);
} else if (type == Double.TYPE) {
sQLiteStatement.bindDouble(i15, field.getDouble(eVar));
} else if (type == Float.TYPE) {
sQLiteStatement.bindDouble(i15, field.getFloat(eVar));
} else if (type.isEnum()) {
sQLiteStatement.bindString(i15, ((Enum) field.get(eVar)).name());
} else if (type == byte[].class) {
sQLiteStatement.bindBlob(i15, (byte[]) field.get(eVar));
} else if (type == Short.TYPE) {
sQLiteStatement.bindLong(i15, field.getShort(eVar));
}
}
sQLiteStatement.executeInsert();
sQLiteStatement.clearBindings();
}
this.f41344a.setTransactionSuccessful();
this.f41344a.endTransaction();
} catch (Throwable th4) {
this.f41344a.endTransaction();
throw th4;
}
} catch (Exception e15) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "flushDataPoints", Log.getStackTraceString(e15), new Object[0]);
com.zendrive.sdk.utilities.b1.g("CentralDataStore", "flushDataPoints", e15.getMessage(), new Object[0]);
}
}
}
}
}
}
} catch (Throwable th5) {
throw th5;
}
}
public void a(AccidentMotion accidentMotion) {
synchronized (this) {
this.f41352i.add(accidentMotion);
a(false);
}
}
public void a(AccidentRawAccelerometer accidentRawAccelerometer) {
synchronized (this) {
this.f41352i.add(accidentRawAccelerometer);
a(false);
}
}
public void a(Barometer barometer) {
synchronized (this) {
this.f41352i.add(barometer);
a(false);
}
}
public void a(ClientSnapshot clientSnapshot) {
synchronized (this) {
this.f41352i.add(clientSnapshot);
a(false);
}
}
protected synchronized void a(com.zendrive.sdk.data.e eVar) {
this.f41352i.add(eVar);
a(false);
}
public void a(DetectorInfo detectorInfo) {
synchronized (this) {
this.f41352i.add(detectorInfo);
a(false);
}
}
public void a(DistractedDrivingPhoneState distractedDrivingPhoneState) {
synchronized (this) {
this.f41352i.add(distractedDrivingPhoneState);
a(false);
}
a((k) distractedDrivingPhoneState, "com.zendrive.sdk.DistractedDrivingPhoneState");
}
public void a(Driver driver) {
synchronized (this) {
this.f41352i.add(driver);
a(false);
}
}
public void a(HighFreqGps highFreqGps, boolean z15) {
synchronized (this) {
this.f41352i.add(highFreqGps);
a(false);
}
if (z15) {
a((k) highFreqGps, "com.zendrive.sdk.HighFreqGps");
}
}
public void a(InsurancePeriodEvent insurancePeriodEvent) {
synchronized (this) {
this.f41352i.add(insurancePeriodEvent);
a(false);
}
}
public void a(Motion motion) {
synchronized (this) {
this.f41352i.add(motion);
a(false);
}
a((k) motion, "com.zendrive.sdk.Motion");
}
public void a(PhoneScreenTap phoneScreenTap) {
synchronized (this) {
this.f41352i.add(phoneScreenTap);
a(false);
}
a((k) phoneScreenTap, "com.zendrive.sdk.PhoneTap");
}
public void a(TripAdditionalInfo tripAdditionalInfo) {
synchronized (this) {
this.f41352i.add(tripAdditionalInfo);
a(false);
}
}
public void a(TripTrail tripTrail) {
synchronized (this) {
this.f41352i.add(tripTrail);
a(false);
}
}
private <T extends com.zendrive.sdk.data.e> void a(T t15, String str) {
Bundle bundle = new Bundle();
bundle.putParcelable("DATA_POINT_EXTRA_KEY", t15);
com.zendrive.sdk.i.c.a(this.f41350g).e(new Intent(str).putExtras(bundle));
}
@NonNull
public synchronized <T extends com.zendrive.sdk.data.e> ArrayList<T> a(Class<T> cls, long j15, long j16, int i15, c cVar) {
return a(cls, j15, j16, i15, cVar, null);
}
public String a(long j15, long j16) {
ArrayList b15 = b(TripAdditionalInfo.class, j15, j16, 1);
if (b15.isEmpty()) {
return null;
}
return ((TripAdditionalInfo) b15.get(0)).tripFeaturesForDvp;
}
@NonNull
private synchronized <T extends com.zendrive.sdk.data.e> ArrayList<T> a(Class<T> cls, long j15, long j16, int i15, c cVar, String str) {
String str2;
Cursor query;
if (!com.zendrive.sdk.cdetectorlib.h.m()) {
new AssertionError("Read db called on unexpected thread: " + Thread.currentThread().getName());
return new ArrayList<>(0);
}
if (!this.f41352i.isEmpty()) {
a(true);
}
SQLiteDatabase sQLiteDatabase = this.f41344a;
if (!sQLiteDatabase.isOpen()) {
new IllegalStateException("DB is not open. GetDataPoints fails");
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "getDataPoints", "DB is not open. GetDataPoints returns.", new Object[0]);
return new ArrayList<>(0);
}
String simpleName = cls.getSimpleName();
String str3 = " timestamp BETWEEN " + j15 + " AND " + j16 + " ";
try {
if (str != null && !str.isEmpty()) {
str2 = str + " AND (" + str3 + ')';
query = sQLiteDatabase.query(simpleName, null, str2, null, null, null, cVar != c.ASC ? " timestamp ASC " : " timestamp DESC ", i15 >= 0 ? null : String.valueOf(i15));
ArrayList<T> a15 = a(cls, query);
if (query != null) {
query.close();
}
return a15;
}
ArrayList<T> a152 = a(cls, query);
if (query != null) {
}
return a152;
} finally {
}
str2 = str3;
query = sQLiteDatabase.query(simpleName, null, str2, null, null, null, cVar != c.ASC ? " timestamp ASC " : " timestamp DESC ", i15 >= 0 ? null : String.valueOf(i15));
}
private <T extends com.zendrive.sdk.data.e> ArrayList<T> a(Class<T> cls, Cursor cursor) {
Field[] p15;
Class cls2;
T t15;
ArrayList<T> arrayList = new ArrayList<>();
Class cls3 = null;
try {
try {
cls2 = (Class) cls.getDeclaredMethod("getBuilderClass", new Class[0]).invoke(null, new Object[0]);
} catch (Exception e15) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "getDataPointListFromCursor", Log.getStackTraceString(e15), new Object[0]);
com.zendrive.sdk.utilities.b1.g("CentralDataStore", "getDataPointListFromCursor", e15.getMessage(), new Object[0]);
}
} catch (NoSuchMethodException unused) {
}
try {
p15 = com.zendrive.sdk.cdetectorlib.h.p(cls2);
} catch (NoSuchMethodException unused2) {
cls3 = cls2;
Class cls4 = cls3;
p15 = com.zendrive.sdk.cdetectorlib.h.p(cls);
cls2 = cls4;
cursor.moveToFirst();
while (!cursor.isAfterLast()) {
}
return arrayList;
}
cursor.moveToFirst();
while (!cursor.isAfterLast()) {
if (cls2 == null) {
t15 = cls.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
a(cursor, p15, t15);
} else {
com.zendrive.sdk.data.f fVar = (com.zendrive.sdk.data.f) cls2.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
a(cursor, p15, fVar);
t15 = (T) fVar.build2();
}
arrayList.add(t15);
cursor.moveToNext();
}
return arrayList;
}
private void a(Cursor cursor, Field[] fieldArr, Object obj) {
for (Field field : fieldArr) {
Class<?> type = field.getType();
String name = field.getName();
if (String.class.isAssignableFrom(type)) {
field.set(obj, cursor.getString(com.zendrive.sdk.cdetectorlib.h.a(cursor, name)));
} else if (type == Integer.TYPE) {
field.set(obj, Integer.valueOf(cursor.getInt(com.zendrive.sdk.cdetectorlib.h.a(cursor, name))));
} else if (type == Long.TYPE) {
field.set(obj, Long.valueOf(cursor.getLong(com.zendrive.sdk.cdetectorlib.h.a(cursor, name))));
} else if (type == Boolean.TYPE) {
field.set(obj, Boolean.valueOf(cursor.getInt(com.zendrive.sdk.cdetectorlib.h.a(cursor, name)) != 0));
} else if (type == Double.TYPE) {
field.set(obj, Double.valueOf(cursor.getDouble(com.zendrive.sdk.cdetectorlib.h.a(cursor, name))));
} else if (type == Float.TYPE) {
field.set(obj, Float.valueOf(cursor.getFloat(com.zendrive.sdk.cdetectorlib.h.a(cursor, name))));
} else if (type.isEnum()) {
String string = cursor.getString(com.zendrive.sdk.cdetectorlib.h.a(cursor, name));
field.set(obj, string == null ? null : Enum.valueOf(field.getType(), string));
}
}
}
public void a(Class<?> cls, long j15, long j16, int i15) {
String str;
long j17;
SQLiteDatabase sQLiteDatabase = this.f41344a;
String simpleName = cls.getSimpleName();
Locale locale = Locale.US;
Object[] objArr = new Object[5];
objArr[0] = simpleName;
objArr[1] = simpleName;
objArr[2] = Long.valueOf(j15);
objArr[3] = Long.valueOf(j16);
if (i15 >= 0) {
str = "LIMIT " + i15;
} else {
str = "";
}
objArr[4] = str;
String format = String.format(locale, "DELETE FROM %s WHERE timestamp IN (SELECT timestamp FROM %s where timestamp between %d AND %d ORDER BY timestamp %s)", objArr);
do {
try {
sQLiteDatabase.beginTransaction();
sQLiteDatabase.execSQL(format);
try {
Cursor rawQuery = sQLiteDatabase.rawQuery("SELECT changes() AS affected_row_count", null);
try {
rawQuery.moveToFirst();
j17 = rawQuery.getLong(com.zendrive.sdk.cdetectorlib.h.a(rawQuery, "affected_row_count"));
sQLiteDatabase.setTransactionSuccessful();
rawQuery.close();
if (j17 != 0) {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "deleteDataPoints", "Number of rows deleted from " + simpleName + ":" + j17, new Object[0]);
}
} finally {
}
} finally {
sQLiteDatabase.endTransaction();
}
} catch (SQLException e15) {
com.zendrive.sdk.utilities.b1.g("CentralDataStore", "deleteDataPoints", e15.getMessage(), new Object[0]);
return;
}
} while (j17 > 0);
}
private String a(Class<? extends com.zendrive.sdk.data.e> cls) {
Field[] p15 = com.zendrive.sdk.cdetectorlib.h.p(cls);
StringBuilder sb5 = new StringBuilder(256);
String simpleName = cls.getSimpleName();
sb5.append("CREATE TABLE ");
sb5.append(simpleName);
sb5.append(" (");
int length = p15.length;
boolean z15 = true;
int i15 = 0;
while (i15 < length) {
Field field = p15[i15];
if (!z15) {
sb5.append(", ");
}
Class<?> type = field.getType();
sb5.append(field.getName());
sb5.append(' ');
if (String.class.isAssignableFrom(type)) {
sb5.append("TEXT");
} else if (type == Integer.TYPE || type == Long.TYPE || type == Boolean.TYPE) {
sb5.append("INTEGER");
} else if (type != Double.TYPE && type != Float.TYPE) {
if (type.isEnum()) {
sb5.append("TEXT");
} else {
com.zendrive.sdk.utilities.b1.d("CentralDataStore", "createTableQueryFromClass", "Unknown field type found in Class " + cls.getName(), new Object[0]);
}
} else {
sb5.append("DOUBLE");
}
i15++;
z15 = false;
}
sb5.append(");");
return sb5.toString();
}
}