Skip to content

Add pre-app recommendation on the RDK platform - #12872

Merged
jonastsai merged 1 commit into
youtube:mainfrom
jonastsai:rdk_pre_app_recommend
Oct 1, 2026
Merged

jonastsai merged 1 commit into
youtube:mainfrom
jonastsai:rdk_pre_app_recommend

Conversation

@jonastsai

Copy link
Copy Markdown
Contributor

Implement com.google.youtube.tv.Recommendations platform service for RDK following starboard/linux/shared/pre_app_recommendation_service.cc, using /opt/persistent/rdkservices/Cobalt/ for partner ID override and recommendation storage with default partner ID rdk-demo.

The RDK UI application should be updated to display the recommendation

Bug: 564664560

@jonastsai
jonastsai requested a review from a team as a code owner September 23, 2026 14:22
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


starboard: Add pre-app recommendations for RDK

Implement the com.google.youtube.tv.Recommendations platform
service for the RDK platform. This service allows the YouTube
application to provide recommendation data to the system UI.

The service handles the getPartnerId and recommend methods,
storing JSON recommendation data in the persistent RDK service
directory. It also allows for partner ID overrides via a local
configuration file. This implementation is based on the shared
Linux pre-app recommendation service.

Bug: 564664560

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor
Context State Description
CI / All Pass ❌ FAIL Some checks failed
CI / android ✅ PASS Passed
CI / evergreen ✅ PASS Passed
CI / linux ✅ PASS Passed
CI / tvos ❌ FAIL Failed

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a new pre-app recommendation service to handle YouTube recommendations within the RDK shared platform service. The reviewer provided highly actionable feedback to improve the architecture, robustness, and security of the implementation. Key recommendations include refactoring the platform service to use a dedicated subclass instead of polluting the base class with service-specific fields, improving error handling and robustness in the Send method (such as verifying file write results and returning appropriate error codes), and addressing a security vulnerability by restricting directory creation permissions from 0777 to 0700.

Implement com.google.youtube.tv.Recommendations platform service for RDK
following starboard/linux/shared/pre_app_recommendation_service.cc,
using /opt/persistent/rdkservices/Cobalt/ for partner ID override and
recommendation storage with default partner ID rdk-demo.

The RDK UI application should be updated to display the recommendation

Bug: 564664560

@niranjanyardi niranjanyardi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+2 lgtm assuming this was tested on a device

@jonastsai
jonastsai merged commit d1b01c4 into youtube:main Oct 1, 2026
512 of 516 checks passed
@github-actions github-actions Bot added the cp-27.lts Cherry Pick to the 27.lts branch label Oct 1, 2026
@oxve oxve removed the cp-27.lts Cherry Pick to the 27.lts branch label Oct 5, 2026
briantting pushed a commit that referenced this pull request Oct 6, 2026
Refer to original PR: #12872

Implement com.google.youtube.tv.Recommendations platform service for RDK
following starboard/linux/shared/pre_app_recommendation_service.cc,
using /opt/persistent/rdkservices/Cobalt/ for partner ID override and
recommendation storage with default partner ID rdk-demo.

The RDK UI application should be updated to display the recommendation

Bug: 564664560

(cherry picked from commit d1b01c4)
briantting pushed a commit that referenced this pull request Oct 16, 2026
Refer to original PR: #12872

Implement com.google.youtube.tv.Recommendations platform service for RDK
following starboard/linux/shared/pre_app_recommendation_service.cc,
using /opt/persistent/rdkservices/Cobalt/ for partner ID override and
recommendation storage with default partner ID rdk-demo.

The RDK UI application should be updated to display the recommendation

Bug: 564664560

(cherry picked from commit d1b01c4)
briantting pushed a commit that referenced this pull request Oct 16, 2026
Refer to original PR: #12872

Implement com.google.youtube.tv.Recommendations platform service for RDK
following starboard/linux/shared/pre_app_recommendation_service.cc,
using /opt/persistent/rdkservices/Cobalt/ for partner ID override and
recommendation storage with default partner ID rdk-demo.

The RDK UI application should be updated to display the recommendation

Bug: 564664560

(cherry picked from commit d1b01c4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants