afwall icon indicating copy to clipboard operation
afwall copied to clipboard

[ISSUE] Android 16 compatibility

Open hubono opened this issue 1 year ago • 1 comments

Describe the bug The app doesn't show all the apps in the work profile although its enabled in the settings.

Firewall Logs Please get the log from Menu -> Show Rules -> (menu) Export to storage and attach it here

IPv4rules.log

  • Device: pixel 9 pro fold
  • Android OS: Android 16 DP1

hubono avatar Dec 02 '24 22:12 hubono

The same here with Android 15 last update (crDroid 11.4 April 2025). The curiouser is the fact that apps installed from F-Droid are detected, but apps from Aurora Store (Google Store) are not. Phone OnePluse 11 AFWall version 3.6.1 from the release page

P.S. Before updating android all apps in the work profile were detected and AFWall worked as expected. P.P.S. Workaround is to install an app in the main profile then clone it to the work profile (I use Shelter). This is only works if an app is kept installed in the main profile. Once it uninstalled, the cloned app in the work profile disappears from AFWall app list and the internet access no longer works (even if it has been given an access before).

lucker999 avatar May 07 '25 09:05 lucker999

As descibed by @lucker999 the issue also exists in latest Android 15 (e.g. in LineageOS 22.2) on my Xiaomi Redmi Note 9 Pro (miatoll)

blueperil avatar Oct 07 '25 00:10 blueperil

Until the logs are provided, I can not look into it. Thanks.

ukanth avatar Oct 07 '25 09:10 ukanth

Hi @ukanth , I'm thankful for your updates to Afwall.

The detection of apps installed in Android Work profile (or via Island, etc) still don't work properly in Afwall though. An app in the work profile (M) won't show in Afwall's list, unless installed to the main profile in addition to work profile.

Tested in Android 15 and 16, and Afwall versions 3.x and 4.0.0. Whilelist mode.

To try to help, the AppManager app has working code for it - all work profile apps show up.

Perhaps this commit; or this file MainViewModel.java might help (I'm not an android dev). Cheers!

marcosilva85 avatar Oct 13 '25 13:10 marcosilva85

Issue confirmed : an app has to be installed in the main/personal profile as a prerequisite for AW+ v3.6/v4.0 to detect the work profile app instance ("(M)").

If the work profile is used a means to limit personal data exposure to privacy-unfriendly apps (and is this not what AW+ is all about ?), installation of a work profile app in the personal profile is highly undesired.

Current mitigation :

  • (re)install required work profile apps in the default/personal profile : adb install-existing {appname}
  • AppManager > Settings > Rules > Default freezing method : [Disable]
  • AppManager > Profiles > create a profile, with configuration :
    • State: On
    • User: (select personal profile, deselect work profile)
    • enable the [Freeze] slider
  • add apps to profile
  • Save and Apply profile

This completely disables the application(s) in the personal profile, while still listing the apps in the work profile in AFWall+.

didierm avatar Nov 13 '25 23:11 didierm