{"action":"created","issue":{"url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/471","repository_url":"https://api.github.com/repos/smartdevicelink/sdl_core","labels_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/471/comments","events_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/471/events","html_url":"https://github.com/smartdevicelink/sdl_core/pull/471","id":147341135,"number":471,"title":"Adds partial support of proprietary policy flow","user":{"login":"dev-gh","id":11159113,"avatar_url":"https://avatars.githubusercontent.com/u/11159113?v=3","gravatar_id":"","url":"https://api.github.com/users/dev-gh","html_url":"https://github.com/dev-gh","followers_url":"https://api.github.com/users/dev-gh/followers","following_url":"https://api.github.com/users/dev-gh/following{/other_user}","gists_url":"https://api.github.com/users/dev-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-gh/subscriptions","organizations_url":"https://api.github.com/users/dev-gh/orgs","repos_url":"https://api.github.com/users/dev-gh/repos","events_url":"https://api.github.com/users/dev-gh/events{/privacy}","received_events_url":"https://api.github.com/users/dev-gh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T07:38:07Z","updated_at":"2016-04-11T07:38:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/471","html_url":"https://github.com/smartdevicelink/sdl_core/pull/471","diff_url":"https://github.com/smartdevicelink/sdl_core/pull/471.diff","patch_url":"https://github.com/smartdevicelink/sdl_core/pull/471.patch"},"body":"1. In case\r\nSDL is built with \"-DEXTENDED_POLICY: ON\" flag,\r\nand PolicyTableUpdate is triggered \r\nSDL must\r\nsend BasicCommunication.PolicyUpdate ( <path to SnapshotPolicyTable>, <timeout from policies>, <set of retry timeouts>) to HMI.\r\n\r\n2.In case\r\nSDL is built with \"-DEXTENDED_POLICY: ON\" flag,\r\nand SDL gets SDL.GetURLs (service: 7) from HMI\r\nSDL must\r\nrespond SDL.GetURLs_response (SUCCESS, urls: array(<SDL-chosen appID> + <url from policy database for service 7>)) to HMI.\r\n\r\n3. In case\r\nSDL is built with \"-DEXTENDED_POLICY: ON\" flag,\r\nand SDL gets BC.OnSystemRequest (PROPRIETARY, fileName: <path to Snapshot>, url, appID) from HMI\r\nSDL must\r\nsend OnSystemRequest to the specified appID app with Snapshot and Binary Header (below) in payload:\r\n\r\n {\r\n\t\"HTTPRequest\": {\r\n\t\t\"headers\": {\r\n\t\t\t\"ContentType\": \"application/json\",\r\n\t\t\t\"ConnectTimeout\": <int value from policy table:timeout_after_x_seconds>,\r\n\t\t\t\"DoOutput\": true,\r\n\t\t\t\"DoInput\": true,\r\n\t\t\t\"UseCaches\": false,\r\n\t\t\t\"RequestMethod\": \"POST\",\r\n\t\t\t\"ReadTimeout\": <int value from policy table:timeout_after_x_seconds>,\r\n\t\t\t\"InstanceFollowRedirects\": false,\r\n\t\t\t\"charset\": \"utf-8\",\r\n\t\t\t\"Content_Length\": <value of the length of the \"body\" string>\r\n\t\t},\r\n\t\t\"body\": \"{\"data\":[\"this is either the syncp packet or raw policy table BgcYTArvdz62FO7yHgOTXtE3EP0E0WsbFeDqzYY=\"]}\"\r\n\t}\r\n}\r\n\r\n4. In case\r\nSDL is built with \"-DEXTENDED_POLICY: ON\" flag,\r\nand SDL has sent OnSystemRequest with SnapshotPT to mobile app\r\nand SDL gets SystemRequest with UpdatedPT in payload during \"timeout_after_x_seconds\" value taken from Policy Database and started after OnSystemRequest sending out to mobile app\r\nSDL must\r\nsend BasicCommunication.SystemRequest (<path to UpdatedPT>, PROPRIETARY, params) to HMI.\r\n\r\n5. In case\r\nSDL is built with \"-DEXTENDED_POLICY: ON\" flag,\r\nand SDL has sent BasicCommunication.SystemRequest to HMI\r\nand SDL gets BasicCommunication.SystemRequest_response (<resultCode>) during \"SDL timeout for HMI requests\" (= 10 sec by default) from HMI\r\nSDL must\r\nsend SystemRequest_response (<resultCode from HMI response>) to mobile app.\r\n\r\n6. In case\r\nSDL is built with \"-DEXTENDED_POLICY: ON\" flag,\r\nand SDL gets SDL.OnReceivedPolicyUpdate (<path to UpdatedPT>) from HMI\r\nSDL must\r\napply the valid UpdatedPT to Policy Database \r\n\r\n7. In case\r\nSDL is built with \"-DEXTENDED_POLICY: OFF\" flag or without this flag at all,\r\nSDL must support original open-source flow."},"comment":{"url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/comments/208203754","html_url":"https://github.com/smartdevicelink/sdl_core/pull/471#issuecomment-208203754","issue_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/471","id":208203754,"user":{"login":"dev-gh","id":11159113,"avatar_url":"https://avatars.githubusercontent.com/u/11159113?v=3","gravatar_id":"","url":"https://api.github.com/users/dev-gh","html_url":"https://github.com/dev-gh","followers_url":"https://api.github.com/users/dev-gh/followers","following_url":"https://api.github.com/users/dev-gh/following{/other_user}","gists_url":"https://api.github.com/users/dev-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-gh/subscriptions","organizations_url":"https://api.github.com/users/dev-gh/orgs","repos_url":"https://api.github.com/users/dev-gh/repos","events_url":"https://api.github.com/users/dev-gh/events{/privacy}","received_events_url":"https://api.github.com/users/dev-gh/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T07:38:40Z","updated_at":"2016-04-11T07:38:40Z","body":"Core changes have been moved from https://github.com/smartdevicelink/sdl_core/pull/465 according to Ford request"}}