Merge branch 'master' of gitee.com:openharmony/distributedschedule_safwk into 721

This commit is contained in:
chen
2022-07-28 08:43:21 +00:00
committed by Gitee
10 changed files with 37 additions and 36 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
"hiviewdfx_hilog_native",
"ipc",
"samgr",
"utils_base"
"c_utils"
],
"third_party": [ "libxml2" ]
},
+10 -17
View File
@@ -1,21 +1,5 @@
{
"jobs" : [{
"name" : "init",
"cmds" : [
"mkdir /dev/memcg",
"mount cgroup none /dev/memcg memory",
"chown system system /dev/memcg",
"chown system system /dev/memcg/tasks",
"chown system system /dev/memcg/memory.oom_control",
"chown system system /dev/memcg/cgroup.event_control",
"chown system system /dev/memcg/memory.pressure_level",
"chmod 0755 /dev/memcg",
"chmod 0755 /dev/memcg/tasks",
"chmod 0755 /dev/memcg/memory.oom_control",
"chmod 0755 /dev/memcg/cgroup.event_control",
"chmod 0755 /dev/memcg/memory.pressure_level"
]
}, {
"name" : "services:foundation",
"cmds" : [
"mkdir /data/service/el1/public/AbilityManagerService 0711 foundation system",
@@ -29,6 +13,12 @@
"chown radio system /sys/power/wake_unlock",
"chmod 0664 /sys/power/wakeup_count"
]
} , {
"name" : "services:restartfoundation",
"cmds" : [
"reset appspawn",
"reset accountmgr"
]
}
],
"services" : [{
@@ -40,13 +30,16 @@
"permission" : [
"ohos.permission.INPUT_MONITORING",
"ohos.permission.PERMISSION_USED_STATS",
"ohos.permission.DISTRIBUTED_SOFTBUS_CENTER",
"ohos.permission.DISTRIBUTED_DATASYNC",
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"ohos.permission.INSTALL_BUNDLE"
],
"gid" : ["system"],
"caps" : ["SYS_PTRACE", "KILL"],
"jobs" : {
"on-start" : "services:foundation"
"on-start" : "services:foundation",
"on-restart" : "services:restartfoundation"
},
"secon" : "u:r:foundation:s0"
}
+18 -1
View File
@@ -9,6 +9,23 @@
"name" : "ohos.permission.INSTALL_BUNDLE",
"said" : "401",
"description" : "Permission required for BMS to install and uninstall bundle."
},
{
"name" : "ohos.permission.PERMISSION_USED_STATS",
"said" : "3299",
"description" : "Invoke AccessToken::PrivacyKit::AddPermissionUsedRecord interface should have own this permission."
}
],
"restart" : [
{
"name" : "reset accountmgr",
"said" : "180",
"description" : "AMS requires accountmgr to restart"
},
{
"name" : "reset appspawn",
"said" : "180",
"description" : "AMS requires all application to restart"
}
]
}
}
+1 -1
View File
@@ -35,13 +35,13 @@ ohos_shared_library("system_ability_fwk") {
if (is_standard_system) {
external_deps = [
"c_utils:utils",
"hitrace_native:hitrace_meter",
"hiviewdfx_hilog_native:libhilog",
"ipc:ipc_core",
"samgr:lsamgr",
"samgr:samgr_common",
"samgr:samgr_proxy",
"utils_base:utils",
]
public_deps = [ "//third_party/libxml2:libxml2" ]
}
+1 -1
View File
@@ -34,13 +34,13 @@ ohos_executable("sa_main") {
if (is_standard_system) {
external_deps = [
"c_utils:utils",
"hitrace_native:hitrace_meter",
"hiviewdfx_hilog_native:libhilog",
"ipc:ipc_core",
"samgr:lsamgr",
"samgr:samgr_common",
"samgr:samgr_proxy",
"utils_base:utils",
]
}
+1 -1
View File
@@ -33,9 +33,9 @@ ohos_shared_library("test_audio_ability") {
deps = [ "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk" ]
external_deps = [
"c_utils:utils",
"hiviewdfx_hilog_native:libhilog",
"ipc:ipc_core",
"utils_base:utils",
]
part_name = "safwk"
+2 -5
View File
@@ -30,15 +30,12 @@ ohos_shared_library("test_ondemand_ability") {
]
configs = [ ":ondemand_ability_config" ]
deps = [
"//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk",
"//utils/native/base:utils",
]
deps = [ "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk" ]
external_deps = [
"c_utils:utils",
"hiviewdfx_hilog_native:libhilog",
"ipc:ipc_core",
"utils_base:utils",
]
part_name = "safwk"
subsystem_name = "systemabilitymgr"
+1 -1
View File
@@ -39,12 +39,12 @@ ohos_unittest("LocalAbilityManagerTest") {
}
external_deps = [
"c_utils:utils",
"hiviewdfx_hilog_native:libhilog",
"ipc:ipc_core",
"samgr:lsamgr",
"samgr:samgr_common",
"samgr:samgr_proxy",
"utils_base:utils",
]
}
@@ -27,10 +27,7 @@ ohos_shared_library("listen_test") {
configs = [ ":listen_ability_config" ]
deps = [
"//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk",
"//utils/native/base:utils",
]
deps = [ "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk" ]
if (is_standard_system) {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
@@ -39,9 +36,9 @@ ohos_shared_library("listen_test") {
}
external_deps += [
"c_utils:utils",
"ipc:ipc_core",
"samgr:samgr_proxy",
"utils_base:utils",
]
part_name = "safwk"
subsystem_name = "systemabilitymgr"
@@ -62,7 +62,6 @@ void LocalAbilityManagerTest::TearDown()
* @tc.name: CheckTrustSa001
* @tc.desc: CheckTrustSa with not all allow
* @tc.type: FUNC
* @tc.require: SR000GICST
*/
HWTEST_F(LocalAbilityManagerTest, CheckTrustSa001, TestSize.Level1)
{
@@ -89,7 +88,6 @@ HWTEST_F(LocalAbilityManagerTest, CheckTrustSa001, TestSize.Level1)
* @tc.name: CheckTrustSa002
* @tc.desc: CheckTrustSa with all allow
* @tc.type: FUNC
* @tc.require: SR000GICST
*/
HWTEST_F(LocalAbilityManagerTest, CheckTrustSa002, TestSize.Level1)
{
@@ -117,7 +115,6 @@ HWTEST_F(LocalAbilityManagerTest, CheckTrustSa002, TestSize.Level1)
* @tc.name: DoStartSAProcess001
* @tc.desc: DoStartSAProcess001
* @tc.type: FUNC
* @tc.require: SR000GH56H
*/
HWTEST_F(LocalAbilityManagerTest, DoStartSAProcess001, TestSize.Level2)
{