diff options
| author | 2014-10-24 17:40:29 +0000 | |
|---|---|---|
| committer | 2014-10-24 17:40:30 +0000 | |
| commit | 2d87ba630cdcb6695582c655e6fc091115ffea38 (patch) | |
| tree | ed0109dab9f802c826dc585d64631c7902b12746 | |
| parent | e41d967c5c6ff42ea41f61c731d77aa687b3956f (diff) | |
| parent | bb2e2cae5881ec1806576a737e8d554301332f9f (diff) | |
Merge "Allow I/O when installing providers." into lmp-mr1-dev
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index dd49009281f3..fa15ad758cc6 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -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) { |