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.rudraum.rudraumThumb2Thief.db.QuickBlackListProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhereEscapeString()


    public android.database.Cursor query(android.net.Uri p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        switch (com.rudraum.rudraumThumb2Thief.db.QuickBlackListProvider.sURIMatcher.match(p9)) {
            case 1:
                v0_1.setTables("quick_black_list");
                break;
            case 2:
                v0_1.setTables("quick_black_list");
                android.database.sqlite.SQLiteDatabase v1_5 = ((String) p9.getPathSegments().get(1));
                IllegalArgumentException v2_9 = new StringBuilder();
                v2_9.append("_id=");
                v2_9.append(v1_5);
                v0_1.appendWhereEscapeString(v2_9.toString());
                break;
            case 3:
                android.database.sqlite.SQLiteDatabase v1_12 = new StringBuilder();
                v1_12.append("quick_black_list");
                v1_12.append(" INNER JOIN ");
                v1_12.append("black_list");
                v1_12.append(" ON (");
                v1_12.append("quick_black_list._id");
                v1_12.append(" = ");
                v1_12.append("black_list._id");
                v1_12.append(")");
                v0_1.setTables(v1_12.toString());
                break;
            default:
                android.content.ContentResolver v11_4 = new StringBuilder();
                v11_4.append("Unknown URI ");
                v11_4.append(p9);
                throw new IllegalArgumentException(v11_4.toString());
        }
        android.database.Cursor v10_1 = v0_1.query(this.dbHelper.getReadableDatabase(), p10, p11, p12, 0, 0, p13);
        v10_1.setNotificationUri(this.getContext().getContentResolver(), p9);
        return v10_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.LogProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhereEscapeString()


    public android.database.Cursor query(android.net.Uri p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        switch (com.rudraum.rudraumThumb2Thief.db.LogProvider.sURIMatcher.match(p9)) {
            case 1:
                v0_1.setTables("log");
                break;
            case 2:
                v0_1.setTables("log");
                android.database.sqlite.SQLiteDatabase v1_1 = ((String) p9.getPathSegments().get(1));
                IllegalArgumentException v2_2 = new StringBuilder();
                v2_2.append("_id=");
                v2_2.append(v1_1);
                v0_1.appendWhereEscapeString(v2_2.toString());
                break;
            default:
                android.content.ContentResolver v11_4 = new StringBuilder();
                v11_4.append("Unknown URI ");
                v11_4.append(p9);
                throw new IllegalArgumentException(v11_4.toString());
        }
        android.database.Cursor v10_1 = v0_1.query(this.dbHelper.getReadableDatabase(), p10, p11, p12, 0, 0, p13);
        v10_1.setNotificationUri(this.getContext().getContentResolver(), p9);
        return v10_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.BlackListProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhere()


    public android.database.Cursor query(android.net.Uri p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        switch (com.rudraum.rudraumThumb2Thief.db.BlackListProvider.sURIMatcher.match(p9)) {
            case 1:
                v0_1.setTables("black_list");
                break;
            case 2:
                v0_1.setTables("black_list");
                android.database.sqlite.SQLiteDatabase v1_1 = ((String) p9.getPathSegments().get(1));
                IllegalArgumentException v2_2 = new StringBuilder();
                v2_2.append("_id=");
                v2_2.append(v1_1);
                v0_1.appendWhere(v2_2.toString());
                break;
            default:
                android.content.ContentResolver v11_4 = new StringBuilder();
                v11_4.append("Unknown URI ");
                v11_4.append(p9);
                throw new IllegalArgumentException(v11_4.toString());
        }
        android.database.Cursor v10_1 = v0_1.query(this.dbHelper.getReadableDatabase(), p10, p11, p12, 0, 0, p13);
        v10_1.setNotificationUri(this.getContext().getContentResolver(), p9);
        return v10_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.QuickBlackListProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public android.database.Cursor query(android.net.Uri p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        switch (com.rudraum.rudraumThumb2Thief.db.QuickBlackListProvider.sURIMatcher.match(p9)) {
            case 1:
                v0_1.setTables("quick_black_list");
                break;
            case 2:
                v0_1.setTables("quick_black_list");
                android.database.sqlite.SQLiteDatabase v1_5 = ((String) p9.getPathSegments().get(1));
                IllegalArgumentException v2_9 = new StringBuilder();
                v2_9.append("_id=");
                v2_9.append(v1_5);
                v0_1.appendWhereEscapeString(v2_9.toString());
                break;
            case 3:
                android.database.sqlite.SQLiteDatabase v1_12 = new StringBuilder();
                v1_12.append("quick_black_list");
                v1_12.append(" INNER JOIN ");
                v1_12.append("black_list");
                v1_12.append(" ON (");
                v1_12.append("quick_black_list._id");
                v1_12.append(" = ");
                v1_12.append("black_list._id");
                v1_12.append(")");
                v0_1.setTables(v1_12.toString());
                break;
            default:
                android.content.ContentResolver v11_4 = new StringBuilder();
                v11_4.append("Unknown URI ");
                v11_4.append(p9);
                throw new IllegalArgumentException(v11_4.toString());
        }
        android.database.Cursor v10_1 = v0_1.query(this.dbHelper.getReadableDatabase(), p10, p11, p12, 0, 0, p13);
        v10_1.setNotificationUri(this.getContext().getContentResolver(), p9);
        return v10_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.LogProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public android.database.Cursor query(android.net.Uri p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        switch (com.rudraum.rudraumThumb2Thief.db.LogProvider.sURIMatcher.match(p9)) {
            case 1:
                v0_1.setTables("log");
                break;
            case 2:
                v0_1.setTables("log");
                android.database.sqlite.SQLiteDatabase v1_1 = ((String) p9.getPathSegments().get(1));
                IllegalArgumentException v2_2 = new StringBuilder();
                v2_2.append("_id=");
                v2_2.append(v1_1);
                v0_1.appendWhereEscapeString(v2_2.toString());
                break;
            default:
                android.content.ContentResolver v11_4 = new StringBuilder();
                v11_4.append("Unknown URI ");
                v11_4.append(p9);
                throw new IllegalArgumentException(v11_4.toString());
        }
        android.database.Cursor v10_1 = v0_1.query(this.dbHelper.getReadableDatabase(), p10, p11, p12, 0, 0, p13);
        v10_1.setNotificationUri(this.getContext().getContentResolver(), p9);
        return v10_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.BlackListProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public android.database.Cursor query(android.net.Uri p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        switch (com.rudraum.rudraumThumb2Thief.db.BlackListProvider.sURIMatcher.match(p9)) {
            case 1:
                v0_1.setTables("black_list");
                break;
            case 2:
                v0_1.setTables("black_list");
                android.database.sqlite.SQLiteDatabase v1_1 = ((String) p9.getPathSegments().get(1));
                IllegalArgumentException v2_2 = new StringBuilder();
                v2_2.append("_id=");
                v2_2.append(v1_1);
                v0_1.appendWhere(v2_2.toString());
                break;
            default:
                android.content.ContentResolver v11_4 = new StringBuilder();
                v11_4.append("Unknown URI ");
                v11_4.append(p9);
                throw new IllegalArgumentException(v11_4.toString());
        }
        android.database.Cursor v10_1 = v0_1.query(this.dbHelper.getReadableDatabase(), p10, p11, p12, 0, 0, p13);
        v10_1.setNotificationUri(this.getContext().getContentResolver(), p9);
        return v10_1;
    }

Method com.google.android.gms.internal.zzeaa.zzbn() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public final void zzbn(long p10)
    {
        this.zzbtf();
        com.google.android.gms.internal.zzejc v0_0 = System.currentTimeMillis();
        android.content.ContentValues v4_1 = new android.content.ContentValues();
        v4_1.put("active", Boolean.valueOf(0));
        v4_1.put("lastUse", Long.valueOf(p10));
        String[] v6 = new String[0];
        this.zzmlq.updateWithOnConflict("trackedQueries", v4_1, "active = 1", v6, 5);
        String v10_2 = System.currentTimeMillis();
        if (this.zzmlr.zzbzl()) {
            com.google.android.gms.internal.zzejc v0_3 = this.zzmlr;
            Object[] v2_3 = new Object[1];
            v2_3[0] = Long.valueOf((v10_2 - v0_0));
            Object[] v11 = new Object[0];
            v0_3.zzb(String.format("Reset active tracked queries in %dms", v2_3), 0, v11);
        }
        return;
    }

Method com.google.android.gms.internal.zzcig.zzb() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final boolean zzb(String p17, byte[] p18, String p19)
    {
        this.zzxf();
        this.zzve();
        com.google.android.gms.common.internal.zzbq.zzgm(p17);
        com.google.android.gms.internal.zzcho v0_3 = this.zzc(p17, p18);
        if (v0_3 != null) {
            void v1_1 = this.zza(p17, v0_3);
            v1_1.zzjec.put(p17, v0_3);
            v1_1.zzjee.put(p17, p19);
            v1_1.zzjdz.put(p17, com.google.android.gms.internal.zzcig.zza(v0_3));
            com.google.android.gms.internal.zzcho v4_3 = this.zzawl();
            String v5_2 = v0_3.zzjla;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v5_2);
            Object v6_0 = v5_2.length;
            int v7_0 = 0;
            while (v7_0 < v6_0) {
                String[] v8_1 = v5_2[v7_0];
                int v9_2 = v8_1.zzjju;
                int v10_1 = v9_2.length;
                int v11_2 = 0;
                while (v11_2 < v10_1) {
                    com.google.android.gms.internal.zzclt[] v12_0 = v9_2[v11_2];
                    int v13_1 = com.google.android.gms.measurement.AppMeasurement$Event.zziq(v12_0.zzjjx);
                    if (v13_1 != 0) {
                        v12_0.zzjjx = v13_1;
                    }
                    com.google.android.gms.internal.zzclt[] v12_1 = v12_0.zzjjy;
                    int v13_2 = v12_1.length;
                    int v14 = 0;
                    while (v14 < v13_2) {
                        com.google.android.gms.internal.zzclt v15 = v12_1[v14];
                        int v3_1 = com.google.android.gms.measurement.AppMeasurement$Param.zziq(v15.zzjkf);
                        if (v3_1 != 0) {
                            v15.zzjkf = v3_1;
                        }
                        v14++;
                    }
                    v11_2++;
                }
                int v3_10 = v8_1.zzjjt;
                String[] v8_2 = v3_10.length;
                int v9_0 = 0;
                while (v9_0 < v8_2) {
                    int v10_0 = v3_10[v9_0];
                    int v11_1 = com.google.android.gms.measurement.AppMeasurement$UserProperty.zziq(v10_0.zzjkm);
                    if (v11_1 != 0) {
                        v10_0.zzjkm = v11_1;
                    }
                    v9_0++;
                }
                v7_0++;
            }
            v4_3.zzaws().zza(p17, v5_2);
            try {
                v0_3.zzjla = 0;
                int v3_5 = new byte[v0_3.zzho()];
                v0_3.zza(com.google.android.gms.internal.zzfjk.zzo(v3_5, 0, v3_5.length));
            } catch (com.google.android.gms.internal.zzcho v0_0) {
                this.zzawy().zzazf().zze("Unable to serialize reduced-size config. Storing full config instead. appId", com.google.android.gms.internal.zzchm.zzjk(p17), v0_0);
                v3_5 = p18;
            }
            com.google.android.gms.internal.zzcho v4_7 = this.zzaws();
            com.google.android.gms.common.internal.zzbq.zzgm(p17);
            v4_7.zzve();
            v4_7.zzxf();
            com.google.android.gms.internal.zzcho v0_2 = new android.content.ContentValues();
            v0_2.put("remote_config", v3_5);
            try {
                String v5_6 = v4_7.getWritableDatabase();
                String[] v8_0 = new String[1];
                v8_0[0] = p17;
            } catch (com.google.android.gms.internal.zzcho v0_6) {
                v4_7.zzawy().zzazd().zze("Error storing remote config. appId", com.google.android.gms.internal.zzchm.zzjk(p17), v0_6);
                return 1;
            }
            if (((long) v5_6.update("apps", v0_2, "app_id = ?", v8_0)) != 0) {
                return 1;
            } else {
                v4_7.zzawy().zzazd().zzj("Failed to update remote config (got 0). appId", com.google.android.gms.internal.zzchm.zzjk(p17));
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzal() calling method android.database.sqlite.SQLiteDatabase.update()


    protected final long zzal(String p14, String p15)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p14);
        com.google.android.gms.common.internal.zzbq.zzgm(p15);
        this.zzve();
        this.zzxf();
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            String v4_2 = new StringBuilder((String.valueOf(p15).length() + 32));
            v4_2.append("select ");
            v4_2.append(p15);
            v4_2.append(" from app2 where app_id=?");
            Object v3_4 = v4_2.toString();
            Object v5_1 = new String[1];
            v5_1[0] = p14;
            com.google.android.gms.internal.zzcho v9_0 = this.zza(v3_4, v5_1, -1);
        } catch (Object v14_2) {
            v0.endTransaction();
            throw v14_2;
        } catch (Object v3_9) {
            v9_0 = 0;
            this.zzawy().zzazd().zzd("Error inserting column. appId", com.google.android.gms.internal.zzchm.zzjk(p14), p15, v3_9);
            v0.endTransaction();
            return v9_0;
        }
        if (v9_0 == -1) {
            Object v3_7 = new android.content.ContentValues();
            v3_7.put("app_id", p14);
            v3_7.put("first_open_count", Integer.valueOf(0));
            v3_7.put("previous_install_count", Integer.valueOf(0));
            if (v0.insertWithOnConflict("app2", 0, v3_7, 5) != -1) {
                v9_0 = 0;
            } else {
                this.zzawy().zzazd().zze("Failed to insert column (got -1). appId", com.google.android.gms.internal.zzchm.zzjk(p14), p15);
                v0.endTransaction();
                return -1;
            }
        }
        try {
            Object v3_11 = new android.content.ContentValues();
            v3_11.put("app_id", p14);
            v3_11.put(p15, Long.valueOf((1 + v9_0)));
            String v4_4 = new String[1];
            v4_4[0] = p14;
        } catch (Object v3_9) {
        }
        if (((long) v0.update("app2", v3_11, "app_id = ?", v4_4)) != 0) {
            v0.setTransactionSuccessful();
            v0.endTransaction();
            return v9_0;
        } else {
            this.zzawy().zzazd().zze("Failed to update column (got 0). appId", com.google.android.gms.internal.zzchm.zzjk(p14), p15);
            v0.endTransaction();
            return -1;
        }
    }

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


    public final void zza(com.google.android.gms.internal.zzcgh p8)
    {
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8);
        this.zzve();
        this.zzxf();
        com.google.android.gms.internal.zzcho v0_5 = new android.content.ContentValues();
        v0_5.put("app_id", p8.getAppId());
        v0_5.put("app_instance_id", p8.getAppInstanceId());
        v0_5.put("gmp_app_id", p8.getGmpAppId());
        v0_5.put("resettable_device_id_hash", p8.zzaxc());
        v0_5.put("last_bundle_index", Long.valueOf(p8.zzaxl()));
        v0_5.put("last_bundle_start_timestamp", Long.valueOf(p8.zzaxe()));
        v0_5.put("last_bundle_end_timestamp", Long.valueOf(p8.zzaxf()));
        v0_5.put("app_version", p8.zzvj());
        v0_5.put("app_store", p8.zzaxh());
        v0_5.put("gmp_version", Long.valueOf(p8.zzaxi()));
        v0_5.put("dev_cert_hash", Long.valueOf(p8.zzaxj()));
        v0_5.put("measurement_enabled", Boolean.valueOf(p8.zzaxk()));
        v0_5.put("day", Long.valueOf(p8.zzaxp()));
        v0_5.put("daily_public_events_count", Long.valueOf(p8.zzaxq()));
        v0_5.put("daily_events_count", Long.valueOf(p8.zzaxr()));
        v0_5.put("daily_conversions_count", Long.valueOf(p8.zzaxs()));
        v0_5.put("config_fetched_time", Long.valueOf(p8.zzaxm()));
        v0_5.put("failed_config_fetch_time", Long.valueOf(p8.zzaxn()));
        v0_5.put("app_version_int", Long.valueOf(p8.zzaxg()));
        v0_5.put("firebase_instance_id", p8.zzaxd());
        v0_5.put("daily_error_events_count", Long.valueOf(p8.zzaxu()));
        v0_5.put("daily_realtime_events_count", Long.valueOf(p8.zzaxt()));
        v0_5.put("health_monitor_sample", p8.zzaxv());
        v0_5.put("android_id", Long.valueOf(p8.zzaxx()));
        v0_5.put("adid_reporting_enabled", Boolean.valueOf(p8.zzaxy()));
        try {
            String v1_8 = this.getWritableDatabase();
            long v4_1 = new String[1];
            v4_1[0] = p8.getAppId();
        } catch (com.google.android.gms.internal.zzcho v0_3) {
            this.zzawy().zzazd().zze("Error storing app. appId", com.google.android.gms.internal.zzchm.zzjk(p8.getAppId()), v0_3);
            return;
        }
        if ((((long) v1_8.update("apps", v0_5, "app_id = ?", v4_1)) == 0) && (v1_8.insertWithOnConflict("apps", 0, v0_5, 5) == -1)) {
            this.zzawy().zzazd().zzj("Failed to insert/update app (got -1). appId", com.google.android.gms.internal.zzchm.zzjk(p8.getAppId()));
        }
        return;
    }

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


    public final com.google.android.gms.internal.zzcgp zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p17);
        this.zzve();
        this.zzxf();
        com.google.android.gms.internal.zzcho v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.internal.zzcgp v3_1 = new com.google.android.gms.internal.zzcgp();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzawy().zzazd().zze("Error updating daily counts. appId", com.google.android.gms.internal.zzchm.zzjk(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zziyy = v4.getLong(1);
                v3_1.zziyx = v4.getLong(2);
                v3_1.zziyz = v4.getLong(3);
                v3_1.zziza = v4.getLong(4);
                v3_1.zzizb = v4.getLong(5);
            }
            if (p18) {
                v3_1.zziyy = (v3_1.zziyy + 1);
            }
            if (p19) {
                v3_1.zziyx = (v3_1.zziyx + 1);
            }
            if (p20) {
                v3_1.zziyz = (v3_1.zziyz + 1);
            }
            if (p21) {
                v3_1.zziza = (v3_1.zziza + 1);
            }
            if (p22) {
                v3_1.zzizb = (v3_1.zzizb + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zziyx));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zziyy));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zziyz));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zziza));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzizb));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzawy().zzazf().zzj("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzchm.zzjk(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.BlackListProvider.updateUniqueBlackList() calling method android.database.sqlite.SQLiteDatabase.update()


    private int updateUniqueBlackList(android.net.Uri p7, android.content.ContentValues p8)
    {
        android.database.SQLException v0_3 = this.dbHelper.getWritableDatabase();
        StringBuilder v1_4 = android.content.ContentUris.parseId(p7);
        StringBuilder v4_1 = new StringBuilder();
        v4_1.append("_id=");
        v4_1.append(v1_4);
        android.database.SQLException v0_1 = v0_3.update("black_list", p8, v4_1.toString(), 0);
        if (v0_1 != 1) {
            StringBuilder v1_3 = new StringBuilder();
            v1_3.append("Failed to update row into ");
            v1_3.append(p7);
            v1_3.append(". Values: ");
            v1_3.append(p8.toString());
            throw new android.database.SQLException(v1_3.toString());
        } else {
            this.getContext().getContentResolver().notifyChange(p7, 0);
            return v0_1;
        }
    }

Method com.google.android.gms.tagmanager.zzec.zzh() calling method android.database.sqlite.SQLiteDatabase.update()


    private final void zzh(long p6, long p8)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.zzlk("Error opening database for getNumStoredHits.");
        if (v0_1 != null) {
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("hit_first_send_time", Long.valueOf(p8));
            try {
                String[] v2_1 = new String[1];
                v2_1[0] = String.valueOf(p6);
                v0_1.update("gtm_hits", v1_1, "hit_id=?", v2_1);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                StringBuilder v9_2 = new StringBuilder(69);
                v9_2.append("Error setting HIT_FIRST_DISPATCH_TIME for hitId: ");
                v9_2.append(p6);
                com.google.android.gms.tagmanager.zzdj.zzcu(v9_2.toString());
                this.zzp(p6);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzczh.zzh() calling method android.database.sqlite.SQLiteDatabase.update()


    private final void zzh(long p6, long p8)
    {
        StringBuilder v0_1 = this.zzlk("Error opening database for getNumStoredHits.");
        if (v0_1 != null) {
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("hit_first_send_time", Long.valueOf(p8));
            try {
                String[] v2_1 = new String[1];
                v2_1[0] = String.valueOf(p6);
                v0_1.update("gtm_hits", v1_1, "hit_id=?", v2_1);
                return;
            } catch (String v8_2) {
                String v8_3 = v8_2.getMessage();
                StringBuilder v0_3 = new StringBuilder((String.valueOf(v8_3).length() + 70));
                v0_3.append("Error setting HIT_FIRST_DISPATCH_TIME for hitId ");
                v0_3.append(p6);
                v0_3.append(": ");
                v0_3.append(v8_3);
                com.google.android.gms.internal.zzcze.zzcu(v0_3.toString());
                this.zzp(p6);
                return;
            }
        } else {
            return;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.updateIntruder() calling method android.database.sqlite.SQLiteDatabase.update()


    public int updateIntruder(com.rudraum.rudraumThumb2Thief.Models.IntruderModel p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("date", p7.getDate());
        v1_1.put("image", p7.getImage());
        String[] v4_1 = new String[1];
        v4_1[0] = String.valueOf(p7.getId());
        return v0.update("offlineemail", v1_1, "id = ?", v4_1);
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.updateIntruder() calling method android.database.sqlite.SQLiteDatabase.update()


    public int updateIntruder(com.rudraum.rudraumThumb2Thief.Models.IntruderModel p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("date", p7.getDate());
        v1_1.put("image", p7.getImage());
        String[] v4_1 = new String[1];
        v4_1[0] = String.valueOf(p7.getId());
        return v0.update("intruder", v1_1, "id = ?", v4_1);
    }

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


    private final boolean zzb(int p17, byte[] p18)
    {
        this.zzve();
        Long v2_7 = 0;
        if (!this.zzjbo) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p17));
            v3_1.put("entry", p18);
            Long v4_4 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_4) {
                int v7 = 0;
                try {
                    int v9 = this.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            if ((v12 != 0) && (v12.moveToFirst())) {
                                v10_0 = v12.getLong(v2_7);
                            }
                            if (v10_0 >= 100000) {
                                this.zzawy().zzazd().log("Data loss, local db full");
                                long v13_2 = ((100000 - v10_0) + 1);
                                String[] v11 = new String[1];
                                v11[v2_7] = Long.toString(v13_2);
                                Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                if (v10_3 != v13_2) {
                                    this.zzawy().zzazd().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                                }
                            }
                            v9.insertOrThrow("messages", 0, v3_1);
                            v9.setTransactionSuccessful();
                            v9.endTransaction();
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            return 1;
                        } else {
                            this.zzjbo = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_7;
                        }
                        v7 = v9;
                        try {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v7 != 0) {
                                    if (v7.inTransaction()) {
                                        v7.endTransaction();
                                    }
                                }
                                this.zzawy().zzazd().zzj("Error writing entry to local database", com.google.android.gms.internal.zzcho v0_0);
                                this.zzjbo = 1;
                            } else {
                                if (!(v0_0 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v6));
                                    v6 += 20;
                                }
                            }
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v7 == 0) {
                                v5++;
                                v2_7 = 0;
                                v4_4 = 5;
                            } else {
                                v7.close();
                            }
                        } catch (com.google.android.gms.internal.zzcho v0_2) {
                            v9 = v7;
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            throw v0_2;
                        }
                    } catch (com.google.android.gms.internal.zzcho v0_3) {
                        this.zzawy().zzazd().zzj("Error writing entry to local database", v0_3);
                        this.zzjbo = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.internal.zzcho v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.zzcho v0_2) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_3) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_2) {
                    v12 = v7;
                }
            }
            this.zzawy().zzazf().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzba() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzba(long p5)
    {
        this.zzve();
        this.zzxf();
        try {
            String v1_3 = this.getWritableDatabase();
            String[] v3_1 = new String[1];
            v3_1[0] = String.valueOf(p5);
            int v5_1 = v1_3.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_1);
            try {
                if (v5_1.moveToFirst()) {
                    String v6_3 = v5_1.getString(0);
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return v6_3;
                } else {
                    this.zzawy().zzazj().log("No expired configs for apps with pending events");
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return 0;
                }
            } catch (String v6_1) {
                this.zzawy().zzazd().zzj("Error selecting expired configs", v6_1);
                if (v5_1 != 0) {
                    v5_1.close();
                }
                return 0;
            }
        } catch (String v6_2) {
            v5_1 = 0;
            if (v5_1 != 0) {
                v5_1.close();
            }
            throw v6_2;
        } catch (String v6_1) {
            v5_1 = 0;
        } catch (String v6_2) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzaym() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final long zzaym()
    {
        long v0_0 = -1;
        try {
            android.database.Cursor v2_1 = this.getWritableDatabase().rawQuery("select rowid from raw_events order by rowid desc limit 1;", 0);
        } catch (long v0_1) {
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v0_1;
        } catch (int v3_1) {
            this.zzawy().zzazd().zzj("Error querying raw events", v3_1);
            if (v2_1 != null) {
                v2_1.close();
            }
            return v0_0;
        }
        if (v2_1.moveToFirst()) {
            v0_0 = v2_1.getLong(0);
            if (v2_1 != null) {
                v2_1.close();
            }
            return v0_0;
        } else {
            if (v2_1 != null) {
                v2_1.close();
            }
            return -1;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzayf() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final String zzayf()
    {
        try {
            Throwable v0_1 = this.getWritableDatabase().rawQuery("select app_id from queue order by has_realtime desc, rowid asc limit 1;", 0);
            try {
                if (!v0_1.moveToFirst()) {
                    if (v0_1 != null) {
                        v0_1.close();
                    }
                    return 0;
                } else {
                    String v1_2 = v0_1.getString(0);
                    if (v0_1 != null) {
                        v0_1.close();
                    }
                    return v1_2;
                }
            } catch (int v2_1) {
                this.zzawy().zzazd().zzj("Database error getting next bundle app id", v2_1);
                if (v0_1 != null) {
                    v0_1.close();
                }
                return 0;
            }
        } catch (Throwable v0_2) {
            String v1_0 = v0_2;
            v0_1 = 0;
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v1_0;
        } catch (int v2_1) {
            v0_1 = 0;
        } catch (String v1_0) {
        }
    }

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


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

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


    private final long zzb(String p4, String[] p5)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p4, p5);
        } catch (long v4_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v4_1;
        } catch (android.database.sqlite.SQLiteException v5_2) {
            this.zzawy().zzazd().zze("Database error", p4, v5_2);
            throw v5_2;
        }
        if (!v1.moveToFirst()) {
            throw new android.database.sqlite.SQLiteException("Database returned empty set");
        } else {
            long v4_2 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v4_2;
        }
    }

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


    private final long zza(String p3, String[] p4, long p5)
    {
        try {
            android.database.Cursor v1 = this.getWritableDatabase().rawQuery(p3, p4);
        } catch (long v3_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v3_1;
        } catch (int v4_3) {
            this.zzawy().zzazd().zze("Database error", p3, v4_3);
            throw v4_3;
        }
        if (!v1.moveToFirst()) {
            if (v1 != null) {
                v1.close();
            }
            return p5;
        } else {
            long v3_2 = v1.getLong(0);
            if (v1 != null) {
                v1.close();
            }
            return v3_2;
        }
    }

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


    private final long zzb(String p3, String[] p4)
    {
        try {
            android.database.Cursor v0_1 = this.getWritableDatabase().rawQuery(p3, 0);
        } catch (long v3_1) {
            if (v0_1 != null) {
                v0_1.close();
            }
            throw v3_1;
        } catch (android.database.sqlite.SQLiteException v4_2) {
            this.zzd("Database error", p3, v4_2);
            throw v4_2;
        }
        if (!v0_1.moveToFirst()) {
            throw new android.database.sqlite.SQLiteException("Database returned empty set");
        } else {
            long v3_2 = v0_1.getLong(0);
            if (v0_1 != null) {
                v0_1.close();
            }
            return v3_2;
        }
    }

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


    private final long zza(String p1, String[] p2, long p3)
    {
        try {
            android.database.Cursor v4 = this.getWritableDatabase().rawQuery(p1, p2);
        } catch (long v1_1) {
            if (v4 != null) {
                v4.close();
            }
            throw v1_1;
        } catch (int v2_3) {
            this.zzd("Database error", p1, v2_3);
            throw v2_3;
        }
        if (!v4.moveToFirst()) {
            if (v4 != null) {
                v4.close();
            }
            return 0;
        } else {
            long v1_3 = v4.getLong(0);
            if (v4 != null) {
                v4.close();
            }
            return v1_3;
        }
    }

Method com.google.android.gms.tagmanager.zzec.zzbfl() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzbfl()
    {
        long v0_4 = this.zzlk("Error opening database for getNumStoredHits.");
        int v1 = 0;
        if (v0_4 != 0) {
            try {
                android.database.Cursor v2_1 = v0_4.rawQuery("SELECT COUNT(*) from gtm_hits", 0);
            } catch (long v0_3) {
                if (v2_1 != null) {
                    v2_1.close();
                }
                throw v0_3;
            }
            if (v2_1.moveToFirst()) {
                v1 = ((int) v2_1.getLong(0));
            }
            if (v2_1 == null) {
                return v1;
            } else {
                v2_1.close();
                return v1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzben() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzben()
    {
        long v0_4 = this.zzlk("Error opening database for getNumStoredEntries.");
        int v1 = 0;
        if (v0_4 != 0) {
            try {
                android.database.Cursor v2_1 = v0_4.rawQuery("SELECT COUNT(*) from datalayer", 0);
            } catch (long v0_3) {
                if (v2_1 != null) {
                    v2_1.close();
                }
                throw v0_3;
            }
            if (v2_1.moveToFirst()) {
                v1 = ((int) v2_1.getLong(0));
            }
            if (v2_1 == null) {
                return v1;
            } else {
                v2_1.close();
                return v1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzeaa.zzbtc() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


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

Method com.google.android.gms.internal.zzeaa.zzal() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static android.database.sqlite.SQLiteDatabase zzal(android.content.Context p1, String p2)
    {
        try {
            android.database.sqlite.SQLiteException v1_2 = new com.google.android.gms.internal.zzead(p1, p2).getWritableDatabase();
            v1_2.rawQuery("PRAGMA locking_mode = EXCLUSIVE", 0).close();
            v1_2.beginTransaction();
            v1_2.endTransaction();
            return v1_2;
        } catch (android.database.sqlite.SQLiteException v1_1) {
            if (!(v1_1 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                throw v1_1;
            } else {
                throw new com.google.firebase.database.DatabaseException("Failed to gain exclusive lock to Firebase Database\'s offline persistence. This generally means you are using Firebase Database from multiple processes in your app. Keep in mind that multi-process Android apps execute the code in your Application class in all processes, so you may need to avoid initializing FirebaseDatabase in your Application class. If you are intentionally using Firebase Database from multiple processes, you can only enable offline persistence (i.e. call setPersistenceEnabled(true)) in one of them.", v1_1);
            }
        }
    }

Method com.google.android.gms.internal.zzczh.zzmj() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzmj(String p6)
    {
        long v0_1 = this.zzlk("Error opening database for getNumRecords.");
        int v1 = 0;
        if (v0_1 != 0) {
            android.database.Cursor v2 = 0;
            try {
                String v6_2;
                String v6_10 = String.valueOf(p6);
            } catch (String v6_9) {
                if (v2 != null) {
                    v2.close();
                }
                throw v6_9;
            } catch (String v6_4) {
                String v6_6 = String.valueOf(v6_4.getMessage());
                if (v6_6.length() == 0) {
                    String v6_8 = new String("Error getting numStoredRecords: ");
                } else {
                    v6_8 = "Error getting numStoredRecords: ".concat(v6_6);
                }
                com.google.android.gms.internal.zzcze.zzcu(v6_8);
                if (v2 == null) {
                    return v1;
                } else {
                    v2.close();
                    return v1;
                }
            }
            if (v6_10.length() == 0) {
                v6_2 = new String("SELECT COUNT(*) from ");
            } else {
                v6_2 = "SELECT COUNT(*) from ".concat(v6_10);
            }
            v2 = v0_1.rawQuery(v6_2, 0);
            if (v2.moveToFirst()) {
                v1 = ((int) v2.getLong(0));
            }
            if (v2 == null) {
                return v1;
            } else {
            }
        } else {
            return 0;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.getIntrudersCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int getIntrudersCount()
    {
        int v0_1 = this.getReadableDatabase().rawQuery("SELECT  * FROM offlineemail", 0);
        v0_1.close();
        return v0_1.getCount();
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.getAllIntruder() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList getAllIntruder(android.content.Context p5)
    {
        com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb v0_1 = new com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb(p5);
        try {
            com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.sq = v0_1.getWritableDatabase();
        } catch (android.database.SQLException) {
            new Exception("Error with DB Open");
        }
        java.util.ArrayList v5_4 = new java.util.ArrayList();
        android.database.Cursor v1_1 = com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.sq.rawQuery("SELECT  * FROM offlineemail", 0);
        int vtmp3 = v1_1.getCount();
        if ((v1_1 != null) && (vtmp3 > 0)) {
            if (v1_1.moveToFirst()) {
                com.rudraum.rudraumThumb2Thief.Models.IntruderModel v2_4 = new com.rudraum.rudraumThumb2Thief.Models.IntruderModel();
                v2_4.setId(v1_1.getInt(v1_1.getColumnIndex("id")));
                v2_4.setDate(v1_1.getString(v1_1.getColumnIndex("date")));
                v2_4.setImage(v1_1.getString(v1_1.getColumnIndex("image")));
                v5_4.add(v2_4);
            }
            v1_1.close();
            v0_1.close();
        }
        return v5_4;
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.getIntrudersCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int getIntrudersCount()
    {
        int v0_1 = this.getReadableDatabase().rawQuery("SELECT  * FROM intruder", 0);
        v0_1.close();
        return v0_1.getCount();
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.getAllIntruder() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.List getAllIntruder()
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        android.database.Cursor v1_1 = this.getWritableDatabase().rawQuery("SELECT  * FROM intruder", 0);
        if (v1_1.moveToFirst()) {
            do {
                boolean v2_1 = new com.rudraum.rudraumThumb2Thief.Models.IntruderModel();
                v2_1.setId(Integer.parseInt(v1_1.getString(0)));
                v2_1.setDate(v1_1.getString(1));
                v2_1.setImage(v1_1.getString(2));
                v0_1.add(v2_1);
            } while(v1_1.moveToNext());
        }
        return v0_1;
    }

Method com.rudraum.rudraumThumb2Thief.dao.PhoneLocationDao.queryTelephoneLocation() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public String queryTelephoneLocation(String p7)
    {
        if ((p7.length() > 4) || (p7.length() < 3)) {
            android.database.sqlite.SQLiteDatabase v1_0 = new StringBuilder();
            v1_0.append("the length of areaNumber is not in range. Excepted length is 3 or 4, the actual length is ");
            v1_0.append(p7.length());
            throw new IllegalArgumentException(v1_0.toString());
        } else {
            String v0_2 = "";
            android.database.sqlite.SQLiteDatabase v1_2 = this.getWritableDatabase();
            String[] v4 = new String[1];
            v4[0] = p7.substring(1);
            android.database.Cursor v7_4 = v1_2.rawQuery("select substr(location, 1, length(location) - 2) as loc from location where area = ? limit 1", v4);
            if (v7_4.moveToNext()) {
                v0_2 = v7_4.getString(v7_4.getColumnIndex("loc"));
            }
            v7_4.close();
            v1_2.close();
            return v0_2;
        }
    }

Method com.rudraum.rudraumThumb2Thief.dao.PhoneLocationDao.queryCellphoneLocation() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public String queryCellphoneLocation(String p6)
    {
        if (p6.length() != 7) {
            StringBuilder v1_3 = new StringBuilder();
            v1_3.append("the length of areaNumber is wrong. Excepted length is 7, the actual length is ");
            v1_3.append(p6.length());
            throw new IllegalArgumentException(v1_3.toString());
        } else {
            String v0_2 = "";
            StringBuilder v1_0 = this.getWritableDatabase();
            String[] v3_1 = new String[1];
            v3_1[0] = p6;
            String v6_3 = v1_0.rawQuery("select location from location where id = (select outkey from number where id = ?)", v3_1);
            if (v6_3.moveToNext()) {
                v0_2 = v6_3.getString(v6_3.getColumnIndex("location"));
            }
            v6_3.close();
            v1_0.close();
            return v0_2;
        }
    }

Method com.rudraum.rudraumThumb2Thief.addication.DataBaseHelper.getTime() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static java.util.ArrayList getTime(android.content.Context p5)
    {
        android.database.Cursor v5_1 = new com.rudraum.rudraumThumb2Thief.addication.DataBaseHelper(p5).getWritableDatabase();
        java.util.ArrayList v0_3 = new java.util.ArrayList();
        android.database.Cursor v5_2 = v5_1.rawQuery("SELECT * FROM Antiadication_data_thumb2thief", 0);
        if (v5_2.getCount() <= 0) {
            v5_2.close();
            return 0;
        } else {
            v5_2.moveToFirst();
            int v2_0 = 0;
            while (v2_0 < v5_2.getCount()) {
                com.rudraum.rudraumThumb2Thief.addication.TimeStore v3_2 = new com.rudraum.rudraumThumb2Thief.addication.TimeStore();
                v3_2.setId(v5_2.getString(0));
                v3_2.setTime(v5_2.getString(1));
                v3_2.setDate(v5_2.getString(2));
                v3_2.setDuration(v5_2.getString(3));
                v0_3.add(v3_2);
                v5_2.moveToNext();
                v2_0++;
            }
            return v0_3;
        }
    }

Method com.rudraum.rudraumThumb2Thief.AntiVirus.AntiVirusDao.checkViruss() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static String checkViruss(java.io.File[] p5)
    {
        String v1_3 = new StringBuilder();
        v1_3.append(android.os.Environment.getExternalStorageDirectory());
        v1_3.append(java.io.File.separator);
        v1_3.append("SMOM");
        v1_3.append(java.io.File.separator);
        v1_3.append("db/antivirus.db");
        String v1_2 = 0;
        if (!new java.io.File(v1_3.toString()).exists()) {
            System.out.println("The database does not exist");
            return 0;
        } else {
            System.out.println("The database exists");
            String v0_6 = new StringBuilder();
            v0_6.append(android.os.Environment.getExternalStorageDirectory());
            v0_6.append(java.io.File.separator);
            v0_6.append("SMOM");
            v0_6.append(java.io.File.separator);
            v0_6.append("db/antivirus.db");
            String v0_8 = android.database.sqlite.SQLiteDatabase.openDatabase(v0_6.toString(), 0, 1);
            boolean v2_10 = new String[1];
            v2_10[0] = String.valueOf(p5);
            java.io.PrintStream v5_3 = v0_8.rawQuery("select  desc from datable where md5=?", v2_10);
            while (v5_3.moveToNext()) {
                v1_2 = v5_3.getString(0);
            }
            v5_3.close();
            v0_8.close();
            return v1_2;
        }
    }

Method com.rudraum.rudraumThumb2Thief.AntiVirus.AntiVirusDao.checkVirus() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static String checkVirus(String p5)
    {
        String v1_3 = new StringBuilder();
        v1_3.append(android.os.Environment.getExternalStorageDirectory());
        v1_3.append(java.io.File.separator);
        v1_3.append("SMOM");
        v1_3.append(java.io.File.separator);
        v1_3.append("db/antivirus.db");
        String v1_2 = 0;
        if (!new java.io.File(v1_3.toString()).exists()) {
            System.out.println("The database does not exist");
            return 0;
        } else {
            System.out.println("The database exists");
            String v0_6 = new StringBuilder();
            v0_6.append(android.os.Environment.getExternalStorageDirectory());
            v0_6.append(java.io.File.separator);
            v0_6.append("SMOM");
            v0_6.append(java.io.File.separator);
            v0_6.append("db/antivirus.db");
            String v0_8 = android.database.sqlite.SQLiteDatabase.openDatabase(v0_6.toString(), 0, 1);
            boolean v2_10 = new String[1];
            v2_10[0] = p5;
            java.io.PrintStream v5_2 = v0_8.rawQuery("select  desc from datable where md5=?", v2_10);
            while (v5_2.moveToNext()) {
                v1_2 = v5_2.getString(0);
            }
            v5_2.close();
            v0_8.close();
            return v1_2;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzee.zza("gtm_hits", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM gtm_hits WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((!v0_5.remove("hit_id")) || ((!v0_5.remove("hit_url")) || ((!v0_5.remove("hit_time")) || (!v0_5.remove("hit_first_send_time"))))) {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            } else {
                if (!v0_5.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                } else {
                    return;
                }
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzec.zzbfn());
            return;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzax.zza("datalayer", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((!v0_5.remove("key")) || ((!v0_5.remove("value")) || ((!v0_5.remove("ID")) || (!v0_5.remove("expires"))))) {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            } else {
                if (!v0_5.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                } else {
                    return;
                }
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzat.zzbep());
            return;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p10)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_15 = p10.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_15.moveToFirst();
                v0_15.close();
            } catch (Throwable v10_1) {
                v0_15.close();
                throw v10_1;
            }
        }
        if (com.google.android.gms.internal.zzczj.zza("gtm_hit_unique_ids", p10)) {
            com.google.android.gms.internal.zzczj.zza(p10, "gtm_hit_unique_ids", java.util.Arrays.asList(new String[] {"hit_unique_id"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzczh.zzbfn());
        }
        if (com.google.android.gms.internal.zzczj.zza("gtm_hits", p10)) {
            String v3 = "hit_time";
            String v5 = "hit_method";
            String v7 = "hit_headers";
            com.google.android.gms.internal.zzczj.zza(p10, "gtm_hits", java.util.Arrays.asList(new String[] {"hit_id", "hit_body"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzczh.zzbhd());
        }
        p10.execSQL(com.google.android.gms.internal.zzczh.zzbhe());
        p10.execSQL(com.google.android.gms.internal.zzczh.zzbhf());
        return;
    }

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


    private static void zza(android.database.sqlite.SQLiteDatabase p5, String p6, java.util.List p7)
    {
        int v1_4 = new StringBuilder((String.valueOf(p6).length() + 22));
        v1_4.append("SELECT * FROM ");
        v1_4.append(p6);
        v1_4.append(" WHERE 0");
        android.database.sqlite.SQLiteException v5_1 = p5.rawQuery(v1_4.toString(), 0);
        Object[] v0_4 = new java.util.HashSet();
        try {
            int v1_1 = v5_1.getColumnNames();
            boolean v3_0 = 0;
        } catch (String v6_1) {
            v5_1.close();
            throw v6_1;
        }
        while (v3_0 < v1_1.length) {
            v0_4.add(v1_1[v3_0]);
            v3_0++;
        }
        v5_1.close();
        android.database.sqlite.SQLiteException v5_2 = p7.iterator();
        while (v5_2.hasNext()) {
            Object[] v7_4 = ((String) v5_2.next());
            if (!v0_4.remove(v7_4)) {
                Object[] v0_8 = new Object[2];
                v0_8[0] = v7_4;
                v0_8[1] = p6;
                throw new android.database.sqlite.SQLiteException(String.format("Database column %s missing in table %s.", v0_8));
            }
        }
        if (!v0_4.isEmpty()) {
            Object[] v7_2 = new Object[1];
            v7_2[0] = p6;
            throw new android.database.sqlite.SQLiteException(String.format("Database has extra columns in table %s.", v7_2));
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcim.zzg() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zzg(String p40, long p41)
    {
        this.zzaws().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcgw v2_16 = new com.google.android.gms.internal.zzcim$zza(this, 0);
            String v4_48 = this.zzaws();
            com.google.android.gms.internal.zzcgo v5_34 = this.zzjgb;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_16);
            v4_48.zzve();
            v4_48.zzxf();
            com.google.android.gms.internal.zzcmc[] v10_17 = 0;
            try {
                long v21_0;
                int v22;
                Object v15_5 = v4_48.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_28;
                        if (v5_34 == -1) {
                            v12_28 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_34);
                            v12_28 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_34 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        String v14_10 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v3_11);
                        v14_10.append(" order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v14_10.toString(), v12_28);
                        if (v3_1.moveToFirst()) {
                            Long v13_22 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21_0 = v13_22;
                            v3_1 = 0;
                            try {
                                int v12_10 = new String[2];
                                v12_10[0] = v3_1;
                                v12_10[1] = v21_0;
                                android.database.sqlite.SQLiteDatabase v24 = v15_5;
                                Object v15_4 = v15_5.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_10, 0, 0, "rowid", "2");
                                try {
                                    if (v15_4.moveToFirst()) {
                                        int v12_13 = v15_4.getBlob(0);
                                        int v12_14 = com.google.android.gms.internal.zzfjj.zzn(v12_13, 0, v12_13.length);
                                        Long v13_14 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_14.zza(v12_14);
                                        } catch (java.io.IOException v0_6) {
                                            int v6_0 = v15_4;
                                            v4_48.zzawy().zzazd().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1), v0_6);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_16.zzapa == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_16.zzapa.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_16.zzjgi;
                                                    String v4_5 = new com.google.android.gms.internal.zzcmb[v2_16.zzapa.size()];
                                                    v3_9.zzjlp = v4_5;
                                                    String v4_0 = 0;
                                                    com.google.android.gms.internal.zzcgo v5_0 = 0;
                                                    int v6_1 = 0;
                                                    while (v4_0 < v2_16.zzapa.size()) {
                                                        if (!this.zzawv().zzan(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                            Boolean v7_54 = this.zzawv().zzao(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name);
                                                            if (v7_54 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_17];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v13_60;
                                                                }
                                                                int v12_57 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh;
                                                                Long v13_61 = v12_57.length;
                                                                String v14_3 = 0;
                                                                Object v15_1 = 0;
                                                                com.google.android.gms.internal.zzfjj v16_0 = 0;
                                                                while (v14_3 < v13_61) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_16 = v12_57[v14_3];
                                                                    if (!"_c".equals(v10_16.name)) {
                                                                        if ("_r".equals(v10_16.name)) {
                                                                            v10_16.zzjll = Long.valueOf(1);
                                                                            v16_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_16.zzjll = Long.valueOf(1);
                                                                        v15_1 = 1;
                                                                    }
                                                                    v14_3++;
                                                                    int v11 = 1;
                                                                }
                                                                if ((v15_1 == null) && (v7_54 != null)) {
                                                                    this.zzawy().zzazj().zzj("Marking event as conversion", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_66 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_40 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_40.name = "_c";
                                                                    v9_40.zzjll = Long.valueOf(1);
                                                                    v8_66[(v8_66.length - 1)] = v9_40;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_66;
                                                                }
                                                                if (v16_0 == null) {
                                                                    this.zzawy().zzazj().zzj("Marking event as real-time", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_74 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_52 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_52.name = "_r";
                                                                    v9_52.zzjll = Long.valueOf(1);
                                                                    v8_74[(v8_74.length - 1)] = v9_52;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_74;
                                                                }
                                                                if (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 0, 0, 1).zzizb <= ((long) this.zzjew.zzix(v2_16.zzjgi.zzcn))) {
                                                                    v6_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgw v8_6 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    Object v9_3 = 0;
                                                                    while (v9_3 < v8_6.zzjlh.length) {
                                                                        if (!"_r".equals(v8_6.zzjlh[v9_3].name)) {
                                                                            v9_3++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_11 = new com.google.android.gms.internal.zzcmc[(v8_6.zzjlh.length - 1)];
                                                                            if (v9_3 > null) {
                                                                                System.arraycopy(v8_6.zzjlh, 0, v10_11, 0, v9_3);
                                                                            }
                                                                            if (v9_3 < v10_11.length) {
                                                                                System.arraycopy(v8_6.zzjlh, (v9_3 + 1), v10_11, v9_3, (v10_11.length - v9_3));
                                                                            }
                                                                            v8_6.zzjlh = v10_11;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.zzjz(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) && ((v7_54 != null) && (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 1, 0, 0).zziyz > ((long) this.zzjew.zzb(v2_16.zzjgi.zzcn, com.google.android.gms.internal.zzchc.zzjaq))))) {
                                                                    this.zzawy().zzazf().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                    Boolean v7_8 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v8_13 = v7_8.zzjlh;
                                                                    com.google.android.gms.internal.zzcmc[] v10_14 = 0;
                                                                    int v11_12 = 0;
                                                                    int v12_5 = 0;
                                                                    while (v10_14 < v8_13.length) {
                                                                        Long v13_2 = v8_13[v10_14];
                                                                        if (!"_c".equals(v13_2.name)) {
                                                                            if ("_err".equals(v13_2.name)) {
                                                                                v11_12 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_5 = v13_2;
                                                                        }
                                                                        v10_14++;
                                                                    }
                                                                    if ((v11_12 == 0) || (v12_5 == 0)) {
                                                                        if (v12_5 == 0) {
                                                                            this.zzawy().zzazd().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                        } else {
                                                                            v12_5.name = "_err";
                                                                            v12_5.zzjll = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcgw v8_15 = v7_8.zzjlh;
                                                                        com.google.android.gms.internal.zzcmc[] v10_15 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_15[0] = v12_5;
                                                                        v7_8.zzjlh = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.zza(v8_15, v10_15));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                if (com.google.android.gms.internal.zzclq.zzkn(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                                }
                                                            }
                                                            com.google.android.gms.internal.zzcgw v8_18 = (v5_0 + 1);
                                                            v3_9.zzjlp[v5_0] = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                            v5_0 = v8_18;
                                                        } else {
                                                            Boolean v7_21;
                                                            this.zzawy().zzazf().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn), this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                            if (this.zzawu().zzkl(v2_16.zzjgi.zzcn)) {
                                                                v7_21 = 1;
                                                            } else {
                                                                if (!this.zzawu().zzkm(v2_16.zzjgi.zzcn)) {
                                                                    v7_21 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_21 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name))) {
                                                                this.zzawu().zza(v2_16.zzjgi.zzcn, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_17 = 0;
                                                    }
                                                    if (v5_0 < v2_16.zzapa.size()) {
                                                        v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.zzjlp, v5_0));
                                                    }
                                                    int v12_32;
                                                    long v19_2;
                                                    Object v15_7;
                                                    v3_9.zzjmi = this.zza(v2_16.zzjgi.zzcn, v2_16.zzjgi.zzjlq, v3_9.zzjlp);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.zzjac.get()).booleanValue()) || (!"1".equals(this.zzjew.zzawv().zzam(v2_16.zzjgi.zzcn, "measurement.event_sampling_enabled")))) {
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                    } else {
                                                        String v4_23 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcgo v5_14 = new com.google.android.gms.internal.zzcmb[v3_9.zzjlp.length];
                                                        Boolean v7_42 = this.zzawu().zzbaz();
                                                        com.google.android.gms.internal.zzcgw v8_43 = v3_9.zzjlp;
                                                        Object v9_27 = v8_43.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_18 = 0;
                                                        int v11_17 = 0;
                                                        while (v10_18 < v9_27) {
                                                            Object v15_14;
                                                            com.google.android.gms.internal.zzcho v20_2;
                                                            String v1_37;
                                                            long v19_3;
                                                            com.google.android.gms.internal.zzfjj v16_5;
                                                            int v12_34 = v8_43[v10_18];
                                                            if (!v12_34.name.equals("_ep")) {
                                                                String v1_27;
                                                                v16_5 = v8_43;
                                                                if (com.google.android.gms.internal.zzcim.zza(v12_34, "_dbg", Long.valueOf(1))) {
                                                                    v1_27 = 1;
                                                                } else {
                                                                    v1_27 = this.zzawv().zzap(v2_16.zzjgi.zzcn, v12_34.name);
                                                                }
                                                                if (v1_27 > null) {
                                                                    com.google.android.gms.internal.zzcgw v8_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_34.name));
                                                                    if (v8_51 == null) {
                                                                        v8_51 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v12_34.name);
                                                                        if (v8_51 == null) {
                                                                            this.zzawy().zzazf().zze("Event being bundled has no eventAggregate. appId, eventName", v2_16.zzjgi.zzcn, v12_34.name);
                                                                            v8_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v8_51(v2_16.zzjgi.zzcn, v12_34.name, 1, 1, v12_34.zzjli.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_16;
                                                                    this.zzawu();
                                                                    Long v13_34 = ((Long) com.google.android.gms.internal.zzclq.zza(v12_34, "_eid"));
                                                                    if (v13_34 == null) {
                                                                        v14_16 = 0;
                                                                    } else {
                                                                        v14_16 = 1;
                                                                    }
                                                                    String v14_17 = Boolean.valueOf(v14_16);
                                                                    if (v1_27 != 1) {
                                                                        if (v7_42.nextInt(v1_27) != 0) {
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            if (Math.abs((v12_34.zzjli.longValue() - v8_51.zzizn)) < 86400000) {
                                                                                v15_14 = v2_16;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v4_23.put(v12_34.name, v8_51.zza(v13_34, 0, 0));
                                                                                    v10_18++;
                                                                                    v2_16 = v15_14;
                                                                                    v8_43 = v16_5;
                                                                                    v6_1 = v19_3;
                                                                                    v7_42 = v20_2;
                                                                                }
                                                                            } else {
                                                                                this.zzawu();
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                                this.zzawu();
                                                                                v15_14 = v2_16;
                                                                                String v1_31 = ((long) v1_27);
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v1_31));
                                                                                int v6_33 = (v11_17 + 1);
                                                                                v5_14[v11_17] = v12_34;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v8_51 = v8_51.zza(0, Long.valueOf(v1_31), Boolean.valueOf(1));
                                                                                }
                                                                                v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                                v11_17 = v6_33;
                                                                            }
                                                                        } else {
                                                                            this.zzawu();
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            int v6_34 = ((long) v1_27);
                                                                            v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v6_34));
                                                                            String v1_36 = (v11_17 + 1);
                                                                            v5_14[v11_17] = v12_34;
                                                                            if (v14_17.booleanValue()) {
                                                                                v8_51 = v8_51.zza(0, Long.valueOf(v6_34), 0);
                                                                            }
                                                                            v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                            v11_17 = v1_36;
                                                                            v15_14 = v2_16;
                                                                            long v21 = 1;
                                                                        }
                                                                    } else {
                                                                        v1_37 = (v11_17 + 1);
                                                                        v5_14[v11_17] = v12_34;
                                                                        if ((!v14_17.booleanValue()) || ((v8_51.zzizo == null) && ((v8_51.zzizp == null) && (v8_51.zzizq == null)))) {
                                                                            v11_17 = v1_37;
                                                                            v15_14 = v2_16;
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                        } else {
                                                                            v4_23.put(v12_34.name, v8_51.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzawy().zzazf().zze("Sample rate must be positive. event, rate", v12_34.name, Integer.valueOf(v1_27));
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.zza(v12_34, "_en"));
                                                                String v14_20 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_20 == null) {
                                                                    v14_20 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v13_46);
                                                                    v4_23.put(v13_46, v14_20);
                                                                }
                                                                if (v14_20.zzizo != null) {
                                                                    v16_5 = v8_43;
                                                                } else {
                                                                    if (v14_20.zzizp.longValue() > 1) {
                                                                        this.zzawu();
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", v14_20.zzizp);
                                                                    }
                                                                    if ((v14_20.zzizq == null) || (!v14_20.zzizq.booleanValue())) {
                                                                        v16_5 = v8_43;
                                                                    } else {
                                                                        this.zzawu();
                                                                        v16_5 = v8_43;
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            }
                                                        }
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                        if (v11_17 < v3_9.zzjlp.length) {
                                                            v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v5_14, v11_17));
                                                        }
                                                        String v1_11 = v4_23.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzaws().zza(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjls = Long.valueOf(nan);
                                                    v3_9.zzjlt = Long.valueOf(-0.0);
                                                    String v1_16 = 0;
                                                    while (v1_16 < v3_9.zzjlp.length) {
                                                        com.google.android.gms.internal.zzcgw v2_10 = v3_9.zzjlp[v1_16];
                                                        if (v2_10.zzjli.longValue() < v3_9.zzjls.longValue()) {
                                                            v3_9.zzjls = v2_10.zzjli;
                                                        }
                                                        if (v2_10.zzjli.longValue() > v3_9.zzjlt.longValue()) {
                                                            v3_9.zzjlt = v2_10.zzjli;
                                                        }
                                                        v1_16++;
                                                    }
                                                    String v1_17 = v15_7;
                                                    com.google.android.gms.internal.zzcgw v2_7 = v1_17.zzjgi.zzcn;
                                                    String v4_25 = this.zzaws().zzjb(v2_7);
                                                    if (v4_25 != null) {
                                                        if (v3_9.zzjlp.length > 0) {
                                                            Object v9_29;
                                                            com.google.android.gms.internal.zzcgo v5_17 = v4_25.zzaxf();
                                                            if (v5_17 == 0) {
                                                                v9_29 = v12_32;
                                                            } else {
                                                                v9_29 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlv = v9_29;
                                                            Object v9_30 = v4_25.zzaxe();
                                                            if (v9_30 != 0) {
                                                                v5_17 = v9_30;
                                                            } else {
                                                            }
                                                            if (v5_17 != 0) {
                                                                v12_32 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlu = v12_32;
                                                            v4_25.zzaxo();
                                                            v3_9.zzjmg = Integer.valueOf(((int) v4_25.zzaxl()));
                                                            v4_25.zzal(v3_9.zzjls.longValue());
                                                            v4_25.zzam(v3_9.zzjlt.longValue());
                                                            v3_9.zzixw = v4_25.zzaxw();
                                                            this.zzaws().zza(v4_25);
                                                        }
                                                    } else {
                                                        this.zzawy().zzazd().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                    }
                                                    if (v3_9.zzjlp.length > 0) {
                                                        String v4_32;
                                                        String v4_31 = this.zzawv().zzjs(v1_17.zzjgi.zzcn);
                                                        if (v4_31 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_17.zzjgi.zzixs)) {
                                                                this.zzawy().zzazf().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                            } else {
                                                                v4_32 = Long.valueOf(-1);
                                                                v3_9.zzjmn = v4_32;
                                                            }
                                                        } else {
                                                            if (v4_31.zzjkw != null) {
                                                                v4_32 = v4_31.zzjkw;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzaws().zza(v3_9, v19_2);
                                                    }
                                                    this.zzaws().zzah(v1_17.zzjgj);
                                                    String v1_19 = this.zzaws();
                                                    android.database.sqlite.SQLiteException v3_15 = v1_19.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgo v5_33 = new String[2];
                                                        v5_33[0] = v2_7;
                                                        v5_33[1] = v2_7;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_33);
                                                    } catch (java.io.IOException v0_11) {
                                                        v1_19.zzawy().zzazd().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v2_7), v0_11);
                                                    }
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_4.moveToNext()) {
                                            v4_48.zzawy().zzazf().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        }
                                        com.google.android.gms.internal.zzfjj v16_4;
                                        com.google.android.gms.internal.zzcgo v5_2;
                                        v15_4.close();
                                        v2_16.zzb(v13_14);
                                        if (v5_34 == -1) {
                                            v5_2 = "app_id = ? and metadata_fingerprint = ?";
                                            int v12_19 = new String[2];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21_0;
                                            v16_4 = v12_19;
                                        } else {
                                            Long v13_15 = new String[3];
                                            v13_15[0] = v3_1;
                                            v13_15[1] = v21_0;
                                            v13_15[2] = String.valueOf(v5_34);
                                            v5_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_4 = v13_15;
                                        }
                                        v6_0 = v15_4;
                                        com.google.android.gms.internal.zzcgo v5_4 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_2, v16_4, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_4.moveToFirst()) {
                                                do {
                                                    int v6_6 = v5_4.getLong(0);
                                                    com.google.android.gms.internal.zzcgw v8_35 = v5_4.getBlob(3);
                                                    com.google.android.gms.internal.zzcgw v8_36 = com.google.android.gms.internal.zzfjj.zzn(v8_35, 0, v8_35.length);
                                                    int v12_26 = new com.google.android.gms.internal.zzcmb();
                                                    v12_26.zza(v8_36);
                                                    v12_26.name = v5_4.getString(1);
                                                    v12_26.zzjli = Long.valueOf(v5_4.getLong(2));
                                                    if (v2_16.zza(v6_6, v12_26)) {
                                                    } else {
                                                        if (v5_4 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_4.moveToNext());
                                                if (v5_4 == null) {
                                                }
                                            } else {
                                                v4_48.zzawy().zzazf().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                                if (v5_4 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            String v1_1 = v0_9;
                                            v6_0 = v5_4;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_1 = v3_1;
                                            v6_0 = v5_4;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_48.zzawy().zzazd().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v12_1), v3_0);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_4.close();
                                    } else {
                                        v4_48.zzawy().zzazd().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        if (v15_4 == null) {
                                        } else {
                                            v15_4.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v6_0 = v15_4;
                                    v1_1 = v0_7;
                                } catch (java.io.IOException v0_2) {
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_2) {
                                    v12_1 = v3_1;
                                    v6_0 = v15_4;
                                }
                                v12_1 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v12_1 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_36;
                            if (v5_34 == -1) {
                                v12_36 = new String[1];
                                v12_36[0] = String.valueOf(p41);
                            } else {
                                v12_36 = new String[2];
                                v12_36[0] = String.valueOf(v5_34);
                                v12_36[1] = String.valueOf(p41);
                            }
                        } catch (java.io.IOException v0_2) {
                            v6_0 = 0;
                            v12_1 = 0;
                        }
                        Long v13_43;
                        if (v5_34 == -1) {
                            v13_43 = "";
                        } else {
                            v13_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v3_18.toString(), v12_36);
                        if (v3_1.moveToFirst()) {
                            v12_1 = v3_1.getString(0);
                            try {
                                Long v13_3 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_1;
                                v21_0 = v13_3;
                            } catch (java.io.IOException v0_2) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v6_0 = v3_1;
                    v12_1 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v6_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v6_0 = 0;
                v12_1 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            String v1_2 = v0_4;
            this.zzaws().endTransaction();
            throw v1_2;
        }
    }

Method com.google.android.gms.internal.zzcim.zzg() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final boolean zzg(String p40, long p41)
    {
        this.zzaws().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcgw v2_16 = new com.google.android.gms.internal.zzcim$zza(this, 0);
            String v4_48 = this.zzaws();
            com.google.android.gms.internal.zzcgo v5_34 = this.zzjgb;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_16);
            v4_48.zzve();
            v4_48.zzxf();
            com.google.android.gms.internal.zzcmc[] v10_17 = 0;
            try {
                int v22;
                long v21_0;
                Object v15_5 = v4_48.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_28;
                        if (v5_34 == -1) {
                            v12_28 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_34);
                            v12_28 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_34 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        String v14_10 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v3_11);
                        v14_10.append(" order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v14_10.toString(), v12_28);
                        if (v3_1.moveToFirst()) {
                            Long v13_22 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21_0 = v13_22;
                            v3_1 = 0;
                            try {
                                int v12_10 = new String[2];
                                v12_10[0] = v3_1;
                                v12_10[1] = v21_0;
                                android.database.sqlite.SQLiteDatabase v24 = v15_5;
                                Object v15_4 = v15_5.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_10, 0, 0, "rowid", "2");
                                try {
                                    if (v15_4.moveToFirst()) {
                                        int v12_13 = v15_4.getBlob(0);
                                        int v12_14 = com.google.android.gms.internal.zzfjj.zzn(v12_13, 0, v12_13.length);
                                        Long v13_14 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_14.zza(v12_14);
                                        } catch (java.io.IOException v0_6) {
                                            int v6_0 = v15_4;
                                            v4_48.zzawy().zzazd().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1), v0_6);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_16.zzapa == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_16.zzapa.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_16.zzjgi;
                                                    String v4_5 = new com.google.android.gms.internal.zzcmb[v2_16.zzapa.size()];
                                                    v3_9.zzjlp = v4_5;
                                                    String v4_0 = 0;
                                                    com.google.android.gms.internal.zzcgo v5_0 = 0;
                                                    int v6_1 = 0;
                                                    while (v4_0 < v2_16.zzapa.size()) {
                                                        if (!this.zzawv().zzan(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                            Boolean v7_54 = this.zzawv().zzao(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name);
                                                            if (v7_54 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_17];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v13_60;
                                                                }
                                                                int v12_57 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh;
                                                                Long v13_61 = v12_57.length;
                                                                String v14_3 = 0;
                                                                Object v15_1 = 0;
                                                                com.google.android.gms.internal.zzfjj v16_0 = 0;
                                                                while (v14_3 < v13_61) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_16 = v12_57[v14_3];
                                                                    if (!"_c".equals(v10_16.name)) {
                                                                        if ("_r".equals(v10_16.name)) {
                                                                            v10_16.zzjll = Long.valueOf(1);
                                                                            v16_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_16.zzjll = Long.valueOf(1);
                                                                        v15_1 = 1;
                                                                    }
                                                                    v14_3++;
                                                                    int v11 = 1;
                                                                }
                                                                if ((v15_1 == null) && (v7_54 != null)) {
                                                                    this.zzawy().zzazj().zzj("Marking event as conversion", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_66 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_40 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_40.name = "_c";
                                                                    v9_40.zzjll = Long.valueOf(1);
                                                                    v8_66[(v8_66.length - 1)] = v9_40;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_66;
                                                                }
                                                                if (v16_0 == null) {
                                                                    this.zzawy().zzazj().zzj("Marking event as real-time", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_74 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_52 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_52.name = "_r";
                                                                    v9_52.zzjll = Long.valueOf(1);
                                                                    v8_74[(v8_74.length - 1)] = v9_52;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_74;
                                                                }
                                                                if (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 0, 0, 1).zzizb <= ((long) this.zzjew.zzix(v2_16.zzjgi.zzcn))) {
                                                                    v6_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgw v8_6 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    Object v9_3 = 0;
                                                                    while (v9_3 < v8_6.zzjlh.length) {
                                                                        if (!"_r".equals(v8_6.zzjlh[v9_3].name)) {
                                                                            v9_3++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_11 = new com.google.android.gms.internal.zzcmc[(v8_6.zzjlh.length - 1)];
                                                                            if (v9_3 > null) {
                                                                                System.arraycopy(v8_6.zzjlh, 0, v10_11, 0, v9_3);
                                                                            }
                                                                            if (v9_3 < v10_11.length) {
                                                                                System.arraycopy(v8_6.zzjlh, (v9_3 + 1), v10_11, v9_3, (v10_11.length - v9_3));
                                                                            }
                                                                            v8_6.zzjlh = v10_11;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.zzjz(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) && ((v7_54 != null) && (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 1, 0, 0).zziyz > ((long) this.zzjew.zzb(v2_16.zzjgi.zzcn, com.google.android.gms.internal.zzchc.zzjaq))))) {
                                                                    this.zzawy().zzazf().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                    Boolean v7_8 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v8_13 = v7_8.zzjlh;
                                                                    com.google.android.gms.internal.zzcmc[] v10_14 = 0;
                                                                    int v11_12 = 0;
                                                                    int v12_5 = 0;
                                                                    while (v10_14 < v8_13.length) {
                                                                        Long v13_2 = v8_13[v10_14];
                                                                        if (!"_c".equals(v13_2.name)) {
                                                                            if ("_err".equals(v13_2.name)) {
                                                                                v11_12 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_5 = v13_2;
                                                                        }
                                                                        v10_14++;
                                                                    }
                                                                    if ((v11_12 == 0) || (v12_5 == 0)) {
                                                                        if (v12_5 == 0) {
                                                                            this.zzawy().zzazd().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                        } else {
                                                                            v12_5.name = "_err";
                                                                            v12_5.zzjll = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcgw v8_15 = v7_8.zzjlh;
                                                                        com.google.android.gms.internal.zzcmc[] v10_15 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_15[0] = v12_5;
                                                                        v7_8.zzjlh = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.zza(v8_15, v10_15));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                if (com.google.android.gms.internal.zzclq.zzkn(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                                }
                                                            }
                                                            com.google.android.gms.internal.zzcgw v8_18 = (v5_0 + 1);
                                                            v3_9.zzjlp[v5_0] = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                            v5_0 = v8_18;
                                                        } else {
                                                            Boolean v7_21;
                                                            this.zzawy().zzazf().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn), this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                            if (this.zzawu().zzkl(v2_16.zzjgi.zzcn)) {
                                                                v7_21 = 1;
                                                            } else {
                                                                if (!this.zzawu().zzkm(v2_16.zzjgi.zzcn)) {
                                                                    v7_21 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_21 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name))) {
                                                                this.zzawu().zza(v2_16.zzjgi.zzcn, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_17 = 0;
                                                    }
                                                    if (v5_0 < v2_16.zzapa.size()) {
                                                        v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.zzjlp, v5_0));
                                                    }
                                                    int v12_32;
                                                    long v19_2;
                                                    Object v15_7;
                                                    v3_9.zzjmi = this.zza(v2_16.zzjgi.zzcn, v2_16.zzjgi.zzjlq, v3_9.zzjlp);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.zzjac.get()).booleanValue()) || (!"1".equals(this.zzjew.zzawv().zzam(v2_16.zzjgi.zzcn, "measurement.event_sampling_enabled")))) {
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                    } else {
                                                        String v4_23 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcgo v5_14 = new com.google.android.gms.internal.zzcmb[v3_9.zzjlp.length];
                                                        Boolean v7_42 = this.zzawu().zzbaz();
                                                        com.google.android.gms.internal.zzcgw v8_43 = v3_9.zzjlp;
                                                        Object v9_27 = v8_43.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_18 = 0;
                                                        int v11_17 = 0;
                                                        while (v10_18 < v9_27) {
                                                            Object v15_14;
                                                            com.google.android.gms.internal.zzcho v20_2;
                                                            String v1_37;
                                                            long v19_3;
                                                            com.google.android.gms.internal.zzfjj v16_5;
                                                            int v12_34 = v8_43[v10_18];
                                                            if (!v12_34.name.equals("_ep")) {
                                                                String v1_27;
                                                                v16_5 = v8_43;
                                                                if (com.google.android.gms.internal.zzcim.zza(v12_34, "_dbg", Long.valueOf(1))) {
                                                                    v1_27 = 1;
                                                                } else {
                                                                    v1_27 = this.zzawv().zzap(v2_16.zzjgi.zzcn, v12_34.name);
                                                                }
                                                                if (v1_27 > null) {
                                                                    com.google.android.gms.internal.zzcgw v8_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_34.name));
                                                                    if (v8_51 == null) {
                                                                        v8_51 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v12_34.name);
                                                                        if (v8_51 == null) {
                                                                            this.zzawy().zzazf().zze("Event being bundled has no eventAggregate. appId, eventName", v2_16.zzjgi.zzcn, v12_34.name);
                                                                            v8_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v8_51(v2_16.zzjgi.zzcn, v12_34.name, 1, 1, v12_34.zzjli.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_16;
                                                                    this.zzawu();
                                                                    Long v13_34 = ((Long) com.google.android.gms.internal.zzclq.zza(v12_34, "_eid"));
                                                                    if (v13_34 == null) {
                                                                        v14_16 = 0;
                                                                    } else {
                                                                        v14_16 = 1;
                                                                    }
                                                                    String v14_17 = Boolean.valueOf(v14_16);
                                                                    if (v1_27 != 1) {
                                                                        if (v7_42.nextInt(v1_27) != 0) {
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            if (Math.abs((v12_34.zzjli.longValue() - v8_51.zzizn)) < 86400000) {
                                                                                v15_14 = v2_16;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v4_23.put(v12_34.name, v8_51.zza(v13_34, 0, 0));
                                                                                    v10_18++;
                                                                                    v2_16 = v15_14;
                                                                                    v8_43 = v16_5;
                                                                                    v6_1 = v19_3;
                                                                                    v7_42 = v20_2;
                                                                                }
                                                                            } else {
                                                                                this.zzawu();
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                                this.zzawu();
                                                                                v15_14 = v2_16;
                                                                                String v1_31 = ((long) v1_27);
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v1_31));
                                                                                int v6_33 = (v11_17 + 1);
                                                                                v5_14[v11_17] = v12_34;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v8_51 = v8_51.zza(0, Long.valueOf(v1_31), Boolean.valueOf(1));
                                                                                }
                                                                                v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                                v11_17 = v6_33;
                                                                            }
                                                                        } else {
                                                                            this.zzawu();
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            int v6_34 = ((long) v1_27);
                                                                            v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v6_34));
                                                                            String v1_36 = (v11_17 + 1);
                                                                            v5_14[v11_17] = v12_34;
                                                                            if (v14_17.booleanValue()) {
                                                                                v8_51 = v8_51.zza(0, Long.valueOf(v6_34), 0);
                                                                            }
                                                                            v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                            v11_17 = v1_36;
                                                                            v15_14 = v2_16;
                                                                            long v21 = 1;
                                                                        }
                                                                    } else {
                                                                        v1_37 = (v11_17 + 1);
                                                                        v5_14[v11_17] = v12_34;
                                                                        if ((!v14_17.booleanValue()) || ((v8_51.zzizo == null) && ((v8_51.zzizp == null) && (v8_51.zzizq == null)))) {
                                                                            v11_17 = v1_37;
                                                                            v15_14 = v2_16;
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                        } else {
                                                                            v4_23.put(v12_34.name, v8_51.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzawy().zzazf().zze("Sample rate must be positive. event, rate", v12_34.name, Integer.valueOf(v1_27));
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.zza(v12_34, "_en"));
                                                                String v14_20 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_20 == null) {
                                                                    v14_20 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v13_46);
                                                                    v4_23.put(v13_46, v14_20);
                                                                }
                                                                if (v14_20.zzizo != null) {
                                                                    v16_5 = v8_43;
                                                                } else {
                                                                    if (v14_20.zzizp.longValue() > 1) {
                                                                        this.zzawu();
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", v14_20.zzizp);
                                                                    }
                                                                    if ((v14_20.zzizq == null) || (!v14_20.zzizq.booleanValue())) {
                                                                        v16_5 = v8_43;
                                                                    } else {
                                                                        this.zzawu();
                                                                        v16_5 = v8_43;
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            }
                                                        }
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                        if (v11_17 < v3_9.zzjlp.length) {
                                                            v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v5_14, v11_17));
                                                        }
                                                        String v1_11 = v4_23.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzaws().zza(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjls = Long.valueOf(nan);
                                                    v3_9.zzjlt = Long.valueOf(-0.0);
                                                    String v1_16 = 0;
                                                    while (v1_16 < v3_9.zzjlp.length) {
                                                        com.google.android.gms.internal.zzcgw v2_10 = v3_9.zzjlp[v1_16];
                                                        if (v2_10.zzjli.longValue() < v3_9.zzjls.longValue()) {
                                                            v3_9.zzjls = v2_10.zzjli;
                                                        }
                                                        if (v2_10.zzjli.longValue() > v3_9.zzjlt.longValue()) {
                                                            v3_9.zzjlt = v2_10.zzjli;
                                                        }
                                                        v1_16++;
                                                    }
                                                    String v1_17 = v15_7;
                                                    com.google.android.gms.internal.zzcgw v2_7 = v1_17.zzjgi.zzcn;
                                                    String v4_25 = this.zzaws().zzjb(v2_7);
                                                    if (v4_25 != null) {
                                                        if (v3_9.zzjlp.length > 0) {
                                                            Object v9_29;
                                                            com.google.android.gms.internal.zzcgo v5_17 = v4_25.zzaxf();
                                                            if (v5_17 == 0) {
                                                                v9_29 = v12_32;
                                                            } else {
                                                                v9_29 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlv = v9_29;
                                                            Object v9_30 = v4_25.zzaxe();
                                                            if (v9_30 != 0) {
                                                                v5_17 = v9_30;
                                                            } else {
                                                            }
                                                            if (v5_17 != 0) {
                                                                v12_32 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlu = v12_32;
                                                            v4_25.zzaxo();
                                                            v3_9.zzjmg = Integer.valueOf(((int) v4_25.zzaxl()));
                                                            v4_25.zzal(v3_9.zzjls.longValue());
                                                            v4_25.zzam(v3_9.zzjlt.longValue());
                                                            v3_9.zzixw = v4_25.zzaxw();
                                                            this.zzaws().zza(v4_25);
                                                        }
                                                    } else {
                                                        this.zzawy().zzazd().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                    }
                                                    if (v3_9.zzjlp.length > 0) {
                                                        String v4_32;
                                                        String v4_31 = this.zzawv().zzjs(v1_17.zzjgi.zzcn);
                                                        if (v4_31 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_17.zzjgi.zzixs)) {
                                                                this.zzawy().zzazf().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                            } else {
                                                                v4_32 = Long.valueOf(-1);
                                                                v3_9.zzjmn = v4_32;
                                                            }
                                                        } else {
                                                            if (v4_31.zzjkw != null) {
                                                                v4_32 = v4_31.zzjkw;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzaws().zza(v3_9, v19_2);
                                                    }
                                                    this.zzaws().zzah(v1_17.zzjgj);
                                                    String v1_19 = this.zzaws();
                                                    android.database.sqlite.SQLiteException v3_15 = v1_19.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgo v5_33 = new String[2];
                                                        v5_33[0] = v2_7;
                                                        v5_33[1] = v2_7;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_33);
                                                    } catch (java.io.IOException v0_11) {
                                                        v1_19.zzawy().zzazd().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v2_7), v0_11);
                                                    }
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_4.moveToNext()) {
                                            v4_48.zzawy().zzazf().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        }
                                        com.google.android.gms.internal.zzcgo v5_2;
                                        com.google.android.gms.internal.zzfjj v16_4;
                                        v15_4.close();
                                        v2_16.zzb(v13_14);
                                        if (v5_34 == -1) {
                                            v5_2 = "app_id = ? and metadata_fingerprint = ?";
                                            int v12_19 = new String[2];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21_0;
                                            v16_4 = v12_19;
                                        } else {
                                            Long v13_15 = new String[3];
                                            v13_15[0] = v3_1;
                                            v13_15[1] = v21_0;
                                            v13_15[2] = String.valueOf(v5_34);
                                            v5_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_4 = v13_15;
                                        }
                                        v6_0 = v15_4;
                                        com.google.android.gms.internal.zzcgo v5_4 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_2, v16_4, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_4.moveToFirst()) {
                                                do {
                                                    int v6_6 = v5_4.getLong(0);
                                                    com.google.android.gms.internal.zzcgw v8_35 = v5_4.getBlob(3);
                                                    com.google.android.gms.internal.zzcgw v8_36 = com.google.android.gms.internal.zzfjj.zzn(v8_35, 0, v8_35.length);
                                                    int v12_26 = new com.google.android.gms.internal.zzcmb();
                                                    v12_26.zza(v8_36);
                                                    v12_26.name = v5_4.getString(1);
                                                    v12_26.zzjli = Long.valueOf(v5_4.getLong(2));
                                                    if (v2_16.zza(v6_6, v12_26)) {
                                                    } else {
                                                        if (v5_4 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_4.moveToNext());
                                                if (v5_4 == null) {
                                                }
                                            } else {
                                                v4_48.zzawy().zzazf().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                                if (v5_4 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            String v1_1 = v0_9;
                                            v6_0 = v5_4;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_1 = v3_1;
                                            v6_0 = v5_4;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_48.zzawy().zzazd().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v12_1), v3_0);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_4.close();
                                    } else {
                                        v4_48.zzawy().zzazd().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        if (v15_4 == null) {
                                        } else {
                                            v15_4.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v6_0 = v15_4;
                                    v1_1 = v0_7;
                                } catch (java.io.IOException v0_2) {
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_2) {
                                    v12_1 = v3_1;
                                    v6_0 = v15_4;
                                }
                                v12_1 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v12_1 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_36;
                            if (v5_34 == -1) {
                                v12_36 = new String[1];
                                v12_36[0] = String.valueOf(p41);
                            } else {
                                v12_36 = new String[2];
                                v12_36[0] = String.valueOf(v5_34);
                                v12_36[1] = String.valueOf(p41);
                            }
                        } catch (java.io.IOException v0_2) {
                            v6_0 = 0;
                            v12_1 = 0;
                        }
                        Long v13_43;
                        if (v5_34 == -1) {
                            v13_43 = "";
                        } else {
                            v13_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v3_18.toString(), v12_36);
                        if (v3_1.moveToFirst()) {
                            v12_1 = v3_1.getString(0);
                            try {
                                Long v13_3 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_1;
                                v21_0 = v13_3;
                            } catch (java.io.IOException v0_2) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v6_0 = v3_1;
                    v12_1 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v6_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v6_0 = 0;
                v12_1 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            String v1_2 = v0_4;
            this.zzaws().endTransaction();
            throw v1_2;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p8)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            try {
                android.database.Cursor v0_3 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
                v0_3.moveToFirst();
            } catch (Throwable v8_1) {
                if (v0_3 != null) {
                    v0_3.close();
                }
                throw v8_1;
            }
            if (v0_3 != null) {
                v0_3.close();
            }
        }
        com.google.android.gms.internal.zzcgo.zza(this.zzjbp.zzawy(), p8, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", 0);
        return;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p8)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            com.google.android.gms.internal.zzcgo v0_8 = p8.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_8.moveToFirst();
                v0_8.close();
            } catch (Throwable v8_1) {
                v0_8.close();
                throw v8_1;
            }
        }
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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", com.google.android.gms.internal.zzcgo.zzayo());
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "conditional_properties", "CREATE TABLE IF NOT EXISTS conditional_properties ( app_id TEXT NOT NULL, origin TEXT NOT NULL, name TEXT NOT NULL, value BLOB NOT NULL, creation_timestamp INTEGER NOT NULL, active INTEGER NOT NULL, trigger_event_name TEXT, trigger_timeout INTEGER NOT NULL, timed_out_event BLOB,triggered_event BLOB, triggered_timestamp INTEGER NOT NULL, time_to_live INTEGER NOT NULL, expired_event BLOB, PRIMARY KEY (app_id, name)) ;", "app_id,origin,name,value,active,trigger_event_name,trigger_timeout,creation_timestamp,timed_out_event,triggered_event,triggered_timestamp,time_to_live,expired_event", 0);
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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", com.google.android.gms.internal.zzcgo.zzayp());
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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.internal.zzcgo.zzayq());
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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", com.google.android.gms.internal.zzcgo.zzayr());
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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);
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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", com.google.android.gms.internal.zzcgo.zzays());
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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);
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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);
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "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);
        com.google.android.gms.internal.zzcgo.zza(this.zzizc.zzawy(), p8, "app2", "CREATE TABLE IF NOT EXISTS app2 ( app_id TEXT NOT NULL, first_open_count INTEGER NOT NULL, PRIMARY KEY (app_id));", "app_id,first_open_count", com.google.android.gms.internal.zzcgo.zzayt());
        return;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_11 = p6.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_11.moveToFirst();
                v0_11.close();
            } catch (android.database.sqlite.SQLiteException v6_5) {
                v0_11.close();
                throw v6_5;
            }
        }
        String v0_8;
        if (this.zza(p6, "hits2")) {
            String v0_4 = com.google.android.gms.internal.zzaqm.zzb(p6, "hits2");
            int v2_1 = 0;
            while (v2_1 < 4) {
                String v3_2 = new String[] {"hit_id", "hit_string", "hit_time", "hit_url"})[v2_1];
                if (v0_4.remove(v3_2)) {
                    v2_1++;
                } else {
                    String v0_10;
                    String v1_7 = String.valueOf(v3_2);
                    if (v1_7.length() == 0) {
                        v0_10 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_10 = "Database hits2 is missing required column: ".concat(v1_7);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_10);
                }
            }
            String v1_5 = (v0_4.remove("hit_app_id") ^ 1);
            if (!v0_4.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            } else {
                if (v1_5 != null) {
                    v0_8 = "ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER";
                    p6.execSQL(v0_8);
                }
            }
        } else {
            v0_8 = com.google.android.gms.internal.zzaql.zzxx();
        }
        if (this.zza(p6, "properties")) {
            com.google.android.gms.internal.zzaqm.zza(p6);
            return;
        } else {
            p6.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.internal.zzaqm.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static java.util.Set zzb(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        java.util.HashSet v0_1 = new java.util.HashSet();
        Throwable v2_3 = new StringBuilder((String.valueOf(p4).length() + 22));
        v2_3.append("SELECT * FROM ");
        v2_3.append(p4);
        v2_3.append(" LIMIT 0");
        android.database.Cursor v3_1 = p3.rawQuery(v2_3.toString(), 0);
        try {
            Throwable v4_3 = v3_1.getColumnNames();
            int v1_1 = 0;
        } catch (Throwable v4_4) {
            v3_1.close();
            throw v4_4;
        }
        while (v1_1 < v4_3.length) {
            v0_1.add(v4_3[v1_1]);
            v1_1++;
        }
        v3_1.close();
        return v0_1;
    }

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


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

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


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

Method com.rudraum.rudraumThumb2Thief.dao.PhoneLocationDao.getWritableDatabase() calling method android.database.sqlite.SQLiteDatabase.openDatabase()


    private android.database.sqlite.SQLiteDatabase getWritableDatabase()
    {
        try {
            String v1_3 = new java.io.File(this.context.getFilesDir(), "phone_location.db");
        } catch (String v1_1) {
            v1_1.printStackTrace();
            return 0;
        }
        if (!v1_3.exists()) {
            com.rudraum.rudraumThumb2Thief.utils.FileUtils.saveFileWithStream(v1_3, this.context.getAssets().open("phone_location.db"));
        }
        return android.database.sqlite.SQLiteDatabase.openDatabase(v1_3.getAbsolutePath(), 0, 0);
    }

Method com.rudraum.rudraumThumb2Thief.AntiVirus.AntiVirusDao.checkViruss() calling method android.database.sqlite.SQLiteDatabase.openDatabase()


    public static String checkViruss(java.io.File[] p5)
    {
        String v1_3 = new StringBuilder();
        v1_3.append(android.os.Environment.getExternalStorageDirectory());
        v1_3.append(java.io.File.separator);
        v1_3.append("SMOM");
        v1_3.append(java.io.File.separator);
        v1_3.append("db/antivirus.db");
        String v1_2 = 0;
        if (!new java.io.File(v1_3.toString()).exists()) {
            System.out.println("The database does not exist");
            return 0;
        } else {
            System.out.println("The database exists");
            String v0_6 = new StringBuilder();
            v0_6.append(android.os.Environment.getExternalStorageDirectory());
            v0_6.append(java.io.File.separator);
            v0_6.append("SMOM");
            v0_6.append(java.io.File.separator);
            v0_6.append("db/antivirus.db");
            String v0_8 = android.database.sqlite.SQLiteDatabase.openDatabase(v0_6.toString(), 0, 1);
            boolean v2_10 = new String[1];
            v2_10[0] = String.valueOf(p5);
            java.io.PrintStream v5_3 = v0_8.rawQuery("select  desc from datable where md5=?", v2_10);
            while (v5_3.moveToNext()) {
                v1_2 = v5_3.getString(0);
            }
            v5_3.close();
            v0_8.close();
            return v1_2;
        }
    }

Method com.rudraum.rudraumThumb2Thief.AntiVirus.AntiVirusDao.checkVirus() calling method android.database.sqlite.SQLiteDatabase.openDatabase()


    public static String checkVirus(String p5)
    {
        String v1_3 = new StringBuilder();
        v1_3.append(android.os.Environment.getExternalStorageDirectory());
        v1_3.append(java.io.File.separator);
        v1_3.append("SMOM");
        v1_3.append(java.io.File.separator);
        v1_3.append("db/antivirus.db");
        String v1_2 = 0;
        if (!new java.io.File(v1_3.toString()).exists()) {
            System.out.println("The database does not exist");
            return 0;
        } else {
            System.out.println("The database exists");
            String v0_6 = new StringBuilder();
            v0_6.append(android.os.Environment.getExternalStorageDirectory());
            v0_6.append(java.io.File.separator);
            v0_6.append("SMOM");
            v0_6.append(java.io.File.separator);
            v0_6.append("db/antivirus.db");
            String v0_8 = android.database.sqlite.SQLiteDatabase.openDatabase(v0_6.toString(), 0, 1);
            boolean v2_10 = new String[1];
            v2_10[0] = p5;
            java.io.PrintStream v5_2 = v0_8.rawQuery("select  desc from datable where md5=?", v2_10);
            while (v5_2.moveToNext()) {
                v1_2 = v5_2.getString(0);
            }
            v5_2.close();
            v0_8.close();
            return v1_2;
        }
    }

Method com.google.android.gms.internal.zzchi.zzb() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    private final boolean zzb(int p17, byte[] p18)
    {
        this.zzve();
        Long v2_7 = 0;
        if (!this.zzjbo) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p17));
            v3_1.put("entry", p18);
            Long v4_4 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_4) {
                int v7 = 0;
                try {
                    int v9 = this.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            if ((v12 != 0) && (v12.moveToFirst())) {
                                v10_0 = v12.getLong(v2_7);
                            }
                            if (v10_0 >= 100000) {
                                this.zzawy().zzazd().log("Data loss, local db full");
                                long v13_2 = ((100000 - v10_0) + 1);
                                String[] v11 = new String[1];
                                v11[v2_7] = Long.toString(v13_2);
                                Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                if (v10_3 != v13_2) {
                                    this.zzawy().zzazd().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                                }
                            }
                            v9.insertOrThrow("messages", 0, v3_1);
                            v9.setTransactionSuccessful();
                            v9.endTransaction();
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            return 1;
                        } else {
                            this.zzjbo = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_7;
                        }
                        v7 = v9;
                        try {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v7 != 0) {
                                    if (v7.inTransaction()) {
                                        v7.endTransaction();
                                    }
                                }
                                this.zzawy().zzazd().zzj("Error writing entry to local database", com.google.android.gms.internal.zzcho v0_0);
                                this.zzjbo = 1;
                            } else {
                                if (!(v0_0 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v6));
                                    v6 += 20;
                                }
                            }
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v7 == 0) {
                                v5++;
                                v2_7 = 0;
                                v4_4 = 5;
                            } else {
                                v7.close();
                            }
                        } catch (com.google.android.gms.internal.zzcho v0_2) {
                            v9 = v7;
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            throw v0_2;
                        }
                    } catch (com.google.android.gms.internal.zzcho v0_3) {
                        this.zzawy().zzazd().zzj("Error writing entry to local database", v0_3);
                        this.zzjbo = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.internal.zzcho v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.zzcho v0_2) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_3) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_2) {
                    v12 = v7;
                }
            }
            this.zzawy().zzazf().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzczh.zza() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()

Couldn't retrieve source code

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


    public final boolean zza(com.google.android.gms.internal.zzcme p8, boolean p9)
    {
        this.zzve();
        this.zzxf();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8);
        com.google.android.gms.common.internal.zzbq.zzgm(p8.zzcn);
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8.zzjlt);
        this.zzayh();
        int v0_0 = this.zzws().currentTimeMillis();
        if ((p8.zzjlt.longValue() < (v0_0 - com.google.android.gms.internal.zzcgn.zzayb())) || (p8.zzjlt.longValue() > (com.google.android.gms.internal.zzcgn.zzayb() + v0_0))) {
            this.zzawy().zzazf().zzd("Storing bundle outside of the max uploading time span. appId, now, timestamp", com.google.android.gms.internal.zzchm.zzjk(p8.zzcn), Long.valueOf(v0_0), p8.zzjlt);
        }
        try {
            String v1_3 = new byte[p8.zzho()];
            Object v2_9 = com.google.android.gms.internal.zzfjk.zzo(v1_3, 0, v1_3.length);
            p8.zza(v2_9);
            v2_9.zzcwt();
            String v1_4 = this.zzawu().zzq(v1_3);
            this.zzawy().zzazj().zzj("Saving bundle, size", Integer.valueOf(v1_4.length));
            Object v2_14 = new android.content.ContentValues();
            v2_14.put("app_id", p8.zzcn);
            v2_14.put("bundle_end_timestamp", p8.zzjlt);
            v2_14.put("data", v1_4);
            v2_14.put("has_realtime", Integer.valueOf(p9));
            try {
                if (this.getWritableDatabase().insert("queue", 0, v2_14) != -1) {
                    return 1;
                } else {
                    this.zzawy().zzazd().zzj("Failed to insert bundle (got -1). appId", com.google.android.gms.internal.zzchm.zzjk(p8.zzcn));
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcho v9_4) {
                String v1_7 = this.zzawy().zzazd();
                Object v2_15 = "Error storing bundle. appId";
                v1_7.zze(v2_15, com.google.android.gms.internal.zzchm.zzjk(p8.zzcn), v9_4);
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcho v9_4) {
            v1_7 = this.zzawy().zzazd();
            v2_15 = "Data loss. Failed to serialize bundle. appId";
            v1_7.zze(v2_15, com.google.android.gms.internal.zzchm.zzjk(p8.zzcn), v9_4);
            return 0;
        }
    }

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


    public final boolean zza(com.google.android.gms.internal.zzcgv p9, long p10, boolean p12)
    {
        this.zzve();
        this.zzxf();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p9);
        com.google.android.gms.common.internal.zzbq.zzgm(p9.mAppId);
        long v0_6 = new com.google.android.gms.internal.zzcmb();
        v0_6.zzjlj = Long.valueOf(p9.zzizi);
        byte[] v1_2 = new com.google.android.gms.internal.zzcmc[p9.zzizj.size()];
        v0_6.zzjlh = v1_2;
        byte[] v1_4 = p9.zzizj.iterator();
        String v3_2 = 0;
        while (v1_4.hasNext()) {
            Long v4_1 = ((String) v1_4.next());
            Integer v5_1 = new com.google.android.gms.internal.zzcmc();
            int v7 = (v3_2 + 1);
            v0_6.zzjlh[v3_2] = v5_1;
            v5_1.name = v4_1;
            this.zzawu().zza(v5_1, p9.zzizj.get(v4_1));
            v3_2 = v7;
        }
        try {
            byte[] v1_6 = new byte[v0_6.zzho()];
            String v3_4 = com.google.android.gms.internal.zzfjk.zzo(v1_6, 0, v1_6.length);
            v0_6.zza(v3_4);
            v3_4.zzcwt();
            this.zzawy().zzazj().zze("Saving event, name, data size", this.zzawt().zzjh(p9.mName), Integer.valueOf(v1_6.length));
            long v0_4 = new android.content.ContentValues();
            v0_4.put("app_id", p9.mAppId);
            v0_4.put("name", p9.mName);
            v0_4.put("timestamp", Long.valueOf(p9.zzfij));
            v0_4.put("metadata_fingerprint", Long.valueOf(p10));
            v0_4.put("data", v1_6);
            v0_4.put("realtime", Integer.valueOf(p12));
            try {
                if (this.getWritableDatabase().insert("raw_events", 0, v0_4) != -1) {
                    return 1;
                } else {
                    this.zzawy().zzazd().zzj("Failed to insert raw event (got -1). appId", com.google.android.gms.internal.zzchm.zzjk(p9.mAppId));
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcho v10_5) {
                String v11_3 = this.zzawy().zzazd();
                Object v12_3 = "Error storing raw event. appId";
                v11_3.zze(v12_3, com.google.android.gms.internal.zzchm.zzjk(p9.mAppId), v10_5);
                return 0;
            }
        } catch (com.google.android.gms.internal.zzcho v10_5) {
            v11_3 = this.zzawy().zzazd();
            v12_3 = "Data loss. Failed to serialize event params/data. appId";
            v11_3.zze(v12_3, com.google.android.gms.internal.zzchm.zzjk(p9.mAppId), v10_5);
            return 0;
        }
    }

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


    public final void zzc(com.google.android.gms.internal.zzarq p8)
    {
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8);
        com.google.android.gms.analytics.zzj.zzve();
        this.zzxf();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p8);
        Long v0_3 = new android.net.Uri$Builder();
        android.database.sqlite.SQLiteDatabase v1_0 = p8.zzjh().entrySet().iterator();
        while (v1_0.hasNext()) {
            String v2_1 = ((java.util.Map$Entry) v1_0.next());
            int v3_1 = ((String) v2_1.getKey());
            if ((!"ht".equals(v3_1)) && ((!"qt".equals(v3_1)) && (!"AppUID".equals(v3_1)))) {
                v0_3.appendQueryParameter(v3_1, ((String) v2_1.getValue()));
            }
        }
        Long v0_1 = v0_3.build().getEncodedQuery();
        if (v0_1 == null) {
            v0_1 = "";
        }
        if (v0_1.length() <= 8192) {
            android.database.sqlite.SQLiteDatabase v1_5 = ((Integer) com.google.android.gms.internal.zzarl.zzdwb.get()).intValue();
            String v2_6 = this.zzxp();
            if (v2_6 > ((long) (v1_5 - 1))) {
                android.database.sqlite.SQLiteDatabase v1_6 = this.zzn(((v2_6 - ((long) v1_5)) + 1));
                this.zzd("Store full, deleting hits to make room, count", Integer.valueOf(v1_6.size()));
                this.zzs(v1_6);
            }
            int v3_10;
            android.database.sqlite.SQLiteDatabase v1_7 = this.getWritableDatabase();
            String v2_11 = new android.content.ContentValues();
            v2_11.put("hit_string", v0_1);
            v2_11.put("hit_time", Long.valueOf(p8.zzzi()));
            v2_11.put("hit_app_id", Integer.valueOf(p8.zzzg()));
            if (!p8.zzzk()) {
                v3_10 = com.google.android.gms.internal.zzard.zzyx();
            } else {
                v3_10 = com.google.android.gms.internal.zzard.zzyw();
            }
            v2_11.put("hit_url", v3_10);
            try {
                Long v0_8 = v1_7.insert("hits2", 0, v2_11);
            } catch (String v8_2) {
                this.zze("Error storing a hit", v8_2);
                return;
            }
            if (v0_8 != -1) {
                this.zzb("Hit saved to database. db-id, hit", Long.valueOf(v0_8), p8);
                return;
            } else {
                this.zzdy("Failed to insert a hit (got -1)");
                return;
            }
        } else {
            this.zzwt().zza(p8, "Hit length exceeds the maximum allowed size");
            return;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.QuickBlackListProvider.insertValues() calling method android.database.sqlite.SQLiteDatabase.insert()


    private android.net.Uri insertValues(android.net.Uri p6, android.content.ContentValues p7)
    {
        StringBuilder v0_4 = this.dbHelper.getWritableDatabase().insert("quick_black_list", 0, p7);
        if (v0_4 <= 0) {
            StringBuilder v0_2 = new StringBuilder();
            v0_2.append("Failed to insert row into ");
            v0_2.append(p6);
            throw new android.database.SQLException(v0_2.toString());
        } else {
            String v6_3 = android.content.ContentUris.withAppendedId(com.rudraum.rudraumThumb2Thief.db.QuickBlackListTable.CONTENT_URI, v0_4);
            this.getContext().getContentResolver().notifyChange(v6_3, 0);
            return v6_3;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.LogProvider.insertLogList() calling method android.database.sqlite.SQLiteDatabase.insert()


    private android.net.Uri insertLogList(android.net.Uri p6, android.content.ContentValues p7)
    {
        StringBuilder v0_4 = this.dbHelper.getWritableDatabase().insert("log", 0, p7);
        if (v0_4 <= 0) {
            StringBuilder v0_2 = new StringBuilder();
            v0_2.append("Failed to insert row into ");
            v0_2.append(p6);
            throw new android.database.SQLException(v0_2.toString());
        } else {
            String v6_3 = android.content.ContentUris.withAppendedId(com.rudraum.rudraumThumb2Thief.db.LogTable.CONTENT_URI, v0_4);
            this.getContext().getContentResolver().notifyChange(v6_3, 0);
            return v6_3;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.BlackListProvider.insertBlackList() calling method android.database.sqlite.SQLiteDatabase.insert()


    private android.net.Uri insertBlackList(android.net.Uri p6, android.content.ContentValues p7)
    {
        StringBuilder v0_4 = this.dbHelper.getWritableDatabase().insert("black_list", 0, p7);
        if (v0_4 <= 0) {
            StringBuilder v0_2 = new StringBuilder();
            v0_2.append("Failed to insert row into ");
            v0_2.append(p6);
            throw new android.database.SQLException(v0_2.toString());
        } else {
            String v6_3 = android.content.ContentUris.withAppendedId(com.rudraum.rudraumThumb2Thief.db.BlackListTable.CONTENT_URI, v0_4);
            this.getContext().getContentResolver().notifyChange(v6_3, 0);
            return v6_3;
        }
    }

Method com.google.android.gms.tagmanager.zzec.zzb() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzata.currentTimeMillis();
        if (v0_3 > (this.zzkhf + 86400000)) {
            this.zzkhf = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzlk("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_5;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzata.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzbfl() != 0) {
                    v1_5 = 0;
                } else {
                    v1_5 = 1;
                }
                this.zzkhd.zzbu(v1_5);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzbfl() - this.zzkhg) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzep(v0_7);
            android.content.ContentValues v1_7 = v0_8.size();
            StringBuilder v3_2 = new StringBuilder(51);
            v3_2.append("Store full, deleting ");
            v3_2.append(v1_7);
            v3_2.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdj.v(v3_2.toString());
            android.content.ContentValues v1_10 = new String[0];
            this.zze(((String[]) v0_8.toArray(v1_10)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzlk("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_12 = new android.content.ContentValues();
            v1_12.put("hit_time", Long.valueOf(p9));
            v1_12.put("hit_url", p11);
            v1_12.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_12);
                this.zzkhd.zzbu(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdj.zzcu("Error storing hit");
            }
        }
        return;
    }

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


    private final void zzc(java.util.List p6, long p7)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.zzlk("Error opening database for writeEntryToDatabase.");
        if (v0_1 != null) {
            java.util.Iterator v6_1 = p6.iterator();
            while (v6_1.hasNext()) {
                String v1_1 = ((com.google.android.gms.tagmanager.zzay) v6_1.next());
                android.content.ContentValues v2_1 = new android.content.ContentValues();
                v2_1.put("expires", Long.valueOf(p7));
                v2_1.put("key", v1_1.zzbhb);
                v2_1.put("value", v1_1.zzkfd);
                v0_1.insert("datalayer", 0, v2_1);
            }
            return;
        } else {
            return;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.serviceDatabase.insertNote() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static String insertNote(android.content.Context p4, String p5, String p6, String p7)
    {
        try {
            com.rudraum.rudraumThumb2Thief.db.serviceDatabase v1_1 = new com.rudraum.rudraumThumb2Thief.db.serviceDatabase(p4);
            Exception v4_3 = v1_1.getWritableDatabase();
            android.content.ContentValues v2_1 = new android.content.ContentValues();
            v2_1.put("time", p5);
            v2_1.put("date", p6);
            v2_1.put("duration", p7);
            String v0_1 = String.valueOf(v4_3.insert("ServiceDatabase_Data", 0, v2_1));
            v1_1.close();
        } catch (Exception v4_2) {
            v4_2.printStackTrace();
        }
        return v0_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.addIntruder() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void addIntruder(com.rudraum.rudraumThumb2Thief.Models.IntruderModel p5)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("date", p5.getDate());
        v1_1.put("image", p5.getImage());
        v0.insert("offlineemail", 0, v1_1);
        v0.close();
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.addIntruder() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void addIntruder(com.rudraum.rudraumThumb2Thief.Models.IntruderModel p5)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("date", p5.getDate());
        v1_1.put("image", p5.getImage());
        v0.insert("intruder", 0, v1_1);
        v0.close();
        return;
    }

Method com.rudraum.rudraumThumb2Thief.addication.DataBaseHelper.insertNote() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static String insertNote(android.content.Context p4, String p5, String p6, String p7)
    {
        try {
            com.rudraum.rudraumThumb2Thief.addication.DataBaseHelper v1_1 = new com.rudraum.rudraumThumb2Thief.addication.DataBaseHelper(p4);
            Exception v4_3 = v1_1.getWritableDatabase();
            android.content.ContentValues v2_1 = new android.content.ContentValues();
            v2_1.put("time", p5);
            v2_1.put("date", p6);
            v2_1.put("duration", p7);
            String v0_1 = String.valueOf(v4_3.insert("Antiadication_data_thumb2thief", 0, v2_1));
            v1_1.close();
        } catch (Exception v4_2) {
            v4_2.printStackTrace();
        }
        return v0_1;
    }

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


    private static void zza(com.google.android.gms.internal.zzchm p6, android.database.sqlite.SQLiteDatabase p7, String p8, String p9, String[] p10)
    {
        if (p6 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            java.util.Set v0 = com.google.android.gms.internal.zzcgo.zzb(p7, p8);
            String v9_12 = p9.split(",");
            int v2 = 0;
            int v3 = 0;
            while (v3 < v9_12.length) {
                String v4 = v9_12[v3];
                if (!v0.remove(v4)) {
                    String v9_11 = new StringBuilder(((String.valueOf(p8).length() + 35) + String.valueOf(v4).length()));
                    v9_11.append("Table ");
                    v9_11.append(p8);
                    v9_11.append(" is missing required column: ");
                    v9_11.append(v4);
                    throw new android.database.sqlite.SQLiteException(v9_11.toString());
                } else {
                    v3++;
                }
            }
            if (p10 != null) {
                while (v2 < p10.length) {
                    if (!v0.remove(p10[v2])) {
                        p7.execSQL(p10[(v2 + 1)]);
                    }
                    v2 += 2;
                }
            }
            if (!v0.isEmpty()) {
                p6.zzazf().zze("Table has extra columns. table, columns", p8, android.text.TextUtils.join(", ", v0));
            }
            return;
        }
    }

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


    static void zza(com.google.android.gms.internal.zzchm p1, android.database.sqlite.SQLiteDatabase p2, String p3, String p4, String p5, String[] p6)
    {
        if (p1 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            if (!com.google.android.gms.internal.zzcgo.zza(p1, p2, p3)) {
                p2.execSQL(p4);
            }
            try {
                com.google.android.gms.internal.zzcgo.zza(p1, p2, p3, p5, p6);
                return;
            } catch (android.database.sqlite.SQLiteException v2_1) {
                p1.zzazd().zzj("Failed to verify columns on table that was just created", p3);
                throw v2_1;
            }
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.serviceDatabase.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS ServiceDatabase_Data");
        this.onCreate(p1);
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.serviceDatabase.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE ServiceDatabase_Data(id INTEGER PRIMARY KEY AUTOINCREMENT,time TEXT,date TEXT,duration TEXT)");
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS offlineemail");
        this.onCreate(p1);
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE offlineemail(id INTEGER PRIMARY KEY,date TEXT,image TEXT)");
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.deleteAllIntruder() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void deleteAllIntruder()
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.execSQL("delete from offlineemail");
        v0.close();
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS intruder");
        this.onCreate(p1);
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE intruder(id INTEGER PRIMARY KEY,date TEXT,image TEXT)");
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.deleteAllIntruder() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void deleteAllIntruder()
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.execSQL("delete from intruder");
        v0.close();
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.DBHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        switch ((p2 + 1)) {
            case 3:
                p1.execSQL("CREATE TABLE black_list (        _id               INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,        normalized_number TEXT,        display_number    TEXT,        display_name      TEXT,        begin_with        INTEGER,        enabled           INTEGER,        data1             TEXT,        data2             TEXT,        data3             TEXT);");
                p1.execSQL("CREATE TABLE log (    _id           INTEGER PRIMARY KEY ASC AUTOINCREMENT NOT NULL,    caller_id         TEXT,    display_number    TEXT,    display_name      TEXT,    date              NUMERIC,    block_origin      TEXT,    data1             TEXT,    data2             TEXT,    data3             TEXT);");
                p1.execSQL("CREATE INDEX i_bl_normalized_number ON black_list (normalized_number);");
                p1.execSQL("CREATE INDEX i_bl_block ON black_list (normalized_number, begin_with, enabled);");
                p1.execSQL("CREATE INDEX i_bl_begin_with ON black_list (begin_with);");
                p1.execSQL("CREATE INDEX i_log_date ON log (date);");
            case 4:
                p1.execSQL("CREATE TABLE quick_black_list (    _id               INTEGER,    caller_id         TEXT,    data1             TEXT,    data2             TEXT,    data3             TEXT);");
                p1.execSQL("CREATE INDEX i_qbl_id ON quick_black_list (_id);");
                p1.execSQL("CREATE INDEX i_qbl_caller_id ON quick_black_list (caller_id);");
                break;
            default:
        }
        return;
    }

Method com.rudraum.rudraumThumb2Thief.addication.DataBaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS Antiadication_data_thumb2thief");
        this.onCreate(p1);
        return;
    }

Method com.rudraum.rudraumThumb2Thief.addication.DataBaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE Antiadication_data_thumb2thief(id INTEGER PRIMARY KEY AUTOINCREMENT,time TEXT,date TEXT,duration TEXT)");
        return;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzee.zza("gtm_hits", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM gtm_hits WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((!v0_5.remove("hit_id")) || ((!v0_5.remove("hit_url")) || ((!v0_5.remove("hit_time")) || (!v0_5.remove("hit_first_send_time"))))) {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            } else {
                if (!v0_5.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                } else {
                    return;
                }
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzec.zzbfn());
            return;
        }
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzax.zza("datalayer", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((!v0_5.remove("key")) || ((!v0_5.remove("value")) || ((!v0_5.remove("ID")) || (!v0_5.remove("expires"))))) {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            } else {
                if (!v0_5.isEmpty()) {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                } else {
                    return;
                }
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzat.zzbep());
            return;
        }
    }

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


    public final void onUpgrade(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        if (p3 > 1) {
            StringBuilder v0_2 = new StringBuilder(40);
            v0_2.append("We don\'t handle upgrading to ");
            v0_2.append(p4);
            throw new AssertionError(v0_2.toString());
        } else {
            com.google.android.gms.internal.zzead.zzc(p2, "serverCache");
            p2.execSQL("CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);");
            com.google.android.gms.internal.zzead.zzc(p2, "complete");
            p2.execSQL("CREATE TABLE trackedKeys (id INTEGER, key TEXT);");
            p2.execSQL("CREATE TABLE trackedQueries (id INTEGER PRIMARY KEY, path TEXT, queryParams TEXT, lastUse INTEGER, complete INTEGER, active INTEGER);");
            return;
        }
    }

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


    public final 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.zzead.zzc() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static void zzc(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        String v3_3;
        String v3_1 = String.valueOf(p3);
        if (v3_1.length() == 0) {
            v3_3 = new String("DROP TABLE IF EXISTS ");
        } else {
            v3_3 = "DROP TABLE IF EXISTS ".concat(v3_1);
        }
        p2.execSQL(v3_3);
        return;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p10)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_15 = p10.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_15.moveToFirst();
                v0_15.close();
            } catch (Throwable v10_1) {
                v0_15.close();
                throw v10_1;
            }
        }
        if (com.google.android.gms.internal.zzczj.zza("gtm_hit_unique_ids", p10)) {
            com.google.android.gms.internal.zzczj.zza(p10, "gtm_hit_unique_ids", java.util.Arrays.asList(new String[] {"hit_unique_id"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzczh.zzbfn());
        }
        if (com.google.android.gms.internal.zzczj.zza("gtm_hits", p10)) {
            String v3 = "hit_time";
            String v5 = "hit_method";
            String v7 = "hit_headers";
            com.google.android.gms.internal.zzczj.zza(p10, "gtm_hits", java.util.Arrays.asList(new String[] {"hit_id", "hit_body"})));
        } else {
            p10.execSQL(com.google.android.gms.internal.zzczh.zzbhd());
        }
        p10.execSQL(com.google.android.gms.internal.zzczh.zzbhe());
        p10.execSQL(com.google.android.gms.internal.zzczh.zzbhf());
        return;
    }

Method com.google.android.gms.internal.zzcim.zzg() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private final boolean zzg(String p40, long p41)
    {
        this.zzaws().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcgw v2_16 = new com.google.android.gms.internal.zzcim$zza(this, 0);
            String v4_48 = this.zzaws();
            com.google.android.gms.internal.zzcgo v5_34 = this.zzjgb;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_16);
            v4_48.zzve();
            v4_48.zzxf();
            com.google.android.gms.internal.zzcmc[] v10_17 = 0;
            try {
                int v22;
                long v21_0;
                Object v15_5 = v4_48.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_28;
                        if (v5_34 == -1) {
                            v12_28 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_34);
                            v12_28 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_34 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        String v14_10 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v3_11);
                        v14_10.append(" order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v14_10.toString(), v12_28);
                        if (v3_1.moveToFirst()) {
                            Long v13_22 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21_0 = v13_22;
                            v3_1 = 0;
                            try {
                                int v12_10 = new String[2];
                                v12_10[0] = v3_1;
                                v12_10[1] = v21_0;
                                android.database.sqlite.SQLiteDatabase v24 = v15_5;
                                Object v15_4 = v15_5.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_10, 0, 0, "rowid", "2");
                                try {
                                    if (v15_4.moveToFirst()) {
                                        int v12_13 = v15_4.getBlob(0);
                                        int v12_14 = com.google.android.gms.internal.zzfjj.zzn(v12_13, 0, v12_13.length);
                                        Long v13_14 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_14.zza(v12_14);
                                        } catch (java.io.IOException v0_6) {
                                            int v6_0 = v15_4;
                                            v4_48.zzawy().zzazd().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1), v0_6);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_16.zzapa == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_16.zzapa.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_16.zzjgi;
                                                    String v4_5 = new com.google.android.gms.internal.zzcmb[v2_16.zzapa.size()];
                                                    v3_9.zzjlp = v4_5;
                                                    String v4_0 = 0;
                                                    com.google.android.gms.internal.zzcgo v5_0 = 0;
                                                    int v6_1 = 0;
                                                    while (v4_0 < v2_16.zzapa.size()) {
                                                        if (!this.zzawv().zzan(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                            Boolean v7_54 = this.zzawv().zzao(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name);
                                                            if (v7_54 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_17];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v13_60;
                                                                }
                                                                int v12_57 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh;
                                                                Long v13_61 = v12_57.length;
                                                                String v14_3 = 0;
                                                                Object v15_1 = 0;
                                                                com.google.android.gms.internal.zzfjj v16_0 = 0;
                                                                while (v14_3 < v13_61) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_16 = v12_57[v14_3];
                                                                    if (!"_c".equals(v10_16.name)) {
                                                                        if ("_r".equals(v10_16.name)) {
                                                                            v10_16.zzjll = Long.valueOf(1);
                                                                            v16_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_16.zzjll = Long.valueOf(1);
                                                                        v15_1 = 1;
                                                                    }
                                                                    v14_3++;
                                                                    int v11 = 1;
                                                                }
                                                                if ((v15_1 == null) && (v7_54 != null)) {
                                                                    this.zzawy().zzazj().zzj("Marking event as conversion", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_66 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_40 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_40.name = "_c";
                                                                    v9_40.zzjll = Long.valueOf(1);
                                                                    v8_66[(v8_66.length - 1)] = v9_40;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_66;
                                                                }
                                                                if (v16_0 == null) {
                                                                    this.zzawy().zzazj().zzj("Marking event as real-time", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_74 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_52 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_52.name = "_r";
                                                                    v9_52.zzjll = Long.valueOf(1);
                                                                    v8_74[(v8_74.length - 1)] = v9_52;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_74;
                                                                }
                                                                if (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 0, 0, 1).zzizb <= ((long) this.zzjew.zzix(v2_16.zzjgi.zzcn))) {
                                                                    v6_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgw v8_6 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    Object v9_3 = 0;
                                                                    while (v9_3 < v8_6.zzjlh.length) {
                                                                        if (!"_r".equals(v8_6.zzjlh[v9_3].name)) {
                                                                            v9_3++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_11 = new com.google.android.gms.internal.zzcmc[(v8_6.zzjlh.length - 1)];
                                                                            if (v9_3 > null) {
                                                                                System.arraycopy(v8_6.zzjlh, 0, v10_11, 0, v9_3);
                                                                            }
                                                                            if (v9_3 < v10_11.length) {
                                                                                System.arraycopy(v8_6.zzjlh, (v9_3 + 1), v10_11, v9_3, (v10_11.length - v9_3));
                                                                            }
                                                                            v8_6.zzjlh = v10_11;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.zzjz(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) && ((v7_54 != null) && (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 1, 0, 0).zziyz > ((long) this.zzjew.zzb(v2_16.zzjgi.zzcn, com.google.android.gms.internal.zzchc.zzjaq))))) {
                                                                    this.zzawy().zzazf().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                    Boolean v7_8 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v8_13 = v7_8.zzjlh;
                                                                    com.google.android.gms.internal.zzcmc[] v10_14 = 0;
                                                                    int v11_12 = 0;
                                                                    int v12_5 = 0;
                                                                    while (v10_14 < v8_13.length) {
                                                                        Long v13_2 = v8_13[v10_14];
                                                                        if (!"_c".equals(v13_2.name)) {
                                                                            if ("_err".equals(v13_2.name)) {
                                                                                v11_12 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_5 = v13_2;
                                                                        }
                                                                        v10_14++;
                                                                    }
                                                                    if ((v11_12 == 0) || (v12_5 == 0)) {
                                                                        if (v12_5 == 0) {
                                                                            this.zzawy().zzazd().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                        } else {
                                                                            v12_5.name = "_err";
                                                                            v12_5.zzjll = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcgw v8_15 = v7_8.zzjlh;
                                                                        com.google.android.gms.internal.zzcmc[] v10_15 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_15[0] = v12_5;
                                                                        v7_8.zzjlh = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.zza(v8_15, v10_15));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                if (com.google.android.gms.internal.zzclq.zzkn(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                                }
                                                            }
                                                            com.google.android.gms.internal.zzcgw v8_18 = (v5_0 + 1);
                                                            v3_9.zzjlp[v5_0] = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                            v5_0 = v8_18;
                                                        } else {
                                                            Boolean v7_21;
                                                            this.zzawy().zzazf().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn), this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                            if (this.zzawu().zzkl(v2_16.zzjgi.zzcn)) {
                                                                v7_21 = 1;
                                                            } else {
                                                                if (!this.zzawu().zzkm(v2_16.zzjgi.zzcn)) {
                                                                    v7_21 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_21 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name))) {
                                                                this.zzawu().zza(v2_16.zzjgi.zzcn, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_17 = 0;
                                                    }
                                                    if (v5_0 < v2_16.zzapa.size()) {
                                                        v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.zzjlp, v5_0));
                                                    }
                                                    int v12_32;
                                                    long v19_2;
                                                    Object v15_7;
                                                    v3_9.zzjmi = this.zza(v2_16.zzjgi.zzcn, v2_16.zzjgi.zzjlq, v3_9.zzjlp);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.zzjac.get()).booleanValue()) || (!"1".equals(this.zzjew.zzawv().zzam(v2_16.zzjgi.zzcn, "measurement.event_sampling_enabled")))) {
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                    } else {
                                                        String v4_23 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcgo v5_14 = new com.google.android.gms.internal.zzcmb[v3_9.zzjlp.length];
                                                        Boolean v7_42 = this.zzawu().zzbaz();
                                                        com.google.android.gms.internal.zzcgw v8_43 = v3_9.zzjlp;
                                                        Object v9_27 = v8_43.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_18 = 0;
                                                        int v11_17 = 0;
                                                        while (v10_18 < v9_27) {
                                                            com.google.android.gms.internal.zzcho v20_2;
                                                            String v1_37;
                                                            long v19_3;
                                                            com.google.android.gms.internal.zzfjj v16_5;
                                                            Object v15_14;
                                                            int v12_34 = v8_43[v10_18];
                                                            if (!v12_34.name.equals("_ep")) {
                                                                String v1_27;
                                                                v16_5 = v8_43;
                                                                if (com.google.android.gms.internal.zzcim.zza(v12_34, "_dbg", Long.valueOf(1))) {
                                                                    v1_27 = 1;
                                                                } else {
                                                                    v1_27 = this.zzawv().zzap(v2_16.zzjgi.zzcn, v12_34.name);
                                                                }
                                                                if (v1_27 > null) {
                                                                    com.google.android.gms.internal.zzcgw v8_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_34.name));
                                                                    if (v8_51 == null) {
                                                                        v8_51 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v12_34.name);
                                                                        if (v8_51 == null) {
                                                                            this.zzawy().zzazf().zze("Event being bundled has no eventAggregate. appId, eventName", v2_16.zzjgi.zzcn, v12_34.name);
                                                                            v8_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v8_51(v2_16.zzjgi.zzcn, v12_34.name, 1, 1, v12_34.zzjli.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_16;
                                                                    this.zzawu();
                                                                    Long v13_34 = ((Long) com.google.android.gms.internal.zzclq.zza(v12_34, "_eid"));
                                                                    if (v13_34 == null) {
                                                                        v14_16 = 0;
                                                                    } else {
                                                                        v14_16 = 1;
                                                                    }
                                                                    String v14_17 = Boolean.valueOf(v14_16);
                                                                    if (v1_27 != 1) {
                                                                        if (v7_42.nextInt(v1_27) != 0) {
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            if (Math.abs((v12_34.zzjli.longValue() - v8_51.zzizn)) < 86400000) {
                                                                                v15_14 = v2_16;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v4_23.put(v12_34.name, v8_51.zza(v13_34, 0, 0));
                                                                                    v10_18++;
                                                                                    v2_16 = v15_14;
                                                                                    v8_43 = v16_5;
                                                                                    v6_1 = v19_3;
                                                                                    v7_42 = v20_2;
                                                                                }
                                                                            } else {
                                                                                this.zzawu();
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                                this.zzawu();
                                                                                v15_14 = v2_16;
                                                                                String v1_31 = ((long) v1_27);
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v1_31));
                                                                                int v6_33 = (v11_17 + 1);
                                                                                v5_14[v11_17] = v12_34;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v8_51 = v8_51.zza(0, Long.valueOf(v1_31), Boolean.valueOf(1));
                                                                                }
                                                                                v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                                v11_17 = v6_33;
                                                                            }
                                                                        } else {
                                                                            this.zzawu();
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            int v6_34 = ((long) v1_27);
                                                                            v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v6_34));
                                                                            String v1_36 = (v11_17 + 1);
                                                                            v5_14[v11_17] = v12_34;
                                                                            if (v14_17.booleanValue()) {
                                                                                v8_51 = v8_51.zza(0, Long.valueOf(v6_34), 0);
                                                                            }
                                                                            v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                            v11_17 = v1_36;
                                                                            v15_14 = v2_16;
                                                                            long v21 = 1;
                                                                        }
                                                                    } else {
                                                                        v1_37 = (v11_17 + 1);
                                                                        v5_14[v11_17] = v12_34;
                                                                        if ((!v14_17.booleanValue()) || ((v8_51.zzizo == null) && ((v8_51.zzizp == null) && (v8_51.zzizq == null)))) {
                                                                            v11_17 = v1_37;
                                                                            v15_14 = v2_16;
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                        } else {
                                                                            v4_23.put(v12_34.name, v8_51.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzawy().zzazf().zze("Sample rate must be positive. event, rate", v12_34.name, Integer.valueOf(v1_27));
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.zza(v12_34, "_en"));
                                                                String v14_20 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_20 == null) {
                                                                    v14_20 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v13_46);
                                                                    v4_23.put(v13_46, v14_20);
                                                                }
                                                                if (v14_20.zzizo != null) {
                                                                    v16_5 = v8_43;
                                                                } else {
                                                                    if (v14_20.zzizp.longValue() > 1) {
                                                                        this.zzawu();
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", v14_20.zzizp);
                                                                    }
                                                                    if ((v14_20.zzizq == null) || (!v14_20.zzizq.booleanValue())) {
                                                                        v16_5 = v8_43;
                                                                    } else {
                                                                        this.zzawu();
                                                                        v16_5 = v8_43;
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            }
                                                        }
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                        if (v11_17 < v3_9.zzjlp.length) {
                                                            v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v5_14, v11_17));
                                                        }
                                                        String v1_11 = v4_23.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzaws().zza(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjls = Long.valueOf(nan);
                                                    v3_9.zzjlt = Long.valueOf(-0.0);
                                                    String v1_16 = 0;
                                                    while (v1_16 < v3_9.zzjlp.length) {
                                                        com.google.android.gms.internal.zzcgw v2_10 = v3_9.zzjlp[v1_16];
                                                        if (v2_10.zzjli.longValue() < v3_9.zzjls.longValue()) {
                                                            v3_9.zzjls = v2_10.zzjli;
                                                        }
                                                        if (v2_10.zzjli.longValue() > v3_9.zzjlt.longValue()) {
                                                            v3_9.zzjlt = v2_10.zzjli;
                                                        }
                                                        v1_16++;
                                                    }
                                                    String v1_17 = v15_7;
                                                    com.google.android.gms.internal.zzcgw v2_7 = v1_17.zzjgi.zzcn;
                                                    String v4_25 = this.zzaws().zzjb(v2_7);
                                                    if (v4_25 != null) {
                                                        if (v3_9.zzjlp.length > 0) {
                                                            Object v9_29;
                                                            com.google.android.gms.internal.zzcgo v5_17 = v4_25.zzaxf();
                                                            if (v5_17 == 0) {
                                                                v9_29 = v12_32;
                                                            } else {
                                                                v9_29 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlv = v9_29;
                                                            Object v9_30 = v4_25.zzaxe();
                                                            if (v9_30 != 0) {
                                                                v5_17 = v9_30;
                                                            } else {
                                                            }
                                                            if (v5_17 != 0) {
                                                                v12_32 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlu = v12_32;
                                                            v4_25.zzaxo();
                                                            v3_9.zzjmg = Integer.valueOf(((int) v4_25.zzaxl()));
                                                            v4_25.zzal(v3_9.zzjls.longValue());
                                                            v4_25.zzam(v3_9.zzjlt.longValue());
                                                            v3_9.zzixw = v4_25.zzaxw();
                                                            this.zzaws().zza(v4_25);
                                                        }
                                                    } else {
                                                        this.zzawy().zzazd().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                    }
                                                    if (v3_9.zzjlp.length > 0) {
                                                        String v4_32;
                                                        String v4_31 = this.zzawv().zzjs(v1_17.zzjgi.zzcn);
                                                        if (v4_31 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_17.zzjgi.zzixs)) {
                                                                this.zzawy().zzazf().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                            } else {
                                                                v4_32 = Long.valueOf(-1);
                                                                v3_9.zzjmn = v4_32;
                                                            }
                                                        } else {
                                                            if (v4_31.zzjkw != null) {
                                                                v4_32 = v4_31.zzjkw;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzaws().zza(v3_9, v19_2);
                                                    }
                                                    this.zzaws().zzah(v1_17.zzjgj);
                                                    String v1_19 = this.zzaws();
                                                    android.database.sqlite.SQLiteException v3_15 = v1_19.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgo v5_33 = new String[2];
                                                        v5_33[0] = v2_7;
                                                        v5_33[1] = v2_7;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_33);
                                                    } catch (java.io.IOException v0_11) {
                                                        v1_19.zzawy().zzazd().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v2_7), v0_11);
                                                    }
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_4.moveToNext()) {
                                            v4_48.zzawy().zzazf().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        }
                                        com.google.android.gms.internal.zzfjj v16_4;
                                        com.google.android.gms.internal.zzcgo v5_2;
                                        v15_4.close();
                                        v2_16.zzb(v13_14);
                                        if (v5_34 == -1) {
                                            v5_2 = "app_id = ? and metadata_fingerprint = ?";
                                            int v12_19 = new String[2];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21_0;
                                            v16_4 = v12_19;
                                        } else {
                                            Long v13_15 = new String[3];
                                            v13_15[0] = v3_1;
                                            v13_15[1] = v21_0;
                                            v13_15[2] = String.valueOf(v5_34);
                                            v5_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_4 = v13_15;
                                        }
                                        v6_0 = v15_4;
                                        com.google.android.gms.internal.zzcgo v5_4 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_2, v16_4, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_4.moveToFirst()) {
                                                do {
                                                    int v6_6 = v5_4.getLong(0);
                                                    com.google.android.gms.internal.zzcgw v8_35 = v5_4.getBlob(3);
                                                    com.google.android.gms.internal.zzcgw v8_36 = com.google.android.gms.internal.zzfjj.zzn(v8_35, 0, v8_35.length);
                                                    int v12_26 = new com.google.android.gms.internal.zzcmb();
                                                    v12_26.zza(v8_36);
                                                    v12_26.name = v5_4.getString(1);
                                                    v12_26.zzjli = Long.valueOf(v5_4.getLong(2));
                                                    if (v2_16.zza(v6_6, v12_26)) {
                                                    } else {
                                                        if (v5_4 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_4.moveToNext());
                                                if (v5_4 == null) {
                                                }
                                            } else {
                                                v4_48.zzawy().zzazf().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                                if (v5_4 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            String v1_1 = v0_9;
                                            v6_0 = v5_4;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_1 = v3_1;
                                            v6_0 = v5_4;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_48.zzawy().zzazd().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v12_1), v3_0);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_4.close();
                                    } else {
                                        v4_48.zzawy().zzazd().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        if (v15_4 == null) {
                                        } else {
                                            v15_4.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v6_0 = v15_4;
                                    v1_1 = v0_7;
                                } catch (java.io.IOException v0_2) {
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_2) {
                                    v12_1 = v3_1;
                                    v6_0 = v15_4;
                                }
                                v12_1 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v12_1 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_36;
                            if (v5_34 == -1) {
                                v12_36 = new String[1];
                                v12_36[0] = String.valueOf(p41);
                            } else {
                                v12_36 = new String[2];
                                v12_36[0] = String.valueOf(v5_34);
                                v12_36[1] = String.valueOf(p41);
                            }
                        } catch (java.io.IOException v0_2) {
                            v6_0 = 0;
                            v12_1 = 0;
                        }
                        Long v13_43;
                        if (v5_34 == -1) {
                            v13_43 = "";
                        } else {
                            v13_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v3_18.toString(), v12_36);
                        if (v3_1.moveToFirst()) {
                            v12_1 = v3_1.getString(0);
                            try {
                                Long v13_3 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_1;
                                v21_0 = v13_3;
                            } catch (java.io.IOException v0_2) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v6_0 = v3_1;
                    v12_1 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v6_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v6_0 = 0;
                v12_1 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            String v1_2 = v0_4;
            this.zzaws().endTransaction();
            throw v1_2;
        }
    }

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


    private final boolean zza(String p14, com.google.android.gms.internal.zzcha p15)
    {
        String v3_1;
        Object v0_6 = p15.zzizt.getString("currency");
        if (!"ecommerce_purchase".equals(p15.name)) {
            v3_1 = p15.zzizt.getLong("value").longValue();
        } else {
            String v3_6 = (p15.zzizt.getDouble("value").doubleValue() * 1000000.0);
            if (v3_6 == 0) {
                String v3_9 = ((double) p15.zzizt.getLong("value").longValue());
                Double.isNaN(v3_9);
                v3_6 = (v3_9 * 1000000.0);
            }
            if ((v3_6 > 9.223372036854776e+18) || (v3_6 < -9.223372036854776e+18)) {
                this.zzawy().zzazf().zze("Data lost. Currency value is too big. appId", com.google.android.gms.internal.zzchm.zzjk(p14), Double.valueOf(v3_6));
                return 0;
            } else {
                v3_1 = Math.round(v3_6);
            }
        }
        if (!android.text.TextUtils.isEmpty(v0_6)) {
            Object v0_8 = v0_6.toUpperCase(java.util.Locale.US);
            if (v0_8.matches("[A-Z]{3}")) {
                Object v0_11;
                String v1_23 = String.valueOf("_ltv_");
                Object v0_9 = String.valueOf(v0_8);
                if (v0_9.length() == 0) {
                    v0_11 = new String(v1_23);
                } else {
                    v0_11 = v1_23.concat(v0_9);
                }
                Object v0_1;
                int v9_1 = v0_11;
                Object v0_13 = this.zzaws().zzag(p14, v9_1);
                if ((v0_13 != null) && ((v0_13.mValue instanceof Long))) {
                    Object v2_5 = new com.google.android.gms.internal.zzclp;
                    v2_5(p14, p15.zziyf, v9_1, this.zzata.currentTimeMillis(), Long.valueOf((((Long) v0_13.mValue).longValue() + v3_1)));
                    v0_1 = v2_5;
                } else {
                    Object v0_2 = this.zzaws();
                    String v1_4 = (this.zzjew.zzb(p14, com.google.android.gms.internal.zzchc.zzjbh) - 1);
                    com.google.android.gms.common.internal.zzbq.zzgm(p14);
                    v0_2.zzve();
                    v0_2.zzxf();
                    try {
                        com.google.android.gms.internal.zzclq v6_1 = v0_2.getWritableDatabase();
                        int v8_1 = new String[3];
                        v8_1[0] = p14;
                        v8_1[1] = p14;
                        v8_1[2] = String.valueOf(v1_4);
                        v6_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);", v8_1);
                    } catch (String v1_6) {
                        v0_2.zzawy().zzazd().zze("Error pruning currencies. appId", com.google.android.gms.internal.zzchm.zzjk(p14), v1_6);
                    }
                    v0_1 = new com.google.android.gms.internal.zzclp;
                    v0_1(p14, p15.zziyf, v9_1, this.zzata.currentTimeMillis(), Long.valueOf(v3_1));
                }
                if (!this.zzaws().zza(v0_1)) {
                    this.zzawy().zzazd().zzd("Too many unique user properties are set. Ignoring user property. appId", com.google.android.gms.internal.zzchm.zzjk(p14), this.zzawt().zzjj(v0_1.mName), v0_1.mValue);
                    this.zzawu().zza(p14, 9, 0, 0, 0);
                }
            }
        }
        return 1;
    }

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


    public final void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_11 = p6.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_11.moveToFirst();
                v0_11.close();
            } catch (android.database.sqlite.SQLiteException v6_5) {
                v0_11.close();
                throw v6_5;
            }
        }
        String v0_8;
        if (this.zza(p6, "hits2")) {
            String v0_4 = com.google.android.gms.internal.zzaqm.zzb(p6, "hits2");
            int v2_1 = 0;
            while (v2_1 < 4) {
                String v3_2 = new String[] {"hit_id", "hit_string", "hit_time", "hit_url"})[v2_1];
                if (v0_4.remove(v3_2)) {
                    v2_1++;
                } else {
                    String v0_10;
                    String v1_7 = String.valueOf(v3_2);
                    if (v1_7.length() == 0) {
                        v0_10 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_10 = "Database hits2 is missing required column: ".concat(v1_7);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_10);
                }
            }
            String v1_5 = (v0_4.remove("hit_app_id") ^ 1);
            if (!v0_4.isEmpty()) {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            } else {
                if (v1_5 != null) {
                    v0_8 = "ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER";
                    p6.execSQL(v0_8);
                }
            }
        } else {
            v0_8 = com.google.android.gms.internal.zzaql.zzxx();
        }
        if (this.zza(p6, "properties")) {
            com.google.android.gms.internal.zzaqm.zza(p6);
            return;
        } else {
            p6.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.internal.zzchi.zzeb() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final java.util.List zzeb(int p19)
    {
        this.zzve();
        if (!this.zzjbo) {
            String v3_2 = new java.util.ArrayList();
            if (this.getContext().getDatabasePath("google_app_measurement_local.db").exists()) {
                int v4_0 = 5;
                int v6 = 0;
                int v7 = 5;
                while (v6 < v4_0) {
                    try {
                        int v15_0 = this.getWritableDatabase();
                    } catch (int v0_28) {
                        int v4_1 = 0;
                        int v9_0 = 0;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_1 != 0) {
                            v4_1.close();
                        }
                        throw v0_28;
                    } catch (int v0_25) {
                        v4_1 = 0;
                        v9_0 = 0;
                        this.zzawy().zzazd().zzj("Error reading entries from local database", v0_25);
                        this.zzjbo = 1;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_1 == 0) {
                            v6++;
                            v4_0 = 5;
                        } else {
                            v4_1.close();
                        }
                        v3_2.add(int v0_7);
                        try {
                            while (v9_0.moveToNext()) {
                                String v10_0 = v9_0.getLong(0);
                                int v0_0 = v9_0.getInt(1);
                                String v13_0 = v9_0.getBlob(2);
                                if (v0_0 != 0) {
                                    if (v0_0 != 1) {
                                        if (v0_0 != 2) {
                                            this.zzawy().zzazd().log("Unknown record type in local database");
                                        } else {
                                            String v12_2 = android.os.Parcel.obtain();
                                            try {
                                                v12_2.unmarshall(v13_0, 0, v13_0.length);
                                                v12_2.setDataPosition(0);
                                                v0_7 = ((com.google.android.gms.internal.zzcgl) com.google.android.gms.internal.zzcgl.CREATOR.createFromParcel(v12_2));
                                            } catch (int v0_11) {
                                                v12_2.recycle();
                                                throw v0_11;
                                            }
                                            v12_2.recycle();
                                            if (v0_7 != 0) {
                                            }
                                        }
                                    } else {
                                        String v12_3 = android.os.Parcel.obtain();
                                        try {
                                            v12_3.unmarshall(v13_0, 0, v13_0.length);
                                            v12_3.setDataPosition(0);
                                            v0_7 = ((com.google.android.gms.internal.zzcln) com.google.android.gms.internal.zzcln.CREATOR.createFromParcel(v12_3));
                                        } catch (int v0_17) {
                                            v12_3.recycle();
                                            throw v0_17;
                                        }
                                        v12_3.recycle();
                                        if (v0_7 != 0) {
                                        }
                                    }
                                } else {
                                    String v12_4 = android.os.Parcel.obtain();
                                    try {
                                        v12_4.unmarshall(v13_0, 0, v13_0.length);
                                        v12_4.setDataPosition(0);
                                        v0_7 = ((com.google.android.gms.internal.zzcha) com.google.android.gms.internal.zzcha.CREATOR.createFromParcel(v12_4));
                                    } catch (int v0_23) {
                                        v12_4.recycle();
                                        throw v0_23;
                                    }
                                    v12_4.recycle();
                                    if (v0_7 != 0) {
                                    }
                                }
                            }
                        } catch (int v0_25) {
                        } catch (int v0_24) {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v4_1 != 0) {
                                    if (v4_1.inTransaction()) {
                                        v4_1.endTransaction();
                                    }
                                }
                                this.zzawy().zzazd().zzj("Error reading entries from local database", v0_24);
                                this.zzjbo = 1;
                            } else {
                                if (!(v0_24 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                }
                            }
                            if (v9_0 != 0) {
                                v9_0.close();
                            }
                            if (v4_1 == 0) {
                            }
                        }
                        String v13_5 = new String[1];
                        v13_5[0] = Long.toString(v10_0);
                        if (v4_1.delete("messages", "rowid <= ?", v13_5) < v3_2.size()) {
                            this.zzawy().zzazd().log("Fewer entries removed from local database than expected");
                        }
                        v4_1.setTransactionSuccessful();
                        v4_1.endTransaction();
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_1 != 0) {
                            v4_1.close();
                        }
                        return v3_2;
                    } catch (int v0_24) {
                        v4_1 = 0;
                        v9_0 = 0;
                    } catch (int v0_28) {
                    }
                    if (v15_0 != 0) {
                        try {
                            v15_0.beginTransaction();
                            v4_1 = v15_0;
                            try {
                                v9_0 = v15_0.query("messages", new String[] {"rowid", "type", "entry"}), 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                v10_0 = -1;
                            } catch (int v0_28) {
                                v9_0 = 0;
                            } catch (int v0_25) {
                                v9_0 = 0;
                            } catch (int v0_24) {
                                v9_0 = 0;
                            }
                        } catch (int v0_28) {
                            v4_1 = 0;
                        } catch (int v0_25) {
                            v4_1 = 0;
                        } catch (int v0_24) {
                            v4_1 = 0;
                        }
                    } else {
                        try {
                            this.zzjbo = 1;
                        } catch (int v0_28) {
                            v9_0 = 0;
                            v4_1 = v15_0;
                        } catch (int v0_25) {
                            v9_0 = 0;
                            v4_1 = v15_0;
                        } catch (int v0_24) {
                            v9_0 = 0;
                            v4_1 = v15_0;
                        }
                        if (v15_0 != 0) {
                            v15_0.close();
                        }
                        return 0;
                    }
                }
                this.zzawy().zzazf().log("Failed to read events from database in reasonable time");
                return 0;
            } else {
                return v3_2;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzchi.resetAnalyticsData() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void resetAnalyticsData()
    {
        this.zzve();
        try {
            Integer v0_4 = (this.getWritableDatabase().delete("messages", 0, 0) + 0);
        } catch (Integer v0_1) {
            this.zzawy().zzazd().zzj("Error resetting local analytics data. error", v0_1);
            return;
        }
        if (v0_4 > null) {
            this.zzawy().zzazj().zzj("Reset local analytics data. records", Integer.valueOf(v0_4));
        }
        return;
    }

Method com.google.android.gms.internal.zzchi.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final boolean zzb(int p17, byte[] p18)
    {
        this.zzve();
        Long v2_7 = 0;
        if (!this.zzjbo) {
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("type", Integer.valueOf(p17));
            v3_1.put("entry", p18);
            Long v4_4 = 5;
            int v5 = 0;
            int v6 = 5;
            while (v5 < v4_4) {
                int v7 = 0;
                try {
                    int v9 = this.getWritableDatabase();
                    try {
                        if (v9 != 0) {
                            v9.beginTransaction();
                            Long v10_0 = 0;
                            int v12 = v9.rawQuery("select count(1) from messages", 0);
                            if ((v12 != 0) && (v12.moveToFirst())) {
                                v10_0 = v12.getLong(v2_7);
                            }
                            if (v10_0 >= 100000) {
                                this.zzawy().zzazd().log("Data loss, local db full");
                                long v13_2 = ((100000 - v10_0) + 1);
                                String[] v11 = new String[1];
                                v11[v2_7] = Long.toString(v13_2);
                                Long v10_3 = ((long) v9.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", v11));
                                if (v10_3 != v13_2) {
                                    this.zzawy().zzazd().zzd("Different delete count than expected in local db. expected, received, difference", Long.valueOf(v13_2), Long.valueOf(v10_3), Long.valueOf((v13_2 - v10_3)));
                                }
                            }
                            v9.insertOrThrow("messages", 0, v3_1);
                            v9.setTransactionSuccessful();
                            v9.endTransaction();
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            return 1;
                        } else {
                            this.zzjbo = 1;
                            if (v9 != 0) {
                                v9.close();
                            }
                            return v2_7;
                        }
                        v7 = v9;
                        try {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v7 != 0) {
                                    if (v7.inTransaction()) {
                                        v7.endTransaction();
                                    }
                                }
                                this.zzawy().zzazd().zzj("Error writing entry to local database", com.google.android.gms.internal.zzcho v0_0);
                                this.zzjbo = 1;
                            } else {
                                if (!(v0_0 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v6));
                                    v6 += 20;
                                }
                            }
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v7 == 0) {
                                v5++;
                                v2_7 = 0;
                                v4_4 = 5;
                            } else {
                                v7.close();
                            }
                        } catch (com.google.android.gms.internal.zzcho v0_2) {
                            v9 = v7;
                            if (v12 != 0) {
                                v12.close();
                            }
                            if (v9 != 0) {
                                v9.close();
                            }
                            throw v0_2;
                        }
                    } catch (com.google.android.gms.internal.zzcho v0_3) {
                        this.zzawy().zzazd().zzj("Error writing entry to local database", v0_3);
                        this.zzjbo = 1;
                        if (v7 != 0) {
                            v7.close();
                        }
                        if (v9 == 0) {
                        } else {
                            v9.close();
                        }
                    } catch (com.google.android.gms.internal.zzcho v0_0) {
                        v12 = 0;
                    }
                } catch (com.google.android.gms.internal.zzcho v0_2) {
                    v9 = 0;
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_3) {
                    v9 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_0) {
                    v12 = 0;
                } catch (com.google.android.gms.internal.zzcho v0_2) {
                    v12 = v7;
                }
            }
            this.zzawy().zzazf().log("Failed to write entry to local database");
            return 0;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzjc() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final long zzjc(String p7)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p7);
        this.zzve();
        this.zzxf();
        try {
            long v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.zzcho v1_2 = String.valueOf(Math.max(0, Math.min(1000000, this.zzaxa().zzb(p7, com.google.android.gms.internal.zzchc.zzjas))));
            String[] v5_1 = new String[2];
            v5_1[0] = p7;
            v5_1[1] = v1_2;
            Object v7_1 = v0_3.delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", v5_1);
            return ((long) v7_1);
        } catch (long v0_1) {
            this.zzawy().zzazd().zze("Error deleting over the limit events. appId", com.google.android.gms.internal.zzchm.zzjk(v7_1), v0_1);
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzayh() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzayh()
    {
        this.zzve();
        this.zzxf();
        if (this.zzayn()) {
            Integer v0_11 = this.zzawz().zzjcu.get();
            String v2_1 = this.zzws().elapsedRealtime();
            if (Math.abs((v2_1 - v0_11)) > ((Long) com.google.android.gms.internal.zzchc.zzjbb.get()).longValue()) {
                this.zzawz().zzjcu.set(v2_1);
                this.zzve();
                this.zzxf();
                if (this.zzayn()) {
                    Integer v0_6 = this.getWritableDatabase();
                    com.google.android.gms.internal.zzcho v1_1 = new String[2];
                    v1_1[0] = String.valueOf(this.zzws().currentTimeMillis());
                    v1_1[1] = String.valueOf(com.google.android.gms.internal.zzcgn.zzayb());
                    Integer v0_7 = v0_6.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", v1_1);
                    if (v0_7 > null) {
                        this.zzawy().zzazj().zzj("Deleted stale rows. rowsDeleted", Integer.valueOf(v0_7));
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzai() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzai(String p7, String p8)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p7);
        com.google.android.gms.common.internal.zzbq.zzgm(p8);
        this.zzve();
        this.zzxf();
        try {
            android.database.sqlite.SQLiteException v1_1 = this.getWritableDatabase();
            com.google.android.gms.internal.zzchk v4_0 = new String[2];
            v4_0[0] = p7;
            v4_0[1] = p8;
            Object v7_1 = v1_1.delete("conditional_properties", "app_id=? and name=?", v4_0);
            return v7_1;
        } catch (android.database.sqlite.SQLiteException v1_0) {
            this.zzawy().zzazd().zzd("Error deleting conditional property", com.google.android.gms.internal.zzchm.zzjk(v7_1), this.zzawt().zzjj(p8), v1_0);
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzah() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzah(java.util.List p5)
    {
        com.google.android.gms.common.internal.zzbq.checkNotNull(p5);
        this.zzve();
        this.zzxf();
        Integer v0_4 = new StringBuilder("rowid in (");
        com.google.android.gms.internal.zzcho v1_6 = 0;
        while (v1_6 < p5.size()) {
            if (v1_6 != null) {
                v0_4.append(",");
            }
            v0_4.append(((Long) p5.get(v1_6)).longValue());
            v1_6++;
        }
        v0_4.append(")");
        Integer v0_1 = this.getWritableDatabase().delete("raw_events", v0_4.toString(), 0);
        if (v0_1 != p5.size()) {
            this.zzawy().zzazd().zze("Deleted fewer rows from raw events table than expected", Integer.valueOf(v0_1), Integer.valueOf(p5.size()));
        }
        return;
    }

Method com.google.android.gms.internal.zzcgo.zzaf() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzaf(String p6, String p7)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p6);
        com.google.android.gms.common.internal.zzbq.zzgm(p7);
        this.zzve();
        this.zzxf();
        try {
            android.database.sqlite.SQLiteException v0_3 = this.getWritableDatabase();
            com.google.android.gms.internal.zzchk v3_2 = new String[2];
            v3_2[0] = p6;
            v3_2[1] = p7;
            this.zzawy().zzazj().zzj("Deleted user attribute rows", Integer.valueOf(v0_3.delete("user_attributes", "app_id=? and name=?", v3_2)));
            return;
        } catch (android.database.sqlite.SQLiteException v0_2) {
            this.zzawy().zzazd().zzd("Error deleting user attribute. appId", com.google.android.gms.internal.zzchm.zzjk(p6), this.zzawt().zzjj(p7), v0_2);
            return;
        }
    }

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


    final void zza(String p13, com.google.android.gms.internal.zzclr[] p14)
    {
        this.zzxf();
        this.zzve();
        com.google.android.gms.common.internal.zzbq.zzgm(p13);
        com.google.android.gms.common.internal.zzbq.checkNotNull(p14);
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        v0.beginTransaction();
        try {
            this.zzxf();
            this.zzve();
            com.google.android.gms.common.internal.zzbq.zzgm(p13);
            java.util.ArrayList v1_0 = this.getWritableDatabase();
            String v5_5 = new String[1];
            int v6 = 0;
            v5_5[0] = p13;
            v1_0.delete("property_filters", "app_id=?", v5_5);
            String v5_6 = new String[1];
            v5_6[0] = p13;
            v1_0.delete("event_filters", "app_id=?", v5_6);
            java.util.ArrayList v1_1 = p14.length;
            int v2_1 = 0;
        } catch (Throwable v13_1) {
            v0.endTransaction();
            throw v13_1;
        }
        while (v2_1 < v1_1) {
            android.database.sqlite.SQLiteDatabase v3_7 = p14[v2_1];
            this.zzxf();
            this.zzve();
            com.google.android.gms.common.internal.zzbq.zzgm(p13);
            com.google.android.gms.common.internal.zzbq.checkNotNull(v3_7);
            com.google.android.gms.common.internal.zzbq.checkNotNull(v3_7.zzjju);
            com.google.android.gms.common.internal.zzbq.checkNotNull(v3_7.zzjjt);
            if (v3_7.zzjjs != null) {
                String v5_11 = v3_7.zzjjs.intValue();
                int v7_2 = v3_7.zzjju;
                int v9_2 = 0;
                while (v9_2 < v7_2.length) {
                    if (v7_2[v9_2].zzjjw != null) {
                        v9_2++;
                    } else {
                        String v5_2 = this.zzawy().zzazf();
                        int v7_0 = "Event filter with no ID. Audience definition ignored. appId, audienceId";
                        String v8_0 = com.google.android.gms.internal.zzchm.zzjk(p13);
                        android.database.sqlite.SQLiteDatabase v3_0 = v3_7.zzjjs;
                    }
                    v5_2.zze(v7_0, v8_0, v3_0);
                }
                int v7_3 = v3_7.zzjjt;
                int v9_1 = 0;
                while (v9_1 < v7_3.length) {
                    if (v7_3[v9_1].zzjjw != null) {
                        v9_1++;
                    } else {
                        v5_2 = this.zzawy().zzazf();
                        v7_0 = "Property filter with no ID. Audience definition ignored. appId, audienceId";
                        v8_0 = com.google.android.gms.internal.zzchm.zzjk(p13);
                        v3_0 = v3_7.zzjjs;
                    }
                }
                int v7_4 = v3_7.zzjju;
                int v9_3 = 0;
                while (v9_3 < v7_4.length) {
                    if (this.zza(p13, v5_11, v7_4[v9_3])) {
                        v9_3++;
                    } else {
                        int v7_5 = 0;
                    }
                    if (v7_5 != 0) {
                        android.database.sqlite.SQLiteDatabase v3_8 = v3_7.zzjjt;
                        int v9_4 = 0;
                        while (v9_4 < v3_8.length) {
                            if (this.zza(p13, v5_11, v3_8[v9_4])) {
                                v9_4++;
                            } else {
                                v7_5 = 0;
                                break;
                            }
                        }
                    }
                    if (v7_5 != 0) {
                        v2_1++;
                    } else {
                        this.zzxf();
                        this.zzve();
                        com.google.android.gms.common.internal.zzbq.zzgm(p13);
                        android.database.sqlite.SQLiteDatabase v3_9 = this.getWritableDatabase();
                        boolean v10_8 = new String[2];
                        v10_8[0] = p13;
                        v10_8[1] = String.valueOf(v5_11);
                        v3_9.delete("property_filters", "app_id=? and audience_id=?", v10_8);
                        int v9_0 = new String[2];
                        v9_0[0] = p13;
                        v9_0[1] = String.valueOf(v5_11);
                        v3_9.delete("event_filters", "app_id=? and audience_id=?", v9_0);
                    }
                }
                v7_5 = 1;
            } else {
                this.zzawy().zzazf().zzj("Audience with no ID. appId", com.google.android.gms.internal.zzchm.zzjk(p13));
            }
        }
        java.util.ArrayList v1_3 = new java.util.ArrayList();
        int v2_3 = p14.length;
        while (v6 < v2_3) {
            v1_3.add(p14[v6].zzjjs);
            v6++;
        }
        this.zze(p13, v1_3);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

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


    private final boolean zze(String p10, java.util.List p11)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p10);
        this.zzxf();
        this.zzve();
        com.google.android.gms.internal.zzcho v0_2 = this.getWritableDatabase();
        try {
            String v4_8 = new String[1];
            v4_8[0] = p10;
            String v4_0 = this.zzb("select count(1) from audience_filter_values where app_id=?", v4_8);
            String v2_3 = Math.max(0, Math.min(2000, this.zzaxa().zzb(p10, com.google.android.gms.internal.zzchc.zzjbi)));
        } catch (String v11_1) {
            this.zzawy().zzazd().zze("Database error querying filters. appId", com.google.android.gms.internal.zzchm.zzjk(p10), v11_1);
            return 0;
        }
        if (v4_0 > ((long) v2_3)) {
            String v4_2 = new java.util.ArrayList();
            int v5_0 = 0;
            while (v5_0 < p11.size()) {
                String v6_11 = ((Integer) p11.get(v5_0));
                if ((v6_11 != null) && ((v6_11 instanceof Integer))) {
                    v4_2.add(Integer.toString(v6_11.intValue()));
                    v5_0++;
                } else {
                    return 0;
                }
            }
            String v11_3 = android.text.TextUtils.join(",", v4_2);
            String v6_5 = new StringBuilder((String.valueOf(v11_3).length() + 2));
            v6_5.append("(");
            v6_5.append(v11_3);
            v6_5.append(")");
            String v11_5 = v6_5.toString();
            boolean v7_1 = new StringBuilder((String.valueOf(v11_5).length() + 140));
            v7_1.append("audience_id in (select audience_id from audience_filter_values where app_id=? and audience_id not in ");
            v7_1.append(v11_5);
            v7_1.append(" order by rowid desc limit -1 offset ?)");
            String v11_7 = v7_1.toString();
            int v5_2 = new String[2];
            v5_2[0] = p10;
            v5_2[1] = Integer.toString(v2_3);
            if (v0_2.delete("audience_filter_values", v11_7, v5_2) <= 0) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzaqo.zzwm() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzwm()
    {
        com.google.android.gms.analytics.zzj.zzve();
        this.zzxf();
        this.zzdu("Delete all hits from local store");
        try {
            String v0_7 = this.zzdum;
            com.google.android.gms.analytics.zzj.zzve();
            v0_7.zzxf();
            v0_7.getWritableDatabase().delete("hits2", 0, 0);
            String v0_0 = this.zzdum;
            com.google.android.gms.analytics.zzj.zzve();
            v0_0.zzxf();
            v0_0.getWritableDatabase().delete("properties", 0, 0);
            this.zzyf();
        } catch (String v0_3) {
            this.zzd("Failed to delete hits from store", v0_3);
        }
        this.zzyc();
        if (this.zzdup.zzxq()) {
            this.zzdu("Device service unavailable. Can\'t clear hits stored on the device service.");
        }
        return;
    }

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


    public final long zza(com.google.android.gms.internal.zzaqf p13, boolean p14)
    {
        com.google.android.gms.common.internal.zzbq.checkNotNull(p13);
        this.zzxf();
        com.google.android.gms.analytics.zzj.zzve();
        try {
            this.zzdum.beginTransaction();
            String v14_8 = this.zzdum;
            String v2_5 = p13.zzxm();
            long v4_0 = p13.zzvz();
            com.google.android.gms.common.internal.zzbq.zzgm(v4_0);
            v14_8.zzxf();
            com.google.android.gms.analytics.zzj.zzve();
            String v5_0 = v14_8.getWritableDatabase();
            android.content.ContentValues v8_1 = new String[2];
            v8_1[0] = String.valueOf(v2_5);
            String v2_4 = 1;
            v8_1[1] = v4_0;
            long v4_1 = v5_0.delete("properties", "app_uid=? AND cid<>?", v8_1);
        } catch (android.database.sqlite.SQLiteException v13_11) {
            try {
                this.zzdum.endTransaction();
            } catch (String v14_4) {
                this.zze("Failed to end transaction", v14_4);
            }
            throw v13_11;
        } catch (android.database.sqlite.SQLiteException v13_8) {
            this.zze("Failed to update Analytics property", v13_8);
            try {
                this.zzdum.endTransaction();
            } catch (android.database.sqlite.SQLiteException v13_10) {
                this.zze("Failed to end transaction", v13_10);
            }
            return -1;
        }
        if (v4_1 > 0) {
            v14_8.zza("Deleted property records", Integer.valueOf(v4_1));
        }
        long v4_4 = this.zzdum.zza(p13.zzxm(), p13.zzvz(), p13.zzxn());
        p13.zzm((1 + v4_4));
        String v14_7 = this.zzdum;
        com.google.android.gms.common.internal.zzbq.checkNotNull(p13);
        v14_7.zzxf();
        com.google.android.gms.analytics.zzj.zzve();
        android.database.sqlite.SQLiteDatabase v6_4 = v14_7.getWritableDatabase();
        String v7_2 = p13.zzjh();
        com.google.android.gms.common.internal.zzbq.checkNotNull(v7_2);
        android.content.ContentValues v8_3 = new android.net.Uri$Builder();
        String v7_4 = v7_2.entrySet().iterator();
        while (v7_4.hasNext()) {
            long v9_1 = ((java.util.Map$Entry) v7_4.next());
            v8_3.appendQueryParameter(((String) v9_1.getKey()), ((String) v9_1.getValue()));
        }
        String v7_6 = v8_3.build().getEncodedQuery();
        if (v7_6 == null) {
            v7_6 = "";
        }
        android.content.ContentValues v8_5 = new android.content.ContentValues();
        v8_5.put("app_uid", Long.valueOf(p13.zzxm()));
        v8_5.put("cid", p13.zzvz());
        v8_5.put("tid", p13.zzxn());
        if (!p13.zzxo()) {
            v2_4 = 0;
        } else {
        }
        v8_5.put("adid", Integer.valueOf(v2_4));
        v8_5.put("hits_count", Long.valueOf(p13.zzxp()));
        v8_5.put("params", v7_6);
        try {
            if (v6_4.insertWithOnConflict("properties", 0, v8_5, 5) == -1) {
                v14_7.zzdy("Failed to insert/update a property (got -1)");
            }
        } catch (android.database.sqlite.SQLiteException v13_3) {
            v14_7.zze("Error storing a property", v13_3);
        }
        this.zzdum.setTransactionSuccessful();
        try {
            this.zzdum.endTransaction();
        } catch (android.database.sqlite.SQLiteException v13_7) {
            this.zze("Failed to end transaction", v13_7);
        }
        return v4_4;
    }

Method com.google.android.gms.internal.zzaql.zzxu() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzxu()
    {
        com.google.android.gms.analytics.zzj.zzve();
        this.zzxf();
        if (this.zzduj.zzu(86400000)) {
            this.zzduj.start();
            this.zzdu("Deleting stale hits (if any)");
            int v0_1 = this.getWritableDatabase();
            String[] v6_1 = new String[1];
            v6_1[0] = Long.toString((this.zzws().currentTimeMillis() - 1.280618154e-314));
            int v0_3 = v0_1.delete("hits2", "hit_time < ?", v6_1);
            this.zza("Deleted stale hits, count", Integer.valueOf(v0_3));
            return v0_3;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzaql.zzs() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzs(java.util.List p9)
    {
        com.google.android.gms.common.internal.zzbq.checkNotNull(p9);
        com.google.android.gms.analytics.zzj.zzve();
        this.zzxf();
        if (!p9.isEmpty()) {
            String v0_5 = new StringBuilder("hit_id");
            v0_5.append(" in (");
            int v1_0 = 0;
            while (v1_0 < p9.size()) {
                String v2_6 = ((Long) p9.get(v1_0));
                if ((v2_6 == null) || (v2_6.longValue() == 0)) {
                    throw new android.database.sqlite.SQLiteException("Invalid hit id");
                } else {
                    if (v1_0 > 0) {
                        v0_5.append(",");
                    }
                    v0_5.append(v2_6);
                    v1_0++;
                }
            }
            v0_5.append(")");
            String v0_0 = v0_5.toString();
            try {
                int v1_2 = this.getWritableDatabase();
                this.zza("Deleting dispatched hits. count", Integer.valueOf(p9.size()));
                int v1_3 = v1_2.delete("hits2", v0_0, 0);
            } catch (Integer v9_3) {
                this.zze("Error deleting hits", v9_3);
                throw v9_3;
            }
            if (v1_3 != p9.size()) {
                this.zzb("Deleted fewer hits then expected", Integer.valueOf(p9.size()), Integer.valueOf(v1_3), v0_0);
            }
            return;
        } else {
            return;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.QuickBlackListProvider.deleteBySelection() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int deleteBySelection(android.net.Uri p3, String p4, String[] p5)
    {
        int v4_1 = this.dbHelper.getWritableDatabase().delete("quick_black_list", p4, p5);
        if (v4_1 > 0) {
            this.getContext().getContentResolver().notifyChange(p3, 0);
        }
        return v4_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.QuickBlackListProvider.deleteByID() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int deleteByID(android.net.Uri p7)
    {
        int v0_2 = this.dbHelper.getWritableDatabase();
        String[] v5_1 = new String[1];
        v5_1[0] = Long.toString(android.content.ContentUris.parseId(p7));
        int v0_1 = v0_2.delete("quick_black_list", "_id=?", v5_1);
        if (v0_1 > 0) {
            this.getContext().getContentResolver().notifyChange(p7, 0);
        }
        return v0_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.LogProvider.deleteBySelection() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int deleteBySelection(android.net.Uri p3, String p4, String[] p5)
    {
        int v4_1 = this.dbHelper.getWritableDatabase().delete("log", p4, p5);
        if (v4_1 > 0) {
            this.getContext().getContentResolver().notifyChange(p3, 0);
        }
        return v4_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.LogProvider.deleteByID() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int deleteByID(android.net.Uri p7)
    {
        int v0_2 = this.dbHelper.getWritableDatabase();
        String[] v5_1 = new String[1];
        v5_1[0] = Long.toString(android.content.ContentUris.parseId(p7));
        int v0_1 = v0_2.delete("log", "_id=?", v5_1);
        if (v0_1 > 0) {
            this.getContext().getContentResolver().notifyChange(p7, 0);
        }
        return v0_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.BlackListProvider.deleteBySelection() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int deleteBySelection(android.net.Uri p3, String p4, String[] p5)
    {
        int v4_1 = this.dbHelper.getWritableDatabase().delete("black_list", p4, p5);
        if (v4_1 > 0) {
            this.getContext().getContentResolver().notifyChange(p3, 0);
        }
        return v4_1;
    }

Method com.rudraum.rudraumThumb2Thief.db.BlackListProvider.deleteByID() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int deleteByID(android.net.Uri p7)
    {
        int v0_2 = this.dbHelper.getWritableDatabase();
        String[] v5_1 = new String[1];
        v5_1[0] = Long.toString(android.content.ContentUris.parseId(p7));
        int v0_1 = v0_2.delete("black_list", "_id=?", v5_1);
        if (v0_1 > 0) {
            this.getContext().getContentResolver().notifyChange(p7, 0);
        }
        return v0_1;
    }

Method com.google.android.gms.tagmanager.zzec.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzb(long p9, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzata.currentTimeMillis();
        if (v0_3 > (this.zzkhf + 86400000)) {
            this.zzkhf = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzlk("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_5;
                String[] v7 = new String[1];
                v7[0] = Long.toString((this.zzata.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v7);
                if (this.zzbfl() != 0) {
                    v1_5 = 0;
                } else {
                    v1_5 = 1;
                }
                this.zzkhd.zzbu(v1_5);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzbfl() - this.zzkhg) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzep(v0_7);
            android.content.ContentValues v1_7 = v0_8.size();
            StringBuilder v3_2 = new StringBuilder(51);
            v3_2.append("Store full, deleting ");
            v3_2.append(v1_7);
            v3_2.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdj.v(v3_2.toString());
            android.content.ContentValues v1_10 = new String[0];
            this.zze(((String[]) v0_8.toArray(v1_10)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzlk("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_12 = new android.content.ContentValues();
            v1_12.put("hit_time", Long.valueOf(p9));
            v1_12.put("hit_url", p11);
            v1_12.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_12);
                this.zzkhd.zzbu(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdj.zzcu("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzec.zze() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zze(String[] p8)
    {
        if ((p8 != null) && (p8.length != 0)) {
            int v0_3 = this.zzlk("Error opening database for deleteHits.");
            if (v0_3 != 0) {
                int v2 = 1;
                String v3_1 = new Object[1];
                v3_1[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p8.length, "?"));
                try {
                    v0_3.delete("gtm_hits", String.format("HIT_ID in (%s)", v3_1), p8);
                } catch (android.database.sqlite.SQLiteException) {
                    com.google.android.gms.tagmanager.zzdj.zzcu("Error deleting hits");
                }
                if (this.zzbfl() != 0) {
                    v2 = 0;
                } else {
                }
                this.zzkhd.zzbu(v2);
                return;
            } else {
                return;
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzat.zzlj() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zzlj(String p8)
    {
        String v0_2 = this.zzlk("Error opening database for clearKeysWithPrefix.");
        if (v0_2 != null) {
            try {
                String[] v3_1 = new String[2];
                v3_1[0] = p8;
                v3_1[1] = String.valueOf(p8).concat(".%");
                String v0_1 = v0_2.delete("datalayer", "key = ? OR key LIKE ?", v3_1);
                StringBuilder v2_1 = new StringBuilder(25);
                v2_1.append("Cleared ");
                v2_1.append(v0_1);
                v2_1.append(" items");
                com.google.android.gms.tagmanager.zzdj.v(v2_1.toString());
                this.zzbeo();
                return;
            } catch (String v8_4) {
                this.zzbeo();
                throw v8_4;
            } catch (String v0_5) {
                String v0_6 = String.valueOf(v0_5);
                StringBuilder v2_5 = new StringBuilder(((String.valueOf(p8).length() + 44) + String.valueOf(v0_6).length()));
                v2_5.append("Error deleting entries with key prefix: ");
                v2_5.append(p8);
                v2_5.append(" (");
                v2_5.append(v0_6);
                v2_5.append(").");
                com.google.android.gms.tagmanager.zzdj.zzcu(v2_5.toString());
                this.zzbeo();
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzbh() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zzbh(long p6)
    {
        StringBuilder v0_3 = this.zzlk("Error opening database for deleteOlderThan.");
        if (v0_3 != null) {
            try {
                String[] v3_1 = new String[1];
                v3_1[0] = Long.toString(p6);
                String v6_2 = v0_3.delete("datalayer", "expires <= ?", v3_1);
                StringBuilder v0_2 = new StringBuilder(33);
                v0_2.append("Deleted ");
                v0_2.append(v6_2);
                v0_2.append(" expired items");
                com.google.android.gms.tagmanager.zzdj.v(v0_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdj.zzcu("Error deleting old entries.");
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            long v0_1 = this.zzata.currentTimeMillis();
            this.zzbh(v0_1);
            String v3_0 = ((this.zzben() - this.zzkex) + p11.size());
        } catch (Throwable v11_1) {
            this.zzbeo();
            throw v11_1;
        } catch (Throwable v11_2) {
            throw v11_2;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzek(v3_0);
            String v3_1 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_1);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdj.zzct(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.zzlk("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        this.zzc(p11, (v0_1 + p12));
        this.zzbeo();
        return;
    }

Method com.google.android.gms.internal.zzeaa.zzbte() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzbte()
    {
        this.zzbtf();
        com.google.android.gms.internal.zzejc v0_3 = System.currentTimeMillis();
        Object[] v2_4 = this.zzmlq.delete("writes", 0, 0);
        Long v5_0 = (System.currentTimeMillis() - v0_3);
        if (this.zzmlr.zzbzl()) {
            com.google.android.gms.internal.zzejc v0_2 = this.zzmlr;
            Object[] v3_1 = new Object[2];
            v3_1[0] = Integer.valueOf(v2_4);
            v3_1[1] = Long.valueOf(v5_0);
            Object[] v2_2 = new Object[0];
            v0_2.zzb(String.format("Deleted %d (all) write(s) in %dms", v3_1), 0, v2_2);
        }
        return;
    }

Method com.google.android.gms.internal.zzeaa.zzbm() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzbm(long p6)
    {
        this.zzbtf();
        String v6_1 = String.valueOf(p6);
        android.database.sqlite.SQLiteDatabase v0_1 = this.zzmlq;
        String[] v3 = new String[1];
        v3[0] = v6_1;
        v0_1.delete("trackedQueries", "id = ?", v3);
        android.database.sqlite.SQLiteDatabase v0_0 = this.zzmlq;
        String[] v2_0 = new String[1];
        v2_0[0] = v6_1;
        v0_0.delete("trackedKeys", "id = ?", v2_0);
        return;
    }

Method com.google.android.gms.internal.zzeaa.zzbl() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzbl(long p10)
    {
        this.zzbtf();
        com.google.android.gms.internal.zzejc v0_2 = System.currentTimeMillis();
        Integer v2_2 = this.zzmlq;
        Object[] v6_2 = new String[1];
        v6_2[0] = String.valueOf(p10);
        Integer v2_0 = v2_2.delete("writes", "id = ?", v6_2);
        long v3_1 = (System.currentTimeMillis() - v0_2);
        if (this.zzmlr.zzbzl()) {
            com.google.android.gms.internal.zzejc v0_3 = this.zzmlr;
            Object[] v6_1 = new Object[3];
            v6_1[0] = Integer.valueOf(v2_0);
            v6_1[1] = Long.valueOf(p10);
            v6_1[2] = Long.valueOf(v3_1);
            Object[] v11_1 = new Object[0];
            v0_3.zzb(String.format("Deleted %d write(s) with writeId %d in %dms", v6_1), 0, v11_1);
        }
        return;
    }

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


    public final void zza(com.google.android.gms.internal.zzedk p17, com.google.android.gms.internal.zzeha p18)
    {
        if (p18.zzbxs()) {
            void v16_1 = this.zzbtf();
            long v9 = System.currentTimeMillis();
            String v0_1 = this.zza(p17, new String[] {"rowid", "path"}));
            com.google.android.gms.internal.zzehm v12 = new com.google.android.gms.internal.zzehm(0);
            com.google.android.gms.internal.zzejc v4_4 = new com.google.android.gms.internal.zzehm(0);
            while (v0_1.moveToNext()) {
                StringBuilder v13_5;
                String v2_2;
                Object[] v1_2;
                Object[] v1_1 = v0_1.getLong(0);
                int v3_2 = new com.google.android.gms.internal.zzedk(v0_1.getString(1));
                if (p17.zzi(v3_2)) {
                    Object[] v6_2 = com.google.android.gms.internal.zzedk.zza(p17, v3_2);
                    if (!p18.zzv(v6_2)) {
                        if (!p18.zzw(v6_2)) {
                            v1_2 = this.zzmlr;
                            String v2_0 = String.valueOf(p17);
                            int v3_3 = String.valueOf(v3_2);
                            v13_5 = new StringBuilder(((String.valueOf(v2_0).length() + 88) + String.valueOf(v3_3).length()));
                            v13_5.append("We are pruning at ");
                            v13_5.append(v2_0);
                            v13_5.append(" and have data at ");
                            v13_5.append(v3_3);
                            v2_2 = " that isn\'t marked for pruning or keeping. Ignoring.";
                        } else {
                            v4_4 = v4_4.zzb(v6_2, Long.valueOf(v1_1));
                        }
                    } else {
                        v12 = v12.zzb(v6_2, Long.valueOf(v1_1));
                    }
                } else {
                    v1_2 = this.zzmlr;
                    String v2_3 = String.valueOf(p17);
                    int v3_4 = String.valueOf(v3_2);
                    v13_5 = new StringBuilder(((String.valueOf(v2_3).length() + 67) + String.valueOf(v3_4).length()));
                    v13_5.append("We are pruning at ");
                    v13_5.append(v2_3);
                    v13_5.append(" but we have data stored higher up at ");
                    v13_5.append(v3_4);
                    v2_2 = ". Ignoring.";
                }
                v13_5.append(v2_2);
                v1_2.zze(v13_5.toString(), 0);
            }
            Object[] v1_8;
            String v0_3;
            if (v12.isEmpty()) {
                v0_3 = 0;
                v1_8 = 0;
            } else {
                java.util.ArrayList v15_1 = new java.util.ArrayList();
                v16_1.zza(p17, com.google.android.gms.internal.zzedk.zzbwe(), v12, v4_4, p18, v15_1);
                String v0_6 = v12.values();
                Object[] v1_10 = com.google.android.gms.internal.zzeaa.zzr(v0_6);
                int v3_7 = new StringBuilder((String.valueOf(v1_10).length() + 11));
                v3_7.append("rowid IN (");
                v3_7.append(v1_10);
                v3_7.append(")");
                this.zzmlq.delete("serverCache", v3_7.toString(), 0);
                Object[] v1_14 = ((java.util.ArrayList) v15_1);
                String v2_14 = v1_14.size();
                int v3_0 = 0;
                while (v3_0 < v2_14) {
                    com.google.android.gms.internal.zzejc v4_0 = v1_14.get(v3_0);
                    v3_0++;
                    com.google.android.gms.internal.zzejc v4_1 = ((com.google.android.gms.internal.zzelq) v4_0);
                    this.zzc(p17.zzh(((com.google.android.gms.internal.zzedk) v4_1.getFirst())), ((com.google.android.gms.internal.zzekd) v4_1.zzcbg()));
                }
                v0_3 = v0_6.size();
                v1_8 = v15_1.size();
            }
            String v2_16 = (System.currentTimeMillis() - v9);
            if (this.zzmlr.zzbzl()) {
                com.google.android.gms.internal.zzejc v4_7 = this.zzmlr;
                Object[] v6_15 = new Object[3];
                v6_15[0] = Integer.valueOf(v0_3);
                v6_15[1] = Integer.valueOf(v1_8);
                v6_15[2] = Long.valueOf(v2_16);
                Object[] v1_16 = new Object[0];
                v4_7.zzb(String.format("Pruned %d rows with %d nodes resaved in %dms", v6_15), 0, v1_16);
            }
            return;
        } else {
            return;
        }
    }

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


    public final void zza(long p12, java.util.Set p14, java.util.Set p15)
    {
        this.zzbtf();
        com.google.android.gms.internal.zzejc v0_0 = System.currentTimeMillis();
        android.database.sqlite.SQLiteDatabase v3_1 = String.valueOf(p12);
        int v4_1 = p15.iterator();
        while (v4_1.hasNext()) {
            Object[] v5_5 = ((com.google.android.gms.internal.zzejg) v4_1.next());
            String v9_3 = this.zzmlq;
            String[] v7_1 = new String[2];
            v7_1[0] = v3_1;
            v7_1[1] = v5_5.asString();
            v9_3.delete("trackedKeys", "id = ? AND key = ?", v7_1);
        }
        long v2_0 = p14.iterator();
        while (v2_0.hasNext()) {
            android.database.sqlite.SQLiteDatabase v3_3 = ((com.google.android.gms.internal.zzejg) v2_0.next());
            Object[] v5_3 = new android.content.ContentValues();
            v5_3.put("id", Long.valueOf(p12));
            v5_3.put("key", v3_3.asString());
            this.zzmlq.insertWithOnConflict("trackedKeys", 0, v5_3, 5);
        }
        long v2_2 = (System.currentTimeMillis() - v0_0);
        if (this.zzmlr.zzbzl()) {
            com.google.android.gms.internal.zzejc v0_3 = this.zzmlr;
            Object[] v5_1 = new Object[4];
            v5_1[0] = Integer.valueOf(p14.size());
            v5_1[1] = Integer.valueOf(p15.size());
            v5_1[2] = Long.valueOf(p12);
            v5_1[3] = Long.valueOf(v2_2);
            Object[] v13_1 = new Object[0];
            v0_3.zzb(String.format("Updated tracked query keys (%d added, %d removed) for tracked query id %d in %dms", v5_1), 0, v13_1);
        }
        return;
    }

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


    public final void zza(long p11, java.util.Set p13)
    {
        this.zzbtf();
        com.google.android.gms.internal.zzejc v0_0 = System.currentTimeMillis();
        int v4_1 = this.zzmlq;
        String v7_3 = new String[1];
        v7_3[0] = String.valueOf(p11);
        v4_1.delete("trackedKeys", "id = ?", v7_3);
        long v2_0 = p13.iterator();
        while (v2_0.hasNext()) {
            android.database.sqlite.SQLiteDatabase v3_2 = ((com.google.android.gms.internal.zzejg) v2_0.next());
            Object[] v5_3 = new android.content.ContentValues();
            v5_3.put("id", Long.valueOf(p11));
            v5_3.put("key", v3_2.asString());
            this.zzmlq.insertWithOnConflict("trackedKeys", 0, v5_3, 5);
        }
        long v2_2 = (System.currentTimeMillis() - v0_0);
        if (this.zzmlr.zzbzl()) {
            com.google.android.gms.internal.zzejc v0_3 = this.zzmlr;
            Object[] v5_1 = new Object[3];
            v5_1[0] = Integer.valueOf(p13.size());
            v5_1[1] = Long.valueOf(p11);
            v5_1[2] = Long.valueOf(v2_2);
            Object[] v12_1 = new Object[0];
            v0_3.zzb(String.format("Set %d tracked query keys for tracked query %d in %dms", v5_1), 0, v12_1);
        }
        return;
    }

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


    private final void zza(com.google.android.gms.internal.zzedk p7, long p8, String p10, byte[] p11)
    {
        this.zzbtf();
        android.content.ContentValues v0_0 = this.zzmlq;
        int v3_2 = new String[1];
        int v5 = 0;
        v3_2[0] = String.valueOf(p8);
        v0_0.delete("writes", "id = ?", v3_2);
        if (p11.length < 262144) {
            android.content.ContentValues v0_3 = new android.content.ContentValues();
            v0_3.put("id", Long.valueOf(p8));
            v0_3.put("path", com.google.android.gms.internal.zzeaa.zzc(p7));
            v0_3.put("type", p10);
            v0_3.put("part", 0);
            v0_3.put("node", p11);
            this.zzmlq.insertWithOnConflict("writes", 0, v0_3, 5);
            return;
        } else {
            java.util.List v11_1 = com.google.android.gms.internal.zzeaa.zzf(p11, 262144);
            while (v5 < v11_1.size()) {
                android.content.ContentValues v0_6 = new android.content.ContentValues();
                v0_6.put("id", Long.valueOf(p8));
                v0_6.put("path", com.google.android.gms.internal.zzeaa.zzc(p7));
                v0_6.put("type", p10);
                v0_6.put("part", Integer.valueOf(v5));
                v0_6.put("node", ((byte[]) v11_1.get(v5)));
                this.zzmlq.insertWithOnConflict("writes", 0, v0_6, 5);
                v5++;
            }
            return;
        }
    }

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


    private final int zza(String p6, com.google.android.gms.internal.zzedk p7)
    {
        int v7_2 = com.google.android.gms.internal.zzeaa.zzc(p7);
        String v1 = com.google.android.gms.internal.zzeaa.zzpi(v7_2);
        android.database.sqlite.SQLiteDatabase v2 = this.zzmlq;
        String[] v3_1 = new String[2];
        v3_1[0] = v7_2;
        v3_1[1] = v1;
        return v2.delete(p6, "path >= ? AND path < ?", v3_1);
    }

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

Couldn't retrieve source code

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


    private final void zze(String[] p8)
    {
        if ((p8 != null) && (p8.length != 0)) {
            String v0_5 = this.zzlk("Error opening database for deleteHits.");
            if (v0_5 != null) {
                int v2 = 1;
                String v3_1 = new Object[1];
                v3_1[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p8.length, "?"));
                try {
                    v0_5.delete("gtm_hits", String.format("HIT_ID in (%s)", v3_1), p8);
                } catch (String v8_2) {
                    String v8_4 = String.valueOf(v8_2.getMessage());
                    if (v8_4.length() == 0) {
                        String v8_6 = new String("Error deleting hits: ");
                    } else {
                        v8_6 = "Error deleting hits: ".concat(v8_4);
                    }
                    com.google.android.gms.internal.zzcze.zzcu(v8_6);
                }
                if (this.zzmj("gtm_hits") != 0) {
                    v2 = 0;
                } else {
                }
                this.zzknh.zzbu(v2);
                return;
            } else {
                return;
            }
        }
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.deleteIntruder() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void deleteIntruder(com.rudraum.rudraumThumb2Thief.Models.IntruderModel p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p6.getId());
        v0.delete("offlineemail", "id = ?", v3_1);
        v0.close();
        return;
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.deleteIntruder() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void deleteIntruder(com.rudraum.rudraumThumb2Thief.Models.IntruderModel p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p6.getId());
        v0.delete("intruder", "id = ?", v3_1);
        v0.close();
        return;
    }

Method com.google.android.gms.internal.zzcim.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzf(com.google.android.gms.internal.zzcgi p19)
    {
        this.zzawx().zzve();
        this.zzxf();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgm(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzixs)) {
            String v0_8 = this.zzaws().zzjb(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzixs)))) {
                v0_8.zzar(0);
                this.zzaws().zza(v0_8);
                this.zzawv().zzjv(p19.packageName);
            }
            if (p19.zzixx) {
                long v5_6 = p19.zziyc;
                if (v5_6 == 0) {
                    v5_6 = this.zzata.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zziyd;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzawy().zzazf().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzaws().beginTransaction();
                try {
                    String v0_7 = this.zzaws().zzjb(p19.packageName);
                } catch (String v0_57) {
                    this.zzaws().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzixs)))) {
                    this.zzawy().zzazf().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.zzjk(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcln v7_34 = this.zzaws();
                    String v8_19 = v0_7.getAppId();
                    v7_34.zzxf();
                    v7_34.zzve();
                    com.google.android.gms.common.internal.zzbq.zzgm(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_34.zzawy().zzazd().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.zzjk(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzawy().zzazj().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzvj() != null) && (!v0_7.zzvj().equals(p19.zzifm)))) {
                    com.google.android.gms.internal.zzcln v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzvj());
                    String v0_10 = new com.google.android.gms.internal.zzcha;
                    v0_10("_au", new com.google.android.gms.internal.zzcgx(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                com.google.android.gms.internal.zzcln v7_8;
                String v8_4;
                String v0_12;
                String v0_11;
                this = this.zzg(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzaws();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzae(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzaws();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcln v3_2;
                if (v0_11 != null) {
                    if (p19.zzixy) {
                        v3_2 = new com.google.android.gms.internal.zzcha;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcln;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzawx().zzve();
                            this.zzxf();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcln v3_6 = new com.google.android.gms.internal.zzcha;
                            v3_6("_v", new com.google.android.gms.internal.zzcgx(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcln;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzawx().zzve();
                        this.zzxf();
                        android.os.Bundle v15_2 = new android.os.Bundle();
                        v15_2.putLong("_c", 1);
                        v15_2.putLong("_r", 1);
                        v15_2.putLong("_uwa", 0);
                        v15_2.putLong("_pfo", 0);
                        v15_2.putLong("_sys", 0);
                        v15_2.putLong("_sysu", 0);
                        if (this.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzawy().zzazd().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcln;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcln v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_42) {
                                this.zzawy().zzazd().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_42);
                            }
                            String v0_43 = v16_0;
                            if (v0_43 != null) {
                                if ((v0_43.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_43.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzawy().zzazd().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName));
                        }
                        String v0_50 = this.zzaws();
                        com.google.android.gms.internal.zzcln v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbq.zzgm(v3_14);
                        v0_50.zzve();
                        v0_50.zzxf();
                        com.google.android.gms.internal.zzcln v3_15 = v0_50.zzal(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcha;
                        v0_53("_f", new com.google.android.gms.internal.zzcgx(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcha;
                    v3_2("_e", new com.google.android.gms.internal.zzcgx(v0_55), "auto", v5_6);
                }
                this.zzaws().setTransactionSuccessful();
                this.zzaws().endTransaction();
                return;
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcim.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzf(com.google.android.gms.internal.zzcgi p19)
    {
        this.zzawx().zzve();
        this.zzxf();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgm(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzixs)) {
            String v0_8 = this.zzaws().zzjb(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzixs)))) {
                v0_8.zzar(0);
                this.zzaws().zza(v0_8);
                this.zzawv().zzjv(p19.packageName);
            }
            if (p19.zzixx) {
                long v5_6 = p19.zziyc;
                if (v5_6 == 0) {
                    v5_6 = this.zzata.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zziyd;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzawy().zzazf().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzaws().beginTransaction();
                try {
                    String v0_7 = this.zzaws().zzjb(p19.packageName);
                } catch (String v0_57) {
                    this.zzaws().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzixs)))) {
                    this.zzawy().zzazf().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.zzjk(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcln v7_34 = this.zzaws();
                    String v8_19 = v0_7.getAppId();
                    v7_34.zzxf();
                    v7_34.zzve();
                    com.google.android.gms.common.internal.zzbq.zzgm(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_34.zzawy().zzazd().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.zzjk(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzawy().zzazj().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzvj() != null) && (!v0_7.zzvj().equals(p19.zzifm)))) {
                    com.google.android.gms.internal.zzcln v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzvj());
                    String v0_10 = new com.google.android.gms.internal.zzcha;
                    v0_10("_au", new com.google.android.gms.internal.zzcgx(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v0_11;
                com.google.android.gms.internal.zzcln v7_8;
                String v0_12;
                String v8_4;
                this = this.zzg(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzaws();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzae(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzaws();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcln v3_2;
                if (v0_11 != null) {
                    if (p19.zzixy) {
                        v3_2 = new com.google.android.gms.internal.zzcha;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcln;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzawx().zzve();
                            this.zzxf();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcln v3_6 = new com.google.android.gms.internal.zzcha;
                            v3_6("_v", new com.google.android.gms.internal.zzcgx(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcln;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzawx().zzve();
                        this.zzxf();
                        android.os.Bundle v15_2 = new android.os.Bundle();
                        v15_2.putLong("_c", 1);
                        v15_2.putLong("_r", 1);
                        v15_2.putLong("_uwa", 0);
                        v15_2.putLong("_pfo", 0);
                        v15_2.putLong("_sys", 0);
                        v15_2.putLong("_sysu", 0);
                        if (this.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzawy().zzazd().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcln;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcln v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_42) {
                                this.zzawy().zzazd().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_42);
                            }
                            String v0_43 = v16_0;
                            if (v0_43 != null) {
                                if ((v0_43.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_43.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzawy().zzazd().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName));
                        }
                        String v0_50 = this.zzaws();
                        com.google.android.gms.internal.zzcln v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbq.zzgm(v3_14);
                        v0_50.zzve();
                        v0_50.zzxf();
                        com.google.android.gms.internal.zzcln v3_15 = v0_50.zzal(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcha;
                        v0_53("_f", new com.google.android.gms.internal.zzcgx(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcha;
                    v3_2("_e", new com.google.android.gms.internal.zzcgx(v0_55), "auto", v5_6);
                }
                this.zzaws().setTransactionSuccessful();
                this.zzaws().endTransaction();
                return;
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcim.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzf(com.google.android.gms.internal.zzcgi p19)
    {
        this.zzawx().zzve();
        this.zzxf();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgm(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzixs)) {
            String v0_8 = this.zzaws().zzjb(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzixs)))) {
                v0_8.zzar(0);
                this.zzaws().zza(v0_8);
                this.zzawv().zzjv(p19.packageName);
            }
            if (p19.zzixx) {
                long v5_6 = p19.zziyc;
                if (v5_6 == 0) {
                    v5_6 = this.zzata.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zziyd;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzawy().zzazf().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzaws().beginTransaction();
                try {
                    String v0_7 = this.zzaws().zzjb(p19.packageName);
                } catch (String v0_57) {
                    this.zzaws().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzixs)))) {
                    this.zzawy().zzazf().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.zzjk(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcln v7_34 = this.zzaws();
                    String v8_19 = v0_7.getAppId();
                    v7_34.zzxf();
                    v7_34.zzve();
                    com.google.android.gms.common.internal.zzbq.zzgm(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_34.zzawy().zzazd().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.zzjk(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzawy().zzazj().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzvj() != null) && (!v0_7.zzvj().equals(p19.zzifm)))) {
                    com.google.android.gms.internal.zzcln v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzvj());
                    String v0_10 = new com.google.android.gms.internal.zzcha;
                    v0_10("_au", new com.google.android.gms.internal.zzcgx(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v0_12;
                String v0_11;
                com.google.android.gms.internal.zzcln v7_8;
                String v8_4;
                this = this.zzg(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzaws();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzae(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzaws();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcln v3_2;
                if (v0_11 != null) {
                    if (p19.zzixy) {
                        v3_2 = new com.google.android.gms.internal.zzcha;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcln;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzawx().zzve();
                            this.zzxf();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcln v3_6 = new com.google.android.gms.internal.zzcha;
                            v3_6("_v", new com.google.android.gms.internal.zzcgx(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcln;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzawx().zzve();
                        this.zzxf();
                        android.os.Bundle v15_2 = new android.os.Bundle();
                        v15_2.putLong("_c", 1);
                        v15_2.putLong("_r", 1);
                        v15_2.putLong("_uwa", 0);
                        v15_2.putLong("_pfo", 0);
                        v15_2.putLong("_sys", 0);
                        v15_2.putLong("_sysu", 0);
                        if (this.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzawy().zzazd().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcln;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcln v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_42) {
                                this.zzawy().zzazd().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_42);
                            }
                            String v0_43 = v16_0;
                            if (v0_43 != null) {
                                if ((v0_43.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_43.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzawy().zzazd().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName));
                        }
                        String v0_50 = this.zzaws();
                        com.google.android.gms.internal.zzcln v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbq.zzgm(v3_14);
                        v0_50.zzve();
                        v0_50.zzxf();
                        com.google.android.gms.internal.zzcln v3_15 = v0_50.zzal(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcha;
                        v0_53("_f", new com.google.android.gms.internal.zzcgx(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcha;
                    v3_2("_e", new com.google.android.gms.internal.zzcgx(v0_55), "auto", v5_6);
                }
                this.zzaws().setTransactionSuccessful();
                this.zzaws().endTransaction();
                return;
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcim.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzf(com.google.android.gms.internal.zzcgi p19)
    {
        this.zzawx().zzve();
        this.zzxf();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgm(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzixs)) {
            String v0_8 = this.zzaws().zzjb(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzixs)))) {
                v0_8.zzar(0);
                this.zzaws().zza(v0_8);
                this.zzawv().zzjv(p19.packageName);
            }
            if (p19.zzixx) {
                long v5_6 = p19.zziyc;
                if (v5_6 == 0) {
                    v5_6 = this.zzata.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zziyd;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzawy().zzazf().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzaws().beginTransaction();
                try {
                    String v0_7 = this.zzaws().zzjb(p19.packageName);
                } catch (String v0_57) {
                    this.zzaws().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzixs)))) {
                    this.zzawy().zzazf().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.zzjk(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcln v7_34 = this.zzaws();
                    String v8_19 = v0_7.getAppId();
                    v7_34.zzxf();
                    v7_34.zzve();
                    com.google.android.gms.common.internal.zzbq.zzgm(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_34.zzawy().zzazd().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.zzjk(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzawy().zzazj().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzvj() != null) && (!v0_7.zzvj().equals(p19.zzifm)))) {
                    com.google.android.gms.internal.zzcln v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzvj());
                    String v0_10 = new com.google.android.gms.internal.zzcha;
                    v0_10("_au", new com.google.android.gms.internal.zzcgx(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                com.google.android.gms.internal.zzcln v7_8;
                String v0_11;
                String v0_12;
                String v8_4;
                this = this.zzg(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzaws();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzae(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzaws();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcln v3_2;
                if (v0_11 != null) {
                    if (p19.zzixy) {
                        v3_2 = new com.google.android.gms.internal.zzcha;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcln;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzawx().zzve();
                            this.zzxf();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcln v3_6 = new com.google.android.gms.internal.zzcha;
                            v3_6("_v", new com.google.android.gms.internal.zzcgx(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcln;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzawx().zzve();
                        this.zzxf();
                        android.os.Bundle v15_2 = new android.os.Bundle();
                        v15_2.putLong("_c", 1);
                        v15_2.putLong("_r", 1);
                        v15_2.putLong("_uwa", 0);
                        v15_2.putLong("_pfo", 0);
                        v15_2.putLong("_sys", 0);
                        v15_2.putLong("_sysu", 0);
                        if (this.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzawy().zzazd().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcln;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcln v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_42) {
                                this.zzawy().zzazd().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_42);
                            }
                            String v0_43 = v16_0;
                            if (v0_43 != null) {
                                if ((v0_43.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_43.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzawy().zzazd().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName));
                        }
                        String v0_50 = this.zzaws();
                        com.google.android.gms.internal.zzcln v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbq.zzgm(v3_14);
                        v0_50.zzve();
                        v0_50.zzxf();
                        com.google.android.gms.internal.zzcln v3_15 = v0_50.zzal(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcha;
                        v0_53("_f", new com.google.android.gms.internal.zzcgx(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcha;
                    v3_2("_e", new com.google.android.gms.internal.zzcgx(v0_55), "auto", v5_6);
                }
                this.zzaws().setTransactionSuccessful();
                this.zzaws().endTransaction();
                return;
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcim.zzf() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzf(com.google.android.gms.internal.zzcgi p19)
    {
        this.zzawx().zzve();
        this.zzxf();
        com.google.android.gms.common.internal.zzbq.checkNotNull(p19);
        com.google.android.gms.common.internal.zzbq.zzgm(p19.packageName);
        if (!android.text.TextUtils.isEmpty(p19.zzixs)) {
            String v0_8 = this.zzaws().zzjb(p19.packageName);
            if ((v0_8 != null) && ((android.text.TextUtils.isEmpty(v0_8.getGmpAppId())) && (!android.text.TextUtils.isEmpty(p19.zzixs)))) {
                v0_8.zzar(0);
                this.zzaws().zza(v0_8);
                this.zzawv().zzjv(p19.packageName);
            }
            if (p19.zzixx) {
                long v5_6 = p19.zziyc;
                if (v5_6 == 0) {
                    v5_6 = this.zzata.currentTimeMillis();
                }
                android.os.Bundle v15_3;
                String v0_61 = p19.zziyd;
                if ((v0_61 == null) || (v0_61 == 1)) {
                    v15_3 = v0_61;
                } else {
                    this.zzawy().zzazf().zze("Incorrect app type, assuming installed app. appId, appType", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), Integer.valueOf(v0_61));
                    v15_3 = 0;
                }
                this.zzaws().beginTransaction();
                try {
                    String v0_7 = this.zzaws().zzjb(p19.packageName);
                } catch (String v0_57) {
                    this.zzaws().endTransaction();
                    throw v0_57;
                }
                if ((v0_7 != null) && ((v0_7.getGmpAppId() != null) && (!v0_7.getGmpAppId().equals(p19.zzixs)))) {
                    this.zzawy().zzazf().zzj("New GMP App Id passed in. Removing cached database data. appId", com.google.android.gms.internal.zzchm.zzjk(v0_7.getAppId()));
                    com.google.android.gms.internal.zzcln v7_34 = this.zzaws();
                    String v8_19 = v0_7.getAppId();
                    v7_34.zzxf();
                    v7_34.zzve();
                    com.google.android.gms.common.internal.zzbq.zzgm(v8_19);
                    try {
                        String v0_0 = v7_34.getWritableDatabase();
                        long v9_0 = new String[1];
                        v9_0[0] = v8_19;
                        String v10_10 = (((((((((v0_0.delete("events", "app_id=?", v9_0) + 0) + v0_0.delete("user_attributes", "app_id=?", v9_0)) + v0_0.delete("conditional_properties", "app_id=?", v9_0)) + v0_0.delete("apps", "app_id=?", v9_0)) + v0_0.delete("raw_events", "app_id=?", v9_0)) + v0_0.delete("raw_events_metadata", "app_id=?", v9_0)) + v0_0.delete("event_filters", "app_id=?", v9_0)) + v0_0.delete("property_filters", "app_id=?", v9_0)) + v0_0.delete("audience_filter_values", "app_id=?", v9_0));
                    } catch (String v0_4) {
                        v7_34.zzawy().zzazd().zze("Error deleting application data. appId, error", com.google.android.gms.internal.zzchm.zzjk(v8_19), v0_4);
                        v0_7 = 0;
                    }
                    if (v10_10 <= null) {
                    } else {
                        v7_34.zzawy().zzazj().zze("Deleted application data. app, records", v8_19, Integer.valueOf(v10_10));
                    }
                }
                if ((v0_7 != null) && ((v0_7.zzvj() != null) && (!v0_7.zzvj().equals(p19.zzifm)))) {
                    com.google.android.gms.internal.zzcln v7_6 = new android.os.Bundle();
                    v7_6.putString("_pv", v0_7.zzvj());
                    String v0_10 = new com.google.android.gms.internal.zzcha;
                    v0_10("_au", new com.google.android.gms.internal.zzcgx(v7_6), "auto", v5_6);
                    this.zzb(v0_10, p19);
                }
                String v0_11;
                String v8_4;
                String v0_12;
                com.google.android.gms.internal.zzcln v7_8;
                this = this.zzg(p19);
                if (v15_3 != null) {
                    if (v15_3 != 1) {
                        v0_11 = 0;
                    } else {
                        v0_12 = this.zzaws();
                        v7_8 = p19.packageName;
                        v8_4 = "_v";
                        v0_11 = v0_12.zzae(v7_8, v8_4);
                    }
                } else {
                    v0_12 = this.zzaws();
                    v7_8 = p19.packageName;
                    v8_4 = "_f";
                }
                com.google.android.gms.internal.zzcln v3_2;
                if (v0_11 != null) {
                    if (p19.zzixy) {
                        v3_2 = new com.google.android.gms.internal.zzcha;
                        v3_2("_cd", new com.google.android.gms.internal.zzcgx(new android.os.Bundle()), "auto", v5_6);
                        this.zzb(v3_2, p19);
                    }
                } else {
                    Long v13_0;
                    long v9_9 = (((v5_6 / 3600000) + 1) * 3600000);
                    if (v15_3 != null) {
                        v13_0 = 1;
                        if (v15_3 == 1) {
                            String v0_16 = new com.google.android.gms.internal.zzcln;
                            v0_16("_fvt", v5_6, Long.valueOf(v9_9), "auto");
                            this.zzb(v0_16, p19);
                            this.zzawx().zzve();
                            this.zzxf();
                            String v0_19 = new android.os.Bundle();
                            v0_19.putLong("_c", 1);
                            v0_19.putLong("_r", 1);
                            com.google.android.gms.internal.zzcln v3_6 = new com.google.android.gms.internal.zzcha;
                            v3_6("_v", new com.google.android.gms.internal.zzcgx(v0_19), "auto", v5_6);
                            this.zzb(v3_6, p19);
                        }
                    } else {
                        String v0_20 = new com.google.android.gms.internal.zzcln;
                        v13_0 = 1;
                        v0_20("_fot", v5_6, Long.valueOf(v9_9), "auto");
                        this.zzb(v0_20, p19);
                        this.zzawx().zzve();
                        this.zzxf();
                        android.os.Bundle v15_2 = new android.os.Bundle();
                        v15_2.putLong("_c", 1);
                        v15_2.putLong("_r", 1);
                        v15_2.putLong("_uwa", 0);
                        v15_2.putLong("_pfo", 0);
                        v15_2.putLong("_sys", 0);
                        v15_2.putLong("_sysu", 0);
                        if (this.mContext.getPackageManager() != null) {
                            try {
                                String v0_32 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getPackageInfo(p19.packageName, 0);
                            } catch (String v0_33) {
                                this.zzawy().zzazd().zze("Package info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_33);
                                v0_32 = 0;
                            }
                            if ((v0_32 != null) && (v0_32.firstInstallTime != 0)) {
                                String v0_36;
                                if (v0_32.firstInstallTime == v0_32.lastUpdateTime) {
                                    v0_36 = 1;
                                } else {
                                    v15_2.putLong("_uwa", 1);
                                    v0_36 = 0;
                                }
                                long v9_18;
                                String v12_10 = new com.google.android.gms.internal.zzcln;
                                if (v0_36 == null) {
                                    v9_18 = 0;
                                } else {
                                    v9_18 = 1;
                                }
                                com.google.android.gms.internal.zzcln v3_7 = v12_10;
                                v12_10("_fi", v5_6, Long.valueOf(v9_18), "auto");
                                this.zzb(v3_7, p19);
                            }
                            try {
                                android.content.pm.ApplicationInfo v16_0 = com.google.android.gms.internal.zzbhf.zzdb(this.mContext).getApplicationInfo(p19.packageName, 0);
                            } catch (String v0_42) {
                                this.zzawy().zzazd().zze("Application info is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName), v0_42);
                            }
                            String v0_43 = v16_0;
                            if (v0_43 != null) {
                                if ((v0_43.flags & 1) != 0) {
                                    v15_2.putLong("_sys", 1);
                                }
                                if ((v0_43.flags & 128) != 0) {
                                    v15_2.putLong("_sysu", 1);
                                }
                            }
                        } else {
                            this.zzawy().zzazd().zzj("PackageManager is null, first open report might be inaccurate. appId", com.google.android.gms.internal.zzchm.zzjk(p19.packageName));
                        }
                        String v0_50 = this.zzaws();
                        com.google.android.gms.internal.zzcln v3_14 = p19.packageName;
                        com.google.android.gms.common.internal.zzbq.zzgm(v3_14);
                        v0_50.zzve();
                        v0_50.zzxf();
                        com.google.android.gms.internal.zzcln v3_15 = v0_50.zzal(v3_14, "first_open_count");
                        if (v3_15 >= 0) {
                            v15_2.putLong("_pfo", v3_15);
                        }
                        String v0_53 = new com.google.android.gms.internal.zzcha;
                        v0_53("_f", new com.google.android.gms.internal.zzcgx(v15_2), "auto", v5_6);
                        this.zzb(v0_53, p19);
                    }
                    String v0_55 = new android.os.Bundle();
                    v0_55.putLong("_et", v13_0);
                    v3_2 = new com.google.android.gms.internal.zzcha;
                    v3_2("_e", new com.google.android.gms.internal.zzcgx(v0_55), "auto", v5_6);
                }
                this.zzaws().setTransactionSuccessful();
                this.zzaws().endTransaction();
                return;
            } else {
                this.zzg(p19);
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.internal.zzcim.zzd() calling method android.database.sqlite.SQLiteDatabase.delete()


    final void zzd(com.google.android.gms.internal.zzcgi p11)
    {
        this.zzaws().zzjb(p11.packageName);
        com.google.android.gms.internal.zzcho v0_1 = this.zzaws();
        Object v1_1 = p11.packageName;
        com.google.android.gms.common.internal.zzbq.zzgm(v1_1);
        v0_1.zzve();
        v0_1.zzxf();
        try {
            com.google.android.gms.internal.zzcho v2_0 = v0_1.getWritableDatabase();
            String v3_1 = new String[1];
            v3_1[0] = v1_1;
            android.content.Context v5_9 = ((((((((v2_0.delete("apps", "app_id=?", v3_1) + 0) + v2_0.delete("events", "app_id=?", v3_1)) + v2_0.delete("user_attributes", "app_id=?", v3_1)) + v2_0.delete("conditional_properties", "app_id=?", v3_1)) + v2_0.delete("raw_events", "app_id=?", v3_1)) + v2_0.delete("raw_events_metadata", "app_id=?", v3_1)) + v2_0.delete("queue", "app_id=?", v3_1)) + v2_0.delete("audience_filter_values", "app_id=?", v3_1));
        } catch (com.google.android.gms.internal.zzcho v2_2) {
            v0_1.zzawy().zzazd().zze("Error resetting analytics data. appId, error", com.google.android.gms.internal.zzchm.zzjk(v1_1), v2_2);
            this.zzf(this.zza(this.mContext, p11.packageName, p11.zzixs, p11.zzixx, p11.zziye));
            return;
        }
        if (v5_9 <= null) {
            this.zzf(this.zza(this.mContext, p11.packageName, p11.zzixs, p11.zzixx, p11.zziye));
            return;
        } else {
            v0_1.zzawy().zzazj().zze("Reset analytics data. app, records", v1_1, Integer.valueOf(v5_9));
            this.zzf(this.zza(this.mContext, p11.packageName, p11.zzixs, p11.zzixx, p11.zziye));
            return;
        }
    }

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


    protected final void zza(int p8, Throwable p9, byte[] p10)
    {
        this.zzawx().zzve();
        this.zzxf();
        try {
            if (p10 == null) {
                p10 = new byte[0];
            }
        } catch (long v8_10) {
            this.zzjge = 0;
            this.zzban();
            throw v8_10;
        }
        String v1_6 = this.zzjfx;
        this.zzjfx = 0;
        int v3 = 1;
        if (((p8 != 200) && (p8 != 204)) || (p9 != null)) {
            this.zzawy().zzazj().zze("Network upload failed. Will retry later. code, error", Integer.valueOf(p8), p9);
            this.zzawz().zzjcs.set(this.zzata.currentTimeMillis());
            if (p8 != 503) {
                if (p8 != 429) {
                    v3 = 0;
                } else {
                }
            }
            if (v3 != 0) {
                this.zzawz().zzjct.set(this.zzata.currentTimeMillis());
            }
            this.zzbaj();
        } else {
            try {
                this.zzawz().zzjcr.set(this.zzata.currentTimeMillis());
                this.zzawz().zzjcs.set(0);
                this.zzbaj();
                this.zzawy().zzazj().zze("Successful upload. Got network response. code, size", Integer.valueOf(p8), Integer.valueOf(p10.length));
                this.zzaws().beginTransaction();
            } catch (long v8_5) {
                this.zzawy().zzazd().zzj("Database error while trying to delete uploaded bundles", v8_5);
                this.zzjgc = this.zzata.elapsedRealtime();
                this.zzawy().zzazj().zzj("Disable upload, time", Long.valueOf(this.zzjgc));
            }
            long v8_15 = v1_6.iterator();
            while (v8_15.hasNext()) {
                com.google.android.gms.internal.zzcho v9_24 = ((Long) v8_15.next());
                String v10_1 = this.zzaws();
                String v1_0 = v9_24.longValue();
                v10_1.zzve();
                v10_1.zzxf();
                com.google.android.gms.internal.zzcho v9_1 = v10_1.getWritableDatabase();
                String[] v6 = new String[1];
                v6[0] = String.valueOf(v1_0);
                try {
                    if (v9_1.delete("queue", "rowid=?", v6) != 1) {
                        throw new android.database.sqlite.SQLiteException("Deleted fewer rows from queue than expected");
                    } else {
                    }
                } catch (long v8_3) {
                    v10_1.zzawy().zzazd().zzj("Failed to delete a bundle in a queue table", v8_3);
                    throw v8_3;
                }
            }
            this.zzaws().setTransactionSuccessful();
            this.zzaws().endTransaction();
            if ((!this.zzbab().zzzs()) || (!this.zzbai())) {
                this.zzjgb = -1;
                this.zzbaj();
            } else {
                this.zzbah();
            }
            this.zzjgc = 0;
        }
        this.zzjge = 0;
        this.zzban();
        return;
    }

Method com.google.android.gms.internal.zzchi.zzeb() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzeb(int p19)
    {
        this.zzve();
        if (!this.zzjbo) {
            String v3_2 = new java.util.ArrayList();
            if (this.getContext().getDatabasePath("google_app_measurement_local.db").exists()) {
                int v4_0 = 5;
                int v6 = 0;
                int v7 = 5;
                while (v6 < v4_0) {
                    try {
                        int v15_0 = this.getWritableDatabase();
                    } catch (int v0_28) {
                        int v4_1 = 0;
                        int v9_0 = 0;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_1 != 0) {
                            v4_1.close();
                        }
                        throw v0_28;
                    } catch (int v0_25) {
                        v4_1 = 0;
                        v9_0 = 0;
                        this.zzawy().zzazd().zzj("Error reading entries from local database", v0_25);
                        this.zzjbo = 1;
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_1 == 0) {
                            v6++;
                            v4_0 = 5;
                        } else {
                            v4_1.close();
                        }
                        v3_2.add(int v0_7);
                        try {
                            while (v9_0.moveToNext()) {
                                String v10_0 = v9_0.getLong(0);
                                int v0_0 = v9_0.getInt(1);
                                String v13_0 = v9_0.getBlob(2);
                                if (v0_0 != 0) {
                                    if (v0_0 != 1) {
                                        if (v0_0 != 2) {
                                            this.zzawy().zzazd().log("Unknown record type in local database");
                                        } else {
                                            String v12_2 = android.os.Parcel.obtain();
                                            try {
                                                v12_2.unmarshall(v13_0, 0, v13_0.length);
                                                v12_2.setDataPosition(0);
                                                v0_7 = ((com.google.android.gms.internal.zzcgl) com.google.android.gms.internal.zzcgl.CREATOR.createFromParcel(v12_2));
                                            } catch (int v0_11) {
                                                v12_2.recycle();
                                                throw v0_11;
                                            }
                                            v12_2.recycle();
                                            if (v0_7 != 0) {
                                            }
                                        }
                                    } else {
                                        String v12_3 = android.os.Parcel.obtain();
                                        try {
                                            v12_3.unmarshall(v13_0, 0, v13_0.length);
                                            v12_3.setDataPosition(0);
                                            v0_7 = ((com.google.android.gms.internal.zzcln) com.google.android.gms.internal.zzcln.CREATOR.createFromParcel(v12_3));
                                        } catch (int v0_17) {
                                            v12_3.recycle();
                                            throw v0_17;
                                        }
                                        v12_3.recycle();
                                        if (v0_7 != 0) {
                                        }
                                    }
                                } else {
                                    String v12_4 = android.os.Parcel.obtain();
                                    try {
                                        v12_4.unmarshall(v13_0, 0, v13_0.length);
                                        v12_4.setDataPosition(0);
                                        v0_7 = ((com.google.android.gms.internal.zzcha) com.google.android.gms.internal.zzcha.CREATOR.createFromParcel(v12_4));
                                    } catch (int v0_23) {
                                        v12_4.recycle();
                                        throw v0_23;
                                    }
                                    v12_4.recycle();
                                    if (v0_7 != 0) {
                                    }
                                }
                            }
                        } catch (int v0_25) {
                        } catch (int v0_24) {
                            if (android.os.Build$VERSION.SDK_INT < 11) {
                                if (v4_1 != 0) {
                                    if (v4_1.inTransaction()) {
                                        v4_1.endTransaction();
                                    }
                                }
                                this.zzawy().zzazd().zzj("Error reading entries from local database", v0_24);
                                this.zzjbo = 1;
                            } else {
                                if (!(v0_24 instanceof android.database.sqlite.SQLiteDatabaseLockedException)) {
                                } else {
                                    android.os.SystemClock.sleep(((long) v7));
                                    v7 += 20;
                                }
                            }
                            if (v9_0 != 0) {
                                v9_0.close();
                            }
                            if (v4_1 == 0) {
                            }
                        }
                        String v13_5 = new String[1];
                        v13_5[0] = Long.toString(v10_0);
                        if (v4_1.delete("messages", "rowid <= ?", v13_5) < v3_2.size()) {
                            this.zzawy().zzazd().log("Fewer entries removed from local database than expected");
                        }
                        v4_1.setTransactionSuccessful();
                        v4_1.endTransaction();
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        if (v4_1 != 0) {
                            v4_1.close();
                        }
                        return v3_2;
                    } catch (int v0_24) {
                        v4_1 = 0;
                        v9_0 = 0;
                    } catch (int v0_28) {
                    }
                    if (v15_0 != 0) {
                        try {
                            v15_0.beginTransaction();
                            v4_1 = v15_0;
                            try {
                                v9_0 = v15_0.query("messages", new String[] {"rowid", "type", "entry"}), 0, 0, 0, 0, "rowid asc", Integer.toString(100));
                                v10_0 = -1;
                            } catch (int v0_28) {
                                v9_0 = 0;
                            } catch (int v0_25) {
                                v9_0 = 0;
                            } catch (int v0_24) {
                                v9_0 = 0;
                            }
                        } catch (int v0_28) {
                            v4_1 = 0;
                        } catch (int v0_25) {
                            v4_1 = 0;
                        } catch (int v0_24) {
                            v4_1 = 0;
                        }
                    } else {
                        try {
                            this.zzjbo = 1;
                        } catch (int v0_28) {
                            v9_0 = 0;
                            v4_1 = v15_0;
                        } catch (int v0_25) {
                            v9_0 = 0;
                            v4_1 = v15_0;
                        } catch (int v0_24) {
                            v9_0 = 0;
                            v4_1 = v15_0;
                        }
                        if (v15_0 != 0) {
                            v15_0.close();
                        }
                        return 0;
                    }
                }
                this.zzawy().zzazf().log("Failed to read events from database in reasonable time");
                return 0;
            } else {
                return v3_2;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzl() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzl(String p13, int p14, int p15)
    {
        android.database.Cursor v2_2;
        this.zzve();
        this.zzxf();
        if (p14 <= null) {
            v2_2 = 0;
        } else {
            v2_2 = 1;
        }
        android.database.Cursor v2_0;
        com.google.android.gms.common.internal.zzbq.checkArgument(v2_2);
        if (p15 <= null) {
            v2_0 = 0;
        } else {
            v2_0 = 1;
        }
        com.google.android.gms.common.internal.zzbq.checkArgument(v2_0);
        com.google.android.gms.common.internal.zzbq.zzgm(p13);
        try {
            int v3_0 = this.getWritableDatabase();
            Object v7_0 = new String[1];
            v7_0[0] = p13;
            android.database.Cursor v2_1 = v3_0.query("queue", new String[] {"rowid", "data"}), "app_id=?", v7_0, 0, 0, "rowid", String.valueOf(p14));
        } catch (java.util.List v13_4) {
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v13_4;
        } catch (java.util.ArrayList v14_4) {
            this.zzawy().zzazd().zze("Error querying bundles. appId", com.google.android.gms.internal.zzchm.zzjk(p13), v14_4);
            java.util.List v13_3 = java.util.Collections.emptyList();
            if (v2_1 != null) {
                v2_1.close();
            }
            return v13_3;
        }
        if (v2_1.moveToFirst()) {
            java.util.ArrayList v14_3 = new java.util.ArrayList();
            int v3_1 = 0;
            do {
                android.util.Pair v4_2 = v2_1.getLong(0);
                int v6_3 = this.zzawu().zzr(v2_1.getBlob(1));
                if ((!v14_3.isEmpty()) && ((v6_3.length + v3_1) > p15)) {
                    break;
                }
                Object v7_7 = com.google.android.gms.internal.zzfjj.zzn(v6_3, 0, v6_3.length);
                com.google.android.gms.internal.zzcme v8_2 = new com.google.android.gms.internal.zzcme();
                v8_2.zza(v7_7);
                v3_1 += v6_3.length;
                v14_3.add(android.util.Pair.create(v8_2, Long.valueOf(v4_2)));
            } while((v2_1.moveToNext()) && (v3_1 <= p15));
            if (v2_1 != null) {
                v2_1.close();
            }
            return v14_3;
        } else {
            java.util.List v13_1 = java.util.Collections.emptyList();
            if (v2_1 != null) {
                v2_1.close();
            }
            return v13_1;
        }
    }

Method com.google.android.gms.internal.zzcgo.zzje() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzje(String p12)
    {
        this.zzxf();
        this.zzve();
        com.google.android.gms.common.internal.zzbq.zzgm(p12);
        int v0_1 = this.getWritableDatabase();
        try {
            com.google.android.gms.internal.zzcho v4_0 = new String[1];
            v4_0[0] = p12;
            int v0_0 = v0_1.query("audience_filter_values", new String[] {"audience_id", "current_results"}), "app_id=?", v4_0, 0, 0, 0);
            try {
                if (v0_0.moveToFirst()) {
                    android.support.v4.util.ArrayMap v1_3 = new android.support.v4.util.ArrayMap();
                    do {
                        boolean v2_1 = v0_0.getInt(0);
                        java.io.IOException v3_1 = v0_0.getBlob(1);
                        java.io.IOException v3_2 = com.google.android.gms.internal.zzfjj.zzn(v3_1, 0, v3_1.length);
                        com.google.android.gms.internal.zzcho v4_3 = new com.google.android.gms.internal.zzcmf();
                        v4_3.zza(v3_2);
                        v1_3.put(Integer.valueOf(v2_1), v4_3);
                    } while(v0_0.moveToNext());
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return v1_3;
                } else {
                    if (v0_0 != 0) {
                        v0_0.close();
                    }
                    return 0;
                }
            } catch (android.support.v4.util.ArrayMap v1_0) {
                this.zzawy().zzazd().zze("Database error querying filter results. appId", com.google.android.gms.internal.zzchm.zzjk(p12), v1_0);
                if (v0_0 != 0) {
                    v0_0.close();
                }
                return 0;
            }
        } catch (Throwable v12_1) {
            v0_0 = 0;
            if (v0_0 != 0) {
                v0_0.close();
            }
            throw v12_1;
        } catch (android.support.v4.util.ArrayMap v1_0) {
            v0_0 = 0;
        } catch (Throwable v12_1) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzjd() calling method android.database.sqlite.SQLiteDatabase.query()


    public final byte[] zzjd(String p11)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p11);
        this.zzve();
        this.zzxf();
        try {
            int v1_1 = this.getWritableDatabase();
            Object v5_1 = new String[1];
            v5_1[0] = p11;
            int v1_0 = v1_1.query("apps", new String[] {"remote_config"}), "app_id=?", v5_1, 0, 0, 0);
            try {
                if (v1_0.moveToFirst()) {
                    byte[] v2_2 = v1_0.getBlob(0);
                    if (v1_0.moveToNext()) {
                        this.zzawy().zzazd().zzj("Got multiple records for app config, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(p11));
                    }
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v2_2;
                } else {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return 0;
                }
            } catch (byte[] v2_0) {
                this.zzawy().zzazd().zze("Error querying remote config. appId", com.google.android.gms.internal.zzchm.zzjk(p11), v2_0);
                if (v1_0 != 0) {
                    v1_0.close();
                }
                return 0;
            }
        } catch (Throwable v11_1) {
            v1_0 = 0;
            if (v1_0 != 0) {
                v1_0.close();
            }
            throw v11_1;
        } catch (byte[] v2_0) {
            v1_0 = 0;
        } catch (Throwable v11_1) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzjb() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcgh zzjb(String p30)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p30);
        this.zzve();
        this.zzxf();
        try {
            int v3_1 = this.getWritableDatabase();
            Object v7 = "resettable_device_id_hash";
            int v9 = "last_bundle_start_timestamp";
            int v11 = "app_version";
            String v13 = "gmp_version";
            String v15 = "measurement_enabled";
            String v17 = "daily_public_events_count";
            String v19 = "daily_conversions_count";
            String v21 = "failed_config_fetch_time";
            String v23 = "firebase_instance_id";
            String v25 = "daily_realtime_events_count";
            String v27 = "android_id";
            com.google.android.gms.internal.zzcho v0_0 = 1;
            Object v7_5 = new String[1];
            v7_5[0] = p30;
            int v3_0 = v3_1.query("apps", new String[] {"app_instance_id", "adid_reporting_enabled"}), "app_id=?", v7_5, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    try {
                        String v6_1;
                        com.google.android.gms.internal.zzcgh v4_4 = new com.google.android.gms.internal.zzcgh(this.zziwf, p30);
                        v4_4.zzir(v3_0.getString(0));
                        v4_4.zzis(v3_0.getString(1));
                        v4_4.zzit(v3_0.getString(2));
                        v4_4.zzaq(v3_0.getLong(3));
                        v4_4.zzal(v3_0.getLong(4));
                        v4_4.zzam(v3_0.getLong(5));
                        v4_4.setAppVersion(v3_0.getString(6));
                        v4_4.zziv(v3_0.getString(7));
                        v4_4.zzao(v3_0.getLong(8));
                        v4_4.zzap(v3_0.getLong(9));
                    } catch (com.google.android.gms.internal.zzcho v0_4) {
                        this.zzawy().zzazd().zze("Error querying app. appId", com.google.android.gms.internal.zzchm.zzjk(p30), v0_4);
                        if (v3_0 != 0) {
                            v3_0.close();
                        }
                        return 0;
                    }
                    if (v3_0.isNull(10)) {
                        v6_1 = 1;
                    } else {
                        if (v3_0.getInt(10) == 0) {
                            v6_1 = 0;
                        } else {
                        }
                    }
                    String v6_16;
                    v4_4.setMeasurementEnabled(v6_1);
                    v4_4.zzat(v3_0.getLong(11));
                    v4_4.zzau(v3_0.getLong(12));
                    v4_4.zzav(v3_0.getLong(13));
                    v4_4.zzaw(v3_0.getLong(14));
                    v4_4.zzar(v3_0.getLong(15));
                    v4_4.zzas(v3_0.getLong(16));
                    if (!v3_0.isNull(17)) {
                        v6_16 = ((long) v3_0.getInt(17));
                    } else {
                        v6_16 = -2147483648;
                    }
                    String v6_26;
                    v4_4.zzan(v6_16);
                    v4_4.zziu(v3_0.getString(18));
                    v4_4.zzay(v3_0.getLong(19));
                    v4_4.zzax(v3_0.getLong(20));
                    v4_4.zziw(v3_0.getString(21));
                    if (!v3_0.isNull(22)) {
                        v6_26 = v3_0.getLong(22);
                    } else {
                        v6_26 = 0;
                    }
                    v4_4.zzaz(v6_26);
                    if (!v3_0.isNull(23)) {
                        if (v3_0.getInt(23) == 0) {
                            v0_0 = 0;
                        } else {
                        }
                    }
                    v4_4.zzbl(v0_0);
                    v4_4.zzaxb();
                    if (v3_0.moveToNext()) {
                        this.zzawy().zzazd().zzj("Got multiple records for app, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(p30));
                    }
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return v4_4;
                } else {
                    if (v3_0 != 0) {
                        v3_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcho v0_5) {
                if (v3_0 != 0) {
                    v3_0.close();
                }
                throw v0_5;
            } catch (com.google.android.gms.internal.zzcho v0_4) {
            }
        } catch (com.google.android.gms.internal.zzcho v0_5) {
            v3_0 = 0;
        } catch (com.google.android.gms.internal.zzcho v0_4) {
            v3_0 = 0;
        } catch (com.google.android.gms.internal.zzcho v0_5) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzja() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzja(String p14)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p14);
        this.zzve();
        this.zzxf();
        android.database.sqlite.SQLiteException v0_2 = new java.util.ArrayList();
        try {
            int v2_1 = this.getWritableDatabase();
            String v6_1 = new String[1];
            v6_1[0] = p14;
            int v2_0 = v2_1.query("user_attributes", new String[] {"name", "origin", "set_timestamp", "value"}), "app_id=?", v6_1, 0, 0, "rowid", "1000");
            try {
                if (!v2_0.moveToFirst()) {
                    if (v2_0 != 0) {
                        v2_0.close();
                    }
                    return v0_2;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzawy().zzazd().zze("Error querying user properties. appId", com.google.android.gms.internal.zzchm.zzjk(p14), v0_0);
                if (v2_0 != 0) {
                    v2_0.close();
                }
                return 0;
            }
            do {
                String v7_2 = v2_0.getString(0);
                boolean v3_1 = v2_0.getString(1);
                if (!v3_1) {
                    v3_1 = "";
                }
                String v6_2 = v3_1;
                long v8_1 = v2_0.getLong(2);
                Object v10_1 = this.zza(v2_0, 3);
                if (v10_1 != null) {
                    boolean v3_4 = new com.google.android.gms.internal.zzclp;
                    v3_4(p14, v6_2, v7_2, v8_1, v10_1);
                    v0_2.add(v3_4);
                } else {
                    this.zzawy().zzazd().zzj("Read invalid user property value, ignoring it. appId", com.google.android.gms.internal.zzchm.zzjk(p14));
                }
            } while(v2_0.moveToNext());
            if (v2_0 != 0) {
                v2_0.close();
            }
            return v0_2;
        } catch (Throwable v14_1) {
            v2_0 = 0;
            if (v2_0 != 0) {
                v2_0.close();
            }
            throw v14_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v2_0 = 0;
        } catch (Throwable v14_1) {
        }
    }

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


    public final java.util.List zzg(String p22, String p23, String p24)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p22);
        this.zzve();
        this.zzxf();
        android.database.sqlite.SQLiteException v0_3 = new java.util.ArrayList();
        android.database.Cursor v1 = 0;
        try {
            android.database.Cursor v2_4 = new java.util.ArrayList(3);
            try {
                String v5_1;
                v2_4.add(p22);
                boolean v4_4 = new StringBuilder("app_id=?");
                try {
                    if (android.text.TextUtils.isEmpty(p23)) {
                        v5_1 = p23;
                    } else {
                        v5_1 = p23;
                        v2_4.add(p23);
                        v4_4.append(" and origin=?");
                    }
                } catch (android.database.sqlite.SQLiteException v0_0) {
                    android.database.Cursor v2_3 = 0;
                    this.zzawy().zzazd().zzd("(2)Error querying user properties", com.google.android.gms.internal.zzchm.zzjk(p22), v5_1, v0_0);
                    if (v2_3 != null) {
                        v2_3.close();
                    }
                    return 0;
                }
                if (!android.text.TextUtils.isEmpty(p24)) {
                    v2_4.add(String.valueOf(p24).concat("*"));
                    v4_4.append(" and name glob ?");
                }
                String v6_9 = new String[v2_4.size()];
                v2_3 = this.getWritableDatabase().query("user_attributes", new String[] {"name", "set_timestamp", "value", "origin"}), v4_4.toString(), ((String[]) v2_4.toArray(v6_9)), 0, 0, "rowid", "1001");
                try {
                    if (!v2_3.moveToFirst()) {
                        if (v2_3 != null) {
                            v2_3.close();
                        }
                        return v0_3;
                    }
                } catch (android.database.sqlite.SQLiteException v0_1) {
                    v1 = v2_3;
                    if (v1 != null) {
                        v1.close();
                    }
                    throw v0_1;
                } catch (android.database.sqlite.SQLiteException v0_0) {
                }
                while (v0_3.size() < 1000) {
                    String v7_2 = v2_3.getString(0);
                    long v8_1 = v2_3.getLong(1);
                    try {
                        Object v10 = this.zza(v2_3, 2);
                        String v13_1 = v2_3.getString(3);
                        try {
                            if (v10 != null) {
                                com.google.android.gms.internal.zzclp v15_1 = new com.google.android.gms.internal.zzclp;
                                v15_1(p22, v13_1, v7_2, v8_1, v10);
                                v0_3.add(v15_1);
                            } else {
                                this.zzawy().zzazd().zzd("(2)Read invalid user property value, ignoring it", com.google.android.gms.internal.zzchm.zzjk(p22), v13_1, p24);
                            }
                            if (v2_3.moveToNext()) {
                                v5_1 = v13_1;
                            }
                            if (v2_3 != null) {
                                v2_3.close();
                            }
                            return v0_3;
                        } catch (android.database.sqlite.SQLiteException v0_0) {
                            v5_1 = v13_1;
                        }
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                    }
                }
                this.zzawy().zzazd().zzj("Read more than the max allowed user properties, ignoring excess", Integer.valueOf(1000));
            } catch (android.database.sqlite.SQLiteException v0_0) {
                v5_1 = p23;
            }
        } catch (android.database.sqlite.SQLiteException v0_1) {
        } catch (android.database.sqlite.SQLiteException v0_0) {
            String v11 = p22;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzc() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzc(String p25, String[] p26)
    {
        this.zzve();
        this.zzxf();
        java.util.List v0_4 = new java.util.ArrayList();
        try {
            com.google.android.gms.internal.zzcln v6 = "name";
            int v8 = "active";
            String v10 = "trigger_timeout";
            long v12 = "creation_timestamp";
            com.google.android.gms.internal.zzcha v14 = "triggered_timestamp";
            android.database.Cursor v1 = this.getWritableDatabase().query("conditional_properties", new String[] {"app_id", "expired_event"}), p25, p26, 0, 0, "rowid", "1001");
        } catch (java.util.List v0_2) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_2;
        } catch (java.util.List v0_0) {
            this.zzawy().zzazd().zzj("Error querying conditional user property value", v0_0);
            java.util.List v0_1 = java.util.Collections.emptyList();
            if (v1 != null) {
                v1.close();
            }
            return v0_1;
        }
        if (!v1.moveToFirst()) {
            if (v1 != null) {
                v1.close();
            }
            return v0_4;
        }
        while (v0_4.size() < 1000) {
            boolean v2_8 = 0;
            String v4_2 = v1.getString(0);
            com.google.android.gms.internal.zzcha v11_1 = v1.getString(1);
            com.google.android.gms.internal.zzcln v6_2 = v1.getString(2);
            int v9_2 = this.zza(v1, 3);
            if (v1.getInt(4) != 0) {
                v2_8 = 1;
            }
            long v12_1 = v1.getString(5);
            long v13 = v1.getLong(6);
            com.google.android.gms.internal.zzcha v16_2 = ((com.google.android.gms.internal.zzcha) this.zzawu().zzb(v1.getBlob(7), com.google.android.gms.internal.zzcha.CREATOR));
            com.google.android.gms.internal.zzcha v17_1 = v1.getLong(8);
            com.google.android.gms.internal.zzcha v19_1 = ((com.google.android.gms.internal.zzcha) this.zzawu().zzb(v1.getBlob(9), com.google.android.gms.internal.zzcha.CREATOR));
            long v7_4 = v1.getLong(10);
            long v20 = v1.getLong(11);
            com.google.android.gms.internal.zzcha v22_0 = ((com.google.android.gms.internal.zzcha) this.zzawu().zzb(v1.getBlob(12), com.google.android.gms.internal.zzcha.CREATOR));
            com.google.android.gms.internal.zzcln v23 = new com.google.android.gms.internal.zzcln;
            v23(v6_2, v7_4, v9_2, v11_1);
            String v10_1 = new com.google.android.gms.internal.zzcgl;
            boolean v2_0 = v10_1;
            v10_1(v4_2, v11_1, v23, v17_1, v2_8, v12_1, v16_2, v13, v19_1, v20, v22_0);
            v0_4.add(v2_0);
            if (!v1.moveToNext()) {
            }
            if (v1 != null) {
                v1.close();
            }
            return v0_4;
        }
        this.zzawy().zzazd().zzj("Read more than the max allowed conditional properties, ignoring extra", Integer.valueOf(1000));
    }

Method com.google.android.gms.internal.zzcgo.zzak() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzak(String p13, String p14)
    {
        this.zzxf();
        this.zzve();
        com.google.android.gms.common.internal.zzbq.zzgm(p13);
        com.google.android.gms.common.internal.zzbq.zzgm(p14);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("property_filters", new String[] {"audience_id", "data"}), "app_id=? AND property_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzawy().zzazd().zze("Database error querying filters. appId", com.google.android.gms.internal.zzchm.zzjk(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.zzfjj.zzn(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.zzcho v2_2 = new com.google.android.gms.internal.zzclv();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzaj() calling method android.database.sqlite.SQLiteDatabase.query()


    final java.util.Map zzaj(String p13, String p14)
    {
        this.zzxf();
        this.zzve();
        com.google.android.gms.common.internal.zzbq.zzgm(p13);
        com.google.android.gms.common.internal.zzbq.zzgm(p14);
        android.database.sqlite.SQLiteException v0_2 = new android.support.v4.util.ArrayMap();
        Integer v1_8 = this.getWritableDatabase();
        try {
            String[] v5_1 = new String[2];
            v5_1[0] = p13;
            v5_1[1] = p14;
            int v14_1 = v1_8.query("event_filters", new String[] {"audience_id", "data"}), "app_id=? AND event_name=?", v5_1, 0, 0, 0);
            try {
                if (!v14_1.moveToFirst()) {
                    java.util.Map v13_3 = java.util.Collections.emptyMap();
                    if (v14_1 != 0) {
                        v14_1.close();
                    }
                    return v13_3;
                }
            } catch (android.database.sqlite.SQLiteException v0_0) {
                this.zzawy().zzazd().zze("Database error querying filters. appId", com.google.android.gms.internal.zzchm.zzjk(p13), v0_0);
                if (v14_1 != 0) {
                    v14_1.close();
                }
                return 0;
            }
            do {
                Integer v1_1 = v14_1.getBlob(1);
                Integer v1_2 = com.google.android.gms.internal.zzfjj.zzn(v1_1, 0, v1_1.length);
                com.google.android.gms.internal.zzcho v2_2 = new com.google.android.gms.internal.zzcls();
                v2_2.zza(v1_2);
                Integer v1_4 = v14_1.getInt(0);
                java.util.ArrayList v3_5 = ((java.util.List) v0_2.get(Integer.valueOf(v1_4)));
                if (v3_5 == null) {
                    v3_5 = new java.util.ArrayList();
                    v0_2.put(Integer.valueOf(v1_4), v3_5);
                }
                v3_5.add(v2_2);
            } while(v14_1.moveToNext());
            if (v14_1 != 0) {
                v14_1.close();
            }
            return v0_2;
        } catch (java.util.Map v13_1) {
            v14_1 = 0;
            if (v14_1 != 0) {
                v14_1.close();
            }
            throw v13_1;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v14_1 = 0;
        } catch (java.util.Map v13_1) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzah() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcgl zzah(String p30, String p31)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p30);
        com.google.android.gms.common.internal.zzbq.zzgm(p31);
        this.zzve();
        this.zzxf();
        try {
            int v9_1 = this.getWritableDatabase();
            String[] v13 = "active";
            String v15 = "trigger_timeout";
            com.google.android.gms.internal.zzcln v17 = "creation_timestamp";
            String v19 = "triggered_timestamp";
            v13 = new String[2];
            v13[0] = p30;
            v13[1] = p31;
            int v9_0 = v9_1.query("conditional_properties", new String[] {"origin", "expired_event"}), "app_id=? and name=?", v13, 0, 0, 0);
            try {
                if (v9_0.moveToFirst()) {
                    String v16_1 = v9_0.getString(0);
                    try {
                        int v20;
                        Object v5 = this.zza(v9_0, 1);
                    } catch (com.google.android.gms.internal.zzcgl v0_1) {
                        this.zzawy().zzazd().zzd("Error querying conditional property", com.google.android.gms.internal.zzchm.zzjk(p30), this.zzawt().zzjj(p31), v0_1);
                        if (v9_0 != 0) {
                            v9_0.close();
                        }
                        return 0;
                    }
                    if (v9_0.getInt(2) == 0) {
                        v20 = 0;
                    } else {
                        v20 = 1;
                    }
                    String v21_1 = v9_0.getString(3);
                    long v23 = v9_0.getLong(4);
                    com.google.android.gms.internal.zzcha v22_1 = ((com.google.android.gms.internal.zzcha) this.zzawu().zzb(v9_0.getBlob(5), com.google.android.gms.internal.zzcha.CREATOR));
                    long v18 = v9_0.getLong(6);
                    com.google.android.gms.internal.zzcha v25_1 = ((com.google.android.gms.internal.zzcha) this.zzawu().zzb(v9_0.getBlob(7), com.google.android.gms.internal.zzcha.CREATOR));
                    Object v3_3 = v9_0.getLong(8);
                    long v26 = v9_0.getLong(9);
                    com.google.android.gms.internal.zzcha v28_1 = ((com.google.android.gms.internal.zzcha) this.zzawu().zzb(v9_0.getBlob(10), com.google.android.gms.internal.zzcha.CREATOR));
                    v17 = new com.google.android.gms.internal.zzcln;
                    v17(p31, v3_3, v5, v16_1);
                    com.google.android.gms.internal.zzcgl v0_0 = new com.google.android.gms.internal.zzcgl;
                    v0_0(p30, v16_1, v17, v18, v20, v21_1, v22_1, v23, v25_1, v26, v28_1);
                    if (v9_0.moveToNext()) {
                        this.zzawy().zzazd().zze("Got multiple records for conditional property, expected one", com.google.android.gms.internal.zzchm.zzjk(p30), this.zzawt().zzjj(p31));
                    }
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return v0_0;
                } else {
                    if (v9_0 != 0) {
                        v9_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcgl v0_2) {
                if (v9_0 != 0) {
                    v9_0.close();
                }
                throw v0_2;
            } catch (com.google.android.gms.internal.zzcgl v0_1) {
            }
        } catch (com.google.android.gms.internal.zzcgl v0_2) {
            v9_0 = 0;
        } catch (com.google.android.gms.internal.zzcgl v0_1) {
            v9_0 = 0;
        } catch (com.google.android.gms.internal.zzcgl v0_2) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzag() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzclp zzag(String p19, String p20)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p19);
        com.google.android.gms.common.internal.zzbq.zzgm(p20);
        this.zzve();
        this.zzxf();
        try {
            int v10_1 = this.getWritableDatabase();
            String[] v14 = new String[2];
            v14[0] = p19;
            v14[1] = p20;
            int v10_0 = v10_1.query("user_attributes", new String[] {"set_timestamp", "value", "origin"}), "app_id=? and name=?", v14, 0, 0, 0);
            try {
                if (v10_0.moveToFirst()) {
                    try {
                        android.database.sqlite.SQLiteException v0_3 = new com.google.android.gms.internal.zzclp;
                        v0_3(p19, v10_0.getString(2), p20, v10_0.getLong(0), this.zza(v10_0, 1));
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        this.zzawy().zzazd().zzd("Error querying user property. appId", com.google.android.gms.internal.zzchm.zzjk(p19), this.zzawt().zzjj(p20), v0_1);
                        if (v10_0 != 0) {
                            v10_0.close();
                        }
                        return 0;
                    }
                    if (v10_0.moveToNext()) {
                        this.zzawy().zzazd().zzj("Got multiple records for user property, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(p19));
                    }
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return v0_3;
                } else {
                    if (v10_0 != 0) {
                        v10_0.close();
                    }
                    return 0;
                }
            } catch (android.database.sqlite.SQLiteException v0_2) {
                if (v10_0 != 0) {
                    v10_0.close();
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException v0_1) {
            }
        } catch (android.database.sqlite.SQLiteException v0_2) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v10_0 = 0;
        } catch (android.database.sqlite.SQLiteException v0_2) {
        }
    }

Method com.google.android.gms.internal.zzcgo.zzae() calling method android.database.sqlite.SQLiteDatabase.query()


    public final com.google.android.gms.internal.zzcgw zzae(String p22, String p23)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p22);
        com.google.android.gms.common.internal.zzbq.zzgm(p23);
        this.zzve();
        this.zzxf();
        try {
            String v1_9 = this.getWritableDatabase();
            String[] v5 = "last_fire_timestamp";
            int v7 = "last_sampled_complex_event_id";
            v5 = new String[2];
            int v9_1 = 0;
            v5[0] = p22;
            v5[1] = p23;
            Boolean v14_0 = v1_9.query("events", new String[] {"lifetime_count", "last_exempt_from_sampling"}), "app_id=? and name=?", v5, 0, 0, 0);
            try {
                if (v14_0.moveToFirst()) {
                    com.google.android.gms.internal.zzcho v0_6;
                    long v4_3 = v14_0.getLong(0);
                    long v6_1 = v14_0.getLong(1);
                    long v11 = v14_0.getLong(2);
                    if (!v14_0.isNull(3)) {
                        v0_6 = v14_0.getLong(3);
                    } else {
                        v0_6 = 0;
                    }
                    com.google.android.gms.internal.zzcho v0_9;
                    android.database.Cursor v17_1 = v0_6;
                    if (!v14_0.isNull(4)) {
                        v0_9 = Long.valueOf(v14_0.getLong(4));
                    } else {
                        v0_9 = 0;
                    }
                    Long v13;
                    if (!v14_0.isNull(5)) {
                        v13 = Long.valueOf(v14_0.getLong(5));
                    } else {
                        v13 = 0;
                    }
                    Boolean v19_0;
                    if (v14_0.isNull(6)) {
                        v19_0 = 0;
                    } else {
                        if (v14_0.getLong(6) == 1) {
                            v9_1 = 1;
                        }
                        v19_0 = Boolean.valueOf(v9_1);
                    }
                    com.google.android.gms.internal.zzcgw v20 = new com.google.android.gms.internal.zzcgw;
                    android.database.Cursor v17_0 = v14_0;
                    try {
                        v20(p22, p23, v4_3, v6_1, v11, v17_1, v0_9, v13, v19_0);
                    } catch (com.google.android.gms.internal.zzcho v0_2) {
                        this.zzawy().zzazd().zzd("Error querying events. appId", com.google.android.gms.internal.zzchm.zzjk(p22), this.zzawt().zzjh(p23), v0_2);
                        if (v17_0 != null) {
                            v17_0.close();
                        }
                        return 0;
                    }
                    if (v17_0.moveToNext()) {
                        this.zzawy().zzazd().zzj("Got multiple records for event aggregates, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(p22));
                    }
                    if (v17_0 != null) {
                        v17_0.close();
                    }
                    return v20;
                } else {
                    if (v14_0 != null) {
                        v14_0.close();
                    }
                    return 0;
                }
            } catch (com.google.android.gms.internal.zzcho v0_3) {
                v17_0 = v14_0;
                if (v17_0 != null) {
                    v17_0.close();
                }
                throw v0_3;
            } catch (com.google.android.gms.internal.zzcho v0_2) {
                v17_0 = v14_0;
            }
        } catch (com.google.android.gms.internal.zzcho v0_3) {
            v17_0 = 0;
        } catch (com.google.android.gms.internal.zzcho v0_2) {
            v17_0 = 0;
        } catch (com.google.android.gms.internal.zzcho v0_3) {
        }
    }

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


    public final com.google.android.gms.internal.zzcgp zza(long p15, String p17, boolean p18, boolean p19, boolean p20, boolean p21, boolean p22)
    {
        com.google.android.gms.common.internal.zzbq.zzgm(p17);
        this.zzve();
        this.zzxf();
        com.google.android.gms.internal.zzcho v1_1 = new String[1];
        v1_1[0] = p17;
        com.google.android.gms.internal.zzcgp v3_1 = new com.google.android.gms.internal.zzcgp();
        try {
            android.database.sqlite.SQLiteDatabase v13 = this.getWritableDatabase();
            String[] v9 = "daily_public_events_count";
            int v11 = "daily_error_events_count";
            v9 = new String[1];
            v9[0] = p17;
            android.database.Cursor v4 = v13.query("apps", new String[] {"day", "daily_realtime_events_count"}), "app_id=?", v9, 0, 0, 0);
        } catch (android.content.ContentValues v0_8) {
            if (v4 != null) {
                v4.close();
            }
            throw v0_8;
        } catch (android.content.ContentValues v0_7) {
            this.zzawy().zzazd().zze("Error updating daily counts. appId", com.google.android.gms.internal.zzchm.zzjk(p17), v0_7);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
        if (v4.moveToFirst()) {
            if (v4.getLong(0) == p15) {
                v3_1.zziyy = v4.getLong(1);
                v3_1.zziyx = v4.getLong(2);
                v3_1.zziyz = v4.getLong(3);
                v3_1.zziza = v4.getLong(4);
                v3_1.zzizb = v4.getLong(5);
            }
            if (p18) {
                v3_1.zziyy = (v3_1.zziyy + 1);
            }
            if (p19) {
                v3_1.zziyx = (v3_1.zziyx + 1);
            }
            if (p20) {
                v3_1.zziyz = (v3_1.zziyz + 1);
            }
            if (p21) {
                v3_1.zziza = (v3_1.zziza + 1);
            }
            if (p22) {
                v3_1.zzizb = (v3_1.zzizb + 1);
            }
            android.content.ContentValues v0_10 = new android.content.ContentValues();
            v0_10.put("day", Long.valueOf(p15));
            v0_10.put("daily_public_events_count", Long.valueOf(v3_1.zziyx));
            v0_10.put("daily_events_count", Long.valueOf(v3_1.zziyy));
            v0_10.put("daily_conversions_count", Long.valueOf(v3_1.zziyz));
            v0_10.put("daily_error_events_count", Long.valueOf(v3_1.zziza));
            v0_10.put("daily_realtime_events_count", Long.valueOf(v3_1.zzizb));
            v13.update("apps", v0_10, "app_id=?", v1_1);
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        } else {
            this.zzawy().zzazf().zzj("Not updating daily counts, app is not known. appId", com.google.android.gms.internal.zzchm.zzjk(p17));
            if (v4 != null) {
                v4.close();
            }
            return v3_1;
        }
    }

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


    private static boolean zza(com.google.android.gms.internal.zzchm p10, android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        if (p10 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        } else {
            try {
                String[] v6 = new String[1];
                v6[0] = p12;
                android.database.Cursor v0 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
                com.google.android.gms.internal.zzcho v10_2 = v0.moveToFirst();
            } catch (com.google.android.gms.internal.zzcho v10_5) {
                if (v0 != null) {
                    v0.close();
                }
                throw v10_5;
            } catch (android.database.sqlite.SQLiteException v11_2) {
                v10_2.zzazf().zze("Error querying for table", p12, v11_2);
                if (v0 != null) {
                    v0.close();
                }
                return 0;
            }
            if (v0 != null) {
                v0.close();
            }
            return v10_2;
        }
    }

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


    public final java.util.List zzq(long p12)
    {
        this.zzxf();
        com.google.android.gms.analytics.zzj.zzve();
        String v0_0 = this.getWritableDatabase();
        try {
            String v13_3 = ((Integer) com.google.android.gms.internal.zzarl.zzdwd.get()).intValue();
            p12 = v0_0.query("properties", new String[] {"cid", "tid", "adid", "hits_count", "params"}), "app_uid=?", new String[] {"0"}), 0, 0, 0, String.valueOf(v13_3));
            String v0_2 = new java.util.ArrayList();
        } catch (String v13_7) {
            if (p12 != null) {
                p12.close();
            }
            throw v13_7;
        } catch (String v13_6) {
            this.zze("Error loading hits from the database", v13_6);
            throw v13_6;
        }
        if (p12.moveToFirst()) {
            do {
                int v7_1;
                String v5_1 = p12.getString(0);
                String v6_1 = p12.getString(1);
                if (p12.getInt(2) == 0) {
                    v7_1 = 0;
                } else {
                    v7_1 = 1;
                }
                long v8_1 = ((long) p12.getInt(3));
                java.util.Map vtmp15 = this.zzea(p12.getString(4));
                if (android.text.TextUtils.isEmpty(v5_1)) {
                    this.zzc("Read property with empty client id or tracker id", v5_1, v6_1);
                } else {
                    if (!android.text.TextUtils.isEmpty(v6_1)) {
                        boolean v1_11 = new com.google.android.gms.internal.zzaqf;
                        v1_11(0, v5_1, v6_1, v7_1, v8_1, vtmp15);
                        v0_2.add(v1_11);
                    } else {
                    }
                }
            } while(p12.moveToNext());
        }
        if (v0_2.size() >= v13_3) {
            this.zzdx("Sending hits to too many properties. Campaign report might be incorrect");
        }
        if (p12 != null) {
            p12.close();
        }
        return v0_2;
    }

Method com.google.android.gms.internal.zzaql.zzo() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzo(long p14)
    {
        android.database.Cursor v2_2;
        if (p14 < 0) {
            v2_2 = 0;
        } else {
            v2_2 = 1;
        }
        com.google.android.gms.common.internal.zzbq.checkArgument(v2_2);
        com.google.android.gms.analytics.zzj.zzve();
        this.zzxf();
        com.google.android.gms.internal.zzarq v3_0 = this.getWritableDatabase();
        try {
            int v11_0 = new Object[1];
            v11_0[0] = "hit_id";
            android.database.Cursor v2_1 = v3_0.query("hits2", new String[] {"hit_id", "hit_time", "hit_string", "hit_url", "hit_app_id"}), 0, 0, 0, 0, String.format("%s ASC", v11_0), Long.toString(p14));
            android.database.sqlite.SQLiteException v14_2 = new java.util.ArrayList();
        } catch (android.database.sqlite.SQLiteException v14_4) {
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v14_4;
        } catch (android.database.sqlite.SQLiteException v14_3) {
            this.zze("Error loading hits from the database", v14_3);
            throw v14_3;
        }
        if (v2_1.moveToFirst()) {
            do {
                String v15_4 = new com.google.android.gms.internal.zzarq;
                v15_4(this, this.zzdz(v2_1.getString(2)), v2_1.getLong(1), com.google.android.gms.internal.zzasl.zzel(v2_1.getString(3)), v2_1.getLong(0), v2_1.getInt(4));
                v14_2.add(v15_4);
            } while(v2_1.moveToNext());
        }
        if (v2_1 != null) {
            v2_1.close();
        }
        return v14_2;
    }

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


    private final java.util.List zzn(long p14)
    {
        com.google.android.gms.analytics.zzj.zzve();
        this.zzxf();
        if (p14 > 0) {
            android.database.sqlite.SQLiteDatabase v0_1 = this.getWritableDatabase();
            java.util.ArrayList v9_1 = new java.util.ArrayList();
            try {
                String v8_1 = new Object[1];
                v8_1[0] = "hit_id";
                android.database.Cursor v10 = v0_1.query("hits2", new String[] {"hit_id"}), 0, 0, 0, 0, String.format("%s ASC", v8_1), Long.toString(p14));
            } catch (boolean v14_3) {
                if (v10 != null) {
                    v10.close();
                }
                throw v14_3;
            } catch (boolean v14_2) {
                this.zzd("Error selecting hit ids", v14_2);
                if (v10 == null) {
                    return v9_1;
                } else {
                    v10.close();
                    return v9_1;
                }
            }
            if (v10.moveToFirst()) {
                do {
                    v9_1.add(Long.valueOf(v10.getLong(0)));
                } while(v10.moveToNext());
            }
            if (v10 == null) {
                return v9_1;
            } else {
            }
        } else {
            return java.util.Collections.emptyList();
        }
    }

Method com.google.android.gms.tagmanager.zzec.zzeq() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzeq(int p17)
    {
        boolean v1_1 = new java.util.ArrayList();
        int v0_12 = this.zzlk("Error opening database for peekHits");
        if (v0_12 != 0) {
            try {
                String v10_0 = new Object[1];
                int v14 = 0;
                v10_0[0] = "hit_id";
                android.database.Cursor v12 = v0_12.query("gtm_hits", new String[] {"hit_id", "hit_time", "hit_first_send_time"}), 0, 0, 0, 0, String.format("%s ASC", v10_0), Integer.toString(40));
                java.util.ArrayList v11_5 = new java.util.ArrayList();
                try {
                    if (v12.moveToFirst()) {
                        try {
                            do {
                                boolean v1_14 = new com.google.android.gms.tagmanager.zzbx;
                                v1_14(v12.getLong(0), v12.getLong(1), v12.getLong(2));
                                v11_5.add(v1_14);
                            } while(v12.moveToNext());
                        } catch (int v0_11) {
                            v1_1 = v11_5;
                            int v0_14 = String.valueOf(v0_11.getMessage());
                            if (v0_14.length() == 0) {
                                int v0_16 = new String("Error in peekHits fetching hitIds: ");
                            } else {
                                v0_16 = "Error in peekHits fetching hitIds: ".concat(v0_14);
                            }
                            com.google.android.gms.tagmanager.zzdj.zzcu(v0_16);
                            if (v12 != null) {
                                v12.close();
                            }
                            return v1_1;
                        }
                        if (!v12.moveToNext()) {
                        }
                    }
                } catch (int v0_11) {
                    v1_1 = v11_5;
                }
                if (v12 != null) {
                    v12.close();
                }
                try {
                    int v3_10 = new Object[1];
                    v3_10[0] = "hit_id";
                    String v15_0 = v11_5;
                    java.util.ArrayList v11_6 = Integer.toString(40);
                    try {
                        v12 = v0_12.query("gtm_hits", new String[] {"hit_id", "hit_url"}), 0, 0, 0, 0, String.format("%s ASC", v3_10), v11_6);
                    } catch (int v0_2) {
                        int v0_4 = String.valueOf(v0_2.getMessage());
                        if (v0_4.length() == 0) {
                            int v0_6 = new String("Error in peekHits fetching hit url: ");
                        } else {
                            v0_6 = "Error in peekHits fetching hit url: ".concat(v0_4);
                        }
                        com.google.android.gms.tagmanager.zzdj.zzcu(v0_6);
                        int v0_8 = new java.util.ArrayList();
                        java.util.ArrayList v11_1 = ((java.util.ArrayList) v15_0);
                        boolean v1_11 = v11_1.size();
                        int v3_3 = 0;
                    }
                    if (v12.moveToFirst()) {
                        int v0_1 = 0;
                        do {
                            if (((android.database.sqlite.SQLiteCursor) v12).getWindow().getNumRows() <= 0) {
                                int v3_0 = new Object[1];
                                v3_0[0] = Long.valueOf(((com.google.android.gms.tagmanager.zzbx) v15_0.get(v0_1)).zzbey());
                                com.google.android.gms.tagmanager.zzdj.zzcu(String.format("HitString for hitId %d too large.  Hit will be deleted.", v3_0));
                            } else {
                                ((com.google.android.gms.tagmanager.zzbx) v15_0.get(v0_1)).zzlp(v12.getString(1));
                            }
                            v0_1++;
                        } while(v12.moveToNext());
                    }
                    if (v12 != null) {
                        v12.close();
                    }
                    return v15_0;
                } catch (int v0_9) {
                    if (v12 != null) {
                        v12.close();
                    }
                    throw v0_9;
                } catch (int v0_2) {
                    v15_0 = v11_6;
                }
            } catch (int v0_17) {
                if (v12 != null) {
                    v12.close();
                }
                throw v0_17;
            } catch (int v0_11) {
            }
        } else {
            return v1_1;
        }
    }

Method com.google.android.gms.tagmanager.zzec.zzep() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzep(int p14)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        if (p14 > null) {
            String v2_1 = this.zzlk("Error opening database for peekHitIds.");
            if (v2_1 != null) {
                try {
                    String v10_1 = new Object[1];
                    v10_1[0] = "hit_id";
                    android.database.Cursor v1_0 = v2_1.query("gtm_hits", new String[] {"hit_id"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p14));
                } catch (String v14_7) {
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v14_7;
                } catch (String v14_2) {
                    String v14_4 = String.valueOf(v14_2.getMessage());
                    if (v14_4.length() == 0) {
                        String v14_6 = new String("Error in peekHits fetching hitIds: ");
                    } else {
                        v14_6 = "Error in peekHits fetching hitIds: ".concat(v14_4);
                    }
                    com.google.android.gms.tagmanager.zzdj.zzcu(v14_6);
                    if (v1_0 == null) {
                        return v0_1;
                    } else {
                        v1_0.close();
                        return v0_1;
                    }
                }
                if (v1_0.moveToFirst()) {
                    do {
                        v0_1.add(String.valueOf(v1_0.getLong(0)));
                    } while(v1_0.moveToNext());
                }
                if (v1_0 == null) {
                    return v0_1;
                } else {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdj.zzcu("Invalid maxHits specified. Skipping");
            return v0_1;
        }
    }

Method com.google.android.gms.tagmanager.zzec.zzbfm() calling method android.database.sqlite.SQLiteDatabase.query()


    private final int zzbfm()
    {
        String v1_0 = this.zzlk("Error opening database for getNumStoredHits.");
        if (v1_0 != null) {
            try {
                android.database.Cursor v9 = v1_0.query("gtm_hits", new String[] {"hit_id", "hit_first_send_time"}), "hit_first_send_time=0", 0, 0, 0, 0);
                Throwable v0_1 = v9.getCount();
            } catch (Throwable v0_2) {
                if (v9 != null) {
                    v9.close();
                }
                throw v0_2;
            }
            if (v9 == null) {
                return v0_1;
            } else {
                v9.close();
                return v0_1;
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzek() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzek(int p14)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        if (p14 > null) {
            String v2_1 = this.zzlk("Error opening database for peekEntryIds.");
            if (v2_1 != null) {
                try {
                    String v10_1 = new Object[1];
                    v10_1[0] = "ID";
                    android.database.Cursor v1_0 = v2_1.query("datalayer", new String[] {"ID"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p14));
                } catch (String v14_7) {
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v14_7;
                } catch (String v14_2) {
                    String v14_4 = String.valueOf(v14_2.getMessage());
                    if (v14_4.length() == 0) {
                        String v14_6 = new String("Error in peekEntries fetching entryIds: ");
                    } else {
                        v14_6 = "Error in peekEntries fetching entryIds: ".concat(v14_4);
                    }
                    com.google.android.gms.tagmanager.zzdj.zzcu(v14_6);
                    if (v1_0 == null) {
                        return v0_1;
                    } else {
                        v1_0.close();
                        return v0_1;
                    }
                }
                if (v1_0.moveToFirst()) {
                    do {
                        v0_1.add(String.valueOf(v1_0.getLong(0)));
                    } while(v1_0.moveToNext());
                }
                if (v1_0 == null) {
                    return v0_1;
                } else {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdj.zzcu("Invalid maxEntries specified. Skipping.");
            return v0_1;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzbem() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzbem()
    {
        android.database.Cursor v1_1 = this.zzlk("Error opening database for loadSerialized.");
        Throwable v0_3 = new java.util.ArrayList();
        if (v1_1 != null) {
            android.database.Cursor v1_0 = v1_1.query("datalayer", new String[] {"key", "value"}), 0, 0, 0, 0, "ID", 0);
            try {
                while (v1_0.moveToNext()) {
                    v0_3.add(new com.google.android.gms.tagmanager.zzay(v1_0.getString(0), v1_0.getBlob(1)));
                }
            } catch (Throwable v0_1) {
                v1_0.close();
                throw v0_1;
            }
            v1_0.close();
            return v0_3;
        } else {
            return v0_3;
        }
    }

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


    public final java.util.Set zze(java.util.Set p15)
    {
        long v11 = System.currentTimeMillis();
        java.util.HashSet v1_3 = com.google.android.gms.internal.zzeaa.zzr(p15);
        Object[] v3_3 = new StringBuilder(((String.valueOf("id IN (").length() + 1) + String.valueOf(v1_3).length()));
        v3_3.append("id IN (");
        v3_3.append(v1_3);
        v3_3.append(")");
        android.database.Cursor v0_2 = this.zzmlq.query(1, "trackedKeys", new String[] {"key"}), v3_3.toString(), 0, 0, 0, 0, 0);
        java.util.HashSet v1_2 = new java.util.HashSet();
        try {
            while (v0_2.moveToNext()) {
                v1_2.add(com.google.android.gms.internal.zzejg.zzpz(v0_2.getString(0)));
            }
        } catch (String v15_4) {
            v0_2.close();
            throw v15_4;
        }
        int v4_2 = (System.currentTimeMillis() - v11);
        if (this.zzmlr.zzbzl()) {
            com.google.android.gms.internal.zzejc v2_7 = this.zzmlr;
            Object[] v7_2 = new Object[3];
            v7_2[0] = Integer.valueOf(v1_2.size());
            v7_2[1] = p15.toString();
            v7_2[2] = Long.valueOf(v4_2);
            Object[] v3_6 = new Object[0];
            v2_7.zzb(String.format("Loaded %d tracked queries keys for tracked queries %s in %dms", v7_2), 0, v3_6);
        }
        v0_2.close();
        return v1_2;
    }

Method com.google.android.gms.internal.zzeaa.zzbtd() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzbtd()
    {
        android.database.Cursor v4 = "queryParams";
        com.google.android.gms.internal.zzeih v6 = "complete";
        java.io.IOException v2_1 = System.currentTimeMillis();
        v4 = this.zzmlq.query("trackedQueries", new String[] {"id", "active"}), 0, 0, 0, 0, "id");
        RuntimeException v0_1 = new java.util.ArrayList();
        try {
            while (v4.moveToNext()) {
                long v10_0 = v4.getLong(0);
                int v15_1;
                com.google.android.gms.internal.zzeik v12_2 = new com.google.android.gms.internal.zzeik(new com.google.android.gms.internal.zzedk(v4.getString(1)), com.google.android.gms.internal.zzeih.zzam(com.google.android.gms.internal.zzelh.zzqb(v4.getString(2))));
                long v13_1 = v4.getLong(3);
                if (v4.getInt(4) == 0) {
                    v15_1 = 0;
                } else {
                    v15_1 = 1;
                }
                int v16;
                if (v4.getInt(5) == 0) {
                    v16 = 0;
                } else {
                    v16 = 1;
                }
                com.google.android.gms.internal.zzehe v5_10 = new com.google.android.gms.internal.zzehe;
                v5_10(v10_0, v12_2, v13_1, v15_1, v16);
                v0_1.add(v5_10);
            }
        } catch (RuntimeException v0_5) {
            v4.close();
            throw v0_5;
        }
        com.google.android.gms.internal.zzehe v9_2 = (System.currentTimeMillis() - v2_1);
        if (this.zzmlr.zzbzl()) {
            java.io.IOException v2_4 = this.zzmlr;
            com.google.android.gms.internal.zzehe v5_1 = new Object[2];
            v5_1[0] = Integer.valueOf(v0_1.size());
            v5_1[1] = Long.valueOf(v9_2);
            com.google.android.gms.internal.zzehe v5_2 = new Object[0];
            v2_4.zzb(String.format("Loaded %d tracked queries in %dms", v5_1), 0, v5_2);
        }
        v4.close();
        return v0_1;
    }

Method com.google.android.gms.internal.zzeaa.zzbtb() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzbtb()
    {
        IllegalStateException v0_7 = System.currentTimeMillis();
        android.database.Cursor v2_0 = this.zzmlq.query("writes", new String[] {"id", "path", "type", "part", "node"}), 0, 0, 0, 0, "id, part");
        String v3_4 = new java.util.ArrayList();
        try {
            while (v2_0.moveToNext()) {
                com.google.android.gms.internal.zzegd v5_12;
                long v9_1 = v2_0.getLong(0);
                com.google.android.gms.internal.zzedk v11_2 = new com.google.android.gms.internal.zzedk(v2_0.getString(1));
                int v4_8 = v2_0.getString(2);
                if (!v2_0.isNull(3)) {
                    com.google.android.gms.internal.zzegd v5_11 = new java.util.ArrayList();
                    do {
                        v5_11.add(v2_0.getBlob(4));
                    } while((v2_0.moveToNext()) && (v2_0.getLong(0) == v9_1));
                    v2_0.moveToPrevious();
                    v5_12 = com.google.android.gms.internal.zzeaa.zzar(v5_11);
                } else {
                    v5_12 = v2_0.getBlob(4);
                }
                int v4_1;
                com.google.android.gms.internal.zzegd v5_13 = com.google.android.gms.internal.zzelh.zzqc(new String(v5_12, com.google.android.gms.internal.zzeaa.zzfhj));
                if (!"o".equals(v4_8)) {
                    if (!"m".equals(v4_8)) {
                        String v1_1;
                        String v3_6 = String.valueOf(v4_8);
                        if (v3_6.length() == 0) {
                            v1_1 = new String("Got invalid write type: ");
                        } else {
                            v1_1 = "Got invalid write type: ".concat(v3_6);
                        }
                        throw new IllegalStateException(v1_1);
                    } else {
                        v4_1 = new com.google.android.gms.internal.zzegd(v9_1, v11_2, com.google.android.gms.internal.zzecy.zzak(((java.util.Map) v5_13)));
                    }
                } else {
                    v4_1 = new com.google.android.gms.internal.zzegd;
                    v4_1(v9_1, v11_2, com.google.android.gms.internal.zzekg.zza(v5_13, com.google.android.gms.internal.zzeju.zzcaf()), 1);
                }
                v3_4.add(v4_1);
            }
        } catch (IllegalStateException v0_3) {
            v2_0.close();
            throw v0_3;
        } catch (IllegalStateException v0_2) {
            throw new RuntimeException("Failed to load writes", v0_2);
        }
        long v8_3 = (System.currentTimeMillis() - v0_7);
        if (this.zzmlr.zzbzl()) {
            IllegalStateException v0_6 = this.zzmlr;
            int v4_4 = new Object[2];
            v4_4[0] = Integer.valueOf(v3_4.size());
            v4_4[1] = Long.valueOf(v8_3);
            int v4_6 = new Object[0];
            v0_6.zzb(String.format("Loaded %d writes in %dms", v4_4), 0, v4_6);
        }
        v2_0.close();
        return v3_4;
    }

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


    private final android.database.Cursor zza(com.google.android.gms.internal.zzedk p12, String[] p13)
    {
        String v0 = com.google.android.gms.internal.zzeaa.zzc(p12);
        String v1 = com.google.android.gms.internal.zzeaa.zzpi(v0);
        String[] v7 = new String[(p12.size() + 3)];
        int v2_0 = new StringBuilder("(");
        android.database.sqlite.SQLiteDatabase v3_0 = p12;
        String v4_0 = 0;
        while (!v3_0.isEmpty()) {
            v2_0.append("path");
            v2_0.append(" = ? OR ");
            v7[v4_0] = com.google.android.gms.internal.zzeaa.zzc(v3_0);
            v3_0 = v3_0.zzbwj();
            v4_0++;
        }
        String v6;
        v2_0.append("path");
        v2_0.append(" = ?)");
        v7[v4_0] = com.google.android.gms.internal.zzeaa.zzc(com.google.android.gms.internal.zzedk.zzbwe());
        int v2_2 = String.valueOf(v2_0.toString());
        android.database.sqlite.SQLiteDatabase v3_6 = String.valueOf(" OR (path > ? AND path < ?)");
        if (v3_6.length() == 0) {
            v6 = new String(v2_2);
        } else {
            v6 = v2_2.concat(v3_6);
        }
        v7[(p12.size() + 1)] = v0;
        v7[(p12.size() + 2)] = v1;
        return this.zzmlq.query("serverCache", p13, v6, v7, 0, 0, "path");
    }

Method com.google.android.gms.internal.zzczh.zzeq() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzeq(int p24)
    {
        int v1_1 = new java.util.ArrayList();
        com.google.android.gms.internal.zzcyq v0_33 = this.zzlk("Error opening database for peekHits");
        if (v0_33 != null) {
            try {
                java.util.ArrayList v10_1 = new Object[1];
                int v14 = 0;
                v10_1[0] = "hit_id";
                String v11_3 = v0_33.query("gtm_hits", new String[] {"hit_id", "hit_time", "hit_first_send_time"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(40));
                try {
                    java.util.ArrayList v10_6 = new java.util.ArrayList();
                    try {
                        if (v11_3.moveToFirst()) {
                            try {
                                do {
                                    int v1_6 = new com.google.android.gms.internal.zzcyq;
                                    v1_6(v11_3.getLong(0), v11_3.getLong(1), v11_3.getLong(2));
                                    v10_6.add(v1_6);
                                } while(v11_3.moveToNext());
                            } catch (com.google.android.gms.internal.zzcyq v0_32) {
                                android.database.Cursor v17_0 = v11_3;
                                if (v17_0 != null) {
                                    v17_0.close();
                                }
                                throw v0_32;
                            } catch (com.google.android.gms.internal.zzcyq v0_31) {
                                v1_1 = v10_6;
                                int v12_1 = v11_3;
                                try {
                                    com.google.android.gms.internal.zzcyq v0_35 = String.valueOf(v0_31.getMessage());
                                } catch (com.google.android.gms.internal.zzcyq v0_32) {
                                    v17_0 = v12_1;
                                }
                                if (v0_35.length() == 0) {
                                    com.google.android.gms.internal.zzcyq v0_37 = new String("Error in peekHits fetching hitIds: ");
                                } else {
                                    v0_37 = "Error in peekHits fetching hitIds: ".concat(v0_35);
                                }
                                com.google.android.gms.internal.zzcze.zzcu(v0_37);
                                if (v12_1 != 0) {
                                    v12_1.close();
                                }
                                return v1_1;
                            }
                            if (!v11_3.moveToNext()) {
                            }
                        }
                    } catch (com.google.android.gms.internal.zzcyq v0_31) {
                        v1_1 = v10_6;
                        v12_1 = v11_3;
                    }
                    if (v11_3 != null) {
                        v11_3.close();
                    }
                    try {
                        int v9_0 = new Object[1];
                        v9_0[0] = "hit_id";
                        int v1_3 = v10_6;
                        java.util.ArrayList v10_0 = String.format("%s ASC", v9_0);
                        String v16_2 = v11_3;
                        String v11_0 = Integer.toString(40);
                        try {
                            v11_0 = v0_33.query("gtm_hits", new String[] {"hit_id", "hit_url", "hit_method", "hit_headers", "hit_body"}), 0, 0, 0, 0, v10_0, v11_0);
                            try {
                                if (v11_0.moveToFirst()) {
                                    int v3_2 = 0;
                                    do {
                                        if (((android.database.sqlite.SQLiteCursor) v11_0).getWindow().getNumRows() <= 0) {
                                            org.json.JSONObject v4_0 = new Object[1];
                                            v4_0[0] = Long.valueOf(((com.google.android.gms.internal.zzcyq) v1_3.get(v3_2)).zzbey());
                                            com.google.android.gms.internal.zzcze.zzcu(String.format("HitString for hitId %d too large. Hit will be deleted.", v4_0));
                                            v3_2++;
                                        } else {
                                            ((com.google.android.gms.internal.zzcyq) v1_3.get(v3_2)).zzlp(v11_0.getString(1));
                                            ((com.google.android.gms.internal.zzcyq) v1_3.get(v3_2)).zzmh(v11_0.getString(2));
                                            ((com.google.android.gms.internal.zzcyq) v1_3.get(v3_2)).zzmi(v11_0.getString(4));
                                            int v5_5;
                                            com.google.android.gms.internal.zzcyq v0_16 = v11_0.getString(3);
                                            if (v0_16 == null) {
                                                v5_5 = 0;
                                            } else {
                                                org.json.JSONObject v4_6 = new org.json.JSONObject(v0_16);
                                                com.google.android.gms.internal.zzcyq v0_17 = v4_6.names();
                                                v5_5 = new java.util.HashMap();
                                                int v6_2 = 0;
                                                while (v6_2 < v0_17.length()) {
                                                    String v7_2 = v0_17.getString(v6_2);
                                                    v5_5.put(v7_2, ((String) v4_6.opt(v7_2)));
                                                    v6_2++;
                                                }
                                            }
                                            ((com.google.android.gms.internal.zzcyq) v1_3.get(v3_2)).zzab(v5_5);
                                        }
                                    } while(v11_0.moveToNext());
                                }
                            } catch (com.google.android.gms.internal.zzcyq v0_0) {
                                com.google.android.gms.internal.zzcyq v0_25 = String.valueOf(v0_0.getMessage());
                                if (v0_25.length() == 0) {
                                    com.google.android.gms.internal.zzcyq v0_27 = new String("Error in peekHits fetching hit url: ");
                                } else {
                                    v0_27 = "Error in peekHits fetching hit url: ".concat(v0_25);
                                }
                                com.google.android.gms.internal.zzcze.zzcu(v0_27);
                                com.google.android.gms.internal.zzcyq v0_29 = new java.util.ArrayList();
                                java.util.ArrayList v10_3 = ((java.util.ArrayList) v1_3);
                                int v1_4 = v10_3.size();
                                int v3_5 = 0;
                            }
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            return v1_3;
                        } catch (com.google.android.gms.internal.zzcyq v0_1) {
                            v11_0 = v16_2;
                            if (v11_0 != null) {
                                v11_0.close();
                            }
                            throw v0_1;
                        } catch (com.google.android.gms.internal.zzcyq v0_0) {
                            v11_0 = v16_2;
                        }
                    } catch (com.google.android.gms.internal.zzcyq v0_1) {
                    } catch (com.google.android.gms.internal.zzcyq v0_0) {
                        v1_3 = v10_0;
                    } catch (com.google.android.gms.internal.zzcyq v0_1) {
                    }
                } catch (com.google.android.gms.internal.zzcyq v0_32) {
                    v17_0 = v11_3;
                } catch (com.google.android.gms.internal.zzcyq v0_31) {
                }
            } catch (com.google.android.gms.internal.zzcyq v0_32) {
                v17_0 = 0;
            } catch (com.google.android.gms.internal.zzcyq v0_31) {
                v12_1 = 0;
            }
        } else {
            return v1_1;
        }
    }

Method com.google.android.gms.internal.zzczh.zzep() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzep(int p14)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        if (p14 > null) {
            String v2_1 = this.zzlk("Error opening database for peekHitIds.");
            if (v2_1 != null) {
                try {
                    String v10_1 = new Object[1];
                    v10_1[0] = "hit_id";
                    android.database.Cursor v1_0 = v2_1.query("gtm_hits", new String[] {"hit_id"}), 0, 0, 0, 0, String.format("%s ASC", v10_1), Integer.toString(p14));
                } catch (String v14_7) {
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v14_7;
                } catch (String v14_2) {
                    String v14_4 = String.valueOf(v14_2.getMessage());
                    if (v14_4.length() == 0) {
                        String v14_6 = new String("Error in peekHits fetching hitIds: ");
                    } else {
                        v14_6 = "Error in peekHits fetching hitIds: ".concat(v14_4);
                    }
                    com.google.android.gms.internal.zzcze.zzcu(v14_6);
                    if (v1_0 == null) {
                        return v0_1;
                    } else {
                        v1_0.close();
                        return v0_1;
                    }
                }
                if (v1_0.moveToFirst()) {
                    do {
                        v0_1.add(String.valueOf(v1_0.getLong(0)));
                    } while(v1_0.moveToNext());
                }
                if (v1_0 == null) {
                    return v0_1;
                } else {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.internal.zzcze.zzcu("Invalid maxHits specified. Skipping");
            return v0_1;
        }
    }

Method com.google.android.gms.internal.zzczh.zzbfm() calling method android.database.sqlite.SQLiteDatabase.query()


    private final int zzbfm()
    {
        String v1_0 = this.zzlk("Error opening database for getNumStoredHits.");
        if (v1_0 != null) {
            try {
                android.database.Cursor v9 = v1_0.query("gtm_hits", new String[] {"hit_id", "hit_first_send_time"}), "hit_first_send_time=0", 0, 0, 0, 0);
                Throwable v0_1 = v9.getCount();
            } catch (Throwable v0_3) {
                if (v9 != null) {
                    v9.close();
                }
                throw v0_3;
            } catch (String v1_1) {
                String v1_3 = String.valueOf(v1_1.getMessage());
                if (v1_3.length() == 0) {
                    String v1_5 = new String("Error getting num untried hits: ");
                } else {
                    v1_5 = "Error getting num untried hits: ".concat(v1_3);
                }
                com.google.android.gms.internal.zzcze.zzcu(v1_5);
                if (v9 == null) {
                    return v0_1;
                } else {
                    v9.close();
                    return v0_1;
                }
            }
            if (v9 == null) {
                return v0_1;
            } else {
            }
        } else {
            return 0;
        }
    }

Method com.rudraum.rudraumThumb2Thief.db.OfflineEmailDb.getIntruder() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.rudraum.rudraumThumb2Thief.Models.IntruderModel getIntruder(int p12)
    {
        com.rudraum.rudraumThumb2Thief.Models.IntruderModel v0_0 = this.getReadableDatabase();
        String[] v4_0 = new String[1];
        v4_0[0] = String.valueOf(p12);
        String v12_2 = v0_0.query("offlineemail", new String[] {"id", "date", "image"}), "id=?", v4_0, 0, 0, 0, 0);
        if (v12_2 != null) {
            v12_2.moveToFirst();
        }
        return new com.rudraum.rudraumThumb2Thief.Models.IntruderModel(Integer.parseInt(v12_2.getString(0)), v12_2.getString(1), v12_2.getString(2));
    }

Method com.rudraum.rudraumThumb2Thief.db.IntruderDb.getIntruder() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.rudraum.rudraumThumb2Thief.Models.IntruderModel getIntruder(int p12)
    {
        com.rudraum.rudraumThumb2Thief.Models.IntruderModel v0_0 = this.getReadableDatabase();
        String[] v4_0 = new String[1];
        v4_0[0] = String.valueOf(p12);
        String v12_2 = v0_0.query("intruder", new String[] {"id", "date", "image"}), "id=?", v4_0, 0, 0, 0, 0);
        if (v12_2 != null) {
            v12_2.moveToFirst();
        }
        return new com.rudraum.rudraumThumb2Thief.Models.IntruderModel(Integer.parseInt(v12_2.getString(0)), v12_2.getString(1), v12_2.getString(2));
    }

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


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        try {
            String[] v6 = new String[1];
            v6[0] = p10;
            android.database.Cursor v1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            String v10_1 = v1.moveToFirst();
        } catch (String v10_5) {
            if (v1 != null) {
                v1.close();
            }
            throw v10_5;
        }
        if (v1 != null) {
            v1.close();
        }
        return v10_1;
    }

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


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        try {
            String[] v6 = new String[1];
            v6[0] = p10;
            android.database.Cursor v1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            String v10_1 = v1.moveToFirst();
        } catch (String v10_5) {
            if (v1 != null) {
                v1.close();
            }
            throw v10_5;
        }
        if (v1 != null) {
            v1.close();
        }
        return v10_1;
    }

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


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        try {
            String[] v6 = new String[1];
            v6[0] = p10;
            android.database.Cursor v1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            Throwable v10_1 = v1.moveToFirst();
        } catch (android.database.sqlite.SQLiteException) {
            if (v1 != null) {
                v1.close();
            }
            return 0;
        } catch (Throwable v10_2) {
            if (v1 != null) {
                v1.close();
            }
            throw v10_2;
        }
        if (v1 != null) {
            v1.close();
        }
        return v10_1;
    }

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


    private final boolean zzg(String p40, long p41)
    {
        this.zzaws().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcgw v2_16 = new com.google.android.gms.internal.zzcim$zza(this, 0);
            String v4_48 = this.zzaws();
            com.google.android.gms.internal.zzcgo v5_34 = this.zzjgb;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_16);
            v4_48.zzve();
            v4_48.zzxf();
            com.google.android.gms.internal.zzcmc[] v10_17 = 0;
            try {
                long v21_0;
                int v22;
                Object v15_5 = v4_48.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_28;
                        if (v5_34 == -1) {
                            v12_28 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_34);
                            v12_28 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_34 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        String v14_10 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v3_11);
                        v14_10.append(" order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v14_10.toString(), v12_28);
                        if (v3_1.moveToFirst()) {
                            Long v13_22 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21_0 = v13_22;
                            v3_1 = 0;
                            try {
                                int v12_10 = new String[2];
                                v12_10[0] = v3_1;
                                v12_10[1] = v21_0;
                                android.database.sqlite.SQLiteDatabase v24 = v15_5;
                                Object v15_4 = v15_5.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_10, 0, 0, "rowid", "2");
                                try {
                                    if (v15_4.moveToFirst()) {
                                        int v12_13 = v15_4.getBlob(0);
                                        int v12_14 = com.google.android.gms.internal.zzfjj.zzn(v12_13, 0, v12_13.length);
                                        Long v13_14 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_14.zza(v12_14);
                                        } catch (java.io.IOException v0_6) {
                                            int v6_0 = v15_4;
                                            v4_48.zzawy().zzazd().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1), v0_6);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_16.zzapa == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_16.zzapa.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_16.zzjgi;
                                                    String v4_5 = new com.google.android.gms.internal.zzcmb[v2_16.zzapa.size()];
                                                    v3_9.zzjlp = v4_5;
                                                    String v4_0 = 0;
                                                    com.google.android.gms.internal.zzcgo v5_0 = 0;
                                                    int v6_1 = 0;
                                                    while (v4_0 < v2_16.zzapa.size()) {
                                                        if (!this.zzawv().zzan(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                            Boolean v7_54 = this.zzawv().zzao(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name);
                                                            if (v7_54 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_17];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v13_60;
                                                                }
                                                                int v12_57 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh;
                                                                Long v13_61 = v12_57.length;
                                                                String v14_3 = 0;
                                                                Object v15_1 = 0;
                                                                com.google.android.gms.internal.zzfjj v16_0 = 0;
                                                                while (v14_3 < v13_61) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_16 = v12_57[v14_3];
                                                                    if (!"_c".equals(v10_16.name)) {
                                                                        if ("_r".equals(v10_16.name)) {
                                                                            v10_16.zzjll = Long.valueOf(1);
                                                                            v16_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_16.zzjll = Long.valueOf(1);
                                                                        v15_1 = 1;
                                                                    }
                                                                    v14_3++;
                                                                    int v11 = 1;
                                                                }
                                                                if ((v15_1 == null) && (v7_54 != null)) {
                                                                    this.zzawy().zzazj().zzj("Marking event as conversion", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_66 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_40 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_40.name = "_c";
                                                                    v9_40.zzjll = Long.valueOf(1);
                                                                    v8_66[(v8_66.length - 1)] = v9_40;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_66;
                                                                }
                                                                if (v16_0 == null) {
                                                                    this.zzawy().zzazj().zzj("Marking event as real-time", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_74 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_52 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_52.name = "_r";
                                                                    v9_52.zzjll = Long.valueOf(1);
                                                                    v8_74[(v8_74.length - 1)] = v9_52;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_74;
                                                                }
                                                                if (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 0, 0, 1).zzizb <= ((long) this.zzjew.zzix(v2_16.zzjgi.zzcn))) {
                                                                    v6_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgw v8_6 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    Object v9_3 = 0;
                                                                    while (v9_3 < v8_6.zzjlh.length) {
                                                                        if (!"_r".equals(v8_6.zzjlh[v9_3].name)) {
                                                                            v9_3++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_11 = new com.google.android.gms.internal.zzcmc[(v8_6.zzjlh.length - 1)];
                                                                            if (v9_3 > null) {
                                                                                System.arraycopy(v8_6.zzjlh, 0, v10_11, 0, v9_3);
                                                                            }
                                                                            if (v9_3 < v10_11.length) {
                                                                                System.arraycopy(v8_6.zzjlh, (v9_3 + 1), v10_11, v9_3, (v10_11.length - v9_3));
                                                                            }
                                                                            v8_6.zzjlh = v10_11;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.zzjz(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) && ((v7_54 != null) && (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 1, 0, 0).zziyz > ((long) this.zzjew.zzb(v2_16.zzjgi.zzcn, com.google.android.gms.internal.zzchc.zzjaq))))) {
                                                                    this.zzawy().zzazf().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                    Boolean v7_8 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v8_13 = v7_8.zzjlh;
                                                                    com.google.android.gms.internal.zzcmc[] v10_14 = 0;
                                                                    int v11_12 = 0;
                                                                    int v12_5 = 0;
                                                                    while (v10_14 < v8_13.length) {
                                                                        Long v13_2 = v8_13[v10_14];
                                                                        if (!"_c".equals(v13_2.name)) {
                                                                            if ("_err".equals(v13_2.name)) {
                                                                                v11_12 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_5 = v13_2;
                                                                        }
                                                                        v10_14++;
                                                                    }
                                                                    if ((v11_12 == 0) || (v12_5 == 0)) {
                                                                        if (v12_5 == 0) {
                                                                            this.zzawy().zzazd().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                        } else {
                                                                            v12_5.name = "_err";
                                                                            v12_5.zzjll = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcgw v8_15 = v7_8.zzjlh;
                                                                        com.google.android.gms.internal.zzcmc[] v10_15 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_15[0] = v12_5;
                                                                        v7_8.zzjlh = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.zza(v8_15, v10_15));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                if (com.google.android.gms.internal.zzclq.zzkn(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                                }
                                                            }
                                                            com.google.android.gms.internal.zzcgw v8_18 = (v5_0 + 1);
                                                            v3_9.zzjlp[v5_0] = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                            v5_0 = v8_18;
                                                        } else {
                                                            Boolean v7_21;
                                                            this.zzawy().zzazf().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn), this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                            if (this.zzawu().zzkl(v2_16.zzjgi.zzcn)) {
                                                                v7_21 = 1;
                                                            } else {
                                                                if (!this.zzawu().zzkm(v2_16.zzjgi.zzcn)) {
                                                                    v7_21 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_21 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name))) {
                                                                this.zzawu().zza(v2_16.zzjgi.zzcn, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_17 = 0;
                                                    }
                                                    if (v5_0 < v2_16.zzapa.size()) {
                                                        v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.zzjlp, v5_0));
                                                    }
                                                    Object v15_7;
                                                    long v19_2;
                                                    int v12_32;
                                                    v3_9.zzjmi = this.zza(v2_16.zzjgi.zzcn, v2_16.zzjgi.zzjlq, v3_9.zzjlp);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.zzjac.get()).booleanValue()) || (!"1".equals(this.zzjew.zzawv().zzam(v2_16.zzjgi.zzcn, "measurement.event_sampling_enabled")))) {
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                    } else {
                                                        String v4_23 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcgo v5_14 = new com.google.android.gms.internal.zzcmb[v3_9.zzjlp.length];
                                                        Boolean v7_42 = this.zzawu().zzbaz();
                                                        com.google.android.gms.internal.zzcgw v8_43 = v3_9.zzjlp;
                                                        Object v9_27 = v8_43.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_18 = 0;
                                                        int v11_17 = 0;
                                                        while (v10_18 < v9_27) {
                                                            com.google.android.gms.internal.zzfjj v16_5;
                                                            long v19_3;
                                                            com.google.android.gms.internal.zzcho v20_2;
                                                            Object v15_14;
                                                            String v1_37;
                                                            int v12_34 = v8_43[v10_18];
                                                            if (!v12_34.name.equals("_ep")) {
                                                                String v1_27;
                                                                v16_5 = v8_43;
                                                                if (com.google.android.gms.internal.zzcim.zza(v12_34, "_dbg", Long.valueOf(1))) {
                                                                    v1_27 = 1;
                                                                } else {
                                                                    v1_27 = this.zzawv().zzap(v2_16.zzjgi.zzcn, v12_34.name);
                                                                }
                                                                if (v1_27 > null) {
                                                                    com.google.android.gms.internal.zzcgw v8_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_34.name));
                                                                    if (v8_51 == null) {
                                                                        v8_51 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v12_34.name);
                                                                        if (v8_51 == null) {
                                                                            this.zzawy().zzazf().zze("Event being bundled has no eventAggregate. appId, eventName", v2_16.zzjgi.zzcn, v12_34.name);
                                                                            v8_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v8_51(v2_16.zzjgi.zzcn, v12_34.name, 1, 1, v12_34.zzjli.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_16;
                                                                    this.zzawu();
                                                                    Long v13_34 = ((Long) com.google.android.gms.internal.zzclq.zza(v12_34, "_eid"));
                                                                    if (v13_34 == null) {
                                                                        v14_16 = 0;
                                                                    } else {
                                                                        v14_16 = 1;
                                                                    }
                                                                    String v14_17 = Boolean.valueOf(v14_16);
                                                                    if (v1_27 != 1) {
                                                                        if (v7_42.nextInt(v1_27) != 0) {
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            if (Math.abs((v12_34.zzjli.longValue() - v8_51.zzizn)) < 86400000) {
                                                                                v15_14 = v2_16;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v4_23.put(v12_34.name, v8_51.zza(v13_34, 0, 0));
                                                                                    v10_18++;
                                                                                    v2_16 = v15_14;
                                                                                    v8_43 = v16_5;
                                                                                    v6_1 = v19_3;
                                                                                    v7_42 = v20_2;
                                                                                }
                                                                            } else {
                                                                                this.zzawu();
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                                this.zzawu();
                                                                                v15_14 = v2_16;
                                                                                String v1_31 = ((long) v1_27);
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v1_31));
                                                                                int v6_33 = (v11_17 + 1);
                                                                                v5_14[v11_17] = v12_34;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v8_51 = v8_51.zza(0, Long.valueOf(v1_31), Boolean.valueOf(1));
                                                                                }
                                                                                v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                                v11_17 = v6_33;
                                                                            }
                                                                        } else {
                                                                            this.zzawu();
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            int v6_34 = ((long) v1_27);
                                                                            v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v6_34));
                                                                            String v1_36 = (v11_17 + 1);
                                                                            v5_14[v11_17] = v12_34;
                                                                            if (v14_17.booleanValue()) {
                                                                                v8_51 = v8_51.zza(0, Long.valueOf(v6_34), 0);
                                                                            }
                                                                            v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                            v11_17 = v1_36;
                                                                            v15_14 = v2_16;
                                                                            long v21 = 1;
                                                                        }
                                                                    } else {
                                                                        v1_37 = (v11_17 + 1);
                                                                        v5_14[v11_17] = v12_34;
                                                                        if ((!v14_17.booleanValue()) || ((v8_51.zzizo == null) && ((v8_51.zzizp == null) && (v8_51.zzizq == null)))) {
                                                                            v11_17 = v1_37;
                                                                            v15_14 = v2_16;
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                        } else {
                                                                            v4_23.put(v12_34.name, v8_51.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzawy().zzazf().zze("Sample rate must be positive. event, rate", v12_34.name, Integer.valueOf(v1_27));
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.zza(v12_34, "_en"));
                                                                String v14_20 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_20 == null) {
                                                                    v14_20 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v13_46);
                                                                    v4_23.put(v13_46, v14_20);
                                                                }
                                                                if (v14_20.zzizo != null) {
                                                                    v16_5 = v8_43;
                                                                } else {
                                                                    if (v14_20.zzizp.longValue() > 1) {
                                                                        this.zzawu();
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", v14_20.zzizp);
                                                                    }
                                                                    if ((v14_20.zzizq == null) || (!v14_20.zzizq.booleanValue())) {
                                                                        v16_5 = v8_43;
                                                                    } else {
                                                                        this.zzawu();
                                                                        v16_5 = v8_43;
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            }
                                                        }
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                        if (v11_17 < v3_9.zzjlp.length) {
                                                            v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v5_14, v11_17));
                                                        }
                                                        String v1_11 = v4_23.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzaws().zza(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjls = Long.valueOf(nan);
                                                    v3_9.zzjlt = Long.valueOf(-0.0);
                                                    String v1_16 = 0;
                                                    while (v1_16 < v3_9.zzjlp.length) {
                                                        com.google.android.gms.internal.zzcgw v2_10 = v3_9.zzjlp[v1_16];
                                                        if (v2_10.zzjli.longValue() < v3_9.zzjls.longValue()) {
                                                            v3_9.zzjls = v2_10.zzjli;
                                                        }
                                                        if (v2_10.zzjli.longValue() > v3_9.zzjlt.longValue()) {
                                                            v3_9.zzjlt = v2_10.zzjli;
                                                        }
                                                        v1_16++;
                                                    }
                                                    String v1_17 = v15_7;
                                                    com.google.android.gms.internal.zzcgw v2_7 = v1_17.zzjgi.zzcn;
                                                    String v4_25 = this.zzaws().zzjb(v2_7);
                                                    if (v4_25 != null) {
                                                        if (v3_9.zzjlp.length > 0) {
                                                            Object v9_29;
                                                            com.google.android.gms.internal.zzcgo v5_17 = v4_25.zzaxf();
                                                            if (v5_17 == 0) {
                                                                v9_29 = v12_32;
                                                            } else {
                                                                v9_29 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlv = v9_29;
                                                            Object v9_30 = v4_25.zzaxe();
                                                            if (v9_30 != 0) {
                                                                v5_17 = v9_30;
                                                            } else {
                                                            }
                                                            if (v5_17 != 0) {
                                                                v12_32 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlu = v12_32;
                                                            v4_25.zzaxo();
                                                            v3_9.zzjmg = Integer.valueOf(((int) v4_25.zzaxl()));
                                                            v4_25.zzal(v3_9.zzjls.longValue());
                                                            v4_25.zzam(v3_9.zzjlt.longValue());
                                                            v3_9.zzixw = v4_25.zzaxw();
                                                            this.zzaws().zza(v4_25);
                                                        }
                                                    } else {
                                                        this.zzawy().zzazd().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                    }
                                                    if (v3_9.zzjlp.length > 0) {
                                                        String v4_32;
                                                        String v4_31 = this.zzawv().zzjs(v1_17.zzjgi.zzcn);
                                                        if (v4_31 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_17.zzjgi.zzixs)) {
                                                                this.zzawy().zzazf().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                            } else {
                                                                v4_32 = Long.valueOf(-1);
                                                                v3_9.zzjmn = v4_32;
                                                            }
                                                        } else {
                                                            if (v4_31.zzjkw != null) {
                                                                v4_32 = v4_31.zzjkw;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzaws().zza(v3_9, v19_2);
                                                    }
                                                    this.zzaws().zzah(v1_17.zzjgj);
                                                    String v1_19 = this.zzaws();
                                                    android.database.sqlite.SQLiteException v3_15 = v1_19.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgo v5_33 = new String[2];
                                                        v5_33[0] = v2_7;
                                                        v5_33[1] = v2_7;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_33);
                                                    } catch (java.io.IOException v0_11) {
                                                        v1_19.zzawy().zzazd().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v2_7), v0_11);
                                                    }
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_4.moveToNext()) {
                                            v4_48.zzawy().zzazf().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        }
                                        com.google.android.gms.internal.zzcgo v5_2;
                                        com.google.android.gms.internal.zzfjj v16_4;
                                        v15_4.close();
                                        v2_16.zzb(v13_14);
                                        if (v5_34 == -1) {
                                            v5_2 = "app_id = ? and metadata_fingerprint = ?";
                                            int v12_19 = new String[2];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21_0;
                                            v16_4 = v12_19;
                                        } else {
                                            Long v13_15 = new String[3];
                                            v13_15[0] = v3_1;
                                            v13_15[1] = v21_0;
                                            v13_15[2] = String.valueOf(v5_34);
                                            v5_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_4 = v13_15;
                                        }
                                        v6_0 = v15_4;
                                        com.google.android.gms.internal.zzcgo v5_4 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_2, v16_4, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_4.moveToFirst()) {
                                                do {
                                                    int v6_6 = v5_4.getLong(0);
                                                    com.google.android.gms.internal.zzcgw v8_35 = v5_4.getBlob(3);
                                                    com.google.android.gms.internal.zzcgw v8_36 = com.google.android.gms.internal.zzfjj.zzn(v8_35, 0, v8_35.length);
                                                    int v12_26 = new com.google.android.gms.internal.zzcmb();
                                                    v12_26.zza(v8_36);
                                                    v12_26.name = v5_4.getString(1);
                                                    v12_26.zzjli = Long.valueOf(v5_4.getLong(2));
                                                    if (v2_16.zza(v6_6, v12_26)) {
                                                    } else {
                                                        if (v5_4 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_4.moveToNext());
                                                if (v5_4 == null) {
                                                }
                                            } else {
                                                v4_48.zzawy().zzazf().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                                if (v5_4 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            String v1_1 = v0_9;
                                            v6_0 = v5_4;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_1 = v3_1;
                                            v6_0 = v5_4;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_48.zzawy().zzazd().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v12_1), v3_0);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_4.close();
                                    } else {
                                        v4_48.zzawy().zzazd().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        if (v15_4 == null) {
                                        } else {
                                            v15_4.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v6_0 = v15_4;
                                    v1_1 = v0_7;
                                } catch (java.io.IOException v0_2) {
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_2) {
                                    v12_1 = v3_1;
                                    v6_0 = v15_4;
                                }
                                v12_1 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v12_1 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_36;
                            if (v5_34 == -1) {
                                v12_36 = new String[1];
                                v12_36[0] = String.valueOf(p41);
                            } else {
                                v12_36 = new String[2];
                                v12_36[0] = String.valueOf(v5_34);
                                v12_36[1] = String.valueOf(p41);
                            }
                        } catch (java.io.IOException v0_2) {
                            v6_0 = 0;
                            v12_1 = 0;
                        }
                        Long v13_43;
                        if (v5_34 == -1) {
                            v13_43 = "";
                        } else {
                            v13_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v3_18.toString(), v12_36);
                        if (v3_1.moveToFirst()) {
                            v12_1 = v3_1.getString(0);
                            try {
                                Long v13_3 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_1;
                                v21_0 = v13_3;
                            } catch (java.io.IOException v0_2) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v6_0 = v3_1;
                    v12_1 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v6_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v6_0 = 0;
                v12_1 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            String v1_2 = v0_4;
            this.zzaws().endTransaction();
            throw v1_2;
        }
    }

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


    private final boolean zzg(String p40, long p41)
    {
        this.zzaws().beginTransaction();
        try {
            android.database.sqlite.SQLiteException v3_1 = 0;
            com.google.android.gms.internal.zzcgw v2_16 = new com.google.android.gms.internal.zzcim$zza(this, 0);
            String v4_48 = this.zzaws();
            com.google.android.gms.internal.zzcgo v5_34 = this.zzjgb;
            com.google.android.gms.common.internal.zzbq.checkNotNull(v2_16);
            v4_48.zzve();
            v4_48.zzxf();
            com.google.android.gms.internal.zzcmc[] v10_17 = 0;
            try {
                int v22;
                long v21_0;
                Object v15_5 = v4_48.getWritableDatabase();
                try {
                    if (!android.text.TextUtils.isEmpty(0)) {
                        int v12_28;
                        if (v5_34 == -1) {
                            v12_28 = new String[] {0});
                        } else {
                            android.database.sqlite.SQLiteException v3_4 = new String[2];
                            v3_4[0] = 0;
                            v3_4[1] = String.valueOf(v5_34);
                            v12_28 = v3_4;
                        }
                        android.database.sqlite.SQLiteException v3_11;
                        if (v5_34 == -1) {
                            v3_11 = "";
                        } else {
                            v3_11 = " and rowid <= ?";
                        }
                        String v14_10 = new StringBuilder((String.valueOf(v3_11).length() + 84));
                        v14_10.append("select metadata_fingerprint from raw_events where app_id = ?");
                        v14_10.append(v3_11);
                        v14_10.append(" order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v14_10.toString(), v12_28);
                        if (v3_1.moveToFirst()) {
                            Long v13_22 = v3_1.getString(0);
                            v3_1.close();
                            v22 = v3_1;
                            v21_0 = v13_22;
                            v3_1 = 0;
                            try {
                                int v12_10 = new String[2];
                                v12_10[0] = v3_1;
                                v12_10[1] = v21_0;
                                android.database.sqlite.SQLiteDatabase v24 = v15_5;
                                Object v15_4 = v15_5.query("raw_events_metadata", new String[] {"metadata"}), "app_id = ? and metadata_fingerprint = ?", v12_10, 0, 0, "rowid", "2");
                                try {
                                    if (v15_4.moveToFirst()) {
                                        int v12_13 = v15_4.getBlob(0);
                                        int v12_14 = com.google.android.gms.internal.zzfjj.zzn(v12_13, 0, v12_13.length);
                                        Long v13_14 = new com.google.android.gms.internal.zzcme();
                                        try {
                                            v13_14.zza(v12_14);
                                        } catch (java.io.IOException v0_6) {
                                            int v6_0 = v15_4;
                                            v4_48.zzawy().zzazd().zze("Data loss. Failed to merge raw event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1), v0_6);
                                            if (v6_0 == 0) {
                                                android.database.sqlite.SQLiteException v3_8;
                                                if (v2_16.zzapa == null) {
                                                    v3_8 = 1;
                                                } else {
                                                    if (!v2_16.zzapa.isEmpty()) {
                                                        v3_8 = 0;
                                                    } else {
                                                    }
                                                }
                                                if (v3_8 != null) {
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 0;
                                                } else {
                                                    android.database.sqlite.SQLiteException v3_9 = v2_16.zzjgi;
                                                    String v4_5 = new com.google.android.gms.internal.zzcmb[v2_16.zzapa.size()];
                                                    v3_9.zzjlp = v4_5;
                                                    String v4_0 = 0;
                                                    com.google.android.gms.internal.zzcgo v5_0 = 0;
                                                    int v6_1 = 0;
                                                    while (v4_0 < v2_16.zzapa.size()) {
                                                        if (!this.zzawv().zzan(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                            Boolean v7_54 = this.zzawv().zzao(v2_16.zzjgi.zzcn, ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name);
                                                            if (v7_54 != null) {
                                                                if (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh == null) {
                                                                    Long v13_60 = new com.google.android.gms.internal.zzcmc[v10_17];
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v13_60;
                                                                }
                                                                int v12_57 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh;
                                                                Long v13_61 = v12_57.length;
                                                                String v14_3 = 0;
                                                                Object v15_1 = 0;
                                                                com.google.android.gms.internal.zzfjj v16_0 = 0;
                                                                while (v14_3 < v13_61) {
                                                                    com.google.android.gms.internal.zzcmc[] v10_16 = v12_57[v14_3];
                                                                    if (!"_c".equals(v10_16.name)) {
                                                                        if ("_r".equals(v10_16.name)) {
                                                                            v10_16.zzjll = Long.valueOf(1);
                                                                            v16_0 = 1;
                                                                        }
                                                                    } else {
                                                                        v10_16.zzjll = Long.valueOf(1);
                                                                        v15_1 = 1;
                                                                    }
                                                                    v14_3++;
                                                                    int v11 = 1;
                                                                }
                                                                if ((v15_1 == null) && (v7_54 != null)) {
                                                                    this.zzawy().zzazj().zzj("Marking event as conversion", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_66 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_40 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_40.name = "_c";
                                                                    v9_40.zzjll = Long.valueOf(1);
                                                                    v8_66[(v8_66.length - 1)] = v9_40;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_66;
                                                                }
                                                                if (v16_0 == null) {
                                                                    this.zzawy().zzazj().zzj("Marking event as real-time", this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                                    com.google.android.gms.internal.zzcgw v8_74 = ((com.google.android.gms.internal.zzcmc[]) java.util.Arrays.copyOf(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh, (((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh.length + 1)));
                                                                    Object v9_52 = new com.google.android.gms.internal.zzcmc();
                                                                    v9_52.name = "_r";
                                                                    v9_52.zzjll = Long.valueOf(1);
                                                                    v8_74[(v8_74.length - 1)] = v9_52;
                                                                    ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).zzjlh = v8_74;
                                                                }
                                                                if (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 0, 0, 1).zzizb <= ((long) this.zzjew.zzix(v2_16.zzjgi.zzcn))) {
                                                                    v6_1 = 1;
                                                                } else {
                                                                    com.google.android.gms.internal.zzcgw v8_6 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    Object v9_3 = 0;
                                                                    while (v9_3 < v8_6.zzjlh.length) {
                                                                        if (!"_r".equals(v8_6.zzjlh[v9_3].name)) {
                                                                            v9_3++;
                                                                        } else {
                                                                            com.google.android.gms.internal.zzcmc[] v10_11 = new com.google.android.gms.internal.zzcmc[(v8_6.zzjlh.length - 1)];
                                                                            if (v9_3 > null) {
                                                                                System.arraycopy(v8_6.zzjlh, 0, v10_11, 0, v9_3);
                                                                            }
                                                                            if (v9_3 < v10_11.length) {
                                                                                System.arraycopy(v8_6.zzjlh, (v9_3 + 1), v10_11, v9_3, (v10_11.length - v9_3));
                                                                            }
                                                                            v8_6.zzjlh = v10_11;
                                                                            break;
                                                                        }
                                                                    }
                                                                }
                                                                if ((com.google.android.gms.internal.zzclq.zzjz(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) && ((v7_54 != null) && (this.zzaws().zza(this.zzbag(), v2_16.zzjgi.zzcn, 0, 0, 1, 0, 0).zziyz > ((long) this.zzjew.zzb(v2_16.zzjgi.zzcn, com.google.android.gms.internal.zzchc.zzjaq))))) {
                                                                    this.zzawy().zzazf().zzj("Too many conversions. Not logging as conversion. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                    Boolean v7_8 = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                                    com.google.android.gms.internal.zzcgw v8_13 = v7_8.zzjlh;
                                                                    com.google.android.gms.internal.zzcmc[] v10_14 = 0;
                                                                    int v11_12 = 0;
                                                                    int v12_5 = 0;
                                                                    while (v10_14 < v8_13.length) {
                                                                        Long v13_2 = v8_13[v10_14];
                                                                        if (!"_c".equals(v13_2.name)) {
                                                                            if ("_err".equals(v13_2.name)) {
                                                                                v11_12 = 1;
                                                                            }
                                                                        } else {
                                                                            v12_5 = v13_2;
                                                                        }
                                                                        v10_14++;
                                                                    }
                                                                    if ((v11_12 == 0) || (v12_5 == 0)) {
                                                                        if (v12_5 == 0) {
                                                                            this.zzawy().zzazd().zzj("Did not find conversion parameter. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn));
                                                                        } else {
                                                                            v12_5.name = "_err";
                                                                            v12_5.zzjll = Long.valueOf(10);
                                                                        }
                                                                    } else {
                                                                        com.google.android.gms.internal.zzcgw v8_15 = v7_8.zzjlh;
                                                                        com.google.android.gms.internal.zzcmc[] v10_15 = new com.google.android.gms.internal.zzcmc[1];
                                                                        v10_15[0] = v12_5;
                                                                        v7_8.zzjlh = ((com.google.android.gms.internal.zzcmc[]) com.google.android.gms.common.util.zza.zza(v8_15, v10_15));
                                                                    }
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                if (com.google.android.gms.internal.zzclq.zzkn(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name)) {
                                                                }
                                                            }
                                                            com.google.android.gms.internal.zzcgw v8_18 = (v5_0 + 1);
                                                            v3_9.zzjlp[v5_0] = ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0));
                                                            v5_0 = v8_18;
                                                        } else {
                                                            Boolean v7_21;
                                                            this.zzawy().zzazf().zze("Dropping blacklisted raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v2_16.zzjgi.zzcn), this.zzawt().zzjh(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name));
                                                            if (this.zzawu().zzkl(v2_16.zzjgi.zzcn)) {
                                                                v7_21 = 1;
                                                            } else {
                                                                if (!this.zzawu().zzkm(v2_16.zzjgi.zzcn)) {
                                                                    v7_21 = 0;
                                                                } else {
                                                                }
                                                            }
                                                            if ((v7_21 == null) && (!"_err".equals(((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name))) {
                                                                this.zzawu().zza(v2_16.zzjgi.zzcn, 11, "_ev", ((com.google.android.gms.internal.zzcmb) v2_16.zzapa.get(v4_0)).name, 0);
                                                            }
                                                        }
                                                        v4_0++;
                                                        v10_17 = 0;
                                                    }
                                                    if (v5_0 < v2_16.zzapa.size()) {
                                                        v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v3_9.zzjlp, v5_0));
                                                    }
                                                    long v19_2;
                                                    int v12_32;
                                                    Object v15_7;
                                                    v3_9.zzjmi = this.zza(v2_16.zzjgi.zzcn, v2_16.zzjgi.zzjlq, v3_9.zzjlp);
                                                    if ((!((Boolean) com.google.android.gms.internal.zzchc.zzjac.get()).booleanValue()) || (!"1".equals(this.zzjew.zzawv().zzam(v2_16.zzjgi.zzcn, "measurement.event_sampling_enabled")))) {
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                    } else {
                                                        String v4_23 = new java.util.HashMap();
                                                        com.google.android.gms.internal.zzcgo v5_14 = new com.google.android.gms.internal.zzcmb[v3_9.zzjlp.length];
                                                        Boolean v7_42 = this.zzawu().zzbaz();
                                                        com.google.android.gms.internal.zzcgw v8_43 = v3_9.zzjlp;
                                                        Object v9_27 = v8_43.length;
                                                        com.google.android.gms.internal.zzcmc[] v10_18 = 0;
                                                        int v11_17 = 0;
                                                        while (v10_18 < v9_27) {
                                                            String v1_37;
                                                            com.google.android.gms.internal.zzfjj v16_5;
                                                            long v19_3;
                                                            Object v15_14;
                                                            com.google.android.gms.internal.zzcho v20_2;
                                                            int v12_34 = v8_43[v10_18];
                                                            if (!v12_34.name.equals("_ep")) {
                                                                String v1_27;
                                                                v16_5 = v8_43;
                                                                if (com.google.android.gms.internal.zzcim.zza(v12_34, "_dbg", Long.valueOf(1))) {
                                                                    v1_27 = 1;
                                                                } else {
                                                                    v1_27 = this.zzawv().zzap(v2_16.zzjgi.zzcn, v12_34.name);
                                                                }
                                                                if (v1_27 > null) {
                                                                    com.google.android.gms.internal.zzcgw v8_51 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v12_34.name));
                                                                    if (v8_51 == null) {
                                                                        v8_51 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v12_34.name);
                                                                        if (v8_51 == null) {
                                                                            this.zzawy().zzazf().zze("Event being bundled has no eventAggregate. appId, eventName", v2_16.zzjgi.zzcn, v12_34.name);
                                                                            v8_51 = new com.google.android.gms.internal.zzcgw;
                                                                            v8_51(v2_16.zzjgi.zzcn, v12_34.name, 1, 1, v12_34.zzjli.longValue(), 0, 0, 0, 0);
                                                                        }
                                                                    }
                                                                    String v14_16;
                                                                    this.zzawu();
                                                                    Long v13_34 = ((Long) com.google.android.gms.internal.zzclq.zza(v12_34, "_eid"));
                                                                    if (v13_34 == null) {
                                                                        v14_16 = 0;
                                                                    } else {
                                                                        v14_16 = 1;
                                                                    }
                                                                    String v14_17 = Boolean.valueOf(v14_16);
                                                                    if (v1_27 != 1) {
                                                                        if (v7_42.nextInt(v1_27) != 0) {
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            if (Math.abs((v12_34.zzjli.longValue() - v8_51.zzizn)) < 86400000) {
                                                                                v15_14 = v2_16;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v4_23.put(v12_34.name, v8_51.zza(v13_34, 0, 0));
                                                                                    v10_18++;
                                                                                    v2_16 = v15_14;
                                                                                    v8_43 = v16_5;
                                                                                    v6_1 = v19_3;
                                                                                    v7_42 = v20_2;
                                                                                }
                                                                            } else {
                                                                                this.zzawu();
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                                this.zzawu();
                                                                                v15_14 = v2_16;
                                                                                String v1_31 = ((long) v1_27);
                                                                                v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v1_31));
                                                                                int v6_33 = (v11_17 + 1);
                                                                                v5_14[v11_17] = v12_34;
                                                                                if (v14_17.booleanValue()) {
                                                                                    v8_51 = v8_51.zza(0, Long.valueOf(v1_31), Boolean.valueOf(1));
                                                                                }
                                                                                v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                                v11_17 = v6_33;
                                                                            }
                                                                        } else {
                                                                            this.zzawu();
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                            int v6_34 = ((long) v1_27);
                                                                            v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", Long.valueOf(v6_34));
                                                                            String v1_36 = (v11_17 + 1);
                                                                            v5_14[v11_17] = v12_34;
                                                                            if (v14_17.booleanValue()) {
                                                                                v8_51 = v8_51.zza(0, Long.valueOf(v6_34), 0);
                                                                            }
                                                                            v4_23.put(v12_34.name, v8_51.zzbc(v12_34.zzjli.longValue()));
                                                                            v11_17 = v1_36;
                                                                            v15_14 = v2_16;
                                                                            long v21 = 1;
                                                                        }
                                                                    } else {
                                                                        v1_37 = (v11_17 + 1);
                                                                        v5_14[v11_17] = v12_34;
                                                                        if ((!v14_17.booleanValue()) || ((v8_51.zzizo == null) && ((v8_51.zzizp == null) && (v8_51.zzizq == null)))) {
                                                                            v11_17 = v1_37;
                                                                            v15_14 = v2_16;
                                                                            v19_3 = v6_1;
                                                                            v20_2 = v7_42;
                                                                        } else {
                                                                            v4_23.put(v12_34.name, v8_51.zza(0, 0, 0));
                                                                        }
                                                                    }
                                                                } else {
                                                                    this.zzawy().zzazf().zze("Sample rate must be positive. event, rate", v12_34.name, Integer.valueOf(v1_27));
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            } else {
                                                                this.zzawu();
                                                                Long v13_46 = ((String) com.google.android.gms.internal.zzclq.zza(v12_34, "_en"));
                                                                String v14_20 = ((com.google.android.gms.internal.zzcgw) v4_23.get(v13_46));
                                                                if (v14_20 == null) {
                                                                    v14_20 = this.zzaws().zzae(v2_16.zzjgi.zzcn, v13_46);
                                                                    v4_23.put(v13_46, v14_20);
                                                                }
                                                                if (v14_20.zzizo != null) {
                                                                    v16_5 = v8_43;
                                                                } else {
                                                                    if (v14_20.zzizp.longValue() > 1) {
                                                                        this.zzawu();
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_sr", v14_20.zzizp);
                                                                    }
                                                                    if ((v14_20.zzizq == null) || (!v14_20.zzizq.booleanValue())) {
                                                                        v16_5 = v8_43;
                                                                    } else {
                                                                        this.zzawu();
                                                                        v16_5 = v8_43;
                                                                        v12_34.zzjlh = com.google.android.gms.internal.zzclq.zza(v12_34.zzjlh, "_efs", Long.valueOf(1));
                                                                    }
                                                                    v1_37 = (v11_17 + 1);
                                                                    v5_14[v11_17] = v12_34;
                                                                }
                                                            }
                                                        }
                                                        v15_7 = v2_16;
                                                        v19_2 = v6_1;
                                                        v12_32 = 0;
                                                        if (v11_17 < v3_9.zzjlp.length) {
                                                            v3_9.zzjlp = ((com.google.android.gms.internal.zzcmb[]) java.util.Arrays.copyOf(v5_14, v11_17));
                                                        }
                                                        String v1_11 = v4_23.entrySet().iterator();
                                                        while (v1_11.hasNext()) {
                                                            this.zzaws().zza(((com.google.android.gms.internal.zzcgw) ((java.util.Map$Entry) v1_11.next()).getValue()));
                                                        }
                                                    }
                                                    v3_9.zzjls = Long.valueOf(nan);
                                                    v3_9.zzjlt = Long.valueOf(-0.0);
                                                    String v1_16 = 0;
                                                    while (v1_16 < v3_9.zzjlp.length) {
                                                        com.google.android.gms.internal.zzcgw v2_10 = v3_9.zzjlp[v1_16];
                                                        if (v2_10.zzjli.longValue() < v3_9.zzjls.longValue()) {
                                                            v3_9.zzjls = v2_10.zzjli;
                                                        }
                                                        if (v2_10.zzjli.longValue() > v3_9.zzjlt.longValue()) {
                                                            v3_9.zzjlt = v2_10.zzjli;
                                                        }
                                                        v1_16++;
                                                    }
                                                    String v1_17 = v15_7;
                                                    com.google.android.gms.internal.zzcgw v2_7 = v1_17.zzjgi.zzcn;
                                                    String v4_25 = this.zzaws().zzjb(v2_7);
                                                    if (v4_25 != null) {
                                                        if (v3_9.zzjlp.length > 0) {
                                                            Object v9_29;
                                                            com.google.android.gms.internal.zzcgo v5_17 = v4_25.zzaxf();
                                                            if (v5_17 == 0) {
                                                                v9_29 = v12_32;
                                                            } else {
                                                                v9_29 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlv = v9_29;
                                                            Object v9_30 = v4_25.zzaxe();
                                                            if (v9_30 != 0) {
                                                                v5_17 = v9_30;
                                                            } else {
                                                            }
                                                            if (v5_17 != 0) {
                                                                v12_32 = Long.valueOf(v5_17);
                                                            }
                                                            v3_9.zzjlu = v12_32;
                                                            v4_25.zzaxo();
                                                            v3_9.zzjmg = Integer.valueOf(((int) v4_25.zzaxl()));
                                                            v4_25.zzal(v3_9.zzjls.longValue());
                                                            v4_25.zzam(v3_9.zzjlt.longValue());
                                                            v3_9.zzixw = v4_25.zzaxw();
                                                            this.zzaws().zza(v4_25);
                                                        }
                                                    } else {
                                                        this.zzawy().zzazd().zzj("Bundling raw events w/o app info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                    }
                                                    if (v3_9.zzjlp.length > 0) {
                                                        String v4_32;
                                                        String v4_31 = this.zzawv().zzjs(v1_17.zzjgi.zzcn);
                                                        if (v4_31 == null) {
                                                            if (!android.text.TextUtils.isEmpty(v1_17.zzjgi.zzixs)) {
                                                                this.zzawy().zzazf().zzj("Did not find measurement config or missing version info. appId", com.google.android.gms.internal.zzchm.zzjk(v1_17.zzjgi.zzcn));
                                                            } else {
                                                                v4_32 = Long.valueOf(-1);
                                                                v3_9.zzjmn = v4_32;
                                                            }
                                                        } else {
                                                            if (v4_31.zzjkw != null) {
                                                                v4_32 = v4_31.zzjkw;
                                                            } else {
                                                            }
                                                        }
                                                        this.zzaws().zza(v3_9, v19_2);
                                                    }
                                                    this.zzaws().zzah(v1_17.zzjgj);
                                                    String v1_19 = this.zzaws();
                                                    android.database.sqlite.SQLiteException v3_15 = v1_19.getWritableDatabase();
                                                    try {
                                                        com.google.android.gms.internal.zzcgo v5_33 = new String[2];
                                                        v5_33[0] = v2_7;
                                                        v5_33[1] = v2_7;
                                                        v3_15.execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", v5_33);
                                                    } catch (java.io.IOException v0_11) {
                                                        v1_19.zzawy().zzazd().zze("Failed to remove unused event metadata. appId", com.google.android.gms.internal.zzchm.zzjk(v2_7), v0_11);
                                                    }
                                                    this.zzaws().setTransactionSuccessful();
                                                    this.zzaws().endTransaction();
                                                    return 1;
                                                }
                                            } else {
                                                v6_0.close();
                                            }
                                        } catch (java.io.IOException v0_2) {
                                        }
                                        if (v15_4.moveToNext()) {
                                            v4_48.zzawy().zzazf().zzj("Get multiple raw event metadata records, expected one. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        }
                                        com.google.android.gms.internal.zzcgo v5_2;
                                        com.google.android.gms.internal.zzfjj v16_4;
                                        v15_4.close();
                                        v2_16.zzb(v13_14);
                                        if (v5_34 == -1) {
                                            v5_2 = "app_id = ? and metadata_fingerprint = ?";
                                            int v12_19 = new String[2];
                                            v12_19[0] = v3_1;
                                            v12_19[1] = v21_0;
                                            v16_4 = v12_19;
                                        } else {
                                            Long v13_15 = new String[3];
                                            v13_15[0] = v3_1;
                                            v13_15[1] = v21_0;
                                            v13_15[2] = String.valueOf(v5_34);
                                            v5_2 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?";
                                            v16_4 = v13_15;
                                        }
                                        v6_0 = v15_4;
                                        com.google.android.gms.internal.zzcgo v5_4 = v24.query("raw_events", new String[] {"rowid", "name", "timestamp", "data"}), v5_2, v16_4, 0, 0, "rowid", 0);
                                        try {
                                            if (v5_4.moveToFirst()) {
                                                do {
                                                    int v6_6 = v5_4.getLong(0);
                                                    com.google.android.gms.internal.zzcgw v8_35 = v5_4.getBlob(3);
                                                    com.google.android.gms.internal.zzcgw v8_36 = com.google.android.gms.internal.zzfjj.zzn(v8_35, 0, v8_35.length);
                                                    int v12_26 = new com.google.android.gms.internal.zzcmb();
                                                    v12_26.zza(v8_36);
                                                    v12_26.name = v5_4.getString(1);
                                                    v12_26.zzjli = Long.valueOf(v5_4.getLong(2));
                                                    if (v2_16.zza(v6_6, v12_26)) {
                                                    } else {
                                                        if (v5_4 == null) {
                                                        } else {
                                                        }
                                                    }
                                                } while(v5_4.moveToNext());
                                                if (v5_4 == null) {
                                                }
                                            } else {
                                                v4_48.zzawy().zzazf().zzj("Raw event data disappeared while in transaction. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                                if (v5_4 == null) {
                                                }
                                            }
                                        } catch (java.io.IOException v0_9) {
                                            String v1_1 = v0_9;
                                            v6_0 = v5_4;
                                            if (v6_0 != 0) {
                                                v6_0.close();
                                            }
                                            throw v1_1;
                                        } catch (java.io.IOException v0_2) {
                                            int v12_1 = v3_1;
                                            v6_0 = v5_4;
                                            android.database.sqlite.SQLiteException v3_0 = v0_2;
                                            v4_48.zzawy().zzazd().zze("Data loss. Error selecting raw event. appId", com.google.android.gms.internal.zzchm.zzjk(v12_1), v3_0);
                                            if (v6_0 == 0) {
                                            }
                                        }
                                        v5_4.close();
                                    } else {
                                        v4_48.zzawy().zzazd().zzj("Raw event metadata record is missing. appId", com.google.android.gms.internal.zzchm.zzjk(v3_1));
                                        if (v15_4 == null) {
                                        } else {
                                            v15_4.close();
                                        }
                                    }
                                } catch (java.io.IOException v0_7) {
                                    v6_0 = v15_4;
                                    v1_1 = v0_7;
                                } catch (java.io.IOException v0_2) {
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_10) {
                                    v1_1 = v0_10;
                                    v6_0 = v15_4;
                                } catch (java.io.IOException v0_2) {
                                    v12_1 = v3_1;
                                    v6_0 = v15_4;
                                }
                                v12_1 = v3_1;
                            } catch (java.io.IOException v0_5) {
                                v1_1 = v0_5;
                                v6_0 = v22;
                            } catch (java.io.IOException v0_2) {
                                v12_1 = v3_1;
                                v6_0 = v22;
                            }
                        } else {
                            if (v3_1 == null) {
                            } else {
                            }
                        }
                    } else {
                        try {
                            int v12_36;
                            if (v5_34 == -1) {
                                v12_36 = new String[1];
                                v12_36[0] = String.valueOf(p41);
                            } else {
                                v12_36 = new String[2];
                                v12_36[0] = String.valueOf(v5_34);
                                v12_36[1] = String.valueOf(p41);
                            }
                        } catch (java.io.IOException v0_2) {
                            v6_0 = 0;
                            v12_1 = 0;
                        }
                        Long v13_43;
                        if (v5_34 == -1) {
                            v13_43 = "";
                        } else {
                            v13_43 = "rowid <= ? and ";
                        }
                        android.database.sqlite.SQLiteException v3_18 = new StringBuilder((String.valueOf(v13_43).length() + 148));
                        v3_18.append("select app_id, metadata_fingerprint from raw_events where ");
                        v3_18.append(v13_43);
                        v3_18.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;");
                        v3_1 = v15_5.rawQuery(v3_18.toString(), v12_36);
                        if (v3_1.moveToFirst()) {
                            v12_1 = v3_1.getString(0);
                            try {
                                Long v13_3 = v3_1.getString(1);
                                v3_1.close();
                                v22 = v3_1;
                                v3_1 = v12_1;
                                v21_0 = v13_3;
                            } catch (java.io.IOException v0_2) {
                                v6_0 = v3_1;
                            }
                        } else {
                            if (v3_1 == null) {
                            }
                        }
                    }
                } catch (java.io.IOException v0_3) {
                    v1_1 = v0_3;
                    v6_0 = v3_1;
                } catch (java.io.IOException v0_2) {
                    v6_0 = v3_1;
                    v12_1 = 0;
                }
                v3_1.close();
            } catch (java.io.IOException v0_1) {
                v1_1 = v0_1;
                v6_0 = 0;
            } catch (java.io.IOException v0_0) {
                v3_0 = v0_0;
                v6_0 = 0;
                v12_1 = 0;
            } catch (java.io.IOException v0_7) {
            }
        } catch (java.io.IOException v0_4) {
            String v1_2 = v0_4;
            this.zzaws().endTransaction();
            throw v1_2;
        }
    }

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


    private final boolean zza(android.database.sqlite.SQLiteDatabase p11, String p12)
    {
        try {
            String[] v6 = new String[1];
            v6[0] = p12;
            android.database.Cursor v1 = p11.query("SQLITE_MASTER", new String[] {"name"}), "name=?", v6, 0, 0, 0);
            android.database.sqlite.SQLiteException v11_1 = v1.moveToFirst();
        } catch (android.database.sqlite.SQLiteException v11_3) {
            if (v1 != null) {
                v1.close();
            }
            throw v11_3;
        } catch (android.database.sqlite.SQLiteException v11_2) {
            this.zzdul.zzc("Error querying for table", p12, v11_2);
            if (v1 != null) {
                v1.close();
            }
            return 0;
        }
        if (v1 != null) {
            v1.close();
        }
        return v11_1;
    }