afwall icon indicating copy to clipboard operation
afwall copied to clipboard

[ISSUE] What is `1052` added in commit `270183b`?

Open Fry-kun opened this issue 1 year ago • 1 comments

270183b description says "Removed dns proxy changes introduced in android 4.1" -- but it also adds uid 1052 to do anything on wifi: https://github.com/ukanth/afwall/blob/a1fe38b3c1d79338b01eb206f4b3b9e2c5049b99/app/src/main/java/dev/ukanth/ufirewall/Api.java#L475

The comment is not very descriptive and it's not immediately clear what issue this is trying to fix (if any)

There are a few references to "1052" in the issues, but none are clear as to what this might be.

It should probably be removed ASAP

Fry-kun avatar Nov 08 '24 23:11 Fry-kun

@Fry-kun Seems to be related to this issue:

https://github.com/ukanth/afwall/issues/924

gashtal avatar Dec 05 '24 08:12 gashtal

UID 1052 is the system DNS service that handles:

  • DNS queries and responses
  • Name resolution for system and apps
  • Local network name resolution (important for LAN functionality)
  • System-level DNS caching

Why it needs LAN access:

  • Local DNS servers (router DNS)
  • mDNS/Bonjour service discovery on LAN
  • Local network name resolution
  • DNS over local network interfaces

ukanth avatar Aug 31 '25 08:08 ukanth