diff options
author | Tianjie Xu <xunchang@google.com> | 2019-12-03 13:30:15 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-12-03 13:30:15 -0800 |
commit | 510c221c9bcaff39a8c6f48764f05f836873cb06 (patch) | |
tree | 342c2d920ea0a62e7ac7b2fb77ec92cf8fcf4e2e /init.hardware.rc | |
parent | ae54d9fcd05bfc5b6b8f1286061b9e9567e28d44 (diff) | |
parent | 4056312fdbf9c916f0506ccc16d111f140b3c547 (diff) | |
download | bonito-510c221c9bcaff39a8c6f48764f05f836873cb06.tar.gz |
Monitor the property ota.warm_reset am: 23b2d31e80
am: 4056312fdb
Change-Id: Ia7e1ef96aead514237ea26ff328c3be3d879c153
Diffstat (limited to 'init.hardware.rc')
-rw-r--r-- | init.hardware.rc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/init.hardware.rc b/init.hardware.rc index c800af91..66a5130d 100644 --- a/init.hardware.rc +++ b/init.hardware.rc @@ -916,3 +916,14 @@ on property:persist.sys.theme=1 on property:persist.sys.theme=0 start vendor.theme_clear + +on init && property:ro.boot.slot_successful=no + write /sys/module/msm_poweroff/parameters/warm_reset 1 + +# Set or clear the warm reset flag upon the change of system property. The flag itself is set +# by writing a sysfs file; and the file will be read by kernel. +on property:ota.warm_reset=1 + write /sys/module/msm_poweroff/parameters/warm_reset 1 + +on property:ota.warm_reset=0 + write /sys/module/msm_poweroff/parameters/warm_reset 0 |