找回密码
立即注册
搜索
发新帖

68

积分

0

好友

4

主题
发表于 2019-4-22 17:10:48 | 查看: 6502| 回复: 2
比如: 以太网 -> wifi -> 4G,
如果此时的状态是没接网口,wifi路由器关闭,4G正常,则连接4G,如果路由器打开了且wifi正常,则自动切为了wifi,如果网线插上且网络正常,则自动切为了以太网。 这种逻辑,需要改哪些文件,分别怎么改?


发表于 2019-4-22 19:02:54
frameworks/base/core/res/res/values/config.xml

  1.     <string-array translatable="false" name="networkAttributes">
  2.         <item>"wifi,1,1,1,-1,true"</item>
  3.         <item>"mobile,0,0,0,-1,true"</item>
  4.         <item>"mobile_mms,2,0,2,60000,true"</item>
  5.         <item>"mobile_supl,3,0,2,60000,true"</item>
  6.         <item>"mobile_hipri,5,0,3,60000,true"</item>
  7.         <item>"mobile_fota,10,0,2,60000,true"</item>
  8.         <item>"mobile_ims,11,0,2,60000,true"</item>
  9.         <item>"mobile_cbs,12,0,2,60000,true"</item>
  10.         <item>"wifi_p2p,13,1,0,-1,true"</item>
  11.         <item>"mobile_ia,14,0,2,-1,true"</item>
  12.         <item>"mobile_emergency,15,0,2,-1,true"</item>
  13.         <item>"bluetooth,7,7,1,60000,true"</item>
  14.     </string-array>
复制代码


具体的参数可以通过网上找资料,同时也要确保这个位置的配置是否会给device里对应的文件替换

回复 显示全部楼层 道具 举报

发表于 2019-4-23 09:16:07
忘记说了,系统是5.1的,是不是已经改成评分制了,直接改评分就可以了?

回复 显示全部楼层 道具 举报

您需要登录后才可以回帖 登录 | 立即注册

小黑屋|Archiver|手机版|深圳荣品电子  

GMT+8, 2024-4-27 00:19 , Processed in 0.076642 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表