Moved Android manifest incomplete permission logic into library

This commit is contained in:
Ed Minnix
2022-09-29 14:06:18 -04:00
parent dedd29e1b3
commit e72963986f
2 changed files with 16 additions and 6 deletions

View File

@@ -180,6 +180,17 @@ class AndroidProviderXmlElement extends AndroidComponentXmlElement {
attr.getValue() = "true"
)
}
/**
* Holds if the provider element provides only `android:readPermission` or `android:writePermission`.
*/
predicate hasIncompletePermissions() {
(
this.getAnAttribute().(AndroidPermissionXmlAttribute).isWrite() or
this.getAnAttribute().(AndroidPermissionXmlAttribute).isRead()
) and
not this.requiresPermissions()
}
}
/**