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 ru.yandex.disk.q.a.newCursor() calling method android.database.sqlite.SQLiteCursor.<init>()


    public android.database.Cursor newCursor(android.database.sqlite.SQLiteDatabase p3, android.database.sqlite.SQLiteCursorDriver p4, String p5, android.database.sqlite.SQLiteQuery p6)
    {
        android.database.sqlite.SQLiteCursor v0_1 = new android.database.sqlite.SQLiteCursor(p3, p4, p5, p6);
        this.a.a(v0_1);
        return v0_1;
    }

Method ru.yandex.common.clid.a$1.newCursor() calling method android.database.sqlite.SQLiteCursor.<init>()


    public android.database.Cursor newCursor(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteCursorDriver p3, String p4, android.database.sqlite.SQLiteQuery p5)
    {
        return new android.database.sqlite.SQLiteCursor(p3, p4, p5);
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackItemByIdentifier() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhereEscapeString()


    android.database.Cursor getPackItemByIdentifier(String p9, String p10, String[] p11, String p12, String[] p13)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table, content_table, items_table");
        v0_1.appendWhere("pack_id= content_packId AND item_packId=pack_id");
        v0_1.appendWhere(" AND pack_identifier=");
        v0_1.appendWhereEscapeString(p9);
        v0_1.appendWhere(" AND item_identifier=");
        v0_1.appendWhereEscapeString(p10);
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            v5 = v0_1.query(v1_1, p11, p12, p13, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackItemByIdentifier() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhere()


    android.database.Cursor getPackItemByIdentifier(String p9, String p10, String[] p11, String p12, String[] p13)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table, content_table, items_table");
        v0_1.appendWhere("pack_id= content_packId AND item_packId=pack_id");
        v0_1.appendWhere(" AND pack_identifier=");
        v0_1.appendWhereEscapeString(p9);
        v0_1.appendWhere(" AND item_identifier=");
        v0_1.appendWhereEscapeString(p10);
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            v5 = v0_1.query(v1_1, p11, p12, p13, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getInstalledPacks() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhere()


    android.database.Cursor getInstalledPacks(String[] p9, String p10, String[] p11, String p12)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        v0_1.appendWhere("content_purchased=1 AND ");
        v0_1.appendWhere("pack_markedForDeletion=0 AND ");
        v0_1.appendWhere("content_contentPath NOT NULL");
        android.database.sqlite.SQLiteDatabase v1_0 = this.getReadableDatabase();
        if (v1_0 != null) {
            v5 = v0_1.query(v1_0, p9, p10, p11, 0, 0, p12);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getHiddenPacksByType() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhere()


    android.database.Cursor getHiddenPacksByType(String p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.Cursor v3 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        v0_1.appendWhere("pack_finishedDownloading=1 AND ");
        v0_1.appendWhere(new StringBuilder().append("pack_type=\'").append(p9).append("\' AND ").toString());
        android.database.sqlite.SQLiteDatabase v1_5 = new StringBuilder();
        v1_5.append("pack_visible=0 AND content_purchased=0");
        if (p11 != null) {
            v1_5.append(" AND ");
            v1_5.append(p11);
        }
        v1_5.append(" AND ");
        v0_1.appendWhere(v1_5);
        v0_1.appendWhere("pack_markedForDeletion=0 ");
        android.database.sqlite.SQLiteDatabase v1_8 = this.getReadableDatabase();
        if (v1_8 != null) {
            v3 = v0_1.query(v1_8, p10, 0, 0, 0, 0, p13);
        }
        return v3;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getAvailablePacksByType() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhere()


    android.database.Cursor getAvailablePacksByType(String p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        v0_1.appendWhere("pack_finishedDownloading=1 AND ");
        v0_1.appendWhere(new StringBuilder().append("pack_type=\'").append(p9).append("\' AND ").toString());
        v0_1.appendWhere("(pack_visible=1 OR (pack_visible=0 AND content_purchased=1)) AND ");
        v0_1.appendWhere("pack_markedForDeletion=0 ");
        android.database.sqlite.SQLiteDatabase v1_6 = this.getReadableDatabase();
        if (v1_6 != null) {
            v5 = v0_1.query(v1_6, p10, p11, p12, 0, 0, p13);
        }
        return v5;
    }

Method com.localytics.android.BaseProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor query(String p9, String[] p10, String p11, String[] p12, String p13)
    {
        java.util.Map v1_10 = new Object[4];
        v1_10[0] = p9;
        v1_10[1] = java.util.Arrays.toString(p10);
        v1_10[2] = p11;
        v1_10[3] = java.util.Arrays.toString(p12);
        com.localytics.android.Localytics$Log.v(String.format("Query table: %s, projection: %s, selection: %s, selectionArgs: %s", v1_10));
        android.database.Cursor v0_2 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_2.setTables(p9);
        if ((p10 != null) && ((1 == p10.length) && ("_count".equals(p10[0])))) {
            v0_2.setProjectionMap(com.localytics.android.BaseProvider.sCountProjectionMap);
        }
        android.database.Cursor v0_4 = v0_2.query(this.mDb, p10, p11, p12, 0, 0, p13);
        com.localytics.android.Localytics$Log.v(new StringBuilder().append("Query result is: ").append(android.database.DatabaseUtils.dumpCursorToString(v0_4)).toString());
        return v0_4;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public android.database.Cursor query(String p9, String[] p10, String p11, String[] p12, String p13, String p14, String p15)
    {
        android.database.Cursor v0_1;
        if (this.mDb != null) {
            android.database.Cursor v0_3 = new android.database.sqlite.SQLiteQueryBuilder();
            v0_3.setTables(p9);
            v0_1 = v0_3.query(this.mDb, p10, p11, p12, p13, p14, p15);
        } else {
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.getReceipts() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public android.database.Cursor getReceipts()
    {
        android.database.Cursor v2 = 0;
        if (this.mDb != null) {
            android.database.sqlite.SQLiteQueryBuilder v0_2 = new android.database.sqlite.SQLiteQueryBuilder();
            v0_2.setTables("receipts_table");
            String[] v4 = new String[2];
            v4[0] = String.valueOf(1);
            v4[1] = String.valueOf(2);
            v2 = v0_2.query(this.mDb, 0, "r_item_type=? OR r_item_type=?", v4, 0, 0, "r_id DESC");
        }
        return v2;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.getAccountContent() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getAccountContent()
    {
        android.database.Cursor v2 = 0;
        if (this.mDb != null) {
            android.database.sqlite.SQLiteQueryBuilder v0_2 = new android.database.sqlite.SQLiteQueryBuilder();
            v0_2.setTables("receipts_table");
            String[] v4 = new String[1];
            v4[0] = String.valueOf(10);
            v2 = v0_2.query(this.mDb, 0, "r_item_type=?", v4, 0, 0, "r_id DESC");
        }
        return v2;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.hasProject() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public boolean hasProject(android.net.Uri p11)
    {
        int v9 = 0;
        if (p11 != null) {
            int v0_0;
            android.database.Cursor v1_1 = this.getReadableDatabase();
            int v0_3 = new android.database.sqlite.SQLiteQueryBuilder();
            v0_3.setTables("sessions");
            String[] v4 = new String[1];
            v4[0] = String.valueOf(p11);
            String[] v2_1 = new String[1];
            v2_1[0] = "session_id";
            android.database.Cursor v1_0 = v0_3.query(v1_1, v2_1, "session_output_data=? AND length(session_output_path) > 0 AND length(session_output_data) > 0 AND session_output_width > 0", v4, 0, 0, 0);
            if (v1_0 == null) {
                v0_0 = 0;
            } else {
                if (v1_0.getCount() <= 0) {
                    v0_0 = 0;
                } else {
                    v0_0 = 1;
                }
            }
            com.adobe.android.common.util.IOUtils.closeSilently(v1_0);
            v9 = v0_0;
        }
        return v9;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.getContentItem() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public android.database.Cursor getContentItem(String p9, String p10)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.getReadableDatabase();
        android.database.Cursor v0_2 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_2.setTables("items");
        String[] v4 = new String[2];
        v4[0] = p9;
        v4[1] = p10;
        return v0_2.query(v1, 0, "items_pack_id=? AND items_item_id=?", v4, 0, 0, 0);
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.getActionsCount() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public int getActionsCount(long p10)
    {
        int v1_1 = this.getReadableDatabase();
        android.database.Cursor v0_2 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_2.setTables("actions");
        String[] v2_1 = new String[1];
        v2_1[0] = "action_id";
        String[] v4_1 = new String[1];
        v4_1[0] = String.valueOf(p10);
        android.database.Cursor v0_0 = v0_2.query(v1_1, v2_1, "action_session_id=?", v4_1, 0, 0, 0);
        int v1_0 = v0_0.getCount();
        com.adobe.android.common.util.IOUtils.closeSilently(v0_0);
        return v1_0;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.getActionIndex() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public int getActionIndex(long p10, long p12)
    {
        int v1_2 = this.getReadableDatabase();
        android.database.Cursor v0_2 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_2.setTables("actions");
        String[] v2_0 = new String[2];
        v2_0[0] = "action_id";
        v2_0[1] = "action_session_id";
        String[] v4_1 = new String[2];
        v4_1[0] = String.valueOf(p10);
        v4_1[1] = String.valueOf(p12);
        android.database.Cursor v0_0 = v0_2.query(v1_2, v2_0, "action_session_id=? AND action_id<=?", v4_1, 0, 0, "action_id ASC", 0);
        int v1_1 = (v0_0.getCount() - 1);
        com.adobe.android.common.util.IOUtils.closeSilently(v0_0);
        return v1_1;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.getAction() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ActionWrapper getAction(long p12, long p14)
    {
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ActionWrapper v1_0 = this.getReadableDatabase();
        android.database.Cursor v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("actions");
        long v2_6 = new String[5];
        v2_6[0] = "action_id";
        v2_6[1] = "action_session_id";
        v2_6[2] = "action_bitmap_ptr";
        v2_6[3] = "action_action";
        v2_6[4] = "action_recipe";
        long v4_5 = new String[2];
        v4_5[0] = String.valueOf(p12);
        v4_5[1] = String.valueOf(p14);
        android.database.Cursor v0_2 = v0_1.query(v1_0, v2_6, "action_session_id=? AND action_id=?", v4_5, 0, 0, "action_id ASC", "0, 1");
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ActionWrapper v1_1 = 0;
        if ((v0_2 == null) || ((!v0_2.moveToFirst()) || (v0_2.getColumnCount() != 5))) {
            long v4_7 = new Object[2];
            v4_7[0] = Long.valueOf(p14);
            v4_7[1] = Long.valueOf(p12);
            com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.warn("unable to find any action = %d (%d)", v4_7);
        } else {
            v1_1 = new com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ActionWrapper(v0_2.getLong(0), v0_2.getLong(1), v0_2.getLong(2), v0_2.getBlob(3), v0_2.getBlob(4));
        }
        com.adobe.android.common.util.IOUtils.closeSilently(v0_2);
        return v1_1;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    static synthetic void a(ark>com.yandex.metrica.impl.ob.cgark> p3, android.content.ContentValues p4)
    {
        if (p4 != null) {
            p3.c.lock();
            try {
                p3.d.getWritableDatabase().insertOrThrow("sessions", 0, p4);
                p3.c.unlock();
            } catch (java.util.concurrent.locks.Lock v0_2) {
                p3.c.unlock();
                throw v0_2;
            } catch (java.util.concurrent.locks.Lock v0) {
                p3.c.unlock();
            }
        }
        return;
    }

Method com.yandex.metrica.impl.ob.cf$n.a() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    protected void a(android.database.sqlite.SQLiteDatabase p8)
    {
        String v0_19 = new StringBuilder();
        v0_19.append("CREATE TABLE IF NOT EXISTS sessions_BACKUP (");
        v0_19.append("id INTEGER,");
        v0_19.append("start_time INTEGER,");
        v0_19.append("connection_type INTEGER,");
        v0_19.append("network_type TEXT,");
        v0_19.append("country_code INTEGER,");
        v0_19.append("operator_id INTEGER,");
        v0_19.append("lac INTEGER,");
        v0_19.append("report_request_parameters TEXT );");
        p8.execSQL(v0_19.toString());
        String v0_22 = new StringBuilder();
        v0_22.append("id,");
        v0_22.append("start_time,");
        v0_22.append("connection_type,");
        v0_22.append("network_type,");
        v0_22.append("country_code,");
        v0_22.append("operator_id,");
        v0_22.append("lac,");
        v0_22.append("report_request_parameters");
        int v2_20 = new StringBuilder();
        v2_20.append("INSERT INTO sessions_BACKUP");
        v2_20.append(" SELECT ").append(v0_22);
        v2_20.append(" FROM sessions;");
        p8.execSQL(v2_20.toString());
        p8.execSQL("DROP TABLE sessions;");
        p8.execSQL(com.yandex.metrica.impl.ob.cf$ac.b);
        try {
            String v1_0 = p8.rawQuery("SELECT * FROM sessions_BACKUP", 0);
        } catch (String v0_16) {
            com.yandex.metrica.impl.bl.a(v1_0);
            throw v0_16;
        }
        while (v1_0.moveToNext()) {
            int v2_1 = new android.content.ContentValues();
            android.database.DatabaseUtils.cursorRowToContentValues(v1_0, v2_1);
            String v3_1 = new java.util.ArrayList();
            v3_1.add("id");
            v3_1.add("start_time");
            v3_1.add("report_request_parameters");
            android.content.ContentValues v4_1 = new android.content.ContentValues(v2_1);
            String v5_0 = v2_1.valueSet().iterator();
            while (v5_0.hasNext()) {
                String v0_15 = ((java.util.Map$Entry) v5_0.next());
                if (!v3_1.contains(v0_15.getKey())) {
                    v4_1.remove(((String) v0_15.getKey()));
                }
            }
            String v3_2 = v3_1.iterator();
            while (v3_2.hasNext()) {
                v2_1.remove(((String) v3_2.next()));
            }
            String v0_9 = new org.json.JSONObject();
            v0_9.put("conn_type", v2_1.getAsInteger("connection_type"));
            v0_9.putOpt("net_type", v2_1.get("network_type"));
            v0_9.putOpt("operator_id", v2_1.get("operator_id"));
            v0_9.putOpt("lac", v2_1.get("lac"));
            v0_9.putOpt("country_code", v2_1.get("country_code"));
            v4_1.put("network_info", v0_9.toString());
            p8.insertOrThrow("sessions", 0, v4_1);
        }
        com.yandex.metrica.impl.bl.a(v1_0);
        p8.execSQL("DROP TABLE sessions_BACKUP;");
        String v0_31 = new StringBuilder();
        v0_31.append("ALTER TABLE reports");
        v0_31.append(" ADD COLUMN wifi_network_info");
        v0_31.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_31.toString());
        String v0_34 = new StringBuilder();
        v0_34.append("ALTER TABLE reports");
        v0_34.append(" ADD COLUMN cell_info");
        v0_34.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_34.toString());
        String v0_37 = new StringBuilder();
        v0_37.append("ALTER TABLE reports");
        v0_37.append(" ADD COLUMN location_info");
        v0_37.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_37.toString());
        return;
    }

Method com.yandex.datasync.internal.database.sql.b.a() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    public long a(String p7, android.content.ContentValues p8)
    {
        this.g();
        try {
            long v0_0 = this.a.insertOrThrow(p7, 0, p8);
        } catch (android.database.SQLException v1_1) {
            this.d.a(v1_1, p7, p8, 0, 0);
            v0_0 = 0;
        }
        return v0_0;
    }

Method com.yandex.auth.sync.AccountProvider.insert() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    public android.net.Uri insert(android.net.Uri p4, android.content.ContentValues p5)
    {
        switch (com.yandex.auth.sync.AccountProvider.d.match(p4)) {
            case 0:
                try {
                    this.e.getWritableDatabase().insertOrThrow("account", 0, p5);
                } catch (android.net.Uri v0) {
                }
                return android.net.Uri.withAppendedPath(com.yandex.auth.k.e(), p5.getAsString("name"));
            default:
                throw new UnsupportedOperationException(new StringBuilder("try to insert to ").append(p4).append(" values ").append(p5).toString());
        }
    }

Method com.yandex.auth.db.a.a() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    public final boolean a(com.yandex.auth.ob.e p7)
    {
        int v0 = 0;
        android.database.SQLException v1_0 = this.getWritableDatabase();
        long v2_2 = new android.content.ContentValues();
        v2_2.put("name", p7.name);
        v2_2.put("xtoken", p7.getPassword());
        v2_2.put("type", p7.getAccountType());
        v2_2.put("affinity", p7.getAffinity().toString());
        v2_2.put("extra_data", p7.a.b());
        new StringBuilder("Inserting account ").append(p7.name).append(" into local DB");
        try {
            if (v1_0.insertOrThrow("account", 0, v2_2) > 0) {
                v0 = 1;
            }
        } catch (android.database.SQLException v1) {
        }
        return v0;
    }

Method com.yandex.promolib.impl.u.b() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    public static long b(android.database.sqlite.SQLiteDatabase p4, android.content.ContentValues p5)
    {
        try {
            long v0 = p4.insertOrThrow("reports", 0, p5);
        } catch (android.database.sqlite.SQLiteException v2) {
        }
        return v0;
    }

Method com.localytics.android.MigrationDatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p12, int p13, int p14)
    {
        if (p13 < 3) {
            p12.delete("upload_blob_events", 0, 0);
            p12.delete("event_history", 0, 0);
            p12.delete("upload_blobs", 0, 0);
            p12.delete("attributes", 0, 0);
            p12.delete("events", 0, 0);
            p12.delete("sessions", 0, 0);
        }
        if (p13 < 4) {
            int v1_37 = new Object[2];
            v1_37[0] = "sessions";
            v1_37[1] = "iu";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_37));
        }
        if (p13 < 5) {
            int v1_47 = new Object[2];
            v1_47[0] = "sessions";
            v1_47[1] = "device_wifi_mac_hash";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_47));
        }
        if (p13 < 6) {
            try {
                String v2_112 = new String[2];
                v2_112[0] = "_id";
                v2_112[1] = "attribute_key";
                int v1_78 = p12.query("attributes", v2_112, 0, 0, 0, 0, 0);
                try {
                    String v0_102 = v1_78.getColumnIndexOrThrow("_id");
                    String v2_128 = v1_78.getColumnIndexOrThrow("attribute_key");
                    int v3_117 = new android.content.ContentValues();
                    int v5_7 = new Object[1];
                    v5_7[0] = "_id";
                    Object[] v4_11 = String.format("%s = ?", v5_7);
                    int v5_9 = new String[1];
                    v1_78.moveToPosition(-1);
                } catch (String v0_100) {
                    if (v1_78 != 0) {
                        v1_78.close();
                    }
                    throw v0_100;
                }
                while (v1_78.moveToNext()) {
                    int v8_3 = new Object[2];
                    v8_3[0] = this.mLocalyticsDao.getAppContext().getPackageName();
                    v8_3[1] = v1_78.getString(v2_128);
                    v3_117.put("attribute_key", String.format("%s:%s", v8_3));
                    v5_9[0] = Long.toString(v1_78.getLong(v0_102));
                    p12.update("attributes", v3_117, v4_11, v5_9);
                    v3_117.clear();
                }
                if (v1_78 != 0) {
                    v1_78.close();
                }
            } catch (String v0_100) {
                v1_78 = 0;
            }
        }
        if (p13 < 7) {
            int v1_1 = new Object[3];
            v1_1[0] = "info";
            v1_1[1] = "fb_attribution";
            v1_1[2] = "first_run";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s TEXT, %s INTEGER);", v1_1));
            String v0_6 = new android.content.ContentValues();
            v0_6.putNull("fb_attribution");
            v0_6.put("first_run", Boolean.FALSE);
            p12.insertOrThrow("info", 0, v0_6);
        }
        if (p13 < 8) {
            int v1_7 = new Object[4];
            v1_7[0] = "identifiers";
            v1_7[1] = "_id";
            v1_7[2] = "key";
            v1_7[3] = "value";
            p12.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_7));
        }
        if (p13 < 9) {
            int v1_10 = new Object[2];
            v1_10[0] = "events";
            v1_10[1] = "clv_increase";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL DEFAULT 0;", v1_10));
        }
        if (p13 < 10) {
            int v1_12 = new Object[2];
            v1_12[0] = "info";
            v1_12[1] = "play_attribution";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_12));
        }
        if (p13 < 11) {
            int v1_14 = new Object[2];
            v1_14[0] = "info";
            v1_14[1] = "registration_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_14));
            int v1_17 = new Object[2];
            v1_17[0] = "info";
            v1_17[1] = "registration_version";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_17));
        }
        if (p13 < 12) {
            int v1_19 = new Object[2];
            v1_19[0] = "info";
            v1_19[1] = "first_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_19));
            int v1_21 = new Object[2];
            v1_21[0] = "info";
            v1_21[1] = "first_telephony_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_21));
            int v1_24 = new Object[2];
            v1_24[0] = "info";
            v1_24[1] = "package_name";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_24));
            String v0_33 = new android.content.ContentValues();
            v0_33.put("first_android_id", com.localytics.android.DatapointHelper.getAndroidIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("first_telephony_id", com.localytics.android.DatapointHelper.getTelephonyDeviceIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("package_name", this.mLocalyticsDao.getAppContext().getPackageName());
            p12.update("info", v0_33, 0, 0);
            int v1_30 = new Object[2];
            v1_30[0] = "sessions";
            v1_30[1] = "device_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_30));
        }
        if (p13 < 13) {
            int v1_32 = new Object[2];
            v1_32[0] = "events";
            v1_32[1] = "event_lat";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_32));
            int v1_35 = new Object[2];
            v1_35[0] = "events";
            v1_35[1] = "event_lng";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_35));
        }
        if (p13 < 14) {
            int v1_39 = new Object[19];
            v1_39[0] = "amp_rules";
            v1_39[1] = "_id";
            v1_39[2] = "campaign_id";
            v1_39[3] = "expiration";
            v1_39[4] = "display_seconds";
            v1_39[5] = "display_session";
            v1_39[6] = "version";
            v1_39[7] = "phone_location";
            v1_39[8] = "phone_size_width";
            v1_39[9] = "phone_size_height";
            v1_39[10] = "tablet_location";
            v1_39[11] = "tablet_size_width";
            v1_39[12] = "tablet_size_height";
            v1_39[13] = "time_to_display";
            v1_39[14] = "internet_required";
            v1_39[15] = "ab_test";
            v1_39[16] = "rule_name";
            v1_39[17] = "location";
            v1_39[18] = "devices";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER NOT NULL, %s TEXT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_39));
            int v1_41 = new Object[6];
            v1_41[0] = "amp_ruleevent";
            v1_41[1] = "_id";
            v1_41[2] = "event_name";
            v1_41[3] = "rule_id_ref";
            v1_41[4] = "amp_rules";
            v1_41[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_41));
            int v1_43 = new Object[4];
            v1_43[0] = "amp_displayed";
            v1_43[1] = "_id";
            v1_43[2] = "displayed";
            v1_43[3] = "campaign_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL);", v1_43));
            int v1_45 = new Object[7];
            v1_45[0] = "amp_conditions";
            v1_45[1] = "_id";
            v1_45[2] = "attribute_name";
            v1_45[3] = "operator";
            v1_45[4] = "rule_id_ref";
            v1_45[5] = "amp_rules";
            v1_45[6] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_45));
            int v1_49 = new Object[6];
            v1_49[0] = "amp_condition_values";
            v1_49[1] = "_id";
            v1_49[2] = "value";
            v1_49[3] = "condition_id_ref";
            v1_49[4] = "amp_conditions";
            v1_49[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_49));
        }
        if (p13 < 15) {
            int v1_51 = new Object[4];
            v1_51[0] = "custom_dimensions";
            v1_51[1] = "_id";
            v1_51[2] = "custom_dimension_key";
            v1_51[3] = "custom_dimension_value";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_51));
        }
        if (p13 < 16) {
            int v1_53 = new Object[2];
            v1_53[0] = "info";
            v1_53[1] = "first_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_53));
            int v1_55 = new Object[2];
            v1_55[0] = "sessions";
            v1_55[1] = "device_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_55));
            int v1_57 = new Object[2];
            v1_57[0] = "info";
            v1_57[1] = "push_disabled";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER;", v1_57));
            int v1_59 = new Object[2];
            v1_59[0] = "info";
            v1_59[1] = "sender_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_59));
        }
        if (p13 < 17) {
            int v1_61 = new Object[4];
            v1_61[0] = "profile";
            v1_61[1] = "_id";
            v1_61[2] = "attribute";
            v1_61[3] = "action";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT, %s INTEGER)", v1_61));
            int v1_63 = new Object[2];
            v1_63[0] = "events";
            v1_63[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_63));
            int v1_66 = new Object[2];
            v1_66[0] = "events";
            v1_66[1] = "user_type";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_66));
            int v1_68 = new Object[2];
            v1_68[0] = "events";
            v1_68[1] = "ids";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_68));
            int v1_70 = new Object[2];
            v1_70[0] = "info";
            v1_70[1] = "last_session_open_time";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER", v1_70));
            int v1_72 = new Object[3];
            v1_72[0] = "sessions";
            v1_72[1] = "elapsed";
            v1_72[2] = "elapsed";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL CHECK (%s >= 0) DEFAULT 0", v1_72));
        }
        if (p13 < 18) {
            int v1_74 = new Object[2];
            v1_74[0] = "profile";
            v1_74[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT", v1_74));
            android.content.ContentValues v9_1 = new android.content.ContentValues();
            try {
                int v1_76 = p12.query("profile", 0, 0, 0, 0, 0, 0);
                try {
                    while (v1_76.moveToNext()) {
                        String v0_97 = String.valueOf(v1_76.getInt(v1_76.getColumnIndexOrThrow("_id")));
                        try {
                            String v2_122 = new org.json.JSONObject(v1_76.getString(v1_76.getColumnIndexOrThrow("attribute")));
                            v9_1.put("attribute", v2_122.getString("attributes"));
                            v9_1.put("customer_id", v2_122.getString("id"));
                            Object[] v4_6 = new Object[2];
                            v4_6[0] = "_id";
                            v4_6[1] = v0_97;
                            p12.update("profile", v9_1, String.format("%s = %s", v4_6), 0);
                            v9_1.clear();
                        } catch (String v2) {
                            Object[] v4_9 = new Object[2];
                            v4_9[0] = "_id";
                            v4_9[1] = v0_97;
                            p12.delete("profile", String.format("%s = %s", v4_9), 0);
                        }
                    }
                } catch (String v0_92) {
                    if (v1_76 != 0) {
                        v1_76.close();
                    }
                    throw v0_92;
                }
                if (v1_76 != 0) {
                    v1_76.close();
                }
            } catch (String v0_92) {
                v1_76 = 0;
            }
        }
        return;
    }

Method com.localytics.android.BaseProvider.insert() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    long insert(String p7, android.content.ContentValues p8)
    {
        long v0_3;
        int v1_2 = new Object[2];
        v1_2[0] = p7;
        v1_2[1] = p8.toString();
        com.localytics.android.Localytics$Log.v(String.format("Insert table: %s, values: %s", v1_2));
        if (this.canAddToDB()) {
            v0_3 = this.mDb.insertOrThrow(p7, 0, p8);
            Object[] v3_1 = new Object[1];
            v3_1[0] = Long.valueOf(v0_3);
            com.localytics.android.Localytics$Log.v(String.format("Inserted row with new id %d", v3_1));
        } else {
            com.localytics.android.Localytics$Log.v("Database is full; data not inserted");
            v0_3 = -1;
        }
        return v0_3;
    }

Method ru.yandex.disk.provider.z.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private android.net.Uri a(android.database.sqlite.SQLiteDatabase p7, android.net.Uri p8, android.content.ContentValues p9)
    {
        IllegalArgumentException v0_2 = p9.getAsString("path");
        if (v0_2 != null) {
            IllegalArgumentException v0_8 = ark>ru.yandex.disk.provider.zark>.a(v0_2.hashCode());
            p9.put("_id", Long.valueOf(v0_8));
            if (p7.insert("invites", 0, p9) < 0) {
                throw new IllegalArgumentException("see sql error in log");
            } else {
                return android.content.ContentUris.withAppendedId(p8, v0_8);
            }
        } else {
            throw new android.database.sqlite.SQLiteException("path is required column but null");
        }
    }

Method ru.yandex.disk.provider.e.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public android.net.Uri a(android.net.Uri p5, android.content.ContentValues p6)
    {
        long v0_2 = this.a.getWritableDatabase().insert("CREDENTIAL", "USER", p6);
        if (v0_2 > 0) {
            this.a(p5);
            p5 = android.content.ContentUris.withAppendedId(p5, v0_2);
        }
        return p5;
    }

Method ru.yandex.disk.provider.ab.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public android.net.Uri a(android.net.Uri p5, android.content.ContentValues p6)
    {
        long v0_2;
        if (p6 == null) {
            v0_2 = new android.content.ContentValues();
        } else {
            v0_2 = new android.content.ContentValues(p6);
        }
        this.a(v0_2, p5);
        long v0_1 = this.a.getWritableDatabase().insert("DISK_QUEUE", 0, v0_2);
        if (v0_1 > 0) {
            p5 = android.content.ContentUris.withAppendedId(p5, v0_1);
        }
        return p5;
    }

Method ru.yandex.disk.provider.ab.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public int a(android.net.Uri p11, android.content.ContentValues[] p12)
    {
        int v0_0 = 0;
        if (p12 != null) {
            android.database.sqlite.SQLiteDatabase v2_0 = this.a.getWritableDatabase();
            try {
                v2_0.beginTransaction();
                android.net.Uri v3_0 = ru.yandex.disk.provider.DiskContentProvider.a(this.a(), "disk_queue");
                int v4 = p12.length;
                int v1_0 = 0;
            } catch (int v0_1) {
                v2_0.endTransaction();
                throw v0_1;
            }
            while (v1_0 < v4) {
                android.net.Uri v5_0 = p12[v1_0];
                this.a(v5_0, p11);
                android.content.ContentResolver v6_1 = v2_0.insert("DISK_QUEUE", this.a(0, p11), v5_0);
                if (v6_1 > 0) {
                    this.a().getContentResolver().notifyChange(android.content.ContentUris.withAppendedId(v3_0, v6_1), 0);
                    v0_0++;
                }
                v1_0++;
            }
            if (v0_0 > 0) {
                this.a(v3_0);
            }
            v2_0.setTransactionSuccessful();
            v2_0.endTransaction();
            return v0_0;
        } else {
            throw new android.database.SQLException(new StringBuilder().append("Failed to insert row into ").append(p11).toString());
        }
    }

Method ru.yandex.disk.download.q.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void b(ru.yandex.disk.download.DownloadQueueItem p5)
    {
        if (this.h().insert("queue", 0, this.c(p5)) != -1) {
            return;
        } else {
            throw new android.database.sqlite.SQLiteConstraintException("see logs above");
        }
    }

Method ru.yandex.common.clid.e.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(ru.yandex.common.clid.AppEntryPoint p5, ru.yandex.common.clid.ClidItem p6)
    {
        this.l();
        try {
            this.l = 0;
            String v1_0 = this.b();
        } catch (android.database.sqlite.SQLiteException v0_5) {
            this.m();
            throw v0_5;
        }
        if ((v1_0 != null) && (this.a(v1_0))) {
            try {
                this.a(v1_0, p5);
                android.database.sqlite.SQLiteException v0_2 = new android.content.ContentValues();
                v0_2.put("application", p6.b());
                v0_2.put("entry_point_type", Integer.valueOf(p5.a().ordinal()));
                v0_2.put("entry_point_id", p5.b());
                v0_2.put("clid", p6.f());
                v1_0.insert("entry_points", 0, v0_2);
                v1_0.setTransactionSuccessful();
            } catch (android.database.sqlite.SQLiteException v0_3) {
                v1_0.endTransaction();
                throw v0_3;
            } catch (android.database.sqlite.SQLiteException v0_4) {
                ark>ru.yandex.common.clid.eark>.a("setClidForEntryPoint()", v0_4);
            }
            v1_0.endTransaction();
        }
        this.m();
        return;
    }

Method ru.yandex.common.clid.e.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private boolean a(android.database.sqlite.SQLiteDatabase p12, String p13, String p14)
    {
        android.content.ContentValues v0_0;
        String[] v4 = new String[1];
        v4[0] = p13;
        android.database.Cursor v1_0 = p12.query("apps", ark>ru.yandex.common.clid.eark>.b, "application=?", v4, 0, 0, 0, "1");
        if (v1_0 == null) {
            v0_0 = 0;
        } else {
            try {
                if (v1_0.moveToFirst()) {
                    if (!p14.equals(v1_0.getString(0))) {
                        android.content.ContentValues v0_6 = new android.content.ContentValues();
                        v0_6.put("state", p14);
                        p12.update("apps", v0_6, "application=?", v4);
                    }
                } else {
                    android.content.ContentValues v0_8 = new android.content.ContentValues();
                    v0_8.put("application", p13);
                    v0_8.put("state", p14);
                    p12.insert("apps", 0, v0_8);
                }
            } catch (android.content.ContentValues v0_9) {
                ru.yandex.searchlib.util.ab.a(v1_0);
                throw v0_9;
            }
            ru.yandex.searchlib.util.ab.a(v1_0);
            v0_0 = 1;
        }
        return v0_0;
    }

Method ru.yandex.common.clid.e.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private long a(android.database.sqlite.SQLiteDatabase p3, String p4, android.content.ContentValues p5)
    {
        try {
            long v0_1 = p3.insert(p4, 0, p5);
        } catch (long v0_2) {
            ark>ru.yandex.common.clid.eark>.a("db.insert()", v0_2);
            v0_1 = -1;
        }
        return v0_1;
    }

Method com.yandex.metrica.impl.ob.cl.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(java.util.List p7)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.a.a();
        try {
            v1.beginTransaction();
            v1.execSQL("delete from permissions");
            com.yandex.metrica.impl.ob.cp v2_1 = p7.iterator();
        } catch (String v0_7) {
            v1.endTransaction();
            this.a.a(v1);
            throw v0_7;
        } catch (String v0) {
            v1.endTransaction();
            this.a.a(v1);
            return;
        }
        while (v2_1.hasNext()) {
            String v0_5;
            String v0_3 = ((com.yandex.metrica.impl.ob.el) v2_1.next());
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("name", v0_3.b());
            if (!v0_3.a()) {
                v0_5 = 0;
            } else {
                v0_5 = 1;
            }
            v3_1.put("granted", Integer.valueOf(v0_5));
            v1.insert("permissions", 0, v3_1);
        }
        v1.setTransactionSuccessful();
        v1.endTransaction();
        this.a.a(v1);
        return;
    }

Method com.yandex.metrica.impl.ob.ck.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public declared_synchronized void a(long p10, String p12)
    {
        try {
            java.util.concurrent.atomic.AtomicLong v0_1 = this.a.getWritableDatabase();
            this.c.clear();
            this.c.put("incremental_id", Long.valueOf((this.f.get() + 1)));
            this.c.put("timestamp", Long.valueOf(p10));
            this.c.put("data", p12);
        } catch (java.util.concurrent.atomic.AtomicLong v0_12) {
            throw v0_12;
        } catch (java.util.concurrent.atomic.AtomicLong v0) {
            return;
        }
        if (v0_1.insert("l_dat", 0, this.c) == -1) {
            return;
        } else {
            this.d.incrementAndGet();
            this.f.incrementAndGet();
            this.b.e(this.f.get()).h();
            if (this.e.get() <= p10) {
                return;
            } else {
                this.e.set(p10);
                return;
            }
        }
    }

Method com.yandex.metrica.impl.ob.cf$p.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void a(android.database.sqlite.SQLiteDatabase p5)
    {
        String v0_4 = new StringBuilder();
        v0_4.append("ALTER TABLE reports");
        v0_4.append(" ADD COLUMN app_environment");
        v0_4.append(" TEXT DEFAULT \'{}\'");
        p5.execSQL(v0_4.toString());
        String v0_3 = new StringBuilder();
        v0_3.append("ALTER TABLE reports");
        v0_3.append(" ADD COLUMN app_environment_revision");
        v0_3.append(" INTEGER DEFAULT 0");
        p5.execSQL(v0_3.toString());
        p5.execSQL("ALTER TABLE reports RENAME TO reports_backup");
        p5.execSQL(ark>com.yandex.metrica.impl.ob.cf$park>.a);
        try {
            android.database.Cursor v1 = p5.rawQuery("SELECT * FROM reports_backup", 0);
        } catch (String v0_10) {
            com.yandex.metrica.impl.bl.a(v1);
            throw v0_10;
        }
        while (v1.moveToNext()) {
            String v0_13 = new android.content.ContentValues();
            android.database.DatabaseUtils.cursorRowToContentValues(v1, v0_13);
            String v2_6 = v0_13.getAsString("environment");
            v0_13.remove("environment");
            v0_13.put("error_environment", v2_6);
            p5.insert("reports", 0, v0_13);
        }
        com.yandex.metrica.impl.bl.a(v1);
        p5.execSQL("DROP TABLE reports_backup");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$g.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void a(android.database.sqlite.SQLiteDatabase p6)
    {
        p6.execSQL("CREATE TABLE IF NOT EXISTS api_level_info (API_LEVEL INT )");
        android.content.ContentValues v2_1 = new android.content.ContentValues();
        v2_1.put("API_LEVEL", Integer.valueOf(com.yandex.metrica.YandexMetrica.getLibraryApiLevel()));
        p6.insert("api_level_info", "API_LEVEL", v2_1);
        return;
    }

Method com.yandex.auth.db.b.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void a(com.yandex.auth.login.x p9, String p10, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String v1_0 = ark>com.yandex.auth.db.bark>.b(p11);
        int v3_2 = new String[1];
        v3_2[0] = String.valueOf(new java.util.Date().getTime());
        v0.delete("token", "expires<?", v3_2);
        android.content.ContentValues v4_2 = new android.content.ContentValues();
        v4_2.put("clientId", p9.a());
        v4_2.put("login", p10);
        v4_2.put("token", p9.c);
        if (com.yandex.auth.util.s.a(p9.d) != null) {
            v4_2.put("expires", Long.valueOf(com.yandex.auth.util.s.a(p9.d).getTime()));
        }
        if (v1_0 != null) {
            v4_2.put("xTokenHash", v1_0);
        }
        v4_2.put("type", p9.e);
        v0.insert("token", 0, v4_2);
        return;
    }

Method ru.yandex.disk.trash.u.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(ru.yandex.disk.trash.af p9)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.d();
        android.content.ContentValues v1 = p9.c();
        this.a(v1);
        String[] v5 = new String[1];
        v5[0] = v1.getAsString("path");
        if (v0.update("TRASH", v1, "path = ?", ru.yandex.disk.util.h.a(v5)) < 1) {
            v0.insert("TRASH", 0, v1);
        }
        return;
    }

Method ru.yandex.disk.provider.l.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void b(ru.yandex.disk.provider.q p11, boolean p12)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.a();
        android.content.ContentValues v1 = p11.a();
        if (p12) {
            v1.put("ROW_TYPE", Integer.valueOf(1));
        }
        String v2_3 = ru.yandex.disk.util.m.a(v1.getAsBoolean("IS_DIR").booleanValue());
        int v3_1 = v1.getAsString("PARENT");
        String v4_1 = v1.getAsString("NAME");
        Object[] v7_1 = new Object[3];
        v7_1[0] = v3_1;
        v7_1[1] = v4_1;
        v7_1[2] = Integer.valueOf(v2_3);
        if (v0.update("DISK", v1, "PARENT = ? AND NAME = ? AND IS_DIR = ?", ru.yandex.disk.util.h.a(v7_1)) < 1) {
            v0.insert("DISK", 0, v1);
        }
        return;
    }

Method ru.yandex.disk.photoslice.bb.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void b(String p5, android.content.ContentValues p6)
    {
        if (this.p().insert(p5, 0, p6) >= 0) {
            return;
        } else {
            throw new android.database.SQLException("error");
        }
    }

Method ru.yandex.disk.operation.OperationsDatabase.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void b(ru.yandex.disk.operation.j p5, ru.yandex.disk.operation.OperationLists$State p6)
    {
        p5.a(this.h().insert("OPERATIONS", 0, this.c(p5, p6)));
        return;
    }

Method ru.yandex.disk.l.d.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(ru.yandex.disk.l.h p11)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.b.getWritableDatabase();
        android.content.ContentValues v1 = p11.a();
        String v2_5 = v1.getAsString("PARENT");
        int v3_0 = v1.getAsString("NAME");
        int v4_3 = ru.yandex.disk.util.m.a(v1.getAsBoolean("IS_DIR").booleanValue());
        Object[] v7_1 = new Object[3];
        v7_1[0] = v2_5;
        v7_1[1] = v3_0;
        v7_1[2] = Integer.valueOf(v4_3);
        if (v0_1.update("FILE_INDEX", v1, "PARENT = ? AND NAME = ? AND IS_DIR = ?", ru.yandex.disk.util.h.a(v7_1)) < 1) {
            v0_1.insert("FILE_INDEX", 0, v1);
        }
        return;
    }

Method ru.yandex.disk.feed.publicblock.d.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(ru.yandex.disk.feed.publicblock.a p5)
    {
        this.b().insert("PUBLIC_BLOCKS_COMMENTS", 0, this.b(p5));
        return;
    }

Method ru.yandex.disk.feed.cc.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long b(ru.yandex.disk.feed.bo p5)
    {
        return this.r().insert("FEED_BLOCKS", 0, this.e(p5));
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(long p10, int p12, int p13, com.yandex.b.a p14)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("BLOCK_ID", Long.valueOf(p10));
        v0_1.put("FRACTION", Integer.valueOf(p13));
        v0_1.put("FIRST_FRACTION_ORDER", Integer.valueOf(p12));
        v0_1.put("PARENT", p14.b());
        v0_1.put("NAME", p14.c());
        v0_1.put("SERVER_ORDER", Integer.valueOf(p12));
        android.database.sqlite.SQLiteDatabase v1_4 = this.r();
        String[] v4_1 = new Object[2];
        v4_1[0] = Long.valueOf(p10);
        v4_1[1] = Integer.valueOf(p12);
        if (v1_4.update("FEED_BLOCK_TO_FILE", v0_1, "BLOCK_ID = ? AND SERVER_ORDER = ?", ru.yandex.disk.util.h.a(v4_1)) < 1) {
            v1_4.insert("FEED_BLOCK_TO_FILE", 0, v0_1);
        }
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long a(ru.yandex.disk.feed.bo p5)
    {
        return this.r().insert("FEED_BLOCKS", 0, this.f(p5));
    }

Method ru.yandex.disk.asyncbitmap.an.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void a(com.yandex.b.a p5, android.content.ContentValues p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.l();
        if (v0.update("PreviewsDatabaseTable", p6, "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(p5)) == 0) {
            p6.put("PARENT", p5.b());
            p6.put("NAME", p5.c());
            v0.insert("PreviewsDatabaseTable", 0, p6);
        }
        return;
    }

Method com.localytics.android.ProfileProvider$ProfileDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p12)
    {
        int v1_2 = new Object[5];
        v1_2[0] = "changes";
        v1_2[1] = "_id";
        v1_2[2] = "scope";
        v1_2[3] = "change";
        v1_2[4] = "customer_id";
        p12.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_2));
        if (com.localytics.android.ProfileProvider$ProfileDatabaseHelper.oldDB != null) {
            try {
                android.content.ContentValues v10_1 = new android.content.ContentValues();
                int v1_3 = com.localytics.android.ProfileProvider$ProfileDatabaseHelper.oldDB.query("profile", 0, 0, 0, 0, 0, "_id ASC");
                try {
                    while (v1_3.moveToNext()) {
                        try {
                            String v2_6 = new org.json.JSONObject(v1_3.getString(v1_3.getColumnIndexOrThrow("attribute")));
                            org.json.JSONObject v3_6 = new org.json.JSONObject();
                            v3_6.put("op", com.localytics.android.ProfileHandler$ProfileOperation.ASSIGN.getOperationString());
                            Throwable v0_12 = ((String) v2_6.keys().next());
                            v3_6.put("attr", v0_12);
                            v3_6.put("value", v2_6.get(v0_12));
                            v10_1.put("scope", com.localytics.android.Localytics$ProfileScope.APPLICATION.getScope());
                            v10_1.put("change", v3_6.toString());
                            v10_1.put("customer_id", v1_3.getString(v1_3.getColumnIndexOrThrow("customer_id")));
                            p12.insert("changes", 0, v10_1);
                            v10_1.clear();
                        } catch (Throwable v0_18) {
                            com.localytics.android.Localytics$Log.w("Caught JSON exception", v0_18);
                        }
                    }
                } catch (Throwable v0_4) {
                    if (v1_3 != 0) {
                        v1_3.close();
                    }
                    throw v0_4;
                }
                com.localytics.android.ProfileProvider$ProfileDatabaseHelper.cleanUpOldDB();
                if (v1_3 != 0) {
                    v1_3.close();
                }
            } catch (Throwable v0_4) {
                v1_3 = 0;
            } catch (Throwable v0_19) {
                throw v0_19;
            }
        }
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs() calling method android.database.sqlite.SQLiteDatabase.insert()


    static void preUploadBuildBlobs(android.database.sqlite.SQLiteDatabase p11)
    {
        android.database.Cursor v8 = 0;
        java.util.HashSet v10_1 = new java.util.HashSet();
        try {
            android.database.Cursor v9 = p11.query("events", com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_EVENTS, 0, 0, 0, 0, com.localytics.android.MigrationDatabaseHelper.EVENTS_SORT_ORDER);
            try {
                android.content.ContentValues v1_0 = p11.query("upload_blob_events", com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_BLOBS, 0, 0, 0, 0, com.localytics.android.MigrationDatabaseHelper.UPLOAD_BLOBS_EVENTS_SORT_ORDER);
                try {
                    String v2_1 = v9.getColumnIndexOrThrow("_id");
                    java.util.Iterator v3_2 = new android.database.CursorJoiner(v9, com.localytics.android.MigrationDatabaseHelper.JOINER_ARG_UPLOAD_EVENTS_COLUMNS, v1_0, com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_BLOBS).iterator();
                } catch (String v0_1) {
                    v8 = v9;
                    if (v8 != null) {
                        v8.close();
                    }
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v0_1;
                }
                while (v3_2.hasNext()) {
                    switch (com.localytics.android.MigrationDatabaseHelper$1.$SwitchMap$android$database$CursorJoiner$Result[((android.database.CursorJoiner$Result) v3_2.next()).ordinal()]) {
                        case 1:
                            v10_1.add(Long.valueOf(v9.getLong(v2_1)));
                        default:
                    }
                }
                if (v9 != null) {
                    v9.close();
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                if (v10_1.size() > 0) {
                    android.content.ContentValues v1_4 = new android.content.ContentValues();
                    v1_4.put("uuid", java.util.UUID.randomUUID().toString());
                    String v2_6 = Long.valueOf(p11.insert("upload_blobs", 0, v1_4));
                    v1_4.clear();
                    java.util.Iterator v3_4 = v10_1.iterator();
                    while (v3_4.hasNext()) {
                        String v0_14 = ((Long) v3_4.next());
                        v1_4.put("upload_blobs_key_ref", v2_6);
                        v1_4.put("events_key_ref", v0_14);
                        p11.insert("upload_blob_events", 0, v1_4);
                        v1_4.clear();
                    }
                    v1_4.put("processed_in_blob", v2_6);
                    p11.update("event_history", v1_4, com.localytics.android.MigrationDatabaseHelper.SELECTION_UPLOAD_NULL_BLOBS, 0);
                    v1_4.clear();
                }
                return;
            } catch (String v0_1) {
                v1_0 = 0;
                v8 = v9;
            }
        } catch (String v0_1) {
            v1_0 = 0;
        }
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p14)
    {
        int v8 = 0;
        int v1_15 = new Object[19];
        v1_15[0] = "marketing_rules";
        v1_15[1] = "_id";
        v1_15[2] = "campaign_id";
        v1_15[3] = "expiration";
        v1_15[4] = "display_seconds";
        v1_15[5] = "display_session";
        v1_15[6] = "version";
        v1_15[7] = "phone_location";
        v1_15[8] = "phone_size_width";
        v1_15[9] = "phone_size_height";
        v1_15[10] = "tablet_location";
        v1_15[11] = "tablet_size_width";
        v1_15[12] = "tablet_size_height";
        v1_15[13] = "time_to_display";
        v1_15[14] = "internet_required";
        v1_15[15] = "ab_test";
        v1_15[16] = "rule_name";
        v1_15[17] = "location";
        v1_15[18] = "devices";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER NOT NULL, %s TEXT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_15));
        int v1_14 = new Object[6];
        v1_14[0] = "marketing_ruleevent";
        v1_14[1] = "_id";
        v1_14[2] = "event_name";
        v1_14[3] = "rule_id_ref";
        v1_14[4] = "marketing_rules";
        v1_14[5] = "_id";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_14));
        int v1_16 = new Object[2];
        v1_16[0] = "marketing_displayed";
        v1_16[1] = "campaign_id";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY);", v1_16));
        int v1_18 = new Object[7];
        v1_18[0] = "marketing_conditions";
        v1_18[1] = "_id";
        v1_18[2] = "attribute_name";
        v1_18[3] = "operator";
        v1_18[4] = "rule_id_ref";
        v1_18[5] = "marketing_rules";
        v1_18[6] = "_id";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_18));
        int v1_1 = new Object[6];
        v1_1[0] = "marketing_condition_values";
        v1_1[1] = "_id";
        v1_1[2] = "value";
        v1_1[3] = "condition_id_ref";
        v1_1[4] = "marketing_conditions";
        v1_1[5] = "_id";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_1));
        if (com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB != null) {
            try {
                android.content.ContentValues v11_1 = new android.content.ContentValues();
                try {
                    int v1_3 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_rules", 0, 0, 0, 0, 0, "_id ASC");
                    try {
                        while (v1_3.moveToNext()) {
                            v11_1.put("_id", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("_id"))));
                            v11_1.put("campaign_id", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("campaign_id"))));
                            v11_1.put("expiration", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("expiration"))));
                            v11_1.put("display_seconds", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("display_seconds"))));
                            v11_1.put("display_session", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("display_session"))));
                            v11_1.put("version", v1_3.getString(v1_3.getColumnIndexOrThrow("version")));
                            v11_1.put("phone_location", v1_3.getString(v1_3.getColumnIndexOrThrow("phone_location")));
                            v11_1.put("phone_size_width", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("phone_size_width"))));
                            v11_1.put("phone_size_height", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("phone_size_height"))));
                            v11_1.put("tablet_location", v1_3.getString(v1_3.getColumnIndexOrThrow("tablet_location")));
                            v11_1.put("tablet_size_width", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("tablet_size_width"))));
                            v11_1.put("tablet_size_height", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("tablet_size_height"))));
                            v11_1.put("time_to_display", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("time_to_display"))));
                            v11_1.put("internet_required", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("internet_required"))));
                            v11_1.put("ab_test", v1_3.getString(v1_3.getColumnIndexOrThrow("ab_test")));
                            v11_1.put("rule_name", v1_3.getString(v1_3.getColumnIndexOrThrow("rule_name")));
                            v11_1.put("location", v1_3.getString(v1_3.getColumnIndexOrThrow("location")));
                            v11_1.put("devices", v1_3.getString(v1_3.getColumnIndexOrThrow("devices")));
                            p14.insert("marketing_rules", 0, v11_1);
                            v11_1.clear();
                        }
                    } catch (String v0_5) {
                        if (v1_3 != 0) {
                            v1_3.close();
                        }
                        throw v0_5;
                    }
                    int v9_0;
                    if (v1_3 == 0) {
                        v9_0 = v1_3;
                    } else {
                        v1_3.close();
                        v9_0 = 0;
                    }
                    try {
                        int v1_5 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_ruleevent", 0, 0, 0, 0, 0, "_id ASC");
                        try {
                            while (v1_5.moveToNext()) {
                                v11_1.put("_id", Integer.valueOf(v1_5.getInt(v1_5.getColumnIndexOrThrow("_id"))));
                                v11_1.put("event_name", v1_5.getString(v1_5.getColumnIndexOrThrow("event_name")));
                                v11_1.put("rule_id_ref", Integer.valueOf(v1_5.getInt(v1_5.getColumnIndexOrThrow("rule_id_ref"))));
                                p14.insert("marketing_ruleevent", 0, v11_1);
                                v11_1.clear();
                            }
                        } catch (String v0_8) {
                            if (v1_5 != 0) {
                                v1_5.close();
                            }
                            throw v0_8;
                        }
                        int v9_1;
                        if (v1_5 == 0) {
                            v9_1 = v1_5;
                        } else {
                            v1_5.close();
                            v9_1 = 0;
                        }
                        try {
                            int v1_7 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_displayed", 0, 0, 0, 0, 0, "_id ASC");
                            try {
                                while (v1_7.moveToNext()) {
                                    if (v1_7.getInt(v1_7.getColumnIndexOrThrow("displayed")) == 1) {
                                        v11_1.put("campaign_id", Integer.valueOf(v1_7.getInt(v1_7.getColumnIndexOrThrow("campaign_id"))));
                                        p14.insert("marketing_displayed", 0, v11_1);
                                        v11_1.clear();
                                    }
                                }
                            } catch (String v0_11) {
                                if (v1_7 != 0) {
                                    v1_7.close();
                                }
                                throw v0_11;
                            }
                            int v9_2;
                            if (v1_7 == 0) {
                                v9_2 = v1_7;
                            } else {
                                v1_7.close();
                                v9_2 = 0;
                            }
                            try {
                                int v1_9 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_conditions", 0, 0, 0, 0, 0, "_id ASC");
                                try {
                                    while (v1_9.moveToNext()) {
                                        v11_1.put("_id", Integer.valueOf(v1_9.getInt(v1_9.getColumnIndexOrThrow("_id"))));
                                        v11_1.put("attribute_name", v1_9.getString(v1_9.getColumnIndexOrThrow("attribute_name")));
                                        v11_1.put("operator", v1_9.getString(v1_9.getColumnIndexOrThrow("operator")));
                                        v11_1.put("rule_id_ref", Integer.valueOf(v1_9.getInt(v1_9.getColumnIndexOrThrow("rule_id_ref"))));
                                        p14.insert("marketing_conditions", 0, v11_1);
                                        v11_1.clear();
                                    }
                                } catch (String v0_14) {
                                    if (v1_9 != 0) {
                                        v1_9.close();
                                    }
                                    throw v0_14;
                                }
                                if (v1_9 == 0) {
                                    v8 = v1_9;
                                } else {
                                    v1_9.close();
                                }
                                try {
                                    int v1_11 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_condition_values", 0, 0, 0, 0, 0, "_id ASC");
                                    try {
                                        while (v1_11.moveToNext()) {
                                            v11_1.put("_id", Integer.valueOf(v1_11.getInt(v1_11.getColumnIndexOrThrow("_id"))));
                                            v11_1.put("value", v1_11.getString(v1_11.getColumnIndexOrThrow("value")));
                                            v11_1.put("condition_id_ref", Integer.valueOf(v1_11.getInt(v1_11.getColumnIndexOrThrow("condition_id_ref"))));
                                            p14.insert("marketing_condition_values", 0, v11_1);
                                            v11_1.clear();
                                        }
                                    } catch (String v0_17) {
                                        if (v1_11 != 0) {
                                            v1_11.close();
                                        }
                                        throw v0_17;
                                    }
                                    if (v1_11 != 0) {
                                        v1_11.close();
                                    }
                                    com.localytics.android.MarketingProvider$MarketingDatabaseHelper.cleanUpOldDB();
                                } catch (String v0_17) {
                                    v1_11 = v8;
                                }
                            } catch (String v0_14) {
                                v1_9 = v9_2;
                            }
                        } catch (String v0_11) {
                            v1_7 = v9_1;
                        }
                    } catch (String v0_8) {
                        v1_5 = v9_0;
                    }
                } catch (String v0_5) {
                    v1_3 = 0;
                }
            } catch (String v0_31) {
                throw v0_31;
            }
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        long v26_1;
                        String v29;
                        String v28;
                        int v25;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        android.database.sqlite.SQLiteDatabase v12_3;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        String v16_1;
                        int v13_1;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                    v4_26 = v6_30;
                                    v5_11 = v7_29;
                                    v6_29 = v8_5;
                                    v9_4 = v5_12;
                                    v8_4 = v10_7;
                                    v10_6 = v12_5;
                                    v12_4 = v16_2;
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        String v29;
                        String v28;
                        int v25;
                        long v26_1;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        android.database.sqlite.SQLiteDatabase v12_3;
                        String v16_1;
                        int v13_1;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                            v4_26 = v6_30;
                            v5_11 = v7_29;
                            v6_29 = v8_5;
                            v9_4 = v5_12;
                            v8_4 = v10_7;
                            v10_6 = v12_5;
                            v12_4 = v16_2;
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        String v28;
                        long v26_1;
                        int v25;
                        String v29;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        android.database.sqlite.SQLiteDatabase v12_3;
                        int v13_1;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        String v16_1;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                            v4_26 = v6_30;
                            v5_11 = v7_29;
                            v6_29 = v8_5;
                            v9_4 = v5_12;
                            v8_4 = v10_7;
                            v10_6 = v12_5;
                            v12_4 = v16_2;
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        long v26_1;
                        String v29;
                        String v28;
                        int v25;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        int v13_1;
                        android.database.sqlite.SQLiteDatabase v12_3;
                        String v16_1;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                            v4_26 = v6_30;
                            v5_11 = v7_29;
                            v6_29 = v8_5;
                            v9_4 = v5_12;
                            v8_4 = v10_7;
                            v10_6 = v12_5;
                            v12_4 = v16_2;
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        String v29;
                        int v25;
                        String v28;
                        long v26_1;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        android.database.sqlite.SQLiteDatabase v12_3;
                        String v16_1;
                        int v13_1;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                            v4_26 = v6_30;
                            v5_11 = v7_29;
                            v6_29 = v8_5;
                            v9_4 = v5_12;
                            v8_4 = v10_7;
                            v10_6 = v12_5;
                            v12_4 = v16_2;
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.addScreens() calling method android.database.sqlite.SQLiteDatabase.insert()


    protected void addScreens(android.database.sqlite.SQLiteDatabase p6)
    {
        int v0_0 = 0;
        android.content.ContentValues v2_2 = new Object[2];
        v2_2[0] = "screens";
        v2_2[1] = "name";
        p6.execSQL(String.format("CREATE TABLE %s (%s TEXT NOT NULL)", v2_2));
        if ((this.mScreensFromV2 != null) && (this.mScreensFromV2.length() > 0)) {
            while (v0_0 < this.mScreensFromV2.length()) {
                try {
                    String v1_8 = this.mScreensFromV2.getString(v0_0);
                } catch (int v0) {
                    com.localytics.android.Localytics$Log.e("Bad data in v2 db. Non-string type in screen flow");
                    break;
                }
                if (!android.text.TextUtils.isEmpty(v1_8)) {
                    android.content.ContentValues v2_4 = new android.content.ContentValues();
                    v2_4.put("name", v1_8);
                    p6.insert("screens", 0, v2_4);
                }
                v0_0++;
            }
        }
        return;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.addTicket() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long addTicket(org.json.JSONObject p7, boolean p8)
    {
        int v0_4;
        int v0_0 = 1;
        if (this.mDb != null) {
            int v3_3 = new Object[1];
            v3_3[0] = p7;
            com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.logger.info("addTicket: %s", v3_3);
            android.content.ContentValues v1_0 = new android.content.ContentValues();
            v1_0.put("r_json", p7.toString().getBytes(java.nio.charset.Charset.forName("UTF-8")));
            if (!p8) {
                v0_0 = 2;
            }
            v1_0.put("r_item_type", Integer.valueOf(v0_0));
            v1_0.put("r_fail_count", Integer.valueOf(0));
            v0_4 = this.mDb.insert("receipts_table", 0, v1_0);
        } else {
            v0_4 = -1;
        }
        return v0_4;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.addContent() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long addContent(org.json.JSONObject p6)
    {
        long v0_3;
        if (this.mDb != null) {
            String v2_7 = new Object[1];
            v2_7[0] = p6;
            com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.logger.info("addContent: %s", v2_7);
            long v0_1 = new android.content.ContentValues();
            v0_1.put("r_json", p6.toString().getBytes(java.nio.charset.Charset.forName("UTF-8")));
            v0_1.put("r_item_type", Integer.valueOf(10));
            v0_1.put("r_fail_count", Integer.valueOf(0));
            v0_3 = this.mDb.insert("receipts_table", 0, v0_1);
        } else {
            v0_3 = -1;
        }
        return v0_3;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.pushRecipe() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long pushRecipe(long p8, long p10, String p12)
    {
        com.adobe.android.common.log.LoggerFactory$Logger v2_7 = new Object[2];
        v2_7[0] = Long.valueOf(p8);
        v2_7[1] = Long.valueOf(p10);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("pushRecipe(session:%d, bitmap: 0x%x)", v2_7);
        long v0_0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("action_session_id", Long.valueOf(p8));
        v1_1.put("action_bitmap_ptr", Long.valueOf(p10));
        v1_1.putNull("action_action");
        v1_1.put("action_recipe", p12.getBytes(java.nio.charset.Charset.forName("UTF-8")));
        long v0_2 = v0_0.insert("actions", 0, v1_1);
        Object[] v4_1 = new Object[1];
        v4_1[0] = Long.valueOf(v0_2);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.verbose("result: %d", v4_1);
        this.printSessionStats(p8);
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.pushActions() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long pushActions(long p8, long p10, java.util.List p12)
    {
        String v2_8 = new Object[2];
        v2_8[0] = Long.valueOf(p8);
        v2_8[1] = Long.valueOf(p10);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("push(session:%d, bitmap: 0x%x)", v2_8);
        android.database.sqlite.SQLiteDatabase v1_0 = this.getWritableDatabase();
        String v0_0 = "";
        if ((p12 != null) && (p12.size() > 0)) {
            if (p12.size() != 1) {
                v0_0 = new StringBuilder().append("[").append(com.adobe.android.common.util.StringUtils.join(p12, ",")).append("]").toString();
            } else {
                v0_0 = ((String) p12.get(0));
            }
        }
        if (android.text.TextUtils.isEmpty(v0_0)) {
            v0_0 = "";
        }
        Object[] v4_0 = new Object[1];
        v4_0[0] = v0_0;
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.verbose("adding actions: %s", v4_0);
        String v2_10 = new android.content.ContentValues();
        v2_10.put("action_session_id", Long.valueOf(p8));
        v2_10.put("action_bitmap_ptr", Long.valueOf(p10));
        v2_10.put("action_action", v0_0.getBytes(java.nio.charset.Charset.forName("UTF-8")));
        v2_10.putNull("action_recipe");
        String v0_12 = v1_0.insert("actions", 0, v2_10);
        Object[] v4_5 = new Object[1];
        v4_5[0] = Long.valueOf(v0_12);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.verbose("result: %d", v4_5);
        this.printSessionStats(p8);
        return v0_12;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.load() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long load(String p8, int p9, int p10, int p11, int p12)
    {
        String v1_0 = this.getWritableDatabase();
        Throwable v0_2 = new android.content.ContentValues();
        v0_2.put("session_data", p8);
        v0_2.put("session_mp", Integer.valueOf(p9));
        v0_2.put("session_orientation", Integer.valueOf(p10));
        v0_2.put("session_input_width", Integer.valueOf(p11));
        v0_2.put("session_input_height", Integer.valueOf(p12));
        try {
            v1_0.beginTransaction();
            long v2_4 = v1_0.insert("sessions", 0, v0_2);
            v1_0.setTransactionSuccessful();
            v1_0.endTransaction();
            Object[] v4_1 = new Object[1];
            v4_1[0] = Long.valueOf(v2_4);
            com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.verbose("result: %d", v4_1);
            this.purgeDatabase();
            this.printDatabaseStats();
            return v2_4;
        } catch (Throwable v0_3) {
            "result: %d".endTransaction();
            throw v0_3;
        }
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDefaultContentLoader.updateManifestVersion() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void updateManifestVersion(android.database.sqlite.SQLiteDatabase p5, String p6, String p7)
    {
        int v0_3;
        int v0_1 = new android.content.ContentValues();
        v0_1.put("version_versionKey", p6);
        v0_1.put("version_assetsBaseURL", p7);
        if (p5.insert("version_table", 0, v0_1) <= -1) {
            v0_3 = 0;
        } else {
            v0_3 = 1;
        }
        junit.framework.Assert.assertTrue(v0_3);
        return;
    }

Method ru.yandex.disk.trash.x.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE TRASH (path TEXT PRIMARY KEY, dir INTEGER, etag TEXT, displayName TEXT, displayNameToLower TEXT, size INTEGER, deleted INTEGER DEFAULT 0, mimeType TEXT, mediaType TEXT, onlyForSync INTEGER DEFAULT 0, hasThumbnail INTEGER DEFAULT 0)");
        p2.execSQL("CREATE INDEX TRASH_NAME_INDEX ON TRASH (displayNameToLower)");
        return;
    }

Method ru.yandex.disk.q.f.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(boolean p6)
    {
        this.g = 0;
        android.database.sqlite.SQLiteDatabase v1 = this.a.getWritableDatabase();
        v1.beginTransaction();
        try {
            String v0_1;
            if (!this.e.equals("1")) {
                v0_1 = "1";
            } else {
                v0_1 = "2";
            }
        } catch (String v0_7) {
            v1.endTransaction();
            throw v0_7;
        }
        this.f = v0_1;
        java.util.Iterator v2_0 = this.d.iterator();
        while (v2_0.hasNext()) {
            String v0_6 = ((String) v2_0.next());
            v1.execSQL(new StringBuilder().append("DELETE FROM ").append(v0_6).append(this.f).toString());
            if (!p6) {
                v1.execSQL(new StringBuilder().append("INSERT INTO ").append(v0_6).append(this.f).append(" ").append("SELECT * FROM ").append(v0_6).append(this.e).toString());
            }
        }
        v1.setTransactionSuccessful();
        v1.endTransaction();
        return;
    }

Method ru.yandex.disk.q.b.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static void c(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        p2.execSQL(new StringBuilder().append("CREATE TABLE TEMP (").append(p3).append(")").toString());
        return;
    }

Method ru.yandex.disk.q.b.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static void b(android.database.sqlite.SQLiteDatabase p2, String p3, String[] p4)
    {
        p2.execSQL(new StringBuilder().append("INSERT OR REPLACE INTO TEMP ").append(ru.yandex.disk.q.c.b(p4)).append(" FROM ").append(p3).toString());
        return;
    }

Method ru.yandex.disk.q.b.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static void b(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        p2.execSQL(new StringBuilder().append("DROP TABLE ").append(p3).toString());
        return;
    }

Method ru.yandex.disk.q.b.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static void a(android.database.sqlite.SQLiteDatabase p2, String p3, String[] p4)
    {
        p2.execSQL(new StringBuilder().append("INSERT INTO TEMP ").append(ru.yandex.disk.q.c.b(p4)).append(" FROM ").append(p3).toString());
        return;
    }

Method ru.yandex.disk.q.b.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private static void a(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        p2.execSQL(new StringBuilder().append("ALTER TABLE TEMP RENAME TO ").append(p3).toString());
        return;
    }

Method ru.yandex.disk.provider.z.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE invites (_id INTEGER NOT NULL, path TEXT NOT NULL, display_name TEXT NOT NULL, length INTEGER NOT NULL, readonly INTEGER NOT NULL DEFAULT 0, owner TEXT NOT NULL,  PRIMARY KEY (path));");
        return;
    }

Method ru.yandex.disk.provider.u.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        if (p3 < 25) {
            p2.execSQL("DROP VIEW IF EXISTS DISK_VIEW");
            p2.execSQL("DROP VIEW IF EXISTS DISK_AND_QUEUE");
            this.a(p2);
        }
        return;
    }

Method ru.yandex.disk.provider.u.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE VIEW DISK_AND_QUEUE AS SELECT -rowid AS _id, PARENT, DISPLAY_NAME, DISPLAY_NAME_TOLOWER, SIZE, IS_DIR, ETAG, LAST_MODIFIED, NAME, MIME_TYPE, SHARED, READONLY, PUBLIC_URL, MEDIA_TYPE, ETIME, YEAR_MONTH, OFFLINE_MARK, ETAG_LOCAL, MPFS_FILE_ID, HAS_THUMBNAIL, ASPECT_RATIO, -1 AS state, 0 AS error_reason, NULL AS src_name, 0 AS uploaded_size FROM DISK WHERE ROW_TYPE = 1 UNION ALL SELECT _id, dest_dir AS PARENT, dest_name AS DISPLAY_NAME, src_name_tolower AS DISPLAY_NAME_TOLOWER, SIZE AS SIZE, is_dir AS IS_DIR, NULL AS ETAG, date AS LAST_MODIFIED, dest_name AS NAME, NULL AS MIME_TYPE, 0 AS SHARED, 0 AS READONLY, NULL AS PUBLIC_URL, MEDIA_TYPE AS MEDIA_TYPE, ETIME AS ETIME, YEAR_MONTH AS YEAR_MONTH, 0 AS OFFLINE_MARK, NULL AS ETAG_LOCAL, NULL AS MPFS_FILE_ID, 0 AS HAS_THUMBNAIL, 0 AS ASPECT_RATIO, state, error_reason, src_name, uploaded_size FROM DISK_QUEUE WHERE state < 3;");
        this.c(p2);
        return;
    }

Method ru.yandex.disk.provider.u.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void c(android.database.sqlite.SQLiteDatabase p6)
    {
        String v0_0 = ru.yandex.disk.provider.r.a;
        String v1_5 = new String[(v0_0.length + 1)];
        System.arraycopy(v0_0, 0, v1_5, 1, ru.yandex.disk.provider.r.a.length);
        v1_5[0] = "rowid AS _id";
        p6.execSQL(new StringBuilder().append("CREATE VIEW DISK_VIEW AS ").append(ru.yandex.disk.q.c.b(v1_5)).append(" FROM ").append("DISK").toString());
        return;
    }

Method ru.yandex.disk.provider.r.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void b(android.database.sqlite.SQLiteDatabase p4)
    {
        if (this.e) {
            ru.yandex.disk.Log.c("DiskTableSchemeCreator", "repair");
            ru.yandex.disk.q.b.b(p4, "DISK", ru.yandex.disk.provider.r.d, ru.yandex.disk.provider.r.a);
        }
        p4.execSQL("PRAGMA case_sensitive_like=true;");
        return;
    }

Method ru.yandex.disk.provider.r.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p3)
    {
        p3.execSQL(new StringBuilder().append("CREATE TABLE DISK (").append(ark>ru.yandex.disk.provider.rark>.d).append(");").toString());
        this.n(p3);
        return;
    }

Method ru.yandex.disk.provider.r.r() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void r(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE INDEX DISK_LAST_MODIFIED_INDEX ON DISK (LAST_MODIFIED)");
        p2.execSQL("CREATE INDEX DISK_NAME_INDEX ON DISK (NAME)");
        return;
    }

Method ru.yandex.disk.provider.r.q() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void q(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE INDEX disk_aspect_ratio_index ON DISK (ASPECT_RATIO)");
        return;
    }

Method ru.yandex.disk.provider.r.p() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void p(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE INDEX disk_row_type_index ON DISK (ROW_TYPE)");
        return;
    }

Method ru.yandex.disk.provider.r.l() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void l(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK ADD COLUMN ASPECT_RATIO INTEGER DEFAULT 0");
        return;
    }

Method ru.yandex.disk.provider.r.k() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void k(android.database.sqlite.SQLiteDatabase p4)
    {
        p4.execSQL("ALTER TABLE DISK ADD COLUMN ROW_TYPE INTEGER");
        p4.update("DISK", ru.yandex.disk.util.r.a("ROW_TYPE", 1), 0, 0);
        return;
    }

Method ru.yandex.disk.provider.r.i() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void i(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK ADD COLUMN FOLDER_TYPE TEXT");
        return;
    }

Method ru.yandex.disk.provider.r.h() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void h(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK ADD COLUMN LAST_ACCESS INTEGER DEFAULT 0");
        return;
    }

Method ru.yandex.disk.provider.r.g() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void g(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK ADD COLUMN OFFLINE_MARK INTEGER DEFAULT 0");
        p2.execSQL("ALTER TABLE DISK ADD COLUMN ETAG_LOCAL TEXT");
        p2.execSQL("ALTER TABLE DISK ADD COLUMN MPFS_FILE_ID TEXT");
        p2.execSQL("ALTER TABLE DISK ADD COLUMN HAS_THUMBNAIL INTEGER DEFAULT 0");
        return;
    }

Method ru.yandex.disk.provider.r.f() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void f(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK ADD COLUMN MEDIA_TYPE TEXT");
        return;
    }

Method ru.yandex.disk.provider.r.e() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void e(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK ADD COLUMN ETIME INTEGER DEFAULT 0");
        p2.execSQL("ALTER TABLE DISK ADD COLUMN YEAR_MONTH INTEGER DEFAULT 0");
        return;
    }

Method ru.yandex.disk.provider.r.d() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void d(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK ADD COLUMN PUBLIC_URL TEXT");
        return;
    }

Method ru.yandex.disk.provider.r.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void c(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK ADD COLUMN SHARED INTEGER DEFAULT 0");
        p2.execSQL("ALTER TABLE DISK ADD COLUMN READONLY INTEGER DEFAULT 0");
        return;
    }

Method ru.yandex.disk.provider.au.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p3)
    {
        p3.execSQL(new StringBuilder().append("CREATE TABLE DISK_QUEUE (_id INTEGER PRIMARY KEY AUTOINCREMENT, src_name TEXT, src_name_tolower TEXT, dest_dir TEXT, dest_name TEXT, date LONG, uploaded_size LONG, state").append(ru.yandex.disk.q.c.a(Integer.valueOf(1))).append("error_reason").append(" INTEGER, ").append("md5").append(" TEXT, ").append("md5_size").append(" LONG, ").append("md5_time").append(" LONG, ").append("is_dir").append(" INTEGER, ").append("from_autoupload").append(" INTEGER DEFAULT 0, ").append("ETIME").append(" INTEGER, ").append("YEAR_MONTH").append(" INTEGER DEFAULT 0, ").append("SIZE").append(" INTEGER, ").append("MEDIA_TYPE").append(" INTEGER DEFAULT 0, ").append("user").append(" TEXT, ").append("sha256").append(" TEXT, ").append("uploaded_time").append(" LONG").append(");").toString());
        this.c(p3);
        return;
    }

Method ru.yandex.disk.provider.au.s() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void s(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE INDEX AUTOUPLOAD_STATE_INDEX ON DISK_QUEUE (from_autoupload, state)");
        return;
    }

Method ru.yandex.disk.provider.au.r() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void r(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN error_reason INTEGER");
        return;
    }

Method ru.yandex.disk.provider.au.q() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void q(android.database.sqlite.SQLiteDatabase p5)
    {
        p5.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN uploaded_time LONG");
        android.content.ContentValues v0_2 = new android.content.ContentValues(1);
        v0_2.put("state", Integer.valueOf(3));
        p5.update("DISK_QUEUE", v0_2, "state = 0", 0);
        this.s(p5);
        return;
    }

Method ru.yandex.disk.provider.au.p() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void p(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE INDEX UPLOAD_DATE_INDEX ON DISK_QUEUE (date)");
        p2.execSQL("CREATE INDEX UPLOAD_NAME_INDEX ON DISK_QUEUE (dest_name)");
        p2.execSQL("CREATE INDEX UPLOAD_ETIME_INDEX ON DISK_QUEUE (ETIME)");
        return;
    }

Method ru.yandex.disk.provider.au.o() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void o(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE UNIQUE INDEX DISK_QUEUE_UNIQUE_INDEX ON DISK_QUEUE (user,src_name,dest_dir);");
        return;
    }

Method ru.yandex.disk.provider.au.m() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void m(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN ETIME INTEGER");
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN YEAR_MONTH INTEGER DEFAULT 0");
        this.n(p2);
        this.p(p2);
        return;
    }

Method ru.yandex.disk.provider.au.l() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void l(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN from_autoupload INTEGER DEFAULT 0");
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN SIZE INTEGER DEFAULT 0");
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN dest_name TEXT");
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN MEDIA_TYPE INTEGER DEFAULT 0");
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN user TEXT");
        this.o(p2);
        return;
    }

Method ru.yandex.disk.provider.au.e() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void e(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN sha256 TEXT");
        return;
    }

Method ru.yandex.disk.provider.aa.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        if (p3 < 25) {
            p2.execSQL("DROP TABLE IF EXISTS recent_event_group1");
            p2.execSQL("DROP TABLE IF EXISTS recent_event_group2");
            p2.execSQL("DROP TABLE IF EXISTS recent_event1");
            p2.execSQL("DROP TABLE IF EXISTS recent_event2");
            p2.execSQL("DROP VIEW IF EXISTS view_events1");
            p2.execSQL("DROP VIEW IF EXISTS view_events2");
            p2.execSQL("DROP VIEW IF EXISTS view_disk_items1");
            p2.execSQL("DROP VIEW IF EXISTS view_disk_items2");
        }
        return;
    }

Method ru.yandex.disk.photoslice.bd.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void c(android.database.sqlite.SQLiteDatabase p8, String p9)
    {
        String v0_27 = ru.yandex.disk.q.f.a("AUTOUPLOADED_MOMENT_ITEMS", p9);
        String v1_13 = ru.yandex.disk.q.f.a("MOMENTS", p9);
        String v2_9 = ru.yandex.disk.q.f.a("MOMENT_TO_MOMENT_ITEM", p9);
        String v0_26 = new StringBuilder().append("CREATE VIEW ").append(v0_27).append(" AS ");
        String v3_5 = new String[9];
        v3_5[0] = "m.locality_en";
        v3_5[1] = "m.locality_ru";
        v3_5[2] = "m.locality_tr";
        v3_5[3] = "m.locality_uk";
        v3_5[4] = "q.state";
        v3_5[5] = "q.uploaded_time";
        v3_5[6] = "q.user";
        v3_5[7] = "q.from_autoupload";
        v3_5[8] = "d.*";
        p8.execSQL(v0_26.append(ru.yandex.disk.q.c.b(v3_5)).append(" FROM ").append("DISK_QUEUE").append(" q").append(" LEFT JOIN ").append("DISK").append(" d").append(" ON ").append("q.").append("md5").append(" = d.").append("ETAG").append(" LEFT JOIN ").append(v2_9).append(" mtd").append(" ON ").append("d.").append("PARENT").append(" = mtd.").append("PARENT").append(" AND ").append("d.").append("NAME").append(" = mtd.").append("NAME").append(" LEFT JOIN ").append(v1_13).append(" m").append(" ON ").append("mtd.").append("momentId").append(" = m.").append("syncId").append(" WHERE ").append("from_autoupload").append(" = 1").append(" AND ").append("state").append(" = ").append(3).toString());
        return;
    }

Method ru.yandex.disk.photoslice.bd.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void b(android.database.sqlite.SQLiteDatabase p5, String p6)
    {
        String v0_22 = new StringBuilder().append("CREATE TRIGGER ").append(ru.yandex.disk.q.f.a("update_moment_to_moment_item", p6)).append(" AFTER ").append("UPDATE ").append(" OF ").append("PARENT").append(", ").append("NAME").append(" ON ").append("DISK").append(" WHEN ").append("OLD.").append("MEDIA_TYPE");
        String v1_20 = new String[2];
        v1_20[0] = "image";
        v1_20[1] = "video";
        p5.execSQL(v0_22.append(ru.yandex.disk.q.c.a(v1_20)).append(" BEGIN ").append("UPDATE ").append(ru.yandex.disk.q.f.a("MOMENT_TO_MOMENT_ITEM", p6)).append(" SET ").append("NAME").append(" = NEW.").append("NAME").append(", ").append("PARENT").append(" = NEW.").append("PARENT").append(" WHERE ").append("OLD.").append("PARENT").append(" = ").append("PARENT").append(" AND ").append("OLD.").append("NAME").append(" = ").append("NAME").append("; END;").toString());
        return;
    }

Method ru.yandex.disk.photoslice.bd.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p10, String p11)
    {
        String v0_13 = ru.yandex.disk.q.f.a("MOMENTS", p11);
        String v1_14 = ru.yandex.disk.q.f.a("MOMENT_TO_MOMENT_ITEM", p11);
        String v2_0 = ru.yandex.disk.q.f.a("MOMENT_ITEMS", p11);
        p10.execSQL(new StringBuilder().append("CREATE TABLE ").append(v0_13).append(" (").append("syncId").append(" TEXT, ").append("fromDate").append(" INTEGER, ").append("toDate").append(" INTEGER, ").append("itemsCount").append(" INTEGER, ").append("locality_en").append(" TEXT, ").append("locality_ru").append(" TEXT, ").append("locality_tr").append(" TEXT, ").append("locality_uk").append(" TEXT, ").append("places_en").append(" TEXT, ").append("places_ru").append(" TEXT, ").append("places_tr").append(" TEXT, ").append("places_uk").append(" TEXT, ").append(" PRIMARY KEY ").append("(").append("syncId").append(")").append(" ON CONFLICT REPLACE ").append(")").toString());
        String v3_21 = new StringBuilder().append("CREATE TABLE ").append(v1_14).append(" (").append("momentId").append(" TEXT, ").append("syncId").append(" TEXT, ").append("ROW_TYPE").append(" INTEGER, ").append("PARENT").append(" TEXT, ").append("NAME").append(" TEXT, ");
        String v4_17 = new String[2];
        v4_17[0] = "momentId";
        v4_17[1] = "syncId";
        p10.execSQL(v3_21.append(ru.yandex.disk.q.c.c(v4_17)).append(" ON CONFLICT REPLACE ").append(")").toString());
        p10.execSQL(new StringBuilder().append("CREATE INDEX ").append(ru.yandex.disk.q.f.a("reference_to_disk", p11)).append(" ON ").append(v1_14).append(" (").append("PARENT").append(", ").append("NAME").append(")").toString());
        String v2_2 = new StringBuilder().append("CREATE VIEW ").append(v2_0).append(" AS ");
        String v3_46 = new String[4];
        v3_46[0] = "m.rowid _id";
        v3_46[1] = "m.momentId";
        v3_46[2] = "m.syncId";
        v3_46[3] = "d.*";
        p10.execSQL(v2_2.append(ru.yandex.disk.q.c.b(v3_46)).append(" FROM ").append(v1_14).append(" m").append(" INNER JOIN ").append("DISK").append(" d").append(" ON ").append("m.").append("PARENT").append(" = d.").append("PARENT").append(" AND ").append("m.").append("NAME").append(" = d.").append("NAME").toString());
        String v2_31 = new StringBuilder().append("CREATE TRIGGER ").append(ru.yandex.disk.q.f.a("delete_moment_to_moment_item", p11)).append(" AFTER ").append("DELETE").append(" ON ").append("DISK").append(" WHEN ").append("OLD.").append("MEDIA_TYPE");
        String v3_76 = new String[2];
        v3_76[0] = "image";
        v3_76[1] = "video";
        p10.execSQL(v2_31.append(ru.yandex.disk.q.c.a(v3_76)).append(" BEGIN ").append("DELETE").append(" FROM ").append(v1_14).append(" WHERE ").append("OLD.").append("PARENT").append(" = ").append("PARENT").append(" AND ").append("OLD.").append("NAME").append(" = ").append("NAME").append("; END;").toString());
        p10.execSQL(new StringBuilder().append("CREATE TRIGGER ").append(ru.yandex.disk.q.f.a("update_counter_on_delete", p11)).append(" AFTER ").append("DELETE").append(" ON ").append(v1_14).append(" BEGIN ").append("UPDATE ").append(v0_13).append(" SET ").append("itemsCount").append(" = ").append("itemsCount").append(" - 1").append(" WHERE ").append("syncId").append(" = OLD.").append("momentId").append("; END;").toString());
        this.c(p10, p11);
        this.b(p10, p11);
        return;
    }

Method ru.yandex.disk.operation.o.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE OPERATIONS (_id INTEGER PRIMARY KEY, statusCheckId TEXT, path TEXT, state INTEGER NOT NULL, type INTEGER NOT NULL, added INTEGER NOT NULL, attempts INTEGER NOT NULL)");
        return;
    }

Method ru.yandex.disk.feed.publicblock.e.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE PUBLIC_BLOCKS_COMMENTS (_id INTEGER PRIMARY KEY, reply_id INTEGER, comment_id INTEGER, block_id INTEGER, message TEXT, replies_count INTEGER, my_attitude TEXT, created TEXT, edited TEXT, likes_count INTEGER, dislikes_count INTEGER, author_id INTEGER, author_display_name TEXT)");
        p2.execSQL("CREATE INDEX COMMENTS_ORDER ON PUBLIC_BLOCKS_COMMENTS (comment_id, created)");
        return;
    }

Method ru.yandex.disk.feed.cd.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p5)
    {
        p5.execSQL("CREATE TABLE FEED_BLOCKS (_id INTEGER PRIMARY KEY AUTOINCREMENT, folder_id TEXT, file_id TEXT, media_type TEXT, type TEXT, date INTEGER, date_from INTEGER, date_till INTEGER, block_order INTEGER, status INTEGER DEFAULT 0, path TEXT, files_count INTEGER, views_count INTEGER DEFAULT -1, likes_count INTEGER DEFAULT -1, dislikes_count INTEGER DEFAULT -1, comments_count INTEGER DEFAULT -1, public_url INTEGER, my_action TEXT, remote_id TEXT, revision LONG, modifier_uid TEXT, modifier_login TEXT, owner_uid TEXT, publisher_uid TEXT, data_source INTEGER DEFAULT 0, resource_ids TEXT, years_ago INTEGER, remote_collection_id TEXT, area TEXT)");
        String v0_8 = new StringBuilder().append("CREATE TABLE FEED_BLOCK_TO_FILE (BLOCK_ID INTEGER, PARENT TEXT, NAME TEXT, SERVER_ORDER INTEGER, FIRST_FRACTION_ORDER INTEGER, FRACTION INTEGER DEFAULT 0, GRID_TYPE INTEGER, ");
        String v1_5 = new String[2];
        v1_5[0] = "BLOCK_ID";
        v1_5[1] = "SERVER_ORDER";
        p5.execSQL(v0_8.append(ru.yandex.disk.q.c.c(v1_5)).append(" ON CONFLICT REPLACE ").append(");").toString());
        p5.execSQL("CREATE TRIGGER DELETE_BLOCK_TO_FILE AFTER DELETE ON FEED_BLOCKS FOR EACH ROW  BEGIN DELETE FROM FEED_BLOCK_TO_FILE WHERE OLD._id = BLOCK_ID; END;");
        this.c(p5);
        this.d(p5);
        return;
    }

Method ru.yandex.disk.feed.cd.j() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void j(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE FEED_BLOCKS ADD COLUMN area TEXT");
        return;
    }

Method ru.yandex.disk.feed.cd.i() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void i(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE FEED_BLOCKS");
        p2.execSQL("CREATE TABLE FEED_BLOCKS (_id INTEGER PRIMARY KEY AUTOINCREMENT, folder_id TEXT, file_id TEXT, media_type TEXT, type TEXT, date INTEGER, date_from INTEGER, date_till INTEGER, block_order INTEGER, status INTEGER DEFAULT 0, path TEXT, files_count INTEGER, views_count INTEGER DEFAULT -1, likes_count INTEGER DEFAULT -1, dislikes_count INTEGER DEFAULT -1, comments_count INTEGER DEFAULT -1, public_url INTEGER, my_action TEXT, remote_id TEXT, revision LONG, modifier_uid TEXT, modifier_login TEXT, owner_uid TEXT, publisher_uid TEXT, data_source INTEGER DEFAULT 0, resource_ids TEXT, years_ago INTEGER, remote_collection_id TEXT, area TEXT)");
        this.d = 1;
        return;
    }

Method ru.yandex.disk.feed.cd.h() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void h(android.database.sqlite.SQLiteDatabase p4)
    {
        p4.execSQL("ALTER TABLE FEED_BLOCKS ADD COLUMN resource_ids TEXT");
        p4.execSQL("ALTER TABLE FEED_BLOCKS ADD COLUMN years_ago INTEGER");
        ru.yandex.disk.q.b.b(p4, "FEED_BLOCKS", "_id INTEGER PRIMARY KEY AUTOINCREMENT, folder_id TEXT, file_id TEXT, media_type TEXT, type TEXT, date INTEGER, date_from INTEGER, date_till INTEGER, block_order INTEGER, status INTEGER DEFAULT 0, path TEXT, files_count INTEGER, views_count INTEGER DEFAULT -1, likes_count INTEGER DEFAULT -1, dislikes_count INTEGER DEFAULT -1, comments_count INTEGER DEFAULT -1, public_url INTEGER, my_action TEXT, remote_id TEXT, revision LONG, modifier_uid TEXT, modifier_login TEXT, owner_uid TEXT, publisher_uid TEXT, data_source INTEGER DEFAULT 0, resource_ids TEXT, years_ago INTEGER", ru.yandex.disk.feed.cd.a);
        return;
    }

Method ru.yandex.disk.feed.cd.g() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void g(android.database.sqlite.SQLiteDatabase p4)
    {
        p4.execSQL("ALTER TABLE FEED_BLOCKS ADD COLUMN public_url TEXT");
        p4.execSQL("ALTER TABLE FEED_BLOCKS ADD COLUMN my_action TEXT");
        ru.yandex.disk.q.b.b(p4, "FEED_BLOCKS", "_id INTEGER PRIMARY KEY AUTOINCREMENT, folder_id TEXT, file_id TEXT, media_type TEXT, type TEXT, date INTEGER, date_from INTEGER, date_till INTEGER, block_order INTEGER, status INTEGER DEFAULT 0, path TEXT, files_count INTEGER, views_count INTEGER DEFAULT -1, likes_count INTEGER DEFAULT -1, dislikes_count INTEGER DEFAULT -1, comments_count INTEGER DEFAULT -1, public_url INTEGER, my_action TEXT, remote_id TEXT, revision LONG, modifier_uid TEXT, modifier_login TEXT, owner_uid TEXT, publisher_uid TEXT, data_source INTEGER DEFAULT 0", ru.yandex.disk.feed.cd.c);
        return;
    }

Method ru.yandex.disk.feed.cd.f() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void f(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE FEED_BLOCKS ADD COLUMN data_source INTEGER DEFAULT 0");
        return;
    }

Method ru.yandex.disk.feed.cd.e() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void e(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP VIEW FEED_BLOCK_ITEMS");
        p2.execSQL("DROP VIEW FEED_LOADED_BLOCK_ITEMS");
        p2.execSQL("DROP VIEW FEED_MISSED_BLOCK_ITEMS");
        p2.execSQL("DROP VIEW IF EXISTS VIEW_LOADED_FEED_BLOCK_ITEMS");
        p2.execSQL("DROP VIEW IF EXISTS VIEW_FIRST_FRACTIONS_COUNT");
        return;
    }

Method ru.yandex.disk.feed.cd.d() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void d(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE INDEX FEED_BLOCK_REMOTE_ID ON FEED_BLOCKS (remote_id)");
        p2.execSQL("CREATE INDEX FEED_BLOCK_ORDER ON FEED_BLOCKS (block_order)");
        p2.execSQL("CREATE INDEX FEED_BLOCK_ITEMS_ORDER ON FEED_BLOCK_TO_FILE (FRACTION, FIRST_FRACTION_ORDER, SERVER_ORDER)");
        p2.execSQL("CREATE INDEX FEED_BLOCK_ITEMS_BINDER ON FEED_BLOCK_TO_FILE (BLOCK_ID, PARENT, NAME)");
        return;
    }

Method ru.yandex.disk.feed.cd.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void c(android.database.sqlite.SQLiteDatabase p10)
    {
        String v0_92 = new StringBuilder().append("CREATE VIEW FEED_BLOCK_ITEMS AS ");
        String v1_4 = new String[7];
        v1_4[0] = new StringBuilder().append("i.rowid").append(ru.yandex.disk.q.c.c("_id")).toString();
        v1_4[1] = new StringBuilder().append("d.PARENT IS NOT NULL").append(ru.yandex.disk.q.c.c("HAS_FILE")).toString();
        v1_4[2] = "b.type";
        v1_4[3] = "b.block_order";
        v1_4[4] = "i.*";
        v1_4[5] = "d.*";
        v1_4[6] = "data_source";
        p10.execSQL(v0_92.append(ru.yandex.disk.q.c.b(v1_4)).append(" FROM ").append("FEED_BLOCKS").append(" b").append(" LEFT JOIN ").append("FEED_BLOCK_TO_FILE").append(" i").append(" ON ").append("i.").append("BLOCK_ID").append(" = b.").append("_id").append(" LEFT JOIN ").append("DISK").append(" d").append(" ON ").append("i.").append("PARENT").append(" = d.").append("PARENT").append(" AND ").append("i.").append("NAME").append(" = d.").append("NAME").append(" ORDER BY ").append("block_order DESC").append(", ").append("FRACTION").append(", ").append("FIRST_FRACTION_ORDER").append(", ").append("SERVER_ORDER").toString());
        p10.execSQL("CREATE VIEW FEED_LOADED_BLOCK_ITEMS AS SELECT * FROM FEED_BLOCK_ITEMS WHERE HAS_FILE = 1");
        p10.execSQL("CREATE VIEW VIEW_LOADED_FEED_BLOCK_ITEMS AS SELECT * FROM FEED_LOADED_BLOCK_ITEMS WHERE data_source = 0");
        String v0_22 = new StringBuilder().append("CREATE VIEW FEED_MISSED_BLOCK_ITEMS AS ");
        String v1_19 = new String[3];
        v1_19[0] = "BLOCK_ID";
        v1_19[1] = "FRACTION";
        v1_19[2] = "SERVER_ORDER";
        p10.execSQL(v0_22.append(ru.yandex.disk.q.c.b(v1_19)).append(" FROM ").append("FEED_BLOCK_TO_FILE").append(" b").append(" LEFT JOIN ").append("DISK").append(" d").append(" ON ").append("b.").append("PARENT").append(" = d.").append("PARENT").append(" AND ").append("b.").append("NAME").append(" = d.").append("NAME").append(" WHERE ").append("d.").append("NAME").append(" IS NULL").toString());
        String v0_47 = new StringBuilder().append("CREATE VIEW VIEW_FIRST_FRACTIONS_COUNT AS SELECT * FROM (");
        String v1_43 = new String[5];
        v1_43[0] = ru.yandex.disk.q.c.b("BI.BLOCK_ID");
        v1_43[1] = "FB._id";
        v1_43[2] = "FB.block_order";
        v1_43[3] = "BI.FIRST_FRACTION_ORDER";
        v1_43[4] = "FB.data_source";
        p10.execSQL(v0_47.append(ru.yandex.disk.q.c.b(v1_43)).append(" FROM ").append("FEED_BLOCKS").append(ru.yandex.disk.q.c.c("FB")).append(" LEFT JOIN ").append("(").append("SELECT * FROM ").append("VIEW_LOADED_FEED_BLOCK_ITEMS").append(" WHERE ").append("FRACTION").append(" = 0)").append(ru.yandex.disk.q.c.c("BI")).append(" ON ").append("FB.").append("_id").append(" = BI.").append("BLOCK_ID").append(" WHERE ").append("FB.").append("data_source").append(" = ").append(0).append(" GROUP BY ").append("FB.").append("_id").append(")").append(" ORDER BY ").append("block_order DESC").toString());
        return;
    }

Method ru.yandex.disk.download.q$a.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p2)
    {
        super.onOpen(p2);
        p2.execSQL("PRAGMA case_sensitive_like=true;");
        return;
    }

Method ru.yandex.disk.download.q$a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE queue (id INTEGER PRIMARY KEY AUTOINCREMENT, serverPath TEXT NOT NULL, destinationDirectory TEXT, type INTEGER NOT NULL, unfinishedDownloadPath TEXT, taskId INTEGER NOT NULL, size INTEGER DEFAULT 0, downloadedSize INTEGER DEFAULT 0, state INTEGER NOT NULL, publicKey TEXT)");
        p2.execSQL("CREATE INDEX SERVER_PATH_INDEX ON queue (serverPath)");
        return;
    }

Method ru.yandex.disk.download.q$a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE queue ADD COLUMN publicKey TEXT");
        return;
    }

Method ru.yandex.disk.asyncbitmap.ao.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p5)
    {
        String v0_2 = new StringBuilder().append("CREATE TABLE PreviewsDatabaseTable (PARENT TEXT, NAME TEXT, goldenPreviewEtag TEXT, state").append(ru.yandex.disk.q.c.a(Integer.valueOf(ark>ru.yandex.disk.asyncbitmap.aoark>.a)));
        String v1_1 = new String[2];
        v1_1[0] = "PARENT";
        v1_1[1] = "NAME";
        p5.execSQL(v0_2.append(ru.yandex.disk.q.c.c(v1_1)).append(" ON CONFLICT REPLACE ").append(")").toString());
        p5.execSQL("CREATE INDEX golden_cache_index ON PreviewsDatabaseTable (goldenPreviewEtag)");
        p5.execSQL("CREATE INDEX state_index ON PreviewsDatabaseTable (state)");
        this.a(p5, "1");
        this.a(p5, "2");
        return;
    }

Method ru.yandex.disk.asyncbitmap.ao.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        p3.execSQL(new StringBuilder().append("CREATE VIEW PreviewsDatabaseView").append(p4).append(" AS ").append("SELECT ").append("m.").append("PARENT").append(", m.").append("NAME").append(", d.").append("ETAG").append(", d.").append("MEDIA_TYPE").append(", p.").append("goldenPreviewEtag").append(", ").append(ark>ru.yandex.disk.asyncbitmap.aoark>.b).append(" FROM ").append("MOMENT_TO_MOMENT_ITEM").append(p4).append(" m").append(" LEFT JOIN ").append("PreviewsDatabaseTable").append(" p").append(" ON ").append("m.").append("PARENT").append(" = p.").append("PARENT").append(" AND ").append("m.").append("NAME").append(" = p.").append("NAME").append(" LEFT JOIN ").append("DISK").append(" d").append(" ON ").append("m.").append("PARENT").append(" = d.").append("PARENT").append(" AND ").append("m.").append("NAME").append(" = d.").append("NAME").append(" ORDER BY ").append("momentId DESC, syncId DESC").toString());
        return;
    }

Method ru.yandex.common.clid.a.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p3, int p4, int p5)
    {
        ru.yandex.searchlib.util.o.b("[YClidLib:ClidDatabaseHelper]", "DatabaseHelper onUpgrade");
        switch (p5) {
            case 2:
                p3.execSQL("CREATE TABLE IF NOT EXISTS entry_points (_id INTEGER PRIMARY KEY, application TEXT, entry_point_type INTEGER, entry_point_id TEXT, clid TEXT);");
                break;
        }
        return;
    }

Method ru.yandex.common.clid.a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        ru.yandex.searchlib.util.o.b("[YClidLib:ClidDatabaseHelper]", "DatabaseHelper onCreate");
        p3.execSQL("CREATE TABLE IF NOT EXISTS clids (_id INTEGER PRIMARY KEY,identity TEXT,type TEXT,application TEXT,version INTEGER,timestamp INTEGER,clid TEXT);");
        p3.execSQL("CREATE TABLE IF NOT EXISTS apps (application TEXT PRIMARY KEY,state TEXT);");
        p3.execSQL("CREATE TABLE IF NOT EXISTS entry_points (_id INTEGER PRIMARY KEY,application TEXT,entry_point_type INTEGER,entry_point_id TEXT,clid TEXT);");
        return;
    }

Method com.yandex.promolib.impl.v.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS reports");
        ark>com.yandex.promolib.impl.vark>.a(p1);
        return;
    }

Method com.yandex.promolib.impl.v.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE reports(_id INTEGER PRIMARY KEY AUTOINCREMENT, campaign_id TEXT NOT NULL, type TEXT DEFAULT \'NONE\', pkg TEXT NOT NULL, start_time INTEGER DEFAULT 0, finish_time INTEGER DEFAULT 0, report_url TEXT, readiness INTEGER DEFAULT 0, exposure INTEGER DEFAULT \'-1\');");
        return;
    }

Method com.yandex.promolib.impl.s.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        p1.execSQL("DROP TABLE IF EXISTS campaignsinfo");
        ark>com.yandex.promolib.impl.sark>.a(p1);
        return;
    }

Method com.yandex.promolib.impl.s.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE campaignsinfo(_id INTEGER PRIMARY KEY AUTOINCREMENT, campaign_id TEXT UNIQUE NOT NULL, max_exposures INTEGER DEFAULT 0, last_time_updated INTEGER DEFAULT 0);");
        return;
    }

Method com.yandex.promolib.impl.r.d() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void d(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        try {
            p2.execSQL(new StringBuilder().append("UPDATE campaignsinfo SET max_exposures = max_exposures + 1 WHERE campaign_id =\'").append(p3).append("\'").toString());
        } catch (Exception v0) {
        }
        return;
    }

Method com.yandex.promolib.impl.r.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void c(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        try {
            p2.execSQL(new StringBuilder().append("UPDATE campaignsinfo SET max_exposures = \'-1\' WHERE campaign_id =\'").append(p3).append("\'").toString());
        } catch (Exception v0) {
        }
        return;
    }

Method com.yandex.promolib.impl.r.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p2, String p3)
    {
        p2.execSQL(new StringBuilder().append("DELETE FROM campaignsinfo WHERE campaign_id = \'").append(p3).append("\'").toString());
        return;
    }

Method com.yandex.promolib.impl.r.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static long a(android.database.sqlite.SQLiteDatabase p6, android.content.ContentValues p7)
    {
        try {
            long v0 = p6.insertOrThrow("campaignsinfo", 0, p7);
        } catch (String v2) {
            String v2_9 = p7.getAsLong("last_time_updated");
            String v3_0 = p7.getAsString("campaign_id");
            if (v2_9 == null) {
            } else {
                if (v3_0 == null) {
                } else {
                    p6.execSQL(new StringBuilder().append("UPDATE campaignsinfo SET last_time_updated = \'").append(v2_9).append("\' WHERE ").append("campaign_id").append(" =\'").append(v3_0).append("\'").toString());
                }
            }
        }
        return v0;
    }

Method com.yandex.metrica.impl.ob.cl.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(java.util.List p7)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.a.a();
        try {
            v1.beginTransaction();
            v1.execSQL("delete from permissions");
            com.yandex.metrica.impl.ob.cp v2_1 = p7.iterator();
        } catch (String v0_7) {
            v1.endTransaction();
            this.a.a(v1);
            throw v0_7;
        } catch (String v0) {
            v1.endTransaction();
            this.a.a(v1);
            return;
        }
        while (v2_1.hasNext()) {
            String v0_5;
            String v0_3 = ((com.yandex.metrica.impl.ob.el) v2_1.next());
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("name", v0_3.b());
            if (!v0_3.a()) {
                v0_5 = 0;
            } else {
                v0_5 = 1;
            }
            v3_1.put("granted", Integer.valueOf(v0_5));
            v1.insert("permissions", 0, v3_1);
        }
        v1.setTransactionSuccessful();
        v1.endTransaction();
        this.a.a(v1);
        return;
    }

Method com.yandex.metrica.impl.ob.cf$w.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p3)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("ALTER TABLE sessions");
        v0_1.append(" ADD COLUMN report_request_parameters");
        v0_1.append(" TEXT DEFAULT \'\'");
        p3.execSQL(v0_1.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$v.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p3)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("ALTER TABLE sessions");
        v0_1.append(" ADD COLUMN obtained_before_first_sync");
        v0_1.append(" INTEGER DEFAULT 0");
        p3.execSQL(v0_1.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$u.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p3)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("ALTER TABLE sessions");
        v0_1.append(" ADD COLUMN wifi_network_info");
        v0_1.append(" TEXT DEFAULT \'\'");
        p3.execSQL(v0_1.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$t.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p3)
    {
        p3.execSQL("CREATE TABLE IF NOT EXISTS preferences (key TEXT PRIMARY KEY,value TEXT,type INTEGER)");
        String v0_3 = new StringBuilder();
        v0_3.append("ALTER TABLE reports");
        v0_3.append(" ADD COLUMN wifi_access_point");
        v0_3.append(" TEXT ");
        p3.execSQL(v0_3.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$s.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p3)
    {
        p3.execSQL("CREATE TABLE IF NOT EXISTS preferences (key TEXT PRIMARY KEY,value TEXT,type INTEGER)");
        String v0_3 = new StringBuilder();
        v0_3.append("ALTER TABLE reports");
        v0_3.append(" ADD COLUMN custom_type");
        v0_3.append(" INTEGER DEFAULT 0");
        p3.execSQL(v0_3.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$r.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p3)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("ALTER TABLE reports");
        v0_1.append(" ADD COLUMN connection_type");
        v0_1.append(" INTEGER DEFAULT 2");
        p3.execSQL(v0_1.toString());
        String v0_3 = new StringBuilder();
        v0_3.append("ALTER TABLE reports");
        v0_3.append(" ADD COLUMN cellular_connection_type");
        v0_3.append(" TEXT ");
        p3.execSQL(v0_3.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$q.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p3)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("ALTER TABLE reports");
        v0_1.append(" ADD COLUMN truncated");
        v0_1.append(" INTEGER DEFAULT 0");
        p3.execSQL(v0_1.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$p.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p5)
    {
        String v0_4 = new StringBuilder();
        v0_4.append("ALTER TABLE reports");
        v0_4.append(" ADD COLUMN app_environment");
        v0_4.append(" TEXT DEFAULT \'{}\'");
        p5.execSQL(v0_4.toString());
        String v0_3 = new StringBuilder();
        v0_3.append("ALTER TABLE reports");
        v0_3.append(" ADD COLUMN app_environment_revision");
        v0_3.append(" INTEGER DEFAULT 0");
        p5.execSQL(v0_3.toString());
        p5.execSQL("ALTER TABLE reports RENAME TO reports_backup");
        p5.execSQL(ark>com.yandex.metrica.impl.ob.cf$park>.a);
        try {
            android.database.Cursor v1 = p5.rawQuery("SELECT * FROM reports_backup", 0);
        } catch (String v0_10) {
            com.yandex.metrica.impl.bl.a(v1);
            throw v0_10;
        }
        while (v1.moveToNext()) {
            String v0_13 = new android.content.ContentValues();
            android.database.DatabaseUtils.cursorRowToContentValues(v1, v0_13);
            String v2_6 = v0_13.getAsString("environment");
            v0_13.remove("environment");
            v0_13.put("error_environment", v2_6);
            p5.insert("reports", 0, v0_13);
        }
        com.yandex.metrica.impl.bl.a(v1);
        p5.execSQL("DROP TABLE reports_backup");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$o.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p4)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("ALTER TABLE reports");
        v0_1.append(" ADD COLUMN environment");
        v0_1.append(" TEXT ");
        p4.execSQL(v0_1.toString());
        String v0_3 = new StringBuilder();
        v0_3.append("ALTER TABLE reports");
        v0_3.append(" ADD COLUMN user_info");
        v0_3.append(" TEXT ");
        p4.execSQL(v0_3.toString());
        String v0_6 = new StringBuilder();
        v0_6.append("ALTER TABLE reports");
        v0_6.append(" ADD COLUMN session_type");
        v0_6.append(" INTEGER DEFAULT ").append(com.yandex.metrica.impl.ob.bp.a.a());
        p4.execSQL(v0_6.toString());
        String v0_9 = new StringBuilder();
        v0_9.append("UPDATE reports");
        v0_9.append(" SET session_type = ");
        v0_9.append(com.yandex.metrica.impl.ob.bp.b.a());
        v0_9.append(" WHERE session_id");
        v0_9.append(" = -2");
        p4.execSQL(v0_9.toString());
        String v0_12 = new StringBuilder();
        v0_12.append("ALTER TABLE sessions");
        v0_12.append(" ADD COLUMN server_time_offset");
        v0_12.append(" INTEGER ");
        p4.execSQL(v0_12.toString());
        String v0_15 = new StringBuilder();
        v0_15.append("ALTER TABLE sessions");
        v0_15.append(" ADD COLUMN type");
        v0_15.append(" INTEGER DEFAULT ").append(com.yandex.metrica.impl.ob.bp.a.a());
        p4.execSQL(v0_15.toString());
        String v0_18 = new StringBuilder();
        v0_18.append("UPDATE sessions");
        v0_18.append(" SET type = ");
        v0_18.append(com.yandex.metrica.impl.ob.bp.b.a());
        v0_18.append(" WHERE id");
        v0_18.append(" = -2");
        p4.execSQL(v0_18.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$n.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p8)
    {
        String v0_19 = new StringBuilder();
        v0_19.append("CREATE TABLE IF NOT EXISTS sessions_BACKUP (");
        v0_19.append("id INTEGER,");
        v0_19.append("start_time INTEGER,");
        v0_19.append("connection_type INTEGER,");
        v0_19.append("network_type TEXT,");
        v0_19.append("country_code INTEGER,");
        v0_19.append("operator_id INTEGER,");
        v0_19.append("lac INTEGER,");
        v0_19.append("report_request_parameters TEXT );");
        p8.execSQL(v0_19.toString());
        String v0_22 = new StringBuilder();
        v0_22.append("id,");
        v0_22.append("start_time,");
        v0_22.append("connection_type,");
        v0_22.append("network_type,");
        v0_22.append("country_code,");
        v0_22.append("operator_id,");
        v0_22.append("lac,");
        v0_22.append("report_request_parameters");
        int v2_20 = new StringBuilder();
        v2_20.append("INSERT INTO sessions_BACKUP");
        v2_20.append(" SELECT ").append(v0_22);
        v2_20.append(" FROM sessions;");
        p8.execSQL(v2_20.toString());
        p8.execSQL("DROP TABLE sessions;");
        p8.execSQL(com.yandex.metrica.impl.ob.cf$ac.b);
        try {
            String v1_0 = p8.rawQuery("SELECT * FROM sessions_BACKUP", 0);
        } catch (String v0_16) {
            com.yandex.metrica.impl.bl.a(v1_0);
            throw v0_16;
        }
        while (v1_0.moveToNext()) {
            int v2_1 = new android.content.ContentValues();
            android.database.DatabaseUtils.cursorRowToContentValues(v1_0, v2_1);
            String v3_1 = new java.util.ArrayList();
            v3_1.add("id");
            v3_1.add("start_time");
            v3_1.add("report_request_parameters");
            android.content.ContentValues v4_1 = new android.content.ContentValues(v2_1);
            String v5_0 = v2_1.valueSet().iterator();
            while (v5_0.hasNext()) {
                String v0_15 = ((java.util.Map$Entry) v5_0.next());
                if (!v3_1.contains(v0_15.getKey())) {
                    v4_1.remove(((String) v0_15.getKey()));
                }
            }
            String v3_2 = v3_1.iterator();
            while (v3_2.hasNext()) {
                v2_1.remove(((String) v3_2.next()));
            }
            String v0_9 = new org.json.JSONObject();
            v0_9.put("conn_type", v2_1.getAsInteger("connection_type"));
            v0_9.putOpt("net_type", v2_1.get("network_type"));
            v0_9.putOpt("operator_id", v2_1.get("operator_id"));
            v0_9.putOpt("lac", v2_1.get("lac"));
            v0_9.putOpt("country_code", v2_1.get("country_code"));
            v4_1.put("network_info", v0_9.toString());
            p8.insertOrThrow("sessions", 0, v4_1);
        }
        com.yandex.metrica.impl.bl.a(v1_0);
        p8.execSQL("DROP TABLE sessions_BACKUP;");
        String v0_31 = new StringBuilder();
        v0_31.append("ALTER TABLE reports");
        v0_31.append(" ADD COLUMN wifi_network_info");
        v0_31.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_31.toString());
        String v0_34 = new StringBuilder();
        v0_34.append("ALTER TABLE reports");
        v0_34.append(" ADD COLUMN cell_info");
        v0_34.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_34.toString());
        String v0_37 = new StringBuilder();
        v0_37.append("ALTER TABLE reports");
        v0_37.append(" ADD COLUMN location_info");
        v0_37.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_37.toString());
        return;
    }

Method com.yandex.metrica.impl.ob.cf$l.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS l_dat (incremental_id INTEGER NOT NULL,timestamp INTEGER, data TEXT)");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$k.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS permissions (name TEXT PRIMARY KEY,granted INTEGER)");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$j.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS GeoLocationInfo");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$i.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS preferences (key TEXT PRIMARY KEY,value TEXT,type INTEGER)");
        p2.execSQL("CREATE TABLE IF NOT EXISTS startup (key TEXT PRIMARY KEY,value TEXT,type INTEGER)");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$h.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS api_level_info");
        p2.execSQL("DROP TABLE IF EXISTS device_id_info");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$g.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p6)
    {
        p6.execSQL("CREATE TABLE IF NOT EXISTS api_level_info (API_LEVEL INT )");
        android.content.ContentValues v2_1 = new android.content.ContentValues();
        v2_1.put("API_LEVEL", Integer.valueOf(com.yandex.metrica.YandexMetrica.getLibraryApiLevel()));
        p6.insert("api_level_info", "API_LEVEL", v2_1);
        return;
    }

Method com.yandex.metrica.impl.ob.cf$f.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS device_id_info");
        p2.execSQL("DROP TABLE IF EXISTS api_level_info");
        p2.execSQL("DROP TABLE IF EXISTS preferences");
        p2.execSQL("DROP TABLE IF EXISTS startup");
        p2.execSQL("DROP TABLE IF EXISTS l_dat");
        p2.execSQL("DROP TABLE IF EXISTS permissions");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$e.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS preferences (key TEXT PRIMARY KEY,value TEXT,type INTEGER)");
        p2.execSQL("CREATE TABLE IF NOT EXISTS startup (key TEXT PRIMARY KEY,value TEXT,type INTEGER)");
        p2.execSQL("CREATE TABLE IF NOT EXISTS l_dat (incremental_id INTEGER NOT NULL,timestamp INTEGER, data TEXT)");
        p2.execSQL("CREATE TABLE IF NOT EXISTS permissions (name TEXT PRIMARY KEY,granted INTEGER)");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$d.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS reports");
        p2.execSQL("DROP TABLE IF EXISTS sessions");
        p2.execSQL("DROP TABLE IF EXISTS preferences");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$c.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL(com.yandex.metrica.impl.ob.cf$ab.b);
        p2.execSQL(com.yandex.metrica.impl.ob.cf$ac.b);
        p2.execSQL("CREATE TABLE IF NOT EXISTS preferences (key TEXT PRIMARY KEY,value TEXT,type INTEGER)");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$b.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS preferences");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS preferences (key TEXT PRIMARY KEY,value TEXT,type INTEGER)");
        return;
    }

Method com.yandex.datasync.internal.database.sql.e.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        p2.execSQL("DROP VIEW IF EXISTS value_view");
        this.a(p2);
        return;
    }

Method com.yandex.datasync.internal.database.sql.e.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE VIEW value_view AS  SELECT * FROM value;");
        return;
    }

Method com.yandex.datasync.internal.database.sql.d.o.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL(this.b());
        return;
    }

Method com.yandex.datasync.internal.database.sql.c.d.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p3, int p4, int p5)
    {
        p3.execSQL(new StringBuilder().append("DROP VIEW IF EXISTS ").append(this.a()).toString());
        this.a(p3);
        return;
    }

Method com.yandex.datasync.internal.database.sql.c.e.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL(this.b());
        return;
    }

Method com.yandex.datasync.internal.database.sql.b.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL(this.a());
        return;
    }

Method com.yandex.auth.sync.database.c.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p3, int p4, int p5)
    {
        String v0_1 = new android.util.SparseArray();
        ark>com.yandex.auth.sync.database.cark>.e = v0_1;
        v0_1.put(1, ark>com.yandex.auth.sync.database.cark>.b);
        ark>com.yandex.auth.sync.database.cark>.e.put(2, ark>com.yandex.auth.sync.database.cark>.c);
        ark>com.yandex.auth.sync.database.cark>.e.put(3, ark>com.yandex.auth.sync.database.cark>.d);
        while (p4 < p5) {
            String v0_5 = ((String) ark>com.yandex.auth.sync.database.cark>.e.get(p4));
            if ((v0_5 != null) && (!android.text.TextUtils.isEmpty(v0_5))) {
                p3.execSQL(v0_5);
            }
            p4++;
        }
        return;
    }

Method com.yandex.auth.sync.database.c.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL(ark>com.yandex.auth.sync.database.cark>.a);
        return;
    }

Method com.yandex.auth.db.b.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        p2.execSQL("DROP TABLE IF EXISTS token");
        p2.execSQL("CREATE TABLE token(clientId TEXT, login TEXT, token TEXT, expires TEXT, type TEXT, xTokenHash TEXT)");
        return;
    }

Method com.yandex.auth.db.b.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE token(clientId TEXT, login TEXT, token TEXT, expires TEXT, type TEXT, xTokenHash TEXT)");
        return;
    }

Method ru.yandex.disk.trash.ai.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE VIEW VIEW_TRASH AS SELECT t.rowid AS _id, t.* FROM TRASH t LEFT JOIN OPERATIONS o ON t.path = o.path WHERE o.path IS NULL AND t.onlyForSync = 0");
        return;
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(com.yandex.b.a p6, String p7, com.yandex.b.a p8, ru.yandex.disk.FileItem$OfflineMark p9, int p10)
    {
        String[] v0_2 = new Object[3];
        v0_2[0] = p8.d();
        v0_2[1] = Integer.valueOf((p7.length() + 1));
        v0_2[2] = Integer.valueOf(p9.getCode());
        String[] v0_1 = ru.yandex.disk.util.h.a(v0_2);
        if (p10 >= 0) {
            String v1_2 = new Object[1];
            v1_2[0] = Integer.valueOf(p10);
            v0_1 = android.database.DatabaseUtils.appendSelectionArgs(v0_1, ru.yandex.disk.util.h.a(v1_2));
        }
        String v1_6;
        android.database.sqlite.SQLiteDatabase v2_3 = this.a();
        StringBuilder vtmp11 = new StringBuilder().append("UPDATE DISK SET PARENT = ? || substr(PARENT, ?), OFFLINE_MARK = ?");
        if (p10 >= 0) {
            v1_6 = ", ROW_TYPE = ?";
        } else {
            v1_6 = "";
        }
        v2_3.execSQL(vtmp11.append(v1_6).append(" WHERE ").append(ark>ru.yandex.disk.provider.lark>.f).toString(), android.database.DatabaseUtils.appendSelectionArgs(v0_1, ru.yandex.disk.q.b.a(p6)));
        return;
    }

Method ru.yandex.disk.provider.al.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        p3.execSQL("CREATE TABLE CREDENTIAL (USER TEXT, TOKEN TEXT DEFAULT NULL, IS_LOGGED INTEGER DEFAULT -1, LAST_TIME_LOGGED_IN INTEGER DEFAULT 0, UID TEXT);");
        p3.execSQL(new StringBuilder().append("CREATE TABLE PLAIN_SETTINGS_TABLE (").append(ru.yandex.disk.provider.al.a).append(");").toString());
        if (ru.yandex.disk.gs.c) {
            ru.yandex.disk.Log.a("SettingsDatabaseHelper", "created!");
        }
        return;
    }

Method ru.yandex.disk.provider.al.f() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void f(android.database.sqlite.SQLiteDatabase p5)
    {
        String[] v1_2 = new String[2];
        v1_2[0] = "user@";
        v1_2[1] = "ALL";
        p5.execSQL("UPDATE PLAIN_SETTINGS_TABLE SET USER = ? || USER WHERE USER != ?", ru.yandex.disk.util.h.a(v1_2));
        return;
    }

Method ru.yandex.disk.provider.al.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void b(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("ALTER TABLE CREDENTIAL ADD COLUMN UID TEXT");
        return;
    }

Method ru.yandex.disk.provider.al.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p2, String p3, String p4)
    {
        p2.execSQL(new StringBuilder().append("UPDATE ").append(p3).append(" SET ").append(p4).append(" = substr(").append(p4).append(", 0, length(").append(p4).append(") - length(\'").append("@ya.ru").append("\') + 1)").append(" WHERE ").append(p4).append(" LIKE ").append("\'%").append("@ya.ru").append("\'").toString());
        return;
    }

Method ru.yandex.disk.photoslice.bb.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void c()
    {
        String v0_1 = this.d.b("MOMENT_TO_MOMENT_ITEM");
        this.p().execSQL(new StringBuilder().append("DELETE FROM ").append(v0_1).append(" WHERE ").append("NOT EXISTS ").append("(").append("SELECT * FROM ").append("DISK").append(" WHERE ").append(v0_1).append(".").append("PARENT").append(" = ").append("DISK").append(".").append("PARENT").append(" AND ").append(v0_1).append(".").append("NAME").append(" = ").append("DISK").append(".").append("NAME").append(")").toString());
        return;
    }

Method ru.yandex.disk.photoslice.bb.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(String p5, String p6, String p7)
    {
        this.a(this.d.c("MOMENT_TO_MOMENT_ITEM"), p5, ru.yandex.disk.photoslice.au$a.c().c(new StringBuilder().append(p6).append(p7).toString()).d(p7).b());
        this.p().execSQL(new StringBuilder().append("UPDATE ").append(this.d.c("MOMENTS")).append(" SET ").append("itemsCount").append(" = ").append("itemsCount").append(" + 1").append(" WHERE ").append("syncId").append(" = \'").append(p5).append("\'").toString());
        return;
    }

Method ru.yandex.disk.operation.OperationsDatabase.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(java.util.List p4)
    {
        this.h().execSQL(new StringBuilder().append("UPDATE OPERATIONS SET attempts = attempts + 1 WHERE _id").append(ru.yandex.disk.q.c.a(ark>ru.yandex.disk.operation.OperationsDatabaseark>.b(p4))).toString(), ru.yandex.disk.q.c.b);
        return;
    }

Method ru.yandex.disk.l.e.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p2)
    {
        super.onOpen(p2);
        p2.execSQL("PRAGMA case_sensitive_like=true;");
        return;
    }

Method ru.yandex.disk.l.e.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p5)
    {
        String v0_6 = new StringBuilder().append("CREATE TABLE FILE_INDEX (PARENT TEXT, NAME TEXT, MPFS_ID TEXT, MD5 TEXT, SHA256 TEXT, FILE_SIZE INTEGER, IS_PUBLIC INTEGER, IS_INVISIBLE INTEGER, IS_CONTENT_NOT_AVAIL INTEGER, IS_SHARED_DIR INTEGER, HAS_METADATA INTEGER, IS_DIR INTEGER, IS_READ_ONLY INTEGER, INDEX_ETAG TEXT, LAST_MODIFIED INTEGER, ETIME INTEGER, MEDIA_TYPE TEXT, MIME_TYPE TEXT, ");
        String v1_5 = new String[2];
        v1_5[0] = "PARENT";
        v1_5[1] = "NAME";
        p5.execSQL(v0_6.append(ru.yandex.disk.q.c.c(v1_5)).append(" ON CONFLICT REPLACE ").append(")").toString());
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(long p4, int p6, int p7)
    {
        this.r().execSQL(new StringBuilder().append("UPDATE FEED_BLOCK_TO_FILE SET SERVER_ORDER=SERVER_ORDER+").append(String.valueOf(p7)).append(" WHERE ").append("BLOCK_ID").append(" = ").append(p4).append(" AND ").append("SERVER_ORDER").append(">").append(p6).toString());
        return;
    }

Method ru.yandex.disk.asyncbitmap.an.i() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void i()
    {
        String v0_1 = this.a.c("MOMENT_TO_MOMENT_ITEM");
        this.l().execSQL(new StringBuilder().append("DELETE FROM PreviewsDatabaseTable WHERE NOT EXISTS (SELECT * FROM ").append(v0_1).append(" WHERE ").append(v0_1).append(".").append("PARENT").append(" = ").append("PreviewsDatabaseTable").append(".").append("PARENT").append(" AND ").append(v0_1).append(".").append("NAME").append(" = ").append("PreviewsDatabaseTable").append(".").append("NAME").append(")").toString());
        return;
    }

Method com.yandex.promolib.impl.u.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void b(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("UPDATE reports SET readiness = \'1\' ");
        return;
    }

Method com.yandex.promolib.impl.u.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void a(android.database.sqlite.SQLiteDatabase p5, android.content.ContentValues p6)
    {
        p5.execSQL(new StringBuilder().append("DELETE FROM reports WHERE pkg=\'").append(p6.getAsString("pkg")).append("\' AND ").append("start_time").append(" = \'").append(p6.getAsLong("start_time").longValue()).append("\' ").toString());
        return;
    }

Method com.localytics.android.ProfileProvider$ProfileDatabaseHelper.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        super.onOpen(p6);
        Object[] v1_1 = new Object[1];
        v1_1[0] = android.database.DatabaseUtils.stringForQuery(p6, "select sqlite_version()", 0);
        com.localytics.android.Localytics$Log.v(String.format("SQLite library version is: %s", v1_1));
        if (!p6.isReadOnly()) {
            p6.execSQL("PRAGMA foreign_keys = ON;");
        }
        return;
    }

Method com.localytics.android.ProfileProvider$ProfileDatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        if (p3 != null) {
            p3.execSQL("PRAGMA auto_vacuum = INCREMENTAL;");
            this.onUpgrade(p3, 0, 1);
            return;
        } else {
            throw new IllegalArgumentException("db cannot be null");
        }
    }

Method com.localytics.android.ProfileProvider$ProfileDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p12)
    {
        int v1_2 = new Object[5];
        v1_2[0] = "changes";
        v1_2[1] = "_id";
        v1_2[2] = "scope";
        v1_2[3] = "change";
        v1_2[4] = "customer_id";
        p12.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_2));
        if (com.localytics.android.ProfileProvider$ProfileDatabaseHelper.oldDB != null) {
            try {
                android.content.ContentValues v10_1 = new android.content.ContentValues();
                int v1_3 = com.localytics.android.ProfileProvider$ProfileDatabaseHelper.oldDB.query("profile", 0, 0, 0, 0, 0, "_id ASC");
                try {
                    while (v1_3.moveToNext()) {
                        try {
                            String v2_6 = new org.json.JSONObject(v1_3.getString(v1_3.getColumnIndexOrThrow("attribute")));
                            org.json.JSONObject v3_6 = new org.json.JSONObject();
                            v3_6.put("op", com.localytics.android.ProfileHandler$ProfileOperation.ASSIGN.getOperationString());
                            Throwable v0_12 = ((String) v2_6.keys().next());
                            v3_6.put("attr", v0_12);
                            v3_6.put("value", v2_6.get(v0_12));
                            v10_1.put("scope", com.localytics.android.Localytics$ProfileScope.APPLICATION.getScope());
                            v10_1.put("change", v3_6.toString());
                            v10_1.put("customer_id", v1_3.getString(v1_3.getColumnIndexOrThrow("customer_id")));
                            p12.insert("changes", 0, v10_1);
                            v10_1.clear();
                        } catch (Throwable v0_18) {
                            com.localytics.android.Localytics$Log.w("Caught JSON exception", v0_18);
                        }
                    }
                } catch (Throwable v0_4) {
                    if (v1_3 != 0) {
                        v1_3.close();
                    }
                    throw v0_4;
                }
                com.localytics.android.ProfileProvider$ProfileDatabaseHelper.cleanUpOldDB();
                if (v1_3 != 0) {
                    v1_3.close();
                }
            } catch (Throwable v0_4) {
                v1_3 = 0;
            } catch (Throwable v0_19) {
                throw v0_19;
            }
        }
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p12, int p13, int p14)
    {
        if (p13 < 3) {
            p12.delete("upload_blob_events", 0, 0);
            p12.delete("event_history", 0, 0);
            p12.delete("upload_blobs", 0, 0);
            p12.delete("attributes", 0, 0);
            p12.delete("events", 0, 0);
            p12.delete("sessions", 0, 0);
        }
        if (p13 < 4) {
            int v1_37 = new Object[2];
            v1_37[0] = "sessions";
            v1_37[1] = "iu";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_37));
        }
        if (p13 < 5) {
            int v1_47 = new Object[2];
            v1_47[0] = "sessions";
            v1_47[1] = "device_wifi_mac_hash";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_47));
        }
        if (p13 < 6) {
            try {
                String v2_112 = new String[2];
                v2_112[0] = "_id";
                v2_112[1] = "attribute_key";
                int v1_78 = p12.query("attributes", v2_112, 0, 0, 0, 0, 0);
                try {
                    String v0_102 = v1_78.getColumnIndexOrThrow("_id");
                    String v2_128 = v1_78.getColumnIndexOrThrow("attribute_key");
                    int v3_117 = new android.content.ContentValues();
                    int v5_7 = new Object[1];
                    v5_7[0] = "_id";
                    Object[] v4_11 = String.format("%s = ?", v5_7);
                    int v5_9 = new String[1];
                    v1_78.moveToPosition(-1);
                } catch (String v0_100) {
                    if (v1_78 != 0) {
                        v1_78.close();
                    }
                    throw v0_100;
                }
                while (v1_78.moveToNext()) {
                    int v8_3 = new Object[2];
                    v8_3[0] = this.mLocalyticsDao.getAppContext().getPackageName();
                    v8_3[1] = v1_78.getString(v2_128);
                    v3_117.put("attribute_key", String.format("%s:%s", v8_3));
                    v5_9[0] = Long.toString(v1_78.getLong(v0_102));
                    p12.update("attributes", v3_117, v4_11, v5_9);
                    v3_117.clear();
                }
                if (v1_78 != 0) {
                    v1_78.close();
                }
            } catch (String v0_100) {
                v1_78 = 0;
            }
        }
        if (p13 < 7) {
            int v1_1 = new Object[3];
            v1_1[0] = "info";
            v1_1[1] = "fb_attribution";
            v1_1[2] = "first_run";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s TEXT, %s INTEGER);", v1_1));
            String v0_6 = new android.content.ContentValues();
            v0_6.putNull("fb_attribution");
            v0_6.put("first_run", Boolean.FALSE);
            p12.insertOrThrow("info", 0, v0_6);
        }
        if (p13 < 8) {
            int v1_7 = new Object[4];
            v1_7[0] = "identifiers";
            v1_7[1] = "_id";
            v1_7[2] = "key";
            v1_7[3] = "value";
            p12.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_7));
        }
        if (p13 < 9) {
            int v1_10 = new Object[2];
            v1_10[0] = "events";
            v1_10[1] = "clv_increase";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL DEFAULT 0;", v1_10));
        }
        if (p13 < 10) {
            int v1_12 = new Object[2];
            v1_12[0] = "info";
            v1_12[1] = "play_attribution";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_12));
        }
        if (p13 < 11) {
            int v1_14 = new Object[2];
            v1_14[0] = "info";
            v1_14[1] = "registration_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_14));
            int v1_17 = new Object[2];
            v1_17[0] = "info";
            v1_17[1] = "registration_version";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_17));
        }
        if (p13 < 12) {
            int v1_19 = new Object[2];
            v1_19[0] = "info";
            v1_19[1] = "first_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_19));
            int v1_21 = new Object[2];
            v1_21[0] = "info";
            v1_21[1] = "first_telephony_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_21));
            int v1_24 = new Object[2];
            v1_24[0] = "info";
            v1_24[1] = "package_name";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_24));
            String v0_33 = new android.content.ContentValues();
            v0_33.put("first_android_id", com.localytics.android.DatapointHelper.getAndroidIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("first_telephony_id", com.localytics.android.DatapointHelper.getTelephonyDeviceIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("package_name", this.mLocalyticsDao.getAppContext().getPackageName());
            p12.update("info", v0_33, 0, 0);
            int v1_30 = new Object[2];
            v1_30[0] = "sessions";
            v1_30[1] = "device_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_30));
        }
        if (p13 < 13) {
            int v1_32 = new Object[2];
            v1_32[0] = "events";
            v1_32[1] = "event_lat";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_32));
            int v1_35 = new Object[2];
            v1_35[0] = "events";
            v1_35[1] = "event_lng";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_35));
        }
        if (p13 < 14) {
            int v1_39 = new Object[19];
            v1_39[0] = "amp_rules";
            v1_39[1] = "_id";
            v1_39[2] = "campaign_id";
            v1_39[3] = "expiration";
            v1_39[4] = "display_seconds";
            v1_39[5] = "display_session";
            v1_39[6] = "version";
            v1_39[7] = "phone_location";
            v1_39[8] = "phone_size_width";
            v1_39[9] = "phone_size_height";
            v1_39[10] = "tablet_location";
            v1_39[11] = "tablet_size_width";
            v1_39[12] = "tablet_size_height";
            v1_39[13] = "time_to_display";
            v1_39[14] = "internet_required";
            v1_39[15] = "ab_test";
            v1_39[16] = "rule_name";
            v1_39[17] = "location";
            v1_39[18] = "devices";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER NOT NULL, %s TEXT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_39));
            int v1_41 = new Object[6];
            v1_41[0] = "amp_ruleevent";
            v1_41[1] = "_id";
            v1_41[2] = "event_name";
            v1_41[3] = "rule_id_ref";
            v1_41[4] = "amp_rules";
            v1_41[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_41));
            int v1_43 = new Object[4];
            v1_43[0] = "amp_displayed";
            v1_43[1] = "_id";
            v1_43[2] = "displayed";
            v1_43[3] = "campaign_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL);", v1_43));
            int v1_45 = new Object[7];
            v1_45[0] = "amp_conditions";
            v1_45[1] = "_id";
            v1_45[2] = "attribute_name";
            v1_45[3] = "operator";
            v1_45[4] = "rule_id_ref";
            v1_45[5] = "amp_rules";
            v1_45[6] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_45));
            int v1_49 = new Object[6];
            v1_49[0] = "amp_condition_values";
            v1_49[1] = "_id";
            v1_49[2] = "value";
            v1_49[3] = "condition_id_ref";
            v1_49[4] = "amp_conditions";
            v1_49[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_49));
        }
        if (p13 < 15) {
            int v1_51 = new Object[4];
            v1_51[0] = "custom_dimensions";
            v1_51[1] = "_id";
            v1_51[2] = "custom_dimension_key";
            v1_51[3] = "custom_dimension_value";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_51));
        }
        if (p13 < 16) {
            int v1_53 = new Object[2];
            v1_53[0] = "info";
            v1_53[1] = "first_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_53));
            int v1_55 = new Object[2];
            v1_55[0] = "sessions";
            v1_55[1] = "device_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_55));
            int v1_57 = new Object[2];
            v1_57[0] = "info";
            v1_57[1] = "push_disabled";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER;", v1_57));
            int v1_59 = new Object[2];
            v1_59[0] = "info";
            v1_59[1] = "sender_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_59));
        }
        if (p13 < 17) {
            int v1_61 = new Object[4];
            v1_61[0] = "profile";
            v1_61[1] = "_id";
            v1_61[2] = "attribute";
            v1_61[3] = "action";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT, %s INTEGER)", v1_61));
            int v1_63 = new Object[2];
            v1_63[0] = "events";
            v1_63[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_63));
            int v1_66 = new Object[2];
            v1_66[0] = "events";
            v1_66[1] = "user_type";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_66));
            int v1_68 = new Object[2];
            v1_68[0] = "events";
            v1_68[1] = "ids";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_68));
            int v1_70 = new Object[2];
            v1_70[0] = "info";
            v1_70[1] = "last_session_open_time";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER", v1_70));
            int v1_72 = new Object[3];
            v1_72[0] = "sessions";
            v1_72[1] = "elapsed";
            v1_72[2] = "elapsed";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL CHECK (%s >= 0) DEFAULT 0", v1_72));
        }
        if (p13 < 18) {
            int v1_74 = new Object[2];
            v1_74[0] = "profile";
            v1_74[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT", v1_74));
            android.content.ContentValues v9_1 = new android.content.ContentValues();
            try {
                int v1_76 = p12.query("profile", 0, 0, 0, 0, 0, 0);
                try {
                    while (v1_76.moveToNext()) {
                        String v0_97 = String.valueOf(v1_76.getInt(v1_76.getColumnIndexOrThrow("_id")));
                        try {
                            String v2_122 = new org.json.JSONObject(v1_76.getString(v1_76.getColumnIndexOrThrow("attribute")));
                            v9_1.put("attribute", v2_122.getString("attributes"));
                            v9_1.put("customer_id", v2_122.getString("id"));
                            Object[] v4_6 = new Object[2];
                            v4_6[0] = "_id";
                            v4_6[1] = v0_97;
                            p12.update("profile", v9_1, String.format("%s = %s", v4_6), 0);
                            v9_1.clear();
                        } catch (String v2) {
                            Object[] v4_9 = new Object[2];
                            v4_9[0] = "_id";
                            v4_9[1] = v0_97;
                            p12.delete("profile", String.format("%s = %s", v4_9), 0);
                        }
                    }
                } catch (String v0_92) {
                    if (v1_76 != 0) {
                        v1_76.close();
                    }
                    throw v0_92;
                }
                if (v1_76 != 0) {
                    v1_76.close();
                }
            } catch (String v0_92) {
                v1_76 = 0;
            }
        }
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        super.onOpen(p6);
        Object[] v1_1 = new Object[1];
        v1_1[0] = android.database.DatabaseUtils.stringForQuery(p6, "select sqlite_version()", 0);
        com.localytics.android.Localytics$Log.v(String.format("SQLite library version is: %s", v1_1));
        if (!p6.isReadOnly()) {
            p6.execSQL("PRAGMA foreign_keys = ON;");
        }
        return;
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.setUpFrequencyCappingTables() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void setUpFrequencyCappingTables(android.database.sqlite.SQLiteDatabase p11)
    {
        String v1_11 = new Object[5];
        v1_11[0] = "frequency_capping_rules";
        v1_11[1] = "_id";
        v1_11[2] = "campaign_id";
        v1_11[3] = "max_display_count";
        v1_11[4] = "ignore_global";
        p11.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER UNIQUE, %s INTEGER, %s INTEGER);", v1_11));
        String v1_16 = new Object[8];
        v1_16[0] = "frequency_capping_display_frequencies";
        v1_16[1] = "_id";
        v1_16[2] = "frequency_id";
        v1_16[3] = "count";
        v1_16[4] = "days";
        v1_16[5] = "frequency_id";
        v1_16[6] = "frequency_capping_rules";
        v1_16[7] = "_id";
        p11.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, FOREIGN KEY(%s) REFERENCES %s(%s) ON DELETE CASCADE);", v1_16));
        String v1_18 = new Object[8];
        v1_18[0] = "frequency_capping_blackout_dates";
        v1_18[1] = "frequency_id";
        v1_18[2] = "rule_group_id";
        v1_18[3] = "start";
        v1_18[4] = "end";
        v1_18[5] = "frequency_id";
        v1_18[6] = "frequency_capping_rules";
        v1_18[7] = "_id";
        p11.execSQL(String.format("CREATE TABLE %s (%s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, FOREIGN KEY(%s) REFERENCES %s(%s) ON DELETE CASCADE);", v1_18));
        String v1_20 = new Object[7];
        v1_20[0] = "frequency_capping_blackout_weekdays";
        v1_20[1] = "frequency_id";
        v1_20[2] = "rule_group_id";
        v1_20[3] = "day";
        v1_20[4] = "frequency_id";
        v1_20[5] = "frequency_capping_rules";
        v1_20[6] = "_id";
        p11.execSQL(String.format("CREATE TABLE %s (%s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, FOREIGN KEY(%s) REFERENCES %s(%s) ON DELETE CASCADE);", v1_20));
        String v1_2 = new Object[8];
        v1_2[0] = "frequency_capping_blackout_times";
        v1_2[1] = "frequency_id";
        v1_2[2] = "rule_group_id";
        v1_2[3] = "start";
        v1_2[4] = "end";
        v1_2[5] = "frequency_id";
        v1_2[6] = "frequency_capping_rules";
        v1_2[7] = "_id";
        p11.execSQL(String.format("CREATE TABLE %s (%s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, FOREIGN KEY(%s) REFERENCES %s(%s) ON DELETE CASCADE);", v1_2));
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        try {
            int v2_10 = new String[1];
            v2_10[0] = "campaign_id";
            String v1_4 = p11.query("marketing_displayed", v2_10, 0, 0, 0, 0, 0);
            try {
                while (v1_4.moveToNext()) {
                    v9_1.add(Integer.valueOf(v1_4.getInt(v1_4.getColumnIndexOrThrow("campaign_id"))));
                }
            } catch (java.io.File v0_7) {
                if (v1_4 != null) {
                    v1_4.close();
                }
                throw v0_7;
            }
            if (v1_4 != null) {
                v1_4.close();
            }
            String v1_6 = new Object[4];
            v1_6[0] = "campaigns_displayed";
            v1_6[1] = "campaign_id";
            v1_6[2] = "date";
            v1_6[3] = "ignore_global";
            p11.execSQL(String.format("CREATE TABLE %s (%s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL);", v1_6));
            String v1_7 = v9_1.iterator();
            while (v1_7.hasNext()) {
                java.io.File v0_21 = ((Integer) v1_7.next());
                String v3_22 = new Object[1];
                v3_22[0] = "campaigns_displayed";
                int v2_19 = String.format("INSERT INTO %s VALUES (?, datetime(0,\'unixepoch\'), ?);", v3_22);
                String v3_24 = new Integer[2];
                v3_24[0] = v0_21;
                v3_24[1] = Integer.valueOf(1);
                p11.execSQL(v2_19, v3_24);
            }
            String v1_9 = new Object[1];
            v1_9[0] = "marketing_displayed";
            p11.execSQL(String.format("DROP TABLE %s", v1_9));
            String v1_12 = new Object[1];
            v1_12[0] = "marketing_rules";
            p11.execSQL(String.format("DELETE FROM %s", v1_12));
            com.localytics.android.BaseProvider.deleteDirectory(new java.io.File(com.localytics.android.CreativeManager.getZipFileDirPath(this.mLocalyticsDao)));
            return;
        } catch (java.io.File v0_7) {
            v1_4 = 0;
        }
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        super.onOpen(p6);
        Object[] v1_1 = new Object[1];
        v1_1[0] = android.database.DatabaseUtils.stringForQuery(p6, "select sqlite_version()", 0);
        com.localytics.android.Localytics$Log.v(String.format("SQLite library version is: %s", v1_1));
        if (!p6.isReadOnly()) {
            p6.execSQL("PRAGMA foreign_keys = ON;");
        }
        return;
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p14)
    {
        int v8 = 0;
        int v1_15 = new Object[19];
        v1_15[0] = "marketing_rules";
        v1_15[1] = "_id";
        v1_15[2] = "campaign_id";
        v1_15[3] = "expiration";
        v1_15[4] = "display_seconds";
        v1_15[5] = "display_session";
        v1_15[6] = "version";
        v1_15[7] = "phone_location";
        v1_15[8] = "phone_size_width";
        v1_15[9] = "phone_size_height";
        v1_15[10] = "tablet_location";
        v1_15[11] = "tablet_size_width";
        v1_15[12] = "tablet_size_height";
        v1_15[13] = "time_to_display";
        v1_15[14] = "internet_required";
        v1_15[15] = "ab_test";
        v1_15[16] = "rule_name";
        v1_15[17] = "location";
        v1_15[18] = "devices";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER NOT NULL, %s TEXT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_15));
        int v1_14 = new Object[6];
        v1_14[0] = "marketing_ruleevent";
        v1_14[1] = "_id";
        v1_14[2] = "event_name";
        v1_14[3] = "rule_id_ref";
        v1_14[4] = "marketing_rules";
        v1_14[5] = "_id";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_14));
        int v1_16 = new Object[2];
        v1_16[0] = "marketing_displayed";
        v1_16[1] = "campaign_id";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY);", v1_16));
        int v1_18 = new Object[7];
        v1_18[0] = "marketing_conditions";
        v1_18[1] = "_id";
        v1_18[2] = "attribute_name";
        v1_18[3] = "operator";
        v1_18[4] = "rule_id_ref";
        v1_18[5] = "marketing_rules";
        v1_18[6] = "_id";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_18));
        int v1_1 = new Object[6];
        v1_1[0] = "marketing_condition_values";
        v1_1[1] = "_id";
        v1_1[2] = "value";
        v1_1[3] = "condition_id_ref";
        v1_1[4] = "marketing_conditions";
        v1_1[5] = "_id";
        p14.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_1));
        if (com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB != null) {
            try {
                android.content.ContentValues v11_1 = new android.content.ContentValues();
                try {
                    int v1_3 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_rules", 0, 0, 0, 0, 0, "_id ASC");
                    try {
                        while (v1_3.moveToNext()) {
                            v11_1.put("_id", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("_id"))));
                            v11_1.put("campaign_id", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("campaign_id"))));
                            v11_1.put("expiration", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("expiration"))));
                            v11_1.put("display_seconds", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("display_seconds"))));
                            v11_1.put("display_session", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("display_session"))));
                            v11_1.put("version", v1_3.getString(v1_3.getColumnIndexOrThrow("version")));
                            v11_1.put("phone_location", v1_3.getString(v1_3.getColumnIndexOrThrow("phone_location")));
                            v11_1.put("phone_size_width", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("phone_size_width"))));
                            v11_1.put("phone_size_height", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("phone_size_height"))));
                            v11_1.put("tablet_location", v1_3.getString(v1_3.getColumnIndexOrThrow("tablet_location")));
                            v11_1.put("tablet_size_width", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("tablet_size_width"))));
                            v11_1.put("tablet_size_height", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("tablet_size_height"))));
                            v11_1.put("time_to_display", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("time_to_display"))));
                            v11_1.put("internet_required", Integer.valueOf(v1_3.getInt(v1_3.getColumnIndexOrThrow("internet_required"))));
                            v11_1.put("ab_test", v1_3.getString(v1_3.getColumnIndexOrThrow("ab_test")));
                            v11_1.put("rule_name", v1_3.getString(v1_3.getColumnIndexOrThrow("rule_name")));
                            v11_1.put("location", v1_3.getString(v1_3.getColumnIndexOrThrow("location")));
                            v11_1.put("devices", v1_3.getString(v1_3.getColumnIndexOrThrow("devices")));
                            p14.insert("marketing_rules", 0, v11_1);
                            v11_1.clear();
                        }
                    } catch (String v0_5) {
                        if (v1_3 != 0) {
                            v1_3.close();
                        }
                        throw v0_5;
                    }
                    int v9_0;
                    if (v1_3 == 0) {
                        v9_0 = v1_3;
                    } else {
                        v1_3.close();
                        v9_0 = 0;
                    }
                    try {
                        int v1_5 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_ruleevent", 0, 0, 0, 0, 0, "_id ASC");
                        try {
                            while (v1_5.moveToNext()) {
                                v11_1.put("_id", Integer.valueOf(v1_5.getInt(v1_5.getColumnIndexOrThrow("_id"))));
                                v11_1.put("event_name", v1_5.getString(v1_5.getColumnIndexOrThrow("event_name")));
                                v11_1.put("rule_id_ref", Integer.valueOf(v1_5.getInt(v1_5.getColumnIndexOrThrow("rule_id_ref"))));
                                p14.insert("marketing_ruleevent", 0, v11_1);
                                v11_1.clear();
                            }
                        } catch (String v0_8) {
                            if (v1_5 != 0) {
                                v1_5.close();
                            }
                            throw v0_8;
                        }
                        int v9_1;
                        if (v1_5 == 0) {
                            v9_1 = v1_5;
                        } else {
                            v1_5.close();
                            v9_1 = 0;
                        }
                        try {
                            int v1_7 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_displayed", 0, 0, 0, 0, 0, "_id ASC");
                            try {
                                while (v1_7.moveToNext()) {
                                    if (v1_7.getInt(v1_7.getColumnIndexOrThrow("displayed")) == 1) {
                                        v11_1.put("campaign_id", Integer.valueOf(v1_7.getInt(v1_7.getColumnIndexOrThrow("campaign_id"))));
                                        p14.insert("marketing_displayed", 0, v11_1);
                                        v11_1.clear();
                                    }
                                }
                            } catch (String v0_11) {
                                if (v1_7 != 0) {
                                    v1_7.close();
                                }
                                throw v0_11;
                            }
                            int v9_2;
                            if (v1_7 == 0) {
                                v9_2 = v1_7;
                            } else {
                                v1_7.close();
                                v9_2 = 0;
                            }
                            try {
                                int v1_9 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_conditions", 0, 0, 0, 0, 0, "_id ASC");
                                try {
                                    while (v1_9.moveToNext()) {
                                        v11_1.put("_id", Integer.valueOf(v1_9.getInt(v1_9.getColumnIndexOrThrow("_id"))));
                                        v11_1.put("attribute_name", v1_9.getString(v1_9.getColumnIndexOrThrow("attribute_name")));
                                        v11_1.put("operator", v1_9.getString(v1_9.getColumnIndexOrThrow("operator")));
                                        v11_1.put("rule_id_ref", Integer.valueOf(v1_9.getInt(v1_9.getColumnIndexOrThrow("rule_id_ref"))));
                                        p14.insert("marketing_conditions", 0, v11_1);
                                        v11_1.clear();
                                    }
                                } catch (String v0_14) {
                                    if (v1_9 != 0) {
                                        v1_9.close();
                                    }
                                    throw v0_14;
                                }
                                if (v1_9 == 0) {
                                    v8 = v1_9;
                                } else {
                                    v1_9.close();
                                }
                                try {
                                    int v1_11 = com.localytics.android.MarketingProvider$MarketingDatabaseHelper.oldDB.query("amp_condition_values", 0, 0, 0, 0, 0, "_id ASC");
                                    try {
                                        while (v1_11.moveToNext()) {
                                            v11_1.put("_id", Integer.valueOf(v1_11.getInt(v1_11.getColumnIndexOrThrow("_id"))));
                                            v11_1.put("value", v1_11.getString(v1_11.getColumnIndexOrThrow("value")));
                                            v11_1.put("condition_id_ref", Integer.valueOf(v1_11.getInt(v1_11.getColumnIndexOrThrow("condition_id_ref"))));
                                            p14.insert("marketing_condition_values", 0, v11_1);
                                            v11_1.clear();
                                        }
                                    } catch (String v0_17) {
                                        if (v1_11 != 0) {
                                            v1_11.close();
                                        }
                                        throw v0_17;
                                    }
                                    if (v1_11 != 0) {
                                        v1_11.close();
                                    }
                                    com.localytics.android.MarketingProvider$MarketingDatabaseHelper.cleanUpOldDB();
                                } catch (String v0_17) {
                                    v1_11 = v8;
                                }
                            } catch (String v0_14) {
                                v1_9 = v9_2;
                            }
                        } catch (String v0_11) {
                            v1_7 = v9_1;
                        }
                    } catch (String v0_8) {
                        v1_5 = v9_0;
                    }
                } catch (String v0_5) {
                    v1_3 = 0;
                }
            } catch (String v0_31) {
                throw v0_31;
            }
        }
        return;
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.addSchemaVersion() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void addSchemaVersion(android.database.sqlite.SQLiteDatabase p5)
    {
        Object[] v1_1 = new Object[2];
        v1_1[0] = "marketing_rules";
        v1_1[1] = "schema_version";
        p5.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER DEFAULT 1;", v1_1));
        return;
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.addPlacesCampaignTables() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void addPlacesCampaignTables(android.database.sqlite.SQLiteDatabase p10)
    {
        Object[] v1_6 = new Object[12];
        v1_6[0] = "places_campaigns";
        v1_6[1] = "campaign_id";
        v1_6[2] = "creative_id";
        v1_6[3] = "creative_type";
        v1_6[4] = "expiration";
        v1_6[5] = "version";
        v1_6[6] = "ab_test";
        v1_6[7] = "rule_name";
        v1_6[8] = "control_group";
        v1_6[9] = "schema_version";
        v1_6[10] = "message";
        v1_6[11] = "sound_filename";
        p10.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY,%s INTEGER NOT NULL,%s TEXT,%s INTEGER, %s INTEGER NOT NULL, %s TEXT, %s TEXT NOT NULL, %s INTEGER DEFAULT 0,%s INTEGER DEFAULT 1,%s TEXT,%s TEXT);", v1_6));
        Object[] v1_2 = new Object[6];
        v1_2[0] = "places_campaign_attributes";
        v1_2[1] = "key";
        v1_2[2] = "value";
        v1_2[3] = "campaign_id";
        v1_2[4] = "places_campaigns";
        v1_2[5] = "campaign_id";
        p10.execSQL(String.format("CREATE TABLE %s (%s TEXT NOT NULL, %s TEXT NOT NULL,%s INTEGER REFERENCES %s(%s) ON DELETE CASCADE);", v1_2));
        Object[] v1_5 = new Object[6];
        v1_5[0] = "places_campaigns_geofence_triggers";
        v1_5[1] = "_id";
        v1_5[2] = "place_id";
        v1_5[3] = "campaign_id";
        v1_5[4] = "places_campaigns";
        v1_5[5] = "campaign_id";
        p10.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER REFERENCES %s(%s) ON DELETE CASCADE);", v1_5));
        Object[] v1_8 = new Object[6];
        v1_8[0] = "places_campaigns_events";
        v1_8[1] = "_id";
        v1_8[2] = "event";
        v1_8[3] = "campaign_id";
        v1_8[4] = "places_campaigns";
        v1_8[5] = "campaign_id";
        p10.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) ON DELETE CASCADE);", v1_8));
        Object[] v1_0 = new Object[2];
        v1_0[0] = "places_campaigns_displayed";
        v1_0[1] = "campaign_id";
        p10.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY);", v1_0));
        return;
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.addNonUniqueRuleName() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void addNonUniqueRuleName(android.database.sqlite.SQLiteDatabase p7)
    {
        Object[] v1_2 = new Object[2];
        v1_2[0] = "marketing_rules";
        v1_2[1] = "rule_name_non_unique";
        p7.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_2));
        Object[] v1_1 = new Object[3];
        v1_1[0] = "marketing_rules";
        v1_1[1] = "rule_name_non_unique";
        v1_1[2] = "rule_name";
        p7.execSQL(String.format("UPDATE %s SET %s = %s;", v1_1));
        return;
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.addInboxCampaignTables() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void addInboxCampaignTables(android.database.sqlite.SQLiteDatabase p10)
    {
        Object[] v1_3 = new Object[15];
        v1_3[0] = "inbox_campaigns";
        v1_3[1] = "_id";
        v1_3[2] = "campaign_id";
        v1_3[3] = "expiration";
        v1_3[4] = "version";
        v1_3[5] = "received_date";
        v1_3[6] = "ab_test";
        v1_3[7] = "rule_name";
        v1_3[8] = "listing_title";
        v1_3[9] = "listing_summary";
        v1_3[10] = "sort_order";
        v1_3[11] = "read";
        v1_3[12] = "schema_version";
        v1_3[13] = "thumbnail_location";
        v1_3[14] = "creative_location";
        p10.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER UNIQUE NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s TEXT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s TEXT, %s INTEGER NOT NULL, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL DEFAULT 1, %s TEXT, %s TEXT);", v1_3));
        Object[] v1_1 = new Object[6];
        v1_1[0] = "inbox_campaign_attributes";
        v1_1[1] = "key";
        v1_1[2] = "value";
        v1_1[3] = "inbox_id_ref";
        v1_1[4] = "inbox_campaigns";
        v1_1[5] = "_id";
        p10.execSQL(String.format("CREATE TABLE %s (%s TEXT NOT NULL, %s TEXT NOT NULL,%s INTEGER REFERENCES %s(%s) ON DELETE CASCADE);", v1_1));
        return;
    }

Method com.localytics.android.MarketingProvider$MarketingDatabaseHelper.addControlGroup() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void addControlGroup(android.database.sqlite.SQLiteDatabase p5)
    {
        Object[] v1_1 = new Object[2];
        v1_1[0] = "marketing_rules";
        v1_1[1] = "control_group";
        p5.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER DEFAULT 0;", v1_1));
        return;
    }

Method com.localytics.android.ManifestProvider$ManifestDatabaseHelper.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        super.onOpen(p6);
        Object[] v1_1 = new Object[1];
        v1_1[0] = android.database.DatabaseUtils.stringForQuery(p6, "select sqlite_version()", 0);
        com.localytics.android.Localytics$Log.v(String.format("SQLite library version is: %s", v1_1));
        if (!p6.isReadOnly()) {
            p6.execSQL("PRAGMA foreign_keys = ON;");
        }
        return;
    }

Method com.localytics.android.ManifestProvider$ManifestDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p5)
    {
        Object[] v1_1 = new Object[2];
        v1_1[0] = "info";
        v1_1[1] = "last_campaign_download";
        p5.execSQL(String.format("CREATE TABLE %s (%s INTEGER DEFAULT 0);", v1_1));
        return;
    }

Method com.localytics.android.LocationProvider$LocationDatabaseHelper.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        super.onOpen(p6);
        Object[] v1_1 = new Object[1];
        v1_1[0] = android.database.DatabaseUtils.stringForQuery(p6, "select sqlite_version()", 0);
        com.localytics.android.Localytics$Log.v(String.format("SQLite library version is: %s", v1_1));
        if (!p6.isReadOnly()) {
            p6.execSQL("PRAGMA foreign_keys = ON;");
        }
        return;
    }

Method com.localytics.android.LocationProvider$LocationDatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        if (p3 != null) {
            p3.execSQL("PRAGMA auto_vacuum = INCREMENTAL;");
            this.onUpgrade(p3, 0, 1);
            return;
        } else {
            throw new IllegalArgumentException("db cannot be null");
        }
    }

Method com.localytics.android.LocationProvider$LocationDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p10)
    {
        Object[] v1_4 = new Object[13];
        v1_4[0] = "geofences";
        v1_4[1] = "place_id";
        v1_4[2] = "identifier";
        v1_4[3] = "name";
        v1_4[4] = "latitude";
        v1_4[5] = "longitude";
        v1_4[6] = "radius";
        v1_4[7] = "enter_analytics_enabled";
        v1_4[8] = "exit_analytics_enabled";
        v1_4[9] = "entered_time";
        v1_4[10] = "exited_time";
        v1_4[11] = "schema_version";
        v1_4[12] = "is_monitored";
        p10.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY,%s TEXT NOT NULL UNIQUE,%s TEXT,%s INTEGER NOT NULL,%s INTEGER NOT NULL,%s INTEGER NOT NULL,%s INTEGER NOT NULL DEFAULT 0,%s INTEGER NOT NULL DEFAULT 0,%s INTEGER NOT NULL DEFAULT 0,%s INTEGER NOT NULL DEFAULT 0,%s INTEGER NOT NULL DEFAULT 1,%s INTEGER NOT NULL DEFAULT 0);", v1_4));
        Object[] v1_1 = new Object[7];
        v1_1[0] = "geofences_attributes";
        v1_1[1] = "_id";
        v1_1[2] = "place_id";
        v1_1[3] = "geofences";
        v1_1[4] = "place_id";
        v1_1[5] = "key";
        v1_1[6] = "value";
        p10.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT,%s INTEGER REFERENCES %s(%s) ON DELETE CASCADE,%s TEXT NOT NULL,%s TEXT NOT NULL);", v1_1));
        Object[] v1_3 = new Object[3];
        v1_3[0] = "info";
        v1_3[1] = "places_data_last_modified";
        v1_3[2] = "location_monitoring_enabled";
        p10.execSQL(String.format("CREATE TABLE %s (%s INTEGER,%s INTEGER);", v1_3));
        return;
    }

Method com.localytics.android.InAppManager._setInAppMessageAsDisplayed() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    boolean _setInAppMessageAsDisplayed(int p11)
    {
        try {
            Integer v0_1 = this.mProvider;
            android.database.sqlite.SQLiteDatabase v2_3 = new String[1];
            v2_3[0] = "ignore_global";
            Integer[] v4_1 = new Object[1];
            v4_1[0] = "campaign_id";
            String v3_1 = String.format("%s = ?", v4_1);
            Integer[] v4_3 = new String[1];
            v4_3[0] = String.valueOf(p11);
            int v1_0 = v0_1.query("frequency_capping_rules", v2_3, v3_1, v4_3, 0);
            try {
                Integer v0_3;
                if (!v1_0.moveToFirst()) {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    v0_3 = 0;
                } else {
                    Integer v0_6 = v1_0.getInt(v1_0.getColumnIndex("ignore_global"));
                    android.database.sqlite.SQLiteDatabase v2_1 = this.mProvider.mDb;
                    Integer[] v4_5 = new Object[2];
                    v4_5[0] = "campaigns_displayed";
                    v4_5[1] = this.mLocalyticsDao.getTimeStringForSQLite();
                    String v3_3 = String.format("INSERT INTO %s VALUES (?, datetime(\'%s\'), ?);", v4_5);
                    Integer[] v4_7 = new Integer[2];
                    v4_7[0] = Integer.valueOf(p11);
                    v4_7[1] = Integer.valueOf(v0_6);
                    v2_1.execSQL(v3_3, v4_7);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    v0_3 = 1;
                }
            } catch (Integer v0_0) {
                if (v1_0 != 0) {
                    v1_0.close();
                }
                throw v0_0;
            }
            return v0_3;
        } catch (Integer v0_0) {
            v1_0 = 0;
        }
    }

Method com.localytics.android.InAppManager._saveFrequencyCappingRuleBlackoutDates() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    boolean _saveFrequencyCappingRuleBlackoutDates(java.util.List p10, Integer p11, Integer p12)
    {
        if (p10 == null) {
            int v0_3 = 1;
        } else {
            java.util.Iterator v3 = p10.iterator();
            while (v3.hasNext()) {
                int v0_1 = ((java.util.Map) v3.next());
                try {
                    android.database.sqlite.SQLiteDatabase v4_1 = this.mProvider.mDb;
                    Object[] v6_1 = new Object[1];
                    v6_1[0] = "frequency_capping_blackout_dates";
                    String v5_1 = String.format("INSERT INTO %s VALUES (?, ?, datetime(?,\'start of day\'), datetime(?,\'start of day\',\'1 day\',\'-1 second\'));", v6_1);
                    Object[] v6_3 = new Object[4];
                    v6_3[0] = p11;
                    v6_3[1] = p12;
                    v6_3[2] = v0_1.get("start");
                    v6_3[3] = v0_1.get("end");
                    v4_1.execSQL(v5_1, v6_3);
                } catch (int v0) {
                    v0_3 = 0;
                }
            }
        }
        return v0_3;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p6)
    {
        super.onOpen(p6);
        Object[] v1_1 = new Object[1];
        v1_1[0] = android.database.DatabaseUtils.stringForQuery(p6, "select sqlite_version()", 0);
        com.localytics.android.Localytics$Log.v(String.format("SQLite library version is: %s", v1_1));
        if (!p6.isReadOnly()) {
            p6.execSQL("PRAGMA foreign_keys = ON;");
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        if (p3 != null) {
            p3.execSQL("PRAGMA auto_vacuum = INCREMENTAL;");
            this.onUpgrade(p3, 0, 3);
            return;
        } else {
            throw new IllegalArgumentException("db cannot be null");
        }
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        String v28;
                        int v25;
                        long v26_1;
                        String v29;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        String v16_1;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        android.database.sqlite.SQLiteDatabase v12_3;
                        int v13_1;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                            v4_26 = v6_30;
                            v5_11 = v7_29;
                            v6_29 = v8_5;
                            v9_4 = v5_12;
                            v8_4 = v10_7;
                            v10_6 = v12_5;
                            v12_4 = v16_2;
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        int v25;
                        long v26_1;
                        String v29;
                        String v28;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        String v16_1;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        int v13_1;
                        android.database.sqlite.SQLiteDatabase v12_3;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                            v4_26 = v6_30;
                            v5_11 = v7_29;
                            v6_29 = v8_5;
                            v9_4 = v5_12;
                            v8_4 = v10_7;
                            v10_6 = v12_5;
                            v12_4 = v16_2;
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        String v29;
                        String v28;
                        long v26_1;
                        int v25;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        String v16_1;
                        int v13_1;
                        android.database.sqlite.SQLiteDatabase v12_3;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                            v4_26 = v6_30;
                            v5_11 = v7_29;
                            v6_29 = v8_5;
                            v9_4 = v5_12;
                            v8_4 = v10_7;
                            v10_6 = v12_5;
                            v12_4 = v16_2;
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p38)
    {
        int v5_3 = new Object[4];
        v5_3[0] = "events";
        v5_3[1] = "_id";
        v5_3[2] = "blob";
        v5_3[3] = "upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL);", v5_3));
        int v5_5 = new Object[3];
        v5_5[0] = "identifiers";
        v5_5[1] = "key";
        v5_5[2] = "value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_5));
        int v5_14 = new Object[3];
        v5_14[0] = "custom_dimensions";
        v5_14[1] = "custom_dimension_key";
        v5_14[2] = "custom_dimension_value";
        p38.execSQL(String.format("CREATE TABLE %s (%s TEXT PRIMARY KEY, %s TEXT NOT NULL);", v5_14));
        int v5_16 = new Object[36];
        v5_16[0] = "info";
        v5_16[1] = "_id";
        v5_16[2] = "api_key";
        v5_16[3] = "uuid";
        v5_16[4] = "created_time";
        v5_16[5] = "created_time";
        v5_16[6] = "opt_out";
        v5_16[7] = "opt_out";
        v5_16[8] = "0";
        v5_16[9] = "1";
        v5_16[10] = "push_disabled";
        v5_16[11] = "push_disabled";
        v5_16[12] = "0";
        v5_16[13] = "1";
        v5_16[14] = "sender_id";
        v5_16[15] = "registration_id";
        v5_16[16] = "registration_version";
        v5_16[17] = "customer_id";
        v5_16[18] = "user_type";
        v5_16[19] = "fb_attribution";
        v5_16[20] = "play_attribution";
        v5_16[21] = "first_android_id";
        v5_16[22] = "first_advertising_id";
        v5_16[23] = "package_name";
        v5_16[24] = "app_version";
        v5_16[25] = "current_session_uuid";
        v5_16[26] = "last_session_open_time";
        v5_16[27] = "last_session_open_time";
        v5_16[28] = "last_session_close_time";
        v5_16[29] = "last_session_close_time";
        v5_16[30] = "next_session_number";
        v5_16[31] = "next_session_number";
        v5_16[32] = "next_header_number";
        v5_16[33] = "next_header_number";
        v5_16[34] = "queued_close_session_blob";
        v5_16[35] = "queued_close_session_blob_upload_format";
        p38.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT UNIQUE NOT NULL, %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s INTEGER NOT NULL CHECK(%s IN (%s, %s)), %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s TEXT, %s INTEGER CHECK (%s >= 0), %s INTEGER CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s INTEGER NOT NULL CHECK (%s >= 0), %s TEXT, %s INTEGER);", v5_16));
        try {
            if (com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB != null) {
                android.content.ContentValues v31_1 = new android.content.ContentValues();
                android.content.ContentValues v22_0 = 1;
                StringBuilder v20_0 = 1;
                try {
                    int v5_2 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("api_keys", 0, 0, 0, 0, 0, 0);
                    try {
                        int v25;
                        String v29;
                        String v28;
                        long v26_1;
                        if (!v5_2.moveToFirst()) {
                            v28 = 0;
                            v29 = 0;
                            v26_1 = 0;
                            v25 = 0;
                        } else {
                            String v4_17;
                            String v9_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("api_key"));
                            int v8_1 = v5_2.getString(v5_2.getColumnIndexOrThrow("uuid"));
                            org.json.JSONArray v6_23 = v5_2.getLong(v5_2.getColumnIndexOrThrow("created_time"));
                            if (v5_2.getInt(v5_2.getColumnIndexOrThrow("opt_out")) != Integer.valueOf("1").intValue()) {
                                v4_17 = 0;
                            } else {
                                v4_17 = 1;
                            }
                            v25 = v4_17;
                            v26_1 = v6_23;
                            v28 = v8_1;
                            v29 = v9_1;
                        }
                    } catch (String v4_6) {
                        if (v5_2 != 0) {
                            v5_2.close();
                        }
                        throw v4_6;
                    }
                    android.database.sqlite.SQLiteDatabase v12_1;
                    if (v5_2 == 0) {
                        v12_1 = v5_2;
                    } else {
                        v5_2.close();
                        v12_1 = 0;
                    }
                    int v5_7 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("identifiers", 0, 0, 0, 0, 0, 0);
                    int v24_1 = 0;
                    try {
                        while (v5_7.moveToNext()) {
                            String v4_84;
                            String v7_49 = v5_7.getString(v5_7.getColumnIndexOrThrow("key"));
                            org.json.JSONArray v6_91 = v5_7.getString(v5_7.getColumnIndexOrThrow("value"));
                            if (!v7_49.equals("customer_id")) {
                                v4_84 = v24_1;
                            } else {
                                v4_84 = v6_91;
                            }
                            v31_1.put("key", v7_49);
                            v31_1.put("value", v6_91);
                            p38.insert("identifiers", 0, v31_1);
                            v31_1.clear();
                            v24_1 = v4_84;
                        }
                    } catch (String v4_19) {
                        if (v5_7 != 0) {
                            v5_7.close();
                        }
                        throw v4_19;
                    }
                    android.database.sqlite.SQLiteDatabase v12_2;
                    if (v5_7 == 0) {
                        v12_2 = v5_7;
                    } else {
                        v5_7.close();
                        v12_2 = 0;
                    }
                    try {
                        int v5_9 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("custom_dimensions", 0, 0, 0, 0, 0, 0);
                        try {
                            while (v5_9.moveToNext()) {
                                v31_1.put("custom_dimension_key", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_key")).replace("com.localytics.android:", ""));
                                v31_1.put("custom_dimension_value", v5_9.getString(v5_9.getColumnIndexOrThrow("custom_dimension_value")));
                                p38.insert("custom_dimensions", 0, v31_1);
                                v31_1.clear();
                            }
                        } catch (String v4_22) {
                            if (v5_9 != 0) {
                                v5_9.close();
                            }
                            throw v4_22;
                        }
                        int v19_1;
                        if (v5_9 == 0) {
                            v19_1 = v5_9;
                        } else {
                            v5_9.close();
                            v19_1 = 0;
                        }
                        int v13_1;
                        android.database.sqlite.SQLiteDatabase v14_1;
                        android.database.sqlite.SQLiteDatabase v12_3;
                        String v16_1;
                        android.content.Context v32 = this.mLocalyticsDao.getAppContext();
                        if (v29 == null) {
                            v12_3 = 0;
                            v13_1 = 0;
                            v16_1 = 0;
                            v14_1 = 0;
                        } else {
                            com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB);
                            String v9_4 = 0;
                            String v4_26 = 0;
                            org.json.JSONArray v6_29 = 0;
                            int v8_4 = 0;
                            android.database.sqlite.SQLiteDatabase v10_6 = 1;
                            int v5_11 = 0;
                            android.database.sqlite.SQLiteDatabase v12_4 = 1;
                            while(true) {
                                android.database.sqlite.SQLiteDatabase v14_3 = com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson(v32, com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v29);
                                if (!v14_3.isEmpty()) {
                                    StringBuilder v20_2 = new StringBuilder();
                                    java.util.Iterator v21 = v14_3.iterator();
                                    String v16_2 = v12_4;
                                    android.database.sqlite.SQLiteDatabase v12_5 = v10_6;
                                    android.database.sqlite.SQLiteDatabase v10_7 = v8_4;
                                    String v7_29 = v5_11;
                                    org.json.JSONArray v6_30 = v4_26;
                                    int v5_12 = v9_4;
                                    int v8_5 = v6_29;
                                    while (v21.hasNext()) {
                                        String v4_30 = ((org.json.JSONObject) v21.next());
                                        try {
                                            if (!v4_30.getString("dt").equals("h")) {
                                                android.database.sqlite.SQLiteDatabase v14_6 = (1 + v16_2);
                                                try {
                                                    String v4_35;
                                                    v5_12.put("seq", v16_2);
                                                    v5_12.put("u", java.util.UUID.randomUUID().toString());
                                                    v5_12.getJSONObject("attrs").put("lpg", com.localytics.android.DatapointHelper.isLocationPermissionGranted(v32));
                                                    v20_2.append(v5_12.toString()).append("\n").append(v4_30.toString());
                                                } catch (String v4) {
                                                    v4_30 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                    v12_5 = v14_6;
                                                }
                                                if (!v4_30.getString("dt").equals("c")) {
                                                    if (v4_30.getString("dt").equals("s")) {
                                                        v12_5 = v4_30.getLong("nth");
                                                        v7_29 = v4_30.getString("u");
                                                    }
                                                    v31_1.put("blob", v20_2.toString());
                                                    v31_1.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                    p38.insert("events", 0, v31_1);
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                } else {
                                                    String v11_27;
                                                    String v18_1 = v20_2.toString();
                                                    String v16_12 = com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent(com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB, v4_30.getString("u"));
                                                    if (v10_7 == null) {
                                                        v11_27 = 1;
                                                        v10_7 = v18_1;
                                                        v8_5 = v16_12;
                                                    } else {
                                                        String v9_5;
                                                        android.content.ContentValues v22_2 = new android.content.ContentValues();
                                                        v22_2.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                                        if (v16_12 <= v8_5) {
                                                            v22_2.put("blob", v18_1);
                                                            p38.insert("events", 0, v22_2);
                                                            int v35_0 = v8_5;
                                                            v8_5 = 0;
                                                            v9_5 = v10_7;
                                                            v10_7 = v35_0;
                                                        } else {
                                                            v22_2.put("blob", v10_7);
                                                            p38.insert("events", 0, v22_2);
                                                            v8_5 = 1;
                                                            v10_7 = v16_12;
                                                            v9_5 = v18_1;
                                                        }
                                                        int v35_1 = v10_7;
                                                        v11_27 = v8_5;
                                                        v10_7 = v9_5;
                                                        v8_5 = v35_1;
                                                    }
                                                    if ((v11_27 != null) && (v4_30.has("fl"))) {
                                                        v6_30 = v4_30.getJSONArray("fl");
                                                    }
                                                    v4_35 = v6_30;
                                                    v6_30 = v7_29;
                                                    v7_29 = v10_7;
                                                    v10_7 = v12_5;
                                                }
                                                try {
                                                    v31_1.clear();
                                                    v20_2.delete(0, v20_2.length());
                                                    v12_5 = v14_6;
                                                    v4_30 = v5_12;
                                                    v5_12 = v4_35;
                                                } catch (android.database.sqlite.SQLiteDatabase v12) {
                                                    v12_5 = v14_6;
                                                }
                                                v16_2 = v12_5;
                                                v12_5 = v10_7;
                                                v10_7 = v7_29;
                                                v7_29 = v6_30;
                                                v6_30 = v5_12;
                                                v5_12 = v4_30;
                                            } else {
                                                android.database.sqlite.SQLiteDatabase v14_7;
                                                if (v5_12 != 0) {
                                                    v14_7 = v16_2;
                                                } else {
                                                    v14_7 = v4_30.getLong("seq");
                                                }
                                                v5_12 = v6_30;
                                                v6_30 = v7_29;
                                                v7_29 = v10_7;
                                                v10_7 = v12_5;
                                                v12_5 = v14_7;
                                            }
                                            String v34_6 = v5_12;
                                            v5_12 = v4_30;
                                            v4_30 = v34_6;
                                        } catch (String v4) {
                                            v4_30 = v6_30;
                                            v6_30 = v7_29;
                                            v7_29 = v10_7;
                                            v10_7 = v12_5;
                                            v12_5 = v16_2;
                                        }
                                    }
                                } else {
                                    v14_1 = v6_29;
                                    v16_1 = v8_4;
                                    v20_0 = v10_6;
                                    v22_0 = v12_4;
                                    v12_3 = v4_26;
                                    v13_1 = v5_11;
                                }
                            }
                            v4_26 = v6_30;
                            v5_11 = v7_29;
                            v6_29 = v8_5;
                            v9_4 = v5_12;
                            v8_4 = v10_7;
                            v10_6 = v12_5;
                            v12_4 = v16_2;
                        }
                        try {
                            int v5_18 = com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.oldDB.query("info", 0, 0, 0, 0, 0, 0);
                            try {
                                if (v5_18.moveToFirst()) {
                                    v31_1.put("api_key", v29);
                                    v31_1.put("uuid", v28);
                                    v31_1.put("created_time", Long.valueOf(v26_1));
                                    v31_1.put("opt_out", Boolean.valueOf(v25));
                                    v31_1.put("push_disabled", Integer.valueOf(v5_18.getInt(v5_18.getColumnIndexOrThrow("push_disabled"))));
                                    v31_1.put("sender_id", v5_18.getString(v5_18.getColumnIndexOrThrow("sender_id")));
                                    v31_1.put("registration_id", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_id")));
                                    v31_1.put("registration_version", v5_18.getString(v5_18.getColumnIndexOrThrow("registration_version")));
                                    if (v24_1 == 0) {
                                        v31_1.put("customer_id", v28);
                                        v31_1.put("user_type", "anonymous");
                                    } else {
                                        v31_1.put("customer_id", v24_1);
                                        v31_1.put("user_type", "known");
                                    }
                                    v31_1.put("fb_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("fb_attribution")));
                                    v31_1.put("play_attribution", v5_18.getString(v5_18.getColumnIndexOrThrow("play_attribution")));
                                    v31_1.put("first_android_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_android_id")));
                                    v31_1.put("first_advertising_id", v5_18.getString(v5_18.getColumnIndexOrThrow("first_advertising_id")));
                                    v31_1.put("app_version", com.localytics.android.DatapointHelper.getAppVersion(v32));
                                    v31_1.put("package_name", v5_18.getString(v5_18.getColumnIndexOrThrow("package_name")));
                                    v31_1.put("current_session_uuid", v13_1);
                                    org.json.JSONArray v6_74 = v5_18.getLong(v5_18.getColumnIndexOrThrow("last_session_open_time"));
                                    v31_1.put("last_session_open_time", Long.valueOf(v6_74));
                                    v31_1.put("last_session_close_time", Long.valueOf(v14_1));
                                    v31_1.put("next_header_number", Long.valueOf(v22_0));
                                    v31_1.put("next_session_number", Long.valueOf((1 + v20_0)));
                                    if (v14_1 <= v6_74) {
                                        if (v16_1 != null) {
                                            String v4_68 = new android.content.ContentValues();
                                            v4_68.put("blob", v16_1);
                                            v4_68.put("upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                            p38.insert("events", 0, v4_68);
                                        }
                                    } else {
                                        v31_1.put("queued_close_session_blob", v16_1);
                                        v31_1.put("queued_close_session_blob_upload_format", Integer.valueOf(com.localytics.android.AnalyticsProvider$EventsV3Columns$UploadFormat.V2.getValue()));
                                        this.mScreensFromV2 = v12_3;
                                    }
                                    p38.insert("info", 0, v31_1);
                                    v31_1.clear();
                                }
                            } catch (String v4_39) {
                                if (v5_18 != 0) {
                                    v5_18.close();
                                }
                                throw v4_39;
                            }
                            if (v5_18 != 0) {
                                v5_18.close();
                            }
                            com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.cleanUpOldDB();
                        } catch (String v4_39) {
                            v5_18 = v19_1;
                        }
                    } catch (String v4_22) {
                        v5_9 = v12_2;
                    }
                } catch (String v4_6) {
                    v5_2 = 0;
                }
            }
        } catch (String v4_85) {
            throw v4_85;
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.addScreens() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void addScreens(android.database.sqlite.SQLiteDatabase p6)
    {
        int v0_0 = 0;
        android.content.ContentValues v2_2 = new Object[2];
        v2_2[0] = "screens";
        v2_2[1] = "name";
        p6.execSQL(String.format("CREATE TABLE %s (%s TEXT NOT NULL)", v2_2));
        if ((this.mScreensFromV2 != null) && (this.mScreensFromV2.length() > 0)) {
            while (v0_0 < this.mScreensFromV2.length()) {
                try {
                    String v1_8 = this.mScreensFromV2.getString(v0_0);
                } catch (int v0) {
                    com.localytics.android.Localytics$Log.e("Bad data in v2 db. Non-string type in screen flow");
                    break;
                }
                if (!android.text.TextUtils.isEmpty(v1_8)) {
                    android.content.ContentValues v2_4 = new android.content.ContentValues();
                    v2_4.put("name", v1_8);
                    p6.insert("screens", 0, v2_4);
                }
                v0_0++;
            }
        }
        return;
    }

Method com.localytics.android.AnalyticsProvider$AnalyticsDatabaseHelper.addFirstOpenEventToInfoTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    protected void addFirstOpenEventToInfoTable(android.database.sqlite.SQLiteDatabase p5)
    {
        Object[] v1_1 = new Object[2];
        v1_1[0] = "info";
        v1_1[1] = "first_open_event_blob";
        p5.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_1));
        return;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.a.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        if (p3 != 11) {
            p2.execSQL(com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.a("job_holder"));
            p2.execSQL(com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.a("job_holder_tags"));
            p2.execSQL("DROP INDEX IF EXISTS TAG_NAME_INDEX");
            this.onCreate(p2);
        } else {
            this.a(p2);
        }
        return;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p9)
    {
        com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper$b[] v2_2 = new com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper$b[11];
        v2_2[0] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.b;
        v2_2[1] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.c;
        v2_2[2] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.d;
        v2_2[3] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.e;
        v2_2[4] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.f;
        v2_2[5] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.g;
        v2_2[6] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.h;
        v2_2[7] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.i;
        v2_2[8] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.j;
        v2_2[9] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.k;
        v2_2[10] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.l;
        p9.execSQL(com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.a("job_holder", com.birbit.android.jobqueue.persistentQueue.sqlite.a.a, v2_2));
        com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper$b[] v2_0 = new com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper$b[2];
        v2_0[0] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.n;
        v2_0[1] = com.birbit.android.jobqueue.persistentQueue.sqlite.a.o;
        p9.execSQL(com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.a("job_holder_tags", com.birbit.android.jobqueue.persistentQueue.sqlite.a.m, v2_0));
        p9.execSQL(new StringBuilder().append("CREATE INDEX IF NOT EXISTS TAG_NAME_INDEX ON job_holder_tags(").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.o.a).append(")").toString());
        return;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p3)
    {
        p3.execSQL(new StringBuilder().append("ALTER TABLE job_holder ADD COLUMN ").append(ark>com.birbit.android.jobqueue.persistentQueue.sqlite.aark>.l.a).append(" ").append(ark>com.birbit.android.jobqueue.persistentQueue.sqlite.aark>.l.b).toString());
        return;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueue.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void c()
    {
        this.c.execSQL(this.d.e);
        return;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.j() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void j()
    {
        this.g.execSQL("VACUUM");
        return;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.i() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void i()
    {
        this.g.execSQL("DELETE FROM job_holder");
        this.g.execSQL("DELETE FROM job_holder_tags");
        this.j();
        return;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(long p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.g;
        String v1_2 = new StringBuilder().append("UPDATE job_holder SET ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.g.a).append("=?").toString();
        Object[] v2_2 = new Object[1];
        v2_2[0] = Long.valueOf(p6);
        v0.execSQL(v1_2, v2_2);
        return;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider$DatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p3, int p4, int p5)
    {
        com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.logger.info("onUpgrade");
        if (p4 < 3) {
            p3.execSQL("DROP TABLE if exists uploads_table");
            p3.execSQL("ALTER TABLE receipts_table ADD COLUMN r_item_type INTEGER NOT NULL DEFAULT 0");
            p3.execSQL("ALTER TABLE receipts_table ADD COLUMN r_fail_count INTEGER NOT NULL DEFAULT 0");
        }
        return;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider$DatabaseHelper.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p3)
    {
        super.onOpen(p3);
        com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.logger.info("onOpen");
        if (!p3.isReadOnly()) {
            com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.logger.info("onConfigure");
            p3.execSQL("PRAGMA foreign_keys = ON;");
            p3.execSQL("PRAGMA encoding=\"UTF-8\";");
        }
        return;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider$DatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.logger.info("onCreate");
        p3.execSQL("CREATE TABLE IF NOT EXISTS receipts_table( r_id INTEGER PRIMARY KEY AUTOINCREMENT, r_json BLOB NOT NULL, r_item_type INTEGER NOT NULL DEFAULT 0, r_fail_count INTEGER NOT NULL DEFAULT 0 )");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p7, int p8, int p9)
    {
        Object[] v2 = new Object[2];
        v2[0] = Integer.valueOf(p8);
        v2[1] = Integer.valueOf(p9);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("onUpgrade from %d to %d", v2);
        if (p8 < 2) {
            p7.execSQL("ALTER TABLE sessions ADD COLUMN session_output_path TEXT");
            p7.execSQL("ALTER TABLE sessions ADD COLUMN session_output_data TEXT");
        }
        if (p8 <= 3) {
            p7.execSQL("ALTER TABLE sessions ADD COLUMN session_output_width INTEGER NOT NULL DEFAULT 0");
            p7.execSQL("ALTER TABLE sessions ADD COLUMN session_output_height INTEGER NOT NULL DEFAULT 0");
        }
        if (p8 <= 4) {
            p7.execSQL("ALTER TABLE sessions ADD COLUMN session_input_width INTEGER NOT NULL DEFAULT 0");
            p7.execSQL("ALTER TABLE sessions ADD COLUMN session_input_height INTEGER NOT NULL DEFAULT 0");
        }
        if (p8 <= 5) {
            p7.execSQL("ALTER TABLE sessions ADD COLUMN session_last_action INTEGER NOT NULL DEFAULT 0");
        }
        if (p8 <= 6) {
            com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ItemsColumnns.upgradeTo6(p7);
        }
        return;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p10)
    {
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("onCreate");
        String v1_0 = new Object[13];
        v1_0[0] = "sessions";
        v1_0[1] = "session_id";
        v1_0[2] = "session_data";
        v1_0[3] = "session_mp";
        v1_0[4] = "session_orientation";
        v1_0[5] = "session_creation_time";
        v1_0[6] = "session_output_path";
        v1_0[7] = "session_output_data";
        v1_0[8] = "session_output_width";
        v1_0[9] = "session_output_height";
        v1_0[10] = "session_input_width";
        v1_0[11] = "session_input_height";
        v1_0[12] = "session_last_action";
        String v0_0 = String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL DEFAULT (strftime(\'%%s\', datetime(current_timestamp))),%s TEXT, %s TEXT, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL DEFAULT 0,%s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL DEFAULT 0,%s INTEGER NOT NULL DEFAULT 0)", v1_0);
        com.adobe.android.common.log.LoggerFactory$Logger v2_14 = new Object[9];
        v2_14[0] = "actions";
        v2_14[1] = "action_id";
        v2_14[2] = "action_session_id";
        v2_14[3] = "action_bitmap_ptr";
        v2_14[4] = "action_action";
        v2_14[5] = "action_recipe";
        v2_14[6] = "action_session_id";
        v2_14[7] = "sessions";
        v2_14[8] = "session_id";
        String v1_3 = String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s BLOB, %s BLOB, FOREIGN KEY(%s) REFERENCES %s(%s) ON DELETE CASCADE)", v2_14);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ItemsColumnns.createTable(p10);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info(v0_0);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info(v1_3);
        p10.execSQL(v0_0);
        p10.execSQL(v1_3);
        return;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.onConfigure() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onConfigure(android.database.sqlite.SQLiteDatabase p3)
    {
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("onConfigure");
        if (!p3.isReadOnly()) {
            p3.execSQL("PRAGMA foreign_keys=ON;");
            p3.execSQL("PRAGMA encoding=\"UTF-8\";");
        }
        return;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ItemsColumnns.createTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public static void createTable(android.database.sqlite.SQLiteDatabase p8)
    {
        String v1_3 = new Object[6];
        v1_3[0] = "items";
        v1_3[1] = "items_id";
        v1_3[2] = "items_pack_id";
        v1_3[3] = "items_item_id";
        v1_3[4] = "items_pack_display_name";
        v1_3[5] = "items_item_display_name";
        String v0_0 = String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL , %s TEXT NOT NULL, %s TEXT, %s TEXT)", v1_3);
        Object[] v2_4 = new Object[3];
        v2_4[0] = "items";
        v2_4[1] = "items_pack_id";
        v2_4[2] = "items_item_id";
        String v1_1 = String.format("CREATE INDEX IF NOT EXISTS idx ON %s(%s, %s)", v2_4);
        p8.execSQL(v0_0);
        p8.execSQL(v1_1);
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.VersionColumns.create() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void create(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE IF NOT EXISTS version_table (version_id INTEGER PRIMARY KEY AUTOINCREMENT, version_versionKey VARCHAR(255) NOT NULL, version_assetsBaseURL VARCHAR(255) NOT NULL );");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PermissionColumns.create() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void create(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS permission_table (perm_id INTEGER PRIMARY KEY AUTOINCREMENT, perm_value TEXT, perm_hash TEXT NOT NULL DEFAULT 0);");
        p2.execSQL(new StringBuilder().append(" INSERT OR REPLACE INTO permission_table (perm_value, perm_hash) VALUES ( \'").append(com.adobe.creativesdk.aviary.internal.cds.Cds$Permission.hires.name()).append(",").append(com.adobe.creativesdk.aviary.internal.cds.Cds$Permission.whitelabel.name()).append("\', \'0\' );").toString());
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksItemsColumns.upgradeTo13() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void upgradeTo13(android.database.sqlite.SQLiteDatabase p6)
    {
        Object[] v1_2 = new Object[2];
        v1_2[0] = "items_table";
        v1_2[1] = "items_table";
        p6.execSQL(String.format("ALTER TABLE %s RENAME TO old_%s", v1_2));
        com.adobe.creativesdk.aviary.internal.cds.PacksItemsColumns.create(p6);
        Object[] v1_1 = new Object[14];
        v1_1[0] = "items_table";
        v1_1[1] = "item_id";
        v1_1[2] = "item_identifier";
        v1_1[3] = "item_displayName";
        v1_1[4] = "item_contentPath";
        v1_1[5] = "item_options";
        v1_1[6] = "item_packId";
        v1_1[7] = "item_id";
        v1_1[8] = "item_identifier";
        v1_1[9] = "item_displayName";
        v1_1[10] = "item_contentPath";
        v1_1[11] = "item_options";
        v1_1[12] = "item_packId";
        v1_1[13] = "items_table";
        p6.execSQL(String.format("INSERT INTO %s(%s, %s, %s, %s, %s, %s) SELECT %s, %s, %s, %s, %s, %s FROM old_%s;", v1_1));
        Object[] v1_3 = new Object[1];
        v1_3[0] = "items_table";
        p6.execSQL(String.format("DROP TABLE IF EXISTS old_%s", v1_3));
        com.adobe.creativesdk.aviary.internal.cds.PacksItemsColumns.createOrUpdateTrigger(p6);
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksItemsColumns.createOrUpdateTrigger() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void createOrUpdateTrigger(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE trigger if not exists update_recent_items_trigger AFTER UPDATE OF item_lastUsed ON items_table BEGIN  UPDATE items_table SET item_usedCount=item_usedCount+1  WHERE item_id=OLD.item_id; END;");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksItemsColumns.create() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void create(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE IF NOT EXISTS items_table (item_id INTEGER PRIMARY KEY AUTOINCREMENT, item_identifier VARCHAR(255) NOT NULL, item_displayName VARCHAR(255), item_contentPath VARCHAR(255), item_options BLOB, item_packId INTEGER NOT NULL, item_usedCount INTEGER NOT NULL DEFAULT 0, item_lastUsed DATETIME DEFAULT (datetime(current_timestamp)), FOREIGN KEY(item_packId) REFERENCES packs_table(pack_id) ON DELETE CASCADE);");
        com.adobe.creativesdk.aviary.internal.cds.PacksItemsColumns.createOrUpdateTrigger(p1);
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.upgradeTo8() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void upgradeTo8(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_detailImageLocalPath VARCHAR(255) DEFAULT \'\'");
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_featureImageLocalPath VARCHAR(255) DEFAULT \'\'");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.upgradeTo7() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void upgradeTo7(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_author VARCHAR(255) DEFAULT \'\'");
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_authorHyperlink VARCHAR(255) DEFAULT \'\'");
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_socialMediaString VARCHAR(255) DEFAULT \'\'");
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_shopBackgroundColor VARCHAR(255) DEFAULT \'\'");
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_featureImageURL VARCHAR(255) DEFAULT \'\'");
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_featureImageVersion VARCHAR(255) DEFAULT \'\'");
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_detailImageURL VARCHAR(255) DEFAULT \'\'");
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_detailImageVersion VARCHAR(255) DEFAULT \'\'");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.upgradeTo11() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void upgradeTo11(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("UPDATE content_table SET content_isFree=2 WHERE content_isFreeWithLogin=1");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.upgradeTo10() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void upgradeTo10(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("ALTER TABLE content_table ADD COLUMN content_isFreeWithLogin INTEGER DEFAULT 0");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.create() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void create(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE IF NOT EXISTS content_table (content_id INTEGER PRIMARY KEY AUTOINCREMENT, content_packId INTEGER NOT NULL, content_contentVersion VARCHAR(255) NOT NULL, content_previewVersion VARCHAR(255) NOT NULL, content_iconVersion VARCHAR(255) NOT NULL,content_previewURL VARCHAR(255) NOT NULL, content_contentURL VARCHAR(255) NOT NULL, content_iconUrl VARCHAR(255) NOT NULL, content_isFree INTEGER DEFAULT 0, content_displayName VARCHAR(255) NOT NULL, content_displayDescription VARCHAR(255), content_downloadRequested INTEGER NOT NULL DEFAULT 0, content_purchased INTEGER NOT NULL DEFAULT 0, content_previewPath VARCHAR(255), content_contentPath VARCHAR(255), content_author VARCHAR(255) DEFAULT \'\', content_authorHyperlink VARCHAR(255) DEFAULT \'\', content_socialMediaString VARCHAR(255) DEFAULT \'\', content_shopBackgroundColor VARCHAR(255) DEFAULT \'\', content_featureImageURL VARCHAR(255) DEFAULT \'\', content_featureImageVersion VARCHAR(255) DEFAULT \'\', content_detailImageURL VARCHAR(255) DEFAULT \'\', content_detailImageVersion VARCHAR(255) DEFAULT \'\', content_detailImageLocalPath VARCHAR(255) DEFAULT \'\', content_featureImageLocalPath VARCHAR(255) DEFAULT \'\', content_iconPath VARCHAR(255), content_iconNeedDownload INTEGER NOT NULL DEFAULT 0, content_previewNeedDownload INTEGER NOT NULL DEFAULT 0, content_contentNeedDownload INTEGER NOT NULL DEFAULT 0, content_installDate DATETIME NOT NULL DEFAULT (datetime(current_timestamp)), content_numItems INTEGER DEFAULT 0, FOREIGN KEY(content_packId) REFERENCES packs_table(pack_id) ON DELETE CASCADE);");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksColumns.upgradeTo14() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void upgradeTo14(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("ALTER TABLE packs_table ADD COLUMN pack_previouslyInstalled INTEGER DEFAULT 0");
        p1.execSQL("UPDATE packs_table SET pack_previouslyInstalled=(SELECT content_table.content_purchased FROM content_table WHERE content_table.content_packId=pack_id) WHERE EXISTS(SELECT * from packs_table, content_table WHERE packs_table.pack_id=content_table.content_packId)");
        p1.execSQL("UPDATE packs_table SET pack_visible=1 WHERE pack_previouslyInstalled=1");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PacksColumns.create() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void create(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE IF NOT EXISTS packs_table (pack_id INTEGER PRIMARY KEY AUTOINCREMENT, pack_identifier VARCHAR(255) NOT NULL UNIQUE, pack_type VARCHAR(255) NOT NULL, pack_finishedDownloading INTEGER NOT NULL DEFAULT 0, pack_markedForDeletion INTEGER NOT NULL DEFAULT 0, pack_visible INTEGER NOT NULL DEFAULT 1, pack_displayOrder INTEGER NOT NULL DEFAULT 0 ,pack_creationDate DATETIME DEFAULT (datetime(\'now\',\'localtime\')), pack_previouslyInstalled INTEGER DEFAULT 0, pack_versionKey VARCHAR(255) NOT NULL);");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.MessageContentColumn.create() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void create(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE IF NOT EXISTS messages_content_table ( msgcnt_id INTEGER PRIMARY KEY AUTOINCREMENT, msgcnt_messageId INTEGER NOT NULL, msgcnt_contentIdentifier VARCHAR(255), msgcnt_beginDate DATETIME, msgcnt_endDate DATETIME, msgcnt_contentURL TEXT NOT NULL, msgcnt_actionButton VARCHAR(255), msgcnt_dismissButton VARCHAR(255) NOT NULL, msgcnt_layoutStyle VARCHAR(255), msgcnt_paragraph TEXT NOT NULL, msgcnt_showNewBanner INTEGER NOT NULL DEFAULT 1, msgcnt_contentPath TEXT DEFAULT NULL, msgcnt_visited INTEGER NOT NULL DEFAULT 0, msgcnt_title VARCHAR(255),  FOREIGN KEY( msgcnt_messageId ) REFERENCES messages_table( msg_id ) ON DELETE CASCADE );");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.MessageColumns.create() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void create(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE IF NOT EXISTS messages_table (msg_id INTEGER PRIMARY KEY AUTOINCREMENT, msg_type VARCHAR(255) NOT NULL, msg_identifier VARCHAR(255) NOT NULL UNIQUE, msg_versionKey VARCHAR(255) NOT NULL);");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.DownloadPacksColumns.create() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    static void create(android.database.sqlite.SQLiteDatabase p1)
    {
        p1.execSQL("CREATE TABLE IF NOT EXISTS packs_download_table (downloadId INTEGER PRIMARY KEY AUTOINCREMENT, download_packId INTEGER NOT NULL UNIQUE, download_refId INTEGER, download_status INTEGER DEFAULT 0, FOREIGN KEY(download_packId) REFERENCES packs_table(pack_id) ON DELETE CASCADE);");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsProvider.clearAll() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    android.os.Bundle clearAll(android.os.Bundle p4)
    {
        if (com.adobe.creativesdk.aviary.internal.utils.PackageManagerUtils.isDebugVersion(this.getContext())) {
            android.database.sqlite.SQLiteDatabase v0_3 = com.adobe.creativesdk.aviary.internal.cds.CdsProvider.mDbHelper.getWritableDatabase();
            v0_3.execSQL("DELETE FROM packs_table");
            v0_3.execSQL("DELETE FROM version_table");
            v0_3.execSQL("DELETE FROM content_table");
            v0_3.execSQL("DELETE FROM content_table");
            v0_3.execSQL("DELETE FROM messages_table");
        }
        return 0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p6, int p7, int p8)
    {
        if (!p6.isReadOnly()) {
            Object[] v2_1 = new Object[2];
            v2_1[0] = Integer.valueOf(p7);
            v2_1[1] = Integer.valueOf(p8);
            com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.info("onUpgrade: %d >> %d", v2_1);
            if (p7 <= 3) {
                com.adobe.creativesdk.aviary.internal.cds.PermissionColumns.create(p6);
            }
            if (p7 <= 6) {
                com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.upgradeTo7(p6);
            }
            if (p7 <= 7) {
                com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.upgradeTo8(p6);
            }
            if (p7 <= 9) {
                com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.upgradeTo10(p6);
            }
            if (p7 <= 10) {
                p6.execSQL("DROP TABLE IF EXISTS subscription_table");
                p6.execSQL("DROP TABLE IF EXISTS subscriptions_content_table");
                com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.upgradeTo11(p6);
            }
            if (p7 <= 12) {
                com.adobe.creativesdk.aviary.internal.cds.PacksItemsColumns.upgradeTo13(p6);
            }
            if (p7 <= 13) {
                com.adobe.creativesdk.aviary.internal.cds.PacksColumns.upgradeTo14(p6);
            }
            if (p7 <= 14) {
                p6.execSQL("DROP TABLE IF EXISTS premium_table");
                p6.execSQL("DROP TABLE IF EXISTS premium_packs_table");
            }
        } else {
            com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.warn("Could not upgrade table, db is read only");
        }
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.info("onCreate");
        com.adobe.creativesdk.aviary.internal.cds.VersionColumns.create(p3);
        com.adobe.creativesdk.aviary.internal.cds.PacksColumns.create(p3);
        com.adobe.creativesdk.aviary.internal.cds.PacksContentColumns.create(p3);
        com.adobe.creativesdk.aviary.internal.cds.PacksItemsColumns.create(p3);
        com.adobe.creativesdk.aviary.internal.cds.MessageColumns.create(p3);
        com.adobe.creativesdk.aviary.internal.cds.MessageContentColumn.create(p3);
        com.adobe.creativesdk.aviary.internal.cds.DownloadPacksColumns.create(p3);
        com.adobe.creativesdk.aviary.internal.cds.PermissionColumns.create(p3);
        p3.execSQL("CREATE TRIGGER notify_download_finished AFTER UPDATE OF content_iconPath ON content_table BEGIN UPDATE packs_table SET pack_finishedDownloading = 1 WHERE packs_table.pack_id = OLD.content_packId; END;");
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.onConfigure() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onConfigure(android.database.sqlite.SQLiteDatabase p3)
    {
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.info("onConfigure");
        if (!p3.isReadOnly()) {
            p3.execSQL("PRAGMA foreign_keys=ON;");
            p3.execSQL("PRAGMA encoding=\"UTF-8\";");
            p3.execSQL("PRAGMA page_size=4096;");
            p3.execSQL("PRAGMA cache_size=5000;");
        }
        return;
    }

Method ru.yandex.disk.provider.z.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    protected int a(android.database.sqlite.SQLiteDatabase p2, android.net.Uri p3, String p4, String[] p5)
    {
        return p2.delete("invites", p4, p5);
    }

Method ru.yandex.disk.provider.e.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int a(android.net.Uri p3, String p4, String[] p5)
    {
        int v0_2 = this.a.getWritableDatabase().delete("CREDENTIAL", p4, p5);
        this.a(p3);
        return v0_2;
    }

Method ru.yandex.disk.provider.au.k() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void k(android.database.sqlite.SQLiteDatabase p4)
    {
        p4.delete("DISK_QUEUE", "dest_dir LIKE \'/photostream\' AND is_dir = 1", 0);
        return;
    }

Method ru.yandex.disk.provider.au.j() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void j(android.database.sqlite.SQLiteDatabase p4)
    {
        p4.delete("DISK_QUEUE", "dest_dir LIKE \'/photostream/%\'", 0);
        return;
    }

Method ru.yandex.disk.provider.au.i() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void i(android.database.sqlite.SQLiteDatabase p4)
    {
        p4.delete("DISK_QUEUE", "SIZE = 0", 0);
        return;
    }

Method ru.yandex.disk.provider.ao.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int a(android.net.Uri p3, String p4, String[] p5)
    {
        int v0_2 = this.a.getWritableDatabase().delete("PLAIN_SETTINGS_TABLE", p4, p5);
        this.a(p3);
        return v0_2;
    }

Method ru.yandex.disk.provider.ab.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    protected int a(android.database.sqlite.SQLiteDatabase p3, android.net.Uri p4, String p5, String[] p6)
    {
        return p3.delete("DISK_QUEUE", this.a(p5, p4), p6);
    }

Method ru.yandex.disk.download.q.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(long p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.h();
        String[] v3_2 = new Object[1];
        v3_2[0] = Long.valueOf(p8);
        v0.delete("queue", "taskId = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public boolean a(com.yandex.b.a p8)
    {
        int v0 = 1;
        int v2_0 = this.h();
        String v3_1 = new StringBuilder().append("type = ? AND serverPath = ? OR serverPath").append(ru.yandex.disk.q.b.a("?/%")).toString();
        String[] v4_2 = new Object[3];
        v4_2[0] = ru.yandex.disk.download.DownloadQueueItem$Type.SYNC;
        v4_2[1] = p8.d();
        v4_2[2] = ru.yandex.disk.q.b.b(p8.d());
        if (v2_0.delete("queue", v3_1, ru.yandex.disk.util.h.a(v4_2)) <= 0) {
            v0 = 0;
        }
        return v0;
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(ru.yandex.disk.download.DownloadQueueItem$Type p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.h();
        String[] v3_1 = new Object[1];
        v3_1[0] = p6;
        v0.delete("queue", "type = ?", ru.yandex.disk.util.h.a(v3_1));
        return;
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(com.yandex.b.a p7, boolean p8)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.h();
        String v0_1 = new StringBuilder().append("serverPath = ? OR serverPath").append(ru.yandex.disk.q.b.a("?/%")).toString();
        if (p8) {
            v0_1 = new StringBuilder().append("( ").append(v0_1).append(") ").append(" AND ").append("type").append(" != ").append(ru.yandex.disk.download.DownloadQueueItem$Type.AUDIO.code()).toString();
        }
        String[] v3_2 = new String[2];
        v3_2[0] = p7.d();
        v3_2[1] = ru.yandex.disk.q.b.b(p7.d());
        v1.delete("queue", v0_1, ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(long p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.h();
        String[] v3_2 = new Object[1];
        v3_2[0] = Long.valueOf(p8);
        v0.delete("queue", "id = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.common.clid.e.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(String p5)
    {
        this.l();
        try {
            this.n();
            this.l = 0;
        } catch (int v0_8) {
            this.m();
            throw v0_8;
        }
        if (this.n != null) {
            this.n.remove(p5);
        }
        String v1_1 = this.b();
        if ((v1_1 == null) || (!this.a(v1_1))) {
            this.m = 1;
        } else {
            try {
                int v0_3 = new String[1];
                v0_3[0] = p5;
                v1_1.delete("apps", "application=?", v0_3);
                v1_1.delete("clids", "application=?", v0_3);
                v1_1.delete("entry_points", "application=?", v0_3);
                v1_1.setTransactionSuccessful();
            } catch (int v0_5) {
                v1_1.endTransaction();
                throw v0_5;
            } catch (int v0_6) {
                ru.yandex.common.clid.e.a("removeApplication()", v0_6);
                this.m = 1;
            }
            v1_1.endTransaction();
        }
        this.m();
        return;
    }

Method ru.yandex.common.clid.e.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void a(android.database.sqlite.SQLiteDatabase p6, ru.yandex.common.clid.AppEntryPoint p7)
    {
        String[] v2_1 = new String[2];
        v2_1[0] = Integer.toString(p7.a().ordinal());
        v2_1[1] = p7.b();
        p6.delete("entry_points", "entry_point_type=? AND entry_point_id=?", v2_1);
        return;
    }

Method com.yandex.metrica.impl.ob.ck.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public declared_synchronized int b(int p8)
    {
        Throwable v0_0 = 0;
        if (p8 > 0) {
            try {
                Exception v1_1 = this.a.getWritableDatabase();
                String[] v4_1 = new String[1];
                v4_1[0] = String.valueOf(p8);
                v0_0 = v1_1.delete("l_dat", com.yandex.metrica.impl.ob.cf$y.d, v4_1);
            } catch (Throwable v0_1) {
                throw v0_1;
            } catch (Exception v1) {
            }
            if (v0_0 > null) {
                this.c(v0_0);
            }
        }
        return v0_0;
    }

Method com.yandex.metrica.impl.ob.ck.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public declared_synchronized int a(long p8)
    {
        try {
            Exception v1_1 = this.a.getWritableDatabase();
            String[] v4_1 = new String[1];
            v4_1[0] = String.valueOf(p8);
            Throwable v0_0 = v1_1.delete("l_dat", com.yandex.metrica.impl.ob.cf$y.c, v4_1);
        } catch (Throwable v0_1) {
            throw v0_1;
        } catch (Exception v1) {
            return v0_0;
        }
        if (v0_0 <= null) {
            return v0_0;
        } else {
            this.c(v0_0);
            return v0_0;
        }
    }

Method com.yandex.metrica.impl.ob.cj.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void a(android.content.ContentValues[] p10)
    {
        int v1_0 = 0;
        if (p10 != null) {
            try {
                Throwable v0_1 = this.f.a();
                try {
                    v0_1.beginTransaction();
                    com.yandex.metrica.impl.ob.cp v2_0 = p10.length;
                } catch (int v1_3) {
                    int v1_4 = v0_1;
                    Throwable v0_0 = v1_3;
                    com.yandex.metrica.impl.bl.a(v1_4);
                    this.f.a(v1_4);
                    throw v0_0;
                }
                while (v1_0 < v2_0) {
                    String v3_0 = p10[v1_0];
                    if (v3_0.getAsString("value") != null) {
                        v0_1.insertWithOnConflict(this.a(), 0, v3_0, 5);
                    } else {
                        String v3_1 = v3_0.getAsString("key");
                        String v4_4 = this.a();
                        int v6_2 = new String[1];
                        v6_2[0] = v3_1;
                        v0_1.delete(v4_4, "key = ?", v6_2);
                    }
                    v1_0++;
                }
                v0_1.setTransactionSuccessful();
                com.yandex.metrica.impl.bl.a(v0_1);
                this.f.a(v0_1);
            } catch (int v1_5) {
                v1_4 = v0_1;
                v0_0 = v1_5;
            } catch (int v1) {
                com.yandex.metrica.impl.bl.a(v0_1);
                this.f.a(v0_1);
            }
        }
        return;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(long p10, int p12, int p13)
    {
        java.util.concurrent.locks.Lock v0_0 = 0;
        if (p13 > 0) {
            this.c.lock();
            try {
                java.util.concurrent.atomic.AtomicLong v1_7;
                long v2_0 = this.d.getWritableDatabase();
                android.content.ContentValues v4_0 = new Object[7];
                v4_0[0] = "session_id";
                v4_0[1] = Long.toString(p10);
                v4_0[2] = "session_type";
                v4_0[3] = Integer.toString(p12);
                v4_0[4] = "id";
                v4_0[5] = "reports";
                v4_0[6] = Integer.toString((p13 - 1));
                String v3_0 = String.format(java.util.Locale.US, "%1$s = %2$s AND %3$s = %4$s AND %5$s <= (SELECT %5$s FROM %6$s WHERE %1$s = %2$s AND %3$s = %4$s ORDER BY %5$s ASC LIMIT %7$s, 1)", v4_0);
            } catch (java.util.concurrent.atomic.AtomicLong v1_5) {
                java.util.concurrent.atomic.AtomicLong v1_6 = 0;
                java.util.concurrent.locks.Lock v0_1 = v1_5;
                com.yandex.metrica.impl.bl.a(v1_6);
                this.c.unlock();
                throw v0_1;
            } catch (java.util.concurrent.atomic.AtomicLong v1) {
                com.yandex.metrica.impl.bl.a(v0_0);
                this.c.unlock();
            }
            if (!this.j.q().b()) {
                v1_7 = 0;
            } else {
                v1_6 = this.a(v3_0);
                try {
                    if ((v1_6 != null) && (v1_6.getCount() > 0)) {
                        v0_0 = new java.util.ArrayList(v1_6.getCount());
                        while (v1_6.moveToNext()) {
                            android.content.ContentValues v4_7 = new android.content.ContentValues();
                            android.database.DatabaseUtils.cursorRowToContentValues(v1_6, v4_7);
                            v0_0.add(v4_7);
                        }
                    }
                } catch (java.util.concurrent.locks.Lock v0_1) {
                } catch (java.util.concurrent.locks.Lock v0) {
                    v0_0 = v1_6;
                }
                Throwable v7_1 = v0_0;
                v0_0 = v1_6;
                v1_7 = v7_1;
            }
            try {
                long v2_1 = v2_0.delete("reports", v3_0, 0);
            } catch (java.util.concurrent.atomic.AtomicLong v1_9) {
                v1_6 = v0_0;
                v0_1 = v1_9;
            }
            if (v1_7 != null) {
                this.a(v1_7, "Event removed from db");
            }
            this.k.addAndGet(((long) (- v2_1)));
            com.yandex.metrica.impl.bl.a(v0_0);
            this.c.unlock();
        }
        return;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int a(long[] p9)
    {
        Throwable v1_0 = 0;
        int v0_0 = 0;
        this.c.lock();
        try {
            if (!com.yandex.metrica.impl.ob.cf.a.booleanValue()) {
                v0_0 = this.d.getWritableDatabase().delete("sessions", com.yandex.metrica.impl.ob.cf$ac.c, com.yandex.metrica.impl.bl.a(p9));
                this.c.unlock();
            } else {
                this.b.lock();
                try {
                    java.util.concurrent.locks.Lock v3_0 = this.d.getReadableDatabase();
                    StringBuffer v4_1 = new String[0];
                    android.database.Cursor v2_2 = v3_0.rawQuery(" SELECT DISTINCT id From sessions order by id asc ", v4_1);
                    try {
                        StringBuffer v4_3 = new StringBuffer();
                        v4_3.append("All sessions in db: ");
                    } catch (java.util.concurrent.locks.Lock v3_2) {
                        java.util.concurrent.locks.Lock v3_1 = v2_2;
                        android.database.Cursor v2_5 = v1_0;
                        Throwable v1_1 = v3_2;
                        this.b.unlock();
                        com.yandex.metrica.impl.bl.a(v3_1);
                        com.yandex.metrica.impl.bl.a(v2_5);
                        throw v1_1;
                    } catch (java.util.concurrent.locks.Lock v3) {
                        this.b.unlock();
                        com.yandex.metrica.impl.bl.a(v2_2);
                        com.yandex.metrica.impl.bl.a(v1_0);
                    }
                    while (v2_2.moveToNext()) {
                        v4_3.append(v2_2.getString(0)).append(", ");
                    }
                    String v5_3 = new String[0];
                    v1_0 = v3_0.rawQuery(" SELECT DISTINCT session_id From reports order by session_id asc ", v5_3);
                    try {
                        java.util.concurrent.locks.Lock v3_4 = new StringBuffer();
                        v3_4.append("All sessions in reports db: ");
                    } catch (java.util.concurrent.locks.Lock v3_6) {
                        v3_1 = v2_2;
                        v2_5 = v1_0;
                        v1_1 = v3_6;
                    }
                    while (v1_0.moveToNext()) {
                        v3_4.append(v1_0.getString(0)).append(", ");
                    }
                    this.b.unlock();
                    com.yandex.metrica.impl.bl.a(v2_2);
                    com.yandex.metrica.impl.bl.a(v1_0);
                } catch (android.database.Cursor v2_4) {
                    v3_1 = 0;
                    v1_1 = v2_4;
                    v2_5 = 0;
                } catch (android.database.Cursor v2) {
                    v2_2 = 0;
                }
            }
        } catch (int v0_1) {
            this.c.unlock();
            throw v0_1;
        } catch (Throwable v1) {
            this.c.unlock();
        }
        return v0_0;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    int a(android.database.sqlite.SQLiteDatabase p9)
    {
        try {
            int v4_4 = new Integer[com.yandex.metrica.impl.q.a.size()];
            Object[] v5_2 = com.yandex.metrica.impl.q.a.iterator();
            String v2_5 = 0;
        } catch (int v0_12) {
            com.yandex.metrica.YandexMetrica.getReporter(this.i, "20799a27-fa80-4b36-b2db-0f8141f24180").reportError("deleteExcessiveReports exception", v0_12);
            int v0_7 = 0;
            return v0_7;
        }
        while (v5_2.hasNext()) {
            int v3_1 = (v2_5 + 1);
            v4_4[v2_5] = Integer.valueOf(((com.yandex.metrica.impl.q$a) v5_2.next()).a());
            v2_5 = v3_1;
        }
        String v2_2 = ((System.currentTimeMillis() / 1000) - java.util.concurrent.TimeUnit.DAYS.toSeconds(14));
        Object[] v5_1 = new Object[8];
        v5_1[0] = "type";
        v5_1[1] = android.text.TextUtils.join(",", v4_4);
        v5_1[2] = "id";
        v5_1[3] = "reports";
        v5_1[4] = "session_id";
        v5_1[5] = "number";
        v5_1[6] = Integer.valueOf(10);
        v5_1[7] = Long.valueOf(v2_2);
        v0_7 = p9.delete("reports", String.format("%1$s NOT IN (%2$s) AND (%3$s IN (SELECT %3$s FROM %4$s ORDER BY %5$s, %6$s LIMIT (SELECT count() FROM %4$s) / %7$s ) OR %5$s < %8$s )", v5_1), 0);
        return v0_7;
    }

Method com.yandex.datasync.internal.database.sql.b.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int b(String p2, String p3, String[] p4)
    {
        return this.a.delete(p2, p3, p4);
    }

Method com.yandex.auth.sync.AccountProvider.delete() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int delete(android.net.Uri p4, String p5, String[] p6)
    {
        switch (com.yandex.auth.sync.AccountProvider.d.match(p4)) {
            case 0:
                return this.e.getWritableDatabase().delete("account", 0, 0);
            default:
                throw new UnsupportedOperationException(new StringBuilder("try to delete to ").append(p4).append(" values ").append(p5).toString());
        }
    }

Method com.yandex.auth.db.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final declared_synchronized void a(String p5, String p6)
    {
        try {
            Throwable v0_1 = new String[2];
            v0_1[0] = p5;
            v0_1[1] = p6;
            this.getWritableDatabase().delete("token", "login==? AND clientId==?", v0_1);
            return;
        } catch (Throwable v0_2) {
            throw v0_2;
        }
    }

Method com.yandex.auth.db.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final declared_synchronized void a(String p5)
    {
        try {
            Throwable v0_0 = this.getWritableDatabase();
            String[] v2_1 = new String[1];
            v2_1[0] = p5;
            v0_0.delete("token", "token==?", v2_1);
            return;
        } catch (Throwable v0_1) {
            throw v0_1;
        }
    }

Method com.yandex.auth.db.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void a(com.yandex.auth.login.x p9, String p10, String p11)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getWritableDatabase();
        String v1_0 = ark>com.yandex.auth.db.bark>.b(p11);
        int v3_2 = new String[1];
        v3_2[0] = String.valueOf(new java.util.Date().getTime());
        v0.delete("token", "expires<?", v3_2);
        android.content.ContentValues v4_2 = new android.content.ContentValues();
        v4_2.put("clientId", p9.a());
        v4_2.put("login", p10);
        v4_2.put("token", p9.c);
        if (com.yandex.auth.util.s.a(p9.d) != null) {
            v4_2.put("expires", Long.valueOf(com.yandex.auth.util.s.a(p9.d).getTime()));
        }
        if (v1_0 != null) {
            v4_2.put("xTokenHash", v1_0);
        }
        v4_2.put("type", p9.e);
        v0.insert("token", 0, v4_2);
        return;
    }

Method com.yandex.auth.db.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    static synthetic void a(ark>com.yandex.auth.db.bark> p6, String p7, java.util.List p8)
    {
        int v1_0 = p6.getWritableDatabase();
        try {
            String v2_0 = new StringBuilder().append(p7).append("==?").toString();
            java.util.Iterator v3 = p8.iterator();
        } catch (Throwable v0_1) {
            p6.b = 0;
            throw v0_1;
        }
        while (v3.hasNext()) {
            String[] v4_1 = new String[1];
            v4_1[0] = ((String) v3.next());
            v1_0.delete("token", v2_0, v4_1);
        }
        try {
            p6.b = 0;
            return;
        } catch (Throwable v0_5) {
            throw v0_5;
        }
    }

Method com.yandex.auth.db.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final boolean a(android.accounts.Account p9)
    {
        int v0 = 1;
        int v2_1 = this.getWritableDatabase();
        new StringBuilder("Removing account \'").append(p9.name).append("\' from DB");
        try {
            String[] v5_1 = new String[1];
            v5_1[0] = p9.name;
        } catch (int v0) {
            v0 = 0;
            return v0;
        }
        if (v2_1.delete("account", "name = ?", v5_1) <= 0) {
            v0 = 0;
            return v0;
        } else {
            return v0;
        }
    }

Method ru.yandex.disk.trash.u.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b()
    {
        this.d().delete("TRASH", 0, 0);
        return;
    }

Method ru.yandex.disk.trash.u.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(com.yandex.b.a p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.d();
        String[] v3_1 = new Object[1];
        v3_1[0] = p6;
        v0.delete("TRASH", "path = ?", ru.yandex.disk.util.h.a(v3_1));
        this.b(p6);
        return;
    }

Method ru.yandex.disk.provider.l.q() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void q(com.yandex.b.a p5)
    {
        this.a().delete("DISK", "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(p5));
        return;
    }

Method ru.yandex.disk.provider.l.p() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int p()
    {
        return this.a().delete("DISK", "ROW_TYPE = 2", 0);
    }

Method ru.yandex.disk.provider.l.n() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void n()
    {
        this.a().delete("DISK", 0, 0);
        return;
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(com.yandex.b.a p5)
    {
        this.a().delete("DISK", ark>ru.yandex.disk.provider.lark>.f, ru.yandex.disk.q.b.a(p5));
        return;
    }

Method ru.yandex.disk.provider.al.e() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void e(android.database.sqlite.SQLiteDatabase p6)
    {
        String[] v2_1 = new String[1];
        v2_1[0] = "CORRECT_CACHE_SWITCH";
        p6.delete("PLAIN_SETTINGS_TABLE", "NAME = ?", ru.yandex.disk.util.h.a(v2_1));
        return;
    }

Method ru.yandex.disk.photoslice.bb.n() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void n()
    {
        String v0_2 = this.e.p();
        if (ru.yandex.disk.gs.c) {
            ru.yandex.disk.Log.b("MomentsDatabase", new StringBuilder().append("clearTempPhotos: ").append(v0_2).toString());
        }
        if (v0_2 == null) {
            String v0_3 = this.d.b("MOMENT_TO_MOMENT_ITEM");
            String v1_6 = new StringBuilder().append("syncId").append(ru.yandex.disk.q.b.a("%/?/%")).toString();
            StringBuilder v2_7 = new String[1];
            v2_7[0] = "disk";
            String v0_4 = this.p().delete(v0_3, v1_6, ru.yandex.disk.util.h.a(v2_7));
            if (ru.yandex.disk.gs.c) {
                ru.yandex.disk.Log.b("MomentsDatabase", new StringBuilder().append("clearTempPhotos from moments: ").append(v0_4).toString());
            }
        }
        return;
    }

Method ru.yandex.disk.photoslice.bb.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(String p6, String p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.p();
        String v1_1 = this.d.b("MOMENT_TO_MOMENT_ITEM");
        String[] v3_2 = new String[2];
        v3_2[0] = p6;
        v3_2[1] = p7;
        v0.delete(v1_1, "momentId = ? AND syncId = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.photoslice.bb.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(String p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.p();
        String v1_1 = this.d.b("MOMENTS");
        String[] v3_2 = new String[1];
        v3_2[0] = p6;
        v0.delete(v1_1, "syncId = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.photoslice.bb.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    static synthetic void a(android.database.sqlite.SQLiteDatabase p1, String p2)
    {
        p1.delete(p2, 0, 0);
        return;
    }

Method ru.yandex.disk.operation.OperationsDatabase.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(ru.yandex.disk.operation.OperationLists$State p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.h();
        String[] v3_2 = new Object[1];
        v3_2[0] = Integer.valueOf(p7.getCode());
        v0.delete("OPERATIONS", "state = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.operation.OperationsDatabase.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a()
    {
        this.h().delete("OPERATIONS", 0, 0);
        return;
    }

Method ru.yandex.disk.operation.OperationsDatabase.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void a(long p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.h();
        String[] v3_2 = new Object[1];
        v3_2[0] = Long.valueOf(p8);
        v0.delete("OPERATIONS", "_id = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.l.d.d() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void d(String p5)
    {
        this.b.getWritableDatabase().delete("FILE_INDEX", ru.yandex.disk.l.d.a, ru.yandex.disk.l.d.e(p5));
        return;
    }

Method ru.yandex.disk.l.d.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(String p5)
    {
        this.b.getWritableDatabase().delete("FILE_INDEX", ark>ru.yandex.disk.l.dark>.a, ark>ru.yandex.disk.l.dark>.e(p5));
        return;
    }

Method ru.yandex.disk.l.d.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a()
    {
        this.b.getWritableDatabase().delete("FILE_INDEX", 0, 0);
        return;
    }

Method ru.yandex.disk.i.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private static void a(android.database.sqlite.SQLiteDatabase p4, String p5)
    {
        String[] v2_1 = new String[1];
        v2_1[0] = p5;
        p4.delete("PLAIN_SETTINGS_TABLE", "NAME = ?", ru.yandex.disk.util.h.a(v2_1));
        return;
    }

Method ru.yandex.disk.feed.publicblock.d.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(long p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.b();
        String[] v3_2 = new Object[1];
        v3_2[0] = Long.valueOf(p8);
        v0.delete("PUBLIC_BLOCKS_COMMENTS", "block_id = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.feed.cc.k() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void k()
    {
        this.r().delete("FEED_BLOCKS", "files_count <= 0", ru.yandex.disk.q.c.b);
        return;
    }

Method ru.yandex.disk.feed.cc.g() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void g(long p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.r();
        String[] v3_2 = new Object[1];
        v3_2[0] = Long.valueOf(p8);
        v0.delete("FEED_BLOCK_TO_FILE", "BLOCK_ID = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.feed.cc.e() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void e(long p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.r();
        String v2_4 = new StringBuilder().append("SERVER_ORDER").append(ru.yandex.disk.q.c.a("SERVER_ORDER FROM FEED_MISSED_BLOCK_ITEMS")).append(" AND ").append("BLOCK_ID").append(" = ?").toString();
        String[] v3_5 = new Object[1];
        v3_5[0] = Long.valueOf(p8);
        v0.delete("FEED_BLOCK_TO_FILE", v2_4, ru.yandex.disk.util.h.a(v3_5));
        return;
    }

Method ru.yandex.disk.feed.cc.d() calling method android.database.sqlite.SQLiteDatabase.delete()


    public ru.yandex.disk.feed.bo d(long p10)
    {
        ru.yandex.disk.feed.bo v0_2 = ((ru.yandex.disk.feed.bo) this.a(p10).E());
        android.database.sqlite.SQLiteDatabase v1 = this.r();
        String[] v4_0 = new Object[1];
        v4_0[0] = Long.valueOf(p10);
        v1.delete("FEED_BLOCKS", "_id = ?", ru.yandex.disk.util.h.a(v4_0));
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p10);
        v1.delete("FEED_BLOCK_TO_FILE", "BLOCK_ID = ?", ru.yandex.disk.util.h.a(v4_2));
        return v0_2;
    }

Method ru.yandex.disk.feed.cc.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b()
    {
        android.database.sqlite.SQLiteDatabase v1 = this.r();
        v1.beginTransaction();
        try {
            v1.delete("FEED_BLOCKS", 0, 0);
            v1.delete("FEED_BLOCK_TO_FILE", 0, 0);
            v1.setTransactionSuccessful();
            v1.endTransaction();
            return;
        } catch (Throwable v0_0) {
            v1.endTransaction();
            throw v0_0;
        }
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public varargs void a(String[] p5)
    {
        this.r().delete("FEED_BLOCKS", new StringBuilder().append("remote_id").append(ru.yandex.disk.q.c.a(p5)).toString(), 0);
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(int p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.r();
        String[] v3_2 = new Object[1];
        v3_2[0] = Integer.valueOf(p7);
        v0.delete("FEED_BLOCKS", "data_source = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.asyncbitmap.an.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a()
    {
        this.l().delete("PreviewsDatabaseTable", 0, 0);
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p12, int p13, int p14)
    {
        if (p13 < 3) {
            p12.delete("upload_blob_events", 0, 0);
            p12.delete("event_history", 0, 0);
            p12.delete("upload_blobs", 0, 0);
            p12.delete("attributes", 0, 0);
            p12.delete("events", 0, 0);
            p12.delete("sessions", 0, 0);
        }
        if (p13 < 4) {
            int v1_37 = new Object[2];
            v1_37[0] = "sessions";
            v1_37[1] = "iu";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_37));
        }
        if (p13 < 5) {
            int v1_47 = new Object[2];
            v1_47[0] = "sessions";
            v1_47[1] = "device_wifi_mac_hash";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_47));
        }
        if (p13 < 6) {
            try {
                String v2_112 = new String[2];
                v2_112[0] = "_id";
                v2_112[1] = "attribute_key";
                int v1_78 = p12.query("attributes", v2_112, 0, 0, 0, 0, 0);
                try {
                    String v0_102 = v1_78.getColumnIndexOrThrow("_id");
                    String v2_128 = v1_78.getColumnIndexOrThrow("attribute_key");
                    int v3_117 = new android.content.ContentValues();
                    int v5_7 = new Object[1];
                    v5_7[0] = "_id";
                    Object[] v4_11 = String.format("%s = ?", v5_7);
                    int v5_9 = new String[1];
                    v1_78.moveToPosition(-1);
                } catch (String v0_100) {
                    if (v1_78 != 0) {
                        v1_78.close();
                    }
                    throw v0_100;
                }
                while (v1_78.moveToNext()) {
                    int v8_3 = new Object[2];
                    v8_3[0] = this.mLocalyticsDao.getAppContext().getPackageName();
                    v8_3[1] = v1_78.getString(v2_128);
                    v3_117.put("attribute_key", String.format("%s:%s", v8_3));
                    v5_9[0] = Long.toString(v1_78.getLong(v0_102));
                    p12.update("attributes", v3_117, v4_11, v5_9);
                    v3_117.clear();
                }
                if (v1_78 != 0) {
                    v1_78.close();
                }
            } catch (String v0_100) {
                v1_78 = 0;
            }
        }
        if (p13 < 7) {
            int v1_1 = new Object[3];
            v1_1[0] = "info";
            v1_1[1] = "fb_attribution";
            v1_1[2] = "first_run";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s TEXT, %s INTEGER);", v1_1));
            String v0_6 = new android.content.ContentValues();
            v0_6.putNull("fb_attribution");
            v0_6.put("first_run", Boolean.FALSE);
            p12.insertOrThrow("info", 0, v0_6);
        }
        if (p13 < 8) {
            int v1_7 = new Object[4];
            v1_7[0] = "identifiers";
            v1_7[1] = "_id";
            v1_7[2] = "key";
            v1_7[3] = "value";
            p12.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_7));
        }
        if (p13 < 9) {
            int v1_10 = new Object[2];
            v1_10[0] = "events";
            v1_10[1] = "clv_increase";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL DEFAULT 0;", v1_10));
        }
        if (p13 < 10) {
            int v1_12 = new Object[2];
            v1_12[0] = "info";
            v1_12[1] = "play_attribution";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_12));
        }
        if (p13 < 11) {
            int v1_14 = new Object[2];
            v1_14[0] = "info";
            v1_14[1] = "registration_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_14));
            int v1_17 = new Object[2];
            v1_17[0] = "info";
            v1_17[1] = "registration_version";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_17));
        }
        if (p13 < 12) {
            int v1_19 = new Object[2];
            v1_19[0] = "info";
            v1_19[1] = "first_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_19));
            int v1_21 = new Object[2];
            v1_21[0] = "info";
            v1_21[1] = "first_telephony_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_21));
            int v1_24 = new Object[2];
            v1_24[0] = "info";
            v1_24[1] = "package_name";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_24));
            String v0_33 = new android.content.ContentValues();
            v0_33.put("first_android_id", com.localytics.android.DatapointHelper.getAndroidIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("first_telephony_id", com.localytics.android.DatapointHelper.getTelephonyDeviceIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("package_name", this.mLocalyticsDao.getAppContext().getPackageName());
            p12.update("info", v0_33, 0, 0);
            int v1_30 = new Object[2];
            v1_30[0] = "sessions";
            v1_30[1] = "device_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_30));
        }
        if (p13 < 13) {
            int v1_32 = new Object[2];
            v1_32[0] = "events";
            v1_32[1] = "event_lat";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_32));
            int v1_35 = new Object[2];
            v1_35[0] = "events";
            v1_35[1] = "event_lng";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_35));
        }
        if (p13 < 14) {
            int v1_39 = new Object[19];
            v1_39[0] = "amp_rules";
            v1_39[1] = "_id";
            v1_39[2] = "campaign_id";
            v1_39[3] = "expiration";
            v1_39[4] = "display_seconds";
            v1_39[5] = "display_session";
            v1_39[6] = "version";
            v1_39[7] = "phone_location";
            v1_39[8] = "phone_size_width";
            v1_39[9] = "phone_size_height";
            v1_39[10] = "tablet_location";
            v1_39[11] = "tablet_size_width";
            v1_39[12] = "tablet_size_height";
            v1_39[13] = "time_to_display";
            v1_39[14] = "internet_required";
            v1_39[15] = "ab_test";
            v1_39[16] = "rule_name";
            v1_39[17] = "location";
            v1_39[18] = "devices";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER NOT NULL, %s TEXT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_39));
            int v1_41 = new Object[6];
            v1_41[0] = "amp_ruleevent";
            v1_41[1] = "_id";
            v1_41[2] = "event_name";
            v1_41[3] = "rule_id_ref";
            v1_41[4] = "amp_rules";
            v1_41[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_41));
            int v1_43 = new Object[4];
            v1_43[0] = "amp_displayed";
            v1_43[1] = "_id";
            v1_43[2] = "displayed";
            v1_43[3] = "campaign_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL);", v1_43));
            int v1_45 = new Object[7];
            v1_45[0] = "amp_conditions";
            v1_45[1] = "_id";
            v1_45[2] = "attribute_name";
            v1_45[3] = "operator";
            v1_45[4] = "rule_id_ref";
            v1_45[5] = "amp_rules";
            v1_45[6] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_45));
            int v1_49 = new Object[6];
            v1_49[0] = "amp_condition_values";
            v1_49[1] = "_id";
            v1_49[2] = "value";
            v1_49[3] = "condition_id_ref";
            v1_49[4] = "amp_conditions";
            v1_49[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_49));
        }
        if (p13 < 15) {
            int v1_51 = new Object[4];
            v1_51[0] = "custom_dimensions";
            v1_51[1] = "_id";
            v1_51[2] = "custom_dimension_key";
            v1_51[3] = "custom_dimension_value";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_51));
        }
        if (p13 < 16) {
            int v1_53 = new Object[2];
            v1_53[0] = "info";
            v1_53[1] = "first_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_53));
            int v1_55 = new Object[2];
            v1_55[0] = "sessions";
            v1_55[1] = "device_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_55));
            int v1_57 = new Object[2];
            v1_57[0] = "info";
            v1_57[1] = "push_disabled";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER;", v1_57));
            int v1_59 = new Object[2];
            v1_59[0] = "info";
            v1_59[1] = "sender_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_59));
        }
        if (p13 < 17) {
            int v1_61 = new Object[4];
            v1_61[0] = "profile";
            v1_61[1] = "_id";
            v1_61[2] = "attribute";
            v1_61[3] = "action";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT, %s INTEGER)", v1_61));
            int v1_63 = new Object[2];
            v1_63[0] = "events";
            v1_63[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_63));
            int v1_66 = new Object[2];
            v1_66[0] = "events";
            v1_66[1] = "user_type";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_66));
            int v1_68 = new Object[2];
            v1_68[0] = "events";
            v1_68[1] = "ids";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_68));
            int v1_70 = new Object[2];
            v1_70[0] = "info";
            v1_70[1] = "last_session_open_time";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER", v1_70));
            int v1_72 = new Object[3];
            v1_72[0] = "sessions";
            v1_72[1] = "elapsed";
            v1_72[2] = "elapsed";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL CHECK (%s >= 0) DEFAULT 0", v1_72));
        }
        if (p13 < 18) {
            int v1_74 = new Object[2];
            v1_74[0] = "profile";
            v1_74[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT", v1_74));
            android.content.ContentValues v9_1 = new android.content.ContentValues();
            try {
                int v1_76 = p12.query("profile", 0, 0, 0, 0, 0, 0);
                try {
                    while (v1_76.moveToNext()) {
                        String v0_97 = String.valueOf(v1_76.getInt(v1_76.getColumnIndexOrThrow("_id")));
                        try {
                            String v2_122 = new org.json.JSONObject(v1_76.getString(v1_76.getColumnIndexOrThrow("attribute")));
                            v9_1.put("attribute", v2_122.getString("attributes"));
                            v9_1.put("customer_id", v2_122.getString("id"));
                            Object[] v4_6 = new Object[2];
                            v4_6[0] = "_id";
                            v4_6[1] = v0_97;
                            p12.update("profile", v9_1, String.format("%s = %s", v4_6), 0);
                            v9_1.clear();
                        } catch (String v2) {
                            Object[] v4_9 = new Object[2];
                            v4_9[0] = "_id";
                            v4_9[1] = v0_97;
                            p12.delete("profile", String.format("%s = %s", v4_9), 0);
                        }
                    }
                } catch (String v0_92) {
                    if (v1_76 != 0) {
                        v1_76.close();
                    }
                    throw v0_92;
                }
                if (v1_76 != 0) {
                    v1_76.close();
                }
            } catch (String v0_92) {
                v1_76 = 0;
            }
        }
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.convertDatabaseToJson() calling method android.database.sqlite.SQLiteDatabase.delete()


    static java.util.List convertDatabaseToJson(android.content.Context p17, android.database.sqlite.SQLiteDatabase p18, String p19)
    {
        java.util.LinkedList v12_1 = new java.util.LinkedList();
        try {
            android.database.Cursor v11 = p18.query("upload_blobs", 0, 0, 0, 0, 0, 0);
            try {
                long v14 = com.localytics.android.MigrationDatabaseHelper.getApiKeyCreationTime(p18, p19);
                int v13 = v11.getColumnIndexOrThrow("_id");
                int v16 = v11.getColumnIndexOrThrow("uuid");
            } catch (String v2_5) {
                String v3_3 = v11;
                if (v3_3 != null) {
                    v3_3.close();
                }
                throw v2_5;
            }
            while (v11.moveToNext()) {
                try {
                    String v2_15 = new org.json.JSONObject();
                    v2_15.put("dt", "h");
                    v2_15.put("pa", v14);
                    v2_15.put("seq", v11.getLong(v13));
                    v2_15.put("u", v11.getString(v16));
                    String v3_14 = com.localytics.android.MigrationDatabaseHelper.getAttributesFromSession(p18, p19, com.localytics.android.MigrationDatabaseHelper.getSessionIdForBlobId(p18, v11.getLong(v13)));
                } catch (String v2_4) {
                    com.localytics.android.Localytics$Log.w("Caught exception", v2_4);
                }
                if (v3_14 == null) {
                    break;
                }
                v2_15.put("attrs", v3_14);
                String v3_15 = com.localytics.android.MigrationDatabaseHelper.getIdentifiers(p18);
                if (v3_15 != null) {
                    v2_15.put("ids", v3_15);
                }
                v12_1.add(v2_15);
                com.localytics.android.Localytics$Log.w(v12_1.toString());
                try {
                    String[] v4_14 = new String[2];
                    v4_14[0] = "_id";
                    v4_14[1] = "events_key_ref";
                    int v5_7 = new Object[1];
                    v5_7[0] = "upload_blobs_key_ref";
                    int v5_8 = String.format("%s = ?", v5_7);
                    String v6_8 = new String[1];
                    v6_8[0] = Long.toString(v11.getLong(v13));
                    android.database.Cursor v9_2 = p18.query("upload_blob_events", v4_14, v5_8, v6_8, 0, 0, "events_key_ref");
                    try {
                        int v10_2 = v9_2.getColumnIndexOrThrow("events_key_ref");
                    } catch (String v2_3) {
                        String v3_1 = v9_2;
                        if (v3_1 != null) {
                            v3_1.close();
                        }
                        throw v2_3;
                    }
                    while ((v9_2.moveToNext()) && (v12_1.size() < 100)) {
                        v12_1.add(com.localytics.android.MigrationDatabaseHelper.convertEventToJson(p18, p17, v9_2.getLong(v10_2), v11.getLong(v13), p19));
                        String[] v4_2 = new Object[1];
                        v4_2[0] = "_id";
                        String v3_6 = String.format("%s = ?", v4_2);
                        String[] v4_4 = new String[1];
                        v4_4[0] = Integer.toString(v9_2.getInt(v9_2.getColumnIndexOrThrow("_id")));
                        p18.delete("upload_blob_events", v3_6, v4_4);
                    }
                    if (v9_2 != null) {
                        v9_2.close();
                    }
                } catch (String v2_3) {
                    v3_1 = 0;
                }
            }
            if (v11 != null) {
                v11.close();
            }
            String v3_8 = new Object[1];
            v3_8[0] = v12_1.toString();
            com.localytics.android.Localytics$Log.v(String.format("JSON result is %s", v3_8));
            return v12_1;
        } catch (String v2_5) {
            v3_3 = 0;
        }
    }

Method com.localytics.android.BaseProvider.remove() calling method android.database.sqlite.SQLiteDatabase.delete()


    int remove(String p7, String p8, String[] p9)
    {
        int v0_2;
        String v1_4 = new Object[3];
        v1_4[0] = p7;
        v1_4[1] = p8;
        v1_4[2] = java.util.Arrays.toString(p9);
        com.localytics.android.Localytics$Log.v(String.format("Delete table: %s, selection: %s, selectionArgs: %s", v1_4));
        if (p8 != null) {
            v0_2 = this.mDb.delete(p7, p8, p9);
        } else {
            v0_2 = this.mDb.delete(p7, "1", 0);
        }
        Object[] v2_1 = new Object[1];
        v2_1[0] = Integer.valueOf(v0_2);
        com.localytics.android.Localytics$Log.v(String.format("Deleted %d rows", v2_1));
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.deleteReceipt() calling method android.database.sqlite.SQLiteDatabase.delete()


    int deleteReceipt(long p8)
    {
        int v0 = 0;
        if (this.mDb != null) {
            android.database.sqlite.SQLiteDatabase v1_1 = this.mDb;
            String[] v4_1 = new String[1];
            v4_1[0] = String.valueOf(p8);
            v0 = v1_1.delete("receipts_table", "r_id=?", v4_1);
        }
        return v0;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.deleteSession() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int deleteSession(long p8)
    {
        String v2_6 = new Object[1];
        v2_6[0] = Long.valueOf(p8);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("delete(session: %d)", v2_6);
        int v0_2 = this.getWritableDatabase().delete("sessions", new StringBuilder().append("session_id=").append(p8).toString(), 0);
        Object[] v3_2 = new Object[1];
        v3_2[0] = Integer.valueOf(v0_2);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.verbose("deleted %d sessions", v3_2);
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.deleteActionsFrom() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int deleteActionsFrom(long p8, long p10)
    {
        String v2_2 = new Object[2];
        v2_2[0] = Long.valueOf(p8);
        v2_2[1] = Long.valueOf(p10);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("deleteActionsFrom(session: %d, action: %d)", v2_2);
        int v0_0 = this.getWritableDatabase();
        Object[] v3_1 = new String[2];
        v3_1[0] = String.valueOf(p8);
        v3_1[1] = String.valueOf(p10);
        int v0_1 = v0_0.delete("actions", "action_session_id=? AND action_id>?", v3_1);
        Object[] v3_2 = new Object[1];
        v3_2[0] = Integer.valueOf(v0_1);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.verbose("deleted %d actions", v3_2);
        return v0_1;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.deleteActions() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int deleteActions(long p8)
    {
        String v2_6 = new Object[1];
        v2_6[0] = Long.valueOf(p8);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("deleteActions(session: %d)", v2_6);
        int v0_2 = this.getWritableDatabase().delete("actions", new StringBuilder().append("action_session_id=").append(p8).toString(), 0);
        Object[] v3_2 = new Object[1];
        v3_2[0] = Integer.valueOf(v0_2);
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.verbose("deleted %d actions", v3_2);
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.purgeDatabase() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void purgeDatabase()
    {
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.warn(new StringBuilder().append("deleted ").append(this.getWritableDatabase().delete("sessions", new StringBuilder().append("session_creation_time<").append(((java.util.Calendar.getInstance(java.util.TimeZone.getTimeZone("UTC")).getTimeInMillis() - 1.280618154e-314) / 1000)).append(" AND ").append("session_output_path").append(" is null").toString(), 0)).append(" loitering sessions").toString());
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.deletePackDownloadEntry() calling method android.database.sqlite.SQLiteDatabase.delete()


    int deletePackDownloadEntry(long p8)
    {
        int v0 = 0;
        android.database.sqlite.SQLiteDatabase v1 = this.getWritableDatabase();
        if (v1 != null) {
            String[] v4_1 = new String[1];
            v4_1[0] = String.valueOf(p8);
            v0 = v1.delete("packs_download_table", "download_packId=?", v4_1);
        }
        return v0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.deletePack() calling method android.database.sqlite.SQLiteDatabase.delete()


    int deletePack(long p8)
    {
        int v0 = 0;
        android.database.sqlite.SQLiteDatabase v1 = this.getWritableDatabase();
        if (v1 != null) {
            String[] v4_1 = new String[1];
            v4_1[0] = String.valueOf(p8);
            v0 = v1.delete("packs_table", "pack_id=?", v4_1);
        }
        return v0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.deleteMessage() calling method android.database.sqlite.SQLiteDatabase.delete()


    int deleteMessage(long p8)
    {
        int v0 = 0;
        android.database.sqlite.SQLiteDatabase v1 = this.getWritableDatabase();
        if (v1 != null) {
            String[] v4_1 = new String[1];
            v4_1[0] = String.valueOf(p8);
            v0 = v1.delete("messages_table", "msg_id=?", v4_1);
        }
        return v0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.deleteItemById() calling method android.database.sqlite.SQLiteDatabase.delete()


    int deleteItemById(String p6, String p7, long p8)
    {
        int v0 = 0;
        android.database.sqlite.SQLiteDatabase v1 = this.getWritableDatabase();
        if (v1 != null) {
            String v2_1 = new StringBuilder().append(p7).append("=?").toString();
            String[] v3_1 = new String[1];
            v3_1[0] = String.valueOf(p8);
            v0 = v1.delete(p6, v2_1, v3_1);
        }
        return v0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.delete() calling method android.database.sqlite.SQLiteDatabase.delete()


    int delete(android.database.sqlite.SQLiteDatabase p2, String p3, String p4, String[] p5)
    {
        return p2.delete(p3, p4, p5);
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.c.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement a(android.database.sqlite.SQLiteDatabase p5, StringBuilder p6)
    {
        if (this.f != null) {
            this.f.clearBindings();
        } else {
            p6.setLength(0);
            p6.append("SELECT SUM(case WHEN ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.d.a).append(" is null then group_cnt else 1 end) from (").append("SELECT count(*) group_cnt, ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.d.a).append(" FROM ").append("job_holder").append(" WHERE ").append(this.b).append(" GROUP BY ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.d.a).append(")");
            this.f = p5.compileStatement(p6.toString());
        }
        android.database.sqlite.SQLiteStatement v0_15 = 1;
        while (v0_15 <= this.c.length) {
            this.f.bindString(v0_15, this.c[(v0_15 - 1)]);
            v0_15++;
        }
        return this.f;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.c.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement a(android.database.sqlite.SQLiteDatabase p8, com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper p9)
    {
        if (this.h != null) {
            this.h.clearBindings();
        } else {
            int v3_0 = new com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper$Order[0];
            android.database.sqlite.SQLiteStatement v0_0 = p9.a(com.birbit.android.jobqueue.persistentQueue.sqlite.a.j.a, this.b, 0, v3_0);
            String v4_0 = new com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper$Order[0];
            String v2_2 = p9.a(com.birbit.android.jobqueue.persistentQueue.sqlite.a.g.a, this.b, 0, v4_0);
            int v3_2 = p9.f;
            v3_2.setLength(0);
            v3_2.append("SELECT * FROM (").append(v0_0).append(" ORDER BY 1 ASC LIMIT 1").append(") UNION SELECT * FROM (").append(v2_2).append(" ORDER BY 1 ASC LIMIT 1").append(") ORDER BY 1 ASC LIMIT 1");
            this.h = p8.compileStatement(v3_2.toString());
        }
        android.database.sqlite.SQLiteStatement v0_9 = 1;
        while (v0_9 <= this.c.length) {
            this.h.bindString(v0_9, this.c[(v0_9 - 1)]);
            this.h.bindString((this.c.length + v0_9), this.c[(v0_9 - 1)]);
            v0_9++;
        }
        this.h.bindString(1, ark>com.birbit.android.jobqueue.persistentQueue.sqlite.cark>.e);
        this.h.bindString((this.c.length + 1), ark>com.birbit.android.jobqueue.persistentQueue.sqlite.cark>.d);
        return this.h;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.h() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement h()
    {
        if (this.u == null) {
            this.u = this.g.compileStatement(new StringBuilder().append("UPDATE ").append(this.h).append(" SET ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.l.a).append(" = 1 ").append(" WHERE ").append(this.i).append(" = ? ").toString());
        }
        return this.u;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.g() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement g()
    {
        if (this.s == null) {
            this.s = this.g.compileStatement(new StringBuilder().append("UPDATE ").append(this.h).append(" SET ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.e.a).append(" = ? , ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.h.a).append(" = ? ").append(" WHERE ").append(this.i).append(" = ? ").toString());
        }
        return this.s;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.f() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement f()
    {
        if (this.r == null) {
            this.r = this.g.compileStatement(new StringBuilder().append("DELETE FROM ").append(this.k).append(" WHERE ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.n.a).append("= ?").toString());
        }
        return this.r;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.e() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement e()
    {
        if (this.q == null) {
            this.q = this.g.compileStatement(new StringBuilder().append("DELETE FROM ").append(this.h).append(" WHERE ").append(this.i).append(" = ?").toString());
        }
        return this.q;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.d() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement d()
    {
        int v0_0 = 0;
        if (this.p == null) {
            this.f.setLength(0);
            this.f.append("INSERT OR REPLACE INTO ").append(this.h);
            this.f.append(" VALUES (");
            while (v0_0 < this.j) {
                if (v0_0 != 0) {
                    this.f.append(",");
                }
                this.f.append("?");
                v0_0++;
            }
            this.f.append(")");
            this.p = this.g.compileStatement(this.f.toString());
        }
        return this.p;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.c() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement c()
    {
        if (this.t == null) {
            this.t = this.g.compileStatement(new StringBuilder().append("SELECT COUNT(*) FROM ").append(this.h).append(" WHERE ").append(com.birbit.android.jobqueue.persistentQueue.sqlite.a.h.a).append(" != ?").toString());
        }
        return this.t;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.b() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement b()
    {
        int v0_0 = 0;
        if (this.o == null) {
            this.f.setLength(0);
            this.f.append("INSERT INTO ").append("job_holder_tags");
            this.f.append(" VALUES (");
            while (v0_0 < this.l) {
                if (v0_0 != 0) {
                    this.f.append(",");
                }
                this.f.append("?");
                v0_0++;
            }
            this.f.append(")");
            this.o = this.g.compileStatement(this.f.toString());
        }
        return this.o;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqlHelper.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.database.sqlite.SQLiteStatement a()
    {
        int v0_0 = 0;
        if (this.n == null) {
            this.f.setLength(0);
            this.f.append("INSERT INTO ").append(this.h);
            this.f.append(" VALUES (");
            while (v0_0 < this.j) {
                if (v0_0 != 0) {
                    this.f.append(",");
                }
                this.f.append("?");
                v0_0++;
            }
            this.f.append(")");
            this.n = this.g.compileStatement(this.f.toString());
        }
        return this.n;
    }

Method ru.yandex.disk.provider.z.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected android.database.Cursor a(android.database.sqlite.SQLiteDatabase p9, android.net.Uri p10, String[] p11, String p12, String[] p13, String p14)
    {
        android.database.Cursor v0_1 = p9.query("invites", p11, p12, p13, p14, 0, 0);
        this.a(v0_1, p10);
        return v0_1;
    }

Method ru.yandex.disk.provider.z$b.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor a(android.net.Uri p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.Cursor v0_2 = p9.getPathSegments();
        int v6_0 = Long.parseLong(((String) v0_2.get((v0_2.size() - 1))));
        android.database.Cursor v0_1 = this.a.getWritableDatabase();
        String[] v2_1 = new Object[1];
        v2_1[0] = Long.valueOf(v6_0);
        android.database.Cursor v0_3 = v0_1.query("invites", p10, "_id = ?", ru.yandex.disk.util.h.a(v2_1), 0, 0, 0);
        this.a(v0_3, p9);
        return v0_3;
    }

Method ru.yandex.disk.provider.v.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected android.database.Cursor a(android.database.sqlite.SQLiteDatabase p9, android.net.Uri p10, String[] p11, String p12, String[] p13, String p14)
    {
        android.database.Cursor v0_1 = p9.query("DISK_AND_QUEUE", p11, p12, p13, 0, 0, p14);
        v0_1.setNotificationUri(this.a().getContentResolver(), this.b());
        return v0_1;
    }

Method ru.yandex.disk.provider.o.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected android.database.Cursor a(android.database.sqlite.SQLiteDatabase p9, android.net.Uri p10, String[] p11, String p12, String[] p13, String p14)
    {
        android.database.Cursor v0_1 = p9.query("DISK", p11, p12, p13, 0, 0, p14);
        v0_1.setNotificationUri(this.a().getContentResolver(), this.b());
        return v0_1;
    }

Method ru.yandex.disk.provider.e.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected android.database.Cursor a(android.database.sqlite.SQLiteDatabase p9, android.net.Uri p10, String[] p11, String p12, String[] p13, String p14)
    {
        return p9.query("CREDENTIAL", p11, p12, p13, 0, 0, p14);
    }

Method ru.yandex.disk.provider.au.n() calling method android.database.sqlite.SQLiteDatabase.query()


    private void n(android.database.sqlite.SQLiteDatabase p9)
    {
        String[] v2_3 = new String[2];
        v2_3[0] = "_id";
        v2_3[1] = "src_name";
        Throwable v0_0 = new Object[1];
        v0_0[0] = Integer.valueOf(0);
        android.database.Cursor v1_0 = p9.query("DISK_QUEUE", v2_3, "state != ? AND dest_name IS NULL", ru.yandex.disk.util.h.a(v0_0), 0, 0, 0);
        if (v1_0 != null) {
            try {
                p9.beginTransaction();
                Throwable v0_3 = new android.content.ContentValues(1);
                String[] v2_2 = new String[1];
            } catch (Throwable v0_4) {
                v1_0.close();
                p9.endTransaction();
                throw v0_4;
            }
            while (v1_0.moveToNext()) {
                v2_2[0] = String.valueOf(v1_0.getLong(0));
                v0_3.put("dest_name", com.yandex.b.a.a(v1_0.getString(1)).c());
                p9.update("DISK_QUEUE", v0_3, "_id = ?", v2_2);
            }
            p9.setTransactionSuccessful();
            v1_0.close();
            p9.endTransaction();
        }
        return;
    }

Method ru.yandex.disk.provider.ao.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected android.database.Cursor a(android.database.sqlite.SQLiteDatabase p9, android.net.Uri p10, String[] p11, String p12, String[] p13, String p14)
    {
        android.database.Cursor v0_1 = p9.query("PLAIN_SETTINGS_TABLE", p11, p12, p13, 0, 0, p14);
        this.a(v0_1, ru.yandex.disk.provider.DiskContentProvider.a(this.a(), "PLAIN_SETTINGS_TABLE"));
        return v0_1;
    }

Method ru.yandex.disk.provider.af$c.b() calling method android.database.sqlite.SQLiteDatabase.query()


    private ru.yandex.disk.provider.af$b b(long p10)
    {
        android.database.Cursor v0_3 = ru.yandex.disk.provider.af.c(this.a).getReadableDatabase();
        String[] v2_1 = new String[3];
        v2_1[0] = "SCOPE";
        v2_1[1] = "NAME";
        v2_1[2] = "VALUE";
        String[] v2_2 = ru.yandex.disk.util.h.a(v2_1);
        String[] v4_1 = new Object[1];
        v4_1[0] = Long.valueOf(p10);
        return new ru.yandex.disk.provider.af$b(v0_3.query("PLAIN_SETTINGS_TABLE", v2_2, "rowid = ?", ru.yandex.disk.util.h.a(v4_1), 0, 0, 0));
    }

Method ru.yandex.disk.provider.ab.a() calling method android.database.sqlite.SQLiteDatabase.query()


    protected android.database.Cursor a(android.database.sqlite.SQLiteDatabase p9, android.net.Uri p10, String[] p11, String p12, String[] p13, String p14)
    {
        android.database.Cursor v0_0 = p9.query("DISK_QUEUE", p11, this.a(p12, p10), p13, 0, 0, p14);
        this.a(v0_0, p10);
        return v0_0;
    }

Method ru.yandex.disk.provider.ContentRequest.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.CursorWrapper a(android.database.sqlite.SQLiteDatabase p9)
    {
        return this.a(p9.query(this.b(), this.c(), this.d(), this.e(), this.h(), 0, this.f()));
    }

Method ru.yandex.disk.download.q.g() calling method android.database.sqlite.SQLiteDatabase.query()


    public long g()
    {
        long v0_1;
        android.database.Cursor v2_0 = this.i().query("queue", ru.yandex.disk.download.q.g, 0, 0, 0, 0, 0);
        if (!v2_0.moveToFirst()) {
            v0_1 = 0;
        } else {
            v0_1 = v2_0.getLong(0);
        }
        v2_0.close();
        return v0_1;
    }

Method ru.yandex.disk.download.q.e() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.ProgressValues e(long p12)
    {
        long v8 = 0;
        long v5 = 0;
        Throwable v0_6 = this.i();
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p12);
        Throwable v2_0 = v0_6.query("queue", ru.yandex.disk.download.q.e, "id = ?", ru.yandex.disk.util.h.a(v4_2), 0, 0, 0);
        try {
            Throwable v0_3;
            if (!v2_0.moveToFirst()) {
                v0_3 = 0;
            } else {
                v8 = v2_0.getLong(0);
                v0_3 = v2_0.getLong(1);
            }
        } catch (Throwable v0_2) {
            if (v2_0 != null) {
                if (v5 == 0) {
                    v2_0.close();
                } else {
                    try {
                        v2_0.close();
                    } catch (Throwable v1) {
                    }
                }
            }
            throw v0_2;
        } catch (Throwable v0_1) {
            try {
                throw v0_1;
            } catch (Throwable v1_0) {
                v5 = v0_1;
                v0_2 = v1_0;
            }
        }
        if (v2_0 != null) {
            if (0 == 0) {
                v2_0.close();
            } else {
                try {
                    v2_0.close();
                } catch (Throwable v2) {
                }
            }
        }
        return new ru.yandex.disk.ProgressValues(v8, v0_3);
    }

Method ru.yandex.disk.download.q.d() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.ProgressValues d(long p14)
    {
        long v0_1;
        long v8 = 0;
        long v0_2 = this.i();
        String[] v4_1 = new Object[1];
        v4_1[0] = Long.valueOf(p14);
        ru.yandex.disk.ProgressValues v2_0 = v0_2.query("queue", ru.yandex.disk.download.q.d, "taskId = ?", ru.yandex.disk.util.h.a(v4_1), 0, 0, 0);
        if (!v2_0.moveToFirst()) {
            v0_1 = 0;
        } else {
            v8 = v2_0.getLong(0);
            v0_1 = v2_0.getLong(1);
        }
        v2_0.close();
        return new ru.yandex.disk.ProgressValues(v8, v0_1);
    }

Method ru.yandex.disk.download.q.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public boolean c(long p12)
    {
        int v0_1;
        int v5 = 0;
        int v8 = 0;
        int v0_2 = this.i();
        String v3_5 = new StringBuilder().append("state = ").append(ru.yandex.disk.download.DownloadQueueItem$State.QUEUED).append(" AND ").append("taskId").append(" = ?").toString();
        String[] v4_4 = new Object[1];
        v4_4[0] = Long.valueOf(p12);
        android.database.Cursor v1_0 = v0_2.query("queue", ru.yandex.disk.q.c.a, v3_5, ru.yandex.disk.util.h.a(v4_4), v5, v5, 0);
        if (!v1_0.moveToFirst()) {
            v0_1 = 0;
        } else {
            v0_1 = v1_0.getInt(0);
        }
        v1_0.close();
        if (v0_1 == 0) {
            v8 = 1;
        }
        return v8;
    }

Method ru.yandex.disk.download.q.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public long c(String p10)
    {
        long v0_0 = this.i();
        boolean v3_0 = new StringBuilder().append("serverPath = ? OR serverPath").append(ru.yandex.disk.q.b.a("?/%")).toString();
        String[] v4_1 = new String[2];
        v4_1[0] = p10;
        v4_1[1] = ru.yandex.disk.q.b.b(p10);
        android.database.Cursor v2_2 = v0_0.query("queue", ru.yandex.disk.download.q.f, v3_0, ru.yandex.disk.util.h.a(v4_1), 0, 0, 0);
        long v0_1 = 0;
        if (v2_2.moveToFirst()) {
            v0_1 = v2_2.getLong(0);
        }
        v2_2.close();
        return v0_1;
    }

Method ru.yandex.disk.download.q.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public boolean b(String p12)
    {
        int v0_1;
        int v0_2 = this.i();
        String[] v4_1 = new String[1];
        v4_1[0] = p12;
        android.database.Cursor v1_0 = v0_2.query("queue", ru.yandex.disk.download.q.a, "serverPath = ? AND unfinishedDownloadPath IS NULL", ru.yandex.disk.util.h.a(v4_1), 0, 0, 0, "1");
        if (v1_0.getCount() <= 0) {
            v0_1 = 0;
        } else {
            v0_1 = 1;
        }
        v1_0.close();
        return v0_1;
    }

Method ru.yandex.disk.download.q.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor b(ru.yandex.disk.download.DownloadQueueItem$Type p10)
    {
        android.database.Cursor v0_1 = this.i();
        String[] v4_2 = new Object[1];
        v4_2[0] = p10;
        return v0_1.query("queue", ru.yandex.disk.download.q.c, "type = ? AND unfinishedDownloadPath IS NOT NULL", ru.yandex.disk.util.h.a(v4_2), 0, 0, 0, 0);
    }

Method ru.yandex.disk.download.q.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor b()
    {
        android.database.Cursor v0_1 = this.i();
        String[] v4_2 = new Object[1];
        v4_2[0] = ru.yandex.disk.download.DownloadQueueItem$Type.SYNC;
        return v0_1.query("queue", ru.yandex.disk.download.q.c, "type != ? AND unfinishedDownloadPath IS NOT NULL", ru.yandex.disk.util.h.a(v4_2), 0, 0, 0, 0);
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.download.DownloadQueueItem a()
    {
        int v4 = 0;
        android.database.Cursor v2_0 = this.i().query("queue", ark>ru.yandex.disk.download.qark>.b, new StringBuilder().append("state = ").append(ru.yandex.disk.download.DownloadQueueItem$State.QUEUED).toString(), 0, 0, 0, "type, id", "1");
        try {
            Throwable v0_4;
            if (!v2_0.moveToFirst()) {
                v0_4 = 0;
            } else {
                v0_4 = this.a(v2_0);
            }
        } catch (Throwable v0_3) {
            if (v2_0 != null) {
                if (v4 == 0) {
                    v2_0.close();
                } else {
                    try {
                        v2_0.close();
                    } catch (Throwable v1) {
                    }
                }
            }
            throw v0_3;
        } catch (Throwable v0_2) {
            try {
                throw v0_2;
            } catch (Throwable v1_0) {
                v4 = v0_2;
                v0_3 = v1_0;
            }
        }
        if (v2_0 != null) {
            if (0 == 0) {
                v2_0.close();
            } else {
                try {
                    v2_0.close();
                } catch (Throwable v1) {
                }
            }
        }
        return v0_4;
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor a(String p10)
    {
        android.database.Cursor v0_0 = this.i();
        String v3 = new StringBuilder().append("serverPath = ? OR serverPath").append(ru.yandex.disk.q.b.a("?/%")).append(" AND ").append("type").append(" = ?").append(" AND ").append("unfinishedDownloadPath").append(" IS NOT NULL").toString();
        String v1_9 = new Object[3];
        v1_9[0] = p10;
        v1_9[1] = ru.yandex.disk.q.b.b(p10);
        v1_9[2] = ru.yandex.disk.download.DownloadQueueItem$Type.SYNC;
        return v0_0.query("queue", ark>ru.yandex.disk.download.qark>.c, v3, ru.yandex.disk.util.h.a(v1_9), 0, 0, 0, 0);
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private varargs java.util.List a(String p9, Object[] p10)
    {
        android.database.Cursor v0_0 = this.i().query("queue", ark>ru.yandex.disk.download.qark>.b, p9, ru.yandex.disk.util.h.a(p10), 0, 0, 0);
        java.util.LinkedList v1_1 = new java.util.LinkedList();
        while (v0_0.moveToNext()) {
            v1_1.add(this.a(v0_0));
        }
        v0_0.close();
        return v1_1;
    }

Method ru.yandex.common.clid.e.a() calling method android.database.sqlite.SQLiteDatabase.query()


    android.database.Cursor a(android.database.sqlite.SQLiteDatabase p10, String p11, String[] p12, String p13, String[] p14, String p15, String p16)
    {
        try {
            int v0_0 = p10.query(p11, p12, p13, p14, 0, 0, p15, p16);
        } catch (int v0_1) {
            ark>ru.yandex.common.clid.eark>.a("db.query()", v0_1);
            v0_0 = 0;
        }
        return v0_0;
    }

Method ru.yandex.common.clid.e.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private boolean a(android.database.sqlite.SQLiteDatabase p12, String p13, String p14)
    {
        android.content.ContentValues v0_0;
        String[] v4 = new String[1];
        v4[0] = p13;
        android.database.Cursor v1_0 = p12.query("apps", ark>ru.yandex.common.clid.eark>.b, "application=?", v4, 0, 0, 0, "1");
        if (v1_0 == null) {
            v0_0 = 0;
        } else {
            try {
                if (v1_0.moveToFirst()) {
                    if (!p14.equals(v1_0.getString(0))) {
                        android.content.ContentValues v0_6 = new android.content.ContentValues();
                        v0_6.put("state", p14);
                        p12.update("apps", v0_6, "application=?", v4);
                    }
                } else {
                    android.content.ContentValues v0_8 = new android.content.ContentValues();
                    v0_8.put("application", p13);
                    v0_8.put("state", p14);
                    p12.insert("apps", 0, v0_8);
                }
            } catch (android.content.ContentValues v0_9) {
                ru.yandex.searchlib.util.ab.a(v1_0);
                throw v0_9;
            }
            ru.yandex.searchlib.util.ab.a(v1_0);
            v0_0 = 1;
        }
        return v0_0;
    }

Method com.yandex.promolib.impl.r.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p8, String p9, String[] p10, String p11)
    {
        return p8.query("campaignsinfo", 0, p9, p10, 0, 0, p11);
    }

Method com.yandex.metrica.impl.ob.co.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public boolean a(android.database.sqlite.SQLiteDatabase p15)
    {
        int v11 = 1;
        java.util.Iterator v13 = this.a.entrySet().iterator();
        while (v13.hasNext()) {
            java.util.Map$Entry v9 = ((java.util.Map$Entry) v13.next());
            int v2_2 = p15.query(((String) v9.getKey()), 0, 0, 0, 0, 0, 0);
            if (v2_2 != 0) {
                try {
                    v11 &= this.a(v2_2, ((String[]) v9.getValue()));
                } catch (Throwable v1_4) {
                    com.yandex.metrica.impl.bl.a(v2_2);
                    throw v1_4;
                }
                com.yandex.metrica.impl.bl.a(v2_2);
            } else {
                com.yandex.metrica.impl.bl.a(v2_2);
                Throwable v1_0 = 0;
                return v1_0;
            }
        }
        v1_0 = v11;
        return v1_0;
    }

Method com.yandex.metrica.impl.ob.cl.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List a()
    {
        int v8 = 0;
        try {
            java.util.ArrayList v0_3 = this.a.a();
            try {
                java.util.ArrayList v0_4;
                int v2_1 = v0_3.query(this.b, 0, 0, 0, 0, 0, 0);
                try {
                    if ((v2_1 == 0) || (!v2_1.moveToFirst())) {
                        this.a.a(v0_3);
                        com.yandex.metrica.impl.bl.a(v2_1);
                        v0_4 = 0;
                        return v0_4;
                    } else {
                        java.util.ArrayList v1_5 = new java.util.ArrayList();
                        do {
                            com.yandex.metrica.impl.ob.cp v3_6;
                            String v5_1 = v2_1.getString(v2_1.getColumnIndex("name"));
                            if (v2_1.getLong(v2_1.getColumnIndex("granted")) != 1) {
                                v3_6 = 0;
                            } else {
                                v3_6 = 1;
                            }
                            v1_5.add(new com.yandex.metrica.impl.ob.el(v5_1, v3_6));
                        } while(v2_1.moveToNext());
                        this.a.a(v0_3);
                        com.yandex.metrica.impl.bl.a(v2_1);
                        v0_4 = v1_5;
                        return v0_4;
                    }
                } catch (java.util.ArrayList v1_6) {
                    v8 = v0_3;
                    java.util.ArrayList v0_2 = v1_6;
                    this.a.a(v8);
                    com.yandex.metrica.impl.bl.a(v2_1);
                    throw v0_2;
                } catch (java.util.ArrayList v1) {
                    java.util.ArrayList v1_0 = v0_3;
                    java.util.ArrayList v0_1 = v2_1;
                    this.a.a(v1_0);
                    com.yandex.metrica.impl.bl.a(v0_1);
                    v0_4 = 0;
                    return v0_4;
                }
            } catch (java.util.ArrayList v1_1) {
                v2_1 = 0;
                v8 = v0_3;
                v0_2 = v1_1;
            } catch (java.util.ArrayList v1) {
                v1_0 = v0_3;
                v0_1 = 0;
            }
        } catch (java.util.ArrayList v0_2) {
            v2_1 = 0;
        } catch (java.util.ArrayList v0) {
            v0_1 = 0;
            v1_0 = 0;
        }
    }

Method com.yandex.metrica.impl.ob.ck.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized java.util.Map a(int p12)
    {
        int v9 = 0;
        try {
            java.util.LinkedHashMap v10_1 = new java.util.LinkedHashMap();
            try {
                Throwable v0_4 = this.a.getReadableDatabase();
                String v2_4 = new String[2];
                v2_4[0] = "incremental_id";
                v2_4[1] = "data";
                Throwable v0_0 = v0_4.query("l_dat", v2_4, 0, 0, 0, 0, "incremental_id ASC", String.valueOf(p12));
                try {
                    while (v0_0.moveToNext()) {
                        this.c.clear();
                        com.yandex.metrica.impl.utils.e.a(v0_0, this.c);
                        v10_1.put(this.c.getAsLong("incremental_id"), this.c.getAsString("data"));
                    }
                } catch (Long v1_1) {
                    v9 = v0_0;
                    Throwable v0_1 = v1_1;
                    com.yandex.metrica.impl.bl.a(v9);
                    throw v0_1;
                } catch (Long v1) {
                    com.yandex.metrica.impl.bl.a(v0_0);
                    return v10_1;
                }
                com.yandex.metrica.impl.bl.a(v0_0);
                return v10_1;
            } catch (Throwable v0_1) {
            } catch (Throwable v0) {
                v0_0 = 0;
            }
        } catch (Throwable v0_3) {
            throw v0_3;
        }
    }

Method com.yandex.metrica.impl.ob.cj.b() calling method android.database.sqlite.SQLiteDatabase.query()


    static synthetic void b(com.yandex.metrica.impl.ob.cj p9)
    {
        int v8 = 0;
        try {
            Throwable v0_1 = p9.f.a();
            try {
                int v1_12 = p9.a();
                int v2_1 = new String[3];
                v2_1[0] = "key";
                v2_1[1] = "value";
                v2_1[2] = "type";
                int v2_2 = v0_1.query(v1_12, v2_1, 0, 0, 0, 0, 0);
                try {
                    while (v2_2.moveToNext()) {
                        String v3_4 = v2_2.getString(v2_2.getColumnIndex("key"));
                        int v1_7 = v2_2.getString(v2_2.getColumnIndex("value"));
                        int vtmp10 = v2_2.getInt(v2_2.getColumnIndex("type"));
                        if (!android.text.TextUtils.isEmpty(v3_4)) {
                            switch (vtmp10) {
                                case 1:
                                    if (!"true".equals(v1_7)) {
                                        if (!"false".equals(v1_7)) {
                                            v1_7 = 0;
                                        } else {
                                            v1_7 = Boolean.FALSE;
                                        }
                                    } else {
                                        v1_7 = Boolean.TRUE;
                                    }
                                    break;
                                case 2:
                                    v1_7 = com.yandex.metrica.impl.utils.k.c(v1_7);
                                    break;
                                case 3:
                                    v1_7 = com.yandex.metrica.impl.utils.k.a(v1_7);
                                case 4:
                                    break;
                                case 5:
                                    v1_7 = com.yandex.metrica.impl.utils.k.b(v1_7);
                                    break;
                                default:
                                    v1_7 = 0;
                            }
                            if (v1_7 != 0) {
                                p9.a.put(v3_4, v1_7);
                            }
                        }
                    }
                } catch (int v1_10) {
                    v8 = v0_1;
                    Throwable v0_2 = v1_10;
                    com.yandex.metrica.impl.bl.a(v2_2);
                    p9.f.a(v8);
                    throw v0_2;
                } catch (int v1) {
                    v8 = v2_2;
                    com.yandex.metrica.impl.bl.a(v8);
                    p9.f.a(v0_1);
                    return;
                }
                com.yandex.metrica.impl.bl.a(v2_2);
                p9.f.a(v0_1);
                return;
            } catch (int v1_0) {
                v2_2 = 0;
                v8 = v0_1;
                v0_2 = v1_0;
            } catch (int v1) {
            }
        } catch (Throwable v0_2) {
            v2_2 = 0;
        } catch (Throwable v0) {
            v0_1 = 0;
        }
    }

Method com.yandex.metrica.impl.ob.cg.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor b(long p12, com.yandex.metrica.impl.ob.bp p14)
    {
        this.b.lock();
        try {
            int v0_5 = this.d.getReadableDatabase();
            String[] v4_0 = new String[2];
            v4_0[0] = Long.toString(p12);
            v4_0[1] = Integer.toString(p14.a());
            int v0_1 = v0_5.query("reports", 0, "session_id = ? AND session_type = ?", v4_0, 0, 0, "number ASC", 0);
            this.b.unlock();
        } catch (int v0_4) {
            this.b.unlock();
            throw v0_4;
        } catch (int v0) {
            this.b.unlock();
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor a(java.util.Map p11)
    {
        this.b.lock();
        try {
            int v0_5 = this.d.getReadableDatabase();
            String v3_0 = ark>com.yandex.metrica.impl.ob.cgark>.a("id >= ?", p11);
            String[] v4_1 = new String[1];
            v4_1[0] = Long.toString(0);
            int v0_1 = v0_5.query("sessions", 0, v3_0, ark>com.yandex.metrica.impl.ob.cgark>.a(v4_1, p11), 0, 0, "id ASC", 0);
            this.b.unlock();
        } catch (int v0_4) {
            this.b.unlock();
            throw v0_4;
        } catch (int v0) {
            this.b.unlock();
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor a(long p12, java.util.Map p14)
    {
        this.b.lock();
        try {
            int v0_5 = this.d.getReadableDatabase();
            String v3_0 = ark>com.yandex.metrica.impl.ob.cgark>.a("id = ?", p14);
            String[] v4_1 = new String[1];
            v4_1[0] = Long.toString(p12);
            int v0_1 = v0_5.query("sessions", 0, v3_0, ark>com.yandex.metrica.impl.ob.cgark>.a(v4_1, p14), 0, 0, 0, 0);
            this.b.unlock();
        } catch (int v0_4) {
            this.b.unlock();
            throw v0_4;
        } catch (int v0) {
            this.b.unlock();
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private android.database.Cursor a(String p11)
    {
        try {
            int v0_1 = this.d.getReadableDatabase().query("reports", 0, p11, 0, 0, 0, 0, 0);
        } catch (int v0) {
            v0_1 = 0;
        }
        return v0_1;
    }

Method com.yandex.datasync.internal.database.sql.b.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor a(String p9, String[] p10, String p11, String[] p12, String p13, String p14)
    {
        return this.a.query(p9, p10, p11, p12, p14, 0, p13);
    }

Method com.yandex.auth.sync.database.d.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public static java.util.Collection a()
    {
        new java.util.ArrayList();
        java.util.HashSet v9_1 = new java.util.HashSet();
        try {
            java.util.Collection v8_1 = ark>com.yandex.auth.sync.database.dark>.b();
            try {
                android.database.Cursor v1_0 = v8_1.iterator();
            } catch (Throwable v0_9) {
                android.database.Cursor v1_3 = v0_9;
                Throwable v0_8 = v8_1;
                com.yandex.auth.analytics.h.a(v1_3);
                return v0_8;
            }
            while (v1_0.hasNext()) {
                v9_1.add(((com.yandex.auth.ob.e) v1_0.next()).name);
            }
            if (!v9_1.isEmpty()) {
                android.database.Cursor v1_2 = com.yandex.auth.db.a.a(com.yandex.auth.util.b.a()).getReadableDatabase().query("account", 0, 0, 0, 0, 0, 0);
                ark>com.yandex.auth.sync.database.dark>.a(v8_1, com.yandex.auth.sync.database.b.a(v1_2), v9_1);
                com.yandex.auth.util.s.a(v1_2);
            }
            if (!v9_1.isEmpty()) {
                ark>com.yandex.auth.sync.database.dark>.a(v8_1, v9_1);
            }
            v0_8 = v8_1;
            return v0_8;
        } catch (Throwable v0_13) {
            v1_3 = v0_13;
            v0_8 = v8_1;
        }
    }

Method com.yandex.auth.sync.command.k.d() calling method android.database.sqlite.SQLiteDatabase.query()


    private java.util.List d()
    {
        android.database.Cursor v0_1 = com.yandex.auth.db.a.a(this.a).getReadableDatabase().query("account", 0, 0, 0, 0, 0, 0);
        try {
            Throwable v1_0 = com.yandex.auth.sync.database.b.a(v0_1);
            com.yandex.auth.util.s.a(v0_1);
            return v1_0;
        } catch (Throwable v1_1) {
            com.yandex.auth.util.s.a(v0_1);
            throw v1_1;
        }
    }

Method com.yandex.auth.db.b.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List a(String p13, String p14, String p15)
    {
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        java.util.ArrayList v10_1 = new java.util.ArrayList();
        boolean v0_5 = this.getReadableDatabase();
        long v4_1 = new String[3];
        v4_1[0] = p14;
        v4_1[1] = p13;
        v4_1[2] = String.valueOf(new java.util.Date().getTime());
        try {
            android.database.Cursor v7_1 = v0_5.query("token", 0, "clientId=? AND login=? AND expires>?", v4_1, 0, 0, 0);
            try {
                String v8_1 = ark>com.yandex.auth.db.bark>.b(p15);
            } catch (boolean v0_0) {
                boolean v1_3 = v7_1;
                com.yandex.auth.util.s.a(v1_3);
                throw v0_0;
            }
            while (v7_1.moveToNext()) {
                boolean v0_7 = new ark>com.yandex.auth.db.bark>$a(v7_1.getString(v7_1.getColumnIndex("token")), v7_1.getString(v7_1.getColumnIndex("xTokenHash")), v7_1.getString(v7_1.getColumnIndex("clientId")), v7_1.getLong(v7_1.getColumnIndex("expires")), v7_1.getString(v7_1.getColumnIndex("type")));
                boolean v1_7 = 1;
                if (v8_1 != null) {
                    v1_7 = v8_1.equals(v0_7.a);
                }
                if (!v1_7) {
                    v10_1.add(v0_7);
                } else {
                    v9_1.add(v0_7);
                }
            }
            if (!v10_1.isEmpty()) {
                this.b(v10_1);
            }
            com.yandex.auth.util.s.a(v7_1);
            return v9_1;
        } catch (boolean v0_0) {
            v1_3 = 0;
        }
    }

Method com.yandex.auth.db.b.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List a()
    {
        java.util.ArrayList v9_1 = new java.util.ArrayList();
        Throwable v0_3 = this.getReadableDatabase();
        try {
            String v2_3 = new String[1];
            v2_3[0] = "login";
            int v1_0 = v0_3.query("token", v2_3, 0, 0, 0, 0, 0);
            try {
                Throwable v0_2 = v1_0.getColumnIndex("login");
            } catch (Throwable v0_0) {
                com.yandex.auth.util.s.a(v1_0);
                throw v0_0;
            }
            while (v1_0.moveToNext()) {
                v9_1.add(v1_0.getString(v0_2));
            }
            com.yandex.auth.util.s.a(v1_0);
            return v9_1;
        } catch (Throwable v0_0) {
            v1_0 = 0;
        }
    }

Method ru.yandex.disk.trash.u.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private ru.yandex.disk.trash.ae a(String[] p10, String p11, String[] p12, String p13)
    {
        return new ru.yandex.disk.trash.ae(this.c().query("TRASH", p10, p11, p12, 0, 0, p13));
    }

Method ru.yandex.disk.trash.ai.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private ru.yandex.disk.trash.ae a(String p10, String[] p11)
    {
        return new ru.yandex.disk.trash.ae(this.b.getReadableDatabase().query("VIEW_TRASH", 0, p10, p11, 0, 0, "dir DESC, deleted DESC"));
    }

Method ru.yandex.disk.provider.l.k() calling method android.database.sqlite.SQLiteDatabase.query()


    public long k(com.yandex.b.a p9)
    {
        long v5 = 0;
        Throwable v0_0 = this.s();
        Throwable v2_2 = new String[1];
        v2_2[0] = "SUM(SIZE)";
        Throwable v2_0 = v0_0.query("DISK", v2_2, new StringBuilder().append("( ").append(k>ru.yandex.disk.provider.lk>.f).append(" ) ").append(" AND ").append("IS_DIR = 0").append(" AND ").append("ETAG_LOCAL IS NOT NULL").toString(), ru.yandex.disk.q.b.a(p9), 0, 0, 0);
        try {
            Throwable v0_4;
            if (!v2_0.moveToNext()) {
                v0_4 = 0;
            } else {
                v0_4 = v2_0.getLong(0);
            }
        } catch (Throwable v0_3) {
            if (v2_0 != null) {
                if (v5 == 0) {
                    v2_0.close();
                } else {
                    try {
                        v2_0.close();
                    } catch (Throwable v1) {
                    }
                }
            }
            throw v0_3;
        } catch (Throwable v0_2) {
            try {
                throw v0_2;
            } catch (Throwable v1_1) {
                v5 = v0_2;
                v0_3 = v1_1;
            }
        }
        if (v2_0 != null) {
            if (0 == 0) {
                v2_0.close();
            } else {
                try {
                    v2_0.close();
                } catch (Throwable v2) {
                }
            }
        }
        return v0_4;
    }

Method ru.yandex.disk.provider.l.h() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.yandex.b.a h()
    {
        com.yandex.b.a v2 = 0;
        ru.yandex.disk.provider.n v9_1 = new ru.yandex.disk.provider.n(this.s().query("DISK", 0, new StringBuilder().append("IS_DIR = 0 AND OFFLINE_MARK = ").append(ru.yandex.disk.FileItem$OfflineMark.NOT_MARKED.getCode()).append(" AND ").append("ETAG_LOCAL IS NOT NULL").toString(), ru.yandex.disk.q.c.b, 0, 0, "LAST_ACCESS ASC, LAST_MODIFIED ASC", "1"));
        try {
            if (!v9_1.moveToNext()) {
                if (v9_1 != null) {
                    if (0 == 0) {
                        v9_1.close();
                    } else {
                        try {
                            v9_1.close();
                        } catch (Throwable v0) {
                        }
                    }
                }
            } else {
                Throwable v0_6 = new com.yandex.b.a(v9_1.e());
                if (v9_1 != null) {
                    if (0 == 0) {
                        v9_1.close();
                    } else {
                        try {
                            v9_1.close();
                        } catch (Throwable v1) {
                        }
                    }
                }
                v2 = v0_6;
            }
        } catch (Throwable v0_4) {
            if (v9_1 != null) {
                if (v2 == null) {
                    v9_1.close();
                } else {
                    try {
                        v9_1.close();
                    } catch (Throwable v1) {
                    }
                }
            }
            throw v0_4;
        } catch (Throwable v0_3) {
            try {
                throw v0_3;
            } catch (Throwable v1_0) {
                v2 = v0_3;
                v0_4 = v1_0;
            }
        }
        return v2;
    }

Method ru.yandex.disk.provider.l.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List b()
    {
        String v2 = 0;
        java.util.ArrayList v8_1 = new java.util.ArrayList();
        ru.yandex.disk.provider.n v9_1 = new ru.yandex.disk.provider.n(this.s().query("DISK", 0, new StringBuilder().append("OFFLINE_MARK = ").append(ru.yandex.disk.FileItem$OfflineMark.MARKED.getCode()).append(" AND ").append("IS_DIR = 1").toString(), 0, 0, 0, 0));
        try {
            while (v9_1.moveToNext()) {
                v8_1.add(v9_1.e());
            }
        } catch (Throwable v0_8) {
            if (v9_1 != null) {
                if (v2 == null) {
                    v9_1.close();
                } else {
                    try {
                        v9_1.close();
                    } catch (Throwable v1) {
                    }
                }
            }
            throw v0_8;
        } catch (Throwable v0_7) {
            try {
                throw v0_7;
            } catch (Throwable v1_4) {
                v2 = v0_7;
                v0_8 = v1_4;
            }
        }
        if (v9_1 != null) {
            if (0 == 0) {
                v9_1.close();
            } else {
                try {
                    v9_1.close();
                } catch (Throwable v0) {
                }
            }
        }
        return v8_1;
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.provider.n a(String[] p10, String p11, String[] p12, String p13)
    {
        return new ru.yandex.disk.provider.n(this.s().query("DISK_VIEW", p10, p11, p12, 0, 0, p13));
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor a(ru.yandex.disk.provider.ContentRequest p9)
    {
        return this.s().query(p9.b(), p9.c(), p9.d(), p9.e(), 0, 0, p9.f());
    }

Method ru.yandex.disk.photoslice.bk.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.photoslice.ax b()
    {
        return new ru.yandex.disk.photoslice.ax(this.e().query(this.b.c("MOMENT_ITEMS"), 0, "ROW_TYPE IS NULL OR ROW_TYPE != 2", 0, 0, 0, "momentId DESC, syncId DESC"));
    }

Method ru.yandex.disk.photoslice.bk.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.photoslice.az a(String p10)
    {
        android.database.Cursor v0_0 = this.b(p10);
        String v1_1 = new String[3];
        v1_1[0] = new StringBuilder().append("locality_").append(v0_0).append(" AS ").append("locality").toString();
        v1_1[1] = new StringBuilder().append("places_").append(v0_0).append(" AS ").append("places").toString();
        v1_1[2] = "*";
        return new ru.yandex.disk.photoslice.az(this.e().query(this.b.c("MOMENTS"), ru.yandex.disk.util.h.a(v1_1), "itemsCount > 0", 0, 0, 0, "syncId DESC"));
    }

Method ru.yandex.disk.photoslice.bk.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.photoslice.ax a()
    {
        return new ru.yandex.disk.photoslice.ax(this.e().query(this.b.c("MOMENT_ITEMS"), 0, 0, 0, 0, 0, "momentId DESC, syncId DESC"));
    }

Method ru.yandex.disk.photoslice.bk.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public int a(ru.yandex.disk.provider.ContentRequest p10)
    {
        int v5 = 0;
        android.database.Cursor v2_0 = this.e().query(this.b.c("MOMENT_ITEMS"), p10.c(), p10.d(), p10.e(), 0, 0, 0);
        try {
            Throwable v0_4;
            if (!v2_0.moveToFirst()) {
                if (v2_0 != null) {
                    if (0 == 0) {
                        v2_0.close();
                    } else {
                        try {
                            v2_0.close();
                        } catch (Throwable v0) {
                        }
                    }
                }
                v0_4 = 0;
            } else {
                v0_4 = (v2_0.getInt(0) - 1);
                if (v2_0 != null) {
                    if (0 == 0) {
                        v2_0.close();
                    } else {
                        try {
                            v2_0.close();
                        } catch (Throwable v1) {
                        }
                    }
                }
            }
        } catch (Throwable v0_2) {
            if (v2_0 != null) {
                if (v5 == 0) {
                    v2_0.close();
                } else {
                    try {
                        v2_0.close();
                    } catch (Throwable v1) {
                    }
                }
            }
            throw v0_2;
        } catch (Throwable v0_1) {
            try {
                throw v0_1;
            } catch (Throwable v1_0) {
                v5 = v0_1;
                v0_2 = v1_0;
            }
        }
        return v0_4;
    }

Method ru.yandex.disk.photoslice.bb.m() calling method android.database.sqlite.SQLiteDatabase.query()


    public boolean m()
    {
        Throwable v4 = 0;
        Throwable v0_0 = this.o();
        Throwable v1_2 = this.d.c("MOMENTS");
        String[] v2_3 = new String[1];
        v2_3[0] = "itemsCount";
        Throwable v1_0 = v0_0.query(v1_2, ru.yandex.disk.util.h.a(v2_3), "itemsCount > 0", 0, 0, 0, 0);
        try {
            Throwable v0_1 = v1_0.moveToFirst();
        } catch (Throwable v4) {
            throw v4;
        } catch (Throwable v0_2) {
            if (v1_0 != null) {
                if (v4 == null) {
                    v1_0.close();
                } else {
                    try {
                        v1_0.close();
                    } catch (Throwable v1) {
                    }
                }
            }
            throw v0_2;
        }
        if (v1_0 != null) {
            if (0 == 0) {
                v1_0.close();
            } else {
                try {
                    v1_0.close();
                } catch (Throwable v1) {
                }
            }
        }
        return v0_1;
    }

Method ru.yandex.disk.photoslice.bb.a() calling method android.database.sqlite.SQLiteDatabase.query()


    ru.yandex.disk.photoslice.av a(com.yandex.b.a p10)
    {
        return new ru.yandex.disk.photoslice.av(this.o().query(this.d.c("MOMENT_TO_MOMENT_ITEM"), 0, "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(p10), 0, 0, 0));
    }

Method ru.yandex.disk.photoslice.bb.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.photoslice.at a(String p10)
    {
        android.database.Cursor v0_1 = this.o();
        String v1_1 = this.d.b("MOMENTS");
        String[] v4_1 = new String[1];
        v4_1[0] = p10;
        return new ru.yandex.disk.photoslice.at(v0_1.query(v1_1, ark>ru.yandex.disk.photoslice.bbark>.a, "syncId = ?", ru.yandex.disk.util.h.a(v4_1), 0, 0, 0));
    }

Method ru.yandex.disk.photoslice.bb.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public String a(String p10, String p11)
    {
        String v2 = 0;
        Throwable v0_3 = this.o();
        Throwable v1_2 = this.d.c("MOMENT_TO_MOMENT_ITEM");
        String[] v4_0 = new String[2];
        v4_0[0] = p10;
        v4_0[1] = p11;
        ru.yandex.disk.photoslice.av v8_1 = new ru.yandex.disk.photoslice.av(v0_3.query(v1_2, 0, "momentId = ? AND syncId = ?", ru.yandex.disk.util.h.a(v4_0), 0, 0, 0));
        try {
            if (!v8_1.moveToFirst()) {
                if (v8_1 != null) {
                    if (0 == 0) {
                        v8_1.close();
                    } else {
                        try {
                            v8_1.close();
                        } catch (Throwable v0) {
                        }
                    }
                }
            } else {
                Throwable v0_5 = v8_1.b();
                if (v8_1 != null) {
                    if (0 == 0) {
                        v8_1.close();
                    } else {
                        try {
                            v8_1.close();
                        } catch (Throwable v1) {
                        }
                    }
                }
                v2 = v0_5;
            }
        } catch (Throwable v0_4) {
            if (v8_1 != null) {
                if (v2 == null) {
                    v8_1.close();
                } else {
                    try {
                        v8_1.close();
                    } catch (Throwable v1) {
                    }
                }
            }
            throw v0_4;
        } catch (Throwable v0_2) {
            try {
                throw v0_2;
            } catch (Throwable v1_0) {
                v2 = v0_2;
                v0_4 = v1_0;
            }
        }
        return v2;
    }

Method ru.yandex.disk.photoslice.bb.c() calling method android.database.sqlite.SQLiteDatabase.query()


    private ru.yandex.disk.photoslice.at c(String p10)
    {
        return new ru.yandex.disk.photoslice.at(this.o().query(p10, 0, 0, 0, 0, 0, 0));
    }

Method ru.yandex.disk.operation.OperationsDatabase.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.LinkedList a(ru.yandex.disk.operation.OperationLists$State p10)
    {
        java.util.LinkedList v0_3 = this.g();
        String[] v4_2 = new Object[1];
        v4_2[0] = Integer.valueOf(p10.getCode());
        ark>ru.yandex.disk.operation.OperationsDatabaseark>$a v8_1 = new ark>ru.yandex.disk.operation.OperationsDatabaseark>$a(v0_3.query("OPERATIONS", 0, "state = ?", ru.yandex.disk.util.h.a(v4_2), 0, 0, "added"));
        java.util.LinkedList v0_2 = new java.util.LinkedList();
        while (v8_1.moveToNext()) {
            v0_2.add(this.a(v8_1));
        }
        v8_1.close();
        return v0_2;
    }

Method ru.yandex.disk.operation.OperationsDatabase.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private boolean a(String p10)
    {
        int v0_2;
        android.database.Cursor v1_0 = this.g().query("OPERATIONS", ru.yandex.disk.q.c.a, p10, 0, 0, 0, 0);
        if ((!v1_0.moveToFirst()) || (v1_0.getInt(0) == 0)) {
            v0_2 = 0;
        } else {
            v0_2 = 1;
        }
        v1_0.close();
        return v0_2;
    }

Method ru.yandex.disk.l.d.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private ark>ru.yandex.disk.l.dark>$a a(String[] p10, String p11, String[] p12, String p13)
    {
        return new ark>ru.yandex.disk.l.dark>$a(this.b.getReadableDatabase().query("FILE_INDEX", p10, p11, p12, 0, 0, p13));
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.findSessionByOutputData() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$SessionColumns$SessionWrapper findSessionByOutputData(android.net.Uri p9, String p10, String[] p11)
    {
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$SessionColumns$SessionWrapper v5 = 0;
        if ((!android.text.TextUtils.isEmpty(p10)) || (p9 != null)) {
            String[] v2_4 = new StringBuilder();
            String[] v4_3 = new java.util.ArrayList();
            if (p9 != null) {
                v2_4.append("session_output_data=?");
                v4_3.add(p9.toString());
            }
            if (!android.text.TextUtils.isEmpty(p10)) {
                if (v4_3.size() > 0) {
                    v2_4.append(" OR ");
                }
                v2_4.append("session_output_path=?");
                v4_3.add(p10);
            }
            boolean v1_0 = this.getReadableDatabase();
            String v0_8 = new android.database.sqlite.SQLiteQueryBuilder();
            v0_8.setTables("sessions");
            String[] v2_1 = new String[v4_3.size()];
            String v0_9 = v0_8.query(v1_0, p11, v2_4.toString(), ((String[]) v4_3.toArray(v2_1)), 0, 0, 0);
            if (v0_9.moveToFirst()) {
                v5 = com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$SessionColumns$SessionWrapper.create(v0_9);
            }
            com.adobe.android.common.util.IOUtils.closeSilently(v0_9);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.findSession() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$SessionColumns$SessionWrapper findSession(long p10)
    {
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$SessionColumns$SessionWrapper v5 = 0;
        boolean v1_0 = this.getReadableDatabase();
        android.database.Cursor v0_2 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_2.setTables("sessions");
        String[] v2_0 = new String[11];
        v2_0[0] = "session_id";
        v2_0[1] = "session_data";
        v2_0[2] = "session_mp";
        v2_0[3] = "session_orientation";
        v2_0[4] = "session_creation_time";
        v2_0[5] = "session_output_data";
        v2_0[6] = "session_output_width";
        v2_0[7] = "session_output_height";
        v2_0[8] = "session_input_width";
        v2_0[9] = "session_input_height";
        v2_0[10] = "session_last_action";
        String[] v4_9 = new String[1];
        v4_9[0] = String.valueOf(p10);
        android.database.Cursor v0_1 = v0_2.query(v1_0, v2_0, "session_id=?", v4_9, 0, 0, 0);
        if (v0_1.moveToFirst()) {
            v5 = com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$SessionColumns$SessionWrapper.create(v0_1);
        }
        com.adobe.android.common.util.IOUtils.closeSilently(v0_1);
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.findActionGreaterThan() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ActionWrapper findActionGreaterThan(long p12, long p14)
    {
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ActionWrapper v1_0 = this.getReadableDatabase();
        android.database.Cursor v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("actions");
        long v2_6 = new String[5];
        v2_6[0] = "action_id";
        v2_6[1] = "action_session_id";
        v2_6[2] = "action_bitmap_ptr";
        v2_6[3] = "action_action";
        v2_6[4] = "action_recipe";
        long v4_5 = new String[2];
        v4_5[0] = String.valueOf(p12);
        v4_5[1] = String.valueOf(p14);
        android.database.Cursor v0_2 = v0_1.query(v1_0, v2_6, "action_session_id=? AND action_id>?", v4_5, 0, 0, "action_id ASC", "0, 1");
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ActionWrapper v1_1 = 0;
        if ((v0_2 == null) || ((!v0_2.moveToFirst()) || (v0_2.getColumnCount() != 5))) {
            long v4_7 = new Object[2];
            v4_7[0] = Long.valueOf(p14);
            v4_7[1] = Long.valueOf(p12);
            com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.warn("unable to find any action > %d (%d)", v4_7);
        } else {
            v1_1 = new com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper$ActionWrapper(v0_2.getLong(0), v0_2.getLong(1), v0_2.getLong(2), v0_2.getBlob(3), v0_2.getBlob(4));
        }
        com.adobe.android.common.util.IOUtils.closeSilently(v0_2);
        return v1_1;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.findActionByBitmap() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public long findActionByBitmap(long p10, long p12)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.getReadableDatabase();
        long v0_5 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_5.setTables("actions");
        android.database.Cursor v2_2 = new String[1];
        v2_2[0] = "action_id";
        String[] v4_1 = new String[2];
        v4_1[0] = String.valueOf(p10);
        v4_1[1] = String.valueOf(p12);
        android.database.Cursor v2_0 = v0_5.query(v1, v2_2, "action_session_id=? AND action_bitmap_ptr=?", v4_1, 0, 0, 0);
        try {
            long v0_2;
            if (!v2_0.moveToFirst()) {
                com.adobe.android.common.util.IOUtils.closeSilently(v2_0);
                v0_2 = -1;
            } else {
                v0_2 = v2_0.getLong(0);
                com.adobe.android.common.util.IOUtils.closeSilently(v2_0);
            }
        } catch (long v0_1) {
            com.adobe.android.common.util.IOUtils.closeSilently(v2_0);
            throw v0_1;
        }
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDefaultContentLoader.getPackByIdentifier() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public android.database.Cursor getPackByIdentifier(android.database.sqlite.SQLiteDatabase p9, String p10, String[] p11)
    {
        android.database.Cursor v0_2 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_2.setTables("packs_table");
        String[] v4 = new String[1];
        v4[0] = p10;
        return v0_2.query(p9, p11, "pack_identifier=?", v4, 0, 0, 0);
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPacksContent() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPacksContent(String[] p9, String p10, String[] p11, String p12)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            v5 = v0_1.query(v1_1, p9, p10, p11, 0, 0, p12);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPacks() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPacks(String[] p9, String p10, String[] p11)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            v5 = v0_1.query(v1_1, p9, p10, p11, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackItems() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackItems(int p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN items_table ON (packs_table.pack_id = items_table.item_packId)");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = String.valueOf(p9);
            v5 = v0_1.query(v1_1, p10, "pack_id=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackItemByIdentifier() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackItemByIdentifier(String p9, String p10, String[] p11, String p12, String[] p13)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table, content_table, items_table");
        v0_1.appendWhere("pack_id= content_packId AND item_packId=pack_id");
        v0_1.appendWhere(" AND pack_identifier=");
        v0_1.appendWhereEscapeString(p9);
        v0_1.appendWhere(" AND item_identifier=");
        v0_1.appendWhereEscapeString(p10);
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            v5 = v0_1.query(v1_1, p11, p12, p13, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackItemById() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackItemById(long p10, String[] p12)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("items_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = String.valueOf(p10);
            v5 = v0_1.query(v1_1, p12, "item_id=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackIdOfDownload() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackIdOfDownload(String p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_download_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = String.valueOf(p9);
            v5 = v0_1.query(v1_1, p10, "download_refId=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackDownloadStatus() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackDownloadStatus(String p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_download_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = String.valueOf(p9);
            v5 = v0_1.query(v1_1, p10, "download_packId=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackContentByIdentifier() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackContentByIdentifier(String p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = p9;
            v5 = v0_1.query(v1_1, p10, "packs_table.pack_identifier=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackContentById() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackContentById(int p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        android.database.sqlite.SQLiteDatabase v1 = this.getReadableDatabase();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        if (v1 != null) {
            String[] v4 = new String[1];
            v4[0] = String.valueOf(p9);
            v5 = v0_1.query(v1, p10, "packs_table.pack_id=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackByIdentifier() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackByIdentifier(String p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = p9;
            v5 = v0_1.query(v1_1, p10, "pack_identifier=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackById() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getPackById(long p10, String[] p12)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = String.valueOf(p10);
            v5 = v0_1.query(v1_1, p12, "pack_id=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getNextMessage() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getNextMessage(String p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("messages_table JOIN messages_content_table ON (messages_table.msg_id = messages_content_table.msgcnt_messageId), packs_table, content_table");
        String[] v4 = new String[1];
        v4[0] = p9;
        android.database.sqlite.SQLiteDatabase v1_0 = this.getReadableDatabase();
        if (v1_0 != null) {
            v5 = v0_1.query(v1_0, p10, "msg_type=? AND msgcnt_visited=0 AND msgcnt_contentPath IS NULL AND ( strftime(\'%s\', datetime(\'now\')) BETWEEN strftime(\'%s\',msgcnt_beginDate) AND strftime(\'%s\', msgcnt_endDate) ) AND pack_id=content_packId AND pack_identifier=msgcnt_contentIdentifier AND content_purchased=0", v4, 0, 0, "msgcnt_beginDate DESC");
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getMessages() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getMessages(String[] p9, String p10, String[] p11)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("messages_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            v5 = v0_1.query(v1_1, p9, p10, p11, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getMessageContent() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getMessageContent(long p10, String[] p12)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("messages_table JOIN messages_content_table ON (messages_table.msg_id = messages_content_table.msgcnt_messageId)");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = String.valueOf(p10);
            v5 = v0_1.query(v1_1, p12, "msg_id=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getMessageByIdentifier() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getMessageByIdentifier(String p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("messages_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = p9;
            v5 = v0_1.query(v1_1, p10, "msg_identifier=?", v4, 0, 0, 0);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getManifestVersion() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getManifestVersion(String[] p9)
    {
        android.database.Cursor v3 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("version_table");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            v3 = v0_1.query(v1_1, p9, 0, 0, 0, 0, "version_id DESC");
        }
        return v3;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getInstalledPacksByType() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getInstalledPacksByType(String p9, String[] p10, String p11)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        String[] v4 = new String[1];
        v4[0] = p9;
        android.database.sqlite.SQLiteDatabase v1_0 = this.getReadableDatabase();
        if (v1_0 != null) {
            v5 = v0_1.query(v1_0, p10, "content_purchased=1  AND pack_type=? AND pack_markedForDeletion=0 AND ifnull(length(content_contentPath), 0) > 0", v4, 0, 0, p11);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getInstalledPacks() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getInstalledPacks(String[] p9, String p10, String[] p11, String p12)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        v0_1.appendWhere("content_purchased=1 AND ");
        v0_1.appendWhere("pack_markedForDeletion=0 AND ");
        v0_1.appendWhere("content_contentPath NOT NULL");
        android.database.sqlite.SQLiteDatabase v1_0 = this.getReadableDatabase();
        if (v1_0 != null) {
            v5 = v0_1.query(v1_0, p9, p10, p11, 0, 0, p12);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getHiddenPacksByType() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getHiddenPacksByType(String p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.Cursor v3 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        v0_1.appendWhere("pack_finishedDownloading=1 AND ");
        v0_1.appendWhere(new StringBuilder().append("pack_type=\'").append(p9).append("\' AND ").toString());
        android.database.sqlite.SQLiteDatabase v1_5 = new StringBuilder();
        v1_5.append("pack_visible=0 AND content_purchased=0");
        if (p11 != null) {
            v1_5.append(" AND ");
            v1_5.append(p11);
        }
        v1_5.append(" AND ");
        v0_1.appendWhere(v1_5);
        v0_1.appendWhere("pack_markedForDeletion=0 ");
        android.database.sqlite.SQLiteDatabase v1_8 = this.getReadableDatabase();
        if (v1_8 != null) {
            v3 = v0_1.query(v1_8, p10, 0, 0, 0, 0, p13);
        }
        return v3;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getFutureMessages() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getFutureMessages(String p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("messages_table JOIN messages_content_table ON (messages_table.msg_id = messages_content_table.msgcnt_messageId), packs_table, content_table");
        String[] v4 = new String[1];
        v4[0] = p9;
        android.database.sqlite.SQLiteDatabase v1_0 = this.getReadableDatabase();
        if (v1_0 != null) {
            v5 = v0_1.query(v1_0, p10, "msg_type=? AND msgcnt_visited=0 AND ( strftime(\'%s\', datetime(\'now\')) BETWEEN strftime(\'%s\',msgcnt_beginDate) AND strftime(\'%s\', msgcnt_endDate) ) AND pack_id=content_packId AND pack_identifier=msgcnt_contentIdentifier AND content_purchased=0", v4, 0, 0, "msgcnt_beginDate DESC");
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getAvailablePacksByType() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getAvailablePacksByType(String p9, String[] p10, String p11, String[] p12, String p13)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        v0_1.appendWhere("pack_finishedDownloading=1 AND ");
        v0_1.appendWhere(new StringBuilder().append("pack_type=\'").append(p9).append("\' AND ").toString());
        v0_1.appendWhere("(pack_visible=1 OR (pack_visible=0 AND content_purchased=1)) AND ");
        v0_1.appendWhere("pack_markedForDeletion=0 ");
        android.database.sqlite.SQLiteDatabase v1_6 = this.getReadableDatabase();
        if (v1_6 != null) {
            v5 = v0_1.query(v1_6, p10, p11, p12, 0, 0, p13);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getAvailableForRestorePacksByType() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getAvailableForRestorePacksByType(String p9, String[] p10, String p11)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("packs_table JOIN content_table ON (packs_table.pack_id = content_table.content_packId)");
        android.database.sqlite.SQLiteDatabase v1_1 = this.getReadableDatabase();
        if (v1_1 != null) {
            String[] v4 = new String[1];
            v4[0] = p9;
            v5 = v0_1.query(v1_1, p10, "(content_purchased=0 OR ifnull(length(content_contentPath), 0) < 1 ) AND pack_type=? AND pack_markedForDeletion=0", v4, 0, 0, p11);
        }
        return v5;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getActiveMessage() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    android.database.Cursor getActiveMessage(String p9, String[] p10)
    {
        android.database.Cursor v5 = 0;
        android.database.sqlite.SQLiteQueryBuilder v0_1 = new android.database.sqlite.SQLiteQueryBuilder();
        v0_1.setTables("messages_table JOIN messages_content_table ON (messages_table.msg_id = messages_content_table.msgcnt_messageId), packs_table, content_table");
        String[] v4 = new String[1];
        v4[0] = p9;
        android.database.sqlite.SQLiteDatabase v1_0 = this.getReadableDatabase();
        if (v1_0 != null) {
            v5 = v0_1.query(v1_0, p10, "msg_type=? AND msgcnt_visited=0 AND msgcnt_contentPath NOT NULL AND (strftime(\'%s\', datetime(\'now\')) BETWEEN strftime(\'%s\',msgcnt_beginDate) AND strftime(\'%s\', msgcnt_endDate)) AND pack_id=content_packId AND pack_identifier=msgcnt_contentIdentifier AND content_purchased=0", v4, 0, 0, "msgcnt_beginDate DESC");
        }
        return v5;
    }

Method com.yandex.datasync.internal.database.sql.b.a() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public int a(String p8, android.content.ContentValues p9, String p10, String[] p11)
    {
        try {
            int v1_1 = this.a.updateWithOnConflict(p8, p9, p10, p11, 3);
            this.d.a(v1_1, p8, p10, p11, p9);
        } catch (int v1_0) {
            try {
                this.d.a(v1_0, p8, p9, p10, p11);
                v1_1 = 0;
            } catch (com.yandex.datasync.internal.database.excpetions.SetToUpdateException v0) {
                v1_1 = 0;
            }
        }
        return v1_1;
    }

Method ru.yandex.disk.provider.r.k() calling method android.database.sqlite.SQLiteDatabase.update()


    private void k(android.database.sqlite.SQLiteDatabase p4)
    {
        p4.execSQL("ALTER TABLE DISK ADD COLUMN ROW_TYPE INTEGER");
        p4.update("DISK", ru.yandex.disk.util.r.a("ROW_TYPE", 1), 0, 0);
        return;
    }

Method ru.yandex.disk.provider.e.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public int a(android.net.Uri p3, android.content.ContentValues p4, String p5, String[] p6)
    {
        int v0_2 = this.a.getWritableDatabase().update("CREDENTIAL", p4, p5, p6);
        this.a(p3);
        return v0_2;
    }

Method ru.yandex.disk.provider.au.q() calling method android.database.sqlite.SQLiteDatabase.update()


    private void q(android.database.sqlite.SQLiteDatabase p5)
    {
        p5.execSQL("ALTER TABLE DISK_QUEUE ADD COLUMN uploaded_time LONG");
        android.content.ContentValues v0_2 = new android.content.ContentValues(1);
        v0_2.put("state", Integer.valueOf(3));
        p5.update("DISK_QUEUE", v0_2, "state = 0", 0);
        this.s(p5);
        return;
    }

Method ru.yandex.disk.provider.au.n() calling method android.database.sqlite.SQLiteDatabase.update()


    private void n(android.database.sqlite.SQLiteDatabase p9)
    {
        String[] v2_3 = new String[2];
        v2_3[0] = "_id";
        v2_3[1] = "src_name";
        Throwable v0_0 = new Object[1];
        v0_0[0] = Integer.valueOf(0);
        android.database.Cursor v1_0 = p9.query("DISK_QUEUE", v2_3, "state != ? AND dest_name IS NULL", ru.yandex.disk.util.h.a(v0_0), 0, 0, 0);
        if (v1_0 != null) {
            try {
                p9.beginTransaction();
                Throwable v0_3 = new android.content.ContentValues(1);
                String[] v2_2 = new String[1];
            } catch (Throwable v0_4) {
                v1_0.close();
                p9.endTransaction();
                throw v0_4;
            }
            while (v1_0.moveToNext()) {
                v2_2[0] = String.valueOf(v1_0.getLong(0));
                v0_3.put("dest_name", com.yandex.b.a.a(v1_0.getString(1)).c());
                p9.update("DISK_QUEUE", v0_3, "_id = ?", v2_2);
            }
            p9.setTransactionSuccessful();
            v1_0.close();
            p9.endTransaction();
        }
        return;
    }

Method ru.yandex.disk.provider.au.d() calling method android.database.sqlite.SQLiteDatabase.update()


    private void d(android.database.sqlite.SQLiteDatabase p5)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues(1);
        v0_1.put("state", Integer.valueOf(3));
        p5.update("DISK_QUEUE", v0_1, "state = 4", 0);
        return;
    }

Method ru.yandex.disk.provider.ab.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public int a(android.net.Uri p4, android.content.ContentValues p5, String p6, String[] p7)
    {
        this.a(p5, p4);
        try {
            int v0_1 = this.a.getWritableDatabase().update("DISK_QUEUE", p5, this.a(p6, p4), p7);
        } catch (int v0) {
            v0_1 = 0;
            return v0_1;
        }
        if ((this.a(p5)) || ((p6 != null) && (p6.equals("from_autoupload = 1 AND state = 2")))) {
            return v0_1;
        } else {
            this.a(ru.yandex.disk.provider.DiskContentProvider.a(this.a(), "disk/with_queue"));
            return v0_1;
        }
    }

Method ru.yandex.disk.download.q.f() calling method android.database.sqlite.SQLiteDatabase.update()


    public void f(long p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.h();
        android.content.ContentValues v1_1 = new android.content.ContentValues(1);
        v1_1.put("state", Integer.valueOf(ru.yandex.disk.download.DownloadQueueItem$State.DONE.ordinal()));
        String[] v4_1 = new Object[1];
        v4_1[0] = Long.valueOf(p8);
        v0.update("queue", v1_1, "id = ?", ru.yandex.disk.util.h.a(v4_1));
        return;
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(ru.yandex.disk.download.DownloadQueueItem p9)
    {
        long v0_0 = this.c(p9);
        android.database.sqlite.SQLiteDatabase v1 = this.h();
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p9.d());
        if (((long) v1.update("queue", v0_0, "id = ?", ru.yandex.disk.util.h.a(v4_2))) == 0) {
            this.b(p9);
        }
        return;
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(long p8, ru.yandex.disk.ProgressValues p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.h();
        android.content.ContentValues v1_1 = new android.content.ContentValues(2);
        v1_1.put("downloadedSize", Long.valueOf(p10.c()));
        v1_1.put("size", Long.valueOf(p10.b()));
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p8);
        v0.update("queue", v1_1, "id = ?", ru.yandex.disk.util.h.a(v4_2));
        return;
    }

Method ru.yandex.disk.download.q.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public int a(long p8, String p10)
    {
        int v0_1 = new android.content.ContentValues();
        v0_1.put("unfinishedDownloadPath", p10);
        android.database.sqlite.SQLiteDatabase v1_1 = this.h();
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p8);
        return v1_1.update("queue", v0_1, "id = ?", ru.yandex.disk.util.h.a(v4_2));
    }

Method ru.yandex.common.clid.e.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private boolean a(android.database.sqlite.SQLiteDatabase p12, String p13, String p14)
    {
        android.content.ContentValues v0_0;
        String[] v4 = new String[1];
        v4[0] = p13;
        android.database.Cursor v1_0 = p12.query("apps", ark>ru.yandex.common.clid.eark>.b, "application=?", v4, 0, 0, 0, "1");
        if (v1_0 == null) {
            v0_0 = 0;
        } else {
            try {
                if (v1_0.moveToFirst()) {
                    if (!p14.equals(v1_0.getString(0))) {
                        android.content.ContentValues v0_6 = new android.content.ContentValues();
                        v0_6.put("state", p14);
                        p12.update("apps", v0_6, "application=?", v4);
                    }
                } else {
                    android.content.ContentValues v0_8 = new android.content.ContentValues();
                    v0_8.put("application", p13);
                    v0_8.put("state", p14);
                    p12.insert("apps", 0, v0_8);
                }
            } catch (android.content.ContentValues v0_9) {
                ru.yandex.searchlib.util.ab.a(v1_0);
                throw v0_9;
            }
            ru.yandex.searchlib.util.ab.a(v1_0);
            v0_0 = 1;
        }
        return v0_0;
    }

Method ru.yandex.common.clid.e.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private varargs long a(android.database.sqlite.SQLiteDatabase p3, String p4, android.content.ContentValues p5, String p6, String[] p7)
    {
        try {
            long v0_1 = ((long) p3.update(p4, p5, p6, p7));
        } catch (long v0_2) {
            ark>ru.yandex.common.clid.eark>.a("db.update()", v0_2);
            v0_1 = -1;
        }
        return v0_1;
    }

Method ru.yandex.disk.trash.u.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public void b(String p6)
    {
        String v1;
        String[] v0_0 = 0;
        if (p6 != null) {
            v1 = "path = ?";
        } else {
            v1 = 0;
        }
        if (p6 != null) {
            String[] v0_1 = new String[1];
            v0_1[0] = p6;
            v0_0 = ru.yandex.disk.util.h.a(v0_1);
        }
        int v2_1 = new android.content.ContentValues(1);
        v2_1.put("onlyForSync", Integer.valueOf(1));
        this.d().update("TRASH", v2_1, v1, v0_0);
        return;
    }

Method ru.yandex.disk.trash.u.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(ru.yandex.disk.trash.af p9)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.d();
        android.content.ContentValues v1 = p9.c();
        this.a(v1);
        String[] v5 = new String[1];
        v5[0] = v1.getAsString("path");
        if (v0.update("TRASH", v1, "path = ?", ru.yandex.disk.util.h.a(v5)) < 1) {
            v0.insert("TRASH", 0, v1);
        }
        return;
    }

Method ru.yandex.disk.provider.l.m() calling method android.database.sqlite.SQLiteDatabase.update()


    public void m()
    {
        this.a().update("DISK", ru.yandex.disk.util.r.a("OFFLINE_MARK", 0), 0, 0);
        return;
    }

Method ru.yandex.disk.provider.l.k() calling method android.database.sqlite.SQLiteDatabase.update()


    public void k()
    {
        this.a().update("DISK", ru.yandex.disk.util.r.b("ETAG_LOCAL"), new StringBuilder().append("OFFLINE_MARK = ").append(ru.yandex.disk.FileItem$OfflineMark.NOT_MARKED.getCode()).toString(), 0);
        return;
    }

Method ru.yandex.disk.provider.l.h() calling method android.database.sqlite.SQLiteDatabase.update()


    public void h(String p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.a();
        android.content.ContentValues v2_1 = ru.yandex.disk.util.r.a("PUBLIC_URL", 0);
        String[] v4_2 = new String[1];
        v4_2[0] = p7;
        v0.update("DISK", v2_1, "PUBLIC_URL = ?", ru.yandex.disk.util.h.a(v4_2));
        return;
    }

Method ru.yandex.disk.provider.l.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public void b(com.yandex.b.a p6, boolean p7)
    {
        android.content.ContentValues v0_0;
        if (!p7) {
            v0_0 = ru.yandex.disk.FileItem$OfflineMark.NOT_MARKED;
        } else {
            v0_0 = ru.yandex.disk.FileItem$OfflineMark.IN_OFFLINE_DIRECTORY;
        }
        android.content.ContentValues v0_2 = ru.yandex.disk.util.r.a("OFFLINE_MARK", v0_0.getCode());
        String[] v2_0 = new String[2];
        v2_0[0] = p6.d();
        v2_0[1] = ru.yandex.disk.q.b.b(p6.d());
        this.a().update("DISK", v0_2, ru.yandex.disk.provider.l.g, v2_0);
        return;
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public boolean a(com.yandex.b.a p8, String p9)
    {
        int v0_3;
        if (p9 != null) {
            v0_3 = ru.yandex.disk.util.r.a("ETAG_LOCAL", p9);
        } else {
            v0_3 = ru.yandex.disk.util.r.b("ETAG_LOCAL");
        }
        String[] v1_2;
        StringBuilder vtmp3 = new StringBuilder().append("PARENT = ? AND NAME = ? AND ");
        if (p9 == null) {
            v1_2 = "ETAG_LOCAL IS NOT NULL";
        } else {
            v1_2 = "(ETAG_LOCAL IS NULL OR ETAG_LOCAL <> ?)";
        }
        String[] v1_5;
        String v4_2 = vtmp3.append(v1_2).toString();
        if (p9 == null) {
            String[] v1_4 = new String[2];
            v1_4[0] = p8.b();
            v1_4[1] = p8.c();
            v1_5 = ru.yandex.disk.util.h.a(v1_4);
        } else {
            String[] v1_7 = new String[3];
            v1_7[0] = p8.b();
            v1_7[1] = p8.c();
            v1_7[2] = p9;
            v1_5 = ru.yandex.disk.util.h.a(v1_7);
        }
        int v0_2;
        if (this.a().update("DISK", v0_3, v4_2, v1_5) <= 0) {
            v0_2 = 0;
        } else {
            v0_2 = 1;
        }
        return v0_2;
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(ru.yandex.disk.FileItem p7, String p8)
    {
        this.a().update("DISK", ru.yandex.disk.util.r.a("PUBLIC_URL", p8), "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(new com.yandex.b.a(p7.e())));
        return;
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(com.yandex.b.a p6, boolean p7)
    {
        this.a().update("DISK", ru.yandex.disk.util.r.a("OFFLINE_MARK", p7), "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(p6));
        return;
    }

Method ru.yandex.disk.provider.l.b() calling method android.database.sqlite.SQLiteDatabase.update()


    private void b(ru.yandex.disk.provider.q p11, boolean p12)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.a();
        android.content.ContentValues v1 = p11.a();
        if (p12) {
            v1.put("ROW_TYPE", Integer.valueOf(1));
        }
        String v2_3 = ru.yandex.disk.util.m.a(v1.getAsBoolean("IS_DIR").booleanValue());
        int v3_1 = v1.getAsString("PARENT");
        String v4_1 = v1.getAsString("NAME");
        Object[] v7_1 = new Object[3];
        v7_1[0] = v3_1;
        v7_1[1] = v4_1;
        v7_1[2] = Integer.valueOf(v2_3);
        if (v0.update("DISK", v1, "PARENT = ? AND NAME = ? AND IS_DIR = ?", ru.yandex.disk.util.h.a(v7_1)) < 1) {
            v0.insert("DISK", 0, v1);
        }
        return;
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private void a(com.yandex.b.a p5, android.content.ContentValues p6)
    {
        this.a().update("DISK", p6, "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(p5));
        return;
    }

Method ru.yandex.disk.provider.l.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private void a(android.content.ContentValues p5, com.yandex.b.a p6)
    {
        this.a().update("DISK", p5, ark>ru.yandex.disk.provider.lark>.f, ru.yandex.disk.q.b.a(p6));
        return;
    }

Method ru.yandex.disk.photoslice.bb.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(String p6, android.content.ContentValues p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.p();
        String v1_1 = this.d.b("MOMENTS");
        String[] v3_2 = new String[1];
        v3_2[0] = p6;
        v0.update(v1_1, p7, "syncId = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.operation.OperationsDatabase.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public void b()
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues(3);
        v0_1.put("state", Integer.valueOf(ru.yandex.disk.operation.OperationLists$State.IN_QUEUE.getCode()));
        v0_1.put("attempts", Integer.valueOf(0));
        v0_1.putNull("statusCheckId");
        android.database.sqlite.SQLiteDatabase v1_2 = this.h();
        String[] v4_1 = new Object[1];
        v4_1[0] = Integer.valueOf(ru.yandex.disk.operation.OperationLists$State.FAILED.getCode());
        v1_2.update("OPERATIONS", v0_1, "state = ?", ru.yandex.disk.util.h.a(v4_1));
        return;
    }

Method ru.yandex.disk.operation.OperationsDatabase.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(ru.yandex.disk.operation.j p9, ru.yandex.disk.operation.OperationLists$State p10)
    {
        android.content.ContentValues v0 = this.c(p9, p10);
        android.database.sqlite.SQLiteDatabase v1 = this.h();
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p9.b());
        v1.update("OPERATIONS", v0, "_id = ?", ru.yandex.disk.util.h.a(v4_2));
        return;
    }

Method ru.yandex.disk.l.d.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(ru.yandex.disk.l.h p11)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.b.getWritableDatabase();
        android.content.ContentValues v1 = p11.a();
        String v2_5 = v1.getAsString("PARENT");
        int v3_0 = v1.getAsString("NAME");
        int v4_3 = ru.yandex.disk.util.m.a(v1.getAsBoolean("IS_DIR").booleanValue());
        Object[] v7_1 = new Object[3];
        v7_1[0] = v2_5;
        v7_1[1] = v3_0;
        v7_1[2] = Integer.valueOf(v4_3);
        if (v0_1.update("FILE_INDEX", v1, "PARENT = ? AND NAME = ? AND IS_DIR = ?", ru.yandex.disk.util.h.a(v7_1)) < 1) {
            v0_1.insert("FILE_INDEX", 0, v1);
        }
        return;
    }

Method ru.yandex.disk.l.d.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(String p10, String p11)
    {
        String[] v0_2 = new com.yandex.b.a(p10);
        android.content.ContentValues v1_1 = new android.content.ContentValues(1);
        v1_1.put("INDEX_ETAG", p11);
        android.database.sqlite.SQLiteDatabase v2_2 = this.b.getWritableDatabase();
        Object[] v5_1 = new Object[2];
        v5_1[0] = v0_2.a();
        v5_1[1] = v0_2.c();
        v2_2.update("FILE_INDEX", v1_1, "PARENT = ? AND NAME = ?", ru.yandex.disk.util.h.a(v5_1));
        return;
    }

Method ru.yandex.disk.feed.cc.j() calling method android.database.sqlite.SQLiteDatabase.update()


    public void j()
    {
        this.r().update("FEED_BLOCKS", ru.yandex.disk.util.r.a("status", 0), "status = -10", 0);
        return;
    }

Method ru.yandex.disk.feed.cc.c() calling method android.database.sqlite.SQLiteDatabase.update()


    public void c(ru.yandex.disk.feed.bo p8)
    {
        android.content.ContentValues v0 = this.f(p8);
        v0.put("status", Integer.valueOf(10));
        android.database.sqlite.SQLiteDatabase v1_1 = this.r();
        String[] v4_1 = new String[1];
        v4_1[0] = p8.l();
        v1_1.update("FEED_BLOCKS", v0, "remote_id = ?", ru.yandex.disk.util.h.a(v4_1));
        return;
    }

Method ru.yandex.disk.feed.cc.c() calling method android.database.sqlite.SQLiteDatabase.update()


    public void c(long p8, String p10)
    {
        android.content.ContentValues v0_1 = ru.yandex.disk.util.r.a("modifier_uid", p10);
        android.database.sqlite.SQLiteDatabase v1 = this.r();
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p8);
        v1.update("FEED_BLOCKS", v0_1, "_id = ?", ru.yandex.disk.util.h.a(v4_2));
        return;
    }

Method ru.yandex.disk.feed.cc.c() calling method android.database.sqlite.SQLiteDatabase.update()


    public void c(long p8, int p10)
    {
        android.content.ContentValues v0_1 = ru.yandex.disk.util.r.a("files_count", p10);
        android.database.sqlite.SQLiteDatabase v1 = this.r();
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p8);
        v1.update("FEED_BLOCKS", v0_1, "_id = ?", ru.yandex.disk.util.h.a(v4_2));
        return;
    }

Method ru.yandex.disk.feed.cc.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public void b(long p8, String p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.r();
        android.content.ContentValues v2_1 = ru.yandex.disk.util.r.a("file_id", p10);
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p8);
        v0.update("FEED_BLOCKS", v2_1, "_id = ?", ru.yandex.disk.util.h.a(v4_2));
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(ru.yandex.disk.feed.bo p8, int p9, int p10, int p11, int p12)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues(4);
        v0_1.put("views_count", Integer.valueOf(p9));
        v0_1.put("comments_count", Integer.valueOf(p10));
        v0_1.put("likes_count", Integer.valueOf(p11));
        v0_1.put("dislikes_count", Integer.valueOf(p12));
        android.database.sqlite.SQLiteDatabase v1_3 = this.r();
        String[] v4_1 = new String[1];
        v4_1[0] = p8.l();
        v1_3.update("FEED_BLOCKS", v0_1, "remote_id = ?", ru.yandex.disk.util.h.a(v4_1));
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(com.yandex.b.a p6, String p7)
    {
        this.r().update("FEED_BLOCK_TO_FILE", ru.yandex.disk.util.r.a("NAME", p7), "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(p6));
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(long p8, String p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.r();
        android.content.ContentValues v2_1 = ru.yandex.disk.util.r.a("folder_id", p10);
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p8);
        v0.update("FEED_BLOCKS", v2_1, "_id = ?", ru.yandex.disk.util.h.a(v4_2));
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(long p10, int p12, int p13, com.yandex.b.a p14)
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("BLOCK_ID", Long.valueOf(p10));
        v0_1.put("FRACTION", Integer.valueOf(p13));
        v0_1.put("FIRST_FRACTION_ORDER", Integer.valueOf(p12));
        v0_1.put("PARENT", p14.b());
        v0_1.put("NAME", p14.c());
        v0_1.put("SERVER_ORDER", Integer.valueOf(p12));
        android.database.sqlite.SQLiteDatabase v1_4 = this.r();
        String[] v4_1 = new Object[2];
        v4_1[0] = Long.valueOf(p10);
        v4_1[1] = Integer.valueOf(p12);
        if (v1_4.update("FEED_BLOCK_TO_FILE", v0_1, "BLOCK_ID = ? AND SERVER_ORDER = ?", ru.yandex.disk.util.h.a(v4_1)) < 1) {
            v1_4.insert("FEED_BLOCK_TO_FILE", 0, v0_1);
        }
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private void a(long p8, android.content.ContentValues p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.r();
        String[] v3_2 = new Object[1];
        v3_2[0] = Long.valueOf(p8);
        v0.update("FEED_BLOCKS", p10, "_id = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private void a(long p8, int p10, android.content.ContentValues p11)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.r();
        String[] v3_2 = new Object[2];
        v3_2[0] = Long.valueOf(p8);
        v3_2[1] = Integer.valueOf(p10);
        v0.update("FEED_BLOCK_TO_FILE", p11, "BLOCK_ID = ? AND SERVER_ORDER = ?", ru.yandex.disk.util.h.a(v3_2));
        return;
    }

Method ru.yandex.disk.asyncbitmap.an.d() calling method android.database.sqlite.SQLiteDatabase.update()


    public void d()
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues(1);
        v0_1.put("state", Integer.valueOf(ru.yandex.disk.asyncbitmap.PreviewCacheRecord$State.NOT_LOADED.getCode()));
        this.l().update("PreviewsDatabaseTable", v0_1, 0, 0);
        return;
    }

Method ru.yandex.disk.asyncbitmap.an.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(java.util.List p7)
    {
        android.database.sqlite.SQLiteDatabase v1 = this.l();
        v1.beginTransaction();
        try {
            android.content.ContentValues v2_1 = new android.content.ContentValues(1);
            v2_1.putNull("goldenPreviewEtag");
            java.util.Iterator v3 = p7.iterator();
        } catch (String[] v0_1) {
            v1.endTransaction();
            throw v0_1;
        }
        while (v3.hasNext()) {
            v1.update("PreviewsDatabaseTable", v2_1, "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(((com.yandex.b.a) v3.next())));
        }
        v1.setTransactionSuccessful();
        v1.endTransaction();
        return;
    }

Method ru.yandex.disk.asyncbitmap.an.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private void a(com.yandex.b.a p5, android.content.ContentValues p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.l();
        if (v0.update("PreviewsDatabaseTable", p6, "PARENT = ? AND NAME = ?", ru.yandex.disk.util.bl.a(p5)) == 0) {
            p6.put("PARENT", p5.b());
            p6.put("NAME", p5.c());
            v0.insert("PreviewsDatabaseTable", 0, p6);
        }
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.update()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p12, int p13, int p14)
    {
        if (p13 < 3) {
            p12.delete("upload_blob_events", 0, 0);
            p12.delete("event_history", 0, 0);
            p12.delete("upload_blobs", 0, 0);
            p12.delete("attributes", 0, 0);
            p12.delete("events", 0, 0);
            p12.delete("sessions", 0, 0);
        }
        if (p13 < 4) {
            int v1_37 = new Object[2];
            v1_37[0] = "sessions";
            v1_37[1] = "iu";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_37));
        }
        if (p13 < 5) {
            int v1_47 = new Object[2];
            v1_47[0] = "sessions";
            v1_47[1] = "device_wifi_mac_hash";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_47));
        }
        if (p13 < 6) {
            try {
                String v2_112 = new String[2];
                v2_112[0] = "_id";
                v2_112[1] = "attribute_key";
                int v1_78 = p12.query("attributes", v2_112, 0, 0, 0, 0, 0);
                try {
                    String v0_102 = v1_78.getColumnIndexOrThrow("_id");
                    String v2_128 = v1_78.getColumnIndexOrThrow("attribute_key");
                    int v3_117 = new android.content.ContentValues();
                    int v5_7 = new Object[1];
                    v5_7[0] = "_id";
                    Object[] v4_11 = String.format("%s = ?", v5_7);
                    int v5_9 = new String[1];
                    v1_78.moveToPosition(-1);
                } catch (String v0_100) {
                    if (v1_78 != 0) {
                        v1_78.close();
                    }
                    throw v0_100;
                }
                while (v1_78.moveToNext()) {
                    int v8_3 = new Object[2];
                    v8_3[0] = this.mLocalyticsDao.getAppContext().getPackageName();
                    v8_3[1] = v1_78.getString(v2_128);
                    v3_117.put("attribute_key", String.format("%s:%s", v8_3));
                    v5_9[0] = Long.toString(v1_78.getLong(v0_102));
                    p12.update("attributes", v3_117, v4_11, v5_9);
                    v3_117.clear();
                }
                if (v1_78 != 0) {
                    v1_78.close();
                }
            } catch (String v0_100) {
                v1_78 = 0;
            }
        }
        if (p13 < 7) {
            int v1_1 = new Object[3];
            v1_1[0] = "info";
            v1_1[1] = "fb_attribution";
            v1_1[2] = "first_run";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s TEXT, %s INTEGER);", v1_1));
            String v0_6 = new android.content.ContentValues();
            v0_6.putNull("fb_attribution");
            v0_6.put("first_run", Boolean.FALSE);
            p12.insertOrThrow("info", 0, v0_6);
        }
        if (p13 < 8) {
            int v1_7 = new Object[4];
            v1_7[0] = "identifiers";
            v1_7[1] = "_id";
            v1_7[2] = "key";
            v1_7[3] = "value";
            p12.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_7));
        }
        if (p13 < 9) {
            int v1_10 = new Object[2];
            v1_10[0] = "events";
            v1_10[1] = "clv_increase";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL DEFAULT 0;", v1_10));
        }
        if (p13 < 10) {
            int v1_12 = new Object[2];
            v1_12[0] = "info";
            v1_12[1] = "play_attribution";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_12));
        }
        if (p13 < 11) {
            int v1_14 = new Object[2];
            v1_14[0] = "info";
            v1_14[1] = "registration_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_14));
            int v1_17 = new Object[2];
            v1_17[0] = "info";
            v1_17[1] = "registration_version";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_17));
        }
        if (p13 < 12) {
            int v1_19 = new Object[2];
            v1_19[0] = "info";
            v1_19[1] = "first_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_19));
            int v1_21 = new Object[2];
            v1_21[0] = "info";
            v1_21[1] = "first_telephony_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_21));
            int v1_24 = new Object[2];
            v1_24[0] = "info";
            v1_24[1] = "package_name";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_24));
            String v0_33 = new android.content.ContentValues();
            v0_33.put("first_android_id", com.localytics.android.DatapointHelper.getAndroidIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("first_telephony_id", com.localytics.android.DatapointHelper.getTelephonyDeviceIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("package_name", this.mLocalyticsDao.getAppContext().getPackageName());
            p12.update("info", v0_33, 0, 0);
            int v1_30 = new Object[2];
            v1_30[0] = "sessions";
            v1_30[1] = "device_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_30));
        }
        if (p13 < 13) {
            int v1_32 = new Object[2];
            v1_32[0] = "events";
            v1_32[1] = "event_lat";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_32));
            int v1_35 = new Object[2];
            v1_35[0] = "events";
            v1_35[1] = "event_lng";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_35));
        }
        if (p13 < 14) {
            int v1_39 = new Object[19];
            v1_39[0] = "amp_rules";
            v1_39[1] = "_id";
            v1_39[2] = "campaign_id";
            v1_39[3] = "expiration";
            v1_39[4] = "display_seconds";
            v1_39[5] = "display_session";
            v1_39[6] = "version";
            v1_39[7] = "phone_location";
            v1_39[8] = "phone_size_width";
            v1_39[9] = "phone_size_height";
            v1_39[10] = "tablet_location";
            v1_39[11] = "tablet_size_width";
            v1_39[12] = "tablet_size_height";
            v1_39[13] = "time_to_display";
            v1_39[14] = "internet_required";
            v1_39[15] = "ab_test";
            v1_39[16] = "rule_name";
            v1_39[17] = "location";
            v1_39[18] = "devices";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER NOT NULL, %s TEXT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_39));
            int v1_41 = new Object[6];
            v1_41[0] = "amp_ruleevent";
            v1_41[1] = "_id";
            v1_41[2] = "event_name";
            v1_41[3] = "rule_id_ref";
            v1_41[4] = "amp_rules";
            v1_41[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_41));
            int v1_43 = new Object[4];
            v1_43[0] = "amp_displayed";
            v1_43[1] = "_id";
            v1_43[2] = "displayed";
            v1_43[3] = "campaign_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL);", v1_43));
            int v1_45 = new Object[7];
            v1_45[0] = "amp_conditions";
            v1_45[1] = "_id";
            v1_45[2] = "attribute_name";
            v1_45[3] = "operator";
            v1_45[4] = "rule_id_ref";
            v1_45[5] = "amp_rules";
            v1_45[6] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_45));
            int v1_49 = new Object[6];
            v1_49[0] = "amp_condition_values";
            v1_49[1] = "_id";
            v1_49[2] = "value";
            v1_49[3] = "condition_id_ref";
            v1_49[4] = "amp_conditions";
            v1_49[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_49));
        }
        if (p13 < 15) {
            int v1_51 = new Object[4];
            v1_51[0] = "custom_dimensions";
            v1_51[1] = "_id";
            v1_51[2] = "custom_dimension_key";
            v1_51[3] = "custom_dimension_value";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_51));
        }
        if (p13 < 16) {
            int v1_53 = new Object[2];
            v1_53[0] = "info";
            v1_53[1] = "first_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_53));
            int v1_55 = new Object[2];
            v1_55[0] = "sessions";
            v1_55[1] = "device_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_55));
            int v1_57 = new Object[2];
            v1_57[0] = "info";
            v1_57[1] = "push_disabled";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER;", v1_57));
            int v1_59 = new Object[2];
            v1_59[0] = "info";
            v1_59[1] = "sender_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_59));
        }
        if (p13 < 17) {
            int v1_61 = new Object[4];
            v1_61[0] = "profile";
            v1_61[1] = "_id";
            v1_61[2] = "attribute";
            v1_61[3] = "action";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT, %s INTEGER)", v1_61));
            int v1_63 = new Object[2];
            v1_63[0] = "events";
            v1_63[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_63));
            int v1_66 = new Object[2];
            v1_66[0] = "events";
            v1_66[1] = "user_type";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_66));
            int v1_68 = new Object[2];
            v1_68[0] = "events";
            v1_68[1] = "ids";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_68));
            int v1_70 = new Object[2];
            v1_70[0] = "info";
            v1_70[1] = "last_session_open_time";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER", v1_70));
            int v1_72 = new Object[3];
            v1_72[0] = "sessions";
            v1_72[1] = "elapsed";
            v1_72[2] = "elapsed";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL CHECK (%s >= 0) DEFAULT 0", v1_72));
        }
        if (p13 < 18) {
            int v1_74 = new Object[2];
            v1_74[0] = "profile";
            v1_74[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT", v1_74));
            android.content.ContentValues v9_1 = new android.content.ContentValues();
            try {
                int v1_76 = p12.query("profile", 0, 0, 0, 0, 0, 0);
                try {
                    while (v1_76.moveToNext()) {
                        String v0_97 = String.valueOf(v1_76.getInt(v1_76.getColumnIndexOrThrow("_id")));
                        try {
                            String v2_122 = new org.json.JSONObject(v1_76.getString(v1_76.getColumnIndexOrThrow("attribute")));
                            v9_1.put("attribute", v2_122.getString("attributes"));
                            v9_1.put("customer_id", v2_122.getString("id"));
                            Object[] v4_6 = new Object[2];
                            v4_6[0] = "_id";
                            v4_6[1] = v0_97;
                            p12.update("profile", v9_1, String.format("%s = %s", v4_6), 0);
                            v9_1.clear();
                        } catch (String v2) {
                            Object[] v4_9 = new Object[2];
                            v4_9[0] = "_id";
                            v4_9[1] = v0_97;
                            p12.delete("profile", String.format("%s = %s", v4_9), 0);
                        }
                    }
                } catch (String v0_92) {
                    if (v1_76 != 0) {
                        v1_76.close();
                    }
                    throw v0_92;
                }
                if (v1_76 != 0) {
                    v1_76.close();
                }
            } catch (String v0_92) {
                v1_76 = 0;
            }
        }
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs() calling method android.database.sqlite.SQLiteDatabase.update()


    static void preUploadBuildBlobs(android.database.sqlite.SQLiteDatabase p11)
    {
        android.database.Cursor v8 = 0;
        java.util.HashSet v10_1 = new java.util.HashSet();
        try {
            android.database.Cursor v9 = p11.query("events", com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_EVENTS, 0, 0, 0, 0, com.localytics.android.MigrationDatabaseHelper.EVENTS_SORT_ORDER);
            try {
                android.content.ContentValues v1_0 = p11.query("upload_blob_events", com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_BLOBS, 0, 0, 0, 0, com.localytics.android.MigrationDatabaseHelper.UPLOAD_BLOBS_EVENTS_SORT_ORDER);
                try {
                    String v2_1 = v9.getColumnIndexOrThrow("_id");
                    java.util.Iterator v3_2 = new android.database.CursorJoiner(v9, com.localytics.android.MigrationDatabaseHelper.JOINER_ARG_UPLOAD_EVENTS_COLUMNS, v1_0, com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_BLOBS).iterator();
                } catch (String v0_1) {
                    v8 = v9;
                    if (v8 != null) {
                        v8.close();
                    }
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v0_1;
                }
                while (v3_2.hasNext()) {
                    switch (com.localytics.android.MigrationDatabaseHelper$1.$SwitchMap$android$database$CursorJoiner$Result[((android.database.CursorJoiner$Result) v3_2.next()).ordinal()]) {
                        case 1:
                            v10_1.add(Long.valueOf(v9.getLong(v2_1)));
                        default:
                    }
                }
                if (v9 != null) {
                    v9.close();
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                if (v10_1.size() > 0) {
                    android.content.ContentValues v1_4 = new android.content.ContentValues();
                    v1_4.put("uuid", java.util.UUID.randomUUID().toString());
                    String v2_6 = Long.valueOf(p11.insert("upload_blobs", 0, v1_4));
                    v1_4.clear();
                    java.util.Iterator v3_4 = v10_1.iterator();
                    while (v3_4.hasNext()) {
                        String v0_14 = ((Long) v3_4.next());
                        v1_4.put("upload_blobs_key_ref", v2_6);
                        v1_4.put("events_key_ref", v0_14);
                        p11.insert("upload_blob_events", 0, v1_4);
                        v1_4.clear();
                    }
                    v1_4.put("processed_in_blob", v2_6);
                    p11.update("event_history", v1_4, com.localytics.android.MigrationDatabaseHelper.SELECTION_UPLOAD_NULL_BLOBS, 0);
                    v1_4.clear();
                }
                return;
            } catch (String v0_1) {
                v1_0 = 0;
                v8 = v9;
            }
        } catch (String v0_1) {
            v1_0 = 0;
        }
    }

Method com.localytics.android.BaseProvider.update() calling method android.database.sqlite.SQLiteDatabase.update()


    int update(String p5, android.content.ContentValues p6, String p7, String[] p8)
    {
        Object[] v1_1 = new Object[4];
        v1_1[0] = p5;
        v1_1[1] = p6.toString();
        v1_1[2] = p7;
        v1_1[3] = java.util.Arrays.toString(p8);
        com.localytics.android.Localytics$Log.v(String.format("Update table: %s, values: %s, selection: %s, selectionArgs: %s", v1_1));
        return this.mDb.update(p5, p6, p7, p8);
    }

Method com.adobe.creativesdk.aviary.internal.receipt.ReceiptProvider.updateReceipt() calling method android.database.sqlite.SQLiteDatabase.update()


    long updateReceipt(long p6, android.content.ContentValues p8)
    {
        long v0_2;
        if (this.mDb != null) {
            long v0_4 = new String[1];
            v0_4[0] = String.valueOf(p6);
            v0_2 = ((long) this.mDb.update("receipts_table", p8, "r_id=?", v0_4));
        } else {
            v0_2 = -1;
        }
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.updateCurrentAction() calling method android.database.sqlite.SQLiteDatabase.update()


    public int updateCurrentAction(long p6, long p8)
    {
        int v0_0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("session_last_action", Long.valueOf(p8));
        String[] v2_0 = new String[1];
        v2_0[0] = String.valueOf(p6);
        return v0_0.update("sessions", v1_1, "session_id=?", v2_0);
    }

Method com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.setSessionOutput() calling method android.database.sqlite.SQLiteDatabase.update()


    public void setSessionOutput(long p8, String p10, android.net.Uri p11, int p12, int p13)
    {
        com.adobe.android.common.log.LoggerFactory$Logger v2_9 = new Object[3];
        v2_9[0] = Long.valueOf(p8);
        v2_9[1] = p10;
        v2_9[2] = p11;
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.info("setSessionOutput(session:%d, path: %s, uri: %s)", v2_9);
        Long v0_0 = this.getWritableDatabase();
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        if (p10 == null) {
            v1_1.putNull("session_output_path");
        } else {
            v1_1.put("session_output_path", p10);
        }
        if (p11 == null) {
            v1_1.putNull("session_output_data");
        } else {
            v1_1.put("session_output_data", p11.toString());
        }
        v1_1.put("session_output_width", Integer.valueOf(p12));
        v1_1.put("session_output_height", Integer.valueOf(p13));
        com.adobe.android.common.log.LoggerFactory$Logger v2_6 = new String[1];
        v2_6[0] = String.valueOf(p8);
        Object[] v4_1 = new Object[1];
        v4_1[0] = Long.valueOf(((long) v0_0.update("sessions", v1_1, "session_id=?", v2_6)));
        com.adobe.creativesdk.aviary.internal.content.SessionDatabaseHelper.logger.verbose("result: %d", v4_1);
        return;
    }

Method com.adobe.creativesdk.aviary.internal.cds.PackInstaller.updateIconPath() calling method android.database.sqlite.SQLiteDatabase.update()


    private static int updateIconPath(android.database.sqlite.SQLiteDatabase p7, long p8, String p10, int p11)
    {
        int v0_1 = new android.content.ContentValues();
        v0_1.put("content_iconPath", p10);
        v0_1.put("content_iconNeedDownload", Integer.valueOf(p11));
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p8);
        return p7.update("content_table", v0_1, "content_packId=?", v3_1);
    }

Method com.adobe.creativesdk.aviary.internal.cds.PackInstaller.updateContentPath() calling method android.database.sqlite.SQLiteDatabase.update()


    private static int updateContentPath(android.content.Context p6, android.database.sqlite.SQLiteDatabase p7, long p8, String p10)
    {
        int v0_1 = new android.content.ContentValues();
        v0_1.put("content_contentPath", p10);
        v0_1.put("content_installDate", com.adobe.creativesdk.aviary.internal.utils.DateTimeUtils.toSqlDateTime(System.currentTimeMillis()));
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p8);
        return p7.update("content_table", v0_1, "content_packId=?", v3_1);
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDefaultContentLoader.updateIconPath() calling method android.database.sqlite.SQLiteDatabase.update()


    public int updateIconPath(android.database.sqlite.SQLiteDatabase p7, long p8, String p10, int p11)
    {
        int v0_1 = new android.content.ContentValues();
        v0_1.put("content_iconPath", p10);
        v0_1.put("content_iconNeedDownload", Integer.valueOf(p11));
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p8);
        return p7.update("content_table", v0_1, "content_packId=?", v3_1);
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDefaultContentLoader.updateContentPath() calling method android.database.sqlite.SQLiteDatabase.update()


    public int updateContentPath(android.database.sqlite.SQLiteDatabase p7, long p8, String p10)
    {
        int v0_1 = new android.content.ContentValues();
        v0_1.put("content_contentPath", p10);
        v0_1.put("content_installDate", com.adobe.creativesdk.aviary.internal.utils.DateTimeUtils.toSqlDateTime(System.currentTimeMillis()));
        String[] v3_1 = new String[1];
        v3_1[0] = String.valueOf(p8);
        return p7.update("content_table", v0_1, "content_packId=?", v3_1);
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updatedRecentItemLastUsed() calling method android.database.sqlite.SQLiteDatabase.update()


    public int updatedRecentItemLastUsed(long p8, android.content.ContentValues p10)
    {
        int v0 = 0;
        android.database.sqlite.SQLiteDatabase v1 = this.getWritableDatabase();
        if ((v1 != null) && ((!v1.isReadOnly()) && (v1.isOpen()))) {
            p10.put("item_lastUsed", com.adobe.creativesdk.aviary.internal.utils.DateTimeUtils.toSqlDateTime(System.currentTimeMillis()));
            p10.put("item_id", Long.valueOf(p8));
            String[] v4_2 = new String[1];
            v4_2[0] = String.valueOf(p8);
            v0 = v1.update("items_table", p10, "item_id=?", v4_2);
        }
        return v0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updatePacksVisibility() calling method android.database.sqlite.SQLiteDatabase.update()


    public int updatePacksVisibility(android.content.ContentValues p5, String p6)
    {
        int v0_1;
        int v0_0 = this.getWritableDatabase();
        if ((v0_0 == 0) || ((!v0_0.isOpen()) || (v0_0.isReadOnly()))) {
            v0_1 = 0;
        } else {
            v0_1 = v0_0.update("packs_table", p5, new StringBuilder().append("pack_identifier IN (").append(p6).append(")").toString(), 0);
        }
        return v0_1;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updatePackContentRequestDownloadStatus() calling method android.database.sqlite.SQLiteDatabase.update()


    int updatePackContentRequestDownloadStatus(long p8, int p10)
    {
        int v0_2;
        int v0_1 = new android.content.ContentValues();
        v0_1.put("content_downloadRequested", Integer.valueOf(p10));
        android.database.sqlite.SQLiteDatabase v1_1 = this.getWritableDatabase();
        if (v1_1 == null) {
            v0_2 = -1;
        } else {
            String[] v4_1 = new String[1];
            v4_1[0] = String.valueOf(p8);
            v0_2 = v1_1.update("content_table", v0_1, "content_packId=?", v4_1);
        }
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updatePackContentPurchasedStatus() calling method android.database.sqlite.SQLiteDatabase.update()


    int updatePackContentPurchasedStatus(long p10, long p12, int p14, String p15)
    {
        android.content.ContentValues v2_7 = new Object[2];
        v2_7[0] = Long.valueOf(p10);
        v2_7[1] = p15;
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.info("updatePackContentPurchasedstatus: %d, content: %s", v2_7);
        Throwable v0_1 = new android.content.ContentValues();
        if (p15 == null) {
            v0_1.putNull("content_contentPath");
        } else {
            v0_1.put("content_contentPath", p15);
            v0_1.put("content_installDate", com.adobe.creativesdk.aviary.internal.utils.DateTimeUtils.toSqlDateTime(System.currentTimeMillis()));
        }
        Throwable v0_3;
        v0_1.put("content_purchased", Integer.valueOf(p14));
        android.database.sqlite.SQLiteDatabase v1_4 = this.getWritableDatabase();
        if (v1_4 == null) {
            v0_3 = -1;
        } else {
            v1_4.beginTransaction();
            try {
                String v4_2 = new String[2];
                v4_2[0] = String.valueOf(p12);
                v4_2[1] = String.valueOf(p10);
                v0_3 = v1_4.update("content_table", v0_1, "content_id=? AND content_packId=?", v4_2);
            } catch (Throwable v0_4) {
                v1_4.setTransactionSuccessful();
                throw v0_4;
            }
            if (p14 == 1) {
                android.content.ContentValues v2_6 = new android.content.ContentValues();
                v2_6.put("pack_previouslyInstalled", Integer.valueOf(1));
                String[] v5_3 = new String[1];
                v5_3[0] = String.valueOf(p10);
                v1_4.update("packs_table", v2_6, "pack_id=?", v5_3);
            }
            v1_4.setTransactionSuccessful();
            v1_4.endTransaction();
        }
        return v0_3;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updatePackContent() calling method android.database.sqlite.SQLiteDatabase.update()


    int updatePackContent(long p6, long p8, android.content.ContentValues p10, android.database.sqlite.SQLiteDatabase p11)
    {
        int v0_0;
        if (p11 == null) {
            v0_0 = -1;
        } else {
            String[] v2_1 = new String[2];
            v2_1[0] = String.valueOf(p8);
            v2_1[1] = String.valueOf(p6);
            v0_0 = p11.update("content_table", p10, "content_id=? AND content_packId=?", v2_1);
        }
        return v0_0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updatePack() calling method android.database.sqlite.SQLiteDatabase.update()


    int updatePack(long p6, android.content.ContentValues p8, android.database.sqlite.SQLiteDatabase p9)
    {
        int v0_0;
        if (p9 == null) {
            v0_0 = -1;
        } else {
            String[] v2_1 = new String[1];
            v2_1[0] = String.valueOf(p6);
            v0_0 = p9.update("packs_table", p8, "pack_id=?", v2_1);
        }
        return v0_0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updateMessageContent() calling method android.database.sqlite.SQLiteDatabase.update()


    int updateMessageContent(long p6, long p8, android.content.ContentValues p10, android.database.sqlite.SQLiteDatabase p11)
    {
        String[] v2_1 = new String[2];
        v2_1[0] = String.valueOf(p8);
        v2_1[1] = String.valueOf(p6);
        return p11.update("messages_content_table", p10, "msgcnt_id=? AND msgcnt_messageId=?", v2_1);
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updateMessageContent() calling method android.database.sqlite.SQLiteDatabase.update()


    int updateMessageContent(long p8, long p10, android.content.ContentValues p12)
    {
        int v0_1;
        int v0_0 = this.getWritableDatabase();
        if (v0_0 == 0) {
            v0_1 = -1;
        } else {
            String[] v3_1 = new String[2];
            v3_1[0] = String.valueOf(p8);
            v3_1[1] = String.valueOf(p10);
            v0_1 = v0_0.update("messages_content_table", p12, "msgcnt_messageId=? AND msgcnt_id=?", v3_1);
        }
        return v0_1;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updateMessage() calling method android.database.sqlite.SQLiteDatabase.update()


    int updateMessage(long p6, android.content.ContentValues p8, android.database.sqlite.SQLiteDatabase p9)
    {
        int v0_0;
        if (p9 == null) {
            v0_0 = -1;
        } else {
            String[] v2_1 = new String[1];
            v2_1[0] = String.valueOf(p6);
            v0_0 = p9.update("messages_table", p8, "msg_id=?", v2_1);
        }
        return v0_0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updateMessage() calling method android.database.sqlite.SQLiteDatabase.update()


    int updateMessage(long p8, android.content.ContentValues p10)
    {
        int v0_1;
        int v0_0 = this.getWritableDatabase();
        if (v0_0 == 0) {
            v0_1 = -1;
        } else {
            String[] v3_1 = new String[1];
            v3_1[0] = String.valueOf(p8);
            v0_1 = v0_0.update("messages_table", p10, "msg_id=?", v3_1);
        }
        return v0_1;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.updateDownloadStatus() calling method android.database.sqlite.SQLiteDatabase.update()


    int updateDownloadStatus(long p8, int p10)
    {
        int v0_2;
        int v0_1 = new android.content.ContentValues();
        v0_1.put("download_status", Integer.valueOf(p10));
        android.database.sqlite.SQLiteDatabase v1_1 = this.getWritableDatabase();
        if (v1_1 == null) {
            v0_2 = -1;
        } else {
            String[] v4_1 = new String[1];
            v4_1[0] = String.valueOf(p8);
            v0_2 = v1_1.update("packs_download_table", v0_1, "download_refId=?", v4_1);
        }
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.setMessageasVisited() calling method android.database.sqlite.SQLiteDatabase.update()


    int setMessageasVisited(long p8, int p10)
    {
        int v0_2;
        int v0_1 = new android.content.ContentValues();
        v0_1.put("msgcnt_visited", Integer.valueOf(p10));
        android.database.sqlite.SQLiteDatabase v1_1 = this.getWritableDatabase();
        if (v1_1 == null) {
            v0_2 = -1;
        } else {
            String[] v4_1 = new String[1];
            v4_1[0] = String.valueOf(p8);
            v0_2 = v1_1.update("messages_content_table", v0_1, "msgcnt_id=?", v4_1);
        }
        return v0_2;
    }

Method ru.yandex.disk.provider.ao.a() calling method android.database.sqlite.SQLiteDatabase.replace()


    public android.net.Uri a(android.net.Uri p4, android.content.ContentValues p5)
    {
        android.net.Uri v0_2 = this.a.getWritableDatabase().replace("PLAIN_SETTINGS_TABLE", 0, p5);
        this.a(p4);
        return android.content.ContentUris.withAppendedId(p4, v0_2);
    }

Method ru.yandex.disk.provider.ao.a() calling method android.database.sqlite.SQLiteDatabase.replace()


    public int a(android.net.Uri p8, android.content.ContentValues[] p9)
    {
        int v0_0 = 0;
        android.database.sqlite.SQLiteDatabase v2 = this.a.getWritableDatabase();
        try {
            v2.beginTransaction();
            int v3 = p9.length;
            int v1_1 = 0;
        } catch (int v0_1) {
            v2.endTransaction();
            throw v0_1;
        }
        while (v0_0 < v3) {
            v2.replace("PLAIN_SETTINGS_TABLE", 0, p9[v0_0]);
            v1_1++;
            v0_0++;
        }
        v2.setTransactionSuccessful();
        v2.endTransaction();
        this.a(p8);
        return v1_1;
    }

Method ru.yandex.disk.provider.ao.a() calling method android.database.sqlite.SQLiteDatabase.replace()


    public int a(android.net.Uri p5, android.content.ContentValues p6, String p7, String[] p8)
    {
        int v0_3 = ((int) this.a.getWritableDatabase().replace("PLAIN_SETTINGS_TABLE", 0, p6));
        this.a(android.content.ContentUris.withAppendedId(p5, ((long) v0_3)));
        return v0_3;
    }

Method com.localytics.android.InAppManager._saveFrequencyCappingRuleBase() calling method android.database.sqlite.SQLiteDatabase.replace()


    long _saveFrequencyCappingRuleBase(java.util.Map p5, Integer p6)
    {
        android.content.ContentValues v1_1 = new android.content.ContentValues();
        v1_1.put("campaign_id", p6);
        if (p6.intValue() == -1) {
            v1_1.putNull("max_display_count");
            v1_1.putNull("ignore_global");
        } else {
            v1_1.put("max_display_count", ((Integer) p5.get("max_display_count")));
            v1_1.put("ignore_global", ((Integer) p5.get("ignore_global")));
        }
        return this.mProvider.mDb.replace("frequency_capping_rules", 0, v1_1);
    }

Method com.localytics.android.BaseProvider.replace() calling method android.database.sqlite.SQLiteDatabase.replace()


    long replace(String p7, android.content.ContentValues p8)
    {
        long v0_3;
        int v1_3 = new Object[2];
        v1_3[0] = p7;
        v1_3[1] = p8.toString();
        com.localytics.android.Localytics$Log.v(String.format("Replace table: %s, values: %s", v1_3));
        if (this.canAddToDB()) {
            v0_3 = this.mDb.replace(p7, 0, p8);
            Object[] v3_1 = new Object[1];
            v3_1[0] = Long.valueOf(v0_3);
            com.localytics.android.Localytics$Log.v(String.format("Replaced row with id %d", v3_1));
        } else {
            int v1_1 = new Object[0];
            com.localytics.android.Localytics$Log.v(String.format("Database is full; data not replaced", v1_1));
            v0_3 = -1;
        }
        return v0_3;
    }

Method com.yandex.promolib.impl.r.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.database.Cursor b(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        try {
            android.database.Cursor v0 = p3.rawQuery(new StringBuilder().append("SELECT * FROM campaignsinfo WHERE campaign_id = \'").append(p4).append("\'").toString(), 0);
        } catch (Exception v1) {
        }
        return v0;
    }

Method com.yandex.metrica.impl.utils.e.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static long a(android.database.sqlite.SQLiteDatabase p5, String p6)
    {
        long v0_0 = 0;
        try {
            android.database.Cursor v2 = p5.rawQuery(new StringBuilder("SELECT count() FROM ").append(p6).toString(), 0);
            try {
                if (v2.moveToFirst()) {
                    v0_0 = v2.getLong(0);
                }
            } catch (long v0_1) {
                android.database.Cursor v1 = v2;
                com.yandex.metrica.impl.bl.a(v1);
                throw v0_1;
            }
            com.yandex.metrica.impl.bl.a(v2);
            return v0_0;
        } catch (long v0_1) {
            v1 = v2;
        }
    }

Method com.yandex.metrica.impl.ob.ck.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private long b(long p8)
    {
        long v0_0 = 0;
        try {
            int v2_0 = this.a.getReadableDatabase().rawQuery(com.yandex.metrica.impl.ob.cf$y.b, 0);
            try {
                if (v2_0.moveToFirst()) {
                    long v0_4 = v2_0.getLong(0);
                    if (v0_4 != 0) {
                        p8 = v0_4;
                    }
                }
            } catch (long v0_1) {
                com.yandex.metrica.impl.bl.a(v2_0);
                throw v0_1;
            } catch (long v0) {
                v0_0 = v2_0;
                com.yandex.metrica.impl.bl.a(v0_0);
                return p8;
            }
            com.yandex.metrica.impl.bl.a(v2_0);
            return p8;
        } catch (Exception v1_2) {
            v2_0 = 0;
            v0_1 = v1_2;
        } catch (Exception v1) {
        }
    }

Method com.yandex.metrica.impl.ob.cg.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public android.content.ContentValues c(long p10, com.yandex.metrica.impl.ob.bp p12)
    {
        java.util.concurrent.locks.Lock v0_0 = 0;
        java.util.concurrent.locks.Lock v1_1 = new android.content.ContentValues();
        this.b.lock();
        try {
            Exception v2_3 = this.d.getReadableDatabase();
            Object[] v5_1 = new Object[2];
            v5_1[0] = Long.valueOf(p10);
            v5_1[1] = Integer.valueOf(p12.a());
            Exception v2_0 = v2_3.rawQuery(String.format(java.util.Locale.US, "SELECT report_request_parameters FROM sessions WHERE id = %s AND type = %s ORDER BY id DESC LIMIT 1", v5_1), 0);
            try {
                java.util.concurrent.locks.Lock v0_3;
                if (!v2_0.moveToNext()) {
                    v0_3 = v1_1;
                } else {
                    v0_3 = new android.content.ContentValues();
                    android.database.DatabaseUtils.cursorRowToContentValues(v2_0, v0_3);
                }
            } catch (java.util.concurrent.locks.Lock v0_1) {
                com.yandex.metrica.impl.bl.a(v2_0);
                this.b.unlock();
                throw v0_1;
            } catch (java.util.concurrent.locks.Lock v0) {
                v0_0 = v2_0;
                com.yandex.metrica.impl.bl.a(v0_0);
                this.b.unlock();
                v0_3 = v1_1;
                return v0_3;
            }
            com.yandex.metrica.impl.bl.a(v2_0);
            this.b.unlock();
            return v0_3;
        } catch (java.util.concurrent.locks.Lock v1_2) {
            v2_0 = 0;
            v0_1 = v1_2;
        } catch (Exception v2) {
        }
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.List a(Long p8)
    {
        java.util.concurrent.locks.Lock v1_0 = 0;
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        this.b.lock();
        try {
            android.database.sqlite.SQLiteDatabase v3 = this.d.getReadableDatabase();
            android.content.ContentValues v2_1 = "SELECT DISTINCT report_request_parameters FROM sessions WHERE id >= 0";
        } catch (java.util.ArrayList v0_3) {
            com.yandex.metrica.impl.bl.a(v1_0);
            this.b.unlock();
            throw v0_3;
        } catch (java.util.ArrayList v0) {
            v0_1 = new java.util.ArrayList();
            com.yandex.metrica.impl.bl.a(v1_0);
            v1_0 = this.b;
            v1_0.unlock();
            return v0_1;
        }
        if (p8 != null) {
            Object[] v5_1 = new Object[1];
            v5_1[0] = p8;
            v2_1 = String.format(java.util.Locale.US, "SELECT DISTINCT report_request_parameters FROM sessions WHERE id = %s", v5_1);
        }
        v1_0 = v3.rawQuery(v2_1, 0);
        while (v1_0.moveToNext()) {
            android.content.ContentValues v2_5 = new android.content.ContentValues();
            android.database.DatabaseUtils.cursorRowToContentValues(v1_0, v2_5);
            v0_1.add(v2_5);
        }
        com.yandex.metrica.impl.bl.a(v1_0);
        this.b.unlock();
        return v0_1;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int a(long[] p9)
    {
        Throwable v1_0 = 0;
        int v0_0 = 0;
        this.c.lock();
        try {
            if (!com.yandex.metrica.impl.ob.cf.a.booleanValue()) {
                v0_0 = this.d.getWritableDatabase().delete("sessions", com.yandex.metrica.impl.ob.cf$ac.c, com.yandex.metrica.impl.bl.a(p9));
                this.c.unlock();
            } else {
                this.b.lock();
                try {
                    java.util.concurrent.locks.Lock v3_0 = this.d.getReadableDatabase();
                    StringBuffer v4_1 = new String[0];
                    android.database.Cursor v2_2 = v3_0.rawQuery(" SELECT DISTINCT id From sessions order by id asc ", v4_1);
                    try {
                        StringBuffer v4_3 = new StringBuffer();
                        v4_3.append("All sessions in db: ");
                    } catch (java.util.concurrent.locks.Lock v3_2) {
                        java.util.concurrent.locks.Lock v3_1 = v2_2;
                        android.database.Cursor v2_5 = v1_0;
                        Throwable v1_1 = v3_2;
                        this.b.unlock();
                        com.yandex.metrica.impl.bl.a(v3_1);
                        com.yandex.metrica.impl.bl.a(v2_5);
                        throw v1_1;
                    } catch (java.util.concurrent.locks.Lock v3) {
                        this.b.unlock();
                        com.yandex.metrica.impl.bl.a(v2_2);
                        com.yandex.metrica.impl.bl.a(v1_0);
                    }
                    while (v2_2.moveToNext()) {
                        v4_3.append(v2_2.getString(0)).append(", ");
                    }
                    String v5_3 = new String[0];
                    v1_0 = v3_0.rawQuery(" SELECT DISTINCT session_id From reports order by session_id asc ", v5_3);
                    try {
                        java.util.concurrent.locks.Lock v3_4 = new StringBuffer();
                        v3_4.append("All sessions in reports db: ");
                    } catch (java.util.concurrent.locks.Lock v3_6) {
                        v3_1 = v2_2;
                        v2_5 = v1_0;
                        v1_1 = v3_6;
                    }
                    while (v1_0.moveToNext()) {
                        v3_4.append(v1_0.getString(0)).append(", ");
                    }
                    this.b.unlock();
                    com.yandex.metrica.impl.bl.a(v2_2);
                    com.yandex.metrica.impl.bl.a(v1_0);
                } catch (android.database.Cursor v2_4) {
                    v3_1 = 0;
                    v1_1 = v2_4;
                    v2_5 = 0;
                } catch (android.database.Cursor v2) {
                    v2_2 = 0;
                }
            }
        } catch (int v0_1) {
            this.c.unlock();
            throw v0_1;
        } catch (Throwable v1) {
            this.c.unlock();
        }
        return v0_0;
    }

Method com.yandex.metrica.impl.ob.cf$p.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    protected void a(android.database.sqlite.SQLiteDatabase p5)
    {
        String v0_4 = new StringBuilder();
        v0_4.append("ALTER TABLE reports");
        v0_4.append(" ADD COLUMN app_environment");
        v0_4.append(" TEXT DEFAULT \'{}\'");
        p5.execSQL(v0_4.toString());
        String v0_3 = new StringBuilder();
        v0_3.append("ALTER TABLE reports");
        v0_3.append(" ADD COLUMN app_environment_revision");
        v0_3.append(" INTEGER DEFAULT 0");
        p5.execSQL(v0_3.toString());
        p5.execSQL("ALTER TABLE reports RENAME TO reports_backup");
        p5.execSQL(ark>com.yandex.metrica.impl.ob.cf$park>.a);
        try {
            android.database.Cursor v1 = p5.rawQuery("SELECT * FROM reports_backup", 0);
        } catch (String v0_10) {
            com.yandex.metrica.impl.bl.a(v1);
            throw v0_10;
        }
        while (v1.moveToNext()) {
            String v0_13 = new android.content.ContentValues();
            android.database.DatabaseUtils.cursorRowToContentValues(v1, v0_13);
            String v2_6 = v0_13.getAsString("environment");
            v0_13.remove("environment");
            v0_13.put("error_environment", v2_6);
            p5.insert("reports", 0, v0_13);
        }
        com.yandex.metrica.impl.bl.a(v1);
        p5.execSQL("DROP TABLE reports_backup");
        return;
    }

Method com.yandex.metrica.impl.ob.cf$n.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    protected void a(android.database.sqlite.SQLiteDatabase p8)
    {
        String v0_19 = new StringBuilder();
        v0_19.append("CREATE TABLE IF NOT EXISTS sessions_BACKUP (");
        v0_19.append("id INTEGER,");
        v0_19.append("start_time INTEGER,");
        v0_19.append("connection_type INTEGER,");
        v0_19.append("network_type TEXT,");
        v0_19.append("country_code INTEGER,");
        v0_19.append("operator_id INTEGER,");
        v0_19.append("lac INTEGER,");
        v0_19.append("report_request_parameters TEXT );");
        p8.execSQL(v0_19.toString());
        String v0_22 = new StringBuilder();
        v0_22.append("id,");
        v0_22.append("start_time,");
        v0_22.append("connection_type,");
        v0_22.append("network_type,");
        v0_22.append("country_code,");
        v0_22.append("operator_id,");
        v0_22.append("lac,");
        v0_22.append("report_request_parameters");
        int v2_20 = new StringBuilder();
        v2_20.append("INSERT INTO sessions_BACKUP");
        v2_20.append(" SELECT ").append(v0_22);
        v2_20.append(" FROM sessions;");
        p8.execSQL(v2_20.toString());
        p8.execSQL("DROP TABLE sessions;");
        p8.execSQL(com.yandex.metrica.impl.ob.cf$ac.b);
        try {
            String v1_0 = p8.rawQuery("SELECT * FROM sessions_BACKUP", 0);
        } catch (String v0_16) {
            com.yandex.metrica.impl.bl.a(v1_0);
            throw v0_16;
        }
        while (v1_0.moveToNext()) {
            int v2_1 = new android.content.ContentValues();
            android.database.DatabaseUtils.cursorRowToContentValues(v1_0, v2_1);
            String v3_1 = new java.util.ArrayList();
            v3_1.add("id");
            v3_1.add("start_time");
            v3_1.add("report_request_parameters");
            android.content.ContentValues v4_1 = new android.content.ContentValues(v2_1);
            String v5_0 = v2_1.valueSet().iterator();
            while (v5_0.hasNext()) {
                String v0_15 = ((java.util.Map$Entry) v5_0.next());
                if (!v3_1.contains(v0_15.getKey())) {
                    v4_1.remove(((String) v0_15.getKey()));
                }
            }
            String v3_2 = v3_1.iterator();
            while (v3_2.hasNext()) {
                v2_1.remove(((String) v3_2.next()));
            }
            String v0_9 = new org.json.JSONObject();
            v0_9.put("conn_type", v2_1.getAsInteger("connection_type"));
            v0_9.putOpt("net_type", v2_1.get("network_type"));
            v0_9.putOpt("operator_id", v2_1.get("operator_id"));
            v0_9.putOpt("lac", v2_1.get("lac"));
            v0_9.putOpt("country_code", v2_1.get("country_code"));
            v4_1.put("network_info", v0_9.toString());
            p8.insertOrThrow("sessions", 0, v4_1);
        }
        com.yandex.metrica.impl.bl.a(v1_0);
        p8.execSQL("DROP TABLE sessions_BACKUP;");
        String v0_31 = new StringBuilder();
        v0_31.append("ALTER TABLE reports");
        v0_31.append(" ADD COLUMN wifi_network_info");
        v0_31.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_31.toString());
        String v0_34 = new StringBuilder();
        v0_34.append("ALTER TABLE reports");
        v0_34.append(" ADD COLUMN cell_info");
        v0_34.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_34.toString());
        String v0_37 = new StringBuilder();
        v0_37.append("ALTER TABLE reports");
        v0_37.append(" ADD COLUMN location_info");
        v0_37.append(" TEXT DEFAULT \'\'");
        p8.execSQL(v0_37.toString());
        return;
    }

Method com.yandex.promolib.impl.u.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.database.Cursor c(android.database.sqlite.SQLiteDatabase p2)
    {
        return p2.rawQuery("SELECT * FROM reports", 0);
    }

Method com.yandex.promolib.impl.u.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public static android.database.Cursor a(android.database.sqlite.SQLiteDatabase p3)
    {
        try {
            android.database.Cursor v0 = p3.rawQuery("SELECT * FROM reports WHERE readiness = \'1\'  ORDER BY start_time ASC", 0);
        } catch (Exception v1) {
        }
        return v0;
    }

Method com.localytics.android.PlacesManager._getDisplayableCampaignIdsFromGeofencePlaceId() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    java.util.List _getDisplayableCampaignIdsFromGeofencePlaceId(long p12)
    {
        Throwable v0_1 = new java.util.ArrayList();
        try {
            android.database.sqlite.SQLiteDatabase v3_3 = new Object[2];
            v3_3[0] = "places_campaigns_displayed";
            v3_3[1] = "campaign_id";
            Long v2_0 = String.format("%s.%s", v3_3);
            String[] v4_1 = new Object[2];
            v4_1[0] = "places_campaigns_geofence_triggers";
            v4_1[1] = "campaign_id";
            android.database.sqlite.SQLiteDatabase v3_1 = String.format("%s.%s", v4_1);
            int v5_4 = new Object[10];
            v5_4[0] = "campaign_id";
            v5_4[1] = "places_campaigns";
            v5_4[2] = "expiration";
            v5_4[3] = "campaign_id";
            v5_4[4] = v3_1;
            v5_4[5] = "places_campaigns_geofence_triggers";
            v5_4[6] = "places_campaigns_displayed";
            v5_4[7] = v2_0;
            v5_4[8] = "place_id";
            v5_4[9] = v3_1;
            Long v2_4 = String.format("SELECT %s FROM %s WHERE %s > ? AND %s IN (SELECT %s FROM %s NATURAL LEFT OUTER JOIN %s WHERE %s IS NULL AND %s = ? ORDER BY %s);", v5_4);
            android.database.sqlite.SQLiteDatabase v3_5 = this.mProvider.mDb;
            String[] v4_5 = new String[2];
            v4_5[0] = Long.toString((this.mLocalyticsDao.getCurrentTimeMillis() / 1000));
            v4_5[1] = Long.toString(p12);
            android.database.Cursor v1 = v3_5.rawQuery(v2_4, v4_5);
        } catch (Throwable v0_2) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_2;
        }
        while (v1.moveToNext()) {
            v0_1.add(Long.valueOf(v1.getLong(v1.getColumnIndexOrThrow("campaign_id"))));
        }
        if (v1 != null) {
            v1.close();
        }
        return v0_1;
    }

Method com.localytics.android.InboxManager._getInboxCampaignsUnreadCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    int _getInboxCampaignsUnreadCount()
    {
        int v0_0 = 0;
        try {
            boolean v2_1 = this.mProvider.mDb;
            String[] v4_3 = new Object[3];
            v4_3[0] = "inbox_campaigns";
            v4_3[1] = "expiration";
            v4_3[2] = "read";
            String v3_0 = String.format("SELECT COUNT(*) FROM %s WHERE %s > ? AND %s = 0", v4_3);
            String[] v4_1 = new String[1];
            v4_1[0] = Long.toString((this.mLocalyticsDao.getCurrentTimeMillis() / 1000));
            android.database.Cursor v1 = v2_1.rawQuery(v3_0, v4_1);
        } catch (int v0_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_1;
        }
        if (!v1.moveToFirst()) {
            if (v1 != null) {
                v1.close();
            }
        } else {
            v0_0 = v1.getInt(0);
            if (v1 != null) {
                v1.close();
            }
        }
        return v0_0;
    }

Method com.localytics.android.InAppManager._getGloballyDisqualifiedCampaigns() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    java.util.Set _getGloballyDisqualifiedCampaigns(com.localytics.android.InAppManager$FrequencyCappingFilter p11, java.util.Set p12)
    {
        try {
            java.util.Set v0_11 = this.mProvider;
            int v4_25 = new String[1];
            v4_25[0] = String.valueOf(-1);
            android.database.Cursor v1_1 = v0_11.query("frequency_capping_rules", 0, "campaign_id = ?", v4_25, 0);
            try {
                java.util.Set v0_13;
                if (!v1_1.moveToFirst()) {
                    v0_13 = -1;
                } else {
                    v0_13 = v1_1.getInt(v1_1.getColumnIndexOrThrow("_id"));
                }
            } catch (java.util.Set v0_0) {
                if (v1_1 != null) {
                    v1_1.close();
                }
                throw v0_0;
            }
            if (v1_1 != null) {
                v1_1.close();
            }
            java.util.Set v0_7;
            if (v0_13 == -1) {
                v0_7 = new java.util.HashSet();
            } else {
                try {
                    switch (com.localytics.android.InAppManager$12.$SwitchMap$com$localytics$android$InAppManager$FrequencyCappingFilter[p11.ordinal()]) {
                        case 2:
                            java.util.Set v0_9 = this.mProvider.mDb;
                            String v3_2 = new Object[15];
                            v3_2[0] = "_id";
                            v3_2[1] = "frequency_capping_rules";
                            v3_2[2] = "frequency_capping_display_frequencies";
                            v3_2[3] = "_id";
                            v3_2[4] = "frequency_id";
                            v3_2[5] = "campaigns_displayed";
                            v3_2[6] = "ignore_global";
                            v3_2[7] = "campaign_id";
                            v3_2[8] = "date";
                            v3_2[9] = this.mLocalyticsDao.getTimeStringForSQLite();
                            v3_2[10] = "days";
                            v3_2[11] = this.mLocalyticsDao.getTimeStringForSQLite();
                            v3_2[12] = "_id";
                            v3_2[13] = "date";
                            v3_2[14] = "count";
                            String v2_2 = String.format("SELECT df.%s FROM %s AS fc JOIN %s AS df ON fc.%s = df.%s JOIN %s AS cd WHERE cd.%s = 0 AND fc.%s = ? AND (cd.%s BETWEEN datetime(\'%s\',\'-\'||df.%s||\' days\') AND datetime(\'%s\')) GROUP BY df.%s HAVING count(cd.%s) >= df.%s;", v3_2);
                            String v3_4 = new String[1];
                            v3_4[0] = String.valueOf(-1);
                            v1_1 = v0_9.rawQuery(v2_2, v3_4);
                            if (v1_1.getCount() <= 0) {
                            } else {
                                v0_7 = this._getIgnoresGlobalCampaigns(0, p12);
                                if (v1_1 != null) {
                                    v1_1.close();
                                }
                            }
                            break;
                        case 3:
                            String v2_7 = this.mLocalyticsDao.getCalendar();
                            String v3_8 = (v2_7.get(7) - 1);
                            String v2_9 = (v2_7.get(13) + (((v2_7.get(11) * 60) + v2_7.get(12)) * 60));
                            int v4_24 = this.mProvider.mDb;
                            String v6_6 = new Object[11];
                            v6_6[0] = "frequency_capping_blackout_dates";
                            v6_6[1] = "frequency_capping_blackout_times";
                            v6_6[2] = "frequency_id";
                            v6_6[3] = "frequency_id";
                            v6_6[4] = "rule_group_id";
                            v6_6[5] = "rule_group_id";
                            v6_6[6] = this.mLocalyticsDao.getTimeStringForSQLite();
                            v6_6[7] = "start";
                            v6_6[8] = "end";
                            v6_6[9] = "start";
                            v6_6[10] = "end";
                            android.database.sqlite.SQLiteDatabase v5_0 = String.format("SELECT * FROM %s AS d, %s AS t WHERE ((d.%s=?) AND (t.%s=?)) AND (d.%s=t.%s) AND (datetime(\'%s\',\'localtime\') BETWEEN d.%s and d.%s) AND (? BETWEEN t.%s AND t.%s);", v6_6);
                            String v6_2 = new String[3];
                            v6_2[0] = String.valueOf(v0_13);
                            v6_2[1] = String.valueOf(v0_13);
                            v6_2[2] = String.valueOf(v2_9);
                            android.database.Cursor v1_0 = v4_24.rawQuery(v5_0, v6_2);
                            int v4_0 = v1_0.getCount();
                            v1_0.close();
                            android.database.sqlite.SQLiteDatabase v5_2 = this.mProvider.mDb;
                            String[] v7_5 = new Object[9];
                            v7_5[0] = "frequency_capping_blackout_weekdays";
                            v7_5[1] = "frequency_capping_blackout_times";
                            v7_5[2] = "frequency_id";
                            v7_5[3] = "frequency_id";
                            v7_5[4] = "rule_group_id";
                            v7_5[5] = "rule_group_id";
                            v7_5[6] = "day";
                            v7_5[7] = "start";
                            v7_5[8] = "end";
                            String v6_4 = String.format("SELECT * FROM %s AS w, %s AS t WHERE ((w.%s=?) AND (t.%s=?)) AND (w.%s=t.%s) AND (w.%s=?) AND (? BETWEEN t.%s AND t.%s);", v7_5);
                            String[] v7_7 = new String[4];
                            v7_7[0] = String.valueOf(v0_13);
                            v7_7[1] = String.valueOf(v0_13);
                            v7_7[2] = String.valueOf(v3_8);
                            v7_7[3] = String.valueOf(v2_9);
                            v1_1 = v5_2.rawQuery(v6_4, v7_7);
                            if ((v1_1.getCount() + v4_0) <= 0) {
                            } else {
                                v0_7 = this._getIgnoresGlobalCampaigns(0, p12);
                                if (v1_1 != null) {
                                    v1_1.close();
                                }
                            }
                            break;
                    }
                } catch (java.util.Set v0_14) {
                    if (v1_1 != null) {
                        v1_1.close();
                    }
                    throw v0_14;
                }
                if (v1_1 == null) {
                } else {
                    v1_1.close();
                }
            }
            return v0_7;
        } catch (java.util.Set v0_0) {
            v1_1 = 0;
        }
    }

Method com.localytics.android.InAppManager._getInAppMessageMaps() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private java.util.List _getInAppMessageMaps(String p9)
    {
        int v0_0 = 0;
        java.util.LinkedList v2_1 = new java.util.LinkedList();
        try {
            com.localytics.android.MarketingMessage v3_0 = Long.toString((this.mLocalyticsDao.getCurrentTimeMillis() / 1000));
            int v5_14 = new Object[6];
            v5_14[0] = "marketing_rules";
            v5_14[1] = "_id";
            v5_14[2] = "rule_id_ref";
            v5_14[3] = "marketing_ruleevent";
            v5_14[4] = "event_name";
            v5_14[5] = "expiration";
            com.localytics.android.LocalyticsDao v4_17 = String.format("SELECT * FROM %s WHERE %s IN (SELECT %s FROM %s WHERE %s = ?) AND %s > ?;", v5_14);
            int v5_58 = this.mProvider.mDb;
            String[] v6_7 = new String[2];
            v6_7[0] = p9;
            v6_7[1] = v3_0;
            android.database.Cursor v1 = v5_58.rawQuery(v4_17, v6_7);
        } catch (int v0_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_1;
        }
        while (v0_0 < v1.getCount()) {
            v1.moveToPosition(v0_0);
            com.localytics.android.MarketingMessage v3_4 = new com.localytics.android.MarketingMessage();
            v3_4.put("_id", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("_id"))));
            v3_4.put("campaign_id", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("campaign_id"))));
            v3_4.put("expiration", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("expiration"))));
            v3_4.put("display_seconds", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("display_seconds"))));
            v3_4.put("display_session", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("display_session"))));
            v3_4.put("version", v1.getString(v1.getColumnIndexOrThrow("version")));
            v3_4.put("phone_location", v1.getString(v1.getColumnIndexOrThrow("phone_location")));
            v3_4.put("phone_size_width", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("phone_size_width"))));
            v3_4.put("phone_size_height", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("phone_size_height"))));
            v3_4.put("tablet_location", v1.getString(v1.getColumnIndexOrThrow("tablet_location")));
            v3_4.put("tablet_size_width", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("tablet_size_width"))));
            v3_4.put("tablet_size_height", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("tablet_size_height"))));
            v3_4.put("time_to_display", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("time_to_display"))));
            v3_4.put("internet_required", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("internet_required"))));
            v3_4.put("ab_test", v1.getString(v1.getColumnIndexOrThrow("ab_test")));
            v3_4.put("rule_name_non_unique", v1.getString(v1.getColumnIndexOrThrow("rule_name_non_unique")));
            v3_4.put("location", v1.getString(v1.getColumnIndexOrThrow("location")));
            v3_4.put("devices", v1.getString(v1.getColumnIndexOrThrow("devices")));
            v3_4.put("control_group", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("control_group"))));
            v3_4.put("schema_version", Integer.valueOf(v1.getInt(v1.getColumnIndexOrThrow("schema_version"))));
            com.localytics.android.InAppManager.updateMessageWithSpecialKeys(v3_4, this.mLocalyticsDao, 1);
            v2_1.add(v3_4);
            v0_0++;
        }
        if (v1 != null) {
            v1.close();
        }
        return v2_1;
    }

Method com.localytics.android.InAppManager._getCampaignIdsFromFrequencyCappingQuery() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private java.util.Set _getCampaignIdsFromFrequencyCappingQuery(String p4, String[] p5)
    {
        Throwable v0_1 = new java.util.HashSet();
        if (!android.text.TextUtils.isEmpty(p4)) {
            try {
                android.database.Cursor v1_1 = this.mProvider.mDb.rawQuery(p4, p5);
            } catch (Throwable v0_2) {
                if (v1_1 != null) {
                    v1_1.close();
                }
                throw v0_2;
            }
            while (v1_1.moveToNext()) {
                v0_1.add(Integer.valueOf(v1_1.getInt(v1_1.getColumnIndexOrThrow("campaign_id"))));
            }
            if (v1_1 != null) {
                v1_1.close();
            }
        }
        return v0_1;
    }

Method com.localytics.android.BaseProvider$1.run() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void run()
    {
        try {
            android.database.Cursor v1 = this.this$0.mDb.rawQuery("PRAGMA incremental_vacuum(0);", 0);
        } catch (boolean v0_4) {
            com.localytics.android.Localytics$Log.w("Auto-vacuum error", v0_4);
            if (v1 == null) {
                return;
            } else {
                v1.close();
                return;
            }
        } catch (boolean v0_1) {
            if (v1 != null) {
                v1.close();
            }
            throw v0_1;
        }
        while (v1.moveToNext()) {
        }
        if (v1 == null) {
            return;
        } else {
            v1.close();
            return;
        }
    }

Method com.localytics.android.AnalyticsHandler._retrieveLastScreenTag() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private String _retrieveLastScreenTag()
    {
        String v0_0 = 0;
        android.database.Cursor v1_2 = this.mProvider.mDb;
        Object[] v3_1 = new Object[2];
        v3_1[0] = "name";
        v3_1[1] = "screens";
        android.database.Cursor v1_1 = v1_2.rawQuery(String.format("SELECT MAX(rowid), %s FROM %s", v3_1), 0);
        if (v1_1.moveToFirst()) {
            v0_0 = v1_1.getString(v1_1.getColumnIndexOrThrow("name"));
        }
        v1_1.close();
        return v0_0;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueue.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.Set d(com.birbit.android.jobqueue.e p6)
    {
        com.birbit.android.jobqueue.i v0_0 = this.e(p6);
        android.database.Cursor v1_2 = this.c.rawQuery(v0_0.b(this.d), v0_0.c);
        java.util.HashSet v2_0 = new java.util.HashSet();
        try {
            while (v1_2.moveToNext()) {
                v2_0.add(this.a(v1_2));
            }
        } catch (com.birbit.android.jobqueue.i v0_3) {
            v1_2.close();
            throw v0_3;
        } catch (com.birbit.android.jobqueue.i v0_2) {
            Object[] v4_1 = new Object[0];
            com.birbit.android.jobqueue.f.b.a(v0_2, "invalid job found by tags.", v4_1);
            v1_2.close();
            return v2_0;
        }
        v1_2.close();
        return v2_0;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueue.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public com.birbit.android.jobqueue.i b(com.birbit.android.jobqueue.e p6)
    {
        com.birbit.android.jobqueue.persistentQueue.sqlite.c v1 = this.e(p6);
        String v2 = v1.a(this.d);
        while(true) {
            android.database.Cursor v3_1 = this.c.rawQuery(v2, v1.c);
            String v0_1;
            if (!v3_1.moveToNext()) {
                break;
            }
            v0_1 = this.a(v3_1);
            this.g(v0_1);
            v3_1.close();
            return v0_1;
            v3_1.close();
        }
        v0_1 = 0;
        v3_1.close();
        return v0_1;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueue.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public com.birbit.android.jobqueue.i a(String p6)
    {
        com.birbit.android.jobqueue.i v0_0 = 0;
        ark>com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueueark>$InvalidJobException v1_2 = this.c;
        android.database.Cursor v2_1 = this.d.a;
        String v3_2 = new String[1];
        v3_2[0] = p6;
        android.database.Cursor v2_2 = v1_2.rawQuery(v2_1, v3_2);
        try {
            if (v2_2.moveToFirst()) {
                v0_0 = this.a(v2_2);
                v2_2.close();
            } else {
                v2_2.close();
            }
        } catch (com.birbit.android.jobqueue.i v0_1) {
            v2_2.close();
            throw v0_1;
        } catch (ark>com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueueark>$InvalidJobException v1_1) {
            Object[] v4_2 = new Object[0];
            com.birbit.android.jobqueue.f.b.a(v1_1, "invalid job on findJobById", v4_2);
            v2_2.close();
        }
        return v0_0;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueue.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void d()
    {
        com.birbit.android.jobqueue.persistentQueue.sqlite.b v1_3 = this.c.rawQuery(this.d.c, 0);
        Throwable v0_3 = new java.util.HashSet();
        try {
            while (v1_3.moveToNext()) {
                v0_3.add(v1_3.getString(0));
            }
        } catch (Throwable v0_1) {
            v1_3.close();
            throw v0_1;
        }
        v1_3.close();
        this.f.a(v0_3);
        return;
    }

Method com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueue.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private java.util.Set c(String p5)
    {
        java.util.HashSet v0_0 = this.c;
        android.database.Cursor v1_1 = this.d.d;
        String v2_4 = new String[1];
        v2_4[0] = p5;
        android.database.Cursor v1_2 = v0_0.rawQuery(v1_1, v2_4);
        try {
            java.util.HashSet v0_3;
            if (v1_2.getCount() != 0) {
                v0_3 = new java.util.HashSet();
                while (v1_2.moveToNext()) {
                    v0_3.add(v1_2.getString(0));
                }
                v1_2.close();
            } else {
                v0_3 = java.util.Collections.EMPTY_SET;
                v1_2.close();
            }
        } catch (java.util.HashSet v0_4) {
            v1_2.close();
            throw v0_4;
        }
        return v0_3;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getTrayItems() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public android.database.Cursor getTrayItems(long p8, String p10, String p11)
    {
        long v4_1 = new Object[1];
        v4_1[0] = com.adobe.creativesdk.aviary.internal.utils.DateTimeUtils.toSqlDateTime(com.adobe.creativesdk.aviary.utils.SharedPreferencesUtils.getInstance(this.getContext()).getServerTime());
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("sqlServerTime: %s", v4_1);
        String v2_2 = new StringBuilder();
        v2_2.append(" SELECT item_id as _id, ((pack_id * 10000) + item_id ) as _order, pack_identifier as packagename, item_identifier as identifier, 0 as type, item_displayName as displayName, content_contentPath as path, content_installDate as installDate, content_isFree as isFree, pack_id as packId, content_displayName as packDisplayName FROM packs_table, content_table, items_table WHERE pack_id=content_packId AND pack_id=item_packId AND content_purchased=1  AND content_contentPath NOT NULL ");
        if (p8 <= 0) {
            String v0_23;
            StringBuilder vtmp27 = new StringBuilder().append(" AND pack_type=\'").append(p10).append("\' ").append(" AND ").append("item_usedCount").append(">0 ").append(" ORDER BY ").append("item_usedCount").append(" DESC, ").append("item_lastUsed").append(" DESC ").append(" LIMIT 0, ");
            if (!com.adobe.creativesdk.aviary.internal.cds.Cds$PackType.STICKER.toCdsString().equals(p10)) {
                v0_23 = 5;
            } else {
                v0_23 = 10;
            }
            v2_2.append(vtmp27.append(v0_23).toString());
        } else {
            v2_2.append(new StringBuilder().append(" AND pack_id=").append(p8).append(" ").append(" ORDER BY ").append("item_id").append(" DESC, ").append("_order").append(" ASC").toString());
        }
        String v0_1;
        String v0_0 = this.getReadableDatabase();
        if (v0_0 == null) {
            v0_1 = 0;
        } else {
            v0_1 = v0_0.rawQuery(v2_2.toString(), 0);
        }
        return v0_1;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getTray() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    android.database.Cursor getTray(String p12, int p13, boolean p14, boolean p15, boolean p16, boolean p17, String p18)
    {
        Throwable v0_1;
        Long v2_0 = android.os.SystemClock.elapsedRealtime();
        com.adobe.android.common.log.LoggerFactory$Logger v1_28 = this.getTrayFeaturedCount(p12, p14);
        long v4_15 = this.getTrayInstalledCount(p12);
        int v5 = this.getRecentCount(p12);
        if ((v1_28 <= 1) && (v4_15 <= 1)) {
            v0_1 = 0;
        } else {
            v0_1 = 1;
        }
        if ((v4_15 == 0) && (p13 == 0)) {
            p13 = 1;
            v0_1 = 1;
        }
        Boolean v9_2 = new Object[1];
        v9_2[0] = com.adobe.creativesdk.aviary.internal.utils.DateTimeUtils.toSqlDateTime(com.adobe.creativesdk.aviary.utils.SharedPreferencesUtils.getInstance(this.getContext()).getServerTime());
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("sqlServerTime: %s", v9_2);
        int v8_4 = new Object[1];
        v8_4[0] = Integer.valueOf(v1_28);
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.log("availableFeatured: %d", v8_4);
        Object[] v7_25 = new Object[1];
        v7_25[0] = Integer.valueOf(v4_15);
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.log("installedCount: %d", v7_25);
        Object[] v7_27 = new Object[1];
        v7_27[0] = Integer.valueOf(v5);
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.log("recentCount: %d", v7_27);
        Object[] v7_29 = new Object[1];
        v7_29[0] = p12;
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("packType: %s", v7_29);
        Object[] v7_31 = new Object[1];
        v7_31[0] = Boolean.valueOf(p14);
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("freeOnly: %b", v7_31);
        Object[] v7_33 = new Object[1];
        v7_33[0] = Boolean.valueOf(p15);
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("showItems: %b", v7_33);
        Object[] v7_35 = new Object[1];
        v7_35[0] = Boolean.valueOf(p16);
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("showInstalledPacks: %b", v7_35);
        Object[] v7_37 = new Object[1];
        v7_37[0] = Boolean.valueOf(p17);
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("showOwnedDivider: %b", v7_37);
        String v6_1 = new StringBuilder();
        if (v0_1 != null) {
            v6_1.append("SELECT -1 as _id, -1 as _order, \'\' as packagename, \'\' as identifier, 5 as type, \'\' as displayName, \'\' as path, \'\' as installDate, 0 as isFree, -1 as packId, \'\' as packDisplayName UNION ALL ");
        }
        com.adobe.android.common.log.LoggerFactory$Logger v1_3;
        StringBuilder vtmp17 = new StringBuilder().append(" SELECT * from ( SELECT * from (SELECT pack_id as _id, pack_displayOrder as _order, pack_identifier as packagename, pack_identifier as identifier, 1 as type, content_displayName as displayName, content_iconPath as path, content_installDate as installDate, content_isFree as isFree, pack_id as packId, content_displayName as packDisplayName FROM packs_table, content_table WHERE pack_id=content_packId AND pack_visible=1 AND pack_finishedDownloading=1");
        if (!p14) {
            v1_3 = "";
        } else {
            v1_3 = " AND content_isFree>0";
        }
        v6_1.append(vtmp17.append(v1_3).append(" AND ").append("content_iconPath").append(" NOT NULL ").append(" AND ").append("content_purchased").append("=0 ").append(" AND ").append("pack_type").append("=? ").append(" ORDER BY ").append("pack_displayOrder").append(" ASC LIMIT ").append(p13).append(" )").append(" ORDER BY ").append("_order").append(" DESC )").toString());
        com.adobe.android.common.log.LoggerFactory$Logger v1_23 = 1;
        if ((p17) && (v4_15 > 0)) {
            v6_1.append("UNION ALL SELECT -1 as _id, -1 as _order, \'\' as packagename, \'\' as identifier, 7 as type, \'\' as displayName, \'\' as path, \'\' as installDate, 0 as isFree, -1 as packId, \'\' as packDisplayName");
        }
        if (!com.adobe.creativesdk.aviary.internal.cds.Cds$PackType.STICKER.toCdsString().equals(p12)) {
            if (v5 > 0) {
                if (p16) {
                    v6_1.append(" UNION ALL SELECT 0 as _id, -1 as _order, \'\' as packagename, \'\' as identifier, 8 as type, \'\' as displayName, \'\' as path, \'\' as installDate, 0 as isFree, 0 as packId, \'\' as packDisplayName");
                }
            }
        } else {
            if (v5 > 2) {
            }
        }
        if ((p15) || (p16)) {
            v6_1.append(" UNION ALL SELECT * from (");
        }
        if (p16) {
            v6_1.append("SELECT DISTINCT pack_id as _id, (pack_id * 10000) as _order, pack_identifier as packagename, pack_identifier as identifier, 2 as type, content_displayName as displayName, content_iconPath as path, content_installDate as installDate, content_isFree as isFree, pack_id as packId, content_displayName as packDisplayName FROM packs_table, content_table WHERE pack_id=content_packId  AND pack_type=?  AND content_purchased=1  AND content_contentPath NOT NULL");
            v1_23 = 2;
        }
        if (!p15) {
            if (p16) {
                v6_1.append(" ORDER BY installDate DESC, _order ASC)");
            }
        } else {
            if (p16) {
                v6_1.append(" UNION ALL");
            }
            v6_1.append(" SELECT item_id as _id, ((pack_id * 10000) + item_id ) as _order, pack_identifier as packagename, item_identifier as identifier, 0 as type, item_displayName as displayName, content_contentPath as path, content_installDate as installDate, content_isFree as isFree, pack_id as packId, content_displayName as packDisplayName,  FROM packs_table, content_table, items_table WHERE pack_id=content_packId AND pack_id=item_packId AND pack_type=?  AND content_purchased=1  AND content_contentPath NOT NULL  ORDER BY installDate DESC, _order ASC)");
            v1_23++;
        }
        if (v0_1 != null) {
            v6_1.append(" UNION ALL SELECT -1 as _id, -1 as _order, \'\' as packagename, \'\' as identifier, 6 as type, \'\' as displayName, \'\' as path, \'\' as installDate, 0 as isFree, -1 as packId, \'\' as packDisplayName");
        }
        long v4_11 = new java.util.ArrayList(v1_23);
        Throwable v0_3 = 0;
        while (v0_3 < v1_23) {
            v4_11.add(p12);
            v0_3++;
        }
        Throwable v0_8;
        Throwable v0_5 = new String[v4_11.size()];
        Throwable v0_7 = ((String[]) v4_11.toArray(v0_5));
        com.adobe.android.common.log.LoggerFactory$Logger v1_25 = this.getReadableDatabase();
        if (v1_25 == null) {
            v0_8 = 0;
        } else {
            try {
                v0_8 = v1_25.rawQuery(v6_1.toString(), v0_7);
                Object[] v7_19 = new Object[1];
                Long v2_2 = Long.valueOf((android.os.SystemClock.elapsedRealtime() - v2_0));
                v7_19[0] = v2_2;
                com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("total time: %d", v7_19);
            } catch (Throwable v0_9) {
                Object[] v7_21 = new Object[1];
                v7_21[0] = Long.valueOf((android.os.SystemClock.elapsedRealtime() - v2_2));
                com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.verbose("total time: %d", v7_21);
                throw v0_9;
            }
        }
        return v0_8;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getFeaturedBanners() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    android.database.Cursor getFeaturedBanners(int p4)
    {
        android.database.Cursor v0 = 0;
        if (p4 >= 1) {
            String v1_1 = new StringBuilder().append("SELECT pack_id as _id, pack_identifier as identifier, pack_type as packType, content_displayName as displayName, content_featureImageURL as featureURL, content_featureImageLocalPath as featureImageLocalPath, content_isFree as free, content_purchased as purchased, 0 as type FROM (SELECT * FROM content_table JOIN packs_table ON (packs_table.pack_id=content_table.content_packId) WHERE ifnull(length(content_featureImageURL), 0) > 0 AND pack_visible=1 AND pack_markedForDeletion=0 ORDER BY content_isFree DESC, pack_displayOrder DESC, pack_id DESC ) GROUP BY pack_type LIMIT 0, ").append(p4).toString();
            android.database.sqlite.SQLiteDatabase v2_0 = this.getReadableDatabase();
            if (v2_0 != null) {
                v0 = v2_0.rawQuery(v1_1, 0);
            }
        }
        return v0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getFeatured() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    android.database.Cursor getFeatured(boolean p9, int p10)
    {
        int v0_0 = 0;
        String v2_2 = new StringBuilder();
        if (p9) {
            v2_2.append("SELECT * FROM (  SELECT -2 as _id, \'\' as identifier, \'effect\' as packType, \'Featured Effects\' as displayName, \'\' as iconPath, \'\' as free, \'\' as purchased, \'\' as contentPath, 0 as type)");
            v2_2.append(" UNION ALL ");
        }
        String[] v3_1 = new String[4];
        v3_1[0] = "effect";
        v3_1[1] = "frame";
        v3_1[2] = "sticker";
        v3_1[3] = "overlay";
        while (v0_0 < v3_1.length) {
            v2_2.append(new StringBuilder().append("SELECT * FROM (  SELECT ").append((- (v0_0 + 1000))).append(" as ").append("_id").append(", ").append("\'\' as ").append("identifier").append(", ").append("\'").append(v3_1[v0_0]).append("\' as ").append("packType").append(", ").append("\'").append(com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getPackFeaturedLabel(this.getContext(), v3_1[v0_0])).append("\' as ").append("displayName").append(", ").append("\'\' as ").append("iconPath").append(", ").append("\'\' as ").append("free").append(", ").append("\'\' as ").append("purchased").append(", ").append("").append("\'\' as ").append("contentPath").append(", ").append(1).append(" as ").append("type").append(")").toString());
            v2_2.append(" UNION ALL ");
            v2_2.append(new StringBuilder().append("SELECT * FROM ( SELECT pack_id as _id, pack_identifier as identifier, pack_type as packType, content_displayName as displayName, content_iconPath as iconPath, content_isFree as free, content_purchased as purchased, content_contentPath as contentPath, 2 as type FROM packs_table JOIN content_table ON ( packs_table.pack_id = content_table.content_packId) WHERE pack_type=\'").append(v3_1[v0_0]).append("\'").append(" AND ").append("pack_visible").append("=1").append(" AND ").append("pack_finishedDownloading").append("=1").append(" AND ").append("pack_markedForDeletion").append("=0").append(" ORDER BY ").append("content_purchased").append(" ASC, ").append("pack_displayOrder").append(" ASC").append(" LIMIT 0, ").append(p10).append(" )").toString());
            if ((v0_0 + 1) < v3_1.length) {
                v2_2.append(" UNION ALL ");
            }
            v0_0++;
        }
        int v0_2;
        int v0_1 = this.getReadableDatabase();
        if (v0_1 == 0) {
            v0_2 = 0;
        } else {
            v0_2 = v0_1.rawQuery(v2_2.toString(), 0);
        }
        return v0_2;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getTrayInstalledCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int getTrayInstalledCount(String p7)
    {
        android.database.Cursor v2_10;
        int v0_0 = 0;
        android.database.Cursor v2_9 = new StringBuilder().append("SELECT count(pack_id) as _count FROM packs_table, content_table WHERE pack_id=content_packId AND pack_type=\'").append(p7).append("\'").append(" AND ").append("content_purchased").append("=1").append(" AND ").append("content_contentPath").append(" NOT NULL").toString();
        com.adobe.android.common.log.LoggerFactory$Logger v3_6 = this.getReadableDatabase();
        if (v3_6 == null) {
            v2_10 = 0;
        } else {
            v2_10 = v3_6.rawQuery(v2_9, 0);
        }
        if (v2_10 != null) {
            try {
                if (!v2_10.moveToFirst()) {
                    com.adobe.android.common.util.IOUtils.closeSilently(v2_10);
                } else {
                    v0_0 = v2_10.getInt(0);
                    com.adobe.android.common.util.IOUtils.closeSilently(v2_10);
                }
            } catch (int v0_1) {
                com.adobe.android.common.util.IOUtils.closeSilently(v2_10);
                throw v0_1;
            } catch (String v1_3) {
                com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.error(new StringBuilder().append("handled: ").append(v1_3).toString());
                com.adobe.android.common.util.IOUtils.closeSilently(v2_10);
            }
        }
        return v0_0;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getTrayFeaturedCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int getTrayFeaturedCount(String p8, boolean p9)
    {
        String v0_2;
        android.database.Cursor v2 = 0;
        StringBuilder v4_1 = new Object[2];
        v4_1[0] = p8;
        v4_1[1] = Boolean.valueOf(p9);
        com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.info("getTrayFeaturedCount: packType: %s, freeOnly: %b", v4_1);
        StringBuilder vtmp2 = new StringBuilder().append("SELECT COUNT(pack_id) as _count  FROM packs_table, content_table WHERE pack_id=content_packId AND pack_visible=1 AND pack_finishedDownloading=1");
        if (!p9) {
            v0_2 = "";
        } else {
            v0_2 = " AND content_isFree=1";
        }
        String v0_19 = vtmp2.append(v0_2).append(" AND ").append("content_iconPath").append(" NOT NULL").append(" AND ").append("content_purchased").append("=0").append(" AND ").append("pack_type").append("=\'").append(p8).append("\' ").append(" ORDER BY ").append("pack_displayOrder").append(" ASC").toString();
        com.adobe.android.common.log.LoggerFactory$Logger v3_16 = this.getReadableDatabase();
        if (v3_16 != null) {
            v2 = v3_16.rawQuery(v0_19, 0);
        }
        String v0_26;
        if (v2 == null) {
            v0_26 = 0;
        } else {
            try {
                if (!v2.moveToFirst()) {
                    com.adobe.android.common.util.IOUtils.closeSilently(v2);
                } else {
                    v0_26 = v2.getInt(0);
                    com.adobe.android.common.util.IOUtils.closeSilently(v2);
                }
            } catch (String v0_25) {
                com.adobe.android.common.util.IOUtils.closeSilently(v2);
                throw v0_25;
            } catch (String v0_22) {
                com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.logger.error(new StringBuilder().append("handled: ").append(v0_22).toString());
                com.adobe.android.common.util.IOUtils.closeSilently(v2);
            }
        }
        return v0_26;
    }

Method com.adobe.creativesdk.aviary.internal.cds.CdsDatabaseHelper.getRecentCount() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int getRecentCount(String p5)
    {
        int v0 = 0;
        android.database.Cursor v1_1 = this.getReadableDatabase();
        if ((v1_1 != null) && (v1_1.isOpen())) {
            String[] v3_0 = new String[1];
            v3_0[0] = p5;
            android.database.Cursor v1_0 = v1_1.rawQuery("SELECT count(t1.item_id) as _count FROM     items_table as t1,     packs_table as t2,     content_table as t3 WHERE     t1.item_packId = t2.pack_id    AND t2.pack_id = t3.content_packId    AND t3.content_contentPath NOT NULL     AND t2.pack_type=?     AND t1.item_usedCount > 0", v3_0);
            if ((v1_0 != null) && (v1_0.moveToFirst())) {
                v0 = v1_0.getInt(0);
            }
            com.adobe.android.common.util.IOUtils.closeSilently(v1_0);
        }
        return v0;
    }

Method com.yandex.promolib.impl.r.a() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    public static long a(android.database.sqlite.SQLiteDatabase p6, android.content.ContentValues p7)
    {
        try {
            long v0 = p6.insertOrThrow("campaignsinfo", 0, p7);
        } catch (String v2) {
            String v2_9 = p7.getAsLong("last_time_updated");
            String v3_0 = p7.getAsString("campaign_id");
            if (v2_9 == null) {
            } else {
                if (v3_0 == null) {
                } else {
                    p6.execSQL(new StringBuilder().append("UPDATE campaignsinfo SET last_time_updated = \'").append(v2_9).append("\' WHERE ").append("campaign_id").append(" =\'").append(v3_0).append("\'").toString());
                }
            }
        }
        return v0;
    }

Method com.yandex.metrica.impl.ob.cg.a() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    static synthetic void a(ark>com.yandex.metrica.impl.ob.cgark> p7, java.util.List p8)
    {
        java.util.concurrent.locks.Lock v0_0 = 0;
        if ((p8 != null) && (!p8.isEmpty())) {
            p7.c.lock();
            try {
                java.util.concurrent.locks.Lock v1_1 = p7.d.getWritableDatabase();
                try {
                    if ((p7.k.get() % 10) == 0) {
                        p7 = p7.c();
                    }
                } catch (java.util.concurrent.locks.Lock v0_1) {
                    com.yandex.metrica.impl.bl.a(v1_1);
                    p7.c.unlock();
                    throw v0_1;
                } catch (java.util.concurrent.locks.Lock v0) {
                    v0_0 = v1_1;
                    com.yandex.metrica.impl.bl.a(v0_0);
                    p7.c.unlock();
                }
                v1_1.beginTransaction();
                java.util.Iterator v2_2 = p8.iterator();
                while (v2_2.hasNext()) {
                    java.util.concurrent.locks.Lock v0_9 = ((android.content.ContentValues) v2_2.next());
                    v1_1.insertOrThrow("reports", 0, v0_9);
                    p7 = p7.a(v0_9, "Event saved to db");
                }
                v1_1.setTransactionSuccessful();
                p7.k.incrementAndGet();
                com.yandex.metrica.impl.bl.a(v1_1);
                p7.c.unlock();
            } catch (java.util.concurrent.locks.Lock v1_0) {
                v1_1 = 0;
                v0_1 = v1_0;
            } catch (java.util.concurrent.locks.Lock v1) {
            }
        }
        return;
    }

Method ru.yandex.disk.feed.publicblock.d.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public ru.yandex.disk.util.l a(long p10)
    {
        android.database.Cursor v0_1 = this.a();
        String[] v4_2 = new Object[1];
        v4_2[0] = Long.valueOf(p10);
        return new ru.yandex.disk.feed.publicblock.b(v0_1.query("PUBLIC_BLOCKS_COMMENTS", 0, "block_id = ?", ru.yandex.disk.util.h.a(v4_2), 0, 0, "comment_id ASC, created ASC"));
    }

Method ru.yandex.disk.feed.cc.i() calling method android.database.sqlite.SQLiteDatabase.query()


    public android.database.Cursor i()
    {
        return this.q().query("VIEW_FIRST_FRACTIONS_COUNT", 0, 0, 0, 0, 0, 0);
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private ru.yandex.disk.util.l a(String p10, String[] p11)
    {
        return new ru.yandex.disk.feed.bs(this.q().query("FEED_BLOCKS", 0, p10, p11, 0, 0, "block_order DESC"));
    }

Method ru.yandex.disk.feed.cc.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private ru.yandex.disk.util.l a(String p11, String p12, String[] p13, String p14)
    {
        return new ru.yandex.disk.feed.bu(this.q().query(p11, 0, p12, p13, 0, 0, p14, 0));
    }

Method ru.yandex.disk.asyncbitmap.an.a() calling method android.database.sqlite.SQLiteDatabase.query()


    private ru.yandex.disk.asyncbitmap.aj a(String p10, String p11)
    {
        return new ru.yandex.disk.asyncbitmap.aj(this.k().query(p10, 0, p11, 0, 0, 0, 0));
    }

Method com.localytics.android.ProfileProvider$ProfileDatabaseHelper.migrateV2ToV3() calling method android.database.sqlite.SQLiteDatabase.query()


    protected void migrateV2ToV3(android.database.sqlite.SQLiteDatabase p12)
    {
        int v1_2 = new Object[5];
        v1_2[0] = "changes";
        v1_2[1] = "_id";
        v1_2[2] = "scope";
        v1_2[3] = "change";
        v1_2[4] = "customer_id";
        p12.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_2));
        if (com.localytics.android.ProfileProvider$ProfileDatabaseHelper.oldDB != null) {
            try {
                android.content.ContentValues v10_1 = new android.content.ContentValues();
                int v1_3 = com.localytics.android.ProfileProvider$ProfileDatabaseHelper.oldDB.query("profile", 0, 0, 0, 0, 0, "_id ASC");
                try {
                    while (v1_3.moveToNext()) {
                        try {
                            String v2_6 = new org.json.JSONObject(v1_3.getString(v1_3.getColumnIndexOrThrow("attribute")));
                            org.json.JSONObject v3_6 = new org.json.JSONObject();
                            v3_6.put("op", com.localytics.android.ProfileHandler$ProfileOperation.ASSIGN.getOperationString());
                            Throwable v0_12 = ((String) v2_6.keys().next());
                            v3_6.put("attr", v0_12);
                            v3_6.put("value", v2_6.get(v0_12));
                            v10_1.put("scope", com.localytics.android.Localytics$ProfileScope.APPLICATION.getScope());
                            v10_1.put("change", v3_6.toString());
                            v10_1.put("customer_id", v1_3.getString(v1_3.getColumnIndexOrThrow("customer_id")));
                            p12.insert("changes", 0, v10_1);
                            v10_1.clear();
                        } catch (Throwable v0_18) {
                            com.localytics.android.Localytics$Log.w("Caught JSON exception", v0_18);
                        }
                    }
                } catch (Throwable v0_4) {
                    if (v1_3 != 0) {
                        v1_3.close();
                    }
                    throw v0_4;
                }
                com.localytics.android.ProfileProvider$ProfileDatabaseHelper.cleanUpOldDB();
                if (v1_3 != 0) {
                    v1_3.close();
                }
            } catch (Throwable v0_4) {
                v1_3 = 0;
            } catch (Throwable v0_19) {
                throw v0_19;
            }
        }
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.query()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p12, int p13, int p14)
    {
        if (p13 < 3) {
            p12.delete("upload_blob_events", 0, 0);
            p12.delete("event_history", 0, 0);
            p12.delete("upload_blobs", 0, 0);
            p12.delete("attributes", 0, 0);
            p12.delete("events", 0, 0);
            p12.delete("sessions", 0, 0);
        }
        if (p13 < 4) {
            int v1_37 = new Object[2];
            v1_37[0] = "sessions";
            v1_37[1] = "iu";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_37));
        }
        if (p13 < 5) {
            int v1_47 = new Object[2];
            v1_47[0] = "sessions";
            v1_47[1] = "device_wifi_mac_hash";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_47));
        }
        if (p13 < 6) {
            try {
                String v2_112 = new String[2];
                v2_112[0] = "_id";
                v2_112[1] = "attribute_key";
                int v1_78 = p12.query("attributes", v2_112, 0, 0, 0, 0, 0);
                try {
                    String v0_102 = v1_78.getColumnIndexOrThrow("_id");
                    String v2_128 = v1_78.getColumnIndexOrThrow("attribute_key");
                    int v3_117 = new android.content.ContentValues();
                    int v5_7 = new Object[1];
                    v5_7[0] = "_id";
                    Object[] v4_11 = String.format("%s = ?", v5_7);
                    int v5_9 = new String[1];
                    v1_78.moveToPosition(-1);
                } catch (String v0_100) {
                    if (v1_78 != 0) {
                        v1_78.close();
                    }
                    throw v0_100;
                }
                while (v1_78.moveToNext()) {
                    int v8_3 = new Object[2];
                    v8_3[0] = this.mLocalyticsDao.getAppContext().getPackageName();
                    v8_3[1] = v1_78.getString(v2_128);
                    v3_117.put("attribute_key", String.format("%s:%s", v8_3));
                    v5_9[0] = Long.toString(v1_78.getLong(v0_102));
                    p12.update("attributes", v3_117, v4_11, v5_9);
                    v3_117.clear();
                }
                if (v1_78 != 0) {
                    v1_78.close();
                }
            } catch (String v0_100) {
                v1_78 = 0;
            }
        }
        if (p13 < 7) {
            int v1_1 = new Object[3];
            v1_1[0] = "info";
            v1_1[1] = "fb_attribution";
            v1_1[2] = "first_run";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s TEXT, %s INTEGER);", v1_1));
            String v0_6 = new android.content.ContentValues();
            v0_6.putNull("fb_attribution");
            v0_6.put("first_run", Boolean.FALSE);
            p12.insertOrThrow("info", 0, v0_6);
        }
        if (p13 < 8) {
            int v1_7 = new Object[4];
            v1_7[0] = "identifiers";
            v1_7[1] = "_id";
            v1_7[2] = "key";
            v1_7[3] = "value";
            p12.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_7));
        }
        if (p13 < 9) {
            int v1_10 = new Object[2];
            v1_10[0] = "events";
            v1_10[1] = "clv_increase";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL DEFAULT 0;", v1_10));
        }
        if (p13 < 10) {
            int v1_12 = new Object[2];
            v1_12[0] = "info";
            v1_12[1] = "play_attribution";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_12));
        }
        if (p13 < 11) {
            int v1_14 = new Object[2];
            v1_14[0] = "info";
            v1_14[1] = "registration_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_14));
            int v1_17 = new Object[2];
            v1_17[0] = "info";
            v1_17[1] = "registration_version";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_17));
        }
        if (p13 < 12) {
            int v1_19 = new Object[2];
            v1_19[0] = "info";
            v1_19[1] = "first_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_19));
            int v1_21 = new Object[2];
            v1_21[0] = "info";
            v1_21[1] = "first_telephony_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_21));
            int v1_24 = new Object[2];
            v1_24[0] = "info";
            v1_24[1] = "package_name";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_24));
            String v0_33 = new android.content.ContentValues();
            v0_33.put("first_android_id", com.localytics.android.DatapointHelper.getAndroidIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("first_telephony_id", com.localytics.android.DatapointHelper.getTelephonyDeviceIdOrNull(this.mLocalyticsDao.getAppContext()));
            v0_33.put("package_name", this.mLocalyticsDao.getAppContext().getPackageName());
            p12.update("info", v0_33, 0, 0);
            int v1_30 = new Object[2];
            v1_30[0] = "sessions";
            v1_30[1] = "device_android_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_30));
        }
        if (p13 < 13) {
            int v1_32 = new Object[2];
            v1_32[0] = "events";
            v1_32[1] = "event_lat";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_32));
            int v1_35 = new Object[2];
            v1_35[0] = "events";
            v1_35[1] = "event_lng";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s REAL;", v1_35));
        }
        if (p13 < 14) {
            int v1_39 = new Object[19];
            v1_39[0] = "amp_rules";
            v1_39[1] = "_id";
            v1_39[2] = "campaign_id";
            v1_39[3] = "expiration";
            v1_39[4] = "display_seconds";
            v1_39[5] = "display_session";
            v1_39[6] = "version";
            v1_39[7] = "phone_location";
            v1_39[8] = "phone_size_width";
            v1_39[9] = "phone_size_height";
            v1_39[10] = "tablet_location";
            v1_39[11] = "tablet_size_width";
            v1_39[12] = "tablet_size_height";
            v1_39[13] = "time_to_display";
            v1_39[14] = "internet_required";
            v1_39[15] = "ab_test";
            v1_39[16] = "rule_name";
            v1_39[17] = "location";
            v1_39[18] = "devices";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s TEXT NOT NULL, %s INTEGER NOT NULL, %s INTEGER NOT NULL, %s INTEGER, %s INTEGER NOT NULL, %s TEXT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL, %s TEXT NOT NULL)", v1_39));
            int v1_41 = new Object[6];
            v1_41[0] = "amp_ruleevent";
            v1_41[1] = "_id";
            v1_41[2] = "event_name";
            v1_41[3] = "rule_id_ref";
            v1_41[4] = "amp_rules";
            v1_41[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_41));
            int v1_43 = new Object[4];
            v1_43[0] = "amp_displayed";
            v1_43[1] = "_id";
            v1_43[2] = "displayed";
            v1_43[3] = "campaign_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s INTEGER NOT NULL DEFAULT 0, %s INTEGER NOT NULL);", v1_43));
            int v1_45 = new Object[7];
            v1_45[0] = "amp_conditions";
            v1_45[1] = "_id";
            v1_45[2] = "attribute_name";
            v1_45[3] = "operator";
            v1_45[4] = "rule_id_ref";
            v1_45[5] = "amp_rules";
            v1_45[6] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_45));
            int v1_49 = new Object[6];
            v1_49[0] = "amp_condition_values";
            v1_49[1] = "_id";
            v1_49[2] = "value";
            v1_49[3] = "condition_id_ref";
            v1_49[4] = "amp_conditions";
            v1_49[5] = "_id";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT NOT NULL, %s INTEGER REFERENCES %s(%s) NOT NULL);", v1_49));
        }
        if (p13 < 15) {
            int v1_51 = new Object[4];
            v1_51[0] = "custom_dimensions";
            v1_51[1] = "_id";
            v1_51[2] = "custom_dimension_key";
            v1_51[3] = "custom_dimension_value";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT UNIQUE NOT NULL, %s TEXT NOT NULL);", v1_51));
        }
        if (p13 < 16) {
            int v1_53 = new Object[2];
            v1_53[0] = "info";
            v1_53[1] = "first_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_53));
            int v1_55 = new Object[2];
            v1_55[0] = "sessions";
            v1_55[1] = "device_advertising_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_55));
            int v1_57 = new Object[2];
            v1_57[0] = "info";
            v1_57[1] = "push_disabled";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER;", v1_57));
            int v1_59 = new Object[2];
            v1_59[0] = "info";
            v1_59[1] = "sender_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_59));
        }
        if (p13 < 17) {
            int v1_61 = new Object[4];
            v1_61[0] = "profile";
            v1_61[1] = "_id";
            v1_61[2] = "attribute";
            v1_61[3] = "action";
            p12.execSQL(String.format("CREATE TABLE IF NOT EXISTS %s (%s INTEGER PRIMARY KEY AUTOINCREMENT, %s TEXT, %s INTEGER)", v1_61));
            int v1_63 = new Object[2];
            v1_63[0] = "events";
            v1_63[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_63));
            int v1_66 = new Object[2];
            v1_66[0] = "events";
            v1_66[1] = "user_type";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_66));
            int v1_68 = new Object[2];
            v1_68[0] = "events";
            v1_68[1] = "ids";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT;", v1_68));
            int v1_70 = new Object[2];
            v1_70[0] = "info";
            v1_70[1] = "last_session_open_time";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER", v1_70));
            int v1_72 = new Object[3];
            v1_72[0] = "sessions";
            v1_72[1] = "elapsed";
            v1_72[2] = "elapsed";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s INTEGER NOT NULL CHECK (%s >= 0) DEFAULT 0", v1_72));
        }
        if (p13 < 18) {
            int v1_74 = new Object[2];
            v1_74[0] = "profile";
            v1_74[1] = "customer_id";
            p12.execSQL(String.format("ALTER TABLE %s ADD COLUMN %s TEXT", v1_74));
            android.content.ContentValues v9_1 = new android.content.ContentValues();
            try {
                int v1_76 = p12.query("profile", 0, 0, 0, 0, 0, 0);
                try {
                    while (v1_76.moveToNext()) {
                        String v0_97 = String.valueOf(v1_76.getInt(v1_76.getColumnIndexOrThrow("_id")));
                        try {
                            String v2_122 = new org.json.JSONObject(v1_76.getString(v1_76.getColumnIndexOrThrow("attribute")));
                            v9_1.put("attribute", v2_122.getString("attributes"));
                            v9_1.put("customer_id", v2_122.getString("id"));
                            Object[] v4_6 = new Object[2];
                            v4_6[0] = "_id";
                            v4_6[1] = v0_97;
                            p12.update("profile", v9_1, String.format("%s = %s", v4_6), 0);
                            v9_1.clear();
                        } catch (String v2) {
                            Object[] v4_9 = new Object[2];
                            v4_9[0] = "_id";
                            v4_9[1] = v0_97;
                            p12.delete("profile", String.format("%s = %s", v4_9), 0);
                        }
                    }
                } catch (String v0_92) {
                    if (v1_76 != 0) {
                        v1_76.close();
                    }
                    throw v0_92;
                }
                if (v1_76 != 0) {
                    v1_76.close();
                }
            } catch (String v0_92) {
                v1_76 = 0;
            }
        }
        return;
    }

Method com.localytics.android.MigrationDatabaseHelper.wallTimeForEvent() calling method android.database.sqlite.SQLiteDatabase.query()


    static long wallTimeForEvent(android.database.sqlite.SQLiteDatabase p12, String p13)
    {
        try {
            long v2_1 = new String[1];
            v2_1[0] = "wall_time";
            String[] v4 = new String[1];
            v4[0] = p13;
            int v1_0 = p12.query("events", v2_1, "uuid=?", v4, 0, 0, 0);
            try {
                long v2_0;
                if (!v1_0.moveToFirst()) {
                    v2_0 = 0;
                } else {
                    v2_0 = v1_0.getLong(0);
                }
            } catch (int v0_2) {
                if (v1_0 != 0) {
                    v1_0.close();
                }
                throw v0_2;
            }
            if (v1_0 != 0) {
                v1_0.close();
            }
            return v2_0;
        } catch (int v0_2) {
            v1_0 = 0;
        }
    }

Method com.localytics.android.MigrationDatabaseHelper.preUploadBuildBlobs() calling method android.database.sqlite.SQLiteDatabase.query()


    static void preUploadBuildBlobs(android.database.sqlite.SQLiteDatabase p11)
    {
        android.database.Cursor v8 = 0;
        java.util.HashSet v10_1 = new java.util.HashSet();
        try {
            android.database.Cursor v9 = p11.query("events", com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_EVENTS, 0, 0, 0, 0, com.localytics.android.MigrationDatabaseHelper.EVENTS_SORT_ORDER);
            try {
                android.content.ContentValues v1_0 = p11.query("upload_blob_events", com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_BLOBS, 0, 0, 0, 0, com.localytics.android.MigrationDatabaseHelper.UPLOAD_BLOBS_EVENTS_SORT_ORDER);
                try {
                    String v2_1 = v9.getColumnIndexOrThrow("_id");
                    java.util.Iterator v3_2 = new android.database.CursorJoiner(v9, com.localytics.android.MigrationDatabaseHelper.JOINER_ARG_UPLOAD_EVENTS_COLUMNS, v1_0, com.localytics.android.MigrationDatabaseHelper.PROJECTION_UPLOAD_BLOBS).iterator();
                } catch (String v0_1) {
                    v8 = v9;
                    if (v8 != null) {
                        v8.close();
                    }
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v0_1;
                }
                while (v3_2.hasNext()) {
                    switch (com.localytics.android.MigrationDatabaseHelper$1.$SwitchMap$android$database$CursorJoiner$Result[((android.database.CursorJoiner$Result) v3_2.next()).ordinal()]) {
                        case 1:
                            v10_1.add(Long.valueOf(v9.getLong(v2_1)));
                        default:
                    }
                }
                if (v9 != null) {
                    v9.close();
                }
                if (v1_0 != null) {
                    v1_0.close();
                }
                if (v10_1.size() > 0) {
                    android.content.ContentValues v1_4 = new android.content.ContentValues();
                    v1_4.put("uuid", java.util.UUID.randomUUID().toString());
                    String v2_6 = Long.valueOf(p11.insert("upload_blobs", 0, v1_4));
                    v1_4.clear();
                    java.util.Iterator v3_4 = v10_1.iterator();
                    while (v3_4.hasNext()) {
                        String v0_14 = ((Long) v3_4.next());
                        v1_4.put("upload_blobs_key_ref", v2_6);
                        v1_4.put("events_key_ref", v0_14);
                        p11.insert("upload_blob_events", 0, v1_4);
                        v1_4.clear();
                    }
                    v1_4.put("processed_in_blob", v2_6);
                    p11.update("event_history", v1_4, com.localytics.android.MigrationDatabaseHelper.SELECTION_UPLOAD_NULL_BLOBS, 0);
                    v1_4.clear();
                }
                return;
            } catch (String v0_1) {
                v1_0 = 0;
                v8 = v9;
            }
        } catch (String v0_1) {
            v1_0 = 0;
        }
    }

Method com.localytics.android.MigrationDatabaseHelper.getStringFromAppInfo() calling method android.database.sqlite.SQLiteDatabase.query()


    private static String getStringFromAppInfo(android.database.sqlite.SQLiteDatabase p9, String p10)
    {
        android.database.Cursor v8 = 0;
        try {
            android.database.Cursor v1_1 = p9.query("info", 0, 0, 0, 0, 0, 0);
            try {
                android.database.Cursor v0_2;
                if (!v1_1.moveToFirst()) {
                    if (v1_1 != null) {
                        v1_1.close();
                    }
                    v0_2 = 0;
                } else {
                    v0_2 = v1_1.getString(v1_1.getColumnIndexOrThrow(p10));
                    if (v1_1 != null) {
                        v1_1.close();
                    }
                }
            } catch (android.database.Cursor v0_0) {
                v8 = v1_1;
                if (v8 != null) {
                    v8.close();
                }
                throw v0_0;
            }
            return v0_2;
        } catch (android.database.Cursor v0_0) {
        }
    }

Method com.localytics.android.MigrationDatabaseHelper.getSessionUuid() calling method android.database.sqlite.SQLiteDatabase.query()


    private static String getSessionUuid(android.database.sqlite.SQLiteDatabase p9, long p10)
    {
        try {
            String[] v2 = new String[1];
            v2[0] = "uuid";
            String v3_3 = new Object[1];
            v3_3[0] = "_id";
            String v3_0 = String.format("%s = ?", v3_3);
            String[] v4_1 = new String[1];
            v4_1[0] = Long.toString(p10);
            int v1_1 = p9.query("sessions", v2, v3_0, v4_1, 0, 0, 0);
            try {
                if (!v1_1.moveToFirst()) {
                    throw new RuntimeException();
                } else {
                    RuntimeException v0_11 = v1_1.getString(v1_1.getColumnIndexOrThrow("uuid"));
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    return v0_11;
                }
            } catch (RuntimeException v0_4) {
                if (v1_1 != 0) {
                    v1_1.close();
                }
                throw v0_4;
            }
        } catch (RuntimeException v0_4) {
            v1_1 = 0;
        }
    }

Method com.localytics.android.MigrationDatabaseHelper.getSessionStartTime() calling method android.database.sqlite.SQLiteDatabase.query()


    private static long getSessionStartTime(android.database.sqlite.SQLiteDatabase p9, long p10)
    {
        try {
            long v2_0 = new String[1];
            v2_0[0] = "session_start_wall_time";
            String v3_3 = new Object[1];
            v3_3[0] = "_id";
            String v3_0 = String.format("%s = ?", v3_3);
            String[] v4_1 = new String[1];
            v4_1[0] = Long.toString(p10);
            int v1_1 = p9.query("sessions", v2_0, v3_0, v4_1, 0, 0, 0);
            try {
                if (!v1_1.moveToFirst()) {
                    throw new RuntimeException();
                } else {
                    long v2_1 = v1_1.getLong(v1_1.getColumnIndexOrThrow("session_start_wall_time"));
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    return v2_1;
                }
            } catch (RuntimeException v0_4) {
                if (v1_1 != 0) {
                    v1_1.close();
                }
                throw v0_4;
            }
        } catch (RuntimeException v0_4) {
            v1_1 = 0;
        }
    }

Method com.localytics.android.MigrationDatabaseHelper.getSessionIdForEventId() calling method android.database.sqlite.SQLiteDatabase.query()


    private static long getSessionIdForEventId(android.database.sqlite.SQLiteDatabase p9, long p10)
    {
        try {
            long v2_0 = new String[1];
            v2_0[0] = "session_key_ref";
            String v3_3 = new Object[1];
            v3_3[0] = "_id";
            String v3_0 = String.format("%s = ?", v3_3);
            String[] v4_1 = new String[1];
            v4_1[0] = Long.toString(p10);
            int v1_1 = p9.query("events", v2_0, v3_0, v4_1, 0, 0, 0);
            try {
                if (!v1_1.moveToFirst()) {
                    throw new RuntimeException();
                } else {
                    long v2_1 = v1_1.getLong(v1_1.getColumnIndexOrThrow("session_key_ref"));
                    if (v1_1 != 0) {
                        v1_1.close();
                    }
                    return v2_1;
                }
            } catch (RuntimeException v0_4) {
                if (v1_1 != 0) {
                    v1_1.close();
                }
                throw v0_4;
            }
        } catch (RuntimeException v0_4) {
            v1_1 = 0;
        }
    }

Method com.localytics.android.MigrationDatabaseHelper.getSessionIdForBlobId() calling method android.database.sqlite.SQLiteDatabase.query()


    private static long getSessionIdForBlobId(android.database.sqlite.SQLiteDatabase p9, long p10)
    {
        try {
            String[] v2_1 = new String[1];
            v2_1[0] = "events_key_ref";
            String v3_7 = new Object[1];
            v3_7[0] = "upload_blobs_key_ref";
            String v3_0 = String.format("%s = ?", v3_7);
            String[] v4_1 = new String[1];
            v4_1[0] = Long.toString(p10);
            String[] v2_0 = p9.query("upload_blob_events", v2_1, v3_0, v4_1, 0, 0, 0);
            try {
                RuntimeException v0_6;
                if (!v2_0.moveToFirst()) {
                    v0_6 = -1;
                    if (v2_0 != null) {
                        v2_0.close();
                    }
                } else {
                    int v6_1 = v2_0.getLong(v2_0.getColumnIndexOrThrow("events_key_ref"));
                    if (v2_0 != null) {
                        v2_0.close();
                    }
                    try {
                        String[] v2_2 = new String[1];
                        v2_2[0] = "session_key_ref";
                        String v3_4 = new Object[1];
                        v3_4[0] = "_id";
                        String v3_5 = String.format("%s = ?", v3_4);
                        String[] v4_3 = new String[1];
                        v4_3[0] = Long.toString(v6_1);
                        android.database.Cursor v8_1 = p9.query("events", v2_2, v3_5, v4_3, 0, 0, 0);
                    } catch (RuntimeException v0_20) {
                        if (v8_1 != null) {
                            v8_1.close();
                        }
                        throw v0_20;
                    }
                    if (!v8_1.moveToFirst()) {
                        throw new RuntimeException("No session associated with event");
                    } else {
                        v0_6 = v8_1.getLong(v8_1.getColumnIndexOrThrow("session_key_ref"));
                        if (v8_1 != null) {
                            v8_1.close();
                        }
                    }
                }
            } catch (RuntimeException v0_4) {
                String v1_1 = v2_0;
                if (v1_1 != null) {
                    v1_1.close();
                }
                throw v0_4;
            }
            return v0_6;
        } catch (RuntimeException v0_4) {
            v1_1 = 0;
        }
    }

Method com.localytics.android.MigrationDatabaseHelper.getIdentifiers() calling method android.database.sqlite.SQLiteDatabase.query()