Merge "Start consumer_ir service only when supported" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cf4b894d49
@@ -1559,7 +1559,7 @@ public final class SystemServer implements Dumpable {
|
||||
ServiceManager.addService("dynamic_system", dynamicSystem);
|
||||
t.traceEnd();
|
||||
|
||||
if (!isWatch) {
|
||||
if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) {
|
||||
t.traceBegin("StartConsumerIrService");
|
||||
consumerIr = new ConsumerIrService(context);
|
||||
ServiceManager.addService(Context.CONSUMER_IR_SERVICE, consumerIr);
|
||||
|
||||
Reference in New Issue
Block a user