Skip to content

Commit 4986cc8

Browse files
Jami CogswellJami Cogswell
authored andcommitted
update isDebuggable predicate
1 parent f529cc4 commit 4986cc8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ class AndroidApplicationXmlElement extends XMLElement {
6060
/**
6161
* Holds if this application element has the attribute `android:debuggable` set to `true`.
6262
*/
63-
predicate isDebuggable() { this.getAttributeValue("debuggable") = "true" }
63+
predicate isDebuggable() {
64+
exists(AndroidXmlAttribute attr |
65+
this.getAnAttribute() = attr and
66+
attr.getName() = "debuggable" and
67+
attr.getValue() = "true"
68+
)
69+
}
6470
}
6571

6672
/**

0 commit comments

Comments
 (0)