Skip to content
Snippets Groups Projects
Commit 022c18e4 authored by Jing Ji's avatar Jing Ji Committed by Android Build Coastguard Worker
Browse files

Extend the BIND_APPLICATION_TIMEOUT

We're reporting an ANR if the app process doesn't finish
the handling of bindApplication within the BIND_APPLICATION_TIMEOUT.
But very often, due to the contended system resources, the app
process just doesn't get enough CPU time to run.

Also given the bindApplication includes the time the app spends
on Application#onCreate(), now relax the timeout to 20s by default.

Bug: 304484667
Test: Manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9e814a91321f3ecd32521f83ac5fed20388b7d07)
Merged-In: If8a3db7511ef0b348e9f343fd91de9063f8826f2
Change-Id: If8a3db7511ef0b348e9f343fd91de9063f8826f2
parent 35a86388
No related branches found
No related tags found
No related merge requests found
......@@ -561,7 +561,7 @@ public class ActivityManagerService extends IActivityManager.Stub
static final int PROC_START_TIMEOUT = 10 * 1000 * Build.HW_TIMEOUT_MULTIPLIER;
 
// How long we wait for a launched process to complete its app startup before we ANR.
static final int BIND_APPLICATION_TIMEOUT = 10 * 1000 * Build.HW_TIMEOUT_MULTIPLIER;
static final int BIND_APPLICATION_TIMEOUT = 20 * 1000 * Build.HW_TIMEOUT_MULTIPLIER;
 
// How long we wait to kill an application zygote, after the last process using
// it has gone away.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment