ukanth / afwall

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

No access to storage - and possible subsequent problems #1203

Open gjf opened 3 years ago

gjf commented 3 years ago

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):

Additional context The problem was the same for 3.5.0. 3.3.1 and 3.4.0 works excellent.

ukanth commented 3 years ago

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 ?

gjf commented 3 years ago

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.