From 43be7b58e45dbe3a0c21d8e11dcc1814a0132fd4 Mon Sep 17 00:00:00 2001 From: acdemicJava Date: Tue, 7 Jul 2026 19:18:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AEPAC=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: acdemicJava --- frameworks/js/napi/app/error_manager/BUILD.gn | 1 + frameworks/js/napi/app/recovery/BUILD.gn | 1 + .../dfr_test/appcapture_perf_test/appcapture_perf_test.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/js/napi/app/error_manager/BUILD.gn b/frameworks/js/napi/app/error_manager/BUILD.gn index 1d12d8ad74..6bd6ada6f8 100644 --- a/frameworks/js/napi/app/error_manager/BUILD.gn +++ b/frameworks/js/napi/app/error_manager/BUILD.gn @@ -16,6 +16,7 @@ import("//foundation/ability/ability_runtime/ability_runtime.gni") template("errormanager") { ohos_shared_library(target_name) { + branch_protector_ret = "pac_ret" forward_variables_from(invoker, [ "relative_install_dir" ]) if (defined(invoker.defines)) { diff --git a/frameworks/js/napi/app/recovery/BUILD.gn b/frameworks/js/napi/app/recovery/BUILD.gn index 3537807a8e..77b94300e3 100644 --- a/frameworks/js/napi/app/recovery/BUILD.gn +++ b/frameworks/js/napi/app/recovery/BUILD.gn @@ -15,6 +15,7 @@ import("//build/ohos.gni") import("//foundation/ability/ability_runtime/ability_runtime.gni") ohos_shared_library("apprecovery_napi") { + branch_protector_ret = "pac_ret" include_dirs = [ "${ability_runtime_path}/interfaces/kits/native/ability/native/recovery/", ] diff --git a/test/unittest/dfr_test/appcapture_perf_test/appcapture_perf_test.cpp b/test/unittest/dfr_test/appcapture_perf_test/appcapture_perf_test.cpp index 6ba0535205..6a12f964df 100644 --- a/test/unittest/dfr_test/appcapture_perf_test/appcapture_perf_test.cpp +++ b/test/unittest/dfr_test/appcapture_perf_test/appcapture_perf_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2025 Huawei Device Co., Ltd. + * Copyright (c) 2025-2026 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