afwall
afwall copied to clipboard
No access to storage - and possible subsequent problems
Describe the bug
- Seems the application has no full permissions to access internal storage: import/export is possible to ../Android/data/dev.ukanth.ufirewall - the application simply does not see any other folder,
- Import of settings/rules from previous version (3.4.0) fails.
- Rules cannot be applied - only with reboot. When applying on working system the application shows error and the whole connectivity breaks.
- Logs are not working - neither NFLOG nor LOG. I really think all above problems are caused by restricted access to storage.
Firewall Logs Impossible because of p.1 above.
Smartphone (please complete the following information):
- Device: OP 7T Pro
- Android OS: OxygenOS 11.0.0.2 (Android 11)
Additional context The problem was the same for 3.5.0. 3.3.1 and 3.4.0 works excellent.
Due to scoped storage change on Android 11, AFWall does not have access to /emulated/0/afwall or /sdcard/afwall anymore. I can add scoped storage, my only worry is I'll have to justify for the access (which I don't have strong usecase). Without strong usecase AFwall might get pulled off from playstore.
Workaround: AFwall+ should have copied existing exported files from /sdcard/afwall to /Android/data/dev.ukanth.ufirewall using su.
Are you using 3.5.1 ?
Yes I've tried - but reverted back to 3.3.1. The main reason was not folder access exactly but the situation with applying new rules - it works after reboot only. It is not acceptable.