alexa-voiceagent-service: update config and database file paths 58/22558/2
authorScott Murray <scott.murray@konsulko.com>
Tue, 1 Oct 2019 09:02:25 +0000 (05:02 -0400)
committerScott Murray <scott.murray@konsulko.com>
Thu, 3 Oct 2019 18:12:26 +0000 (18:12 +0000)
commit58bb58dda2b080f186696f8c06fa23c18fee0d8b
treee94c22c540d3ecdc91c44233b791c10e2af8db36
parentc63a424bb0459618b37640ef43fae725cff52ea4
alexa-voiceagent-service: update config and database file paths

Add patch to alexa-voiceagent-service to update the default paths
used for the database and configuration files to move them out of the
binding installation hierarchy. This avoids the permissions problems
stemming from the new security model of running as non-root. Also
reworked the main configuration JSON file location logic to check for
the file in /etc/xdg/AGL and then in AFM_WORKDIR (app-data directory),
before falling back to the original location in var/config under the
binding installation directory.

Bug-AGL: SPEC-2845

Change-Id: Id7636435163005148a6291a56a1ada9896c0b3cc
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
(cherry picked from commit c5b99b7e8608c1201293d84ba06e4a3ca501d9e8)
meta-speech-framework/meta-aac/recipes-apis/alexa-voiceagent-service/alexa-voiceagent-service/0004-update-config-and-database-paths.patch [new file with mode: 0644]
meta-speech-framework/meta-aac/recipes-apis/alexa-voiceagent-service/alexa-voiceagent-service_git.bb