Issue: #I8QHIL

Description:bundleNdk add appId&appIdentifer
Sig: SIG_ApplicaitonFramework
Feature or Bugfix: Feature
Binary Source: No

Signed-off-by: zhaogan <zhaogan2@huawei.com>
This commit is contained in:
zhaogan 2023-12-22 12:52:05 +08:00
parent 9e764f53eb
commit 365cd44d43
2 changed files with 31 additions and 17 deletions

View File

@ -57,23 +57,6 @@ struct OH_NativeBundle_ApplicationInfo {
* @since 9
*/
char* fingerprint;
/**
* Indicates the ID of the application to which this bundle belongs
* The application ID uniquely identifies an application. It is determined by the bundle name and signature
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @since 11
*/
char* appId;
/**
* Globally unique identifier of an application.
* AppIdentifier does not change along the application lifecycle, including version updates, certificate changes,
* public and private key changes, and application transfer.
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @since 11
*/
char* appIdentifier;
};
/**
@ -85,6 +68,29 @@ struct OH_NativeBundle_ApplicationInfo {
*/
OH_NativeBundle_ApplicationInfo OH_NativeBundle_GetCurrentApplicationInfo();
/**
* @brief Obtains the appId of application. AppId indicates the ID of the application to which this bundle belongs
* The application ID uniquely identifies an application. It is determined by the bundle name and signature.
* After utilizing this interface, to prevent memory leaks,
* it is necessary to manually release the pointer returned by the interface.
*
* @return Returns the appId info.
* @since 11
* @version 1.0
*/
char* OH_NativeBundle_GetAppId();
/**
* @brief Obtains the appIdentifier of application. AppIdentifier does not change along the application lifecycle,
* including version updates, certificate changes, public and private key changes, and application transfer.
* After utilizing this interface, to prevent memory leaks,
* it is necessary to manually release the pointer returned by the interface.
*
* @return Returns the appIdentifier info.
* @since 11
* @version 1.0
*/
char* OH_NativeBundle_GetAppIdentifier();
#ifdef __cplusplus
};
#endif

View File

@ -2,5 +2,13 @@
{
"first_introduced": "9",
"name": "OH_NativeBundle_GetCurrentApplicationInfo"
},
{
"first_introduced": "11",
"name": "OH_NativeBundle_GetAppId"
},
{
"first_introduced": "11",
"name": "OH_NativeBundle_GetAppIdentifier"
}
]