andoid11 4G可以上网但是无菜单和图标

插入4G卡后电话可以通,网络也可以ping通,但是状态栏的图标和设置菜单的移动网络菜单都没有显示出来,这应该跟上层配置有关。确认下framework/base/core/res/res/config.xml下networkAttributes属性配置是OK的,但是device下有个overlay配置,我看了下对应的配置,果然被替换掉了,配置有问题,修改如下

在device/rockchip/.../overlay/frameworks/base/core/res/res/values/config.xml文件中修改

  <string-array translatable="false" name="networkAttributes">
        <item>"wifi,1,1,2,-1,true"</item>
+       <item>"mobile,0,0,0,-1,true"</item>
+       <item>"mobile_mms,2,0,2,60000,true"</item>
+       <item>"mobile_supl,3,0,2,60000,true"</item>
+       <item>"mobile_dun,4,0,2,60000,true"</item>
+       <item>"mobile_hipri,5,0,3,60000,true"</item>
+       <item>"mobile_fota,10,0,2,60000,true"</item>
+       <item>"mobile_ims,11,0,2,60000,true"</item>
+       <item>"mobile_cbs,12,0,2,60000,true"</item>
        <item>"bluetooth,7,7,0,-1,true"</item>

make android 后烧录update.img,状态栏和设置菜单中都显示有4G,问题解决。一般这种问题都是配置问题,跟源代码关系不大!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

开开心心everyday

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值