summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Zim <zezeozue@google.com> 2022-12-02 20:28:49 +0000
committer Zimuzo Ezeozue <zezeozue@google.com> 2022-12-06 20:50:43 +0000
commita3a10f3abc3455685aea8a9878ab0786accc0301 (patch)
tree14c0979c123dbea75e0679b1e186784c740bda83 /services/coverage/java
parent763a69a3e89bb6d3cde6e132b08b53d0150cc2ab (diff)
Finish attach appliation before creating app context
Creating the app context involves getting app resources from the app's apk. This operation could be blocked on an incremental fs and trigger the proc start timeout. While fixing this, I noticed that apps could also run code and block in AppComponentFactory#instantiateClassLoader, so moved the call to finishAttachApplication even earlier. It's probably worth re-thinking the AnR timeouts around proc starts, because currently, if the app blocks in instantiateClassLoader for instance, neither AnR timeout nor proc start timeout will trigger. For now, this fixes the test and keeps the behavior as close to the old behavior as possible. Test: atest CtsPackageManagerStatsHostTestCases:com.android.cts.packagemanager.stats.host.IncrementalAppErrorStatsTests#testAppCrashOnIncremental Bug: 261009296 Change-Id: Ic75a4e9d38a7c21d4a0b948d6fb26389723a80f6
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions