Home
last modified time | relevance | path

Searched refs:appIdentifier (Results 1 – 25 of 112) sorted by relevance

12345

/ohos5.0/foundation/bundlemanager/app_domain_verify/test/unittest/frameworks_common/bms_test/
H A Dbundle_info_query_test.cpp74 std::string appIdentifier = APP_IDENTIFIER; variable
76 ASSERT_TRUE(BundleInfoQuery::GetBundleInfo(bundleName, appIdentifier, fingerprint));
87 std::string appIdentifier = APP_IDENTIFIER; variable
89 ASSERT_FALSE(BundleInfoQuery::GetBundleInfo(bundleName, appIdentifier, fingerprint));
105 std::string appIdentifier = APP_IDENTIFIER; variable
107 ASSERT_FALSE(BundleInfoQuery::GetBundleInfo(bundleName, appIdentifier, fingerprint));
117 std::string appIdentifier = APP_IDENTIFIER; variable
130 std::string appIdentifier = APP_IDENTIFIER; variable
145 std::string appIdentifier = APP_IDENTIFIER; variable
160 std::string appIdentifier = APP_IDENTIFIER; variable
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.1.3.2/
H A Dchangelogs-bundlemanager.md3 ## cl.bundlemanager.1 包管理NDK结构体OH_NativeBundle_ApplicationInfo新增appId和appIdentifier字段,需手动释放。
11 …ication-dev/reference/native-apis/_o_h___native_bundle_application_info.md)新增appId和appIdentifier字段。
15 如果使用API 11及以上的开发的Native应用,如果不手动释放结构体OH_NativeBundle_ApplicationInfo中的appId和appIdentifier字段,会造成内存泄漏。…
27 应用若是使用API 11及以上的版本开发的Native应用,则需要在代码里手动释放appId和appIdentifier申请的内存。
53 char* appIdentifier = OH_NativeBundle_GetAppIdentifier();
54 // Native接口获取的appIdentifier转为js对象里的appIdentifier属性
56 napi_create_string_utf8(env, appIdentifier, NAPI_AUTO_LENGTH, &napi_appIdentifier);
57 napi_set_named_property(env, result, "appIdentifier", napi_appIdentifier);
62 free(appIdentifier);
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.1.5.5/
H A Dchangelogs-bundlemanager.md37 ## cl.bundlemanager.2 包管理NDK结构体OH_NativeBundle_ApplicationInfo删除appId和appIdentifier字段。
45 …ication-dev/reference/native-apis/_o_h___native_bundle_application_info.md)删除appId和appIdentifier字段。
49 …/native__interface__bundle.md#oh_nativebundle_getcurrentapplicationinfo)不再能查询appId和appIdentifier信息。
66 …erence/native-apis/native__interface__bundle.md#oh_nativebundle_getappidentifier)查询appIdentifier信息。
92 char* appIdentifier = OH_NativeBundle_GetAppIdentifier(); // new
93 // Native接口获取的appIdentifier转为js对象里的appIdentifier属性
95 napi_create_string_utf8(env, appIdentifier, NAPI_AUTO_LENGTH, &napi_appIdentifier);
96 napi_set_named_property(env, result, "appIdentifier", napi_appIdentifier);
101 free(appIdentifier);
/ohos5.0/foundation/bundlemanager/app_domain_verify/test/unittest/verifier/
H A Ddomain_json_util_test.cpp93 assetJsonsStr = R"({"applinking":{"apps":[{"appIdentifier":1,"fingerprint":1}]}})";
97 assetJsonsStr = R"({"applinking":{"apps":[{"appIdentifier":1,"bundleName":1,}]}})";
105 …assetJsonsStr = R"({"applinking":{"apps":[{"appIdentifier":"appIdentifier","fingerprint":"fingerpr…
109 …assetJsonsStr = R"({"applinking":{"apps":[{"appIdentifier":"appIdentifier","bundleName":"bundleNam…
113 … assetJsonsStr = R"({"applinking":{"apps":[{"appIdentifier":1,"bundleName":1,"fingerprint":1}]}})";
118 …R"({"applinking":{"apps":[{"appIdentifier":"appIdentifier","bundleName":"bundleName","fingerprint"…
H A Ddomain_verifier_test.cpp111 appVerifyBaseInfo.appIdentifier = "";
115 appVerifyBaseInfo.appIdentifier = APP_IDENTIFIER;
127 appVerifyBaseInfo.appIdentifier = APP_IDENTIFIER;
128 appVerifyBaseInfoInApp.appIdentifier = FINGERPRINT;
151 appVerifyBaseInfo.appIdentifier = APP_IDENTIFIER;
152 appVerifyBaseInfoInApp.appIdentifier = FINGERPRINT;
159 appVerifyBaseInfoInApp.appIdentifier = FINGERPRINT;
191 appVerifyBaseInfo.appIdentifier = APP_IDENTIFIER;
192 appVerifyBaseInfoInApp.appIdentifier = APP_IDENTIFIER;
236 appVerifyBaseInfo.appIdentifier = APP_IDENTIFIER;
[all …]
H A Dverify_task_test.cpp65 appVerifyBaseInfo.appIdentifier = "";
86 appVerifyBaseInfo.appIdentifier = "";
142 appVerifyBaseInfo.appIdentifier = "";
162 appVerifyBaseInfo.appIdentifier = "";
185 appVerifyBaseInfo.appIdentifier = "";
226 appVerifyBaseInfo.appIdentifier = "";
262 appVerifyBaseInfo.appIdentifier = "";
284 appVerifyBaseInfo.appIdentifier = "";
309 appVerifyBaseInfo.appIdentifier = "";
333 appVerifyBaseInfo.appIdentifier = "";
/ohos5.0/foundation/bundlemanager/app_domain_verify/frameworks/common/include/dfx/
H A Dapp_domain_verify_hisysevent.h41 #define INSTALL_EVENT(appIdentifier, bundleName) … argument
44 … OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR, EventParamKey::APP_ID, (appIdentifier), \
48 #define UNINSTALL_EVENT(appIdentifier, bundleName) … argument
51 … OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR, EventParamKey::APP_ID, (appIdentifier), \
55 #define VERIFY_RESULT_EVENT(appIdentifier, bundleName, type, status) … argument
58 …OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR, EventParamKey::APP_ID, (appIdentifier), …
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.3.2/
H A Dchangelogs-bundlemanager.md3 ## cl.bundlemanager.1 Fields appId and appIdentifier Are Added to OH_NativeBundle_ApplicationInfo a…
11 The **appId** and **appIdentifier** fields are added to the [OH_NativeBundle_ApplicationInfo](../..…
15 …ou must manually release the memory allocated for the **appId** and **appIdentifier** fields in th…
27 …API version 11 or later, manually release the memory allocated for **appId** and **appIdentifier**.
53 char* appIdentifier = OH_NativeBundle_GetAppIdentifier();
54 … the application identifier obtained by calling the native API to the appIdentifier attribute in t…
56 napi_create_string_utf8(env, appIdentifier, NAPI_AUTO_LENGTH, &napi_appIdentifier);
57 napi_set_named_property(env, result, "appIdentifier", napi_appIdentifier);
62 free(appIdentifier);
/ohos5.0/foundation/bundlemanager/app_domain_verify/interfaces/inner_api/common/src/
H A Dapp_verify_base_info.cpp23 appIdentifier = ""; in AppVerifyBaseInfo()
30 appIdentifier = appVerifyBaseInfo.appIdentifier; in AppVerifyBaseInfo()
36 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String, parcel, appIdentifier); in Marshalling()
43 READ_PARCEL_AND_RETURN_FALSE_IF_FAIL(String, parcel, appIdentifier); in ReadFromParcel()
H A Dbundle_verify_status_info.cpp24 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String, parcel, appIdentifier); in Marshalling()
50 READ_PARCEL_AND_RETURN_FALSE_IF_FAIL(String, parcel, appIdentifier); in ReadFromParcel()
75 std::string dumpStr = "appIdentifier:" + appIdentifier + "\n"; in Dump()
92 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String, parcel, it.second.appIdentifier); in Marshalling()
164 READ_PARCEL_AND_RETURN_FALSE_IF_FAIL(String, parcel, verifyResultInfo.appIdentifier); in ReadFromParcel()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/
H A D_bundle.md38 | [OH_NativeBundle_GetAppIdentifier](#oh_nativebundle_getappidentifier) | 获取当前应用的appIdentifier信息。 |
86 获取自身应用的appIdentifier信息。appIdentifier指应用的唯一标识,由云端统一分配。该ID在应用全生命周期中不会发生变化,包括版本升级、证书变更、开发者公私钥变更、应用转移等。
92 返回一个字符串,包含该应用的appIdentifier信息。
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Dnative-bundle-guidelines.md13 …reference/apis-ability-kit/_bundle.md#oh_nativebundle_getappidentifier) | 获取自身应用的appIdentifier信息。 |
90 char* appIdentifier = OH_NativeBundle_GetAppIdentifier();
91 // Native接口获取的appIdentifier转为js对象里的appIdentifier属性
93 napi_create_string_utf8(env, appIdentifier, NAPI_AUTO_LENGTH, &napi_appIdentifier);
94 napi_set_named_property(env, result, "appIdentifier", napi_appIdentifier);
99 free(appIdentifier);
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.5.5/
H A Dchangelogs-bundlemanager.md37 ## cl.bundlemanager.2 Deleted the appId and appIdentifier Fields from OH_NativeBundle_ApplicationIn…
45 The **appId** and **appIdentifier** fields is deleted from the [OH_NativeBundle_ApplicationInfo](..…
49 …le.md#oh_nativebundle_getcurrentapplicationinfo) to obtain its appId and appIdentifier information.
66 …ive__interface__bundle.md#oh_nativebundle_getappidentifier) to query the appIdentifier information.
92 char* appIdentifier = OH_NativeBundle_GetAppIdentifier(); // new
93 … the application identifier obtained by calling the native API to the appIdentifier attribute in t…
95 napi_create_string_utf8(env, appIdentifier, NAPI_AUTO_LENGTH, &napi_appIdentifier);
96 napi_set_named_property(env, result, "appIdentifier", napi_appIdentifier);
101 free(appIdentifier);
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/native/bundle/src/
H A Dnative_interface_bundle.cpp192 size_t appIdentifierLen = bundleInfo.signatureInfo.appIdentifier.size(); in OH_NativeBundle_GetAppIdentifier()
197 char* appIdentifier = static_cast<char*>(malloc(appIdentifierLen + 1)); in OH_NativeBundle_GetAppIdentifier() local
198 if (appIdentifier == nullptr) { in OH_NativeBundle_GetAppIdentifier()
202 if (strcpy_s(appIdentifier, appIdentifierLen + 1, in OH_NativeBundle_GetAppIdentifier()
203 bundleInfo.signatureInfo.appIdentifier.c_str()) != EOK) { in OH_NativeBundle_GetAppIdentifier()
205 free(appIdentifier); in OH_NativeBundle_GetAppIdentifier()
209 return appIdentifier; in OH_NativeBundle_GetAppIdentifier()
/ohos5.0/foundation/bundlemanager/app_domain_verify/test/unittest/services/app_domain_verify_data_mgr_test/
H A Dapp_domain_verify_data_mgr_test.cpp66 .appIdentifier = APP_IDENTIFIER, in InvokeQueryAllData()
70 .appIdentifier = APP_IDENTIFIER, in InvokeQueryAllData()
83 .appIdentifier = APP_IDENTIFIER, in InvokeQueryAllDataBatchData()
87 .appIdentifier = APP_IDENTIFIER, in InvokeQueryAllDataBatchData()
129 verifyResultInfo.appIdentifier = APP_IDENTIFIER;
149 verifyResultInfo.appIdentifier = APP_IDENTIFIER;
176 .appIdentifier = APP_IDENTIFIER,
180 .appIdentifier = APP_IDENTIFIER,
216 verifyResultInfo.appIdentifier = APP_IDENTIFIER;
236 verifyResultInfo.appIdentifier = APP_IDENTIFIER;
/ohos5.0/foundation/bundlemanager/app_domain_verify/services/src/manager/core/
H A Dapp_domain_verify_mgr_service.cpp43 void AppDomainVerifyMgrService::VerifyDomain(const std::string& appIdentifier, const std::string& b… in VerifyDomain() argument
52 appVerifyBaseInfo.appIdentifier = appIdentifier; in VerifyDomain()
57 verifyResultInfo.appIdentifier = appIdentifier; in VerifyDomain()
65 bool AppDomainVerifyMgrService::ClearDomainVerifyStatus(const std::string& appIdentifier, const std… in ClearDomainVerifyStatus() argument
269 dumpString.append(" appIdentifier:" + verifyResultInfo.appIdentifier); in DumpAllVerifyInfos()
/ohos5.0/foundation/bundlemanager/app_domain_verify/frameworks/verifier/src/
H A Ddomain_verifier.cpp65 if (appVerifyBaseInfo.appIdentifier.empty()) { in VerifyHostWithAppIdentifier()
69 if (itr->appIdentifier.empty()) { in VerifyHostWithAppIdentifier()
73 if (appVerifyBaseInfo.appIdentifier == itr->appIdentifier) { in VerifyHostWithAppIdentifier()
/ohos5.0/foundation/bundlemanager/app_domain_verify/test/unittest/moduletest/
H A Dapp_domain_verify_agent_module_test.cpp78 …R"({"applinking":{"apps":[{"appIdentifier":"appIdentifier","bundleName":"com.openHarmony.test","fi…
94 verifyResultInfo.appIdentifier = APP_IDENTIFIER;
/ohos5.0/foundation/bundlemanager/app_domain_verify/frameworks/common/src/bms/
H A Dbundle_info_query.cpp27 bool BundleInfoQuery::GetBundleInfo(const std::string &bundleName, std::string &appIdentifier, std:… in GetBundleInfo() argument
47 appIdentifier = bundleInfo.signatureInfo.appIdentifier; in GetBundleInfo()
/ohos5.0/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/
H A Dmock_verify_mgr.h30 virtual void VerifyDomain(const std::string& appIdentifier, const std::string& bundleName, in VerifyDomain() argument
34 …virtual bool ClearDomainVerifyStatus(const std::string& appIdentifier, const std::string& bundleNa… in ClearDomainVerifyStatus() argument
85 virtual void VerifyDomain(const std::string& appIdentifier, const std::string& bundleName, in VerifyDomain() argument
89 …virtual bool ClearDomainVerifyStatus(const std::string& appIdentifier, const std::string& bundleNa… in ClearDomainVerifyStatus() argument
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A D_bundle.md38 | [OH_NativeBundle_GetAppIdentifier](#oh_nativebundle_getappidentifier) | Obtains the appIdentifier
86 Obtains the appIdentifier information about the current application. appIdentifier is the unique ID…
92 Returns a string that describes the appIdentifier information of the application.
/ohos5.0/foundation/bundlemanager/app_domain_verify/interfaces/inner_api/client/src/
H A Dapp_domain_verify_mgr_client.cpp54 void AppDomainVerifyMgrClient::VerifyDomain(const std::string& appIdentifier, const std::string& bu… in VerifyDomain() argument
58 INSTALL_EVENT(appIdentifier, bundleName); in VerifyDomain()
61 … appDomainVerifyMgrServiceProxy_->VerifyDomain(appIdentifier, bundleName, fingerprint, skillUris); in VerifyDomain()
66 bool AppDomainVerifyMgrClient::ClearDomainVerifyStatus(const std::string& appIdentifier, const std:… in ClearDomainVerifyStatus() argument
69 UNINSTALL_EVENT(appIdentifier, bundleName); in ClearDomainVerifyStatus()
73 … clearResult = appDomainVerifyMgrServiceProxy_->ClearDomainVerifyStatus(appIdentifier, bundleName); in ClearDomainVerifyStatus()
/ohos5.0/docs/en/application-dev/napi/
H A Dnative-bundle-guidelines.md13 …bility-kit/_bundle.md#oh_nativebundle_getappidentifier) | Obtains the appIdentifier information ab…
87 char* appIdentifier = OH_NativeBundle_GetAppIdentifier();
88 … the application identifier obtained by calling the native API to the appIdentifier attribute in t…
90 napi_create_string_utf8(env, appIdentifier, NAPI_AUTO_LENGTH, &napi_appIdentifier);
91 napi_set_named_property(env, result, "appIdentifier", napi_appIdentifier);
96 free(appIdentifier);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ipc/
H A Dcode_signature_param.cpp43 appIdentifier = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
56 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(appIdentifier)); in Marshalling()
81 { CODE_SIGNATURE_APP_IDENTIFIER, appIdentifier }, in ToString()
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/interfaces/
H A Dhap_verify.cpp109 std::string &appIdentifier) in ParseBundleNameAndAppIdentifier() argument
129 appIdentifier = info.bundleInfo.appIdentifier; in ParseBundleNameAndAppIdentifier()

12345