Allow I/O when installing providers.

Bug: 17879170
Change-Id: I073d5b56bab6db01290aad5386c53c305669dc5b
This commit is contained in:
Jeff Sharkey
2014-10-23 11:42:31 -07:00
parent 95dc663d18
commit bb2e2cae58

View File

@@ -2513,7 +2513,12 @@ public final class ActivityThread {
}
public void handleInstallProvider(ProviderInfo info) {
installContentProviders(mInitialApplication, Lists.newArrayList(info));
final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
try {
installContentProviders(mInitialApplication, Lists.newArrayList(info));
} finally {
StrictMode.setThreadPolicy(oldPolicy);
}
}
private void handleEnterAnimationComplete(IBinder token) {