afwall icon indicating copy to clipboard operation
afwall copied to clipboard

No access to storage - and possible subsequent problems

Open gjf opened this issue 3 years ago • 2 comments

Describe the bug

  1. 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,
  2. Import of settings/rules from previous version (3.4.0) fails.
  3. Rules cannot be applied - only with reboot. When applying on working system the application shows error and the whole connectivity breaks.
  4. 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.

gjf avatar Apr 21 '21 18:04 gjf

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 ?

ukanth avatar Apr 22 '21 00:04 ukanth

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.

gjf avatar Apr 22 '21 05:04 gjf