mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Add allowBackup check to AndroidManifest
This commit is contained in:
@@ -72,6 +72,17 @@ class AndroidApplicationXmlElement extends XmlElement {
|
|||||||
* Holds if this application element has explicitly set a value for its `android:permission` attribute.
|
* Holds if this application element has explicitly set a value for its `android:permission` attribute.
|
||||||
*/
|
*/
|
||||||
predicate requiresPermissions() { this.getAnAttribute().(AndroidPermissionXmlAttribute).isFull() }
|
predicate requiresPermissions() { this.getAnAttribute().(AndroidPermissionXmlAttribute).isFull() }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holds if this application element has the attribute `android:allowBackup` set to `true`.
|
||||||
|
*/
|
||||||
|
predicate allowsBackup() {
|
||||||
|
exists(AndroidXmlAttribute attr |
|
||||||
|
this.getAnAttribute() = attr and
|
||||||
|
attr.getName() = "allowBackup" and
|
||||||
|
attr.getValue() = "true"
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user