From d8cd828c195b88f0e4dd70f8446e1abc6a13a870 Mon Sep 17 00:00:00 2001 From: chenbingbing Date: Tue, 15 Jul 2025 11:22:02 +0800 Subject: [PATCH] rm cache param persist attribute Signed-off-by: chenbingbing --- etc/samgr.para | 2 +- etc/samgr.para.dac | 2 +- frameworks/native/source/system_ability_manager_proxy.cpp | 2 +- services/samgr/native/source/system_ability_manager.cpp | 2 +- test/autotest/resource/originFile/samgr.para | 2 +- test/autotest/resource/originFile/samgr.para.dac | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etc/samgr.para b/etc/samgr.para index 65945724..f7edd0c8 100644 --- a/etc/samgr.para +++ b/etc/samgr.para @@ -13,6 +13,6 @@ persist.samgr.perf.ondemand = false -persist.samgr.cache.sa = 0 +samgr.cache.sa = 0 persist.samgr.moduleupdate.start = false diff --git a/etc/samgr.para.dac b/etc/samgr.para.dac index a78e3df4..07177b7d 100644 --- a/etc/samgr.para.dac +++ b/etc/samgr.para.dac @@ -15,6 +15,6 @@ bootevent.samgr.ready = samgr:samgr:0775:bool persist.samgr.perf.ondemand = samgr:samgr:0775:bool -persist.samgr.cache.sa = samgr:samgr:0775 +samgr.cache.sa = samgr:samgr:0775 persist.samgr.moduleupdate. = samgr:samgr:0775 diff --git a/frameworks/native/source/system_ability_manager_proxy.cpp b/frameworks/native/source/system_ability_manager_proxy.cpp index abd76e4a..96ce040c 100644 --- a/frameworks/native/source/system_ability_manager_proxy.cpp +++ b/frameworks/native/source/system_ability_manager_proxy.cpp @@ -48,7 +48,7 @@ const int32_t SLEEP_INTERVAL_TIME = 200; const int32_t GET_SYSTEM_ABILITY_CODE = 1; const int32_t CHECK_SYSTEM_ABILITY_CODE = 2; const int32_t SLEEP_ONE_MILLI_SECOND_TIME = 1000; -constexpr const char* PARAM_KEY = "persist.samgr.cache.sa"; +constexpr const char* PARAM_KEY = "samgr.cache.sa"; } static void* g_selfSoHandle = nullptr; diff --git a/services/samgr/native/source/system_ability_manager.cpp b/services/samgr/native/source/system_ability_manager.cpp index 767198c6..b3bfe1d2 100644 --- a/services/samgr/native/source/system_ability_manager.cpp +++ b/services/samgr/native/source/system_ability_manager.cpp @@ -59,7 +59,7 @@ constexpr const char* PREFIX = "profile"; constexpr const char* SYSTEM_PREFIX = "/system/profile"; constexpr const char* LOCAL_DEVICE = "local"; constexpr const char* ONDEMAND_PARAM = "persist.samgr.perf.ondemand"; -constexpr const char* DYNAMIC_CACHE_PARAM = "persist.samgr.cache.sa"; +constexpr const char* DYNAMIC_CACHE_PARAM = "samgr.cache.sa"; constexpr const char* RESOURCE_SCHEDULE_PROCESS_NAME = "resource_schedule_service"; constexpr const char* IPC_STAT_DUMP_PREFIX = "--ipc"; constexpr const char* ONDEMAND_PERF_PARAM = "persist.samgr.perf.ondemand"; diff --git a/test/autotest/resource/originFile/samgr.para b/test/autotest/resource/originFile/samgr.para index 65945724..f7edd0c8 100644 --- a/test/autotest/resource/originFile/samgr.para +++ b/test/autotest/resource/originFile/samgr.para @@ -13,6 +13,6 @@ persist.samgr.perf.ondemand = false -persist.samgr.cache.sa = 0 +samgr.cache.sa = 0 persist.samgr.moduleupdate.start = false diff --git a/test/autotest/resource/originFile/samgr.para.dac b/test/autotest/resource/originFile/samgr.para.dac index a78e3df4..07177b7d 100644 --- a/test/autotest/resource/originFile/samgr.para.dac +++ b/test/autotest/resource/originFile/samgr.para.dac @@ -15,6 +15,6 @@ bootevent.samgr.ready = samgr:samgr:0775:bool persist.samgr.perf.ondemand = samgr:samgr:0775:bool -persist.samgr.cache.sa = samgr:samgr:0775 +samgr.cache.sa = samgr:samgr:0775 persist.samgr.moduleupdate. = samgr:samgr:0775 -- Gitee