PackageManager.PropertyUseRestrictedBackupMode Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
<application> level android.content.pm.PackageManager.Property
tag
specifying whether the app should be put into the "restricted" backup mode when it's started
for backup and restore operations.
[Android.Runtime.Register("PROPERTY_USE_RESTRICTED_BACKUP_MODE", ApiSince=36)]
public const string PropertyUseRestrictedBackupMode;
[<Android.Runtime.Register("PROPERTY_USE_RESTRICTED_BACKUP_MODE", ApiSince=36)>]
val mutable PropertyUseRestrictedBackupMode : string
Field Value
- Attributes
Remarks
<application> level android.content.pm.PackageManager.Property
tag specifying whether the app should be put into the "restricted" backup mode when it's started for backup and restore operations.
See for information about restricted mode.
Starting with Android 16 apps may not be started in restricted mode based on this property.
<b>Syntax:</b>
<application>
<property
android:name="android.app.backup.PROPERTY_USE_RESTRICTED_BACKUP_MODE"
android:value="true|false"/>
</application>
If this property is set, the operating system will respect it for now (see Note below). If it's not set, the behavior depends on the SDK level that the app is targeting. For apps targeting SDK level android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM
or lower, the property defaults to true
. For apps targeting SDK level android.os.Build.VERSION_CODES#BAKLAVA
or higher, the operating system will make a decision dynamically.
Note: It's not recommended to set this property to true
unless absolutely necessary. In a future Android version, this property may be deprecated in favor of removing restricted mode completely.
Java documentation for android.content.pm.PackageManager.PROPERTY_USE_RESTRICTED_BACKUP_MODE
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.