diff --git a/java/ql/test/query-tests/security/CWE-312/android/backup/AllowBackupEnabledTest.ql b/java/ql/test/query-tests/security/CWE-312/android/backup/AllowBackupEnabledTest.ql index 2ec9c6a0cd8..c79276402fe 100644 --- a/java/ql/test/query-tests/security/CWE-312/android/backup/AllowBackupEnabledTest.ql +++ b/java/ql/test/query-tests/security/CWE-312/android/backup/AllowBackupEnabledTest.ql @@ -9,9 +9,7 @@ class AllowBackupEnabledTest extends InlineExpectationsTest { override predicate hasActualResult(Location location, string element, string tag, string value) { tag = "hasAllowedBackupEnabled" and - exists(AndroidApplicationXmlElement androidAppElem | - androidAppElem.allowsBackup() - | + exists(AndroidApplicationXmlElement androidAppElem | androidAppElem.allowsBackup() | androidAppElem.getAttribute("allowBackup").getLocation() = location and element = androidAppElem.getAttribute("debuggable").toString() and value = ""