how to reroute all IP traffic (pref. at the network layer) in Android 3.x

梦想与她 提交于 2019-12-04 21:02:15
  1. The applications running on Android would still continue their interaction with regular requests and wouldn't require any modifications

This is only possible if you root your phone (or create your own firmware, which probably involves rooting the phone to deploy it). For example, Orbot, which is an implementation of the Tor proxy for Android, needs root in order to transparently pass all TCP requests through its proxy.

It should not be possible for a user to disable/block my reroute service.

The only way to do that is by making your own firmware.

Allowing ordinary SDK applications to do anything of what you request would be a massive security hole.

You need to set up ip table rules which needs root. As for not being able to disable your service, that is not possible, but the user will also require root to change these rules.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!