Merge "Use AtomicFile APIs correctly when reading." into mnc-dev
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user