Info Call to SQLite query API

Description

Improper SQL query construction could lead to SQL injection. An SQL injection attack consists of injecting of an SQL query via the input data from the client to the application

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.google.android.gms.internal.zzadq.zzav() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public void zzav(long p10)
    {
        this.zzPt();
        long v6 = System.currentTimeMillis();
        com.google.android.gms.internal.zzahf v2_4 = new android.content.ContentValues();
        v2_4.put("active", Boolean.valueOf(0));
        v2_4.put("lastUse", Long.valueOf(p10));
        Object[] v4_0 = new String[0];
        this.zzbHU.updateWithOnConflict("trackedQueries", v2_4, "active = 1", v4_0, 5);
        String v0_2 = System.currentTimeMillis();
        if (this.zzbHV.zzTe()) {
            com.google.android.gms.internal.zzahf v2_2 = this.zzbHV;
            Object[] v4_2 = new Object[1];
            v4_2[0] = Long.valueOf((v0_2 - v6));
            Object[] v1_2 = new Object[0];
            v2_2.zzh(String.format("Reset active tracked queries in %dms", v4_2), v1_2);
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzcf.zzd() calling method android.database.sqlite.SQLiteDatabase.update()


    private void zzd(long p8, long p10)
    {
        String v0_1 = this.zzgv("Error opening database for getNumStoredHits.");
        if (v0_1 != null) {
            String v1_3 = new android.content.ContentValues();
            v1_3.put("hit_first_send_time", Long.valueOf(p10));
            try {
                String[] v4_1 = new String[1];
                v4_1[0] = String.valueOf(p8);
                v0_1.update("gtm_hits", v1_3, "hit_id=?", v4_1);
            } catch (String v0) {
                com.google.android.gms.tagmanager.zzbn.zzaW(new StringBuilder(69).append("Error setting HIT_FIRST_DISPATCH_TIME for hitId: ").append(p8).toString());
                this.zzs(p8);
            }
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzd() calling method android.database.sqlite.SQLiteDatabase.update()


    public void zzd(String p7, byte[] p8)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p7);
        this.zzkN();
        this.zzma();
        com.google.android.gms.measurement.internal.zzp$zza v0_7 = new android.content.ContentValues();
        v0_7.put("remote_config", p8);
        try {
            String v1_4 = this.getWritableDatabase();
            String[] v4_1 = new String[1];
            v4_1[0] = p7;
        } catch (com.google.android.gms.measurement.internal.zzp$zza v0_5) {
            this.zzFm().zzFE().zzj("Error storing remote config", v0_5);
            return;
        }
        if (((long) v1_4.update("apps", v0_7, "app_id = ?", v4_1)) != 0) {
            return;
        } else {
            this.zzFm().zzFE().log("Failed to update remote config (got 0)");
            return;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zza() calling method android.database.sqlite.SQLiteDatabase.update()


    public com.google.android.gms.measurement.internal.zze$zza zza(long p12, String p14, boolean p15, boolean p16, boolean p17)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p14);
        this.zzkN();
        this.zzma();
        String[] v10 = new String[1];
        v10[0] = p14;
        com.google.android.gms.measurement.internal.zze$zza v8_1 = new com.google.android.gms.measurement.internal.zze$zza();
        try {
            com.google.android.gms.measurement.internal.zze$zza v0_0 = this.getWritableDatabase();
            android.content.ContentValues v2_4 = new String[5];
            v2_4[0] = "day";
            v2_4[1] = "daily_events_count";
            v2_4[2] = "daily_public_events_count";
            v2_4[3] = "daily_conversions_count";
            v2_4[4] = "daily_error_events_count";
            String v4_16 = new String[1];
            v4_16[0] = p14;
            int v1_1 = v0_0.query("apps", v2_4, "app_id=?", v4_16, 0, 0, 0);
            try {
                com.google.android.gms.measurement.internal.zze$zza v0_1;
                if (v1_1.moveToFirst()) {
                    if (v1_1.getLong(0) == p12) {
                        v8_1.zzbbY = v1_1.getLong(1);
                        v8_1.zzbbX = v1_1.getLong(2);
                        v8_1.zzbbZ = v1_1.getLong(3);
                        v8_1.zzbca = v1_1.getLong(4);
                    }
                    v8_1.zzbbY = (v8_1.zzbbY + 1);
                    if (p15) {
                        v8_1.zzbbX = (v8_1.zzbbX + 1);
                    }
                    if (p16) {
                        v8_1.zzbbZ = (v8_1.zzbbZ + 1);
                    }
                    if (p17) {
                        v8_1.zzbca = (v8_1.zzbca + 1);
                    }
                    android.content.ContentValues v2_1 = new android.content.ContentValues();
                    v2_1.put("day", Long.valueOf(p12));
                    v2_1.put("daily_public_events_count", Long.valueOf(v8_1.zzbbX));
                    v2_1.put("daily_events_count", Long.valueOf(v8_1.zzbbY));
                    v2_1.put("daily_conversions_count", Long.valueOf(v8_1.zzbbZ));
                    v2_1.put("daily_error_events_count", Long.valueOf(v8_1.zzbca));
                    v0_0.update("apps", v2_1, "app_id=?", v10);
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_1 = v8_1;
                    return v0_1;
                } else {
                    this.zzFm().zzFG().zzj("Not updating daily counts, app is not known", p14);
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_1 = v8_1;
                    return v0_1;
                }
            } catch (com.google.android.gms.measurement.internal.zze$zza v0_5) {
                this.zzFm().zzFE().zzj("Error updating daily counts", v0_5);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_1 = v8_1;
                return v0_1;
            }
        } catch (com.google.android.gms.measurement.internal.zze$zza v0_6) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_6;
        } catch (com.google.android.gms.measurement.internal.zze$zza v0_5) {
            v1_1 = 0;
        } catch (com.google.android.gms.measurement.internal.zze$zza v0_6) {
        }
    }

Method com.google.android.gms.internal.zzuq.zzd() calling method android.database.sqlite.SQLiteDatabase.update()


    private void zzd(long p8, long p10)
    {
        String v0_1 = this.zzgv("Error opening database for getNumStoredHits.");
        if (v0_1 != null) {
            String v1_3 = new android.content.ContentValues();
            v1_3.put("hit_first_send_time", Long.valueOf(p10));
            try {
                String[] v4_1 = new String[1];
                v4_1[0] = String.valueOf(p8);
                v0_1.update("gtm_hits", v1_3, "hit_id=?", v4_1);
            } catch (String v0) {
                com.google.android.gms.internal.zzun.zzaW(new StringBuilder(69).append("Error setting HIT_FIRST_DISPATCH_TIME for hitId: ").append(p8).toString());
                this.zzs(p8);
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzw.zzJC() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int zzJC()
    {
        int v0_0 = 0;
        String v2_5 = this.zzgv("Error opening database for getNumStoredEntries.");
        if (v2_5 != null) {
            try {
                android.database.Cursor v1 = v2_5.rawQuery("SELECT COUNT(*) from datalayer", 0);
            } catch (String v2) {
                com.google.android.gms.tagmanager.zzbn.zzaW("Error getting numStoredEntries");
                if (v1 != null) {
                    v1.close();
                }
            } catch (int v0_1) {
                if (v1 != null) {
                    v1.close();
                }
                throw v0_1;
            }
            if (v1.moveToFirst()) {
                v0_0 = ((int) v1.getLong(0));
            }
            if (v1 != null) {
                v1.close();
            }
        }
        return v0_0;
    }

Method com.google.android.gms.tagmanager.zzw$zza.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void onOpen(android.database.sqlite.SQLiteDatabase p3)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_5 = p3.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_5.moveToFirst();
                v0_5.close();
            } catch (Throwable v1_2) {
                v0_5.close();
                throw v1_2;
            }
        }
        if (this.zza("datalayer", p3)) {
            this.zzc(p3);
        } else {
            p3.execSQL(com.google.android.gms.tagmanager.zzw.zzJE());
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzw$zza.zzc() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void zzc(android.database.sqlite.SQLiteDatabase p6)
    {
        String v1_1 = p6.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
        java.util.HashSet v2_1 = new java.util.HashSet();
        try {
            String[] v3 = v1_1.getColumnNames();
            android.database.sqlite.SQLiteException v0_15 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_1.close();
            throw v0_1;
        }
        while (v0_15 < v3.length) {
            v2_1.add(v3[v0_15]);
            v0_15++;
        }
        v1_1.close();
        if ((v2_1.remove("key")) && ((v2_1.remove("value")) && ((v2_1.remove("ID")) && (v2_1.remove("expires"))))) {
            if (v2_1.isEmpty()) {
                return;
            } else {
                throw new android.database.sqlite.SQLiteException("Database has extra columns");
            }
        } else {
            throw new android.database.sqlite.SQLiteException("Database column missing");
        }
    }

Method com.google.android.gms.tagmanager.zzcf.zzKe() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    int zzKe()
    {
        int v0_0 = 0;
        String v2_5 = this.zzgv("Error opening database for getNumStoredHits.");
        if (v2_5 != null) {
            try {
                android.database.Cursor v1 = v2_5.rawQuery("SELECT COUNT(*) from gtm_hits", 0);
            } catch (String v2) {
                com.google.android.gms.tagmanager.zzbn.zzaW("Error getting numStoredHits");
                if (v1 != null) {
                    v1.close();
                }
            } catch (int v0_1) {
                if (v1 != null) {
                    v1.close();
                }
                throw v0_1;
            }
            if (v1.moveToFirst()) {
                v0_0 = ((int) v1.getLong(0));
            }
            if (v1 != null) {
                v1.close();
            }
        }
        return v0_0;
    }

Method com.google.android.gms.tagmanager.zzcf$zzb.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void onOpen(android.database.sqlite.SQLiteDatabase p3)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_5 = p3.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_5.moveToFirst();
                v0_5.close();
            } catch (Throwable v1_2) {
                v0_5.close();
                throw v1_2;
            }
        }
        if (this.zza("gtm_hits", p3)) {
            this.zzc(p3);
        } else {
            p3.execSQL(com.google.android.gms.tagmanager.zzcf.zzKg());
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzcf$zzb.zzc() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void zzc(android.database.sqlite.SQLiteDatabase p6)
    {
        String v1_1 = p6.rawQuery("SELECT * FROM gtm_hits WHERE 0", 0);
        java.util.HashSet v2_1 = new java.util.HashSet();
        try {
            String[] v3 = v1_1.getColumnNames();
            android.database.sqlite.SQLiteException v0_15 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v1_1.close();
            throw v0_1;
        }
        while (v0_15 < v3.length) {
            v2_1.add(v3[v0_15]);
            v0_15++;
        }
        v1_1.close();
        if ((v2_1.remove("hit_id")) && ((v2_1.remove("hit_url")) && ((v2_1.remove("hit_time")) && (v2_1.remove("hit_first_send_time"))))) {
            if (v2_1.isEmpty()) {
                return;
            } else {
                throw new android.database.sqlite.SQLiteException("Database has extra columns");
            }
        } else {
            throw new android.database.sqlite.SQLiteException("Database column missing");
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzaf() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public String zzaf(long p8)
    {
        String v0_0 = 0;
        this.zzkN();
        this.zzma();
        try {
            int v1_4 = this.getWritableDatabase();
            String v3_4 = new String[1];
            v3_4[0] = String.valueOf(p8);
            Throwable v2_0 = v1_4.rawQuery("select app_id from apps where app_id in (select distinct app_id from raw_events) and config_fetched_time < ? order by failed_config_fetch_time limit 1;", v3_4);
            try {
                if (v2_0.moveToFirst()) {
                    v0_0 = v2_0.getString(0);
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                } else {
                    this.zzFm().zzFL().log("No expired configs for apps with pending events");
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                }
            } catch (int v1_0) {
                this.zzFm().zzFE().zzj("Error selecting expired configs", v1_0);
                if (v2_0 == null) {
                    return v0_0;
                } else {
                    v2_0.close();
                    return v0_0;
                }
            }
        } catch (int v1_1) {
            v2_0 = 0;
            String v0_1 = v1_1;
            if (v2_0 != null) {
                v2_0.close();
            }
            throw v0_1;
        } catch (int v1_0) {
            v2_0 = 0;
        } catch (String v0_1) {
        }
    }

Method com.google.android.gms.measurement.internal.zze.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void zza(String p15, long p16, com.google.android.gms.measurement.internal.zze$zzb p18)
    {
        android.database.Cursor v3_0 = 0;
        com.google.android.gms.common.internal.zzaa.zzz(p18);
        this.zzkN();
        this.zzma();
        try {
            String v12;
            boolean v2_19 = this.getWritableDatabase();
        } catch (boolean v2_1) {
            android.database.Cursor v11 = v3_0;
            if (v11 != null) {
                v11.close();
            }
            throw v2_1;
        } catch (boolean v2_0) {
            this.zzFm().zzFE().zzj("Data loss. Error selecting raw event", v2_0);
            if (v3_0 == null) {
                return;
            } else {
                v3_0.close();
                return;
            }
        } catch (boolean v2_1) {
            v11 = v3_0;
        }
        if (!android.text.TextUtils.isEmpty(p15)) {
            String v5_2 = new String[1];
            v5_2[0] = p15;
            v3_0 = v2_19.rawQuery("select metadata_fingerprint from raw_events where app_id = ? order by rowid limit 1;", v5_2);
            if (v3_0.moveToFirst()) {
                com.google.android.gms.measurement.internal.zzp$zza v4_10 = v3_0.getString(0);
                v3_0.close();
                v12 = v4_10;
            } else {
                if (v3_0 == null) {
                    return;
                } else {
                    v3_0.close();
                    return;
                }
            }
        } else {
            String v5_10 = new String[1];
            v5_10[0] = String.valueOf(p16);
            v3_0 = v2_19.rawQuery("select app_id, metadata_fingerprint from raw_events where app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;", v5_10);
            if (v3_0.moveToFirst()) {
                p15 = v3_0.getString(0);
                com.google.android.gms.measurement.internal.zzp$zza v4_15 = v3_0.getString(1);
                v3_0.close();
                v12 = v4_15;
            } else {
                if (v3_0 == null) {
                    return;
                } else {
                    v3_0.close();
                    return;
                }
            }
        }
        try {
            com.google.android.gms.measurement.internal.zzp$zza v4_17 = new String[1];
            v4_17[0] = "metadata";
            com.google.android.gms.internal.zzsp$zzb v6_12 = new String[2];
            v6_12[0] = p15;
            v6_12[1] = v12;
            v11 = v2_19.query("raw_events_metadata", v4_17, "app_id=? and metadata_fingerprint=?", v6_12, 0, 0, "rowid", "2");
        } catch (boolean v2_1) {
        } catch (boolean v2_0) {
            v3_0 = v11;
        }
        if (v11.moveToFirst()) {
            android.database.Cursor v3_7 = com.google.android.gms.internal.zzamb.zzN(v11.getBlob(0));
            com.google.android.gms.measurement.internal.zzp$zza v4_20 = new com.google.android.gms.internal.zzsp$zze();
            try {
                v4_20.mergeFrom(v3_7);
            } catch (boolean v2_20) {
                this.zzFm().zzFE().zze("Data loss. Failed to merge raw event metadata", p15, v2_20);
                if (v11 == null) {
                    return;
                } else {
                    v11.close();
                    return;
                }
            }
            if (v11.moveToNext()) {
                this.zzFm().zzFG().log("Get multiple raw event metadata records, expected one");
            }
            v11.close();
            p18.zzc(v4_20);
            com.google.android.gms.measurement.internal.zzp$zza v4_1 = new String[4];
            v4_1[0] = "rowid";
            v4_1[1] = "name";
            v4_1[2] = "timestamp";
            v4_1[3] = "data";
            com.google.android.gms.internal.zzsp$zzb v6_6 = new String[2];
            v6_6[0] = p15;
            v6_6[1] = v12;
            v3_0 = v2_19.query("raw_events", v4_1, "app_id=? and metadata_fingerprint=?", v6_6, 0, 0, "rowid", 0);
            if (!v3_0.moveToFirst()) {
                this.zzFm().zzFG().log("Raw event data disappeared while in transaction");
                if (v3_0 == null) {
                    return;
                } else {
                    v3_0.close();
                    return;
                }
            }
            do {
                com.google.android.gms.measurement.internal.zzp$zza v4_2 = v3_0.getLong(0);
                boolean v2_6 = com.google.android.gms.internal.zzamb.zzN(v3_0.getBlob(3));
                com.google.android.gms.internal.zzsp$zzb v6_8 = new com.google.android.gms.internal.zzsp$zzb();
                v6_8.mergeFrom(v2_6);
                v6_8.name = v3_0.getString(1);
                v6_8.zzbgX = Long.valueOf(v3_0.getLong(2));
                if (p18.zza(v4_2, v6_8)) {
                } else {
                    if (v3_0 == null) {
                        return;
                    } else {
                        v3_0.close();
                        return;
                    }
                }
            } while(v3_0.moveToNext());
            if (v3_0 == null) {
                return;
            } else {
                v3_0.close();
                return;
            }
        } else {
            this.zzFm().zzFE().log("Raw event metadata record is missing");
            if (v11 == null) {
                return;
            } else {
                v11.close();
                return;
            }
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzFp() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public String zzFp()
    {
        String v0_0 = 0;
        try {
            Throwable v2_0 = this.getWritableDatabase().rawQuery("select app_id from queue where app_id not in (select app_id from apps where measurement_enabled=0) order by rowid limit 1;", 0);
            try {
                if (!v2_0.moveToFirst()) {
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                } else {
                    v0_0 = v2_0.getString(0);
                    if (v2_0 == null) {
                        return v0_0;
                    } else {
                        v2_0.close();
                        return v0_0;
                    }
                }
            } catch (int v1_1) {
                this.zzFm().zzFE().zzj("Database error getting next bundle app id", v1_1);
                if (v2_0 == null) {
                    return v0_0;
                } else {
                    v2_0.close();
                    return v0_0;
                }
            }
        } catch (int v1_4) {
            v2_0 = 0;
            String v0_1 = v1_4;
            if (v2_0 != null) {
                v2_0.close();
            }
            throw v0_1;
        } catch (int v1_1) {
            v2_0 = 0;
        } catch (String v0_1) {
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private long zzb(String p5, String[] p6)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p5, p6);
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzFm().zzFE().zze("Database error", p5, v0_2);
            throw v0_2;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_3;
        }
        if (!v1.moveToFirst()) {
            throw new android.database.sqlite.SQLiteException("Database returned empty set");
        } else {
            com.google.android.gms.measurement.internal.zzp$zza v2_2 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v2_2;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private long zza(String p6, String[] p7, long p8)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p6, p7);
        } catch (int v0_4) {
            this.zzFm().zzFE().zze("Database error", p6, v0_4);
            throw v0_4;
        } catch (int v0_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_1;
        }
        if (!v1.moveToFirst()) {
            if (v1 != null) {
                v1.close();
            }
        } else {
            p8 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
        }
        return p8;
    }

Method com.google.android.gms.measurement.internal.zze$zzc.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void onOpen(android.database.sqlite.SQLiteDatabase p13)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            void v0_9 = p13.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_9.moveToFirst();
                v0_9.close();
            } catch (Throwable v1_9) {
                v0_9.close();
                throw v1_9;
            }
        }
        this.zza(p13, "events", "CREATE TABLE IF NOT EXISTS events ( app_id TEXT NOT NULL, name TEXT NOT NULL, lifetime_count INTEGER NOT NULL, current_bundle_count INTEGER NOT NULL, last_fire_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,lifetime_count,current_bundle_count,last_fire_timestamp", 0);
        this.zza(p13, "user_attributes", "CREATE TABLE IF NOT EXISTS user_attributes ( app_id TEXT NOT NULL, name TEXT NOT NULL, set_timestamp INTEGER NOT NULL, value BLOB NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,set_timestamp,value", 0);
        this.zza(p13, "apps", "CREATE TABLE IF NOT EXISTS apps ( app_id TEXT NOT NULL, app_instance_id TEXT, gmp_app_id TEXT, resettable_device_id_hash TEXT, last_bundle_index INTEGER NOT NULL, last_bundle_end_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id)) ;", "app_id,app_instance_id,gmp_app_id,resettable_device_id_hash,last_bundle_index,last_bundle_end_timestamp", com.google.android.gms.measurement.internal.zze.zzFw());
        this.zza(p13, "queue", "CREATE TABLE IF NOT EXISTS queue ( app_id TEXT NOT NULL, bundle_end_timestamp INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,bundle_end_timestamp,data", 0);
        this.zza(p13, "raw_events_metadata", "CREATE TABLE IF NOT EXISTS raw_events_metadata ( app_id TEXT NOT NULL, metadata_fingerprint INTEGER NOT NULL, metadata BLOB NOT NULL, PRIMARY KEY (app_id, metadata_fingerprint));", "app_id,metadata_fingerprint,metadata", 0);
        this.zza(p13, "raw_events", "CREATE TABLE IF NOT EXISTS raw_events ( app_id TEXT NOT NULL, name TEXT NOT NULL, timestamp INTEGER NOT NULL, metadata_fingerprint INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,name,timestamp,metadata_fingerprint,data", 0);
        this.zza(p13, "event_filters", "CREATE TABLE IF NOT EXISTS event_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, event_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, event_name, audience_id, filter_id));", "app_id,audience_id,filter_id,event_name,data", 0);
        this.zza(p13, "property_filters", "CREATE TABLE IF NOT EXISTS property_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, property_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, property_name, audience_id, filter_id));", "app_id,audience_id,filter_id,property_name,data", 0);
        this.zza(p13, "audience_filter_values", "CREATE TABLE IF NOT EXISTS audience_filter_values ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, current_results BLOB, PRIMARY KEY (app_id, audience_id));", "app_id,audience_id,current_results", 0);
        return;
    }

Method com.google.android.gms.measurement.internal.zze$zzc.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private java.util.Set zzb(android.database.sqlite.SQLiteDatabase p4, String p5)
    {
        Throwable v0_1 = new java.util.HashSet();
        android.database.Cursor v1_5 = p4.rawQuery(new StringBuilder((String.valueOf(p5).length() + 22)).append("SELECT * FROM ").append(p5).append(" LIMIT 0").toString(), 0);
        try {
            java.util.Collections.addAll(v0_1, v1_5.getColumnNames());
            v1_5.close();
            return v0_1;
        } catch (Throwable v0_2) {
            v1_5.close();
            throw v0_2;
        }
    }

Method com.google.android.gms.internal.zzuq.zzgX() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    int zzgX(String p7)
    {
        android.database.Cursor v1 = 0;
        int v0_0 = 0;
        android.database.sqlite.SQLiteDatabase v3 = this.zzgv("Error opening database for getNumRecords.");
        if (v3 != null) {
            try {
                long v2_1;
                long v2_7 = String.valueOf(p7);
            } catch (long v2) {
                com.google.android.gms.internal.zzun.zzaW("Error getting numStoredRecords");
                if (v1 != null) {
                    v1.close();
                }
            } catch (int v0_1) {
                if (v1 != null) {
                    v1.close();
                }
                throw v0_1;
            }
            if (v2_7.length() == 0) {
                v2_1 = new String("SELECT COUNT(*) from ");
            } else {
                v2_1 = "SELECT COUNT(*) from ".concat(v2_7);
            }
            v1 = v3.rawQuery(v2_1, 0);
            if (v1.moveToFirst()) {
                v0_0 = ((int) v1.getLong(0));
            }
            if (v1 != null) {
                v1.close();
            }
        }
        return v0_0;
    }

Method com.google.android.gms.internal.zzuq$zzb.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_15 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_15.moveToFirst();
                v0_15.close();
            } catch (String v1_0) {
                v0_15.close();
                throw v1_0;
            }
        }
        if (this.zza("gtm_hit_unique_ids", p5)) {
            String v0_2 = new String[1];
            v0_2[0] = "hit_unique_id";
            this.zza(p5, "gtm_hit_unique_ids", java.util.Arrays.asList(v0_2));
        } else {
            p5.execSQL(com.google.android.gms.internal.zzuq.zzKg());
        }
        if (this.zza("gtm_hits", p5)) {
            String v0_9 = new String[8];
            v0_9[0] = "hit_id";
            v0_9[1] = "hit_url";
            v0_9[2] = "hit_time";
            v0_9[3] = "hit_first_send_time";
            v0_9[4] = "hit_method";
            v0_9[5] = "hit_unique_id";
            v0_9[6] = "hit_headers";
            v0_9[7] = "hit_body";
            this.zza(p5, "gtm_hits", java.util.Arrays.asList(v0_9));
        } else {
            p5.execSQL(com.google.android.gms.internal.zzuq.zzLe());
        }
        p5.execSQL(com.google.android.gms.internal.zzuq.zzLf());
        p5.execSQL(com.google.android.gms.internal.zzuq.zzLg());
        return;
    }

Method com.google.android.gms.internal.zzuq$zzb.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void zza(android.database.sqlite.SQLiteDatabase p8, String p9, java.util.List p10)
    {
        String v2_2 = p8.rawQuery(new StringBuilder((String.valueOf(p9).length() + 22)).append("SELECT * FROM ").append(p9).append(" WHERE 0").toString(), 0);
        Object[] v3_1 = new java.util.HashSet();
        try {
            Object[] v4_0 = v2_2.getColumnNames();
            android.database.sqlite.SQLiteException v0_5 = 0;
        } catch (android.database.sqlite.SQLiteException v0_6) {
            v2_2.close();
            throw v0_6;
        }
        while (v0_5 < v4_0.length) {
            v3_1.add(v4_0[v0_5]);
            v0_5++;
        }
        v2_2.close();
        String v2_3 = p10.iterator();
        while (v2_3.hasNext()) {
            android.database.sqlite.SQLiteException v0_12 = ((String) v2_3.next());
            if (!v3_1.remove(v0_12)) {
                Object[] v4_3 = new Object[2];
                v4_3[0] = v0_12;
                v4_3[1] = p9;
                throw new android.database.sqlite.SQLiteException(String.format("Database column %s missing in table %s.", v4_3));
            }
        }
        if (v3_1.isEmpty()) {
            return;
        } else {
            Object[] v3_2 = new Object[1];
            v3_2[0] = p9;
            throw new android.database.sqlite.SQLiteException(String.format("Database has extra columns in table %s.", v3_2));
        }
    }

Method com.google.android.gms.internal.zzadq.zzPq() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public long zzPq()
    {
        android.database.Cursor v1_3 = new Object[3];
        v1_3[0] = "value";
        v1_3[1] = "path";
        v1_3[2] = "serverCache";
        android.database.Cursor v1_1 = this.zzbHU.rawQuery(String.format("SELECT sum(length(%s) + length(%s)) FROM %s", v1_3), 0);
        try {
            if (!v1_1.moveToFirst()) {
                throw new IllegalStateException("Couldn\'t read database result!");
            } else {
                String v2_2 = v1_1.getLong(0);
                v1_1.close();
                return v2_2;
            }
        } catch (IllegalStateException v0_5) {
            v1_1.close();
            throw v0_5;
        }
    }

Method com.google.android.gms.analytics.internal.zzj.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private long zzb(String p5, String[] p6)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p5, p6);
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzd("Database error", p5, v0_2);
            throw v0_2;
        } catch (android.database.sqlite.SQLiteException v0_3) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_3;
        }
        if (!v1.moveToFirst()) {
            throw new android.database.sqlite.SQLiteException("Database returned empty set");
        } else {
            String v2_1 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v2_1;
        }
    }

Method com.google.android.gms.analytics.internal.zzj.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private long zza(String p4, String[] p5, long p6)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p4, p5);
        } catch (int v0_4) {
            this.zzd("Database error", p4, v0_4);
            throw v0_4;
        } catch (int v0_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_1;
        }
        if (!v1.moveToFirst()) {
            if (v1 != null) {
                v1.close();
            }
        } else {
            p6 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
        }
        return p6;
    }

Method com.google.android.gms.analytics.internal.zzj$zza.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void onOpen(android.database.sqlite.SQLiteDatabase p3)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_8 = p3.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_8.moveToFirst();
                v0_8.close();
            } catch (Throwable v1_2) {
                v0_8.close();
                throw v1_2;
            }
        }
        if (this.zza(p3, "hits2")) {
            this.zza(p3);
        } else {
            p3.execSQL(com.google.android.gms.analytics.internal.zzj.zzmw());
        }
        if (this.zza(p3, "properties")) {
            this.zzb(p3);
        } else {
            p3.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
        }
        return;
    }

Method com.google.android.gms.analytics.internal.zzj$zza.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private java.util.Set zzb(android.database.sqlite.SQLiteDatabase p6, String p7)
    {
        java.util.HashSet v1_1 = new java.util.HashSet();
        android.database.Cursor v2_2 = p6.rawQuery(new StringBuilder((String.valueOf(p7).length() + 22)).append("SELECT * FROM ").append(p7).append(" LIMIT 0").toString(), 0);
        try {
            String[] v3 = v2_2.getColumnNames();
            int v0_5 = 0;
        } catch (int v0_6) {
            v2_2.close();
            throw v0_6;
        }
        while (v0_5 < v3.length) {
            v1_1.add(v3[v0_5]);
            v0_5++;
        }
        v2_2.close();
        return v1_1;
    }

Method com.google.android.gms.ads.internal.purchase.zzh.getRecordCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int getRecordCount()
    {
        int v0_0 = 0;
        try {
            String v1_7 = this.getWritableDatabase();
        } catch (int v0_2) {
            throw v0_2;
        }
        if (v1_7 != null) {
            try {
                android.database.Cursor v2 = v1_7.rawQuery("select count(*) from InAppPurchase", 0);
            } catch (String v1_1) {
                String v1_3 = String.valueOf(v1_1.getMessage());
                if (v1_3.length() == 0) {
                    String v1_5 = new String("Error getting record count");
                } else {
                    v1_5 = "Error getting record count".concat(v1_3);
                }
                com.google.android.gms.internal.zzjw.zzaW(v1_5);
                if (v2 != null) {
                    v2.close();
                }
            } catch (int v0_1) {
                if (v2 != null) {
                    v2.close();
                }
                throw v0_1;
            }
            if (!v2.moveToFirst()) {
                if (v2 != null) {
                    v2.close();
                }
            } else {
                v0_0 = v2.getInt(0);
                if (v2 != null) {
                    v2.close();
                }
            }
        } else {
        }
        return v0_0;
    }

Method io.fabric.sdk.android.FabricContext.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String p2, int p3, android.database.sqlite.SQLiteDatabase$CursorFactory p4, android.database.DatabaseErrorHandler p5)
    {
        return android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(this.getDatabasePath(p2).getPath(), p4, p5);
    }

Method io.fabric.sdk.android.FabricContext.openOrCreateDatabase() calling method android.database.sqlite.SQLiteDatabase.openOrCreateDatabase()


    public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String p2, int p3, android.database.sqlite.SQLiteDatabase$CursorFactory p4)
    {
        return android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(this.getDatabasePath(p2), p4);
    }

Method com.google.android.gms.tagmanager.zzw.zzc() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void zzc(java.util.List p7, long p8)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.zzgv("Error opening database for writeEntryToDatabase.");
        if (v1 != null) {
            java.util.Iterator v2 = p7.iterator();
            while (v2.hasNext()) {
                String v0_2 = ((com.google.android.gms.tagmanager.zzw$zzb) v2.next());
                android.content.ContentValues v3_1 = new android.content.ContentValues();
                v3_1.put("expires", Long.valueOf(p8));
                v3_1.put("key", v0_2.zzwQ);
                v3_1.put("value", v0_2.zzboP);
                v1.insert("datalayer", 0, v3_1);
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzcf.zzh() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void zzh(long p6, String p8)
    {
        String v0_3 = this.zzgv("Error opening database for putHit");
        if (v0_3 != null) {
            int v1_2 = new android.content.ContentValues();
            v1_2.put("hit_time", Long.valueOf(p6));
            v1_2.put("hit_url", p8);
            v1_2.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_3.insert("gtm_hits", 0, v1_2);
                this.zzbpR.zzaE(0);
            } catch (String v0) {
                com.google.android.gms.tagmanager.zzbn.zzaW("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zza() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void zza(com.google.android.gms.measurement.internal.zzh p9, long p10)
    {
        this.zzkN();
        this.zzma();
        com.google.android.gms.common.internal.zzaa.zzz(p9);
        com.google.android.gms.common.internal.zzaa.zzdl(p9.zzPx);
        int v3_6 = new com.google.android.gms.internal.zzsp$zzb();
        v3_6.zzbgY = Long.valueOf(p9.zzbci);
        com.google.android.gms.measurement.internal.zzp$zza v0_3 = new com.google.android.gms.internal.zzsp$zzc[p9.zzbcj.size()];
        v3_6.zzbgW = v0_3;
        long v4_0 = p9.zzbcj.iterator();
        String v1_1 = 0;
        while (v4_0.hasNext()) {
            com.google.android.gms.measurement.internal.zzp$zza v0_19 = ((String) v4_0.next());
            com.google.android.gms.internal.zzsp$zzc v5_1 = new com.google.android.gms.internal.zzsp$zzc();
            String v2_10 = (v1_1 + 1);
            v3_6.zzbgW[v1_1] = v5_1;
            v5_1.name = v0_19;
            this.zzFi().zza(v5_1, p9.zzbcj.get(v0_19));
            v1_1 = v2_10;
        }
        try {
            com.google.android.gms.measurement.internal.zzp$zza v0_7 = new byte[v3_6.getSerializedSize()];
            String v1_3 = com.google.android.gms.internal.zzamc.zzO(v0_7);
            v3_6.writeTo(v1_3);
            v1_3.zzWU();
            this.zzFm().zzFL().zze("Saving event, name, data size", p9.mName, Integer.valueOf(v0_7.length));
            String v1_7 = new android.content.ContentValues();
            v1_7.put("app_id", p9.zzPx);
            v1_7.put("name", p9.mName);
            v1_7.put("timestamp", Long.valueOf(p9.zzajg));
            v1_7.put("metadata_fingerprint", Long.valueOf(p10));
            v1_7.put("data", v0_7);
            try {
                if (this.getWritableDatabase().insert("raw_events", 0, v1_7) != -1) {
                    return;
                } else {
                    this.zzFm().zzFE().log("Failed to insert raw event (got -1)");
                    return;
                }
            } catch (com.google.android.gms.measurement.internal.zzp$zza v0_16) {
                this.zzFm().zzFE().zzj("Error storing raw event", v0_16);
                return;
            }
        } catch (com.google.android.gms.measurement.internal.zzp$zza v0_9) {
            this.zzFm().zzFE().zzj("Data loss. Failed to serialize event params/data", v0_9);
            return;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zza() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void zza(com.google.android.gms.internal.zzsp$zze p7)
    {
        this.zzkN();
        this.zzma();
        com.google.android.gms.common.internal.zzaa.zzz(p7);
        com.google.android.gms.common.internal.zzaa.zzdl(p7.appId);
        com.google.android.gms.common.internal.zzaa.zzz(p7.zzbhi);
        this.zzFq();
        com.google.android.gms.measurement.internal.zzp$zza v0_0 = this.zzlQ().currentTimeMillis();
        if ((p7.zzbhi.longValue() < (v0_0 - this.zzFo().zzEO())) || (p7.zzbhi.longValue() > (this.zzFo().zzEO() + v0_0))) {
            this.zzFm().zzFG().zze("Storing bundle outside of the max uploading time span. now, timestamp", Long.valueOf(v0_0), p7.zzbhi);
        }
        try {
            com.google.android.gms.measurement.internal.zzp$zza v0_4 = new byte[p7.getSerializedSize()];
            String v1_1 = com.google.android.gms.internal.zzamc.zzO(v0_4);
            p7.writeTo(v1_1);
            v1_1.zzWU();
            com.google.android.gms.measurement.internal.zzp$zza v0_6 = this.zzFi().zzh(v0_4);
            this.zzFm().zzFL().zzj("Saving bundle, size", Integer.valueOf(v0_6.length));
            String v1_6 = new android.content.ContentValues();
            v1_6.put("app_id", p7.appId);
            v1_6.put("bundle_end_timestamp", p7.zzbhi);
            v1_6.put("data", v0_6);
            try {
                if (this.getWritableDatabase().insert("queue", 0, v1_6) != -1) {
                    return;
                } else {
                    this.zzFm().zzFE().log("Failed to insert bundle (got -1)");
                    return;
                }
            } catch (com.google.android.gms.measurement.internal.zzp$zza v0_14) {
                this.zzFm().zzFE().zzj("Error storing bundle", v0_14);
                return;
            }
        } catch (com.google.android.gms.measurement.internal.zzp$zza v0_7) {
            this.zzFm().zzFE().zzj("Data loss. Failed to serialize bundle", v0_7);
            return;
        }
    }

Method com.google.android.gms.internal.zzuq.zzb() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void zzb(long p8, String p10, String p11, String p12, java.util.Map p13, String p14)
    {
        String v0_0 = 0;
        int v1_2 = this.zzgv("Error opening database for putHit");
        if (v1_2 != 0) {
            android.content.ContentValues v2_1 = new android.content.ContentValues();
            v2_1.put("hit_time", Long.valueOf(p8));
            v2_1.put("hit_url", p10);
            v2_1.put("hit_first_send_time", Integer.valueOf(0));
            if (p11 == null) {
                p11 = "GET";
            }
            v2_1.put("hit_method", p11);
            v2_1.put("hit_unique_id", p12);
            if (p13 != null) {
                v0_0 = new org.json.JSONObject(p13).toString();
            }
            v2_1.put("hit_headers", v0_0);
            v2_1.put("hit_body", p14);
            try {
                v1_2.insert("gtm_hits", 0, v2_1);
                com.google.android.gms.internal.zzun.v(new StringBuilder((String.valueOf(p10).length() + 19)).append("Hit stored (url = ").append(p10).append(")").toString());
                this.zzbsT.zzaE(0);
            } catch (String v0) {
                com.google.android.gms.internal.zzun.zzaW("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.analytics.internal.zzj.zzc() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void zzc(com.google.android.gms.analytics.internal.zzab p7)
    {
        com.google.android.gms.common.internal.zzaa.zzz(p7);
        this.zzkN();
        this.zzma();
        Long v0_5 = com.google.android.gms.analytics.internal.zzj.zze(p7);
        if (v0_5.length() <= 8192) {
            this.zzmu();
            String v1_0 = this.getWritableDatabase();
            String v2_1 = new android.content.ContentValues();
            v2_1.put("hit_string", v0_5);
            v2_1.put("hit_time", Long.valueOf(p7.zznT()));
            v2_1.put("hit_app_id", Integer.valueOf(p7.zznR()));
            v2_1.put("hit_url", this.zzd(p7));
            try {
                Long v0_4 = v1_0.insert("hits2", 0, v2_1);
            } catch (Long v0_7) {
                this.zze("Error storing a hit", v0_7);
            }
            if (v0_4 != -1) {
                this.zzb("Hit saved to database. db-id, hit", Long.valueOf(v0_4), p7);
            } else {
                this.zzbK("Failed to insert a hit (got -1)");
            }
        } else {
            this.zzlR().zza(p7, "Hit length exceeds the maximum allowed size");
        }
        return;
    }

Method com.google.android.gms.ads.internal.purchase.zzh.zzb() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void zzb(com.google.android.gms.ads.internal.purchase.zzf p7)
    {
        if (p7 != null) {
            try {
                long v0_2 = this.getWritableDatabase();
            } catch (long v0_3) {
                throw v0_3;
            }
            if (v0_2 != 0) {
                long v2_3 = new android.content.ContentValues();
                v2_3.put("product_id", p7.zzJz);
                v2_3.put("developer_payload", p7.zzJy);
                v2_3.put("record_time", Long.valueOf(android.os.SystemClock.elapsedRealtime()));
                p7.zzJx = v0_2.insert("InAppPurchase", 0, v2_3);
                if (((long) this.getRecordCount()) > 20000) {
                    this.zzhn();
                }
            } else {
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzw$zza.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p3)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_5 = p3.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_5.moveToFirst();
                v0_5.close();
            } catch (Throwable v1_2) {
                v0_5.close();
                throw v1_2;
            }
        }
        if (this.zza("datalayer", p3)) {
            this.zzc(p3);
        } else {
            p3.execSQL(com.google.android.gms.tagmanager.zzw.zzJE());
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzcf$zzb.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p3)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_5 = p3.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_5.moveToFirst();
                v0_5.close();
            } catch (Throwable v1_2) {
                v0_5.close();
                throw v1_2;
            }
        }
        if (this.zza("gtm_hits", p3)) {
            this.zzc(p3);
        } else {
            p3.execSQL(com.google.android.gms.tagmanager.zzcf.zzKg());
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzy() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void zzy(String p6, int p7)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p6);
        this.zzkN();
        this.zzma();
        try {
            android.database.sqlite.SQLiteException v0_1 = this.getWritableDatabase();
            String v2_2 = new String[3];
            v2_2[0] = p6;
            v2_2[1] = p6;
            v2_2[2] = String.valueOf(p7);
            v0_1.execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like \'_ltv_%\' order by set_timestamp desc limit ?,10);", v2_2);
        } catch (android.database.sqlite.SQLiteException v0_0) {
            this.zzFm().zzFE().zze("Error pruning currencies", p6, v0_0);
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzfq() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void zzfq(String p5)
    {
        android.database.sqlite.SQLiteException v0_0 = this.getWritableDatabase();
        try {
            String v2_2 = new String[2];
            v2_2[0] = p5;
            v2_2[1] = p5;
            v0_0.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v2_2);
        } catch (android.database.sqlite.SQLiteException v0_1) {
            this.zzFm().zzFE().zzj("Failed to remove unused event metadata", v0_1);
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze$zzc.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void zza(android.database.sqlite.SQLiteDatabase p7, String p8, String p9, java.util.Map p10)
    {
        String v1_0 = this.zzb(p7, p8);
        String v2_6 = p9.split(",");
        String v0_10 = 0;
        while (v0_10 < v2_6.length) {
            String v4 = v2_6[v0_10];
            if (v1_0.remove(v4)) {
                v0_10++;
            } else {
                throw new android.database.sqlite.SQLiteException(new StringBuilder(((String.valueOf(p8).length() + 35) + String.valueOf(v4).length())).append("Table ").append(p8).append(" is missing required column: ").append(v4).toString());
            }
        }
        if (p10 != null) {
            String v2_0 = p10.entrySet().iterator();
            while (v2_0.hasNext()) {
                String v0_7 = ((java.util.Map$Entry) v2_0.next());
                if (!v1_0.remove(v0_7.getKey())) {
                    p7.execSQL(((String) v0_7.getValue()));
                }
            }
        }
        if (v1_0.isEmpty()) {
            return;
        } else {
            throw new android.database.sqlite.SQLiteException(new StringBuilder((String.valueOf(p8).length() + 30)).append("Table ").append(p8).append(" table has extra columns").toString());
        }
    }

Method com.google.android.gms.measurement.internal.zze$zzc.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void zza(android.database.sqlite.SQLiteDatabase p4, String p5, String p6, String p7, java.util.Map p8)
    {
        if (!this.zza(p4, p5)) {
            p4.execSQL(p6);
        }
        try {
            this.zza(p4, p5, p7, p8);
            return;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            this.zzbcb.zzFm().zzFE().zzj("Failed to verify columns on table that was just created", p5);
            throw v0_1;
        }
    }

Method com.google.android.gms.internal.zzuq$zzb.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_15 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_15.moveToFirst();
                v0_15.close();
            } catch (String v1_0) {
                v0_15.close();
                throw v1_0;
            }
        }
        if (this.zza("gtm_hit_unique_ids", p5)) {
            String v0_2 = new String[1];
            v0_2[0] = "hit_unique_id";
            this.zza(p5, "gtm_hit_unique_ids", java.util.Arrays.asList(v0_2));
        } else {
            p5.execSQL(com.google.android.gms.internal.zzuq.zzKg());
        }
        if (this.zza("gtm_hits", p5)) {
            String v0_9 = new String[8];
            v0_9[0] = "hit_id";
            v0_9[1] = "hit_url";
            v0_9[2] = "hit_time";
            v0_9[3] = "hit_first_send_time";
            v0_9[4] = "hit_method";
            v0_9[5] = "hit_unique_id";
            v0_9[6] = "hit_headers";
            v0_9[7] = "hit_body";
            this.zza(p5, "gtm_hits", java.util.Arrays.asList(v0_9));
        } else {
            p5.execSQL(com.google.android.gms.internal.zzuq.zzLe());
        }
        p5.execSQL(com.google.android.gms.internal.zzuq.zzLf());
        p5.execSQL(com.google.android.gms.internal.zzuq.zzLg());
        return;
    }

Method com.google.android.gms.internal.zzadq$zza.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p4, int p5, int p6)
    {
        if ((com.google.android.gms.internal.zzadq$zza.$assertionsDisabled) || (p6 == 2)) {
            if (p5 > 1) {
                throw new AssertionError(new StringBuilder(40).append("We don\'t handle upgrading to ").append(p6).toString());
            } else {
                this.zzc(p4, "serverCache");
                p4.execSQL("CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);");
                this.zzc(p4, "complete");
                p4.execSQL("CREATE TABLE trackedKeys (id INTEGER, key TEXT);");
                p4.execSQL("CREATE TABLE trackedQueries (id INTEGER PRIMARY KEY, path TEXT, queryParams TEXT, lastUse INTEGER, complete INTEGER, active INTEGER);");
                return;
            }
        } else {
            throw new AssertionError("Why is onUpgrade() called with a different version?");
        }
    }

Method com.google.android.gms.internal.zzadq$zza.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);");
        p2.execSQL("CREATE TABLE writes (id INTEGER, path TEXT, type TEXT, part INTEGER, node BLOB, UNIQUE (id, part));");
        p2.execSQL("CREATE TABLE trackedQueries (id INTEGER PRIMARY KEY, path TEXT, queryParams TEXT, lastUse INTEGER, complete INTEGER, active INTEGER);");
        p2.execSQL("CREATE TABLE trackedKeys (id INTEGER, key TEXT);");
        return;
    }

Method com.google.android.gms.internal.zzadq$zza.zzc() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void zzc(android.database.sqlite.SQLiteDatabase p4, String p5)
    {
        String v0_2;
        String v0_0 = String.valueOf(p5);
        if (v0_0.length() == 0) {
            v0_2 = new String("DROP TABLE IF EXISTS ");
        } else {
            v0_2 = "DROP TABLE IF EXISTS ".concat(v0_0);
        }
        p4.execSQL(v0_2);
        return;
    }

Method com.google.android.gms.analytics.internal.zzj$zza.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p3)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_8 = p3.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_8.moveToFirst();
                v0_8.close();
            } catch (Throwable v1_2) {
                v0_8.close();
                throw v1_2;
            }
        }
        if (this.zza(p3, "hits2")) {
            this.zza(p3);
        } else {
            p3.execSQL(com.google.android.gms.analytics.internal.zzj.zzmw());
        }
        if (this.zza(p3, "properties")) {
            this.zzb(p3);
        } else {
            p3.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
        }
        return;
    }

Method com.google.android.gms.analytics.internal.zzj$zza.zza() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void zza(android.database.sqlite.SQLiteDatabase p9)
    {
        String v0_0 = 1;
        int v3_1 = this.zzb(p9, "hits2");
        String[] v4 = new String[4];
        v4[0] = "hit_id";
        v4[1] = "hit_string";
        v4[2] = "hit_time";
        v4[3] = "hit_url";
        int v2_2 = 0;
        while (v2_2 < 4) {
            String v5_2 = v4[v2_2];
            if (v3_1.remove(v5_2)) {
                v2_2++;
            } else {
                String v0_6;
                String v0_4 = String.valueOf(v5_2);
                if (v0_4.length() == 0) {
                    v0_6 = new String("Database hits2 is missing required column: ");
                } else {
                    v0_6 = "Database hits2 is missing required column: ".concat(v0_4);
                }
                throw new android.database.sqlite.SQLiteException(v0_6);
            }
        }
        if (v3_1.remove("hit_app_id")) {
            v0_0 = 0;
        }
        if (v3_1.isEmpty()) {
            if (v0_0 != null) {
                p9.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
            }
            return;
        } else {
            throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
        }
    }

Method com.google.android.gms.ads.internal.purchase.zzh$zza.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p3, int p4, int p5)
    {
        com.google.android.gms.internal.zzjw.zzaV(new StringBuilder(64).append("Database updated from version ").append(p4).append(" to version ").append(p5).toString());
        p3.execSQL("DROP TABLE IF EXISTS InAppPurchase");
        this.onCreate(p3);
        return;
    }

Method com.google.android.gms.ads.internal.purchase.zzh$zza.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL(com.google.android.gms.ads.internal.purchase.zzh.access$000());
        return;
    }

Method com.google.android.gms.tagmanager.zzw.zzgu() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void zzgu(String p8)
    {
        String v0_2 = this.zzgv("Error opening database for clearKeysWithPrefix.");
        if (v0_2 != null) {
            try {
                int v3_3 = new String[2];
                v3_3[0] = p8;
                v3_3[1] = String.valueOf(p8).concat(".%");
                com.google.android.gms.tagmanager.zzbn.v(new StringBuilder(25).append("Cleared ").append(v0_2.delete("datalayer", "key = ? OR key LIKE ?", v3_3)).append(" items").toString());
                this.zzJD();
            } catch (String v0_11) {
                this.zzJD();
                throw v0_11;
            } catch (String v0_6) {
                String v0_7 = String.valueOf(v0_6);
                com.google.android.gms.tagmanager.zzbn.zzaW(new StringBuilder(((String.valueOf(p8).length() + 44) + String.valueOf(v0_7).length())).append("Error deleting entries with key prefix: ").append(p8).append(" (").append(v0_7).append(").").toString());
                this.zzJD();
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzw.zzg() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void zzg(String[] p8)
    {
        if ((p8 != null) && (p8.length != 0)) {
            String v0_6 = this.zzgv("Error opening database for deleteEntries.");
            if (v0_6 != null) {
                int v2_3 = new Object[2];
                v2_3[0] = "ID";
                v2_3[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p8.length, "?"));
                try {
                    v0_6.delete("datalayer", String.format("%s in (%s)", v2_3), p8);
                } catch (String v0) {
                    String v0_3 = String.valueOf(java.util.Arrays.toString(p8));
                    if (v0_3.length() == 0) {
                        String v0_5 = new String("Error deleting entries ");
                    } else {
                        v0_5 = "Error deleting entries ".concat(v0_3);
                    }
                    com.google.android.gms.tagmanager.zzbn.zzaW(v0_5);
                }
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzw.zzaq() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void zzaq(long p8)
    {
        String v0_2 = this.zzgv("Error opening database for deleteOlderThan.");
        if (v0_2 != null) {
            try {
                String[] v3_1 = new String[1];
                v3_1[0] = Long.toString(p8);
                com.google.android.gms.tagmanager.zzbn.v(new StringBuilder(33).append("Deleted ").append(v0_2.delete("datalayer", "expires <= ?", v3_1)).append(" expired items").toString());
            } catch (String v0) {
                com.google.android.gms.tagmanager.zzbn.zzaW("Error deleting old entries.");
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzcf.zzms() calling method android.database.sqlite.SQLiteDatabase.delete()


    int zzms()
    {
        int v0 = 1;
        int v1 = 0;
        int v2_4 = this.zzsd.currentTimeMillis();
        if (v2_4 > (this.zzbpT + 86400000)) {
            this.zzbpT = v2_4;
            int v2_1 = this.zzgv("Error opening database for deleteStaleHits.");
            if (v2_1 != 0) {
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzsd.currentTimeMillis() - 1.280618154e-314));
                int v2_3 = v2_1.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzKe() != 0) {
                    v0 = 0;
                }
                this.zzbpR.zzaE(v0);
                v1 = v2_3;
            }
        }
        return v1;
    }

Method com.google.android.gms.tagmanager.zzcf.zzh() calling method android.database.sqlite.SQLiteDatabase.delete()


    void zzh(String[] p9)
    {
        int v0_0 = 1;
        if ((p9 != null) && (p9.length != 0)) {
            com.google.android.gms.tagmanager.zzaw v2_3 = this.zzgv("Error opening database for deleteHits.");
            if (v2_3 != null) {
                String v4_0 = new Object[1];
                v4_0[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p9.length, "?"));
                try {
                    v2_3.delete("gtm_hits", String.format("HIT_ID in (%s)", v4_0), p9);
                } catch (int v0) {
                    com.google.android.gms.tagmanager.zzbn.zzaW("Error deleting hits");
                }
                if (this.zzKe() != 0) {
                    v0_0 = 0;
                }
                this.zzbpR.zzaE(v0_0);
            }
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzz() calling method android.database.sqlite.SQLiteDatabase.delete()


    void zzz(String p9, int p10)
    {
        this.zzma();
        this.zzkN();
        com.google.android.gms.common.internal.zzaa.zzdl(p9);
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String[] v3_0 = new String[2];
        v3_0[0] = p9;
        v3_0[1] = String.valueOf(p10);
        v0.delete("property_filters", "app_id=? and audience_id=?", v3_0);
        String[] v3_1 = new String[2];
        v3_1[0] = p9;
        v3_1[1] = String.valueOf(p10);
        v0.delete("event_filters", "app_id=? and audience_id=?", v3_1);
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzfp() calling method android.database.sqlite.SQLiteDatabase.delete()


    void zzfp(String p6)
    {
        this.zzma();
        this.zzkN();
        com.google.android.gms.common.internal.zzaa.zzdl(p6);
        try {
            Integer v0_0 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzp$zza v1_3 = new String[1];
            v1_3[0] = p6;
            Integer v0_2 = (v0_0.delete("audience_filter_values", "app_id=?", v1_3) + (((((((v0_0.delete("events", "app_id=?", v1_3) + 0) + v0_0.delete("user_attributes", "app_id=?", v1_3)) + v0_0.delete("apps", "app_id=?", v1_3)) + v0_0.delete("raw_events", "app_id=?", v1_3)) + v0_0.delete("raw_events_metadata", "app_id=?", v1_3)) + v0_0.delete("event_filters", "app_id=?", v1_3)) + v0_0.delete("property_filters", "app_id=?", v1_3)));
        } catch (Integer v0_4) {
            this.zzFm().zzFE().zze("Error deleting application data. appId, error", p6, v0_4);
            return;
        }
        if (v0_2 <= null) {
            return;
        } else {
            this.zzFm().zzFL().zze("Deleted application data. app, records", p6, Integer.valueOf(v0_2));
            return;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzfn() calling method android.database.sqlite.SQLiteDatabase.delete()


    void zzfn(String p7)
    {
        this.zzma();
        this.zzkN();
        com.google.android.gms.common.internal.zzaa.zzdl(p7);
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String[] v3_1 = new String[1];
        v3_1[0] = p7;
        v0.delete("property_filters", "app_id=?", v3_1);
        String[] v3_0 = new String[1];
        v3_0[0] = p7;
        v0.delete("event_filters", "app_id=?", v3_0);
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzfl() calling method android.database.sqlite.SQLiteDatabase.delete()


    public long zzfl(String p7)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p7);
        this.zzkN();
        this.zzma();
        try {
            long v0_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzp$zza v1_0 = String.valueOf(this.zzFo().zzfi(p7));
            String[] v4_1 = new String[2];
            v4_1[0] = p7;
            v4_1[1] = v1_0;
            long v0_1 = ((long) v0_3.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v4_1));
        } catch (long v0_2) {
            this.zzFm().zzFE().zzj("Error deleting over the limit events", v0_2);
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.google.android.gms.measurement.internal.zze.zzae() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzae(long p6)
    {
        this.zzkN();
        this.zzma();
        com.google.android.gms.measurement.internal.zzp$zza v0_3 = this.getWritableDatabase();
        String v1_1 = new String[1];
        v1_1[0] = String.valueOf(p6);
        if (v0_3.delete("queue", "rowid=?", v1_1) != 1) {
            this.zzFm().zzFE().log("Deleted fewer rows from queue than expected");
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzP() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzP(String p6, String p7)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p6);
        com.google.android.gms.common.internal.zzaa.zzdl(p7);
        this.zzkN();
        this.zzma();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            String[] v3_1 = new String[2];
            v3_1[0] = p6;
            v3_1[1] = p7;
            this.zzFm().zzFL().zzj("Deleted user attribute rows:", Integer.valueOf(v0_3.delete("user_attributes", "app_id=? and name=?", v3_1)));
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzFm().zzFE().zzd("Error deleting user attribute", p6, p7, v0_2);
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzFr() calling method android.database.sqlite.SQLiteDatabase.delete()


    void zzFr()
    {
        this.zzkN();
        this.zzma();
        if (this.zzFv()) {
            Integer v0_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzp$zza v1_3 = new String[2];
            v1_3[0] = String.valueOf(this.zzlQ().currentTimeMillis());
            v1_3[1] = String.valueOf(this.zzFo().zzEO());
            Integer v0_0 = v0_3.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_3);
            if (v0_0 > null) {
                this.zzFm().zzFL().zzj("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_0));
            }
        }
        return;
    }

Method com.google.android.gms.measurement.internal.zze.zzC() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzC(java.util.List p7)
    {
        com.google.android.gms.common.internal.zzaa.zzz(p7);
        this.zzkN();
        this.zzma();
        String v2_3 = new StringBuilder("rowid in (");
        com.google.android.gms.measurement.internal.zzp$zza v1_4 = 0;
        while (v1_4 < p7.size()) {
            if (v1_4 != null) {
                v2_3.append(",");
            }
            v2_3.append(((Long) p7.get(v1_4)).longValue());
            v1_4++;
        }
        v2_3.append(")");
        Integer v0_2 = this.getWritableDatabase().delete("raw_events", v2_3.toString(), 0);
        if (v0_2 != p7.size()) {
            this.zzFm().zzFE().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v0_2), Integer.valueOf(p7.size()));
        }
        return;
    }

Method com.google.android.gms.internal.zzuq.zzms() calling method android.database.sqlite.SQLiteDatabase.delete()


    int zzms()
    {
        int v0 = 1;
        int v1 = 0;
        int v2_4 = this.zzsd.currentTimeMillis();
        if (v2_4 > (this.zzbpT + 86400000)) {
            this.zzbpT = v2_4;
            int v2_1 = this.zzgv("Error opening database for deleteStaleHits.");
            if (v2_1 != 0) {
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzsd.currentTimeMillis() - 1.280618154e-314));
                int v2_3 = v2_1.delete("gtm_hits", "HIT_TIME < ?", v7);
                com.google.android.gms.internal.zzun.v(new StringBuilder(31).append("Removed ").append(v2_3).append(" stale hits.").toString());
                if (this.zzKe() != 0) {
                    v0 = 0;
                }
                this.zzbsT.zzaE(v0);
                v1 = v2_3;
            }
        }
        return v1;
    }

Method com.google.android.gms.internal.zzuq.zzh() calling method android.database.sqlite.SQLiteDatabase.delete()


    void zzh(String[] p9)
    {
        int v0_0 = 1;
        if ((p9 != null) && (p9.length != 0)) {
            com.google.android.gms.internal.zzuk v2_3 = this.zzgv("Error opening database for deleteHits.");
            if (v2_3 != null) {
                String v4_0 = new Object[1];
                v4_0[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p9.length, "?"));
                try {
                    v2_3.delete("gtm_hits", String.format("HIT_ID in (%s)", v4_0), p9);
                } catch (int v0) {
                    com.google.android.gms.internal.zzun.zzaW("Error deleting hits");
                }
                if (this.zzKe() != 0) {
                    v0_0 = 0;
                }
                this.zzbsT.zzaE(v0_0);
            }
        }
        return;
    }

Method com.google.android.gms.internal.zzadq.zzau() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzau(long p8)
    {
        this.zzPt();
        String v0 = String.valueOf(p8);
        android.database.sqlite.SQLiteDatabase v2_1 = this.zzbHU;
        String[] v4_1 = new String[1];
        v4_1[0] = v0;
        v2_1.delete("trackedQueries", "id = ?", v4_1);
        android.database.sqlite.SQLiteDatabase v2_0 = this.zzbHU;
        String[] v4_0 = new String[1];
        v4_0[0] = v0;
        v2_0.delete("trackedKeys", "id = ?", v4_0);
        return;
    }

Method com.google.android.gms.internal.zzadq.zzat() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzat(long p10)
    {
        this.zzPt();
        String v0_3 = System.currentTimeMillis();
        int v2_4 = this.zzbHU;
        Object[] v5_2 = new String[1];
        v5_2[0] = String.valueOf(p10);
        int v2_0 = v2_4.delete("writes", "id = ?", v5_2);
        String v0_0 = (System.currentTimeMillis() - v0_3);
        if (this.zzbHV.zzTe()) {
            com.google.android.gms.internal.zzahf v3_2 = this.zzbHV;
            Object[] v5_1 = new Object[3];
            v5_1[0] = Integer.valueOf(v2_0);
            v5_1[1] = Long.valueOf(p10);
            v5_1[2] = Long.valueOf(v0_0);
            Object[] v1 = new Object[0];
            v3_2.zzh(String.format("Deleted %d write(s) with writeId %d in %dms", v5_1), v1);
        }
        return;
    }

Method com.google.android.gms.internal.zzadq.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zza(com.google.android.gms.internal.zzafa p12, com.google.android.gms.internal.zzagf p13)
    {
        if (p13.zzSj()) {
            this.zzPt();
            long v8 = System.currentTimeMillis();
            int v0_15 = new String[2];
            v0_15[0] = "rowid";
            v0_15[1] = "path";
            int v0_5 = this.zza(p12, v0_15);
            com.google.android.gms.internal.zzagi v3_1 = new com.google.android.gms.internal.zzagi(0);
            com.google.android.gms.internal.zzagi v4_0 = new com.google.android.gms.internal.zzagi(0);
            while (v0_5.moveToNext()) {
                String v6_0 = v0_5.getLong(0);
                int v1_7 = new com.google.android.gms.internal.zzafa(v0_5.getString(1));
                if (p12.zzi(v1_7)) {
                    com.google.android.gms.internal.zzahf v2_4 = com.google.android.gms.internal.zzafa.zza(p12, v1_7);
                    if (!p13.zzw(v2_4)) {
                        if (!p13.zzx(v2_4)) {
                            com.google.android.gms.internal.zzahf v2_5 = this.zzbHV;
                            String v5_2 = String.valueOf(p12);
                            int v1_8 = String.valueOf(v1_7);
                            v2_5.warn(new StringBuilder(((String.valueOf(v5_2).length() + 88) + String.valueOf(v1_8).length())).append("We are pruning at ").append(v5_2).append(" and have data at ").append(v1_8).append(" that isn\'t marked for pruning or keeping. Ignoring.").toString());
                        } else {
                            v4_0 = v4_0.zzb(v2_4, Long.valueOf(v6_0));
                        }
                    } else {
                        v3_1 = v3_1.zzb(v2_4, Long.valueOf(v6_0));
                    }
                } else {
                    com.google.android.gms.internal.zzahf v2_6 = this.zzbHV;
                    String v5_6 = String.valueOf(p12);
                    int v1_15 = String.valueOf(v1_7);
                    v2_6.warn(new StringBuilder(((String.valueOf(v5_6).length() + 67) + String.valueOf(v1_15).length())).append("We are pruning at ").append(v5_6).append(" but we have data stored higher up at ").append(v1_15).append(". Ignoring.").toString());
                }
            }
            int v1_21 = 0;
            int v0_6 = 0;
            if (!v3_1.isEmpty()) {
                String v6_10 = new java.util.ArrayList();
                this.zza(p12, com.google.android.gms.internal.zzafa.zzRq(), v3_1, v4_0, p13, v6_10);
                com.google.android.gms.internal.zzahf v2_9 = v3_1.values();
                int v0_9 = String.valueOf(this.zzk(v2_9));
                this.zzbHU.delete("serverCache", new StringBuilder((String.valueOf(v0_9).length() + 11)).append("rowid IN (").append(v0_9).append(")").toString(), 0);
                com.google.android.gms.internal.zzagi v3_7 = v6_10.iterator();
                while (v3_7.hasNext()) {
                    int v0_2 = ((com.google.android.gms.internal.zzais) v3_7.next());
                    this.zzc(p12.zzh(((com.google.android.gms.internal.zzafa) v0_2.getFirst())), ((com.google.android.gms.internal.zzahu) v0_2.zzUj()));
                }
                v1_21 = v2_9.size();
                v0_6 = v6_10.size();
            }
            com.google.android.gms.internal.zzahf v2_11 = (System.currentTimeMillis() - v8);
            if (this.zzbHV.zzTe()) {
                com.google.android.gms.internal.zzagi v4_5 = this.zzbHV;
                String v6_12 = new Object[3];
                v6_12[0] = Integer.valueOf(v1_21);
                v6_12[1] = Integer.valueOf(v0_6);
                v6_12[2] = Long.valueOf(v2_11);
                int v1_0 = new Object[0];
                v4_5.zzh(String.format("Pruned %d rows with %d nodes resaved in %dms", v6_12), v1_0);
            }
        }
        return;
    }

Method com.google.android.gms.internal.zzadq.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zza(long p12, java.util.Set p14, java.util.Set p15)
    {
        this.zzPt();
        com.google.android.gms.internal.zzahf v2_1 = System.currentTimeMillis();
        Object[] v4_2 = String.valueOf(p12);
        int v5_7 = p15.iterator();
        while (v5_7.hasNext()) {
            String v0_10 = ((com.google.android.gms.internal.zzahi) v5_7.next());
            Long v6_7 = this.zzbHU;
            String[] v8_1 = new String[2];
            v8_1[0] = v4_2;
            v8_1[1] = v0_10.asString();
            v6_7.delete("trackedKeys", "id = ? AND key = ?", v8_1);
        }
        Object[] v1_0 = p14.iterator();
        while (v1_0.hasNext()) {
            String v0_6 = ((com.google.android.gms.internal.zzahi) v1_0.next());
            Object[] v4_4 = new android.content.ContentValues();
            v4_4.put("id", Long.valueOf(p12));
            v4_4.put("key", v0_6.asString());
            this.zzbHU.insertWithOnConflict("trackedKeys", 0, v4_4, 5);
        }
        String v0_2 = (System.currentTimeMillis() - v2_1);
        if (this.zzbHV.zzTe()) {
            com.google.android.gms.internal.zzahf v2_3 = this.zzbHV;
            Object[] v4_1 = new Object[4];
            v4_1[0] = Integer.valueOf(p14.size());
            v4_1[1] = Integer.valueOf(p15.size());
            v4_1[2] = Long.valueOf(p12);
            v4_1[3] = Long.valueOf(v0_2);
            Object[] v1_3 = new Object[0];
            v2_3.zzh(String.format("Updated tracked query keys (%d added, %d removed) for tracked query id %d in %dms", v4_1), v1_3);
        }
        return;
    }

Method com.google.android.gms.internal.zzadq.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zza(long p12, java.util.Set p14)
    {
        this.zzPt();
        com.google.android.gms.internal.zzahf v2_3 = System.currentTimeMillis();
        Object[] v4_4 = this.zzbHU;
        int v6_0 = new String[1];
        v6_0[0] = String.valueOf(p12);
        v4_4.delete("trackedKeys", "id = ?", v6_0);
        Object[] v1_0 = p14.iterator();
        while (v1_0.hasNext()) {
            String v0_6 = ((com.google.android.gms.internal.zzahi) v1_0.next());
            Object[] v4_3 = new android.content.ContentValues();
            v4_3.put("id", Long.valueOf(p12));
            v4_3.put("key", v0_6.asString());
            this.zzbHU.insertWithOnConflict("trackedKeys", 0, v4_3, 5);
        }
        String v0_2 = (System.currentTimeMillis() - v2_3);
        if (this.zzbHV.zzTe()) {
            com.google.android.gms.internal.zzahf v2_2 = this.zzbHV;
            Object[] v4_1 = new Object[3];
            v4_1[0] = Integer.valueOf(p14.size());
            v4_1[1] = Long.valueOf(p12);
            v4_1[2] = Long.valueOf(v0_2);
            Object[] v1_1 = new Object[0];
            v2_2.zzh(String.format("Set %d tracked query keys for tracked query %d in %dms", v4_1), v1_1);
        }
        return;
    }

Method com.google.android.gms.internal.zzadq.zzPs() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzPs()
    {
        this.zzPt();
        String v0_3 = System.currentTimeMillis();
        int v2_3 = this.zzbHU.delete("writes", 0, 0);
        String v0_0 = (System.currentTimeMillis() - v0_3);
        if (this.zzbHV.zzTe()) {
            com.google.android.gms.internal.zzahf v3_2 = this.zzbHV;
            Object[] v5_1 = new Object[2];
            v5_1[0] = Integer.valueOf(v2_3);
            v5_1[1] = Long.valueOf(v0_0);
            Object[] v1 = new Object[0];
            v3_2.zzh(String.format("Deleted %d (all) write(s) in %dms", v5_1), v1);
        }
        return;
    }

Method com.google.android.gms.internal.zzadq.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void zza(com.google.android.gms.internal.zzafa p11, long p12, String p14, byte[] p15)
    {
        this.zzPt();
        int v1_8 = this.zzbHU;
        String v4_6 = new String[1];
        v4_6[0] = String.valueOf(p12);
        v1_8.delete("writes", "id = ?", v4_6);
        if (p15.length < 262144) {
            int v0_1 = new android.content.ContentValues();
            v0_1.put("id", Long.valueOf(p12));
            v0_1.put("path", com.google.android.gms.internal.zzadq.zzc(p11));
            v0_1.put("type", p14);
            v0_1.put("part", 0);
            v0_1.put("node", p15);
            this.zzbHU.insertWithOnConflict("writes", 0, v0_1, 5);
        } else {
            String v2_3 = com.google.android.gms.internal.zzadq.zzb(p15, 262144);
            int v1_7 = 0;
            while (v1_7 < v2_3.size()) {
                android.content.ContentValues v3_1 = new android.content.ContentValues();
                v3_1.put("id", Long.valueOf(p12));
                v3_1.put("path", com.google.android.gms.internal.zzadq.zzc(p11));
                v3_1.put("type", p14);
                v3_1.put("part", Integer.valueOf(v1_7));
                v3_1.put("node", ((byte[]) v2_3.get(v1_7)));
                this.zzbHU.insertWithOnConflict("writes", 0, v3_1, 5);
                v1_7++;
            }
        }
        return;
    }

Method com.google.android.gms.internal.zzadq.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int zza(String p7, com.google.android.gms.internal.zzafa p8)
    {
        int v1_1 = com.google.android.gms.internal.zzadq.zzc(p8);
        String v2 = com.google.android.gms.internal.zzadq.zzhO(v1_1);
        android.database.sqlite.SQLiteDatabase v3 = this.zzbHU;
        String[] v4_1 = new String[2];
        v4_1[0] = v1_1;
        v4_1[1] = v2;
        return v3.delete(p7, "path >= ? AND path < ?", v4_1);
    }

Method com.google.android.gms.analytics.internal.zzj.zzq() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzq(java.util.List p9)
    {
        com.google.android.gms.common.internal.zzaa.zzz(p9);
        this.zzkN();
        this.zzma();
        if (!p9.isEmpty()) {
            String v2_5 = new StringBuilder("hit_id");
            v2_5.append(" in (");
            int v1_0 = 0;
            while (v1_0 < p9.size()) {
                int v0_7 = ((Long) p9.get(v1_0));
                if ((v0_7 != 0) && (v0_7.longValue() != 0)) {
                    if (v1_0 > 0) {
                        v2_5.append(",");
                    }
                    v2_5.append(v0_7);
                    v1_0++;
                } else {
                    throw new android.database.sqlite.SQLiteException("Invalid hit id");
                }
            }
            v2_5.append(")");
            int v0_3 = v2_5.toString();
            try {
                int v1_1 = this.getWritableDatabase();
                this.zza("Deleting dispatched hits. count", Integer.valueOf(p9.size()));
                int v1_2 = v1_1.delete("hits2", v0_3, 0);
            } catch (int v0_4) {
                this.zze("Error deleting hits", v0_4);
                throw v0_4;
            }
            if (v1_2 != p9.size()) {
                this.zzb("Deleted fewer hits then expected", Integer.valueOf(p9.size()), Integer.valueOf(v1_2), v0_3);
            }
        }
        return;
    }

Method com.google.android.gms.analytics.internal.zzj.zzms() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int zzms()
    {
        int v0 = 0;
        this.zzkN();
        this.zzma();
        if (this.zzWQ.zzx(86400000)) {
            this.zzWQ.start();
            this.zzbG("Deleting stale hits (if any)");
            String v1_1 = this.getWritableDatabase();
            String[] v6_1 = new String[1];
            v6_1[0] = Long.toString((this.zzlQ().currentTimeMillis() - 1.280618154e-314));
            v0 = v1_1.delete("hits2", "hit_time < ?", v6_1);
            this.zza("Deleted stale hits, count", Integer.valueOf(v0));
        }
        return v0;
    }

Method com.google.android.gms.analytics.internal.zzj.zzmr() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzmr()
    {
        this.zzkN();
        this.zzma();
        this.getWritableDatabase().delete("properties", 0, 0);
        return;
    }

Method com.google.android.gms.analytics.internal.zzj.zzmq() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zzmq()
    {
        this.zzkN();
        this.zzma();
        this.getWritableDatabase().delete("hits2", 0, 0);
        return;
    }

Method com.google.android.gms.analytics.internal.zzj.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zza(long p8, String p10)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p10);
        this.zzma();
        this.zzkN();
        Integer v0_2 = this.getWritableDatabase();
        String[] v3_1 = new String[2];
        v3_1[0] = String.valueOf(p8);
        v3_1[1] = p10;
        Integer v0_0 = v0_2.delete("properties", "app_uid=? AND cid<>?", v3_1);
        if (v0_0 > null) {
            this.zza("Deleted property records", Integer.valueOf(v0_0));
        }
        return;
    }

Method com.google.android.gms.ads.internal.purchase.zzh.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void zza(com.google.android.gms.ads.internal.purchase.zzf p9)
    {
        if (p9 != null) {
            try {
                Throwable v0_1 = this.getWritableDatabase();
            } catch (Throwable v0_0) {
                throw v0_0;
            }
            if (v0_1 != null) {
                int v4_2 = new Object[2];
                v4_2[0] = "purchase_id";
                v4_2[1] = Long.valueOf(p9.zzJx);
                v0_1.delete("InAppPurchase", String.format(java.util.Locale.US, "%s = %d", v4_2), 0);
            } else {
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzw.zzkP() calling method android.database.sqlite.SQLiteDatabase.query()


    private java.util.List zzkP(int p14)
    {
        java.util.ArrayList v0_12;
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        if (p14 > 0) {
            java.util.ArrayList v0_9 = this.zzgv("Error opening database for peekEntryIds.");
            if (v0_9 != null) {
                try {
                    long v2_0 = new String[1];
                    v2_0[0] = "ID";
                    String v8_1 = new Object[1];
                    v8_1[0] = "ID";
                    int v1_0 = v0_9.query("datalayer", v2_0, 0, 0, 0, 0, String.format("%s ASC", v8_1), Integer.toString(p14));
                    try {
                        if (v1_0.moveToFirst()) {
                            do {
                                v9_1.add(String.valueOf(v1_0.getLong(0)));
                            } while(v1_0.moveToNext());
                        }
                    } catch (java.util.ArrayList v0_0) {
                        java.util.ArrayList v0_5 = String.valueOf(v0_0.getMessage());
                        if (v0_5.length() == 0) {
                            java.util.ArrayList v0_7 = new String("Error in peekEntries fetching entryIds: ");
                        } else {
                            v0_7 = "Error in peekEntries fetching entryIds: ".concat(v0_5);
                        }
                        com.google.android.gms.tagmanager.zzbn.zzaW(v0_7);
                        if (v1_0 == 0) {
                            v0_12 = v9_1;
                            return v0_12;
                        } else {
                            v1_0.close();
                        }
                    }
                    if (v1_0 == 0) {
                    } else {
                        v1_0.close();
                    }
                } catch (java.util.ArrayList v0_1) {
                    v1_0 = 0;
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    throw v0_1;
                } catch (java.util.ArrayList v0_0) {
                    v1_0 = 0;
                } catch (java.util.ArrayList v0_1) {
                }
            } else {
                v0_12 = v9_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzbn.zzaW("Invalid maxEntries specified. Skipping.");
            v0_12 = v9_1;
        }
        return v0_12;
    }

Method com.google.android.gms.tagmanager.zzw.zzJB() calling method android.database.sqlite.SQLiteDatabase.query()


    private java.util.List zzJB()
    {
        java.util.ArrayList v0_3;
        java.util.ArrayList v0_6 = this.zzgv("Error opening database for loadSerialized.");
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        if (v0_6 != null) {
            String v2_0 = new String[2];
            v2_0[0] = "key";
            v2_0[1] = "value";
            android.database.Cursor v1_3 = v0_6.query("datalayer", v2_0, 0, 0, 0, 0, "ID", 0);
            try {
                while (v1_3.moveToNext()) {
                    v9_1.add(new com.google.android.gms.tagmanager.zzw$zzb(v1_3.getString(0), v1_3.getBlob(1)));
                }
            } catch (java.util.ArrayList v0_1) {
                v1_3.close();
                throw v0_1;
            }
            v1_3.close();
            v0_3 = v9_1;
        } else {
            v0_3 = v9_1;
        }
        return v0_3;
    }

Method com.google.android.gms.tagmanager.zzw$zza.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private boolean zza(String p11, android.database.sqlite.SQLiteDatabase p12)
    {
        String v9 = 0;
        try {
            String v2_1 = new String[1];
            v2_1[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p11;
            String v1_0 = p12.query("SQLITE_MASTER", v2_1, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_3) {
                v9 = v1_0;
                if (v9 != null) {
                    v9.close();
                }
                throw v0_3;
            } catch (int v0) {
                int v0_2 = v1_0;
                try {
                    String v1_2 = String.valueOf(p11);
                } catch (String v1_5) {
                    v9 = v0_2;
                    v0_3 = v1_5;
                }
                if (v1_2.length() == 0) {
                    String v1_4 = new String("Error querying for table ");
                } else {
                    v1_4 = "Error querying for table ".concat(v1_2);
                }
                com.google.android.gms.tagmanager.zzbn.zzaW(v1_4);
                if (v0_2 != 0) {
                    v0_2.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == null) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
        } catch (int v0) {
            v0_2 = 0;
        }
    }

Method com.google.android.gms.tagmanager.zzcf.zzkV() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzkV(int p17)
    {
        java.util.ArrayList v2_20;
        int v11_1 = new java.util.ArrayList();
        java.util.ArrayList v2_26 = this.zzgv("Error opening database for peekHits");
        if (v2_26 != null) {
            android.database.Cursor v12_2 = 0;
            try {
                int v4_0 = new String[3];
                v4_0[0] = "hit_id";
                v4_0[1] = "hit_time";
                v4_0[2] = "hit_first_send_time";
                String v10_4 = new Object[1];
                v10_4[0] = "hit_id";
                String v13_0 = v2_26.query("gtm_hits", v4_0, 0, 0, 0, 0, String.format("%s ASC", v10_4), Integer.toString(p17));
                try {
                    android.database.Cursor v12_1 = new java.util.ArrayList();
                    try {
                        if (v13_0.moveToFirst()) {
                            do {
                                v12_1.add(new com.google.android.gms.tagmanager.zzar(v13_0.getLong(0), v13_0.getLong(1), v13_0.getLong(2)));
                            } while(v13_0.moveToNext());
                        }
                    } catch (java.util.ArrayList v2_27) {
                        java.util.ArrayList v3_4 = v2_27;
                        int v4_5 = v13_0;
                        v2_20 = v12_1;
                        try {
                            java.util.ArrayList v3_7 = String.valueOf(v3_4.getMessage());
                        } catch (java.util.ArrayList v2_24) {
                            v12_2 = v4_5;
                            if (v12_2 != null) {
                                v12_2.close();
                            }
                            throw v2_24;
                        }
                        if (v3_7.length() == 0) {
                            java.util.ArrayList v3_9 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v3_9 = "Error in peekHits fetching hitIds: ".concat(v3_7);
                        }
                        com.google.android.gms.tagmanager.zzbn.zzaW(v3_9);
                        if (v4_5 == 0) {
                            return v2_20;
                        } else {
                            v4_5.close();
                            return v2_20;
                        }
                    }
                    if (v13_0 != null) {
                        v13_0.close();
                    }
                    try {
                        int v4_10 = new String[2];
                        v4_10[0] = "hit_id";
                        v4_10[1] = "hit_url";
                        String v10_1 = new Object[1];
                        v10_1[0] = "hit_id";
                        java.util.ArrayList v3_0 = v2_26.query("gtm_hits", v4_10, 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p17));
                        try {
                            if (v3_0.moveToFirst()) {
                                int v4_1 = 0;
                                while(true) {
                                    if (((android.database.sqlite.SQLiteCursor) v3_0).getWindow().getNumRows() <= 0) {
                                        boolean v6_3 = new Object[1];
                                        v6_3[0] = Long.valueOf(((com.google.android.gms.tagmanager.zzar) v12_1.get(v4_1)).zzJQ());
                                        com.google.android.gms.tagmanager.zzbn.zzaW(String.format("HitString for hitId %d too large.  Hit will be deleted.", v6_3));
                                    } else {
                                        ((com.google.android.gms.tagmanager.zzar) v12_1.get(v4_1)).zzgz(v3_0.getString(1));
                                    }
                                    if (!v3_0.moveToNext()) {
                                        break;
                                    }
                                    v4_1++;
                                }
                            }
                        } catch (java.util.ArrayList v2_19) {
                            v13_0 = v3_0;
                            if (v13_0 != null) {
                                v13_0.close();
                            }
                            throw v2_19;
                        } catch (java.util.ArrayList v2_0) {
                            v13_0 = v3_0;
                            java.util.ArrayList v2_13 = String.valueOf(v2_0.getMessage());
                            if (v2_13.length() == 0) {
                                java.util.ArrayList v2_15 = new String("Error in peekHits fetching hit url: ");
                            } else {
                                v2_15 = "Error in peekHits fetching hit url: ".concat(v2_13);
                            }
                            com.google.android.gms.tagmanager.zzbn.zzaW(v2_15);
                            java.util.ArrayList v3_3 = new java.util.ArrayList();
                            int v4_3 = 0;
                            String v5_8 = v12_1.iterator();
                        }
                        if (v3_0 != null) {
                            v3_0.close();
                        }
                        v2_20 = v12_1;
                    } catch (java.util.ArrayList v2_19) {
                    } catch (java.util.ArrayList v2_0) {
                    }
                } catch (java.util.ArrayList v2_24) {
                    v12_2 = v13_0;
                } catch (java.util.ArrayList v2_25) {
                    v3_4 = v2_25;
                    v4_5 = v13_0;
                    v2_20 = v11_1;
                }
            } catch (java.util.ArrayList v2_24) {
            } catch (java.util.ArrayList v2_23) {
                v3_4 = v2_23;
                v4_5 = 0;
                v2_20 = v11_1;
            }
        } else {
            v2_20 = v11_1;
        }
        return v2_20;
    }

Method com.google.android.gms.tagmanager.zzcf.zzkU() calling method android.database.sqlite.SQLiteDatabase.query()


    java.util.List zzkU(int p14)
    {
        java.util.ArrayList v0_12;
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        if (p14 > 0) {
            java.util.ArrayList v0_9 = this.zzgv("Error opening database for peekHitIds.");
            if (v0_9 != null) {
                try {
                    long v2_0 = new String[1];
                    v2_0[0] = "hit_id";
                    String v8_1 = new Object[1];
                    v8_1[0] = "hit_id";
                    int v1_0 = v0_9.query("gtm_hits", v2_0, 0, 0, 0, 0, String.format("%s ASC", v8_1), Integer.toString(p14));
                    try {
                        if (v1_0.moveToFirst()) {
                            do {
                                v9_1.add(String.valueOf(v1_0.getLong(0)));
                            } while(v1_0.moveToNext());
                        }
                    } catch (java.util.ArrayList v0_0) {
                        java.util.ArrayList v0_5 = String.valueOf(v0_0.getMessage());
                        if (v0_5.length() == 0) {
                            java.util.ArrayList v0_7 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v0_7 = "Error in peekHits fetching hitIds: ".concat(v0_5);
                        }
                        com.google.android.gms.tagmanager.zzbn.zzaW(v0_7);
                        if (v1_0 == 0) {
                            v0_12 = v9_1;
                            return v0_12;
                        } else {
                            v1_0.close();
                        }
                    }
                    if (v1_0 == 0) {
                    } else {
                        v1_0.close();
                    }
                } catch (java.util.ArrayList v0_1) {
                    v1_0 = 0;
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    throw v0_1;
                } catch (java.util.ArrayList v0_0) {
                    v1_0 = 0;
                } catch (java.util.ArrayList v0_1) {
                }
            } else {
                v0_12 = v9_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzbn.zzaW("Invalid maxHits specified. Skipping");
            v0_12 = v9_1;
        }
        return v0_12;
    }

Method com.google.android.gms.tagmanager.zzcf.zzKf() calling method android.database.sqlite.SQLiteDatabase.query()


    int zzKf()
    {
        String v8 = 0;
        String v9 = 0;
        String v0_4 = this.zzgv("Error opening database for getNumStoredHits.");
        if (v0_4 != null) {
            try {
                String[] v2_1 = new String[2];
                v2_1[0] = "hit_id";
                v2_1[1] = "hit_first_send_time";
                Throwable v1_0 = v0_4.query("gtm_hits", v2_1, "hit_first_send_time=0", 0, 0, 0, 0);
                try {
                    String v0_3 = v1_0.getCount();
                } catch (String v0_2) {
                    v9 = v1_0;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_2;
                } catch (String v0) {
                    String v0_1 = v1_0;
                    try {
                        com.google.android.gms.tagmanager.zzbn.zzaW("Error getting num untried hits");
                    } catch (Throwable v1_2) {
                        v9 = v0_1;
                        v0_2 = v1_2;
                    }
                    if (v0_1 == null) {
                        v0_3 = 0;
                        v8 = v0_3;
                    } else {
                        v0_1.close();
                        v0_3 = 0;
                    }
                }
                if (v1_0 == null) {
                } else {
                    v1_0.close();
                }
            } catch (String v0_2) {
            } catch (String v0) {
                v0_1 = 0;
            }
        }
        return v8;
    }

Method com.google.android.gms.tagmanager.zzcf$zzb.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private boolean zza(String p11, android.database.sqlite.SQLiteDatabase p12)
    {
        String v9 = 0;
        try {
            String v2_1 = new String[1];
            v2_1[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p11;
            String v1_0 = p12.query("SQLITE_MASTER", v2_1, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_3) {
                v9 = v1_0;
                if (v9 != null) {
                    v9.close();
                }
                throw v0_3;
            } catch (int v0) {
                int v0_2 = v1_0;
                try {
                    String v1_2 = String.valueOf(p11);
                } catch (String v1_5) {
                    v9 = v0_2;
                    v0_3 = v1_5;
                }
                if (v1_2.length() == 0) {
                    String v1_4 = new String("Error querying for table ");
                } else {
                    v1_4 = "Error querying for table ".concat(v1_2);
                }
                com.google.android.gms.tagmanager.zzbn.zzaW(v1_4);
                if (v0_2 != 0) {
                    v0_2.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == null) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
        } catch (int v0) {
            v0_2 = 0;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzn() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzn(String p12, int p13, int p14)
    {
        int v0_9;
        java.util.ArrayList v1_0 = 1;
        this.zzkN();
        this.zzma();
        if (p13 <= 0) {
            v0_9 = 0;
        } else {
            v0_9 = 1;
        }
        com.google.android.gms.common.internal.zzaa.zzaj(v0_9);
        if (p14 <= 0) {
            v1_0 = 0;
        }
        com.google.android.gms.common.internal.zzaa.zzaj(v1_0);
        com.google.android.gms.common.internal.zzaa.zzdl(p12);
        try {
            int v0_2 = this.getWritableDatabase();
            java.util.ArrayList v2_4 = new String[2];
            v2_4[0] = "rowid";
            v2_4[1] = "data";
            com.google.android.gms.measurement.internal.zzp$zza v4_3 = new String[1];
            v4_3[0] = p12;
            java.util.ArrayList v2_2 = v0_2.query("queue", v2_4, "app_id=?", v4_3, 0, 0, "rowid", String.valueOf(p13));
            try {
                int v0_0;
                if (v2_2.moveToFirst()) {
                    java.util.ArrayList v1_4 = new java.util.ArrayList();
                    int v3_4 = 0;
                    while(true) {
                        com.google.android.gms.measurement.internal.zzp$zza v4_4 = v2_2.getLong(0);
                        byte[] v6_2 = this.zzFi().zzr(v2_2.getBlob(1));
                        if ((!v1_4.isEmpty()) && ((v6_2.length + v3_4) > p14)) {
                            break;
                        }
                        int v0_14 = com.google.android.gms.internal.zzamb.zzN(v6_2);
                        com.google.android.gms.internal.zzsp$zze v7_2 = new com.google.android.gms.internal.zzsp$zze();
                        try {
                            v7_2.mergeFrom(v0_14);
                        } catch (int v0_16) {
                            this.zzFm().zzFE().zze("Failed to merge queued bundle", p12, v0_16);
                            int v0_10 = v3_4;
                        }
                        v0_10 = (v6_2.length + v3_4);
                        v1_4.add(android.util.Pair.create(v7_2, Long.valueOf(v4_4)));
                        if ((!v2_2.moveToNext()) || (v0_10 > p14)) {
                            break;
                        }
                        v3_4 = v0_10;
                    }
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    v0_0 = v1_4;
                    return v0_0;
                } else {
                    v0_0 = java.util.Collections.emptyList();
                    if (v2_2 == null) {
                        return v0_0;
                    } else {
                        v2_2.close();
                        return v0_0;
                    }
                }
            } catch (int v0_1) {
                if (v2_2 != null) {
                    v2_2.close();
                }
                throw v0_1;
            } catch (int v0_3) {
                java.util.ArrayList v1_2 = v2_2;
                try {
                    this.zzFm().zzFE().zze("Error querying bundles", p12, v0_3);
                    v0_0 = java.util.Collections.emptyList();
                } catch (int v0_1) {
                    v2_2 = v1_2;
                }
                if (v1_2 == null) {
                    return v0_0;
                } else {
                    v1_2.close();
                    return v0_0;
                }
            }
        } catch (int v0_1) {
            v2_2 = 0;
        } catch (int v0_3) {
            v1_2 = 0;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzfo() calling method android.database.sqlite.SQLiteDatabase.query()


    java.util.Map zzfo(String p10)
    {
        this.zzma();
        this.zzkN();
        com.google.android.gms.common.internal.zzaa.zzdl(p10);
        android.support.v4.util.ArrayMap v0_9 = this.getWritableDatabase();
        try {
            android.support.v4.util.ArrayMap v2_4 = new String[2];
            v2_4[0] = "audience_id";
            v2_4[1] = "current_results";
            com.google.android.gms.measurement.internal.zzp$zza v4_3 = new String[1];
            v4_3[0] = p10;
            android.support.v4.util.ArrayMap v2_0 = v0_9.query("audience_filter_values", v2_4, "app_id=?", v4_3, 0, 0, 0);
            try {
                android.support.v4.util.ArrayMap v0_11;
                if (v2_0.moveToFirst()) {
                    android.support.v4.util.ArrayMap v1_2 = new android.support.v4.util.ArrayMap();
                    do {
                        Integer v3_2 = v2_0.getInt(0);
                        android.support.v4.util.ArrayMap v0_6 = com.google.android.gms.internal.zzamb.zzN(v2_0.getBlob(1));
                        com.google.android.gms.measurement.internal.zzp$zza v4_5 = new com.google.android.gms.internal.zzsp$zzf();
                        v4_5.mergeFrom(v0_6);
                        v1_2.put(Integer.valueOf(v3_2), v4_5);
                    } while(v2_0.moveToNext());
                    if (v2_0 != null) {
                        v2_0.close();
                    }
                    v0_11 = v1_2;
                    return v0_11;
                } else {
                    if (v2_0 != null) {
                        v2_0.close();
                    }
                    v0_11 = 0;
                    return v0_11;
                }
            } catch (android.support.v4.util.ArrayMap v0_1) {
                if (v2_0 != null) {
                    v2_0.close();
                }
                throw v0_1;
            } catch (android.support.v4.util.ArrayMap v0_0) {
                android.support.v4.util.ArrayMap v1_0 = v2_0;
                try {
                    this.zzFm().zzFE().zzj("Database error querying filter results", v0_0);
                } catch (android.support.v4.util.ArrayMap v0_1) {
                    v2_0 = v1_0;
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v0_11 = 0;
                return v0_11;
            }
        } catch (android.support.v4.util.ArrayMap v0_1) {
            v2_0 = 0;
        } catch (android.support.v4.util.ArrayMap v0_0) {
            v1_0 = 0;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzfm() calling method android.database.sqlite.SQLiteDatabase.query()


    public byte[] zzfm(String p10)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p10);
        this.zzkN();
        this.zzma();
        try {
            byte[] v0_5 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzp$zza v2_6 = new String[1];
            v2_6[0] = "remote_config";
            String[] v4_2 = new String[1];
            v4_2[0] = p10;
            int v1_0 = v0_5.query("apps", v2_6, "app_id=?", v4_2, 0, 0, 0);
            try {
                byte[] v0_4;
                if (v1_0.moveToFirst()) {
                    v0_4 = v1_0.getBlob(0);
                    if (v1_0.moveToNext()) {
                        this.zzFm().zzFE().log("Got multiple records for app config, expected one");
                    }
                    if (v1_0 == 0) {
                        return v0_4;
                    } else {
                        v1_0.close();
                        return v0_4;
                    }
                } else {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    v0_4 = 0;
                    return v0_4;
                }
            } catch (byte[] v0_0) {
                this.zzFm().zzFE().zze("Error querying remote config", p10, v0_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_4 = 0;
                return v0_4;
            }
        } catch (byte[] v0_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v0_1;
        } catch (byte[] v0_0) {
            v1_0 = 0;
        } catch (byte[] v0_1) {
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzfk() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.google.android.gms.measurement.internal.zza zzfk(String p12)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p12);
        this.zzkN();
        this.zzma();
        try {
            int v0_3 = this.getWritableDatabase();
            com.google.android.gms.measurement.internal.zzp$zza v2_0 = new String[20];
            v2_0[0] = "app_instance_id";
            v2_0[1] = "gmp_app_id";
            v2_0[2] = "resettable_device_id_hash";
            v2_0[3] = "last_bundle_index";
            v2_0[4] = "last_bundle_start_timestamp";
            v2_0[5] = "last_bundle_end_timestamp";
            v2_0[6] = "app_version";
            v2_0[7] = "app_store";
            v2_0[8] = "gmp_version";
            v2_0[9] = "dev_cert_hash";
            v2_0[10] = "measurement_enabled";
            v2_0[11] = "day";
            v2_0[12] = "daily_public_events_count";
            v2_0[13] = "daily_events_count";
            v2_0[14] = "daily_conversions_count";
            v2_0[15] = "config_fetched_time";
            v2_0[16] = "failed_config_fetch_time";
            v2_0[17] = "app_version_int";
            v2_0[18] = "firebase_instance_id";
            v2_0[19] = "daily_error_events_count";
            String[] v4_21 = new String[1];
            v4_21[0] = p12;
            int v1_1 = v0_3.query("apps", v2_0, "app_id=?", v4_21, 0, 0, 0);
            try {
                int v0_1;
                if (v1_1.moveToFirst()) {
                    com.google.android.gms.measurement.internal.zzp$zza v2_19;
                    v0_1 = new com.google.android.gms.measurement.internal.zza(this.zzbbl, p12);
                    v0_1.zzeV(v1_1.getString(0));
                    v0_1.zzeW(v1_1.getString(1));
                    v0_1.zzeX(v1_1.getString(2));
                    v0_1.zzW(v1_1.getLong(3));
                    v0_1.zzR(v1_1.getLong(4));
                    v0_1.zzS(v1_1.getLong(5));
                    v0_1.setAppVersion(v1_1.getString(6));
                    v0_1.zzeZ(v1_1.getString(7));
                    v0_1.zzU(v1_1.getLong(8));
                    v0_1.zzV(v1_1.getLong(9));
                    if (!v1_1.isNull(10)) {
                        v2_19 = v1_1.getInt(10);
                    } else {
                        v2_19 = 1;
                    }
                    com.google.android.gms.measurement.internal.zzp$zza v2_20;
                    if (v2_19 == null) {
                        v2_20 = 0;
                    } else {
                        v2_20 = 1;
                    }
                    com.google.android.gms.measurement.internal.zzp$zza v2_37;
                    v0_1.setMeasurementEnabled(v2_20);
                    v0_1.zzZ(v1_1.getLong(11));
                    v0_1.zzaa(v1_1.getLong(12));
                    v0_1.zzab(v1_1.getLong(13));
                    v0_1.zzac(v1_1.getLong(14));
                    v0_1.zzX(v1_1.getLong(15));
                    v0_1.zzY(v1_1.getLong(16));
                    if (!v1_1.isNull(17)) {
                        v2_37 = ((long) v1_1.getInt(17));
                    } else {
                        v2_37 = -2147483648;
                    }
                    v0_1.zzT(v2_37);
                    v0_1.zzeY(v1_1.getString(18));
                    v0_1.zzad(v1_1.getLong(19));
                    v0_1.zzEa();
                    if (v1_1.moveToNext()) {
                        this.zzFm().zzFE().log("Got multiple records for app, expected one");
                    }
                    if (v1_1 == 0) {
                        return v0_1;
                    } else {
                        v1_1.close();
                        return v0_1;
                    }
                } else {
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_1 = 0;
                    return v0_1;
                }
            } catch (int v0_0) {
                this.zzFm().zzFE().zze("Error querying app", p12, v0_0);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_1 = 0;
                return v0_1;
            }
        } catch (int v0_2) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_2;
        } catch (int v0_0) {
            v1_1 = 0;
        } catch (int v0_2) {
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzfj() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzfj(String p12)
    {
        android.database.Cursor v10 = 0;
        com.google.android.gms.common.internal.zzaa.zzdl(p12);
        this.zzkN();
        this.zzma();
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        try {
            java.util.ArrayList v0_8 = this.getWritableDatabase();
            String v2_0 = new String[3];
            v2_0[0] = "name";
            v2_0[1] = "set_timestamp";
            v2_0[2] = "value";
            long v4_4 = new String[1];
            v4_4[0] = p12;
            android.database.Cursor v7_1 = v0_8.query("user_attributes", v2_0, "app_id=?", v4_4, 0, 0, "rowid", String.valueOf(this.zzFo().zzEI()));
            try {
                java.util.ArrayList v0_9;
                if (!v7_1.moveToFirst()) {
                    if (v7_1 != null) {
                        v7_1.close();
                    }
                    v0_9 = v9_1;
                    return v0_9;
                }
            } catch (java.util.ArrayList v0_1) {
                v10 = v7_1;
                if (v10 != null) {
                    v10.close();
                }
                throw v0_1;
            } catch (java.util.ArrayList v0_0) {
                com.google.android.gms.measurement.internal.zzak v1_0 = v7_1;
                try {
                    this.zzFm().zzFE().zze("Error querying user properties", p12, v0_0);
                } catch (java.util.ArrayList v0_1) {
                    v10 = v1_0;
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v0_9 = 0;
                return v0_9;
            }
            do {
                String v3_4 = v7_1.getString(0);
                long v4_5 = v7_1.getLong(1);
                Object v6_1 = this.zzb(v7_1, 2);
                if (v6_1 != null) {
                    v9_1.add(new com.google.android.gms.measurement.internal.zzak(p12, v3_4, v4_5, v6_1));
                } else {
                    this.zzFm().zzFE().log("Read invalid user property value, ignoring it");
                }
            } while(v7_1.moveToNext());
            if (v7_1 != null) {
                v7_1.close();
            }
            v0_9 = v9_1;
            return v0_9;
        } catch (java.util.ArrayList v0_1) {
        } catch (java.util.ArrayList v0_0) {
            v1_0 = 0;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    public void zza(String p15, long p16, com.google.android.gms.measurement.internal.zze$zzb p18)
    {
        android.database.Cursor v3_0 = 0;
        com.google.android.gms.common.internal.zzaa.zzz(p18);
        this.zzkN();
        this.zzma();
        try {
            String v12;
            boolean v2_19 = this.getWritableDatabase();
        } catch (boolean v2_1) {
            android.database.Cursor v11 = v3_0;
            if (v11 != null) {
                v11.close();
            }
            throw v2_1;
        } catch (boolean v2_0) {
            this.zzFm().zzFE().zzj("Data loss. Error selecting raw event", v2_0);
            if (v3_0 == null) {
                return;
            } else {
                v3_0.close();
                return;
            }
        } catch (boolean v2_1) {
            v11 = v3_0;
        }
        if (!android.text.TextUtils.isEmpty(p15)) {
            String v5_2 = new String[1];
            v5_2[0] = p15;
            v3_0 = v2_19.rawQuery("select metadata_fingerprint from raw_events where app_id = ? order by rowid limit 1;", v5_2);
            if (v3_0.moveToFirst()) {
                com.google.android.gms.measurement.internal.zzp$zza v4_10 = v3_0.getString(0);
                v3_0.close();
                v12 = v4_10;
            } else {
                if (v3_0 == null) {
                    return;
                } else {
                    v3_0.close();
                    return;
                }
            }
        } else {
            String v5_10 = new String[1];
            v5_10[0] = String.valueOf(p16);
            v3_0 = v2_19.rawQuery("select app_id, metadata_fingerprint from raw_events where app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;", v5_10);
            if (v3_0.moveToFirst()) {
                p15 = v3_0.getString(0);
                com.google.android.gms.measurement.internal.zzp$zza v4_15 = v3_0.getString(1);
                v3_0.close();
                v12 = v4_15;
            } else {
                if (v3_0 == null) {
                    return;
                } else {
                    v3_0.close();
                    return;
                }
            }
        }
        try {
            com.google.android.gms.measurement.internal.zzp$zza v4_17 = new String[1];
            v4_17[0] = "metadata";
            com.google.android.gms.internal.zzsp$zzb v6_12 = new String[2];
            v6_12[0] = p15;
            v6_12[1] = v12;
            v11 = v2_19.query("raw_events_metadata", v4_17, "app_id=? and metadata_fingerprint=?", v6_12, 0, 0, "rowid", "2");
        } catch (boolean v2_1) {
        } catch (boolean v2_0) {
            v3_0 = v11;
        }
        if (v11.moveToFirst()) {
            android.database.Cursor v3_7 = com.google.android.gms.internal.zzamb.zzN(v11.getBlob(0));
            com.google.android.gms.measurement.internal.zzp$zza v4_20 = new com.google.android.gms.internal.zzsp$zze();
            try {
                v4_20.mergeFrom(v3_7);
            } catch (boolean v2_20) {
                this.zzFm().zzFE().zze("Data loss. Failed to merge raw event metadata", p15, v2_20);
                if (v11 == null) {
                    return;
                } else {
                    v11.close();
                    return;
                }
            }
            if (v11.moveToNext()) {
                this.zzFm().zzFG().log("Get multiple raw event metadata records, expected one");
            }
            v11.close();
            p18.zzc(v4_20);
            com.google.android.gms.measurement.internal.zzp$zza v4_1 = new String[4];
            v4_1[0] = "rowid";
            v4_1[1] = "name";
            v4_1[2] = "timestamp";
            v4_1[3] = "data";
            com.google.android.gms.internal.zzsp$zzb v6_6 = new String[2];
            v6_6[0] = p15;
            v6_6[1] = v12;
            v3_0 = v2_19.query("raw_events", v4_1, "app_id=? and metadata_fingerprint=?", v6_6, 0, 0, "rowid", 0);
            if (!v3_0.moveToFirst()) {
                this.zzFm().zzFG().log("Raw event data disappeared while in transaction");
                if (v3_0 == null) {
                    return;
                } else {
                    v3_0.close();
                    return;
                }
            }
            do {
                com.google.android.gms.measurement.internal.zzp$zza v4_2 = v3_0.getLong(0);
                boolean v2_6 = com.google.android.gms.internal.zzamb.zzN(v3_0.getBlob(3));
                com.google.android.gms.internal.zzsp$zzb v6_8 = new com.google.android.gms.internal.zzsp$zzb();
                v6_8.mergeFrom(v2_6);
                v6_8.name = v3_0.getString(1);
                v6_8.zzbgX = Long.valueOf(v3_0.getLong(2));
                if (p18.zza(v4_2, v6_8)) {
                } else {
                    if (v3_0 == null) {
                        return;
                    } else {
                        v3_0.close();
                        return;
                    }
                }
            } while(v3_0.moveToNext());
            if (v3_0 == null) {
                return;
            } else {
                v3_0.close();
                return;
            }
        } else {
            this.zzFm().zzFE().log("Raw event metadata record is missing");
            if (v11 == null) {
                return;
            } else {
                v11.close();
                return;
            }
        }
    }

Method com.google.android.gms.measurement.internal.zze.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.google.android.gms.measurement.internal.zze$zza zza(long p12, String p14, boolean p15, boolean p16, boolean p17)
    {
        com.google.android.gms.common.internal.zzaa.zzdl(p14);
        this.zzkN();
        this.zzma();
        String[] v10 = new String[1];
        v10[0] = p14;
        com.google.android.gms.measurement.internal.zze$zza v8_1 = new com.google.android.gms.measurement.internal.zze$zza();
        try {
            com.google.android.gms.measurement.internal.zze$zza v0_0 = this.getWritableDatabase();
            android.content.ContentValues v2_4 = new String[5];
            v2_4[0] = "day";
            v2_4[1] = "daily_events_count";
            v2_4[2] = "daily_public_events_count";
            v2_4[3] = "daily_conversions_count";
            v2_4[4] = "daily_error_events_count";
            String v4_16 = new String[1];
            v4_16[0] = p14;
            int v1_1 = v0_0.query("apps", v2_4, "app_id=?", v4_16, 0, 0, 0);
            try {
                com.google.android.gms.measurement.internal.zze$zza v0_1;
                if (v1_1.moveToFirst()) {
                    if (v1_1.getLong(0) == p12) {
                        v8_1.zzbbY = v1_1.getLong(1);
                        v8_1.zzbbX = v1_1.getLong(2);
                        v8_1.zzbbZ = v1_1.getLong(3);
                        v8_1.zzbca = v1_1.getLong(4);
                    }
                    v8_1.zzbbY = (v8_1.zzbbY + 1);
                    if (p15) {
                        v8_1.zzbbX = (v8_1.zzbbX + 1);
                    }
                    if (p16) {
                        v8_1.zzbbZ = (v8_1.zzbbZ + 1);
                    }
                    if (p17) {
                        v8_1.zzbca = (v8_1.zzbca + 1);
                    }
                    android.content.ContentValues v2_1 = new android.content.ContentValues();
                    v2_1.put("day", Long.valueOf(p12));
                    v2_1.put("daily_public_events_count", Long.valueOf(v8_1.zzbbX));
                    v2_1.put("daily_events_count", Long.valueOf(v8_1.zzbbY));
                    v2_1.put("daily_conversions_count", Long.valueOf(v8_1.zzbbZ));
                    v2_1.put("daily_error_events_count", Long.valueOf(v8_1.zzbca));
                    v0_0.update("apps", v2_1, "app_id=?", v10);
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_1 = v8_1;
                    return v0_1;
                } else {
                    this.zzFm().zzFG().zzj("Not updating daily counts, app is not known", p14);
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    v0_1 = v8_1;
                    return v0_1;
                }
            } catch (com.google.android.gms.measurement.internal.zze$zza v0_5) {
                this.zzFm().zzFE().zzj("Error updating daily counts", v0_5);
                if (v1_1 != 0) {
                    v1_1.close();
                }
                v0_1 = v8_1;
                return v0_1;
            }
        } catch (com.google.android.gms.measurement.internal.zze$zza v0_6) {
            v1_1 = 0;
            if (v1_1 != 0) {
                v1_1.close();
            }
            throw v0_6;
        } catch (com.google.android.gms.measurement.internal.zze$zza v0_5) {
            v1_1 = 0;
        } catch (com.google.android.gms.measurement.internal.zze$zza v0_6) {
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzS() calling method android.database.sqlite.SQLiteDatabase.query()


    java.util.Map zzS(String p11, String p12)
    {
        this.zzma();
        this.zzkN();
        com.google.android.gms.common.internal.zzaa.zzdl(p11);
        com.google.android.gms.common.internal.zzaa.zzdl(p12);
        android.support.v4.util.ArrayMap v8_1 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v0_14 = this.getWritableDatabase();
        try {
            com.google.android.gms.measurement.internal.zzp$zza v2_1 = new String[2];
            v2_1[0] = "audience_id";
            v2_1[1] = "data";
            String[] v4_3 = new String[2];
            v4_3[0] = p11;
            v4_3[1] = p12;
            int v1_0 = v0_14.query("property_filters", v2_1, "app_id=? AND property_name=?", v4_3, 0, 0, 0);
            try {
                android.support.v4.util.ArrayMap v0_13;
                if (!v1_0.moveToFirst()) {
                    v0_13 = java.util.Collections.emptyMap();
                    if (v1_0 == 0) {
                        return v0_13;
                    } else {
                        v1_0.close();
                        return v0_13;
                    }
                }
            } catch (android.support.v4.util.ArrayMap v0_0) {
                this.zzFm().zzFE().zzj("Database error querying filters", v0_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_13 = 0;
                return v0_13;
            }
            do {
                android.support.v4.util.ArrayMap v0_5 = com.google.android.gms.internal.zzamb.zzN(v1_0.getBlob(1));
                com.google.android.gms.measurement.internal.zzp$zza v2_3 = new com.google.android.gms.internal.zzsn$zze();
                v2_3.mergeFrom(v0_5);
                Integer v3_4 = v1_0.getInt(0);
                android.support.v4.util.ArrayMap v0_11 = ((java.util.List) v8_1.get(Integer.valueOf(v3_4)));
                if (v0_11 == null) {
                    v0_11 = new java.util.ArrayList();
                    v8_1.put(Integer.valueOf(v3_4), v0_11);
                }
                v0_11.add(v2_3);
            } while(v1_0.moveToNext());
            if (v1_0 != 0) {
                v1_0.close();
            }
            v0_13 = v8_1;
            return v0_13;
        } catch (android.support.v4.util.ArrayMap v0_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v0_1;
        } catch (android.support.v4.util.ArrayMap v0_0) {
            v1_0 = 0;
        } catch (android.support.v4.util.ArrayMap v0_1) {
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzR() calling method android.database.sqlite.SQLiteDatabase.query()


    java.util.Map zzR(String p11, String p12)
    {
        this.zzma();
        this.zzkN();
        com.google.android.gms.common.internal.zzaa.zzdl(p11);
        com.google.android.gms.common.internal.zzaa.zzdl(p12);
        android.support.v4.util.ArrayMap v8_1 = new android.support.v4.util.ArrayMap();
        android.support.v4.util.ArrayMap v0_14 = this.getWritableDatabase();
        try {
            com.google.android.gms.measurement.internal.zzp$zza v2_1 = new String[2];
            v2_1[0] = "audience_id";
            v2_1[1] = "data";
            String[] v4_3 = new String[2];
            v4_3[0] = p11;
            v4_3[1] = p12;
            int v1_0 = v0_14.query("event_filters", v2_1, "app_id=? AND event_name=?", v4_3, 0, 0, 0);
            try {
                android.support.v4.util.ArrayMap v0_13;
                if (!v1_0.moveToFirst()) {
                    v0_13 = java.util.Collections.emptyMap();
                    if (v1_0 == 0) {
                        return v0_13;
                    } else {
                        v1_0.close();
                        return v0_13;
                    }
                }
            } catch (android.support.v4.util.ArrayMap v0_0) {
                this.zzFm().zzFE().zzj("Database error querying filters", v0_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_13 = 0;
                return v0_13;
            }
            do {
                android.support.v4.util.ArrayMap v0_5 = com.google.android.gms.internal.zzamb.zzN(v1_0.getBlob(1));
                com.google.android.gms.measurement.internal.zzp$zza v2_3 = new com.google.android.gms.internal.zzsn$zzb();
                v2_3.mergeFrom(v0_5);
                Integer v3_4 = v1_0.getInt(0);
                android.support.v4.util.ArrayMap v0_11 = ((java.util.List) v8_1.get(Integer.valueOf(v3_4)));
                if (v0_11 == null) {
                    v0_11 = new java.util.ArrayList();
                    v8_1.put(Integer.valueOf(v3_4), v0_11);
                }
                v0_11.add(v2_3);
            } while(v1_0.moveToNext());
            if (v1_0 != 0) {
                v1_0.close();
            }
            v0_13 = v8_1;
            return v0_13;
        } catch (android.support.v4.util.ArrayMap v0_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v0_1;
        } catch (android.support.v4.util.ArrayMap v0_0) {
            v1_0 = 0;
        } catch (android.support.v4.util.ArrayMap v0_1) {
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzQ() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.google.android.gms.measurement.internal.zzak zzQ(String p10, String p11)
    {
        android.database.Cursor v8 = 0;
        com.google.android.gms.common.internal.zzaa.zzdl(p10);
        com.google.android.gms.common.internal.zzaa.zzdl(p11);
        this.zzkN();
        this.zzma();
        try {
            com.google.android.gms.measurement.internal.zzp$zza v0_8 = this.getWritableDatabase();
            String v2_5 = new String[2];
            v2_5[0] = "set_timestamp";
            v2_5[1] = "value";
            long v4_3 = new String[2];
            v4_3[0] = p10;
            v4_3[1] = p11;
            android.database.Cursor v7_1 = v0_8.query("user_attributes", v2_5, "app_id=? and name=?", v4_3, 0, 0, 0);
            try {
                com.google.android.gms.measurement.internal.zzak v1_2;
                if (v7_1.moveToFirst()) {
                    v1_2 = new com.google.android.gms.measurement.internal.zzak(p10, p11, v7_1.getLong(0), this.zzb(v7_1, 1));
                    if (v7_1.moveToNext()) {
                        this.zzFm().zzFE().log("Got multiple records for user property, expected one");
                    }
                    if (v7_1 == null) {
                        return v1_2;
                    } else {
                        v7_1.close();
                        return v1_2;
                    }
                } else {
                    if (v7_1 != null) {
                        v7_1.close();
                    }
                    v1_2 = 0;
                    return v1_2;
                }
            } catch (com.google.android.gms.measurement.internal.zzp$zza v0_1) {
                v8 = v7_1;
                if (v8 != null) {
                    v8.close();
                }
                throw v0_1;
            } catch (com.google.android.gms.measurement.internal.zzp$zza v0_0) {
                com.google.android.gms.measurement.internal.zzak v1_0 = v7_1;
                try {
                    this.zzFm().zzFE().zzd("Error querying user property", p10, p11, v0_0);
                } catch (com.google.android.gms.measurement.internal.zzp$zza v0_1) {
                    v8 = v1_0;
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v1_2 = 0;
                return v1_2;
            }
        } catch (com.google.android.gms.measurement.internal.zzp$zza v0_1) {
        } catch (com.google.android.gms.measurement.internal.zzp$zza v0_0) {
            v1_0 = 0;
        }
    }

Method com.google.android.gms.measurement.internal.zze.zzO() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.google.android.gms.measurement.internal.zzi zzO(String p13, String p14)
    {
        android.database.Cursor v10 = 0;
        com.google.android.gms.common.internal.zzaa.zzdl(p13);
        com.google.android.gms.common.internal.zzaa.zzdl(p14);
        this.zzkN();
        this.zzma();
        try {
            com.google.android.gms.measurement.internal.zzp$zza v0_9 = this.getWritableDatabase();
            String v2_5 = new String[3];
            v2_5[0] = "lifetime_count";
            v2_5[1] = "current_bundle_count";
            v2_5[2] = "last_fire_timestamp";
            long v4_4 = new String[2];
            v4_4[0] = p13;
            v4_4[1] = p14;
            android.database.Cursor v11 = v0_9.query("events", v2_5, "app_id=? and name=?", v4_4, 0, 0, 0);
            try {
                com.google.android.gms.measurement.internal.zzi v1_2;
                if (v11.moveToFirst()) {
                    v1_2 = new com.google.android.gms.measurement.internal.zzi(p13, p14, v11.getLong(0), v11.getLong(1), v11.getLong(2));
                    if (v11.moveToNext()) {
                        this.zzFm().zzFE().log("Got multiple records for event aggregates, expected one");
                    }
                    if (v11 == null) {
                        return v1_2;
                    } else {
                        v11.close();
                        return v1_2;
                    }
                } else {
                    if (v11 != null) {
                        v11.close();
                    }
                    v1_2 = 0;
                    return v1_2;
                }
            } catch (com.google.android.gms.measurement.internal.zzp$zza v0_1) {
                v10 = v11;
                if (v10 != null) {
                    v10.close();
                }
                throw v0_1;
            } catch (com.google.android.gms.measurement.internal.zzp$zza v0_0) {
                com.google.android.gms.measurement.internal.zzi v1_0 = v11;
                try {
                    this.zzFm().zzFE().zzd("Error querying events", p13, p14, v0_0);
                } catch (com.google.android.gms.measurement.internal.zzp$zza v0_1) {
                    v10 = v1_0;
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                v1_2 = 0;
                return v1_2;
            }
        } catch (com.google.android.gms.measurement.internal.zzp$zza v0_1) {
        } catch (com.google.android.gms.measurement.internal.zzp$zza v0_0) {
            v1_0 = 0;
        }
    }

Method com.google.android.gms.measurement.internal.zze$zzc.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private boolean zza(android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        int v9 = 0;
        try {
            com.google.android.gms.measurement.internal.zzp$zza v2_3 = new String[1];
            v2_3[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p12;
            int v1_0 = p11.query("SQLITE_MASTER", v2_3, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_2) {
                this.zzbcb.zzFm().zzFG().zze("Error querying for table", p12, v0_2);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == 0) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
            if (v9 != 0) {
                v9.close();
            }
            throw v0_3;
        } catch (int v0_2) {
            v1_0 = 0;
        } catch (int v0_3) {
            v9 = v1_0;
        }
    }

Method com.google.android.gms.internal.zzuq.zzkV() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzkV(int p17)
    {
        int v2_38;
        int v11_1 = new java.util.ArrayList();
        int v2_45 = this.zzgv("Error opening database for peekHits");
        if (v2_45 != 0) {
            android.database.Cursor v12_2 = 0;
            try {
                int v4_0 = new String[3];
                v4_0[0] = "hit_id";
                v4_0[1] = "hit_time";
                v4_0[2] = "hit_first_send_time";
                long v10_5 = new Object[1];
                v10_5[0] = "hit_id";
                String v13_0 = v2_45.query("gtm_hits", v4_0, 0, 0, 0, 0, String.format("%s ASC", v10_5), Integer.toString(p17));
                try {
                    android.database.Cursor v12_1 = new java.util.ArrayList();
                    try {
                        if (v13_0.moveToFirst()) {
                            do {
                                v12_1.add(new com.google.android.gms.internal.zzuf(v13_0.getLong(0), v13_0.getLong(1), v13_0.getLong(2)));
                            } while(v13_0.moveToNext());
                        }
                    } catch (int v2_46) {
                        java.util.ArrayList v3_4 = v2_46;
                        int v4_17 = v13_0;
                        v2_38 = v12_1;
                        try {
                            java.util.ArrayList v3_7 = String.valueOf(v3_4.getMessage());
                        } catch (int v2_43) {
                            v12_2 = v4_17;
                            if (v12_2 != null) {
                                v12_2.close();
                            }
                            throw v2_43;
                        }
                        if (v3_7.length() == 0) {
                            java.util.ArrayList v3_9 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v3_9 = "Error in peekHits fetching hitIds: ".concat(v3_7);
                        }
                        com.google.android.gms.internal.zzun.zzaW(v3_9);
                        if (v4_17 == 0) {
                            return v2_38;
                        } else {
                            v4_17.close();
                            return v2_38;
                        }
                    }
                    if (v13_0 != null) {
                        v13_0.close();
                    }
                    try {
                        int v4_22 = new String[5];
                        v4_22[0] = "hit_id";
                        v4_22[1] = "hit_url";
                        v4_22[2] = "hit_method";
                        v4_22[3] = "hit_headers";
                        v4_22[4] = "hit_body";
                        long v10_1 = new Object[1];
                        v10_1[0] = "hit_id";
                        java.util.ArrayList v3_0 = v2_45.query("gtm_hits", v4_22, 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p17));
                        try {
                            if (v3_0.moveToFirst()) {
                                com.google.android.gms.internal.zzuf v5_6 = 0;
                                do {
                                    if (((android.database.sqlite.SQLiteCursor) v3_0).getWindow().getNumRows() <= 0) {
                                        int v6_6 = new Object[1];
                                        v6_6[0] = Long.valueOf(((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzJQ());
                                        com.google.android.gms.internal.zzun.zzaW(String.format("HitString for hitId %d too large.  Hit will be deleted.", v6_6));
                                        int v2_27 = (v5_6 + 1);
                                    } else {
                                        ((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzgz(v3_0.getString(1));
                                        ((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzgV(v3_0.getString(2));
                                        ((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzgW(v3_0.getString(4));
                                        try {
                                            int v4_10;
                                            int v4_9 = v3_0.getString(3);
                                        } catch (int v2_19) {
                                            int v4_12 = v2_19;
                                            Object[] v7_4 = new Object[2];
                                            v7_4[0] = Long.valueOf(((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzJQ());
                                            v7_4[1] = v4_12.getMessage();
                                            com.google.android.gms.internal.zzun.zzaW(String.format("Failed to read headers for hitId %d: %s", v7_4));
                                            v2_27 = v5_6;
                                        }
                                        if (v4_9 == 0) {
                                            v4_10 = 0;
                                        } else {
                                            Object[] v7_3 = new org.json.JSONObject(v4_9);
                                            int v8_2 = v7_3.names();
                                            v4_10 = new java.util.HashMap();
                                            int v6_9 = 0;
                                            while (v6_9 < v8_2.length()) {
                                                String v9_3 = v8_2.getString(v6_9);
                                                v4_10.put(v9_3, ((String) v7_3.opt(v9_3)));
                                                v6_9++;
                                            }
                                        }
                                        ((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzaj(v4_10);
                                    }
                                } while(v3_0.moveToNext());
                                v5_6 = v2_27;
                            }
                        } catch (int v2_37) {
                            if (v3_0 != null) {
                                v3_0.close();
                            }
                            throw v2_37;
                        } catch (int v2_0) {
                            v13_0 = v3_0;
                            int v2_31 = String.valueOf(v2_0.getMessage());
                            if (v2_31.length() == 0) {
                                int v2_33 = new String("Error in peekHits fetching hit url: ");
                            } else {
                                v2_33 = "Error in peekHits fetching hit url: ".concat(v2_31);
                            }
                            com.google.android.gms.internal.zzun.zzaW(v2_33);
                            java.util.ArrayList v3_3 = new java.util.ArrayList();
                            int v4_15 = 0;
                            com.google.android.gms.internal.zzuf v5_10 = v12_1.iterator();
                        }
                        if (v3_0 != null) {
                            v3_0.close();
                        }
                        v2_38 = v12_1;
                    } catch (int v2_37) {
                        v3_0 = v13_0;
                    } catch (int v2_0) {
                    }
                } catch (int v2_43) {
                    v12_2 = v13_0;
                } catch (int v2_44) {
                    v3_4 = v2_44;
                    v4_17 = v13_0;
                    v2_38 = v11_1;
                }
            } catch (int v2_43) {
            } catch (int v2_42) {
                v3_4 = v2_42;
                v4_17 = 0;
                v2_38 = v11_1;
            }
        } else {
            v2_38 = v11_1;
        }
        return v2_38;
    }

Method com.google.android.gms.internal.zzuq.zzkV() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzkV(int p17)
    {
        int v2_38;
        int v11_1 = new java.util.ArrayList();
        int v2_45 = this.zzgv("Error opening database for peekHits");
        if (v2_45 != 0) {
            android.database.Cursor v12_2 = 0;
            try {
                int v4_0 = new String[3];
                v4_0[0] = "hit_id";
                v4_0[1] = "hit_time";
                v4_0[2] = "hit_first_send_time";
                long v10_5 = new Object[1];
                v10_5[0] = "hit_id";
                String v13_0 = v2_45.query("gtm_hits", v4_0, 0, 0, 0, 0, String.format("%s ASC", v10_5), Integer.toString(p17));
                try {
                    android.database.Cursor v12_1 = new java.util.ArrayList();
                    try {
                        if (v13_0.moveToFirst()) {
                            do {
                                v12_1.add(new com.google.android.gms.internal.zzuf(v13_0.getLong(0), v13_0.getLong(1), v13_0.getLong(2)));
                            } while(v13_0.moveToNext());
                        }
                    } catch (int v2_46) {
                        java.util.ArrayList v3_4 = v2_46;
                        int v4_17 = v13_0;
                        v2_38 = v12_1;
                        try {
                            java.util.ArrayList v3_7 = String.valueOf(v3_4.getMessage());
                        } catch (int v2_43) {
                            v12_2 = v4_17;
                            if (v12_2 != null) {
                                v12_2.close();
                            }
                            throw v2_43;
                        }
                        if (v3_7.length() == 0) {
                            java.util.ArrayList v3_9 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v3_9 = "Error in peekHits fetching hitIds: ".concat(v3_7);
                        }
                        com.google.android.gms.internal.zzun.zzaW(v3_9);
                        if (v4_17 == 0) {
                            return v2_38;
                        } else {
                            v4_17.close();
                            return v2_38;
                        }
                    }
                    if (v13_0 != null) {
                        v13_0.close();
                    }
                    try {
                        int v4_22 = new String[5];
                        v4_22[0] = "hit_id";
                        v4_22[1] = "hit_url";
                        v4_22[2] = "hit_method";
                        v4_22[3] = "hit_headers";
                        v4_22[4] = "hit_body";
                        long v10_1 = new Object[1];
                        v10_1[0] = "hit_id";
                        java.util.ArrayList v3_0 = v2_45.query("gtm_hits", v4_22, 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p17));
                        try {
                            if (v3_0.moveToFirst()) {
                                com.google.android.gms.internal.zzuf v5_6 = 0;
                                while(true) {
                                    if (((android.database.sqlite.SQLiteCursor) v3_0).getWindow().getNumRows() <= 0) {
                                        int v6_6 = new Object[1];
                                        v6_6[0] = Long.valueOf(((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzJQ());
                                        com.google.android.gms.internal.zzun.zzaW(String.format("HitString for hitId %d too large.  Hit will be deleted.", v6_6));
                                        int v2_27 = (v5_6 + 1);
                                    } else {
                                        ((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzgz(v3_0.getString(1));
                                        ((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzgV(v3_0.getString(2));
                                        ((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzgW(v3_0.getString(4));
                                        try {
                                            int v4_10;
                                            int v4_9 = v3_0.getString(3);
                                        } catch (int v2_19) {
                                            int v4_12 = v2_19;
                                            Object[] v7_4 = new Object[2];
                                            v7_4[0] = Long.valueOf(((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzJQ());
                                            v7_4[1] = v4_12.getMessage();
                                            com.google.android.gms.internal.zzun.zzaW(String.format("Failed to read headers for hitId %d: %s", v7_4));
                                            v2_27 = v5_6;
                                        }
                                        if (v4_9 == 0) {
                                            v4_10 = 0;
                                        } else {
                                            Object[] v7_3 = new org.json.JSONObject(v4_9);
                                            int v8_2 = v7_3.names();
                                            v4_10 = new java.util.HashMap();
                                            int v6_9 = 0;
                                            while (v6_9 < v8_2.length()) {
                                                String v9_3 = v8_2.getString(v6_9);
                                                v4_10.put(v9_3, ((String) v7_3.opt(v9_3)));
                                                v6_9++;
                                            }
                                        }
                                        ((com.google.android.gms.internal.zzuf) v12_1.get(v5_6)).zzaj(v4_10);
                                    }
                                    if (!v3_0.moveToNext()) {
                                        break;
                                    }
                                    v5_6 = v2_27;
                                }
                            }
                        } catch (int v2_37) {
                            if (v3_0 != null) {
                                v3_0.close();
                            }
                            throw v2_37;
                        } catch (int v2_0) {
                            v13_0 = v3_0;
                            int v2_31 = String.valueOf(v2_0.getMessage());
                            if (v2_31.length() == 0) {
                                int v2_33 = new String("Error in peekHits fetching hit url: ");
                            } else {
                                v2_33 = "Error in peekHits fetching hit url: ".concat(v2_31);
                            }
                            com.google.android.gms.internal.zzun.zzaW(v2_33);
                            java.util.ArrayList v3_3 = new java.util.ArrayList();
                            int v4_15 = 0;
                            com.google.android.gms.internal.zzuf v5_10 = v12_1.iterator();
                        }
                        if (v3_0 != null) {
                            v3_0.close();
                        }
                        v2_38 = v12_1;
                    } catch (int v2_37) {
                        v3_0 = v13_0;
                    } catch (int v2_0) {
                    }
                } catch (int v2_43) {
                    v12_2 = v13_0;
                } catch (int v2_44) {
                    v3_4 = v2_44;
                    v4_17 = v13_0;
                    v2_38 = v11_1;
                }
            } catch (int v2_43) {
            } catch (int v2_42) {
                v3_4 = v2_42;
                v4_17 = 0;
                v2_38 = v11_1;
            }
        } else {
            v2_38 = v11_1;
        }
        return v2_38;
    }

Method com.google.android.gms.internal.zzuq.zzkU() calling method android.database.sqlite.SQLiteDatabase.query()


    java.util.List zzkU(int p14)
    {
        java.util.ArrayList v0_12;
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        if (p14 > 0) {
            java.util.ArrayList v0_9 = this.zzgv("Error opening database for peekHitIds.");
            if (v0_9 != null) {
                try {
                    long v2_0 = new String[1];
                    v2_0[0] = "hit_id";
                    String v8_1 = new Object[1];
                    v8_1[0] = "hit_id";
                    int v1_0 = v0_9.query("gtm_hits", v2_0, 0, 0, 0, 0, String.format("%s ASC", v8_1), Integer.toString(p14));
                    try {
                        if (v1_0.moveToFirst()) {
                            do {
                                v9_1.add(String.valueOf(v1_0.getLong(0)));
                            } while(v1_0.moveToNext());
                        }
                    } catch (java.util.ArrayList v0_0) {
                        java.util.ArrayList v0_5 = String.valueOf(v0_0.getMessage());
                        if (v0_5.length() == 0) {
                            java.util.ArrayList v0_7 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v0_7 = "Error in peekHits fetching hitIds: ".concat(v0_5);
                        }
                        com.google.android.gms.internal.zzun.zzaW(v0_7);
                        if (v1_0 == 0) {
                            v0_12 = v9_1;
                            return v0_12;
                        } else {
                            v1_0.close();
                        }
                    }
                    if (v1_0 == 0) {
                    } else {
                        v1_0.close();
                    }
                } catch (java.util.ArrayList v0_1) {
                    v1_0 = 0;
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    throw v0_1;
                } catch (java.util.ArrayList v0_0) {
                    v1_0 = 0;
                } catch (java.util.ArrayList v0_1) {
                }
            } else {
                v0_12 = v9_1;
            }
        } else {
            com.google.android.gms.internal.zzun.zzaW("Invalid maxHits specified. Skipping");
            v0_12 = v9_1;
        }
        return v0_12;
    }

Method com.google.android.gms.internal.zzuq.zzKf() calling method android.database.sqlite.SQLiteDatabase.query()


    int zzKf()
    {
        String v8 = 0;
        String v9 = 0;
        String v0_4 = this.zzgv("Error opening database for getNumStoredHits.");
        if (v0_4 != null) {
            try {
                String[] v2_1 = new String[2];
                v2_1[0] = "hit_id";
                v2_1[1] = "hit_first_send_time";
                Throwable v1_0 = v0_4.query("gtm_hits", v2_1, "hit_first_send_time=0", 0, 0, 0, 0);
                try {
                    String v0_3 = v1_0.getCount();
                } catch (String v0_2) {
                    v9 = v1_0;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_2;
                } catch (String v0) {
                    String v0_1 = v1_0;
                    try {
                        com.google.android.gms.internal.zzun.zzaW("Error getting num untried hits");
                    } catch (Throwable v1_2) {
                        v9 = v0_1;
                        v0_2 = v1_2;
                    }
                    if (v0_1 == null) {
                        v0_3 = 0;
                        v8 = v0_3;
                    } else {
                        v0_1.close();
                        v0_3 = 0;
                    }
                }
                if (v1_0 == null) {
                } else {
                    v1_0.close();
                }
            } catch (String v0_2) {
            } catch (String v0) {
                v0_1 = 0;
            }
        }
        return v8;
    }

Method com.google.android.gms.internal.zzuq$zzb.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private boolean zza(String p11, android.database.sqlite.SQLiteDatabase p12)
    {
        String v9 = 0;
        try {
            String v2_1 = new String[1];
            v2_1[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p11;
            String v1_0 = p12.query("SQLITE_MASTER", v2_1, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_3) {
                v9 = v1_0;
                if (v9 != null) {
                    v9.close();
                }
                throw v0_3;
            } catch (int v0) {
                int v0_2 = v1_0;
                try {
                    String v1_2 = String.valueOf(p11);
                } catch (String v1_5) {
                    v9 = v0_2;
                    v0_3 = v1_5;
                }
                if (v1_2.length() == 0) {
                    String v1_4 = new String("Error querying for table ");
                } else {
                    v1_4 = "Error querying for table ".concat(v1_2);
                }
                com.google.android.gms.internal.zzun.zzaW(v1_4);
                if (v0_2 != 0) {
                    v0_2.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == null) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
        } catch (int v0) {
            v0_2 = 0;
        }
    }

Method com.google.android.gms.internal.zzadq.zzg() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.Set zzg(java.util.Set p13)
    {
        Object[] v3_0 = new String[1];
        v3_0[0] = "key";
        long v10 = System.currentTimeMillis();
        Throwable v0_0 = String.valueOf("id IN (");
        String v2_2 = String.valueOf(this.zzk(p13));
        android.database.Cursor v1_1 = this.zzbHU.query(1, "trackedKeys", v3_0, new StringBuilder(((String.valueOf(v0_0).length() + 1) + String.valueOf(v2_2).length())).append(v0_0).append(v2_2).append(")").toString(), 0, 0, 0, 0, 0);
        Throwable v0_7 = new java.util.HashSet();
        try {
            while (v1_1.moveToNext()) {
                v0_7.add(com.google.android.gms.internal.zzahi.zzig(v1_1.getString(0)));
            }
        } catch (Throwable v0_8) {
            v1_1.close();
            throw v0_8;
        }
        String v2_7 = (System.currentTimeMillis() - v10);
        if (this.zzbHV.zzTe()) {
            com.google.android.gms.internal.zzahf v4_5 = this.zzbHV;
            Object[] v6_6 = new Object[3];
            v6_6[0] = Integer.valueOf(v0_7.size());
            v6_6[1] = p13.toString();
            v6_6[2] = Long.valueOf(v2_7);
            Object[] v3_2 = new Object[0];
            v4_5.zzh(String.format("Loaded %d tracked queries keys for tracked queries %s in %dms", v6_6), v3_2);
        }
        v1_1.close();
        return v0_7;
    }

Method com.google.android.gms.internal.zzadq.zzPr() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzPr()
    {
        com.google.android.gms.internal.zzahf v2_3 = new String[6];
        v2_3[0] = "id";
        v2_3[1] = "path";
        v2_3[2] = "queryParams";
        v2_3[3] = "lastUse";
        v2_3[4] = "complete";
        v2_3[5] = "active";
        long v10 = System.currentTimeMillis();
        android.database.Cursor v12 = this.zzbHU.query("trackedQueries", v2_3, 0, 0, 0, 0, "id");
        java.util.ArrayList v13_1 = new java.util.ArrayList();
        try {
            while (v12.moveToNext()) {
                RuntimeException v1_6 = v12.getLong(0);
                try {
                } catch (com.google.android.gms.internal.zzagg v0_17) {
                    throw new RuntimeException(v0_17);
                }
                int v6_3;
                com.google.android.gms.internal.zzagu v3_7 = com.google.android.gms.internal.zzagu.zzb(new com.google.android.gms.internal.zzafa(v12.getString(1)), com.google.android.gms.internal.zzaim.zzij(v12.getString(2)));
                long v4_4 = v12.getLong(3);
                if (v12.getInt(4) == 0) {
                    v6_3 = 0;
                } else {
                    v6_3 = 1;
                }
                int v7_1;
                if (v12.getInt(5) == 0) {
                    v7_1 = 0;
                } else {
                    v7_1 = 1;
                }
                v13_1.add(new com.google.android.gms.internal.zzagg(v1_6, v3_7, v4_4, v6_3, v7_1));
            }
        } catch (com.google.android.gms.internal.zzagg v0_24) {
            v12.close();
            throw v0_24;
        }
        com.google.android.gms.internal.zzagg v0_9 = (System.currentTimeMillis() - v10);
        if (this.zzbHV.zzTe()) {
            com.google.android.gms.internal.zzahf v2_2 = this.zzbHV;
            long v4_3 = new Object[2];
            v4_3[0] = Integer.valueOf(v13_1.size());
            v4_3[1] = Long.valueOf(v0_9);
            RuntimeException v1_5 = new Object[0];
            v2_2.zzh(String.format("Loaded %d tracked queries in %dms", v4_3), v1_5);
        }
        v12.close();
        return v13_1;
    }

Method com.google.android.gms.internal.zzadq.zzPp() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzPp()
    {
        IllegalStateException v2_6 = new String[5];
        v2_6[0] = "id";
        v2_6[1] = "path";
        v2_6[2] = "type";
        v2_6[3] = "part";
        v2_6[4] = "node";
        long v8 = System.currentTimeMillis();
        android.database.Cursor v7_1 = this.zzbHU.query("writes", v2_6, 0, 0, 0, 0, "id, part");
        java.util.ArrayList v10_1 = new java.util.ArrayList();
        try {
            while (v7_1.moveToNext()) {
                String v0_28;
                IllegalStateException v2_7 = v7_1.getLong(0);
                Object[] v4_5 = new com.google.android.gms.internal.zzafa(v7_1.getString(1));
                int v1_11 = v7_1.getString(2);
                if (!v7_1.isNull(3)) {
                    String v0_26 = new java.util.ArrayList();
                    do {
                        v0_26.add(v7_1.getBlob(4));
                    } while((v7_1.moveToNext()) && (v7_1.getLong(0) == v2_7));
                    v7_1.moveToPrevious();
                    v0_28 = this.zzO(v0_26);
                } else {
                    v0_28 = v7_1.getBlob(4);
                }
                int v1_2;
                String v0_0 = com.google.android.gms.internal.zzaim.zzik(new String(v0_28, com.google.android.gms.internal.zzadq.zzaiI));
                if (!"o".equals(v1_11)) {
                    if (!"m".equals(v1_11)) {
                        String v0_4;
                        String v0_2 = String.valueOf(v1_11);
                        if (v0_2.length() == 0) {
                            v0_4 = new String("Got invalid write type: ");
                        } else {
                            v0_4 = "Got invalid write type: ".concat(v0_2);
                        }
                        throw new IllegalStateException(v0_4);
                    } else {
                        v1_2 = new com.google.android.gms.internal.zzafn(v2_7, v4_5, com.google.android.gms.internal.zzaes.zzax(((java.util.Map) v0_0)));
                    }
                } else {
                    v1_2 = new com.google.android.gms.internal.zzafn(v2_7, v4_5, com.google.android.gms.internal.zzahv.zzaq(v0_0), 1);
                }
                v10_1.add(v1_2);
            }
        } catch (String v0_9) {
            v7_1.close();
            throw v0_9;
        } catch (String v0_8) {
            throw new RuntimeException("Failed to load writes", v0_8);
        }
        String v0_14 = (System.currentTimeMillis() - v8);
        if (this.zzbHV.zzTe()) {
            IllegalStateException v2_5 = this.zzbHV;
            Object[] v4_3 = new Object[2];
            v4_3[0] = Integer.valueOf(v10_1.size());
            v4_3[1] = Long.valueOf(v0_14);
            int v1_10 = new Object[0];
            v2_5.zzh(String.format("Loaded %d writes in %dms", v4_3), v1_10);
        }
        v7_1.close();
        return v10_1;
    }

Method com.google.android.gms.internal.zzadq.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor zza(com.google.android.gms.internal.zzafa p9, String[] p10)
    {
        String v3_3;
        android.database.Cursor v0_0 = com.google.android.gms.internal.zzadq.zzc(p9);
        String v1_1 = com.google.android.gms.internal.zzadq.zzhO(v0_0);
        String[] v4 = new String[(p9.size() + 3)];
        String[] v2_1 = String.valueOf(com.google.android.gms.internal.zzadq.zzb(p9, v4));
        String v3_1 = String.valueOf(" OR (path > ? AND path < ?)");
        if (v3_1.length() == 0) {
            v3_3 = new String(v2_1);
        } else {
            v3_3 = v2_1.concat(v3_1);
        }
        v4[(p9.size() + 1)] = v0_0;
        v4[(p9.size() + 2)] = v1_1;
        return this.zzbHU.query("serverCache", p10, v3_3, v4, 0, 0, "path");
    }

Method com.google.android.gms.analytics.internal.zzj.zzt() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzt(long p14)
    {
        this.zzma();
        this.zzkN();
        boolean v0_0 = this.getWritableDatabase();
        try {
            String v2_0 = new String[5];
            v2_0[0] = "cid";
            v2_0[1] = "tid";
            v2_0[2] = "adid";
            v2_0[3] = "hits_count";
            v2_0[4] = "params";
            int v10 = this.zzlS().zznv();
            java.util.Map v8_0 = String.valueOf(v10);
            String v4_0 = new String[1];
            v4_0[0] = String.valueOf(p14);
            android.database.Cursor v9 = v0_0.query("properties", v2_0, "app_uid=?", v4_0, 0, 0, 0, v8_0);
            try {
                java.util.ArrayList v11_1 = new java.util.ArrayList();
            } catch (boolean v0_1) {
                long v1_8 = v9;
                try {
                    this.zze("Error loading hits from the database", v0_1);
                    throw v0_1;
                } catch (boolean v0_19) {
                    v9 = v1_8;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_19;
                }
            }
            if (v9.moveToFirst()) {
                do {
                    int v5_2;
                    String v3_5 = v9.getString(0);
                    String v4_1 = v9.getString(1);
                    if (v9.getInt(2) == 0) {
                        v5_2 = 0;
                    } else {
                        v5_2 = 1;
                    }
                    long v6_1 = ((long) v9.getInt(3));
                    java.util.Map vtmp14 = this.zzbM(v9.getString(4));
                    if ((!android.text.TextUtils.isEmpty(v3_5)) && (!android.text.TextUtils.isEmpty(v4_1))) {
                        v11_1.add(new com.google.android.gms.analytics.internal.zzh(p14, v3_5, v4_1, v5_2, v6_1, vtmp14));
                    } else {
                        this.zzc("Read property with empty client id or tracker id", v3_5, v4_1);
                    }
                } while(v9.moveToNext());
            }
            if (v11_1.size() >= v10) {
                this.zzbJ("Sending hits to too many properties. Campaign report might be incorrect");
            }
            if (v9 != null) {
                v9.close();
            }
            return v11_1;
        } catch (boolean v0_19) {
        } catch (boolean v0_1) {
            v1_8 = v9;
        }
    }

Method com.google.android.gms.analytics.internal.zzj.zzr() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzr(long p14)
    {
        Throwable v0_0 = 1;
        if (p14 < 0) {
            v0_0 = 0;
        }
        com.google.android.gms.common.internal.zzaa.zzaj(v0_0);
        this.zzkN();
        this.zzma();
        Throwable v0_1 = this.getWritableDatabase();
        try {
            java.util.Map v2_1 = new String[5];
            v2_1[0] = "hit_id";
            v2_1[1] = "hit_time";
            v2_1[2] = "hit_string";
            v2_1[3] = "hit_url";
            v2_1[4] = "hit_app_id";
            int v8_1 = new Object[1];
            v8_1[0] = "hit_id";
            com.google.android.gms.analytics.internal.zzj v9 = v0_1.query("hits2", v2_1, 0, 0, 0, 0, String.format("%s ASC", v8_1), Long.toString(p14));
            try {
                java.util.ArrayList v10_2 = new java.util.ArrayList();
            } catch (Throwable v0_2) {
                com.google.android.gms.analytics.internal.zzj v1_2 = v9;
                try {
                    this.zze("Error loading hits from the database", v0_2);
                    throw v0_2;
                } catch (Throwable v0_4) {
                    v9 = v1_2;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_4;
                }
            }
            if (v9.moveToFirst()) {
                do {
                    v10_2.add(new com.google.android.gms.analytics.internal.zzab(this, this.zzbL(v9.getString(2)), v9.getLong(1), com.google.android.gms.analytics.internal.zzao.zzcb(v9.getString(3)), v9.getLong(0), v9.getInt(4)));
                } while(v9.moveToNext());
            }
            if (v9 != null) {
                v9.close();
            }
            return v10_2;
        } catch (Throwable v0_4) {
        } catch (Throwable v0_2) {
            v1_2 = v9;
        }
    }

Method com.google.android.gms.analytics.internal.zzj.zzq() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzq(long p14)
    {
        java.util.ArrayList v0_8;
        int v10 = 0;
        this.zzkN();
        this.zzma();
        if (p14 > 0) {
            java.util.ArrayList v0_9 = this.getWritableDatabase();
            java.util.ArrayList v9_1 = new java.util.ArrayList();
            try {
                long v2_1 = new String[1];
                v2_1[0] = "hit_id";
                String v8_1 = new Object[1];
                v8_1[0] = "hit_id";
                int v1_1 = v0_9.query("hits2", v2_1, 0, 0, 0, 0, String.format("%s ASC", v8_1), Long.toString(p14));
                try {
                    if (v1_1.moveToFirst()) {
                        do {
                            v9_1.add(Long.valueOf(v1_1.getLong(0)));
                        } while(v1_1.moveToNext());
                    }
                } catch (java.util.ArrayList v0_1) {
                    this.zzd("Error selecting hit ids", v0_1);
                    if (v1_1 == 0) {
                        v0_8 = v9_1;
                        return v0_8;
                    } else {
                        v1_1.close();
                    }
                }
                if (v1_1 == 0) {
                } else {
                    v1_1.close();
                }
            } catch (java.util.ArrayList v0_2) {
                if (v10 != 0) {
                    v10.close();
                }
                throw v0_2;
            } catch (java.util.ArrayList v0_1) {
                v1_1 = 0;
            } catch (java.util.ArrayList v0_2) {
                v10 = v1_1;
            }
        } else {
            v0_8 = java.util.Collections.emptyList();
        }
        return v0_8;
    }

Method com.google.android.gms.analytics.internal.zzj$zza.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private boolean zza(android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        int v9 = 0;
        try {
            com.google.android.gms.analytics.internal.zzj v2_1 = new String[1];
            v2_1[0] = "name";
            String[] v4 = new String[1];
            v4[0] = p12;
            int v1_0 = p11.query("SQLITE_MASTER", v2_1, "name=?", v4, 0, 0, 0);
            try {
                int v0_4 = v1_0.moveToFirst();
            } catch (int v0_2) {
                this.zzWS.zzc("Error querying for table", p12, v0_2);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                v0_4 = 0;
                return v0_4;
            }
            if (v1_0 == 0) {
                return v0_4;
            } else {
                v1_0.close();
                return v0_4;
            }
        } catch (int v0_3) {
            if (v9 != 0) {
                v9.close();
            }
            throw v0_3;
        } catch (int v0_2) {
            v1_0 = 0;
        } catch (int v0_3) {
            v9 = v1_0;
        }
    }

Method com.google.android.gms.ads.internal.purchase.zzh.zzhn() calling method android.database.sqlite.SQLiteDatabase.query()


    public void zzhn()
    {
        try {
            String v0_5 = this.getWritableDatabase();
        } catch (String v0_9) {
            throw v0_9;
        }
        if (v0_5 != null) {
            try {
                int v1_0 = v0_5.query("InAppPurchase", 0, 0, 0, 0, 0, "record_time ASC", "1");
                try {
                    if ((v1_0 != 0) && (v1_0.moveToFirst())) {
                        this.zza(this.zza(v1_0));
                    }
                } catch (String v0_0) {
                    String v0_6 = String.valueOf(v0_0.getMessage());
                    if (v0_6.length() == 0) {
                        String v0_8 = new String("Error remove oldest record");
                    } else {
                        v0_8 = "Error remove oldest record".concat(v0_6);
                    }
                    com.google.android.gms.internal.zzjw.zzaW(v0_8);
                    if (v1_0 == 0) {
                        return;
                    } else {
                        v1_0.close();
                    }
                }
                if (v1_0 == 0) {
                } else {
                    v1_0.close();
                }
            } catch (String v0_1) {
                v1_0 = 0;
                if (v1_0 != 0) {
                    v1_0.close();
                }
                throw v0_1;
            } catch (String v0_0) {
                v1_0 = 0;
            } catch (String v0_1) {
            }
        } else {
        }
        return;
    }

Method com.google.android.gms.ads.internal.purchase.zzh.zzg() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List zzg(long p14)
    {
        try {
            java.util.LinkedList v0_11;
            java.util.LinkedList v9_1 = new java.util.LinkedList();
        } catch (java.util.LinkedList v0_12) {
            throw v0_12;
        }
        if (p14 > 0) {
            java.util.LinkedList v0_13 = this.getWritableDatabase();
            if (v0_13 != null) {
                try {
                    int v1_1 = v0_13.query("InAppPurchase", 0, 0, 0, 0, 0, "record_time ASC", String.valueOf(p14));
                    try {
                        if (v1_1.moveToFirst()) {
                            do {
                                v9_1.add(this.zza(v1_1));
                            } while(v1_1.moveToNext());
                        }
                    } catch (java.util.LinkedList v0_0) {
                        java.util.LinkedList v0_4 = String.valueOf(v0_0.getMessage());
                        if (v0_4.length() == 0) {
                            java.util.LinkedList v0_6 = new String("Error extracing purchase info: ");
                        } else {
                            v0_6 = "Error extracing purchase info: ".concat(v0_4);
                        }
                        com.google.android.gms.internal.zzjw.zzaW(v0_6);
                        if (v1_1 == 0) {
                            v0_11 = v9_1;
                            return v0_11;
                        } else {
                            v1_1.close();
                        }
                    }
                    if (v1_1 == 0) {
                    } else {
                        v1_1.close();
                    }
                } catch (java.util.LinkedList v0_1) {
                    v1_1 = 0;
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    throw v0_1;
                } catch (java.util.LinkedList v0_0) {
                    v1_1 = 0;
                } catch (java.util.LinkedList v0_1) {
                }
            } else {
                v0_11 = v9_1;
            }
        } else {
            v0_11 = v9_1;
        }
        return v0_11;
    }