简体   繁体   中英

Create interactive firewall app in Android

I want create firewall app for Android that when an app wants to connect to internet shows app's name and let the user block it for permanent or block it temporarily or allow it and when that app wants to receive data from network shows app name and user can allow or deny it.

I viewed this question: create firewall , but it doesn't cover my needs.

Any suggestion to detect which apps have access to network and / or receive data from it?

Thanks!

This is quite possible, and has been done before.
See these applications/implementations:

Depending on implementation it may require your device to be rooted.

Universal, non-ROOT, way is to create custom VPN service and track connections using NFLOG/ULOG kernel-userspace module.

See other QAs for reference:

Non-Root firewall can also be create using VPNService and a few C code to handle tcp/udp. NetGuard is a good example:

https://github.com/M66B/NetGuard

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM