Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b99fe31d authored by Peter Qiu's avatar Peter Qiu
Browse files

Add system feature flag FEATURE_WIFI_PASSPOINT

This feature will be used to indicate device's support for Passpoint.
The apps will be able to call PackageManager#hasSystemFeature(FEATURE_WIFI_PASSPOINT)
if Passpoint is supported or not.

While there, remove the legacy build config flag for enabling Passpoint
(aka Hotspot 2.0).

Bug: 36886243
Test: Manual test
Change-Id: I99e9299a1ddbb8024f12a5a90a975eb54246cc97
parent 34ecd41d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2270,6 +2270,14 @@ public abstract class PackageManager {
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_WIFI_AWARE = "android.hardware.wifi.aware";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: The device supports Wi-Fi Passpoint.
     * @hide
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_WIFI_PASSPOINT = "android.hardware.wifi.passpoint";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: This is a device dedicated to showing UI
+0 −3
Original line number Diff line number Diff line
@@ -425,9 +425,6 @@
    <!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
    <bool translatable="false" name="config_wifi_dual_band_support">false</bool>

    <!-- Boolean indicating whether Hotspot 2.0/Passpoint and ANQP queries is enabled -->
    <bool translatable="false" name="config_wifi_hotspot2_enabled">false</bool>

    <!-- Boolean indicating whether 802.11r Fast BSS Transition is enabled on this platform -->
    <bool translatable="false" name="config_wifi_fast_bss_transition_enabled">false</bool>

+0 −1
Original line number Diff line number Diff line
@@ -1771,7 +1771,6 @@
  <java-symbol type="bool" name="config_supportLongPressPowerWhenNonInteractive" />
  <java-symbol type="bool" name="config_wifi_background_scan_support" />
  <java-symbol type="bool" name="config_wifi_dual_band_support" />
  <java-symbol type="bool" name="config_wifi_hotspot2_enabled" />
  <java-symbol type="bool" name="config_wifi_fast_bss_transition_enabled" />
  <java-symbol type="bool" name="config_wimaxEnabled" />
  <java-symbol type="bool" name="show_ongoing_ime_switcher" />