Commit Graph

3 Commits

Author SHA1 Message Date
maoshenshen 8536929eeb ANDROID: vendor_hooks: Add hooks for signal
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)
2025-02-12 11:28:10 -08:00
Tangquan Zheng e874bfd349 ANDROID: signal: Add vendor hook for memory reap
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>
2025-01-22 16:40:34 -08:00
Zhuguangqing cbd012971e ANDROID: Add vendor hooks to signal.
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)
2025-01-21 17:07:14 -08:00