赞
踩
由于Android系统的WiFi模块不支持wifi direct功能,所以要删除显示里的屏幕投射功能选项。
位置是设置——显示——屏幕投射
代码修改如下:
- niming@ubuntu:/home/user/workspace2/niming/a33-v2.0/android/packages/apps/Settings$ git diff src/com/android/settings/DisplaySettings.java
- diff --git a/src/com/android/settings/DisplaySettings.java b/src/com/android/settings/DisplaySettings.java
- index 3f1b39e..97e0596 100755
- --- a/src/com/android/settings/DisplaySettings.java
- +++ b/src/com/android/settings/DisplaySettings.java
- @@ -181,6 +181,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
- mMiracastFullScreen.setOnPreferenceChangeListener(this);
- mMiracastControlPreference.setDependency(KEY_MIRACAST_FULL_SCREEN);
- }
- + getPreferenceScreen().removePreference(mWifiDisplayPreference);
- mBrightSystem = (CheckBoxPreference)findPreference(KEY_BRIGHT_SYSTEM);
- mBrightSystemDemo = (CheckBoxPreference)findPreference(KEY_BRIGHT_SYSTEM_DEMO);
- boolean demoEnabled;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。