diff options
author | Kenny Root <kroot@google.com> | 2010-08-05 16:14:17 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2010-08-11 11:20:53 -0700 |
commit | a02b8b05dd1e8b8cf169e1f89542ef835b11fc13 (patch) | |
tree | aa1b5fb6b900c064d9914f51c9c3817a2c46f9df /packages/DefaultContainerService/src/com/android/defcontainer | |
parent | 9902196f9885d369e37cf44084e3f04513511ab0 (diff) | |
download | frameworks_base-a02b8b05dd1e8b8cf169e1f89542ef835b11fc13.zip frameworks_base-a02b8b05dd1e8b8cf169e1f89542ef835b11fc13.tar.gz frameworks_base-a02b8b05dd1e8b8cf169e1f89542ef835b11fc13.tar.bz2 |
Move OBB file reading to DefaultContainerService
The system_server shouldn't touch files on the SD card. This change
moves the things that touch the SD card out to the
DefaultContainerService so that it will get killed if the SD card goes
away instead of the system_server.
Change-Id: I0aefa085be4b194768527195532ee6dddc801cfc
Diffstat (limited to 'packages/DefaultContainerService/src/com/android/defcontainer')
-rw-r--r-- | packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java index f1c6532..c6e0a24 100644 --- a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java +++ b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java @@ -24,6 +24,8 @@ import android.content.pm.PackageInfo; import android.content.pm.PackageInfoLite; import android.content.pm.PackageManager; import android.content.pm.PackageParser; +import android.content.res.ObbInfo; +import android.content.res.ObbScanner; import android.net.Uri; import android.os.Environment; import android.os.IBinder; @@ -142,6 +144,10 @@ public class DefaultContainerService extends IntentService { public boolean checkFreeStorage(boolean external, Uri fileUri) { return checkFreeStorageInner(external, fileUri); } + + public ObbInfo getObbInfo(String filename) { + return ObbScanner.getObbInfo(filename); + } }; public DefaultContainerService() { |