Fix the problem that DB cannot be deleted if DB is not initialized.
authorsaerome.kim <saerome.kim@samsung.com>
Mon, 28 Oct 2019 12:33:16 +0000 (21:33 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Tue, 29 Oct 2019 00:45:47 +0000 (09:45 +0900)
commit66f87f8f0aee55f1276f9c5fe7f61bc7cfb61ec6
treea4ec3b06ba9af9027612e6ec9c5c31c45d53abf2
parentf69dbfa23060fbd7fb5727f70b9bfde4329164b3
Fix the problem that DB cannot be deleted if DB is not initialized.

- Problem: During factory reset, vendor-plugin can't initialize the DB.
- Cause: The DB was not opened before the DB initialization.
- Solution: Delete the DB when reset_cb() is called.

Change-Id: I65394d0c4ab9b9719cbe3f9f63f1ef82d243a583
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
packaging/ua-manager.spec
ua-daemon/src/ua-manager-core.c