diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-10-15 12:54:40 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-10-15 14:46:33 -0700 |
commit | 8bdf5935c0db4a66ab33a10b43398d2523cfa15d (patch) | |
tree | 5483e26cd1fb2de239b2f01f3d35c52aeeb7b598 /keystore/java/android/security/SystemKeyStore.java | |
parent | efb581018bbede2ecdc76bcd9722ded5b6903254 (diff) | |
download | frameworks_base-8bdf5935c0db4a66ab33a10b43398d2523cfa15d.zip frameworks_base-8bdf5935c0db4a66ab33a10b43398d2523cfa15d.tar.gz frameworks_base-8bdf5935c0db4a66ab33a10b43398d2523cfa15d.tar.bz2 |
Work on issue #3101415: Crespo apps seem to have their UID changed over time.
fsync!
Change-Id: Ie6c5397202579935ac69bf61d3e7b3081ecf269c
Diffstat (limited to 'keystore/java/android/security/SystemKeyStore.java')
-rw-r--r-- | keystore/java/android/security/SystemKeyStore.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/keystore/java/android/security/SystemKeyStore.java b/keystore/java/android/security/SystemKeyStore.java index 1093219..47718e6 100644 --- a/keystore/java/android/security/SystemKeyStore.java +++ b/keystore/java/android/security/SystemKeyStore.java @@ -94,6 +94,7 @@ public class SystemKeyStore { FileOutputStream fos = new FileOutputStream(keyFile); fos.write(retKey); fos.flush(); + FileUtils.sync(fos); fos.close(); FileUtils.setPermissions(keyFile.getName(), (FileUtils.S_IRUSR | FileUtils.S_IWUSR), -1, -1); |