mirror of
https://gitee.com/openharmony/appexecfwk_standard
synced 2024-11-23 04:59:55 +00:00
move foundation.cfg to safwk
Change-Id: I95d8ef8c7f069e1daba9bd25d1deed30c396bedd Signed-off-by: shuaiyutao <shuaiyutao1@huawei.com>
This commit is contained in:
parent
05ae91a676
commit
d50e7550db
@ -58,7 +58,6 @@
|
||||
"//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
|
||||
"//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
|
||||
"//foundation/appexecfwk/standard/sa_profile:appexecfwk_sa_profile",
|
||||
"//foundation/appexecfwk/standard/sa_profile:foundation.rc",
|
||||
"//foundation/appexecfwk/standard/services/bundlemgr:bms_target",
|
||||
"//foundation/appexecfwk/standard/kits/appkit/napi:napi_packages",
|
||||
"//foundation/appexecfwk/standard/kits/appkit/native/bundle:bundle_ndk",
|
||||
|
@ -19,10 +19,3 @@ ohos_sa_profile("appexecfwk_sa_profile") {
|
||||
|
||||
part_name = "bundle_framework"
|
||||
}
|
||||
|
||||
ohos_prebuilt_etc("foundation.rc") {
|
||||
source = "foundation.cfg"
|
||||
relative_install_dir = "init"
|
||||
subsystem_name = "appexecfwk"
|
||||
part_name = "bundle_framework"
|
||||
}
|
||||
|
@ -1,46 +0,0 @@
|
||||
{
|
||||
"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 system system",
|
||||
"mkdir /data/storage/el1/bundle 0711 system system",
|
||||
"mkdir /data/storage/el2/base 0711 system system",
|
||||
"mkdir /data/storage/el2/database 0711 system system",
|
||||
"mkdir /data/service/el1/public/database 02770 ddms ddms",
|
||||
"mkdir /data/service/el1/public/database/bundle_manager_service 02770 system ddms",
|
||||
"chown radio system /sys/power/wake_lock",
|
||||
"chown radio system /sys/power/wake_unlock",
|
||||
"chmod 0664 /sys/power/wakeup_count"
|
||||
]
|
||||
}
|
||||
],
|
||||
"services" : [{
|
||||
"name" : "foundation",
|
||||
"path" : ["/system/bin/sa_main", "/system/profile/foundation.xml"],
|
||||
"critical":[1, 1, 60],
|
||||
"importance" : -20,
|
||||
"uid" : "system",
|
||||
"gid" : ["system"],
|
||||
"caps" : ["SYS_PTRACE", "KILL"],
|
||||
"jobs" : {
|
||||
"on-start" : "services:foundation"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright (c) 2021-2022 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.
|
||||
|
||||
on init
|
||||
# cpuctl subsystem
|
||||
# set background cpuctl
|
||||
mkdir /dev/cpuctl/background
|
||||
chmod 0755 /dev/cpuctl/background
|
||||
chmod 0755 /dev/cpuctl/background/tasks
|
||||
chown system system /dev/cpuctl/background
|
||||
chown system system /dev/cpuctl/background/tasks
|
||||
write /dev/cpuctl/background/cpu.shares 512
|
||||
|
||||
# cpuset subsystem
|
||||
# write cpus in background
|
||||
write /dev/cpuset/background/cpus 0
|
||||
|
||||
on boot
|
||||
# Add permision for powermanager to control suspend
|
||||
# It should be executed before foundation started
|
||||
# because powermanager will run in foundation process
|
||||
chown radio system /sys/power/wake_lock
|
||||
chown radio system /sys/power/wake_unlock
|
||||
chmod 0664 /sys/power/wakeup_count
|
||||
start foundation
|
||||
|
||||
service foundation /system/bin/sa_main /system/profile/foundation.xml
|
||||
class foundation
|
||||
priority -20
|
||||
user system
|
||||
group system
|
||||
seclabel u:r:foundation:s0
|
||||
capabilities SYS_PTRACE KILL SYS_BOOT
|
Loading…
Reference in New Issue
Block a user