Ticket Hash: | fb0c8c443167a139c9da109e52bf292b477c84ab | ||
Title: | SQLiteOpenHelper does not open the database in the database folder | ||
Status: | Open | Type: | Code_Defect |
Severity: | Important | Priority: | |
Subsystem: | Resolution: | ||
Last Modified: |
2018-05-28 06:41:08 7.00 years ago |
Created: |
2018-05-28 06:41:08 7.00 years ago |
Version Found In: | sqlite-android-3230100.aar |
User Comments: | ||||
anonymous added on 2018-05-28 06:41:08:
At https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/database/sqlite/SQLiteOpenHelper.java in the private SQLiteDatabase getDatabaseLocked(boolean writable) method, the path to the database is final File filePath = mContext.getDatabasePath(mName); In your version the path is mName when you try to open read/write and String path = this.mContext.getDatabasePath(this.mName).getPath(); if the first try does not work. The effect is if the working code with Android sqlite classes is modified to use your version of sqlite classes, the code will not work because the database cannot be opened. |