mirror of
https://github.com/github/codeql.git
synced 2026-06-18 19:31:11 +02:00
added predicates in the AndroidManifest library and adjusted tests
This commit is contained in:
@@ -13,9 +13,8 @@
|
||||
import java
|
||||
import semmle.code.xml.AndroidManifest
|
||||
|
||||
from AndroidXmlAttribute androidXmlAttr
|
||||
from AndroidApplicationXmlElement androidAppElem
|
||||
where
|
||||
androidXmlAttr.getName() = "debuggable" and
|
||||
androidXmlAttr.getValue() = "true" and
|
||||
not androidXmlAttr.getLocation().getFile().getRelativePath().matches("%build%")
|
||||
select androidXmlAttr, "The 'android:debuggable' attribute is enabled."
|
||||
androidAppElem.isDebuggable() and
|
||||
not androidAppElem.getFile().isInBuildDirectory()
|
||||
select androidAppElem.getAttribute("debuggable"), "The 'android:debuggable' attribute is enabled."
|
||||
|
||||
Reference in New Issue
Block a user