diff options
Diffstat (limited to 'services/backup')
-rw-r--r-- | services/backup/java/com/android/server/backup/BackupManagerService.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/services/backup/java/com/android/server/backup/BackupManagerService.java b/services/backup/java/com/android/server/backup/BackupManagerService.java index 0b688b6..0082b1e 100644 --- a/services/backup/java/com/android/server/backup/BackupManagerService.java +++ b/services/backup/java/com/android/server/backup/BackupManagerService.java @@ -74,6 +74,8 @@ import android.os.WorkSource; import android.os.Environment.UserEnvironment; import android.os.storage.IMountService; import android.provider.Settings; +import android.system.ErrnoException; +import android.system.Os; import android.util.EventLog; import android.util.Log; import android.util.Slog; @@ -142,9 +144,6 @@ import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.SecretKeySpec; -import libcore.io.ErrnoException; -import libcore.io.Libcore; - public class BackupManagerService extends IBackupManager.Stub { private static final String TAG = "BackupManagerService"; @@ -2471,7 +2470,7 @@ public class BackupManagerService extends IBackupManager.Stub { // operations any more during this pass). Slog.w(TAG, "Unable to save widget state for " + pkgName); try { - Libcore.os.ftruncate(fd, filepos); + Os.ftruncate(fd, filepos); } catch (ErrnoException ee) { Slog.w(TAG, "Unable to roll back!"); } |