Sequenceablepublic class BundleInfo extends Object implements Sequenceable
| 限定符和类型 | 类 | 说明 |
|---|---|---|
class |
BundleInfo.ReqPermissionDetail |
The permission detail of ability which is request.
|
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
List<AbilityInfo> |
abilityInfos |
Indicates the list of all abilities contained in this bundle.
|
String |
appId |
Indicates the ID of the application to which this bundle belongs.
|
ApplicationInfo |
appInfo |
Indicates information about the application to which this bundle belongs.
|
boolean |
debug |
Indicates the debug mo.
|
String |
jointUserId |
Indicates the name of the user ID shared among this application and other applications.
|
String |
name |
Indicates the name of this bundle.
|
String |
originalName |
Indicates the name of this original bundle.
|
static Sequenceable.Producer<BundleInfo> |
PRODUCER |
Creates a
BundleInfo instance from a Parcel. |
List<BundleInfo.ReqPermissionDetail> |
reqPermissionDetails |
Indicates the required permissions details defined in file config.json.
|
List<String> |
reqPermissions |
Indicates the required permissions name defined in file config.json.
|
String |
type |
Indicates the name of this original bundle.
|
int |
uid |
Indicates the UID of the application to which this bundle belongs.
|
| 构造器 | 说明 |
|---|---|
BundleInfo() |
Default constructor used to create a
BundleInfo instance. |
BundleInfo(BundleInfo source) |
A parameterized constructor used to create a
BundleInfo instance by copying parameters from an
existing one. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<AbilityInfo> |
getAbilityInfos() |
Obtains a list of all abilities contained in the current bundle.
|
String |
getAppId() |
Obtains the ID of the application to which the current bundle belongs.
|
ApplicationInfo |
getAppInfo() |
Obtains information about the application to which the current bundle belongs.
|
int |
getCompatibleVersion() |
Obtains the minimum API version required for the application to run.
|
boolean |
getCompressNativeLibs() |
Obtains the CompressNativeLibs information of this bundle.
|
String |
getCpuAbi() |
Obtains the cpuAbi information of this bundle.
|
String |
getEntryModuleName() |
Obtains the module name of the
Entry.hap file of the application. |
List<String> |
getHapModuleNames() |
Obtains the full names of all HAP modules of the application.
|
long |
getInstallTime() |
Obtains the application installation time.
|
String |
getJointUserId() |
Obtains the name of the user ID shared among this application and other applications.
|
int |
getMaxSdkVersion() |
Obtains the maximum SDK version required for running the application.
|
int |
getMinCompatibleVersionCode() |
Obtains the minimum compatible version required for the application to run.
|
int |
getMinSdkVersion() |
Obtains the minimum SDK version required for running the application.
|
List<String> |
getModuleDirs() |
Obtains the paths of all modules of the application.
|
List<String> |
getModuleNames() |
Obtains all module names of the application.
|
List<String> |
getModulePublicDirs() |
Obtains the public paths of all modules of the application.
|
String |
getName() |
Obtains the name of the bundle.
|
List<String> |
getPermissions() |
Obtains the permissions required for accessing the application.
|
List<BundleInfo.ReqPermissionDetail> |
getReqPermissionDetail() |
Obtains the required permissions detail for by the application.
|
List<String> |
getReqPermissions() |
Obtains the required permissions applied for by the application.
|
int |
getTargetVersion() |
Obtains the target API version required for the application to run.
|
String |
getType() |
Obtains the type of the bundle.
|
int |
getUid() |
Obtains the UID of the application to which the current bundle belongs.
|
long |
getUpdateTime() |
Obtains the application update time.
|
String |
getVendor() |
Obtains the vendor information of the application.
|
int |
getVersionCode() |
Obtains the version of the application.
|
String |
getVersionName() |
Obtains the textual description of the application version.
|
boolean |
isDifferentName() |
Obtains charge the different Bundle
|
Boolean |
isSilentInstallation() |
Checks whether the application is installed in silent installation mode.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<BundleInfo> PRODUCER
BundleInfo instance from a Parcel.public List<AbilityInfo> abilityInfos
public String appId
The application ID uniquely identifies an application. It is determined by the bundle name and signature.
public ApplicationInfo appInfo
public boolean debug
The Application is debuggable when "debug" is true.
public String jointUserId
public String name
public String originalName
public List<BundleInfo.ReqPermissionDetail> reqPermissionDetails
public List<String> reqPermissions
public String type
public int uid
The UID uniquely identifies an application. It is determined by the process and user IDs of the application. After an application is installed, its UID remains unchanged unless it is uninstalled and then reinstalled.
public BundleInfo()
BundleInfo instance.public BundleInfo(BundleInfo source)
BundleInfo instance by copying parameters from an
existing one.source - Indicates the existing BundleInfo object.public String getName()
public String getType()
public List<String> getPermissions()
public List<String> getHapModuleNames()
The full module name returned by this method is a string consisting of the application bundle name and module name.
public List<String> getModuleNames()
public List<String> getModulePublicDirs()
public List<String> getModuleDirs()
public String getVendor()
You must have configured the vendor tag in the configuration file. The default value is an empty
string, and you can retain the default value.
public int getVersionCode()
The system determines whether a version is old or new. This information is not presented to users.
The value of the version-code tag is an integer greater than 0. A larger value indicates a newer version.
This tag must be specified. You must have configured it in the configuration file.
public String getVersionName()
The application version information indicated by the version-name tag is visible to users.
This tag must be specified. You must have configured it in the configuration file.
public int getMinSdkVersion()
The min-version tag must be specified. You must have configured it in the configuration file.
Example value: zsdk 1.0.0.
public int getMaxSdkVersion()
The max-version tag must be specified. You must have configured it in the configuration file.
Example value: zsdk 1.0.1.
public int getCompatibleVersion()
The compatible sub-attribute must have been configured
in the apiVersion attribute in the config.json file.
public int getMinCompatibleVersionCode()
The compatible sub-attribute must have been configured
in the apiVersion attribute in the config.json file.
public int getTargetVersion()
The target attribute must have been configured in the apiVersion attribute
in the config.json file.
public ApplicationInfo getAppInfo()
public List<AbilityInfo> getAbilityInfos()
AbilityInfo objects.public String getAppId()
The application ID uniquely identifies an application. It is determined by the bundle name and signature.
public int getUid()
The UID uniquely identifies an application. It is determined by the process and user IDs of the application. After an application is installed, its UID remains unchanged unless it is uninstalled and then reinstalled.
public String getJointUserId()
public boolean isDifferentName()
public String getCpuAbi()
public boolean getCompressNativeLibs()
public String getEntryModuleName()
Entry.hap file of the application.
The module name is derived from the value of the name attribute in the module tag of the
config.json file.
Entry.hap file of the application.public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.Sequenceable.marshalling(Parcel)public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.Sequenceable.unmarshalling(Parcel)public List<String> getReqPermissions()
The permissions are derived from the values of name in the reqPermissions attribute of the
config.json file.
Before calling this method, you must have obtained the bundle information by passing the
IBundleManager#GET_BUNDLE_WITH_REQUESTED_PERMISSION flag to the
IBundleManager#getBundleInfo(String, int) method.
public List<BundleInfo.ReqPermissionDetail> getReqPermissionDetail()
The permissions detail are derived from the values of name
in the reqPermissions attribute of the
config.json file.
Before calling this method, you must have obtained the bundle information by passing the
IBundleManager#GET_BUNDLE_WITH_REQUESTED_PERMISSION flag to the
IBundleManager#getBundleInfo(String, int) method.
public Boolean isSilentInstallation()
true if the application is installed in silent installation mode; returns false
otherwise.public long getInstallTime()
The installation time is the number of seconds elapsed since January 1, 1970 00:00:00 UTC. The time will be recalculated if the application is reinstalled after being uninstalled.
public long getUpdateTime()
The update time is the number of seconds elapsed since January 1, 1970 00:00:00 UTC. If the application is installed for the first time, the application update time is the same as the installation time.