|
3 | 3 | "qhelp.dtd"> |
4 | 4 | <qhelp> |
5 | 5 | <overview> |
6 | | -<p>The Android manifest file defines configuration settings for Android |
7 | | -applications. In this file, the <code>android:allowBackup</code> attribute of |
8 | | -the <code>application</code> element can be used to define whether or not the |
9 | | -application can have automatic backups.</p> |
10 | | - |
11 | | -<p>Enabling backups may allow an attacker to extract sensitive data. Therefore, |
12 | | -it is advised to set <code>android:allowBackup</code> to <code>false</code> if |
13 | | -your application uses any sensitive data.</p> |
| 6 | +<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> |
14 | 10 | </overview> |
15 | 11 |
|
16 | 12 | <recommendation> |
17 | | -<p>For Android applications which process sensitive data, set the |
18 | | -<code>android:allowBackup</code> setting to <code>false</code> in the manifest |
| 13 | +<p>For Android applications which process sensitive data, set <code>android:allowBackup</code> to <code>false</code> in the manifest |
19 | 14 | file.</p> |
20 | 15 |
|
21 | | -<p>Note: Since Android 6.0 (Marshmallow), applications default to participating |
22 | | -in automatic backups. Therefore, it is necessary to explicitly disable backups. |
| 16 | +<p>Note: Since Android 6.0 (Marshmallow), automatic backups for applications are switched on by default. |
23 | 17 | </p> |
24 | 18 | </recommendation> |
25 | 19 |
|
26 | 20 | <example> |
27 | 21 |
|
28 | | -<p>In the two examples below, the <code>android:allowBackup</code> setting is enabled:</p> |
| 22 | +<p>In the following two (bad) examples, the <code>android:allowBackup</code> setting is enabled:</p> |
29 | 23 |
|
30 | 24 | <sample src="AllowBackupTrue.xml" /> |
31 | 25 |
|
32 | 26 | <sample src="AllowBackupEmpty.xml"/> |
33 | 27 |
|
34 | | -<p>A corrected version explicity sets <code>android:allowBackup</code> to <code>false</code>:</p> |
| 28 | +<p>In the following (good) example, <code>android:allowBackup</code> is set to <code>false</code>:</p> |
35 | 29 |
|
36 | 30 | <sample src="AllowBackupFalse.xml"/> |
37 | 31 |
|
|
0 commit comments