AndroidQ 以上禁用 wifi 随机mac功能
发布日期:2021-06-29 13:07:42 浏览次数:3 分类:技术文章

本文共 842 字,大约阅读时间需要 2 分钟。

有关随机mac相关介绍可以查看官方文档

根据文档中修改默认配置 config_wifi_connected_mac_randomization_supported 修改为 false

$ find -name “config.xml” | xargs grep “config_wifi_connected_mac_randomization_supported”

./frameworks/base/core/res/res/values/config.xml: false
./device/mediatek/common/overlay/wifista/frameworks/base/core/res/res/values/config.xml: true
./device/mediatek/system/common/overlay/wifista/frameworks/base/core/res/res/values/config.xml: true
./device/google/bonito/overlay/frameworks/base/core/res/res/values/config.xml: true
./device/google/wahoo/overlay/frameworks/base/core/res/res/values/config.xml: true
./device/google/crosshatch/overlay/frameworks/base/core/res/res/values/config.xml: true

可以看到默认 config.xml 中值已经是 false 了,但是还是启用了该功能。在其它配置中被 overlay 覆盖了,最终修改

device/mediatek/common/overlay/wifista/frameworks/base/core/res/res/values/config.xml

转载地址:https://cczheng.blog.csdn.net/article/details/115111805 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Android10.0 OTA 错误解决办法(@/cache/recovery/block.map‘ failed)
下一篇:Android11.0(R) 手机锁屏炫酷充电动画————自定义View方案

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2024年04月17日 00时48分01秒