Use all possible packages for Fragment classes

Also fix stub
This commit is contained in:
Tony Torralba
2022-01-19 16:23:11 +01:00
parent 3c9fac0c6e
commit 6096080156
2 changed files with 6 additions and 1973 deletions

View File

@@ -42,14 +42,18 @@ class OnActivityResultIncomingIntent extends DataFlow::Node {
// and the activity it belongs to defines `onActivityResult`.
exists(MethodAccess ma |
ma.getMethod().hasName(["add", "attach", "replace"]) and
ma.getMethod().getDeclaringType().hasQualifiedName("android.app", "FragmentTransaction") and
ma.getMethod()
.getDeclaringType()
.hasQualifiedName(["android.app", "android.support.v4.app", "androidx.fragment.app"],
"FragmentTransaction") and
any(Argument arg | arg = ma.getAnArgument()).getType() = startingType
or
ma.getMethod().hasName("show") and
ma.getMethod()
.getDeclaringType()
.getASupertype*()
.hasQualifiedName("android.app", "DialogFragment") and
.hasQualifiedName(["android.app", "android.support.v4.app", "androidx.fragment.app"],
"DialogFragment") and
startingType = ma.getQualifier().getType()
|
ma.getEnclosingCallable().getDeclaringType() =

File diff suppressed because it is too large Load Diff