CodeQL library for Java/Kotlin
codeql/java-all 4.2.2-dev (changelog, source)
Search

Predicate androidExternalStorageSource

Holds if n is a node that reads the contents of an external file in Android. This is controllable by third-party applications, so is treated as a remote flow source.

Import path

import semmle.code.java.frameworks.android.ExternalStorage
predicate androidExternalStorageSource(Node n)