diff --git a/frameworks/accesstoken/BUILD.gn b/frameworks/accesstoken/BUILD.gn index 905cf97537af37433da66c892757cf3a9c615565..707ed8a680dacf3e313ef19b3611c660e134b629 100644 --- a/frameworks/accesstoken/BUILD.gn +++ b/frameworks/accesstoken/BUILD.gn @@ -35,6 +35,11 @@ ohos_shared_library("accesstoken_communication_adapter_cxx") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "accesstoken_communication_adapter_cxx.map" + } + branch_protector_ret = "pac_ret" public_configs = [ ":accesstoken_communication_adapter_cxx_public_config" ] diff --git a/frameworks/accesstoken/accesstoken_communication_adapter_cxx.map b/frameworks/accesstoken/accesstoken_communication_adapter_cxx.map new file mode 100644 index 0000000000000000000000000000000000000000..54379dff95167c468100ba0bf030654cc1723fb2 --- /dev/null +++ b/frameworks/accesstoken/accesstoken_communication_adapter_cxx.map @@ -0,0 +1,85 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "VTT for OHOS::Security::AccessToken::HapTokenInfoForSyncParcel"; + "vtable for OHOS::Security::AccessToken::HapTokenInfoForSyncParcel"; + "VTT for OHOS::Security::AccessToken::PermissionDefParcel"; + "vtable for OHOS::Security::AccessToken::PermissionDefParcel"; + "VTT for OHOS::Security::AccessToken::PermissionListStateParcel"; + "vtable for OHOS::Security::AccessToken::PermissionListStateParcel"; + "VTT for OHOS::Security::AccessToken::PermissionGrantInfoParcel"; + "vtable for OHOS::Security::AccessToken::PermissionGrantInfoParcel"; + "VTT for OHOS::Security::AccessToken::PermStateChangeScopeParcel"; + "vtable for OHOS::Security::AccessToken::PermStateChangeScopeParcel"; + "VTT for OHOS::Security::AccessToken::HapInfoParcel"; + "vtable for OHOS::Security::AccessToken::HapInfoParcel"; + "VTT for OHOS::Security::AccessToken::HapPolicyParcel"; + "vtable for OHOS::Security::AccessToken::HapPolicyParcel"; + "VTT for OHOS::Security::AccessToken::HapTokenInfoParcel"; + "vtable for OHOS::Security::AccessToken::HapTokenInfoParcel"; + "VTT for OHOS::Security::AccessToken::NativeTokenInfoParcel"; + "vtable for OHOS::Security::AccessToken::NativeTokenInfoParcel"; + "VTT for OHOS::Security::AccessToken::AtmToolsParamInfoParcel"; + "vtable for OHOS::Security::AccessToken::AtmToolsParamInfoParcel"; + "VTT for OHOS::Security::AccessToken::HapBaseInfoParcel"; + "vtable for OHOS::Security::AccessToken::HapBaseInfoParcel"; + "VTT for OHOS::Security::AccessToken::PermissionStatusParcel"; + "vtable for OHOS::Security::AccessToken::PermissionStatusParcel"; + "VTT for OHOS::Security::AccessToken::PermissionStateChangeInfoParcel"; + "vtable for OHOS::Security::AccessToken::PermissionStateChangeInfoParcel"; + "VTT for OHOS::Security::AccessToken::PermissionUsedResultParcel"; + "vtable for OHOS::Security::AccessToken::PermissionUsedResultParcel"; + "VTT for OHOS::Security::AccessToken::PermissionUsedRequestParcel"; + "vtable for OHOS::Security::AccessToken::PermissionUsedRequestParcel"; + "VTT for OHOS::Security::AccessToken::ActiveChangeResponseParcel"; + "vtable for OHOS::Security::AccessToken::ActiveChangeResponseParcel"; + "OHOS::Security::AccessToken::HapTokenInfoForSyncParcel"; + "OHOS::Security::AccessToken::PermissionDefParcel"; + "OHOS::Security::AccessToken::PermissionStateChangeInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::HapTokenInfoForSyncParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionGrantInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::HapTokenInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::HapTokenInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::NativeTokenInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::NativeTokenInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionListStateParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionStatusParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionDefParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionDefParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::HapInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::HapPolicyParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermStateChangeScopeParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::HapBaseInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::HapBaseInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::AtmToolsParamInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::AtmToolsParamInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionGrantInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionStatusParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::HapTokenInfoForSyncParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermStateChangeScopeParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionStateChangeInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::HapPolicyParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::HapInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionUsedResultParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionUsedResultParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionUsedRequestParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionUsedRequestParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::ActiveChangeResponseParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::ActiveChangeResponseParcel::Unmarshalling(OHOS::Parcel&)"; + }; + local: + *; +}; \ No newline at end of file diff --git a/frameworks/common/BUILD.gn b/frameworks/common/BUILD.gn index d8c90e81738de09e554829011cc951566b14e331..af35f5d828f9591fb18b8555828e33783fbd0a24 100644 --- a/frameworks/common/BUILD.gn +++ b/frameworks/common/BUILD.gn @@ -43,6 +43,11 @@ ohos_shared_library("accesstoken_common_cxx") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "accesstoken_common_cxx.map" + } + branch_protector_ret = "pac_ret" public_configs = [ ":accesstoken_common_cxx_public_config" ] diff --git a/frameworks/common/accesstoken_common_cxx.map b/frameworks/common/accesstoken_common_cxx.map new file mode 100644 index 0000000000000000000000000000000000000000..87848fdfcb1d670081e7cf486a604f11db41cc40 --- /dev/null +++ b/frameworks/common/accesstoken_common_cxx.map @@ -0,0 +1,67 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "OHOS::Security::AccessToken::ConstantCommon::EncryptDevId(std::__h::basic_string, std::__h::allocator>)"; + "OHOS::Security::AccessToken::TimeUtil::GetCurrentTimestamp()"; + "OHOS::Security::AccessToken::FindAndInsertRecord(OHOS::Security::AccessToken::AddPermParamInfo const&)"; + "OHOS::Security::AccessToken::DataValidator::IsPermissionNameValid(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::DataValidator::IsPermissionUsedTypeValid(unsigned int)"; + "OHOS::Security::AccessToken::DataValidator::IsTokenIDValid(unsigned int)"; + "OHOS::Security::AccessToken::DataValidator::IsHapCaller(unsigned int)"; + "OHOS::Security::AccessToken::DataValidator::IsUserIdValid(int)"; + "OHOS::Security::AccessToken::DataValidator::IsPermissionUsedFlagValid(unsigned int)"; + "OHOS::Security::AccessToken::DataValidator::IsPolicyTypeValid(unsigned int)"; + "OHOS::Security::AccessToken::DataValidator::IsCallerTypeValid(unsigned int)"; + "OHOS::Security::AccessToken::DataValidator::IsAppIDDescValid(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::DataValidator::IsBundleNameValid(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::DataValidator::IsAplNumValid(int)"; + "OHOS::Security::AccessToken::DataValidator::IsDomainValid(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::DataValidator::IsDlpTypeValid(int)"; + "OHOS::Security::AccessToken::TransferPermissionToOpcode(std::__h::basic_string, std::__h::allocator> const&, unsigned int&)"; + "OHOS::Security::AccessToken::DataValidator::IsPermissionFlagValid(unsigned int)"; + "OHOS::Security::AccessToken::DataValidator::IsToggleStatusValid(unsigned int)"; + "OHOS::Security::AccessToken::DataValidator::IsProcessNameValid(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::JsonParser::IsDirExsit(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::JsonParser::GetStringFromJson(nlohmann::json_abi_v3_11_2::basic_json, std::__h::allocator>, bool, long, unsigned long, double, std::__h::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::__h::vector>> const&, std::__h::basic_string, std::__h::allocator> const&, std::__h::basic_string, std::__h::allocator>&)"; + "OHOS::Security::AccessToken::JsonParser::GetIntFromJson(nlohmann::json_abi_v3_11_2::basic_json, std::__h::allocator>, bool, long, unsigned long, double, std::__h::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::__h::vector>> const&, std::__h::basic_string, std::__h::allocator> const&, int&)"; + "OHOS::Security::AccessToken::JsonParser::ReadCfgFile(std::__h::basic_string, std::__h::allocator> const&, std::__h::basic_string, std::__h::allocator>&)"; + "OHOS::Security::AccessToken::DataValidator::IsDeviceIdValid(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::ConstantCommon::GetLocalDeviceId()"; + "OHOS::Security::AccessToken::TransferOpcodeToPermission(unsigned int, std::__h::basic_string, std::__h::allocator>&)"; + "OHOS::Security::AccessToken::ConstantCommon::GetFlagWithoutSpecifiedElement(unsigned int, unsigned int)"; + "OHOS::Security::AccessToken::ConstantCommon::IsPermOperatedByUser(int)"; + "OHOS::Security::AccessToken::ConstantCommon::IsPermOperatedBySystem(int)"; + "OHOS::Security::AccessToken::ConstantCommon::IsPermGrantedBySecComp(int)"; + "OHOS::Security::AccessToken::JsonParser::GetBoolFromJson(nlohmann::json_abi_v3_11_2::basic_json, std::__h::allocator>, bool, long, unsigned long, double, std::__h::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::__h::vector>> const&, std::__h::basic_string, std::__h::allocator> const&, bool&)"; + "OHOS::Security::AccessToken::DataValidator::IsLabelValid(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::DataValidator::IsAvailableTypeValid(int)"; + "OHOS::Security::AccessToken::JsonParser::GetUnsignedIntFromJson(nlohmann::json_abi_v3_11_2::basic_json, std::__h::allocator>, bool, long, unsigned long, double, std::__h::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::__h::vector>> const&, std::__h::basic_string, std::__h::allocator> const&, unsigned int&)"; + "OHOS::Security::AccessToken::DataValidator::IsDescValid(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::TimeUtil::IsTimeStampsSameMinute(long, long)"; + "OHOS::Security::AccessToken::TimeUtil::IsTimeStampsSameMinute(long long, long long)"; + "OHOS::Security::AccessToken::DataValidator::IsAclExtendedMapSizeValid(std::__h::map, std::__h::allocator>, std::__h::basic_string, std::__h::allocator>, std::__h::less, std::__h::allocator>>, std::__h::allocator, std::__h::allocator> const, std::__h::basic_string, std::__h::allocator>>>> const&)"; + "OHOS::Security::AccessToken::DataValidator::IsAclExtendedMapContentValid(std::__h::basic_string, std::__h::allocator> const&, std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::IsUserGrantPermission(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::IsDefinedPermission(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::GetPermissionBriefDef(std::__h::basic_string, std::__h::allocator> const&, OHOS::Security::AccessToken::PermissionBriefDef&)"; + "OHOS::Security::AccessToken::ConvertPermissionBriefToDef(OHOS::Security::AccessToken::PermissionBriefDef const&, OHOS::Security::AccessToken::PermissionDef&)"; + "OHOS::Security::AccessToken::GetPermissionBriefDef(unsigned int, OHOS::Security::AccessToken::PermissionBriefDef&)"; + "OHOS::Security::AccessToken::IsPermissionValidForHap(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::GetDefPermissionsSize()"; + }; + local: + *; +}; \ No newline at end of file diff --git a/frameworks/js/napi/accesstoken/BUILD.gn b/frameworks/js/napi/accesstoken/BUILD.gn index 6cebe5c4c58380e6392910cf5b676301cad5ec80..50d8269648797c1747dadfee347df25317a556a5 100644 --- a/frameworks/js/napi/accesstoken/BUILD.gn +++ b/frameworks/js/napi/accesstoken/BUILD.gn @@ -20,6 +20,12 @@ ohos_shared_library("libabilityaccessctrl") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "libabilityaccessctrl.map" + shlib_type = "sa" + } + branch_protector_ret = "pac_ret" include_dirs = [ "${access_token_path}/frameworks/common/include", diff --git a/frameworks/js/napi/accesstoken/libabilityaccessctrl.map b/frameworks/js/napi/accesstoken/libabilityaccessctrl.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/frameworks/js/napi/accesstoken/libabilityaccessctrl.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/frameworks/js/napi/el5filekeymanager/BUILD.gn b/frameworks/js/napi/el5filekeymanager/BUILD.gn index 7a42453e552fd6246abf2496fcff4f6426a8d98f..0c5a2946721347f2a4d3c36da32d6c32d12f679b 100644 --- a/frameworks/js/napi/el5filekeymanager/BUILD.gn +++ b/frameworks/js/napi/el5filekeymanager/BUILD.gn @@ -22,6 +22,11 @@ ohos_shared_library("screenlockfilemanager") { } branch_protector_ret = "pac_ret" + if (!use_clang_coverage) { + version_script = "screenlockfilemanager.map" + shlib_type = "sa" + } + include_dirs = [ "${access_token_path}/frameworks/inner_api/el5filekeymanager/include", "${access_token_path}/interfaces/inner_api/el5filekeymanager/include", diff --git a/frameworks/js/napi/el5filekeymanager/screenlockfilemanager.map b/frameworks/js/napi/el5filekeymanager/screenlockfilemanager.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/frameworks/js/napi/el5filekeymanager/screenlockfilemanager.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/frameworks/js/napi/privacy/BUILD.gn b/frameworks/js/napi/privacy/BUILD.gn index 4621e476019064ad2a4560bb51c3b5b6b8c98f0e..2ecf04e6ea8cc997169097031ad1f54cefb271e3 100644 --- a/frameworks/js/napi/privacy/BUILD.gn +++ b/frameworks/js/napi/privacy/BUILD.gn @@ -20,6 +20,11 @@ ohos_shared_library("libprivacymanager") { cfi_cross_dso = true debug = false } + if (!use_clang_coverage) { + version_script = "libprivacymanager.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" include_dirs = [ "${access_token_path}/frameworks/common/include", diff --git a/frameworks/js/napi/privacy/libprivacymanager.map b/frameworks/js/napi/privacy/libprivacymanager.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/frameworks/js/napi/privacy/libprivacymanager.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/frameworks/privacy/BUILD.gn b/frameworks/privacy/BUILD.gn index b452f0cda89a9310f87a1c980fb21a5b32c4ff2b..48afddee96ab623172d83d0c17c2c3e3969e8dd1 100644 --- a/frameworks/privacy/BUILD.gn +++ b/frameworks/privacy/BUILD.gn @@ -23,6 +23,11 @@ ohos_shared_library("privacy_communication_adapter_cxx") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "privacy_communication_adapter_cxx.map" + } + branch_protector_ret = "pac_ret" include_dirs = [ diff --git a/frameworks/privacy/privacy_communication_adapter_cxx.map b/frameworks/privacy/privacy_communication_adapter_cxx.map new file mode 100644 index 0000000000000000000000000000000000000000..4e81eb8106c7e4d09fde18fd35a83759907e4ba6 --- /dev/null +++ b/frameworks/privacy/privacy_communication_adapter_cxx.map @@ -0,0 +1,57 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "VTT for OHOS::Security::AccessToken::AddPermParamInfoParcel"; + "vtable for OHOS::Security::AccessToken::AddPermParamInfoParcel"; + "VTT for OHOS::Security::AccessToken::PermissionUsedTypeInfoParcel"; + "vtable for OHOS::Security::AccessToken::PermissionUsedTypeInfoParcel"; + "VTT for OHOS::Security::AccessToken::PermissionUsedResultParcel"; + "vtable for OHOS::Security::AccessToken::PermissionUsedResultParcel"; + "VTT for OHOS::Security::AccessToken::PermissionUsedRequestParcel"; + "vtable for OHOS::Security::AccessToken::PermissionUsedRequestParcel"; + "VTT for OHOS::Security::AccessToken::SecCompEnhanceDataParcel"; + "vtable for OHOS::Security::AccessToken::SecCompEnhanceDataParcel"; + "VTT for OHOS::Security::AccessToken::ActiveChangeResponseParcel"; + "vtable for OHOS::Security::AccessToken::ActiveChangeResponseParcel"; + "VTT for OHOS::Security::AccessToken::PermissionUsedRecordParcel"; + "vtable for OHOS::Security::AccessToken::PermissionUsedRecordParcel"; + "VTT for OHOS::Security::AccessToken::UsedRecordDetailParcel"; + "vtable for OHOS::Security::AccessToken::UsedRecordDetailParcel"; + "VTT for OHOS::Security::AccessToken::BundleUsedRecordParcel"; + "vtable for OHOS::Security::AccessToken::BundleUsedRecordParcel"; + "OHOS::Security::AccessToken::AddPermParamInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionUsedTypeInfoParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionUsedResultParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionUsedRequestParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::SecCompEnhanceDataParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::ActiveChangeResponseParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::AddPermParamInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionUsedTypeInfoParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionUsedResultParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionUsedRequestParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::SecCompEnhanceDataParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::ActiveChangeResponseParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::PermissionUsedRecordParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::PermissionUsedRecordParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::UsedRecordDetailParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::UsedRecordDetailParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::BundleUsedRecordParcel::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::BundleUsedRecordParcel::Marshalling(OHOS::Parcel&) const"; + "OHOS::Security::AccessToken::TimeUtil::IsTimeStampsSameMinute(long long, long long)"; + }; + local: + *; +}; \ No newline at end of file diff --git a/interfaces/inner_api/el5filekeymanager/BUILD.gn b/interfaces/inner_api/el5filekeymanager/BUILD.gn index d4c36ca0dc8166aa6c5b2e4acde8ca20689b62f2..4147e8cf17dddd91bdd38e0c152537af043d7cca 100644 --- a/interfaces/inner_api/el5filekeymanager/BUILD.gn +++ b/interfaces/inner_api/el5filekeymanager/BUILD.gn @@ -28,6 +28,11 @@ ohos_shared_library("el5_filekey_manager_sdk") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "el5_filekey_manager_sdk.map" + } + branch_protector_ret = "pac_ret" cflags_cc = [ diff --git a/interfaces/inner_api/el5filekeymanager/el5_filekey_manager_sdk.map b/interfaces/inner_api/el5filekeymanager/el5_filekey_manager_sdk.map new file mode 100644 index 0000000000000000000000000000000000000000..1e40d082c0faa5b1cb66d9c983ea07e2ba113e0c --- /dev/null +++ b/interfaces/inner_api/el5filekeymanager/el5_filekey_manager_sdk.map @@ -0,0 +1,42 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "OHOS::Security::AccessToken::El5FilekeyManagerKit::AcquireAccess(OHOS::Security::AccessToken::DataLockType)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::ReleaseAccess(OHOS::Security::AccessToken::DataLockType)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::QueryAppKeyState(OHOS::Security::AccessToken::DataLockType)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::GenerateAppKey(unsigned int, std::__h::basic_string, std::__h::allocator> const&, std::__h::basic_string, std::__h::allocator>&)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::GenerateGroupIDKey(unsigned int, std::__h::basic_string, std::__h::allocator> const&, std::__h::basic_string, std::__h::allocator>&)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::DeleteAppKey(std::__h::basic_string, std::__h::allocator> const&, int)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::DeleteGroupIDKey(unsigned int, std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::GetUserAllAppKey(int, std::__h::vector, std::__h::allocator>>, std::__h::allocator, std::__h::allocator>>>>&)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::ChangeUserAppkeysLoadInfo(int, std::__h::vector, std::__h::allocator>, bool>, std::__h::allocator, std::__h::allocator>, bool>>>&)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::GetUserAppKey(int, std::__h::vector, std::__h::allocator>>, std::__h::allocator, std::__h::allocator>>>>&)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::RegisterCallback(OHOS::sptr const&)"; + "OHOS::Security::AccessToken::El5FilekeyManagerKit::SetFilePathPolicy()"; + "OHOS::Security::AccessToken::El5FilekeyCallbackStub::El5FilekeyCallbackStub()"; + "OHOS::Security::AccessToken::El5FilekeyCallbackStub::~El5FilekeyCallbackStub()"; + "OHOS::Security::AccessToken::El5FilekeyCallbackStub::OnRemoteRequest(unsigned int, OHOS::MessageParcel&, OHOS::MessageParcel&, OHOS::MessageOption&)"; + "OHOS::Security::AccessToken::AppKeyInfo::Unmarshalling(OHOS::Parcel&)"; + "OHOS::Security::AccessToken::AppKeyInfo::Marshalling(OHOS::Parcel&) const"; + "non-virtual thunk to OHOS::Security::AccessToken::El5FilekeyCallbackStub::~El5FilekeyCallbackStub()"; + "virtual thunk to OHOS::Security::AccessToken::El5FilekeyCallbackStub::~El5FilekeyCallbackStub()"; + "VTT for OHOS::Security::AccessToken::AppKeyInfo"; + "vtable for OHOS::Security::AccessToken::AppKeyInfo"; + ""; + }; + local: + *; +}; \ No newline at end of file diff --git a/interfaces/innerkits/accesstoken/BUILD.gn b/interfaces/innerkits/accesstoken/BUILD.gn index 72f24f1d600b94427e6e990ccc29233df29e3ee5..a9cb5e55005253be7dda5a77cc7cd282efed2b4a 100644 --- a/interfaces/innerkits/accesstoken/BUILD.gn +++ b/interfaces/innerkits/accesstoken/BUILD.gn @@ -102,6 +102,11 @@ if (is_standard_system) { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "libtokenid_sdk.map" + } + branch_protector_ret = "pac_ret" innerapi_tags = [ "platformsdk", diff --git a/interfaces/innerkits/accesstoken/libaccesstoken_sdk.map b/interfaces/innerkits/accesstoken/libaccesstoken_sdk.map index 19192e683f5cad787ad0a8a8e96f7b8781932543..0c78aa0734647e518ecaca855589f8d9ccb26faa 100644 --- a/interfaces/innerkits/accesstoken/libaccesstoken_sdk.map +++ b/interfaces/innerkits/accesstoken/libaccesstoken_sdk.map @@ -45,6 +45,7 @@ "OHOS::Security::AccessToken::AccessTokenKit::DeleteRemoteDeviceTokens(std::__h::basic_string, std::__h::allocator> const&)"; "OHOS::Security::AccessToken::PermStateChangeCallbackCustomize::~PermStateChangeCallbackCustomize()"; "OHOS::Security::AccessToken::AccessTokenKit::GetDefPermission(std::__h::basic_string, std::__h::allocator> const&, OHOS::Security::AccessToken::PermissionDef&)"; + "OHOS::Security::AccessToken::AccessTokenKit::GetDefPermissions(unsigned int, std::__h::vector>&)"; "OHOS::Security::AccessToken::AccessTokenKit::GetReqPermissions(unsigned int, std::__h::vector>&, bool)"; "OHOS::Security::AccessToken::AccessTokenKit::VerifyAccessToken(unsigned int, std::__h::basic_string, std::__h::allocator> const&)"; "OHOS::Security::AccessToken::AccessTokenKit::VerifyAccessToken(unsigned int, std::__h::basic_string, std::__h::allocator> const&, bool)"; diff --git a/interfaces/innerkits/accesstoken/libtokenid_sdk.map b/interfaces/innerkits/accesstoken/libtokenid_sdk.map new file mode 100644 index 0000000000000000000000000000000000000000..9d434949ab81190dd08651166352eae65a7fd2c5 --- /dev/null +++ b/interfaces/innerkits/accesstoken/libtokenid_sdk.map @@ -0,0 +1,28 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "OHOS::Security::AccessToken::TokenIdKit::IsSystemAppByFullTokenID(unsigned long long)"; + "OHOS::Security::AccessToken::TokenIdKit::IsSystemAppByFullTokenID(unsigned long)"; + "OHOS::Security::AccessToken::TokenIdKit::GetRenderTokenID(unsigned long long)"; + "OHOS::Security::AccessToken::TokenIdKit::GetRenderTokenID(unsigned long)"; + "GetSelfTokenID"; + "SetSelfTokenID"; + "SetFirstCallerTokenID"; + ""; + }; + local: + *; +}; diff --git a/interfaces/innerkits/analysis_model/BUILD.gn b/interfaces/innerkits/analysis_model/BUILD.gn index dd19cabbabdfc0758419e69a7445d4000011b9d9..ba437bceccc1f76f282b77acb838e77db70fee46 100644 --- a/interfaces/innerkits/analysis_model/BUILD.gn +++ b/interfaces/innerkits/analysis_model/BUILD.gn @@ -28,6 +28,12 @@ if (is_standard_system) { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "libcodesignature_analysis.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" public_configs = [ ":accesstoken" ] diff --git a/interfaces/innerkits/analysis_model/libcodesignature_analysis.map b/interfaces/innerkits/analysis_model/libcodesignature_analysis.map new file mode 100644 index 0000000000000000000000000000000000000000..584482d09d778ae186f0d33a413dd45f564da833 --- /dev/null +++ b/interfaces/innerkits/analysis_model/libcodesignature_analysis.map @@ -0,0 +1,22 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "GetModelApi"; + ""; + }; + local: + *; +}; diff --git a/interfaces/innerkits/nativetoken/BUILD.gn b/interfaces/innerkits/nativetoken/BUILD.gn index 1caeae894427823727ad971a3135f003a84cab9b..c3c7cf9fad286217e661d78bfdb142ed001b4d0a 100644 --- a/interfaces/innerkits/nativetoken/BUILD.gn +++ b/interfaces/innerkits/nativetoken/BUILD.gn @@ -63,6 +63,12 @@ if (is_standard_system) { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "libnativetoken_shared.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" innerapi_tags = [ "platformsdk" ] public_configs = [ ":accesstokenlib" ] diff --git a/interfaces/innerkits/nativetoken/libnativetoken_shared.map b/interfaces/innerkits/nativetoken/libnativetoken_shared.map new file mode 100644 index 0000000000000000000000000000000000000000..57b5d5275cbc8f3cd5c45fc2229e23502175f657 --- /dev/null +++ b/interfaces/innerkits/nativetoken/libnativetoken_shared.map @@ -0,0 +1,43 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "g_isNativeTokenInited"; + "g_tokenListHead"; + "GetAccessTokenId"; + "GetFileBuff"; + "AtlibInit"; + "UpdateGoalItemFromRecord"; + "GetInfoArrFromJson"; + "GetAplFromJson"; + "GetTokenIdFromJson"; + "GetProcessNameFromJson"; + "FreeStrArray"; + "cJSON_GetObjectItemCaseSensitive"; + "cJSON_IsString"; + "cJSON_CreateArray"; + "cJSON_CreateString"; + "cJSON_AddItemToArray"; + "cJSON_CreateObject"; + "cJSON_HasObjectItem"; + "cJSON_GetStringValue"; + "cJSON_GetNumberValue"; + "cJSON_Parse"; + "cJSON_Delete"; + ""; + }; + local: + *; +}; \ No newline at end of file diff --git a/interfaces/innerkits/token_setproc/BUILD.gn b/interfaces/innerkits/token_setproc/BUILD.gn index 0b0d7d83aaea52a51be31f3150996639f4dceeca..bfa1d172702eb3470882ee5c59d96c9fe3484a75 100644 --- a/interfaces/innerkits/token_setproc/BUILD.gn +++ b/interfaces/innerkits/token_setproc/BUILD.gn @@ -43,6 +43,11 @@ if (is_standard_system) { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "libtokensetproc_shared.map" + } + branch_protector_ret = "pac_ret" innerapi_tags = [ "platformsdk" ] public_configs = [ ":setproc_config" ] diff --git a/interfaces/innerkits/token_setproc/libtokensetproc_shared.map b/interfaces/innerkits/token_setproc/libtokensetproc_shared.map new file mode 100644 index 0000000000000000000000000000000000000000..dcd17b5998b0475706edb280ca4b8100bb2b448f --- /dev/null +++ b/interfaces/innerkits/token_setproc/libtokensetproc_shared.map @@ -0,0 +1,24 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "GetSelfTokenID"; + "SetSelfTokenID"; + "SetFirstCallerTokenID"; + "GetFirstCallerTokenID"; + }; + local: + *; +}; diff --git a/interfaces/innerkits/tokensync/BUILD.gn b/interfaces/innerkits/tokensync/BUILD.gn index 4053b2bf1276a3464141f59db174a46b75611fe4..2906782055cbc87eafda51dc87caa5209fcf439c 100644 --- a/interfaces/innerkits/tokensync/BUILD.gn +++ b/interfaces/innerkits/tokensync/BUILD.gn @@ -28,6 +28,12 @@ if (is_standard_system) { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "libtokensync_sdk.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" output_name = "libtokensync_sdk" diff --git a/interfaces/innerkits/tokensync/libtokensync_sdk.map b/interfaces/innerkits/tokensync/libtokensync_sdk.map new file mode 100644 index 0000000000000000000000000000000000000000..c9dc8f6ac6be7e72909d753dc50bf40004b7bc4a --- /dev/null +++ b/interfaces/innerkits/tokensync/libtokensync_sdk.map @@ -0,0 +1,24 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "OHOS::Security::AccessToken::TokenSyncManagerClient::GetInstance()"; + "OHOS::Security::AccessToken::TokenSyncManagerClient::DeleteRemoteHapTokenInfo(unsigned int) const"; + "OHOS::Security::AccessToken::TokenSyncManagerClient::GetRemoteHapTokenInfo(std::__h::basic_string, std::__h::allocator> const&, unsigned int) const"; + "OHOS::Security::AccessToken::TokenSyncManagerClient::UpdateRemoteHapTokenInfo(OHOS::Security::AccessToken::HapTokenInfoForSync const&) const"; + }; + local: + *; +}; diff --git a/interfaces/kits/capi/accesstoken/BUILD.gn b/interfaces/kits/capi/accesstoken/BUILD.gn index 11093e09e2c258a134a697180aeaafc6d6b613ff..5d93f20bf9dc86b8fe22c43fb2cd603eb202acad 100644 --- a/interfaces/kits/capi/accesstoken/BUILD.gn +++ b/interfaces/kits/capi/accesstoken/BUILD.gn @@ -34,6 +34,11 @@ ohos_shared_library("libability_access_control") { sources = [ "src/ability_access_control.cpp" ] + if (!use_clang_coverage) { + version_script = "libability_access_control.map" + } + shlib_type = "sa" + deps = [ "${access_token_path}/interfaces/innerkits/accesstoken:libaccesstoken_sdk", "${access_token_path}/interfaces/innerkits/token_setproc:libtokensetproc_shared", diff --git a/interfaces/kits/capi/accesstoken/libability_access_control.map b/interfaces/kits/capi/accesstoken/libability_access_control.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/interfaces/kits/capi/accesstoken/libability_access_control.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/interfaces/kits/cj/accesstoken/BUILD.gn b/interfaces/kits/cj/accesstoken/BUILD.gn index b2af68dca668ce8a5a6381e286d0391915e571c4..d442e5512ad97e7d9d17e96b9d667c923faeece1 100644 --- a/interfaces/kits/cj/accesstoken/BUILD.gn +++ b/interfaces/kits/cj/accesstoken/BUILD.gn @@ -24,6 +24,12 @@ ohos_shared_library("cj_ability_access_ctrl_ffi") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "cj_ability_access_ctrl_ffi.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" include_dirs = [ "${access_token_path}/frameworks/common/include", diff --git a/interfaces/kits/cj/accesstoken/cj_ability_access_ctrl_ffi.map b/interfaces/kits/cj/accesstoken/cj_ability_access_ctrl_ffi.map new file mode 100644 index 0000000000000000000000000000000000000000..a69d7520b29f801bbe38017f7462d2adb6d96798 --- /dev/null +++ b/interfaces/kits/cj/accesstoken/cj_ability_access_ctrl_ffi.map @@ -0,0 +1,25 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "FfiOHOSAbilityAccessCtrlCheckAccessTokenSync"; + "FfiOHOSAbilityAccessCtrlRequestGlobalSwitch"; + "FfiOHOSAbilityAccessCtrlRequestPermissionOnSetting"; + "FfiOHOSAbilityAccessCtrlRequestPermissionsFromUser"; + "FfiOHOSAbilityAccessCtrlRequestPermissionsFromUserByStdFunc"; + }; + local: + *; +}; \ No newline at end of file diff --git a/interfaces/kits/cj/screenlockfilemanager/BUILD.gn b/interfaces/kits/cj/screenlockfilemanager/BUILD.gn index ff1dd353da3acd269671ed34c0c4f0326ea1f6f3..5d7607068b2079a636ce80d77b75aed46968f347 100644 --- a/interfaces/kits/cj/screenlockfilemanager/BUILD.gn +++ b/interfaces/kits/cj/screenlockfilemanager/BUILD.gn @@ -24,6 +24,12 @@ ohos_shared_library("cj_screen_lock_file_manager_ffi") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "cj_screen_lock_file_manager_ffi.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" include_dirs = [ "${access_token_path}/frameworks/inner_api/el5filekeymanager/include", diff --git a/interfaces/kits/cj/screenlockfilemanager/cj_screen_lock_file_manager_ffi.map b/interfaces/kits/cj/screenlockfilemanager/cj_screen_lock_file_manager_ffi.map new file mode 100644 index 0000000000000000000000000000000000000000..f6e397a66008aa2933db2cd52d52d0ee2e31d511 --- /dev/null +++ b/interfaces/kits/cj/screenlockfilemanager/cj_screen_lock_file_manager_ffi.map @@ -0,0 +1,22 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "FfiOHOSScreenLockFileManagerAcquireAccess"; + "FfiOHOSScreenLockFileManagerReleaseAccess"; + }; + local: + *; +}; \ No newline at end of file diff --git a/services/accesstokenmanager/BUILD.gn b/services/accesstokenmanager/BUILD.gn index 9fa2fc93c36ee54fa5a756d11e694c6c0dd6690e..c051fa724cabcd733b5888665a2dec2b787769e7 100644 --- a/services/accesstokenmanager/BUILD.gn +++ b/services/accesstokenmanager/BUILD.gn @@ -123,9 +123,12 @@ if (is_standard_system) { "${access_token_path}/interfaces/innerkits/privacy:libprivacy_sdk", "${access_token_path}/interfaces/innerkits/token_setproc:libperm_setproc", "${access_token_path}/interfaces/innerkits/token_setproc:libtoken_setproc", + "${access_token_path}/interfaces/innerkits/tokensync:libtokensync_sdk", "${access_token_path}/services/accesstokenmanager:access_token.rc", "${access_token_path}/services/accesstokenmanager:permission_definition_config", "${access_token_path}/services/common:accesstoken_service_common", + "${access_token_path}/services/common/ability_manager:accesstoken_ability_manager_adapter", + "${access_token_path}/services/common/json_parse:accesstoken_json_parse", ] deps += [ "etc:param_files" ] diff --git a/services/accesstokenmanager/test/unittest/BUILD.gn b/services/accesstokenmanager/test/unittest/BUILD.gn index 812c0a2a1915dbd31d4f2c30d63e29cae4f56407..8d784b7bc5c16b7d74590a2eac24cca247e04a84 100644 --- a/services/accesstokenmanager/test/unittest/BUILD.gn +++ b/services/accesstokenmanager/test/unittest/BUILD.gn @@ -113,6 +113,8 @@ ohos_unittest("libaccesstoken_manager_service_standard_test") { "${access_token_path}/interfaces/innerkits/privacy:libprivacy_sdk", "${access_token_path}/interfaces/innerkits/token_setproc:libperm_setproc", "${access_token_path}/interfaces/innerkits/token_setproc:libtokensetproc_shared", + "${access_token_path}/interfaces/innerkits/tokensync:libtokensync_sdk", + "${access_token_path}/services/accesstokenmanager:accesstoken_manager_service", "${access_token_path}/services/common:accesstoken_service_common", ] diff --git a/services/common/ability_manager/BUILD.gn b/services/common/ability_manager/BUILD.gn index ba8f9d65f25f8a257f494093e242ea5776670ce8..2cba6147a662f9c89ab1bba9732faa097739704f 100644 --- a/services/common/ability_manager/BUILD.gn +++ b/services/common/ability_manager/BUILD.gn @@ -29,6 +29,12 @@ ohos_shared_library("accesstoken_ability_manager_adapter") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "accesstoken_ability_manager_adapter.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" include_dirs = [ diff --git a/services/common/ability_manager/accesstoken_ability_manager_adapter.map b/services/common/ability_manager/accesstoken_ability_manager_adapter.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/services/common/ability_manager/accesstoken_ability_manager_adapter.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/services/common/app_manager/BUILD.gn b/services/common/app_manager/BUILD.gn index a6026e7f25159c1d72caf9398cdc98317edb5da8..a96fe81026b7f2dab8c2851c1cb86c0c6308a2aa 100644 --- a/services/common/app_manager/BUILD.gn +++ b/services/common/app_manager/BUILD.gn @@ -22,6 +22,12 @@ ohos_shared_library("accesstoken_app_manager") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "accesstoken_app_manager.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" include_dirs = [ diff --git a/services/common/app_manager/accesstoken_app_manager.map b/services/common/app_manager/accesstoken_app_manager.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/services/common/app_manager/accesstoken_app_manager.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/services/common/json_parse/BUILD.gn b/services/common/json_parse/BUILD.gn index 6b340009fac7c2125272bcdfe6f45adb6c420501..145c8ccf24d5297025a54e3ee8eb8e50c4bfc58b 100644 --- a/services/common/json_parse/BUILD.gn +++ b/services/common/json_parse/BUILD.gn @@ -28,6 +28,11 @@ ohos_shared_library("accesstoken_json_parse") { cfi_cross_dso = true debug = false } + if (!use_clang_coverage) { + version_script = "accesstoken_json_parse.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" include_dirs = [ @@ -73,6 +78,11 @@ ohos_shared_library("accesstoken_cjson_utils") { cfi_cross_dso = true debug = false } + if (!use_clang_coverage) { + version_script = "accesstoken_cjson_utils.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" include_dirs = [ diff --git a/services/common/json_parse/accesstoken_cjson_utils.map b/services/common/json_parse/accesstoken_cjson_utils.map new file mode 100644 index 0000000000000000000000000000000000000000..adae03dd9df77f27d545b81345eeba2818c73c35 --- /dev/null +++ b/services/common/json_parse/accesstoken_cjson_utils.map @@ -0,0 +1,39 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + "OHOS::Security::AccessToken::GetStringFromJson(cJSON const*, std::__h::basic_string, std::__h::allocator> const&, std::__h::basic_string, std::__h::allocator>&)"; + "OHOS::Security::AccessToken::GetIntFromJson(cJSON const*, std::__h::basic_string, std::__h::allocator> const&, int&)"; + "OHOS::Security::AccessToken::CreateJson()"; + "OHOS::Security::AccessToken::AddStringToJson(std::__h::unique_ptr>&, std::__h::basic_string, std::__h::allocator> const&, std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::AddIntToJson(std::__h::unique_ptr>&, std::__h::basic_string, std::__h::allocator> const&, int)"; + "OHOS::Security::AccessToken::AddStringToJson(cJSON*, std::__h::basic_string, std::__h::allocator> const&, std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::AddIntToJson(cJSON*, std::__h::basic_string, std::__h::allocator> const&, int)"; + "OHOS::Security::AccessToken::AddUnsignedIntToJson(cJSON*, std::__h::basic_string, std::__h::allocator> const&, unsigned int)"; + "OHOS::Security::AccessToken::CreateJsonArray()"; + "OHOS::Security::AccessToken::AddObjToArray(std::__h::unique_ptr>&, std::__h::unique_ptr>&)"; + "OHOS::Security::AccessToken::AddUnsignedIntToJson(std::__h::unique_ptr>&, std::__h::basic_string, std::__h::allocator> const&, unsigned int)"; + "OHOS::Security::AccessToken::AddObjToJson(std::__h::unique_ptr>&, std::__h::basic_string, std::__h::allocator> const&, std::__h::unique_ptr>&)"; + "OHOS::Security::AccessToken::GetUnsignedIntFromJson(cJSON const*, std::__h::basic_string, std::__h::allocator> const&, unsigned int&)"; + "OHOS::Security::AccessToken::GetArrayFromJson(cJSON const*, std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::PackJsonToString(std::__h::unique_ptr> const&)"; + "OHOS::Security::AccessToken::CreateJsonFromString(std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::GetUnsignedIntFromJson(std::__h::unique_ptr> const&, std::__h::basic_string, std::__h::allocator> const&, unsigned int&)"; + "OHOS::Security::AccessToken::GetObjFromJson(std::__h::unique_ptr>&, std::__h::basic_string, std::__h::allocator> const&)"; + "OHOS::Security::AccessToken::AddObjToArray(cJSON*, cJSON*)"; + }; + local: + *; +}; \ No newline at end of file diff --git a/services/common/json_parse/accesstoken_json_parse.map b/services/common/json_parse/accesstoken_json_parse.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/services/common/json_parse/accesstoken_json_parse.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/services/common/screenlock_manager/BUILD.gn b/services/common/screenlock_manager/BUILD.gn index 8a03c4ba4df1187ea6bf360dc8aae98feb0249fd..2d33937700650dcfe2ff4506d978d6b51f894ddf 100644 --- a/services/common/screenlock_manager/BUILD.gn +++ b/services/common/screenlock_manager/BUILD.gn @@ -28,6 +28,12 @@ ohos_shared_library("accesstoken_screenlock_manager") { cfi_cross_dso = true debug = false } + + if (!use_clang_coverage) { + version_script = "accesstoken_screenlock_manager.map" + } + shlib_type = "sa" + branch_protector_ret = "pac_ret" include_dirs = [ "include" ] diff --git a/services/common/screenlock_manager/accesstoken_screenlock_manager.map b/services/common/screenlock_manager/accesstoken_screenlock_manager.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/services/common/screenlock_manager/accesstoken_screenlock_manager.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/services/el5filekeymanager/BUILD.gn b/services/el5filekeymanager/BUILD.gn index b2445cc3282ff04d49bde504c85fd47e96f2a732..98898b0196977433b98f34013651fd1d570d9a99 100644 --- a/services/el5filekeymanager/BUILD.gn +++ b/services/el5filekeymanager/BUILD.gn @@ -42,7 +42,11 @@ if (is_standard_system && ability_base_enable == true) { } branch_protector_ret = "pac_ret" + if (!use_clang_coverage) { + version_script = "el5_filekey_manager_service.map" + } shlib_type = "sa" + cflags = [] cflags_cc = [ "-fdata-sections", diff --git a/services/el5filekeymanager/el5_filekey_manager_service.map b/services/el5filekeymanager/el5_filekey_manager_service.map new file mode 100644 index 0000000000000000000000000000000000000000..ff09ec0f9780e9190cb03d1f6121e0f56fa7076e --- /dev/null +++ b/services/el5filekeymanager/el5_filekey_manager_service.map @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + extern "C++" { + }; + local: + *; +}; \ No newline at end of file diff --git a/services/privacymanager/BUILD.gn b/services/privacymanager/BUILD.gn index 24f932dbde108aaa5321b5bb55a6bd723c4c66c0..900a5ba94f34ffe135adb4e01c00ab43de03bead 100644 --- a/services/privacymanager/BUILD.gn +++ b/services/privacymanager/BUILD.gn @@ -107,7 +107,10 @@ if (is_standard_system && ability_base_enable == true) { "${access_token_path}/interfaces/innerkits/accesstoken:libaccesstoken_sdk", "${access_token_path}/interfaces/innerkits/accesstoken:libtokenid_sdk", "${access_token_path}/services/common:accesstoken_service_common", + "${access_token_path}/services/common/ability_manager:accesstoken_ability_manager_adapter", + "${access_token_path}/services/common/json_parse:accesstoken_json_parse", "${access_token_path}/services/common/proxy_death:proxy_death_handler", + "${access_token_path}/services/common/screenlock_manager:accesstoken_screenlock_manager", "${access_token_path}/services/privacymanager:privacy.rc", ] diff --git a/services/privacymanager/test/unittest/BUILD.gn b/services/privacymanager/test/unittest/BUILD.gn index 1520b904c6f86e5268a0809d2e973308862d5f49..ca8807755ae17a685518a1cc5fe756dd7515aa6b 100644 --- a/services/privacymanager/test/unittest/BUILD.gn +++ b/services/privacymanager/test/unittest/BUILD.gn @@ -88,6 +88,7 @@ if (is_standard_system && ability_base_enable == true) { "${access_token_path}/interfaces/innerkits/accesstoken:libtokenid_sdk", "${access_token_path}/interfaces/innerkits/privacy:libprivacy_sdk", "${access_token_path}/interfaces/innerkits/token_setproc:libtokensetproc_shared", + "${access_token_path}/services/accesstokenmanager:accesstoken_manager_service", "${access_token_path}/services/common:accesstoken_service_common", "${access_token_path}/services/common/proxy_death:proxy_death_handler", "${access_token_path}/services/common/proxy_death:proxy_death_stub", diff --git a/services/tokensyncmanager/BUILD.gn b/services/tokensyncmanager/BUILD.gn index 74841d7b3435321faf4652e51e71262ab9cda127..4093b983b32873c8fea287661b0100a1cd16335c 100644 --- a/services/tokensyncmanager/BUILD.gn +++ b/services/tokensyncmanager/BUILD.gn @@ -104,6 +104,7 @@ if (token_sync_enable == true) { "${access_token_path}/interfaces/innerkits/token_setproc:libtoken_setproc", "${access_token_path}/services/common:accesstoken_service_common", "${access_token_path}/services/common/json_parse:accesstoken_cjson_utils", + "${access_token_path}/services/common/json_parse:accesstoken_json_parse", "${access_token_path}/services/tokensyncmanager:token_sync.rc", ]