summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2015-09-17 10:54:58 -0700
committerRobert Carr <racarr@google.com>2015-09-17 15:42:48 -0700
commitda33c13434cb20a11b522374411a5b819503e4e0 (patch)
tree1b8d21fa2394998ae319fde27be4bd35b6971946 /tools/aapt2/java/JavaClassGenerator.cpp
parent5dc92133b3e301a34bb4124dd233be70c3f2e4e3 (diff)
Enforce a timeout for Content Providers to be published.
ActivityManagerService: In the case where we are launching an application on behalf of a Content Provider request, enforce a timeout inbetween the application attaching and the content providers being published. Consider that a defective content provider may block in ContentProvider::onCreate indefinitely: in such a case the PROC_START_TIMEOUT has already been removed as the activity manager must have called bindApplication. In these cases, there will be nothing to wake threads blocking on the (non timed) wait for provider to be published at the end of ActivityManagerService::getContentProviderImpl. This can cause binder threads to block 1 by 1 until eventually AMS runs out and becomes unresponsive. Bug: 22141958 Change-Id: I2226da5df5c79b37f0b896423b3c1eaa4a7ecbba
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions