profcollectd: allow to request wakelock from system_suspend.
Bug: 219934028
Test: run profcollectd and
Test: dumpsys suspend_control_internal --wakelocks
Change-Id: I3cefb0139781a6d5cf32507871f0f7f2b8306614
diff --git a/private/profcollectd.te b/private/profcollectd.te
index 1dc6849..f83d4a8 100644
--- a/private/profcollectd.te
+++ b/private/profcollectd.te
@@ -52,6 +52,9 @@
binder_call(profcollectd, system_server)
add_service(profcollectd, profcollectd_service)
+ # Allow profcollectd to request wakelock from system-suspend.
+ wakelock_use(profcollectd)
+
# Allow to temporarily lift the kptr_restrict setting and get kernel start address
# by reading /proc/kallsyms, get module start address by reading /proc/modules.
set_prop(profcollectd, lower_kptr_restrict_prop)