Android 一些bug

1.Android 大陆 wifi图标感叹号
在DatabaseHelper.java中,设置global 的captive_portal_detection_enabled默认值。

  private void loadGlobalSettings(SQLiteDatabase db) {
  ...
    // --- New global settings start here
   loadIntegerSetting(stmt,Settings.Global.CAPTIVE_PORTAL_DETECTION_ENABLED, 
                    SystemProperties.getInt("ro.wifi.portal", 1));

        } finally {
            if (stmt != null) stmt.close();
        }
  }

或者,设置Settings.Global.CAPTIVE_PORTAL_SERVER服务器。

  adb shell su -c "settings put global captive_portal_server xn--yet824cpd.xn--fiqs8s"

Android 6.0 disable下拉statusbar:

PhoneStatusBar.java

    public void disable(int state1, int state2, boolean animate) {
        animate &= mStatusBarWindowState != WINDOW_STATE_HIDDEN;
        mDisabledUnmodified1 = state1;
        mDisabledUnmodified2 = state2;
        mDisabledUnmodified1 |= StatusBarManager.DISABLE_EXPAND;
        。。。
    }

results matching ""

    No results matching ""