mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
21 lines
715 B
Plaintext
21 lines
715 B
Plaintext
import java
|
|
import semmle.code.xml.AndroidManifest
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class AllowBackupEnabledTest extends InlineExpectationsTest {
|
|
AllowBackupEnabledTest() { this = "AllowBackupEnabledTest" }
|
|
|
|
override string getARelevantTag() { result = "hasAllowBackupEnabled" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasAllowedBackupEnabled" and
|
|
exists(AndroidApplicationXmlElement androidAppElem |
|
|
androidAppElem.allowsBackup()
|
|
|
|
|
androidAppElem.getAttribute("allowBackup").getLocation() = location and
|
|
element = androidAppElem.getAttribute("debuggable").toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|