当前位置:   article > 正文

不支持wifi,删掉“屏幕投射”_android 删除屏幕投射

android 删除屏幕投射

由于Android系统的WiFi模块不支持wifi direct功能,所以要删除显示里的屏幕投射功能选项。

位置是设置——显示——屏幕投射

代码修改如下:

  1. niming@ubuntu:/home/user/workspace2/niming/a33-v2.0/android/packages/apps/Settings$ git diff src/com/android/settings/DisplaySettings.java
  2. diff --git a/src/com/android/settings/DisplaySettings.java b/src/com/android/settings/DisplaySettings.java
  3. index 3f1b39e..97e0596 100755
  4. --- a/src/com/android/settings/DisplaySettings.java
  5. +++ b/src/com/android/settings/DisplaySettings.java
  6. @@ -181,6 +181,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
  7. mMiracastFullScreen.setOnPreferenceChangeListener(this);
  8. mMiracastControlPreference.setDependency(KEY_MIRACAST_FULL_SCREEN);
  9. }
  10. + getPreferenceScreen().removePreference(mWifiDisplayPreference);
  11. mBrightSystem = (CheckBoxPreference)findPreference(KEY_BRIGHT_SYSTEM);
  12. mBrightSystemDemo = (CheckBoxPreference)findPreference(KEY_BRIGHT_SYSTEM_DEMO);
  13. boolean demoEnabled;

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/252227
推荐阅读
相关标签
  

闽ICP备14008679号