Add GMScore into allow list to invoke signRSA API.

Purpose: Moving cast auth into GMScore.
Deisign doc: go/gtv-cast-auth

Bug: b/318467776
Test: Manual
Change-Id: Ic18188dfa61df0d64c1b19fddc99abe851f8b724
This commit is contained in:
Ling-Yu Lee
2024-01-19 06:32:34 +00:00
parent 47f5d9906c
commit 3a87988181

View File

@@ -1598,9 +1598,9 @@ Status WVDrmPlugin::unprovisionDevice() {
const char* sid = AIBinder_getCallingSid();
if (!sid ||
(!strstr(sid, ":mediashell_app:") && !strstr(sid, ":mediadrmserver:") &&
!strstr(sid, ":setupwraith_app:"))) {
!strstr(sid, ":setupwraith_app:") && !strstr(sid, ":gmscore_app:"))) {
ALOGE(
"Only mediashell/mediadrmserver/setupwraith_app can call signRSA, "
"Only mediashell/mediadrmserver/setupwraith_app/gmscore_app can call signRSA, "
"but actually: %s",
sid);
return toNdkScopedAStatus(Status::ERROR_DRM_UNKNOWN);