Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2508] EncryptedDB: Android install() method should ignore 1st argument and do an open() on 2nd argument like iOS

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsEncrypted SQLite DB
Labelsandroid, database, install, parity
ReporterJoshua Quick
AssigneeJoshua Quick
Created2019-04-15T21:09:53.000+0000
Updated2019-08-13T17:28:33.000+0000

Description

*Summary:* On 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. The 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. *Note:* This 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.

Comments

No comments

JSON Source