summaryrefslogtreecommitdiff
path: root/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2018-11-15 14:17:30 -0500
committerjacobkeeler <jacob.keeler@livioradio.com>2018-11-15 14:17:30 -0500
commit1411b1b98c37ca6d483425562b01d9f40a20d52b (patch)
tree7744a52d4b53237434b07041038f672d285c9185 /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile
parent232f7f86c3d3e70df70aa14fb6817eb4c9e17c9d (diff)
downloadsdl_core-1411b1b98c37ca6d483425562b01d9f40a20d52b.tar.gz
Fix issues with ActivateApp flow
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile')
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc
index 58ee598e02..8f06e8c51a 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc
@@ -346,19 +346,6 @@ void RegisterAppInterfaceRequest::Run() {
application->set_msg_version(module_version);
}
- // For resuming application need to restore hmi_app_id from resumeCtrl
- resumption::ResumeCtrl& resumer = application_manager_.resume_controller();
- const std::string& device_mac = application->mac_address();
-
- // there is side affect with 2 mobile app with the same mobile app_id
- if (resumer.IsApplicationSaved(policy_app_id, device_mac)) {
- application->set_hmi_application_id(
- resumer.GetHMIApplicationID(policy_app_id, device_mac));
- } else {
- application->set_hmi_application_id(
- application_manager_.GenerateNewHMIAppID());
- }
-
application->set_is_media_application(
msg_params[strings::is_media_application].asBool());
@@ -451,6 +438,8 @@ void RegisterAppInterfaceRequest::Run() {
FillDeviceInfo(&device_info);
}
+ const std::string& device_mac = application->mac_address();
+
GetPolicyHandler().SetDeviceInfo(device_mac, device_info);
SendRegisterAppInterfaceResponseToMobile(ApplicationType::kNewApplication);
@@ -842,10 +831,6 @@ void RegisterAppInterfaceRequest::SendRegisterAppInterfaceResponseToMobile(
// By default app subscribed to CUSTOM_BUTTON
SendSubscribeCustomButtonNotification();
SendChangeRegistrationOnHMI(application);
-
- if (application->is_cloud_app()) {
- policy_handler_.OnActivateApp(connection_key(), correlation_id());
- }
}
void RegisterAppInterfaceRequest::SendChangeRegistration(