Disable TvInputManagerService on non-TV devices.
The block condition is based on FEATURE_LEANBACK instead of FEATURE_TELEVISION which is deprecated in favor of FEATURE_LEANBACK. Bug: 16497355 Change-Id: I433051362fe94ea453afe9344800fb4f8c7076a9
This commit is contained in:
@@ -930,7 +930,9 @@ public final class SystemServer {
|
||||
mSystemServiceManager.startService(HdmiControlService.class);
|
||||
}
|
||||
|
||||
mSystemServiceManager.startService(TvInputManagerService.class);
|
||||
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) {
|
||||
mSystemServiceManager.startService(TvInputManagerService.class);
|
||||
}
|
||||
|
||||
if (!disableNonCoreServices) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user