Skip to content

RDKEMW-21510: Order Cryptography activation after PowerManager#249

Open
sergiygladkyy wants to merge 1 commit into
support/8.4.4.0from
feature/RDKEMW-21510-cryptography-powermanager-dep-8.4.4.0
Open

RDKEMW-21510: Order Cryptography activation after PowerManager#249
sergiygladkyy wants to merge 1 commit into
support/8.4.4.0from
feature/RDKEMW-21510-cryptography-powermanager-dep-8.4.4.0

Conversation

@sergiygladkyy

Copy link
Copy Markdown
Contributor

Reason for change

Backport of #240 (RDKEMW-19048) onto support/8.4.4.0.

The Cryptography plugin registers an IPowerManager mode-change handler in CryptographyExtAccess::Initialize() with no retry on failure. If org.rdk.PowerManager is not active when org.rdk.Cryptography initializes, the registration fails silently and the deep-sleep SecAPI handle release never fires (RDKEMW-13788).

Requires and orders wpeframework-cryptography.service after wpeframework-powermanager.service; wpeframework.service stays required transitively.

Test Procedure

Described in the ticket: standby/wake with Network Standby OFF; confirm org.rdk.Cryptography activates after org.rdk.PowerManager and the handler registration succeeds in the logs.

Risks

Low

Reason for change:
- Backport of thunder-startup-services #240 (RDKEMW-19048) onto support/8.4.4.0
- The Cryptography plugin registers the IPowerManager mode-change handler in
  Initialize() with no retry on failure; if org.rdk.PowerManager is not active
  yet the registration fails silently and the deep-sleep SecAPI handle release
  never fires (RDKEMW-13788)
- Require and order wpeframework-cryptography.service after
  wpeframework-powermanager.service; wpeframework.service stays required
  transitively

Test Procedure: described in the ticket
Implements: systemd unit dependency update
Risks: Low
Source: COMCAST
License: Apache-2.0
Upstream-Status: Pending
Signed-off-by: Sergiy Gladkyy <sgladkyy@productengine.com>
Copilot AI review requested due to automatic review settings July 13, 2026 22:30
@sergiygladkyy
sergiygladkyy requested a review from a team as a code owner July 13, 2026 22:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports a systemd unit ordering fix so the org.rdk.Cryptography plugin is activated only after org.rdk.PowerManager, preventing missed IPowerManager mode-change handler registration when PowerManager isn’t yet active.

Changes:

  • Updates wpeframework-cryptography.service to Requires= and After= wpeframework-powermanager.service instead of wpeframework.service.
  • Ensures Cryptography activation is sequenced behind PowerManager (and transitively behind wpeframework.service, since PowerManager requires it).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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