You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added a new predicate, `allowsBackup`, in the `AndroidApplicationXmlElement` class. This predicate detects if the application element does not disable the `android:allowBackup` attribute.
<p>In the Android manifest file, you can use the <code>android:allowBackup</code> attribute of the <code>application</code> element to define whether the
7
+
application will have automatic backups or not.</p>
8
+
9
+
<p>If your application uses any sensitive data, you should disable automatic backups to prevent attackers from extracting it.</p>
10
+
</overview>
11
+
12
+
<recommendation>
13
+
<p>For Android applications which process sensitive data, set <code>android:allowBackup</code> to <code>false</code> in the manifest
14
+
file.</p>
15
+
16
+
<p>Note: Since Android 6.0 (Marshmallow), automatic backups for applications are switched on by default.
17
+
</p>
18
+
</recommendation>
19
+
20
+
<example>
21
+
22
+
<p>In the following two (bad) examples, the <code>android:allowBackup</code> setting is enabled:</p>
23
+
24
+
<samplesrc="AllowBackupTrue.xml" />
25
+
26
+
<samplesrc="AllowBackupEmpty.xml"/>
27
+
28
+
<p>In the following (good) example, <code>android:allowBackup</code> is set to <code>false</code>:</p>
29
+
30
+
<samplesrc="AllowBackupFalse.xml"/>
31
+
32
+
</example>
33
+
<references>
34
+
<li>
35
+
Android Documentation:
36
+
<ahref="https://developer.android.com/guide/topics/data/autobackup#EnablingAutoBackup">Back up user data with Auto Backup</a>
0 commit comments