rspec/rules/S6358/xml/rule.adoc

43 lines
808 B
Plaintext
Raw Normal View History

include::../description.adoc[]
include::../ask-yourself.adoc[]
include::../recommended.adoc[]
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,xml]
----
<application
android:allowBackup="true"> <!-- Sensitive -->
</application>
----
== Compliant Solution
Disable application backup.
2022-02-04 17:28:24 +01:00
[source,xml]
----
<application
android:allowBackup="false">
</application>
----
If targeting Android 6.0 or above (API level 23), define files to include/exclude from the application backup.
<application
android:allowBackup="true"
android:fullBackupContent="@xml/backup.xml">
</application>
== See
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
endif::env-github,rspecator-view[]