Skip to content

Fix RootDetection background ANR #2202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: next
Choose a base branch
from
Open

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Jun 20, 2025

Goal

Fix background ANRs that occur on startup when waiting for the RootDetection sub-process to complete.

Design

Added a timed Process.waitFor to the RootDetection to limit the amount of time the sub-process can take before we continue with startup.

Also generally moved more of the startup process waits to later to allow more to complete in parallel.

Testing

Manually tested blocking the sub-process, and relied on existing tests for the remaining changes.

@lemnik lemnik requested a review from tomlongridge June 20, 2025 14:12
@lemnik lemnik requested a review from YYChen01988 as a code owner June 20, 2025 14:12
@lemnik lemnik force-pushed the PLAT-14377/fix-background-anr branch from 2963269 to b2c6334 Compare June 20, 2025 14:12
@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Jun 20, 2025

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1832.21 1634.65
arm64_v8a 639.23 442.63
armeabi_v7a 577.8 377.1
x86 717.04 516.34
x86_64 684.28 483.58

Generated by 🚫 Danger

@lemnik lemnik force-pushed the PLAT-14377/fix-background-anr branch from b2c6334 to 31b6fcc Compare June 24, 2025 16:34
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