-
Notifications
You must be signed in to change notification settings - Fork 568
ICU dat file on SD card #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is a very simple patch that will fix this issue and it is backwards compatible. I applied it and tested it against the v2 branch.
|
Hi jeffdcamp, Thanks for taking a look at this. Would you mind sending a pull request for the change? Thanks! |
I just submitted 2 pull requests for the change.... one for master (version 1.1) and one for v2 (2.0) |
Hi jeffdcamp, Thanks for submitting that. I'll review it this afternoon and if everything runs smooth with our test suite I will merge it into the v2 branch. v2 will be merged back into master soon so no need for the extra pull request. Thanks again! |
I know this is not the place for this comment.... but is there a developer group that I can post comments/questions to? (I'm concerned about compatibility/migration from v1.1 to v2.0... my 1.1 database didn't seem to open when I compiled v2 branch and tried to open an existing 1.1 database using v2 code) |
Hi jeffdcamp, There is a difference between the database format in 2.0 vs. 1.1. I have added a upgrade method in v2 called SQLiteDatabaseHook hook = new SQLiteDatabaseHook(){
public void preKey(SQLiteDatabase database){
database.rawExecSQL("PRAGMA cipher_default_use_hmac = off");
}
public void postKey(SQLiteDatabase database){}
}
SQLiteDatabase database = SQLiteDatabase.openOrCreateDatabase(databasePath,
password, null, hook); |
FYI... I've been using this feature ("ICU dat file on SD card") in 2.0RC5 for quite some time and on many devices using many different versions of Android and this has been working great. Jeff |
Jeff, Glad to hear it's working well for you, thanks for reporting back! |
Add the ability to specify the storage location of the unzipped ICU dat file. Specifically onto a SD card, this is a practical location for older devices that have limited onboard storage.
The text was updated successfully, but these errors were encountered: