FileDocCategorySizeDatePackage
PackageInfoLite.javaAPI DocAndroid 5.1 API4206Thu Mar 12 22:22:10 GMT 2015android.content.pm

PackageInfoLite

public class PackageInfoLite extends Object implements android.os.Parcelable
Basic information about a package as specified in its manifest. Utility class used in PackageManager methods
hide

Fields Summary
public String
packageName
The name of this package. From the <manifest> tag's "name" attribute.
public String[]
splitNames
Names of any split APKs, ordered by parsed splitName
public int
versionCode
The android:versionCode of the package.
public int
baseRevisionCode
Revision code of base APK
public int[]
splitRevisionCodes
Revision codes of any split APKs, ordered by parsed splitName
public boolean
multiArch
The android:multiArch flag from the package manifest. If set, we will extract all native libraries for the given app, not just those from the preferred ABI.
public int
recommendedInstallLocation
Specifies the recommended install location. Can be one of {@link #PackageHelper.RECOMMEND_INSTALL_INTERNAL} to install on internal storage {@link #PackageHelper.RECOMMEND_INSTALL_EXTERNAL} to install on external media {@link PackageHelper.RECOMMEND_FAILED_INSUFFICIENT_STORAGE} for storage errors {@link PackageHelper.RECOMMEND_FAILED_INVALID_APK} for parse errors.
public int
installLocation
public VerifierInfo[]
verifiers
public static final Parcelable.Creator
CREATOR
Constructors Summary
public PackageInfoLite()

    
private PackageInfoLite(android.os.Parcel source)


       
        packageName = source.readString();
        splitNames = source.createStringArray();
        versionCode = source.readInt();
        baseRevisionCode = source.readInt();
        splitRevisionCodes = source.createIntArray();
        recommendedInstallLocation = source.readInt();
        installLocation = source.readInt();
        multiArch = (source.readInt() != 0);

        final int verifiersLength = source.readInt();
        if (verifiersLength == 0) {
            verifiers = new VerifierInfo[0];
        } else {
            verifiers = new VerifierInfo[verifiersLength];
            source.readTypedArray(verifiers, VerifierInfo.CREATOR);
        }
    
Methods Summary
public intdescribeContents()

        return 0;
    
public java.lang.StringtoString()

        return "PackageInfoLite{"
            + Integer.toHexString(System.identityHashCode(this))
            + " " + packageName + "}";
    
public voidwriteToParcel(android.os.Parcel dest, int parcelableFlags)

        dest.writeString(packageName);
        dest.writeStringArray(splitNames);
        dest.writeInt(versionCode);
        dest.writeInt(baseRevisionCode);
        dest.writeIntArray(splitRevisionCodes);
        dest.writeInt(recommendedInstallLocation);
        dest.writeInt(installLocation);
        dest.writeInt(multiArch ? 1 : 0);

        if (verifiers == null || verifiers.length == 0) {
            dest.writeInt(0);
        } else {
            dest.writeInt(verifiers.length);
            dest.writeTypedArray(verifiers, parcelableFlags);
        }