cc84c69726507a85116f5664e20e2ebfac76edbe |
29-Mar-2010 |
Christopher Tate <ctate@google.com> |
API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API Council Part of bug #2545514 Change-Id: Ic775e3b942c485252149c1b6c15c88517fa4e3e5
ackupTestAgent.java
|
4528186e0d65fc68ef0dd1941aa2ac8aefcd55a3 |
06-Mar-2010 |
Christopher Tate <ctate@google.com> |
Refactor android.backup => android.app.backup Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
ackupTestActivity.java
ackupTestAgent.java
|
c8daa769256b039b6bc4c5acbe6b558cd776c00a |
07-Jul-2009 |
Christopher Tate <ctate@google.com> |
BackupManager wrapper class improvements + Now rechecks the cached IBinder each time the wrapper is used, and if it's still null (i.e. the BackupManager was constructed before the system service came up) it's refetched. This lets even system code cache a single BackupManager instance and just keep making calls through it without worrying about interactions with the life cycle of the backup service. + Added a static dataChanged(packageName) method as a convenience for code that needs to indicate that some other package needs a backup pass. This is useful even for third party code in the case of multiple packages in a shared-uid situation.
ackupTestActivity.java
|
dc355a90a3d9d34f66316928a53f61ac35ab4781 |
26-Jun-2009 |
Joe Onorato <joeo@android.com> |
Add a test for SharedPreferencesBackupHelper (which nobody had ever tested. I like it when stuff just works the first time).
ackupTestAgent.java
|
aae628b44518f0886a7f33b88c1131f47d853e70 |
26-Jun-2009 |
Joe Onorato <joeo@android.com> |
Test that we correctly back up an empty file. (It turns out that we do. It didn't used to work, I'm not sure what changed)
ackupTestAgent.java
|
4a64bded06a0299785c295a975e2818308eb53e2 |
26-Jun-2009 |
Joe Onorato <joeo@android.com> |
Add some helpful tests scripts for backup and make bmgr restore wait until the backup is done.
ackupTestAgent.java
|
4ababd922eac5931e0222862ff082dc29e012816 |
26-Jun-2009 |
Joe Onorato <joeo@android.com> |
Make the BackupHelperDispatcher properly handle multiple helpers.
ackupTestAgent.java
|
5cbbf5652a78902ac3382dc4a3583bc5b0351027 |
23-Jun-2009 |
Christopher Tate <ctate@google.com> |
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.
ackupTestActivity.java
|
06290a4bb9b280fa14a2bbeb2d3ceb09396a78c3 |
19-Jun-2009 |
Joe Onorato <joeo@android.com> |
Helper API cleanup. Allows multiple helpers to function, because they'll always go in the same order, and this lets us not have to write headers to keep them paired.
ackupTestActivity.java
ackupTestAgent.java
|
d2d9ceb7305d593c1b767bbb05de0082a9af4109 |
18-Jun-2009 |
Joe Onorato <joeo@android.com> |
Make RestoreHelper and friends also write out the snapshot state.
ackupTestActivity.java
ackupTestAgent.java
|
83248c432ffe2e2a17abbc8e4960c26574b46bca |
18-Jun-2009 |
Joe Onorato <joeo@android.com> |
backup fixes: - BackupTestAgent calls the DispatchHelper - Make BackupAgent.onRestore take a BackupDataInput, not just a generic ParcelFileDescriptor.
ackupTestActivity.java
ackupTestAgent.java
|
efd0fab04b96d7ab0c1d8bf3b79397c8621e31c5 |
18-Jun-2009 |
Joe Onorato <joeo@android.com> |
FileRestoreHelper and RestoreHelperDispatcher work.
ackupTestActivity.java
|
1cf587496fcb1d652bab9fc6792fb106b6fefaa4 |
12-Jun-2009 |
Joe Onorato <joeo@android.com> |
Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.
ackupTestAgent.java
|
181fafaf48208978b8ba2022683ffa78aaeddde1 |
14-May-2009 |
Christopher Tate <ctate@google.com> |
Retool the backup process to use a new 'BackupAgent' class Backups will be handled by launching the application in a special mode under which no activities or services will be started, only the BackupAgent subclass named in the app's android:backupAgent manifest property. This takes the place of the BackupService class used earlier during development. In the cases of *full* backup or restore, an application that does not supply its own BackupAgent will be launched in a restricted manner; in particular, it will be using the default Application class rather than any manifest-declared one. This ensures that the app is not running any code that may try to manipulate its data while the backup system reads/writes its data set.
ackupTestAgent.java
ackupTestService.java
|
290bb011c5c1a9ba1f2116810b06cf52a9c36b3e |
14-May-2009 |
Joe Onorato <joeo@android.com> |
Get the backup calling through to the file backup helper. This includes some cleanup to make the parameters match between BackupService.onBackup and FileBackupHelper.performBackup.
ackupTestActivity.java
ackupTestService.java
|
8ad028117d4b99883bbc52b29f097b2fb1d9b0c2 |
13-May-2009 |
Joe Onorato <joeo@android.com> |
With this, the BackupService onBackup method is called. It took a bunch of refactoring inside BackupManagerService, which is unfortunately all temporary anyway, but it unblocks a bunch of stuff.
ackupTestService.java
|
b1a7ffef3a0007b6991b8338460f6aac8cbb11e8 |
07-May-2009 |
Joe Onorato <joeo@android.com> |
More backup tests
ackupTestActivity.java
|
f9225f89aafa13dcbc3a69a721acf9b76c34485c |
06-May-2009 |
Joe Onorato <joeo@android.com> |
Add a test app for the backup
ackupTestActivity.java
ackupTestService.java
|