Initiated by HMI for specifying the allowance for the application to perform some functionality. The notification informs the Policy Manager about some changes in application permissions that affect application behavior on HMI.
1) Send OnAppPermissionConsent
when user answers to prompt about app's permissions consent.
2) Send OnAppPermissionConsent
when user enters settings menu and allows/disallows app's permissions.
3) Use the pair of values id<->name in PermissionItem structure which were obtained via GetListOfPermissions
response
4) Send OnAppPermissionConsent
when user changes ExternalConsentStatus
.
OnAppPermissionConsent
is received without <appID>
parameter.OnAppPermissionConsent
according to its internal rules (update appropriate application permissions sections in the policies database etc).a) SDL ignores all invalid notifications which come from HMI (invalid JSON, invalid data types/bounds etc).
b) ExternalConsentStatus
either user_disallows or user_allows applications functional groupings depending on predefined settings in policy table.
c) SDL uses OnAppPermissionConsent
value (ON/OFF) received from HMI through ignition cycles until this value is changed by corresponding notification from HMI.
Name | Type | Mandatory | Additional |
---|---|---|---|
appID | Integer | false | |
consentedFunctions | Common.PermissionItem | false | array: true minsize: 1 maxsize: 100 |
externalConsentStatus | Common.ExternalConsentStatus | false | array: true minsize: 1 maxsize: 100 |
source | Common.ConsentSource | true |
{ "jsonrpc" : "2.0", "method" : "SDL.OnAppPermissionConsent", "params" : { "appID":13759, "consentedFunctions":[ { "allowed":false, "id":4734356, "name":"DrivingCharacteristics" } ], "source":"GUI" } }