We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac64ee commit 7d15af6Copy full SHA for 7d15af6
java/ql/lib/semmle/code/xml/AndroidManifest.qll
@@ -72,6 +72,17 @@ class AndroidApplicationXmlElement extends XmlElement {
72
* Holds if this application element has explicitly set a value for its `android:permission` attribute.
73
*/
74
predicate requiresPermissions() { this.getAnAttribute().(AndroidPermissionXmlAttribute).isFull() }
75
+
76
+ /**
77
+ * Holds if this application element has the attribute `android:allowBackup` set to `true`.
78
+ */
79
+ predicate allowsBackup() {
80
+ exists(AndroidXmlAttribute attr |
81
+ this.getAnAttribute() = attr and
82
+ attr.getName() = "allowBackup" and
83
+ attr.getValue() = "true"
84
+ )
85
+ }
86
}
87
88
/**
0 commit comments