Android

Where Does AFWall+ Store Firewall Rules?

AFWall+ keeps per-app firewall rules in local preferences with profiles per network. Needs root; export rules before ROM updates.

Last updated

AFWall+ firewalls rooted Android per app. Allow and block rules with per-network profiles persist in local preferences. The init script applies them at boot before apps start.

That makes the rules export the migration unit. Exact folder names may vary by version. Log dropped packets when debugging; silent blocks mimic broken apps perfectly. Tasker intents toggle profiles. Per-UID rules split apps finely. VPN lockdown kills leaks. Log targets upload for analysis. Roaming profiles save data.

Where AFWall+ stores this, by platform

Android
/storage/emulated/0/Android/data/dev.ukanth.ufirewall/files

Rules local with export file for moves. Exact folder names may vary by version. Needs root; re-apply after importing.

Frequently asked questions

How do I back up AFWall+ rules?

Open the menu and export rules to storage, then import on the new setup with root granted. Profiles per network travel in the file. Re-apply rules after importing; the file alone changes nothing.

Can rules change per network?

Yes through profiles that switch by WiFi, data, roaming, or VPN state. Rules differ per profile automatically. Test each profile after creating it; defaults surprise.

Notice an outdated path? Let us know.