Skip to content

chore: Merge branch dev to main - #353

Draft
github-actions[bot] wants to merge 4 commits into
mainfrom
dev
Draft

github-actions[bot] wants to merge 4 commits into
mainfrom
dev

Conversation

@github-actions

Copy link
Copy Markdown

This pull request will Merge branch dev to main.

Before merging this PR

  • Pull & merge translations from Crowdin

LisoUseInAIKyrios and others added 4 commits November 14, 2026 08:59
getActiveNetworkInfo() (deprecated since API 29) returns a UID-filtered
NetworkInfo. When the GmsCore UID is blocked by a background-data / Data-Saver
policy, ConnectivityService rewrites it to DetailedState.BLOCKED, so
isConnected() is false even though the underlying network is CONNECTED and
VALIDATED. It does NOT return null.

The "no network" branch then registered a new network callback on every
callback, whose PendingIntent pointed back to TriggerReceiver. The request was
immediately satisfied, producing several hundred callbacks/second and pinning
system_server at ~300% CPU.

Use getActiveNetwork()/NetworkCapabilities for the connectivity check, but note
this alone is insufficient: the modern API can also return NULL in some
configurations on this device. The actual safety property is treating callback
arrival as proof of connectivity, deduplicating the retry registration and
rate-limiting it, so no per-UID policy edge case can produce an unbounded loop.

Observed directly with a read-only Xposed probe inside the GmsCore process and
pinned down with a reversible `cmd netpolicy add/remove
restrict-background-whitelist` experiment: the blocked status is produced by
the per-UID Data-Saver / background-data policy while the underlying Wi-Fi
stays CONNECTED and VALIDATED.
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.

2 participants