Describe the bug
Calendar sync stopped working on my phone and I could not figure out why. In the end, I found out with the help of Gemini that AFWall was blocking it. The blocked sync application was not visible in the AFWall GUI and it was not reported in AFWall log which I enabled. I have enabled all the additional filters in GUI (system apps, those that do not have INTERNET permission, display package names and UIDs) - still not there.
Here are the blocked packages:
$ adb shell pm list packages -U | grep syncadapters
package:com.google.android.syncadapters.contacts uid:10112
package:com.google.android.syncadapters.calendar uid:10128
Those packages were not allowed in iptables:
$ adb shell su -c "iptables -S" | grep -E "10112|10128" -> returned nothing
I also could not find them in AFWall UI as I already mentioned.
After manually adding rules for those packages as an AFWall custom script:
iptables -I afwall 1 -m owner --uid-owner 10112 -j ACCEPT
iptables -I afwall 1 -m owner --uid-owner 10128 -j ACCEPT
ip6tables -I afwall 1 -m owner --uid-owner 10112 -j ACCEPT
ip6tables -I afwall 1 -m owner --uid-owner 10128 -j ACCEPT
... sync works again.
I think these should be available in GUI, somehow they are not detected.
I also tried to create some shell script that would detect these packages UIDs dynamically instead of hardcoded values, but could not get that script executed in AFWall even though it worked fine from CLI.
Firewall Logs
IPv4rules-2026-06-20-15-37-44.log
NOTE: These are already with my custom script, so will have the apps enabled.
Smartphone (please complete the following information):
- Device: Xiaomi Poco F3
- Android OS: LOS 23.2
Describe the bug
Calendar sync stopped working on my phone and I could not figure out why. In the end, I found out with the help of Gemini that AFWall was blocking it. The blocked sync application was not visible in the AFWall GUI and it was not reported in AFWall log which I enabled. I have enabled all the additional filters in GUI (system apps, those that do not have INTERNET permission, display package names and UIDs) - still not there.
Here are the blocked packages:
$ adb shell pm list packages -U | grep syncadapters
package:com.google.android.syncadapters.contacts uid:10112
package:com.google.android.syncadapters.calendar uid:10128
Those packages were not allowed in iptables:
$ adb shell su -c "iptables -S" | grep -E "10112|10128" -> returned nothing
I also could not find them in AFWall UI as I already mentioned.
After manually adding rules for those packages as an AFWall custom script:
iptables -I afwall 1 -m owner --uid-owner 10112 -j ACCEPT
iptables -I afwall 1 -m owner --uid-owner 10128 -j ACCEPT
ip6tables -I afwall 1 -m owner --uid-owner 10112 -j ACCEPT
ip6tables -I afwall 1 -m owner --uid-owner 10128 -j ACCEPT
... sync works again.
I think these should be available in GUI, somehow they are not detected.
I also tried to create some shell script that would detect these packages UIDs dynamically instead of hardcoded values, but could not get that script executed in AFWall even though it worked fine from CLI.
Firewall Logs
IPv4rules-2026-06-20-15-37-44.log
NOTE: These are already with my custom script, so will have the apps enabled.
Smartphone (please complete the following information):