Loading core/java/com/android/internal/backup/LocalTransport.java +7 −9 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ public class LocalTransport extends BackupTransport { private File mRestoreSetDir; private File mRestoreSetIncrementalDir; private File mRestoreSetFullDir; private long mRestoreToken; // Additional bookkeeping for full backup private String mFullTargetPackage; Loading @@ -92,22 +93,20 @@ public class LocalTransport extends BackupTransport { private BufferedOutputStream mFullBackupOutputStream; private byte[] mFullBackupBuffer; private File mFullRestoreSetDir; private HashSet<String> mFullRestorePackages; private FileInputStream mCurFullRestoreStream; private FileOutputStream mFullRestoreSocketStream; private byte[] mFullRestoreBuffer; private void makeDataDirs() { public LocalTransport(Context context) { mContext = context; mCurrentSetDir.mkdirs(); if (!SELinux.restorecon(mCurrentSetDir)) { Log.e(TAG, "SELinux restorecon failed for " + mCurrentSetDir); } mCurrentSetFullDir.mkdir(); mCurrentSetIncrementalDir.mkdir(); if (!SELinux.restorecon(mCurrentSetDir)) { Log.e(TAG, "SELinux restorecon failed for " + mCurrentSetDir); } public LocalTransport(Context context) { mContext = context; makeDataDirs(); } @Override Loading Loading @@ -152,7 +151,6 @@ public class LocalTransport extends BackupTransport { public int initializeDevice() { if (DEBUG) Log.v(TAG, "wiping all data"); deleteContents(mCurrentSetDir); makeDataDirs(); return TRANSPORT_OK; } Loading Loading
core/java/com/android/internal/backup/LocalTransport.java +7 −9 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ public class LocalTransport extends BackupTransport { private File mRestoreSetDir; private File mRestoreSetIncrementalDir; private File mRestoreSetFullDir; private long mRestoreToken; // Additional bookkeeping for full backup private String mFullTargetPackage; Loading @@ -92,22 +93,20 @@ public class LocalTransport extends BackupTransport { private BufferedOutputStream mFullBackupOutputStream; private byte[] mFullBackupBuffer; private File mFullRestoreSetDir; private HashSet<String> mFullRestorePackages; private FileInputStream mCurFullRestoreStream; private FileOutputStream mFullRestoreSocketStream; private byte[] mFullRestoreBuffer; private void makeDataDirs() { public LocalTransport(Context context) { mContext = context; mCurrentSetDir.mkdirs(); if (!SELinux.restorecon(mCurrentSetDir)) { Log.e(TAG, "SELinux restorecon failed for " + mCurrentSetDir); } mCurrentSetFullDir.mkdir(); mCurrentSetIncrementalDir.mkdir(); if (!SELinux.restorecon(mCurrentSetDir)) { Log.e(TAG, "SELinux restorecon failed for " + mCurrentSetDir); } public LocalTransport(Context context) { mContext = context; makeDataDirs(); } @Override Loading Loading @@ -152,7 +151,6 @@ public class LocalTransport extends BackupTransport { public int initializeDevice() { if (DEBUG) Log.v(TAG, "wiping all data"); deleteContents(mCurrentSetDir); makeDataDirs(); return TRANSPORT_OK; } Loading