支持rs快速自恢复

Signed-off-by: wugeyu <wugeyu@huawei.com>
Change-Id: Ie210231e1b5e578205dcddd10e561359140864c0
This commit is contained in:
wugeyu 2022-09-19 14:25:05 +08:00
parent 6604e1f211
commit 1ac7c56004

View File

@ -5,17 +5,29 @@
"chmod 666 /dev/mali0",
"chown system graphics /dev/mali0"
]
}, {
"name": "services:restartrender_service",
"cmds": [
"reset foundation",
"reset bootanimation",
"reset gralloc_host",
"reset hwc_host"
]
}
],
"services" : [{
"name" : "render_service",
"path" : ["/system/bin/render_service"],
"critical" : [1, 1, 60],
"critical" : [1, 5, 60],
"importance" : -20,
"uid" : "system",
"gid" : ["system", "shell", "uhid", "root"],
"caps" : ["SYS_NICE"],
"secon" : "u:r:render_service:s0"
"secon" : "u:r:render_service:s0",
"jobs" : {
"on-restart" : "services:restartrender_service"
},
"once" : 0
}, {
"name" : "bootanimation",
"path" : ["/system/bin/bootanimation"],