From 48cf63ec8e469ed363aa592be733cac6887830aa Mon Sep 17 00:00:00 2001 From: wenlong_12 Date: Mon, 26 Aug 2024 08:06:20 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0GET=5FBUNDLE=5FINFO=20?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wenlong_12 --- device/etc/hiprofiler_daemon.cfg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/device/etc/hiprofiler_daemon.cfg b/device/etc/hiprofiler_daemon.cfg index 41ed61b4b..754091cc8 100644 --- a/device/etc/hiprofiler_daemon.cfg +++ b/device/etc/hiprofiler_daemon.cfg @@ -16,12 +16,18 @@ "uid" : "hiprofiler", "gid" : "shell" }], + "permission" : [ + "ohos.permission.GET_BUNDLE_INFO" + ], "secon" : "u:r:native_daemon:s0", "start-mode" : "condition" }, { "name" : "hiprofiler_daemon_sa", "path" : ["/system/bin/native_daemon", "sa"], - "permission" : ["ohos.permission.ENABLE_PROFILER"], + "permission" : [ + "ohos.permission.ENABLE_PROFILER", + "ohos.permission.GET_BUNDLE_INFO" + ], "sandbox" : 0, "caps" : ["CAP_KILL", "CAP_SYS_PTRACE"], "once" : 1,