commit | d10596bd14e5abcdaa7fa5ebdb55a883a80c9406 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Feb 14 15:46:11 2013 -0800 |
committer | Elliott Hughes <enh@google.com> | Thu Feb 14 15:46:11 2013 -0800 |
tree | 56758c13a337beb7a271ab86a9b232d821e2461e | |
parent | 344e5f3db17615cc853073a02968a603efd39109 [diff] |
Only use $EXTERNAL_STORAGE if it exists and is writable. Also fail with a clear error if we can't create a temporary file, rather than blindly carrying on and crashing in fseeko much later. The emulator has $EXTERNAL_STORAGE set to a directory that's only usable if you manually supply a valid sdcard image. Bug: 8013987 Change-Id: I51ffc1a5525273752f67a9356ccd272a4507613a