Skip to content

Commit

Permalink
Update ActivateAppRevokedPermissions digram (#259)
Browse files Browse the repository at this point in the history
* update png diagram file, add txt file

* Update docs/SDL/ActivateApp/assets/ActivateAppRevokedPermissions.txt

Co-authored-by: Collin <iCollin@users.noreply.github.com>

Co-authored-by: Iryna Lytvynenko (GitHub) <ILytvynenko@luxoft.com>
Co-authored-by: Collin <iCollin@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 11, 2022
1 parent dce1a34 commit edd1199
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Binary file modified docs/SDL/ActivateApp/assets/ActivateAppRevokedPermissions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions docs/SDL/ActivateApp/assets/ActivateAppRevokedPermissions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
participant SDL

participant HMI

note over HMI: <align:center>appID_1 app is registered and is\npresent in the 'List of registered\napps' on HMI</align>

note over HMI: <align:center>The User chooses to activate appID_1\napp (manually or by voice)</align>

SDL<-HMI: SDL.ActiveApp{appID_1}


note over SDL: <align:center>PT stores the device\nas consented</align>

note over SDL: <align:center>PT Update comes ->\nappID_1 gets NULL\npermissions</align>

SDL-->HMI:<align:center> SDL.ActiveApp\n{code:4, isSDLAllowed:true, isAppRevoked:true}

note over HMI: <align:center>Do NOT activate the\nappID_1 app</align>

SDL<-HMI: <align:center> SDL.GetUserFriendlyMessage\n{messageCodes: "AppUnauthorized", params}

note over SDL: <align:center>Takes the information\nfrom PT</align>

SDL-->HMI: SDL.GetUserFriendlyMessage {params}

note over SDL:<align:center>SDL will never allow the\n appID_1 (WEB_VIEW) app\n that has NULL permissions\nto register afterwards</align>

note over HMI:<align:center>Display the popup\nwith "AppUnauthorized"\nmessage</align>

note over SDL:<align:center> Apps with other AppHMIType can be registered,\nbut are not allowed to be activated

0 comments on commit edd1199

Please sign in to comment.