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,