mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Add class for XML Attributes meant to hold an identifier in AndroidManifest
Some Android component attributes hold an identifier (e.g. `android:name` and `android:targetActivity` for `<activity-alias>`).
This commit is contained in:
@@ -212,6 +212,13 @@ class AndroidPermissionXmlAttribute extends XmlAttribute {
|
||||
predicate isWrite() { this.getName() = "writePermission" }
|
||||
}
|
||||
|
||||
/**
|
||||
* The attribute `android:name` or `android:targetActivity`.
|
||||
*/
|
||||
class AndroidIdentifierXmlAttribute extends AndroidXmlAttribute {
|
||||
AndroidIdentifierXmlAttribute() { this.getName() = ["name", "targetActivity"] }
|
||||
}
|
||||
|
||||
/**
|
||||
* The `<path-permission`> element of a `<provider>` in an Android manifest file.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user