mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Add check for files which provide the app launcher
Adds support for filtering which applications include the `android.intent.action.MAIN` intent.
This commit is contained in:
@@ -98,6 +98,16 @@ class AndroidApplicationXmlElement extends XmlElement {
|
||||
attr.getValue() = "true"
|
||||
)
|
||||
}
|
||||
|
||||
predicate providesMainIntent() {
|
||||
exists(AndroidActivityXmlElement activity |
|
||||
activity = this.getAChild() and
|
||||
exists(AndroidIntentFilterXmlElement intentFilter |
|
||||
intentFilter = activity.getAChild() and
|
||||
intentFilter.getAnActionElement().getActionName() = "android.intent.action.MAIN"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user