Skip to content

RDKEMW-9437 : Secure Unlock of Debug services(overrides) in LabSigned Build type - #108

Draft
KTirumalaSrihari wants to merge 10 commits into
developfrom
topic/RDKEMW-8178
Draft

RDKEMW-9437 : Secure Unlock of Debug services(overrides) in LabSigned Build type#108
KTirumalaSrihari wants to merge 10 commits into
developfrom
topic/RDKEMW-8178

Conversation

@KTirumalaSrihari

Copy link
Copy Markdown
Contributor

Reason for change: to enable debug services, only if the build vairant is labSigned and device is test type
Test Procedure: Flash the image and check for enabling secure debug services
Risks: Low

@KTirumalaSrihari
KTirumalaSrihari requested review from a team and Copilot January 28, 2026 06:06
@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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

This PR introduces a new post-rootfs hook to enable secure debug services for lab-signed build variants by toggling a property in device.properties.

Changes:

  • Adds a SignedLab-variant post-rootfs hook that reuses common_prod_image_hook.
  • Introduces enable_debugService_property to flip LABSIGNED_ENABLED from false to true in /etc/device.properties for the SignedLab variant.

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


ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "prod-variant", "prod_image_hook; ", "", d)}'
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "prodlog-variant", "prodlog_image_hook; ", "", d)}'
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "SignedLab-variant", "SignedLab_image_hook; ", "", d)}'

Copilot AI Jan 28, 2026

Copy link

Choose a reason for hiding this comment

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

The new hook name SignedLab_image_hook and the corresponding DISTRO_FEATURES flag SignedLab-variant use mixed capitalization, while the existing hooks and flags (e.g. prod_image_hook / prod-variant, prodlog_image_hook / prodlog-variant) are all lowercase. For consistency and discoverability, consider renaming these to follow the same lowercase/underscore pattern as the other variants.

Copilot uses AI. Check for mistakes.
fi
}

enable_debugService_property() {

Copilot AI Jan 28, 2026

Copy link

Choose a reason for hiding this comment

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

The function name enable_debugService_property is using camelCase inside an otherwise snake_case naming scheme (cf. update_build_type_property, cleanup_stunnel_socat, etc.), which makes it stand out and slightly harder to grep for. To align with the rest of this file, consider renaming it to a fully snake_case name (for example, using only lowercase letters and underscores).

Copilot uses AI. Check for mistakes.
@maniselva006c

Copy link
Copy Markdown
Contributor

the changes look good to me

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.

3 participants