profcollectd: Only start the forwarding service if enabled through device config

Test: boot profcollect build
Bug: 79161490
Change-Id: I8058594fd78327bbd0983c7f39391dc82e18e2a3
This commit is contained in:
Yi Kong
2020-10-29 02:29:12 +08:00
parent c4aedd1f87
commit 0c51fb20dd
2 changed files with 10 additions and 1 deletions

View File

@@ -1226,7 +1226,7 @@ public final class SystemServer {
mSystemServiceManager.startService(IorapForwardingService.class);
t.traceEnd();
if (Build.IS_DEBUGGABLE) {
if (Build.IS_DEBUGGABLE && ProfcollectForwardingService.enabled()) {
t.traceBegin("ProfcollectForwardingService");
mSystemServiceManager.startService(ProfcollectForwardingService.class);
t.traceEnd();