FileDocCategorySizeDatePackage
GrantedPermissions.javaAPI DocAndroid 5.1 API1515Thu Mar 12 22:22:42 GMT 2015com.android.server.pm

GrantedPermissions

public class GrantedPermissions extends Object

Fields Summary
int
pkgFlags
android.util.ArraySet
grantedPermissions
int[]
gids
Constructors Summary
GrantedPermissions(int pkgFlags)


      
        setFlags(pkgFlags);
    
GrantedPermissions(GrantedPermissions base)

        pkgFlags = base.pkgFlags;
        grantedPermissions = new ArraySet<>(base.grantedPermissions);

        if (base.gids != null) {
            gids = base.gids.clone();
        }
    
Methods Summary
voidsetFlags(int pkgFlags)

        this.pkgFlags = pkgFlags
                & (ApplicationInfo.FLAG_SYSTEM
                        | ApplicationInfo.FLAG_PRIVILEGED
                        | ApplicationInfo.FLAG_FORWARD_LOCK
                        | ApplicationInfo.FLAG_EXTERNAL_STORAGE);