From d49131b4c108b4f82ed5fecff874489d69c6b890 Mon Sep 17 00:00:00 2001 From: XUXIAOBO Date: Sat, 11 Sep 2021 07:20:08 +0000 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E4=B9=90=E6=92=AD=E6=94=BE=E5=99=A8?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=BB=E5=8F=96media'=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E6=9D=83=E9=99=90=20Signed-off-by:=20XUXIAOBO=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/appspawn_server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/appspawn_server.cpp b/src/appspawn_server.cpp index c5071b05..0b8f2121 100644 --- a/src/appspawn_server.cpp +++ b/src/appspawn_server.cpp @@ -41,6 +41,7 @@ constexpr int32_t MAX_GIDS = 64; constexpr std::string_view BUNDLE_NAME_CAMERA("com.ohos.camera"); constexpr std::string_view BUNDLE_NAME_PHOTOS("com.ohos.photos"); +constexpr std::string_view BUNDLE_NAME_PLAYER("com.ohos.musicplayer"); } // namespace using namespace OHOS::HiviewDFX; @@ -421,7 +422,8 @@ void AppSpawnServer::SpecialHandle(ClientSocket::AppProperty *appProperty) { // special handle bundle name "com.ohos.photos" and "com.ohos.camera" if ((strcmp(appProperty->processName, BUNDLE_NAME_CAMERA.data()) == 0) || - (strcmp(appProperty->processName, BUNDLE_NAME_PHOTOS.data()) == 0)) { + (strcmp(appProperty->processName, BUNDLE_NAME_PHOTOS.data()) == 0) || + (strcmp(appProperty->processName, BUNDLE_NAME_PLAYER.data()) == 0)) { if (appProperty->gidCount < MAX_GIDS) { appProperty->gidTable[appProperty->gidCount] = GID_MEDIA; appProperty->gidCount++; -- Gitee