summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Suren Baghdasaryan <surenb@google.com> 2022-04-01 10:49:01 -0700
committer Suren Baghdasaryan <surenb@google.com> 2022-04-22 16:51:02 +0000
commitd01f1705981dfecd5d7927072363e14b11f2e8d0 (patch)
treeaf692c5611ac1e16e785ed5ce448e52ec0907403 /libs/androidfw/StringPool.cpp
parent25976ab7be91423c7f2e185f5f04236011df09c0 (diff)
Treat failure to create a process group as fatal
During process startup, system creates a process group and places the new process in it. If process group creation fails for some reason, the new child process will stay in its parent's group. This poses danger when the child is being frozen because the whole group is affected and its parent is being frozen as well. Considering that the parent of an app is Zygote, freezing it leads to the device becoming unusable. Fix this by treating group creation failure as a fatal error which would prevent the app from starting. When system_server fails to create a process group, it will throw an exception that's not caught and will self-destruct. Bug: 227395690 Test: fake group creation failure and confirm app failure to start Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Ib34b4a100c65a9a2705aaef8e7e32322fbedc531
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions