Android系统实现多网共存且能独立上外网

有些场景下需要多网共存,使用网络聚合进行提升网速。而在Android系统源码上默认是不支持多网同时共存且能独立上外网的。所以需要进行定制修改

修改如下:

1.修改main 表优先级到9999, 作用:eth1 wlan0 访问内网

2.不去teardown 低分数网线

3.修改wifi为70分,以太网为60分,4G为50分

diff --git a/server/RouteController.cpp b/server/RouteController.cpp
index ba305e6..d38aec5 100644
--- a/server/RouteController.cpp
+++ b/server/RouteController.cpp
@@ -721,6 +721,18 @@ int RouteController::configureDummyNetwork() {
     return 0;
 }
 
+// Add a new rule to look up the 'main' table, with the same selectors as the "default network"
+// rule, but with a lower priority. We will never create routes in the main table; it should only be
+// used for directly-connected routes implicitly created by the kernel when adding IP addresses.
+// This is necessary, for example, when adding a route through a directly-connected gateway: in
+// order to add

相关推荐

  1. Android系统实现共存独立

    2024-07-14 02:18:03       20 阅读
  2. Android12实现双以太网卡共存同时访问

    2024-07-14 02:18:03       23 阅读
  3. ,专用,共享,及独立IP地址

    2024-07-14 02:18:03       26 阅读
  4. 通信的底层实现

    2024-07-14 02:18:03       23 阅读
  5. rk3288 android以太和wifi共存

    2024-07-14 02:18:03       53 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-14 02:18:03       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-14 02:18:03       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-14 02:18:03       57 阅读
  4. Python语言-面向对象

    2024-07-14 02:18:03       68 阅读

热门阅读

  1. 文件上传到阿里云

    2024-07-14 02:18:03       18 阅读
  2. 系统服务综合案例

    2024-07-14 02:18:03       18 阅读
  3. 面试迟到了怎么办

    2024-07-14 02:18:03       17 阅读
  4. python +=d的底层实现

    2024-07-14 02:18:03       15 阅读
  5. Vue3 watch与watchEffect的区别

    2024-07-14 02:18:03       18 阅读
  6. Shell学习day1

    2024-07-14 02:18:03       18 阅读
  7. QML教程-10分钟一口气快速掌握QML基础元素

    2024-07-14 02:18:03       17 阅读
  8. 代码随想录算法训练营第31天 | 第九章动态规划02

    2024-07-14 02:18:03       21 阅读
  9. ES6 Class 的继承(十一)

    2024-07-14 02:18:03       20 阅读
  10. springboot整合vue上传文件至oss

    2024-07-14 02:18:03       20 阅读