Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd8caa48 authored by Nikolas Havrikov's avatar Nikolas Havrikov
Browse files

Start consumer_ir service only when supported

This service is only useful when the FEATURE_CONSUMER_IR is enabled

Test: flash and use IR remote with Android TV
Bug: 264411203
Change-Id: I7127d918f9c4d507773db3613a91206ba6f6aeb8
parent b255015e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);