ukanth / afwall

AFWall+ (Android Firewall +) - iptables based firewall for Android
GNU General Public License v3.0
2.82k stars 454 forks source link

[ISSUE] Exported rules are wrong #1399

Closed Fry-kun closed 4 weeks ago

Fry-kun commented 4 weeks ago

Describe the bug After exporting rules and re-importing them, all control types are enabled (instead of fine-grained details) For example: enable 1 app for wifi only. Export rules. Import same rules. Now the app is enabled for both wifi and cell network.

Firewall Logs not applicable

Smartphone (please complete the following information):

Additional context Tested on AFwall 3.6.0 and 3.6.1

Fry-kun commented 4 weeks ago

Example generated config with one app in wifi-only mode and another app in cell-only mode:

{"rules":[{"org.adaway":{"0":true,"1":true,"2":true,"3":true,"6":true,"4":true,"5":true},"com.amazon.mShop.android.shopping":{"0":true,"1":true,"2":true,"3":true,"6":true,"4":true,"5":true}}],"mode":"whitelist"}