【问题标题】:How to enable the building of the "Hotspot & tethering" settings app in AOSP?如何在 AOSP 中启用“热点和网络共享”设置应用程序的构建?
【发布时间】:2021-05-17 11:27:52
【问题描述】:

我有一个适用于我的 Android 10 设备的 AOSP 版本。

“网络和互联网”用户界面缺少“热点和网络共享”设置应用。 (Wifi 工作正常,但仅作为上游接口。)

AOSP 中的哪个文件控制构建中是否包含“热点和网络共享”设置应用?

【问题讨论】:

  • 您是否有“设置”应用但只缺少“热点和网络共享”页面?如果是这样,那可能不是编译时间,而是更多的页面运行时隐藏。您可以在此处的代码中查看更多信息:cs.android.com/android/platform/superproject/+/master:packages/…
  • @AlwaysLearning 是的,没错。我可以强制“热点和网络共享”用户界面从“adb shell”开始,但它是空的,除了一条信息行。这可能与运营商或 SIM 卡有关吗?

标签: android-source android-10.0 hotspot tethering


【解决方案1】:

答案是将下面的<item> 行添加到./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>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-26
    • 2014-11-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多