1)方案1
--- a/device/rockchip/common/BoardConfig.mk
+++ b/device/rockchip/common/BoardConfig.mk
@@ -238,7 +238,7 @@ BOARD_HAVE_FLASH ?= true
BOARD_HAS_RK_4G_MODEM ?= false
#HDMI support
-BOARD_SUPPORT_HDMI ?= true
+BOARD_SUPPORT_HDMI ?= false
# google apps
BUILD_BOX_WITH_GOOGLE_MARKET ?= false
2)方案2
--- a/packages/apps/Settings/res/xml/display_settings.xml
+++ b/packages/apps/Settings/res/xml/display_settings.xml
@@ -111,11 +111,11 @@
settings:keywords="@string/keywords_display_cast_screen"
android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
- <PreferenceScreen
+ <!--<PreferenceScreen
android:key="hdmi_settings"
android:title="@string/screen_iface_hdmi_title"
settings:keywords="@string/hdmi_settings"
- android:fragment="com.android.settings.HdmiSettings" />
+ android:fragment="com.android.settings.HdmiSettings" />-->
<DropDownPreference
android:key="vr_display_pref"
diff --git a/packages/apps/Settings/src/com/android/settings/DisplaySettings.java b/packages/apps/Settings/src/com/android/settings/DisplaySettings.java
index 78e0647..7090450 100755
--- a/packages/apps/Settings/src/com/android/settings/DisplaySettings.java
+++ b/packages/apps/Settings/src/com/android/settings/DisplaySettings.java
@@ -117,10 +117,10 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
final ContentResolver resolver = activity.getContentResolver();
addPreferencesFromResource(R.xml.display_settings);
- mHDMIPreference = findPreference(KEY_HDMI_SETTINGS);
+ /*mHDMIPreference = findPreference(KEY_HDMI_SETTINGS);
if(!"tablet".equals(mProduct) || !"true".equals(supportHDMI)){
getPreferenceScreen().removePreference(mHDMIPreference);
- }
+ }*/
mScreenSaverPreference = findPreference(KEY_SCREEN_SAVER);
if (mScreenSaverPreference != null
&& getResources().getBoolean(
RK3399 Android7.1去掉设置中的“显示-HDMI”选项
最新推荐文章于 2024-06-17 19:44:10 发布