diff options
| author | Wei Wang <wvw@google.com> | 2018-01-31 10:13:55 -0800 |
|---|---|---|
| committer | dianlujitao <dianlujitao@lineageos.org> | 2019-06-16 16:22:34 +0800 |
| commit | b67413ee2bf0a1cafef44f1b097781cf1144abe2 (patch) | |
| tree | 60a9c0ec5546d7b533eec62b67262982cbf40adf | |
| parent | eb3f3df78596e4a8c3ac72a5bedf271c246e4732 (diff) | |
op3: VR: Reset thermal setting if runtime crash
Test: Kill system_server during VR session and check thermal setting
Bug: 72644266
Change-Id: I38917bddf85a3c8431165c2cbd965f985d1fbf82
| -rwxr-xr-x | rootdir/etc/init.target.rc | 5 | ||||
| -rw-r--r-- | sepolicy/vendor_init.te | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index cbc51b28..cd1aed65 100755 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -212,6 +212,11 @@ service thermal-engine /system/vendor/bin/thermal-engine -c ${sys.qcom.thermalcf socket thermal-recv-passive-client stream 0666 system system writepid /dev/cpuset/system-background/tasks +# reset thermal-engine when framework dies in VR mode +on property:init.svc.zygote=restarting && property:sys.qcom.thermalcfg=/vendor/etc/thermal-engine-vr.conf + setprop sys.qcom.thermalcfg "/vendor/etc/thermal-engine.conf" + restart thermal-engine + #service security-check1 /sbin/security_boot_check system # class core # oneshot diff --git a/sepolicy/vendor_init.te b/sepolicy/vendor_init.te index 3ceb9d77..ae577b98 100644 --- a/sepolicy/vendor_init.te +++ b/sepolicy/vendor_init.te @@ -6,3 +6,5 @@ allow vendor_init { }:dir { create search getattr open read setattr ioctl write add_name remove_name rmdir relabelfrom }; allow vendor_init proc_touchpanel:file write; + +set_prop(vendor_init, thermal_prop) |
