Confirmed with privilege member, in privilege db, If declare an application.launch
privilege, the app will not have an application.launch privilege, but an
appmanager.launch privilege, so add "appmanager.launch" in privilege precondition,
otherwise service app can not use tizen.application.launch() /
tizen.application.launchAppControl().
Change-Id: I33b08d9221e718179228490086ab230884152c9b
Signed-off-by: liwei <wei90727.li@samsung.com>
console.log('The application.read permission is missing.');
}
}
- if (!permissions.includes("http://tizen.org/privilege/application.launch")) {
+ if (!permissions.includes("http://tizen.org/privilege/application.launch") &&
+ !permissions.includes("http://tizen.org/privilege/appmanager.launch")) {
tizen.application.launch =
tizen.application.launchAppControl = function() {
- console.log('The application.launch permission is missing.');
+ console.log('The application.launch and appmanager.launch permission is missing.');
}
}
if (!permissions.includes("http://tizen.org/privilege/application.info")) {