mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Moved allowBackup query logic to allowsBackup pred
This commit is contained in:
@@ -14,15 +14,5 @@ import java
|
||||
import semmle.code.xml.AndroidManifest
|
||||
|
||||
from AndroidApplicationXmlElement androidAppElem
|
||||
where
|
||||
not androidAppElem.getFile().(AndroidManifestXmlFile).isInBuildDirectory() and
|
||||
(
|
||||
// explicitly sets android:allowBackup=true
|
||||
androidAppElem.allowsBackupExplicitly()
|
||||
or
|
||||
// Manifest providing the main intent for an application, and does not explicitly
|
||||
// disallow the allowBackup attribute
|
||||
androidAppElem.providesMainIntent() and
|
||||
androidAppElem.allowsBackup()
|
||||
)
|
||||
where androidAppElem.allowsBackup()
|
||||
select androidAppElem, "The 'android:allowBackup' attribute is enabled."
|
||||
|
||||
Reference in New Issue
Block a user