Class MAMBackupAgentHelper
-
- All Implemented Interfaces:
-
com.microsoft.intune.mam.client.app.backup.HookedBackupAgentHelper
public abstract class MAMBackupAgentHelper extends BackupAgentHelper implements HookedBackupAgentHelperBackupAgentHelper that can be restricted.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MAMBackupAgentHelper()
-
Method Summary
Modifier and Type Method Description final voidonCreate()final voidonBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)final voidonRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState)final voidaddHelper(String keyPrefix, BackupHelper helper)voidonMAMCreate()Handle onCreate invocation. voidonMAMBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)Handle onBackup invocation. voidonMAMRestore(MAMBackupDataInput data, int appVersionCode, ParcelFileDescriptor newState)Handle onRestore invocation. voidaddMAMHelper(String keyPrefix, BackupHelper helper)Add a helper for a given data subset to the agent's configuration. -
Methods inherited from class android.app.backup.BackupAgent
fullBackupFile, onDestroy, onFullBackup, onQuotaExceeded, onRestoreFile, onRestoreFinished -
Methods inherited from class android.content.ContextWrapper
bindIsolatedService, bindService, bindServiceAsUser, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingOrSelfUriPermissions, checkCallingPermission, checkCallingUriPermission, checkCallingUriPermissions, checkContentUriPermissionFull, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermissions, clearWallpaper, createAttributionContext, createConfigurationContext, createContext, createContextForSplit, createDeviceContext, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, createWindowContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getAttributionSource, getAttributionTag, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDataDir, getDatabasePath, getDeviceId, getDir, getDisplay, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFileStreamPath, getFilesDir, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getParams, getResources, getSharedPreferences, getSystemService, getSystemServiceName, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, isUiContext, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerComponentCallbacks, registerDeviceIdChangeListener, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeSelfPermissionsOnKill, revokeUriPermission, sendBroadcast, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setTheme, setWallpaper, startActivities, startActivity, startForegroundService, startInstrumentation, startIntentSender, startService, stopService, unbindService, unregisterComponentCallbacks, unregisterDeviceIdChangeListener, unregisterReceiver, updateServiceGroup -
Methods inherited from class android.content.Context
getColor, getColorStateList, getDrawable, getString, getSystemService, getText, obtainStyledAttributes, revokeSelfPermissionOnKill, sendBroadcastWithMultiplePermissions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreate
final void onCreate()
-
onBackup
final void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)
-
onRestore
final void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState)
-
onMAMCreate
void onMAMCreate()
Handle onCreate invocation.
-
onMAMBackup
void onMAMBackup(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState)
Handle onBackup invocation.
- Parameters:
oldState- An open, read-only ParcelFileDescriptor pointing to the last backup state provided by the application.data- A structured wrapper around an open, read/write file descriptor pointing to the backup data destination.newState- An open, read/write ParcelFileDescriptor pointing to an empty file.
-
onMAMRestore
void onMAMRestore(MAMBackupDataInput data, int appVersionCode, ParcelFileDescriptor newState)
Handle onRestore invocation.
- Parameters:
data- A structured wrapper around an open, read-only file descriptor pointing to a full snapshot of the application's data.appVersionCode- The value of the android:versionCode manifest attribute, from the application that backed up this particular data set.newState- An open, read/write ParcelFileDescriptor pointing to an empty file.
-
addMAMHelper
void addMAMHelper(String keyPrefix, BackupHelper helper)
Add a helper for a given data subset to the agent's configuration.
- Parameters:
keyPrefix- A string used to disambiguate the various helpers within this agenthelper- A backup/restore helper object to be invoked during backup and restore operations.
-
-
-
-