1{ 2 "jobs": [{ 3 "name": "services:ams", 4 "cmds": [ 5 "mkdir /data/service/el1/public/AbilityManagerService 0711 foundation system", 6 "mkdir /data/storage/el1/bundle 0711 system system", 7 "mkdir /data/storage/el2/base 0711 system system", 8 "mkdir /data/storage/el2/database 0711 system system", 9 "mkdir /data/service/el1/public/notification 0711 foundation system", 10 "mkdir /data/service/el1/public/database 0711 ddms ddms", 11 "mkdir /data/service/el1/public/database/bundle_manager_service 02770 foundation ddms", 12 "mkdir /data/service/el1/public/database/notification_service 02770 foundation ddms", 13 "mkdir /data/service/el1/public/database/form_storage 02770 foundation ddms", 14 "chown radio system /sys/power/wake_lock", 15 "chown radio system /sys/power/wake_unlock", 16 "chmod 0664 /sys/power/wakeup_count" 17 ] 18 },{ 19 "name": "services:restartfoundation", 20 "cmds": [ 21 "reset appspawn", 22 "reset accountmgr" 23 ] 24 } 25 ], 26 "services": [{ 27 "name": "ams", 28 "path": ["/system/bin/sa_main", "/system/profile/ams.xml"], 29 "critical": [1, 1, 60], 30 "importance": -20, 31 "uid": "foundation", 32 "permission": [ 33 "ohos.permission.INPUT_MONITORING", 34 "ohos.permission.PERMISSION_USED_STATS", 35 "ohos.permission.DISTRIBUTED_SOFTBUS_CENTER", 36 "ohos.permission.DISTRIBUTED_DATASYNC", 37 "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", 38 "ohos.permission.INSTALL_BUNDLE", 39 "ohos.permission.MICROPHONE" 40 ], 41 "gid": ["system"], 42 "caps": ["SYS_PTRACE", "KILL"], 43 "jobs": { 44 "on-start": "services:ams", 45 "on-restart": "services:restartfoundation" 46 }, 47 "secon": "u:r:foundation:s0" 48 } 49 ] 50}