{ "jobs": [{ "name": "services:ams", "cmds": [ "mkdir /data/service/el1/public/AbilityManagerService 0711 foundation 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/notification 0711 foundation system", "mkdir /data/service/el1/public/database 0711 ddms ddms", "mkdir /data/service/el1/public/database/bundle_manager_service 02770 foundation ddms", "mkdir /data/service/el1/public/database/notification_service 02770 foundation ddms", "mkdir /data/service/el1/public/database/form_storage 02770 foundation ddms", "chown radio system /sys/power/wake_lock", "chown radio system /sys/power/wake_unlock", "chmod 0664 /sys/power/wakeup_count" ] },{ "name": "services:restartfoundation", "cmds": [ "reset appspawn", "reset accountmgr" ] } ], "services": [{ "name": "ams", "path": ["/system/bin/sa_main", "/system/profile/ams.xml"], "critical": [1, 1, 60], "importance": -20, "uid": "foundation", "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", "ohos.permission.MICROPHONE" ], "gid": ["system"], "caps": ["SYS_PTRACE", "KILL"], "jobs": { "on-start": "services:ams", "on-restart": "services:restartfoundation" }, "secon": "u:r:foundation:s0" } ] }