OSDN Git Service

Don't crash when wiping backup data redundantly in the local transport
authorChristopher Tate <ctate@google.com>
Sat, 24 Mar 2012 00:45:15 +0000 (17:45 -0700)
committerChristopher Tate <ctate@google.com>
Sat, 24 Mar 2012 00:47:58 +0000 (17:47 -0700)
commit0abf6a001461a4c2ea31ddc44a60b003b4e0554d
tree5abf436d6a7b166f9084d60482ca933ca8716d6f
parent243806cfeb72e46b39994b2ec3b0908fc7fcc973
Don't crash when wiping backup data redundantly in the local transport

Previously, if using the "local" debugging transport:

    adb shell bmgr wipe com.android.browser
    adb shell bmgr wipe com.android.browser

... would bring down the runtime.  This no longer happens.  The fix
covers two aspects of the situation:  1. the local transport no longer
blows up in this use case, and 2. the backup manager itself now catches
blowups on the part of the transport, and tidies up after them.

Bug 6205185

Change-Id: Ieb9b8827a62523148ad5a0ec15b05a954d198b3d
core/java/com/android/internal/backup/LocalTransport.java
services/java/com/android/server/BackupManagerService.java