SDL.ActivateApp
. GetUserFriendlyMessage
) and notify user that provided permissions of application were decreased in case HMI gets "isAppPermissionRevoked:true" respond from SDL PoliciesManager. GetListOfPermissions
request to SDL in order to obtain list of message codes for functional groups needed by application for user to consent when PoliciesManager responds with "isPermissionsConsentNeeded: true" . OnAllowSDLFunctionality
specifying device from ActivateApp
response, source of choice (UI/VR) and allowed set to true/false (if user ignores question, this is automatically set to false) when HMI receives SDL.ActivateApp
(isSDLAllowed: false).SDL PoliciesManager must:
Name | Type | Mandatory | Description |
---|---|---|---|
appID | Integer | true | ID of the application that the User has chosen. |
Name | Type | Mandatory | Additional | Description |
---|---|---|---|---|
isSDLAllowed | Boolean | true | scope: internal | SDL returns:‘true’, in case the User has allowed using the device for PolicyTable Exchange. ‘false’, in case the User has not yet been asked for or in case the User has disallowed using the device for PolicyTable Exchange. |
device | Common.DeviceInfo | false | scope: internal | |
isPermissionsConsentNeeded | Boolean | true | ||
isAppPermissionsRevoked | Boolean | true | ||
appRevokedPermissions | Common.PermissionItem | false | array: true minsize: 1 maxsize: 100 |
|
isAppRevoked | Boolean | true | ||
priority | Common.AppPriority | false |
Preconditions:
a. Device is connected to the HU.
b. App_1 is running on this device and is registered with SDL.
c. App_1 presents in the list of registered apps on HMI.
{ "id" : 27, "jsonrpc" : "2.0", "method" : "SDL.ActivateApp", "params" : { "appID" : 12345 } }
{ "id" : 27, "jsonrpc" : "2.0", "result" : { "isSDLAllowed" : true, "isPermissionsConsentNeeded" : false, "isAppPermissionsRevoked" : false, "isAppRevoked" : false, "code" : 0, "method" : "SDL.ActivateApp" } }
{ "id" : 27, "jsonrpc" : "2.0", "error" : { "code" : 22, "message" : "The unknown error has occurred", "data" : { "method" : "SDL.ActivateApp" } } }