Guard Context Hub Service on Context Hub feature
Also adds annotation to require the feature. Bug: 147677675 Test: Compile and flash, verify Context Hub Service is not found if the feature flag is not defined Change-Id: Ia718c76ec4308274dc66cfe975e762997e3539ca
This commit is contained in:
@@ -1724,9 +1724,11 @@ public final class SystemServer {
|
||||
mSystemServiceManager.startService(SensorNotificationService.class);
|
||||
t.traceEnd();
|
||||
|
||||
t.traceBegin("StartContextHubSystemService");
|
||||
mSystemServiceManager.startService(ContextHubSystemService.class);
|
||||
t.traceEnd();
|
||||
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_CONTEXTHUB)) {
|
||||
t.traceBegin("StartContextHubSystemService");
|
||||
mSystemServiceManager.startService(ContextHubSystemService.class);
|
||||
t.traceEnd();
|
||||
}
|
||||
|
||||
t.traceBegin("StartDiskStatsService");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user