}
private void doWipe() {
- String transport = nextArg();
- if (transport == null) {
- showUsage();
- return;
- }
-
String pkg = nextArg();
if (pkg == null) {
showUsage();
}
try {
- mBmgr.clearBackupData(transport, pkg);
- System.out.println("Wiped backup data for " + pkg + " on " + transport);
+ mBmgr.clearBackupData(pkg);
+ System.out.println("Wiped backup data for " + pkg);
} catch (RemoteException e) {
System.err.println(e.toString());
System.err.println(BMGR_NOT_RUNNING_ERR);
System.err.println(" bmgr restore TOKEN PACKAGE...");
System.err.println(" bmgr restore PACKAGE");
System.err.println(" bmgr run");
- System.err.println(" bmgr wipe TRANSPORT PACKAGE");
+ System.err.println(" bmgr wipe PACKAGE");
System.err.println("");
System.err.println("The 'backup' command schedules a backup pass for the named package.");
System.err.println("Note that the backup pass will effectively be a no-op if the package");
System.err.println("");
System.err.println("The 'list transports' command reports the names of the backup transports");
System.err.println("currently available on the device. These names can be passed as arguments");
- System.err.println("to the 'transport' and 'wipe' commands. The currently selected transport");
- System.err.println("is indicated with a '*' character.");
+ System.err.println("to the 'transport' command. The currently selected transport is indicated");
+ System.err.println("with a '*' character.");
System.err.println("");
System.err.println("The 'list sets' command reports the token and name of each restore set");
System.err.println("available to the device via the current transport.");
System.err.println("data changes.");
System.err.println("");
System.err.println("The 'wipe' command causes all backed-up data for the given package to be");
- System.err.println("erased from the given transport's storage. The next backup operation");
+ System.err.println("erased from the current transport's storage. The next backup operation");
System.err.println("that the given application performs will rewrite its entire data set.");
- System.err.println("Transport names to use here are those reported by 'list transports'.");
}
}