{ "id": "173469", "key": "MOD-2508", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-04-15T21:09:53.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "android", "database", "install", "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-08-13T17:28:33.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13609", "name": "Encrypted SQLite DB" } ], "description": "*Summary:*\r\nOn iOS, the database module's {{install(sourcedb, targetdb)}} method ignores the 1st argument and instead creates an encrypted database (if not done already) using the 2nd argument as the database file name. This means it doesn't actually install a pre-made database file within the app, which makes sense since the app developer doesn't have a means of creating an \"encrypted\" database on the desktop in advance. Instead, the module effectively does an {{open(targetdb)}} instead.\r\n\r\nThe Android version of the module should be changed to do the same, because it currently installs an embedded source database file referenced by the 1st argument, but if the source database is not encrypted, then the SQLCipher library will be unable to open it which makes the {{install()}} method useless.\r\n\r\n*Note:*\r\nThis module's {{install()}} method is effectively useless on both Android and iOS. I believe it exists to help transition app developers from {{Ti.Database}} to this module.\r\n", "attachment": [], "flagged": false, "summary": "EncryptedDB: Android install() method should ignore 1st argument and do an open() on 2nd argument like iOS", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }