Skip to content

Deprecated API usage updates - #958

Open
mdanylov-sigma wants to merge 1 commit into
masterfrom
feature/956-device-and-user-info-deprecated-API
Open

mdanylov-sigma wants to merge 1 commit into
masterfrom
feature/956-device-and-user-info-deprecated-API

Conversation

@mdanylov-sigma

@mdanylov-sigma mdanylov-sigma commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

#956

Summary

  • Updated location handling to respect coarse vs fine permissions:

    • GPS provider is used only with ACCESS_FINE_LOCATION.
    • Network provider is used with coarse or fine location permission.
  • Tightened network connectivity detection on API 23+:

    • Requires NET_CAPABILITY_VALIDATED in addition to NET_CAPABILITY_INTERNET.
    • An active network the system has not validated (e.g. behind a captive portal) now reports OFFLINE, so Requester fails the load with "No internet connection detected" instead of sending a bid request.
  • Added unit tests for coarse-only location permission and for an unvalidated network.

Relation to #992 and #993

This PR originally also migrated network detection to NetworkCapabilities (API 23+) and screen size detection to WindowMetrics (API 30+). Those changes landed on master separately in #992 and #993, so after rebasing:

🤖 Generated with Claude Code

@mdanylov-sigma
mdanylov-sigma force-pushed the feature/956-device-and-user-info-deprecated-API branch from 8da16d7 to 779c1bf Compare September 10, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant