YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.OwnProviders Class Reference

Whether a content authority belongs to a provider of THIS app. More...

Collaboration diagram for de.yaacc.share.OwnProviders:
Collaboration graph

Static Public Member Functions

static boolean isOwnAuthority (PackageManager packageManager, String ownPackage, String authority)
 
static String fileProviderAuthority (String ownPackage)
 The authority of yaacc's file provider (${applicationId}.fileprovider in the manifest).
 

Detailed Description

Whether a content authority belongs to a provider of THIS app.

The app has more than one (the file provider, the start-up provider of a library), and a future one would pass a check of the file provider's authority alone; a URI of any of them would let another app make yaacc read and serve its own data, so every authority is resolved to its package.

Member Function Documentation

◆ isOwnAuthority()

static boolean de.yaacc.share.OwnProviders.isOwnAuthority ( PackageManager packageManager,
String ownPackage,
String authority )
static
Parameters
packageManagerthe package manager
ownPackagethis app's package name
authoritythe authority of the shared URI
Returns
true if a provider of this app answers to the authority; also true when the question cannot be answered (fail closed). False for an authority nobody (visible) provides.

The documentation for this class was generated from the following file: