summaryrefslogtreecommitdiffstats
path: root/keystore
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-10-15 12:54:40 -0700
committerDianne Hackborn <hackbod@google.com>2010-10-15 14:46:33 -0700
commit8bdf5935c0db4a66ab33a10b43398d2523cfa15d (patch)
tree5483e26cd1fb2de239b2f01f3d35c52aeeb7b598 /keystore
parentefb581018bbede2ecdc76bcd9722ded5b6903254 (diff)
downloadframeworks_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')
-rw-r--r--keystore/java/android/security/SystemKeyStore.java1
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);