mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
sepolicy: thermal-engine.te: add shutdown permission
With recently refactored android_reboot(), we need permission to set powerctl_prop to trigger init to do reboot logic. Bug: 37277184 Test: build Change-Id: If687ef874d51c64795e6175a132c34b406c2b19c
This commit is contained in:
@@ -29,3 +29,6 @@ allowxperm thermal-engine self:socket ioctl msm_sock_ipc_ioctls;
|
||||
userdebug_or_eng(`
|
||||
permissive thermal-engine;
|
||||
')
|
||||
|
||||
# reboot/shutdown for thermal limits exceeded
|
||||
set_prop(thermal-engine, powerctl_prop)
|
||||
|
||||
Reference in New Issue
Block a user