Documentation

Go to Portal Website

Android Backup Prevention

PlanPlatformsMASVS
TeamAndroidMASVS-STORAGE-2

Overview

Android Backup Prevention disables Android's automatic backup mechanisms to prevent sensitive application data from being extracted through device backup channels. This control is applied at build time by setting the protected app's backup policy in the application manifest.

How It Works

Android applications can participate in automatic cloud backup (Auto Backup for Apps, introduced in Android 6.0) and local device backup accessible via ADB. When enabled, application data—including shared preferences, databases, and internal storage files—can be backed up and restored.

BackupPrevention disables these mechanisms by configuring the application manifest:

This is a build-time control—the manifest is modified during APK compilation and cannot be changed at runtime.

Note: Advanced backup controls like android:dataExtractionRules (Android 12+) and android:fullBackupContent are not currently configured by this control. The primary mechanism is disabling backup entirely via allowBackup="false".

How to Enable the Control

Navigate to Preventative Controls from the AppTego portal, and expand the Data Sharing Protection section. Under this section you will find the Disable Android Backup control. Click Enable to enable it for the next build or for it to be applied with a live push (if enabled).

API Configuration Example

{
  "BackupPrevention": {
    "protection": true
  }
}
FieldPurpose
protectionEnables disable android backup for protected apps.

Threats Mitigated

Caveats

Support Matrix

PlatformMinimum VersionNotes
AndroidAPI 26 (8.0)Supported. Applied via manifest merge at build time.
iOSNot supported. See BackupProtection for iOS-specific backup controls.

See Also