Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/Checking PTU triggers when no apps are registered in regular policy mode #3294

Merged
merged 9 commits into from
Mar 19, 2020

Conversation

ShobhitAd
Copy link
Contributor

@ShobhitAd ShobhitAd commented Mar 18, 2020

Fixes #3279

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

ATF tests 019 and 020 in smartdevicelink/sdl_atf_test_scripts#2368

Summary

Currently, the IgnitionCycles and Days PTU triggers are not checked in the regular policy mode when SDL starts. In the external policy manager, this check is triggered in PolicyManagerImpl::SetUserConsentForDevice when StartPTExchange is called. PolicyManagerImpl::SetUserConsentForDevice seems to be missing this functionality in the regular policy manager.

This PR adds a call for StartPTExchange in PolicyManagerImpl::SetUserConsentForDevice when the consent is allowed in the regular policy mode.

CLA

@ShobhitAd ShobhitAd merged commit b51affe into release/6.1.0 Mar 19, 2020
@ShobhitAd ShobhitAd deleted the fix/check_ptu_triggers_without_apps branch March 19, 2020 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants