fix(android): Remove AndroidRuntimeManager to prevent ANRs during SDK init (#5127)
* fix(android): Remove AndroidRuntimeManager to prevent ANRs during SDK init StrictMode.setVmPolicy()/setThreadPolicy() calls inside runWithRelaxedPolicy() triggered binder IPC on the main thread, causing ANRs (SDK-CRASHES-JAVA-32FQ 34k+, SDK-CRASHES-JAVA-32PH 21k+, SDK-CRASHES-JAVA-32Q9 18k+ events). StrictMode only logs warnings in production by default, so relaxing it is unnecessary and harmful. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * changelog: Add entry for AndroidRuntimeManager removal Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(test): Remove initNotThrowStrictMode test This test validated that StrictMode with penaltyDeath() didn't crash during SDK init. Since we removed the RuntimeManager that relaxed StrictMode, this test is no longer applicable — the SDK no longer attempts to suppress StrictMode violations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
R
Roman Zavarnitsyn committed
56d97d56e07972fc1d9ee3f3c756f0891f0de64a
Parent: 7b67c20
Committed by GitHub <noreply@github.com>
on 3/3/2026, 9:36:03 AM