Skip to content

fix(games): Remove live system-overlay account popup (TYPE_APPLICATION_OVERLAY) - #333

Merged
LisoUseInAIKyrios merged 2 commits into
MorpheApp:devfrom
codeiva11:fix/remove-live-overlay-popup
Nov 4, 2026
Merged

LisoUseInAIKyrios merged 2 commits into
MorpheApp:devfrom
codeiva11:fix/remove-live-overlay-popup

Conversation

@codeiva11

Copy link
Copy Markdown

The Play Games sign-in flow showed a "connecting" account popup using WindowManager.addView with TYPE_APPLICATION_OVERLAY (fallback TYPE_PHONE), with no SYSTEM_ALERT_WINDOW permission check. SYSTEM_ALERT_WINDOW is deliberately undeclared (see #307), so addView can never succeed on stock ROMs: the popup path is dead code carrying a risky overlay pattern, and its TYPE_APPLICATION_OVERLAY / canDrawOverlays strings remain visible to installer scanners. Removing it completes the overlay removal started in #307 and reduces those signals. No claim is made that this changes any vendor install verdict — that can only be decided by installing the rebuilt APK on a phone.

  • AccountPromptManager: remove the overlay WindowManager path (layout params, addView/removeView); view inflation and the prepare/showPlayer animation logic are unchanged.
  • GamesService: remove the showConnectingPopup caller. Play Games sign-in itself is unchanged — only the connecting popup is gone.
  • SelfCheckFragment: remove the dead if (false) block referencing SYSTEM_ALERT_WINDOW / ACTION_MANAGE_OVERLAY_PERMISSION.

Firebase phone auth via the foreground ReCaptchaActivity is untouched.

…N_OVERLAY)

The Play Games sign-in flow showed a 'connecting' popup via
WindowManager.addView with TYPE_APPLICATION_OVERLAY / TYPE_PHONE and
no SYSTEM_ALERT_WINDOW permission check. SYSTEM_ALERT_WINDOW is
deliberately undeclared (see MorpheApp#307), so addView can never succeed on
stock ROMs: the popup path is dead code carrying a risky overlay
pattern, and its TYPE_APPLICATION_OVERLAY / canDrawOverlays strings
remain visible to installer scanners. Removing it completes the
overlay removal started in MorpheApp#307 and reduces those signals. No claim
is made that this changes any vendor install verdict — that can only
be decided by installing the rebuilt APK on a phone.

- AccountPromptManager: drop the overlay WindowManager path (layout
  params, addView/removeView); view inflation and the prepare/showPlayer
  animation logic are unchanged.
- GamesService: drop the showConnectingPopup caller; Play Games sign-in
  itself is unchanged.
- SelfCheckFragment: drop the dead if (false) block referencing
  SYSTEM_ALERT_WINDOW / ACTION_MANAGE_OVERLAY_PERMISSION.

Firebase phone auth via the foreground ReCaptchaActivity is untouched.
@LisoUseInAIKyrios
LisoUseInAIKyrios force-pushed the fix/remove-live-overlay-popup branch from aec5745 to ce5e550 Compare November 4, 2026 08:44
@LisoUseInAIKyrios
LisoUseInAIKyrios merged commit 890bf03 into MorpheApp:dev Nov 4, 2026
2 checks passed
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