Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf3e5a0

Browse files
committed
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>`).
1 parent 1a9dd48 commit cf3e5a0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

java/ql/lib/semmle/code/xml/AndroidManifest.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,13 @@ class AndroidPermissionXmlAttribute extends XmlAttribute {
212212
predicate isWrite() { this.getName() = "writePermission" }
213213
}
214214

215+
/**
216+
* The attribute `android:name` or `android:targetActivity`.
217+
*/
218+
class AndroidIdentifierXmlAttribute extends AndroidXmlAttribute {
219+
AndroidIdentifierXmlAttribute() { this.getName() = ["name", "targetActivity"] }
220+
}
221+
215222
/**
216223
* The `<path-permission`> element of a `<provider>` in an Android manifest file.
217224
*/

0 commit comments

Comments
 (0)