am 80c2cc14: am 815be147: Merge "Use AtomicFile APIs correctly when reading." into mnc-dev

* commit '80c2cc14e12c3f79bb617e12c0827dc0eb7e7374':
  Use AtomicFile APIs correctly when reading.
This commit is contained in:
Svetoslav
2015-06-01 15:27:48 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 2 deletions

View File

@@ -400,7 +400,7 @@ final class SettingsState {
return;
}
try {
in = new FileInputStream(mStatePersistFile);
in = new AtomicFile(mStatePersistFile).openRead();
} catch (FileNotFoundException fnfe) {
Slog.i(LOG_TAG, "No settings state");
return;

View File

@@ -4386,7 +4386,7 @@ final class Settings {
FileInputStream in;
try {
in = new FileInputStream(permissionsFile);
in = new AtomicFile(permissionsFile).openRead();
} catch (FileNotFoundException fnfe) {
Slog.i(PackageManagerService.TAG, "No permissions state");
return;