Closed Bug 2044968 Opened 5 months ago Closed 4 months ago

Local network permission required for apps targeting Android 17

Categories

(Firefox for Android :: Tooling, task)

All
Android
task

Tracking

()

VERIFIED FIXED
155 Branch
Tracking Status
firefox154 --- verified
firefox155 --- verified

People

(Reporter: mcarare, Assigned: mcarare)

References

Details

(Whiteboard: [fxdroid][group6] )

Attachments

(1 file, 2 external files)

Status: NEW → ASSIGNED
Depends on: 2053432

Add runtime permission support for Android 17's new ACCESS_LOCAL_NETWORK permission to enable local area network device discovery and communication while respecting user privacy.

  • Conditionally add ACCESS_LOCAL_NETWORK to permission mappings (API 37+)
  • Declare permission in both Fenix and Focus AndroidManifest.xml
  • Create Permission.AppLocalNetworkAccess type for the new permission
  • Update tests for backward compatibility verification.
Attachment #9605689 - Attachment description: WIP: Bug 2044968 - Add ACCESS_LOCAL_NETWORK permission support for Android 17 (API 37) → Bug 2044968 - Add ACCESS_LOCAL_NETWORK permission support for Android 17 (API 37)
Pushed by mcarare@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7dbaf18e3ba5 https://hg.mozilla.org/integration/autoland/rev/78ce26562dc8 Add ACCESS_LOCAL_NETWORK permission support for Android 17 (API 37) r=android-reviewers,jonalmeida
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

Add runtime permission support for Android 17's new ACCESS_LOCAL_NETWORK permission to enable local area network device discovery and communication while respecting user privacy.

  • Conditionally add ACCESS_LOCAL_NETWORK to permission mappings (API 37+)
  • Declare permission in both Fenix and Focus AndroidManifest.xml
  • Create Permission.AppLocalNetworkAccess type for the new permission
  • Update tests for backward compatibility verification.

Original Revision: https://phabricator.services.mozilla.com/D311095

Attachment #9614335 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: On Android 17 devices you need local network access permission to access local networks. Without the manifest change you cannot grant the nearby devices permission from the OS settings.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Only Android 17 devices are affected, for a limited feature use case.
  • String changes made/needed?: No
  • Is Android affected?: yes
Attachment #9614335 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed on the latest NIghtly 155.0a1 from 26.07.2026 and Beta 154.0b2 with Pixel 7PRO (Android 17).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: