• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
GDFileBackupHelper Class Reference

Extension of android.app.backup.FileBackupHelper for backing up files from the secure file system. More...

Inheritance diagram for GDFileBackupHelper:
FileBackupHelper

Description

This class is a subclass of android.app.backup.FileBackupHelper for backing up files from the BlackBerry Dynamics secure file system. See BlackBerry Dynamics File I/O Package for details of the secure file system.

This class has the same programming interface as the android.app.backup.FileBackupHelper class, with the following exceptions:

  • Only files in the secure store can be backed up and restored.
  • The paths specified in the constructor during a restore operation are ignored. Instead, all files that are present in the backup will be restored.

See also
android.app.backup.FileBackupHelper on the android.com developer website.

Public Member Functions

 GDFileBackupHelper (Context ctx, String... files)
 Construct new instance. More...
 
void performBackup (ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)
 Overridden method for access to the secure file system. More...
 
void writeNewStateDescription (ParcelFileDescriptor fd)
 Overridden method for access to the secure file system. More...
 

Constructor & Destructor Documentation

◆ GDFileBackupHelper()

GDFileBackupHelper ( Context  ctx,
String...  files 
)

Call this constructor to create a new instance of the class.

Except as noted above, the semantics are the same as the native constructor. See the android.app.backup.FileBackupHelper on the android.com developer website.

Parameters
ctxContext object of the backup agent, typically this.
filesOne or more String values, each containing the path of a file in the secure store that is to be backed up.

Member Function Documentation

◆ performBackup()

void performBackup ( ParcelFileDescriptor  oldState,
BackupDataOutput  data,
ParcelFileDescriptor  newState 
)

This method is overriden in this subclass, in order to access the BlackBerry Dynamics secure file system.

Except as noted above, the semantics are the same as the native method. See the android.app.backup.FileBackupHelper on the android.com developer website.

Parameters
oldStateParcelFileDescriptor with the same semantics as the parameter to the native method.
dataBackupDataOutput with the same semantics as the parameter to the native method.
newStateParcelFileDescriptor with the same semantics as the parameter to the native method.

◆ writeNewStateDescription()

void writeNewStateDescription ( ParcelFileDescriptor  fd)

This method is overriden in this subclass, in order to access the BlackBerry Dynamics secure file system.

Except as noted above, the semantics are the same as the native method. See the android.app.backup.FileBackupHelper on the android.com developer website.

Parameters
fdParcelFileDescriptor with the same semantics as the parameter to the native method.