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

PackageSetting

public final class PackageSetting extends PackageSettingBase
Settings data for a particular package we know about.

Fields Summary
int
appId
PackageParser.Package
pkg
SharedUserSetting
sharedUser
Constructors Summary
PackageSetting(String name, String realName, File codePath, File resourcePath, String legacyNativeLibraryPathString, String primaryCpuAbiString, String secondaryCpuAbiString, String cpuAbiOverrideString, int pVersionCode, int pkgFlags)

        super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString,
                primaryCpuAbiString, secondaryCpuAbiString, cpuAbiOverrideString,
                pVersionCode, pkgFlags);
    
PackageSetting(PackageSetting orig)
New instance of PackageSetting replicating the original settings. Note that it keeps the same PackageParser.Package instance.

        super(orig);

        appId = orig.appId;
        pkg = orig.pkg;
        sharedUser = orig.sharedUser;
    
Methods Summary
public int[]getGids()

        return sharedUser != null ? sharedUser.gids : gids;
    
public booleanisPrivileged()

        return (pkgFlags & ApplicationInfo.FLAG_PRIVILEGED) != 0;
    
public java.lang.StringtoString()

        return "PackageSetting{"
            + Integer.toHexString(System.identityHashCode(this))
            + " " + name + "/" + appId + "}";