diff options
author | Christopher Tate <ctate@google.com> | 2009-06-22 16:44:51 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2009-06-22 16:44:51 -0700 |
commit | 5cbbf5652a78902ac3382dc4a3583bc5b0351027 (patch) | |
tree | 58a0d7260ed8c441b638f6197b885d3b16656465 /tests | |
parent | 3a31a93b8a195ae2d0180e6dfbf292da2e581f50 (diff) | |
download | frameworks_base-5cbbf5652a78902ac3382dc4a3583bc5b0351027.zip frameworks_base-5cbbf5652a78902ac3382dc4a3583bc5b0351027.tar.gz frameworks_base-5cbbf5652a78902ac3382dc4a3583bc5b0351027.tar.bz2 |
Pass the originating app's versionCode along with a restore set
This change amends the doRestore() / onRestore() interface to backup agents to
provide the integer android:versionCode of the app that stored the backup set.
This should help agents figure out how to handle whatever historical data set
they're handed at restore time.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/backup/src/com/android/backuptest/BackupTestActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/backup/src/com/android/backuptest/BackupTestActivity.java b/tests/backup/src/com/android/backuptest/BackupTestActivity.java index 69da761..7f30c91 100644 --- a/tests/backup/src/com/android/backuptest/BackupTestActivity.java +++ b/tests/backup/src/com/android/backuptest/BackupTestActivity.java @@ -164,7 +164,8 @@ public class BackupTestActivity extends ListActivity new File(getFilesDir(), "restore_state"), ParcelFileDescriptor.MODE_READ_WRITE|ParcelFileDescriptor.MODE_CREATE| ParcelFileDescriptor.MODE_TRUNCATE); - dispatch.performRestore(data, state); + // TODO: a more plausable synthetic stored-data version number + dispatch.performRestore(data, 0, state); dataFile.close(); state.close(); } catch (IOException ex) { |