Start dispatching broadcast to app when it's really ready
Previouly a pending broadcast would be dispatched to app process immediately after it got attached to ActivityManagerService, however app process at that time might still be in the middle of do it's initialization (i.e. Application.onCreate), on low-end devices this would increase the risk of ANRs because app may not get enough time to handle the broadcast
Test: Manual
Google: 3644543
Change-Id: If29e9dc8142214f315157bc90b6399adb766d766
Signed-off-by: wangmingming1 <wangmingming1@xiaomi.com>
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
1 file changed