From 17e8fbcf9d83992cbe180c8723bb1cb0343dd5e1 Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Mon, 1 Sep 2025 10:27:30 +0800 Subject: [PATCH] add g_aniClassCache Signed-off-by: lanhaoyu --- interfaces/kits/ani/common/common_fun_ani.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/interfaces/kits/ani/common/common_fun_ani.cpp b/interfaces/kits/ani/common/common_fun_ani.cpp index 885090a7d3..1b8fececcb 100644 --- a/interfaces/kits/ani/common/common_fun_ani.cpp +++ b/interfaces/kits/ani/common/common_fun_ani.cpp @@ -98,6 +98,13 @@ constexpr const char* CLASSNAME_OVERLAY_MODULE_INFO_INNER = constexpr const char* CLASSNAME_WANT = "@ohos.app.ability.Want.Want"; constexpr const char* CLASSNAME_ZLIB_CHECKSUM_INTERNAL = "@ohos.zlib.zlib.ChecksumInternal"; constexpr const char* CLASSNAME_ZLIB_GZIP_INTERNAL = "@ohos.zlib.zlib.GZipInternal"; +constexpr const char* CLASSNAME_DISPOSED_RULE_INNER = "@ohos.bundle.appControl.appControl.DisposedRuleInner"; +constexpr const char* CLASSNAME_DISPOSED_UNINSTALL_RULE_INNER = + "@ohos.bundle.appControl.appControl.UninstallDisposedRuleInner"; +constexpr const char* CLASSNAME_BUNDLE_RES_INFO_INNER = + "bundleManager.BundleResourceInfoInner.BundleResourceInfoInner"; +constexpr const char* CLASSNAME_LAUNCHER_ABILITY_RESOURCE_INFO_INNER = + "bundleManager.LauncherAbilityResourceInfoInner.LauncherAbilityResourceInfoInner"; constexpr const char* PROPERTYNAME_NAME = "name"; constexpr const char* PROPERTYNAME_VERSION_CODE = "versionCode"; @@ -169,6 +176,10 @@ static std::map g_aniClassCache = { { CLASSNAME_APP_PROVISION_INFO_INNER, { } }, { CLASSNAME_ZLIB_CHECKSUM_INTERNAL, { } }, { CLASSNAME_ZLIB_GZIP_INTERNAL, { } }, + { CLASSNAME_DISPOSED_RULE_INNER, { } }, + { CLASSNAME_DISPOSED_UNINSTALL_RULE_INNER, { } }, + { CLASSNAME_BUNDLE_RES_INFO_INNER, { } }, + { CLASSNAME_LAUNCHER_ABILITY_RESOURCE_INFO_INNER, { } }, }; static ani_class GetCacheClass(ani_env* env, const std::string& className) -- Gitee