Search code examples
android-sourceandroid-10.0hotspottethering

How to enable the building of the "Hotspot & tethering" settings app in AOSP?


I have an AOSP build for my Android 10 device.

The 'Network & internet' UI is missing the 'Hotspot & tethering' settings app. (Wifi is working, but only as an upstream interface.)

Which file in AOSP controls whether the 'Hotspot & tethering' settings app is included in the build?


Solution

  • The answer was to add the <item> line, below, to ./frameworks/base/core/res/res/values/config.xml.

    <!-- List of regexpressions describing the interface (if any) that represent tetherable
         Wifi interfaces.  If the device doesn't want to support tethering over Wifi this
         should be empty.  An example would be "softap.*" -->
    <string-array translatable="false" name="config_tether_wifi_regexs">
        <item>"softap.*"</item>
    </string-array>