简体   繁体   English

如何在不生根的情况下禁用Android设备的hdmi端口?

[英]How do i disable hdmi port of a android device without rooting it?

我想知道是否有一种方法可以禁用Android设备的hdmi端口而不需要生根?

As of Android 4.2 (SDK level 17), the DisplayManager APIs ( http://developer.android.com/reference/android/hardware/display/DisplayManager.html ) let you detect external displays and the Presentation class ( http://developer.android.com/reference/android/app/Presentation.html ) lets you define alternative UI for external displays. 从Android 4.2(SDK级别17)开始,DisplayManager API( http://developer.android.com/reference/android/hardware/display/DisplayManager.html )允许您检测外部显示和Presentation类( http:// developer.android.com/reference/android/app/Presentation.html )允许您为外部显示定义备用UI。 Before that SDK level, though (eg on Kindle Fire devices running 4.0.3 SDK level 15, which have HDMI ports), there is no supported way to detect or disable external displays. 然而,在该SDK级别之前(例如,在运行4.0.3 SDK级别15且具有HDMI端口的Kindle Fire设备上),没有支持的方法来检测或禁用外部显示器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM