diff options
author | Kenny Root <kroot@google.com> | 2010-09-29 07:30:53 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2010-09-29 07:38:55 -0700 |
commit | f1121dc1d35c7e8c317c278aad0dd4ad1358d870 (patch) | |
tree | 328181f28c37eb9113ad04035f9dfa70a1df2ad0 /core | |
parent | 05105f7abe02b2dff91d6260b3628c8b97816bab (diff) | |
download | frameworks_base-f1121dc1d35c7e8c317c278aad0dd4ad1358d870.zip frameworks_base-f1121dc1d35c7e8c317c278aad0dd4ad1358d870.tar.gz frameworks_base-f1121dc1d35c7e8c317c278aad0dd4ad1358d870.tar.bz2 |
Move all the permissions check up for unmount
We have already scanned the state of the OBB in mountObb, so check the
caller against the stored state in the unmountObb call. This allows us
to ensure the calling binder is the same one that mounted it since we
tie the lifecycle of the OBB to the lifecycle of the binder.
Change-Id: I45d9cfbab5d3f5b37a6a9b594b10bd8b91cccc45
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/content/res/ObbScanner.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/content/res/ObbScanner.java b/core/java/android/content/res/ObbScanner.java index a3f141e..572b75e 100644 --- a/core/java/android/content/res/ObbScanner.java +++ b/core/java/android/content/res/ObbScanner.java @@ -42,7 +42,7 @@ public class ObbScanner { final File obbFile = new File(filePath); if (!obbFile.exists()) { - throw new IllegalArgumentException("OBB file does nto exist: " + filePath); + throw new IllegalArgumentException("OBB file does not exist: " + filePath); } final String canonicalFilePath = obbFile.getCanonicalPath(); |