Add hook to boost thread when process killed.
Bug: 237749933
Signed-off-by: maoshenshen <maoshenshen@oppo.com>
Change-Id: I7cc6f248397021f3a8271433144a0e582ed27cfa
(cherry picked from commit 1be1cb53c6c6ea8fed2e3e1708afdbcf0f26969a)
Add a vendor hook to determine if the memory of a process that received
a SIGKILL can be reaped. This is a partial cherry-pick of aosp/1724512
and aosp/2093626.
Bug: 232062955
Change-Id: I75072bd264df33caff67d083821ee6f33ca83af9
Signed-off-by: Tangquan Zheng <zhengtangquan@oppo.com>
[cmllamas: minor cleanups and refactoring]
Signed-off-by: Carlos Llamas <cmllamas@google.com>
This hook will allow us to get signal messages so that we can set
limitations for certain tasks and restore them when receiving important signals.
Bug: 184898838
Bug: 281920779
Signed-off-by: Zhuguangqing <zhuguangqing@xiaomi.com>
Change-Id: I83a28b0a6eb413976f4c57f2314d008ad792fa0d
(cherry picked from commit 58e3f869fc3fe84fb7062496ccd049db47f3ed7f)
(cherry picked from commit 265184c21cd9b5314751e641bbc5bbd3b10bd8d5)