@@ -6,6 +6,7 @@ import semmle.code.java.dataflow.TaintTracking
66import semmle.code.java.frameworks.Networking
77import semmle.code.java.security.Encryption
88import semmle.code.java.security.HttpsUrls
9+ private import semmle.code.java.frameworks.android.Android as Android
910
1011/** An Android Network Security Configuration XML file. */
1112class AndroidNetworkSecurityConfigFile extends XmlFile {
@@ -19,8 +20,12 @@ class AndroidNetworkSecurityConfigFile extends XmlFile {
1920 }
2021}
2122
22- /** Holds if this database is of an Android application. */
23- predicate isAndroid ( ) { exists ( AndroidManifestXmlFile m ) }
23+ /**
24+ * DEPRECATED. Use `semmle.code.java.frameworks.android.Android::isAndroid` instead.
25+ *
26+ * Holds if this database is of an Android application.
27+ */
28+ deprecated predicate isAndroid ( ) { Android:: isAndroid ( ) }
2429
2530/** Holds if the given domain name is trusted by the Network Security Configuration XML file. */
2631private predicate trustedDomainViaXml ( string domainName ) {
@@ -122,7 +127,7 @@ private module UntrustedUrlFlow = TaintTracking::Global<UntrustedUrlConfig>;
122127
123128/** Holds if `node` is a network communication call for which certificate pinning is not implemented. */
124129predicate missingPinning ( MissingPinningSink node , string domain ) {
125- isAndroid ( ) and
130+ Android :: isAndroid ( ) and
126131 exists ( DataFlow:: Node src | UntrustedUrlFlow:: flow ( src , node ) |
127132 if trustedDomain ( _) then domain = getDomain ( src .asExpr ( ) ) else domain = ""
128133 )
0 commit comments