summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMohammad Samiul Islam <samiul@google.com>2020-10-15 01:05:13 +0100
committerMohammad Samiul Islam <samiul@google.com>2020-11-03 18:53:32 +0000
commit533c3deb7ba80fd9271748b788d59bfe4631c52f (patch)
treeb957a342db698f3e5b09fe817d03c08839b06c9f /tools/aapt2/java/JavaClassGenerator.cpp
parent2cc603b00a87e02a81cbf9d79645bd1e3efc277c (diff)
Prevent extra sessions owned by staged install from living across restarts
If system server crashes due to external reasons (not due to exception in pre-reboot verifications), then the staged install will be retried. But, any extra sessions that have not been cleaned up will linger on until removed due to old age. And if the crash keeps on happening every time at the worst possible time, then we can have 1024 extra sessions created all with copies of apks in it. It will waste a lot of user's space. With this CL, we cleanup any leftover extra sessions whenever system server is restarted. Bug: 170784748 Test: manual Test: verified that without this CL if system server crashses after extra sessions are created but before they are cleaned up, then folders start to pile up in /data/app folder with copy of the apks inside. Change-Id: I5c19093853e28c668f882d37691959b1ac2464cc Merged-In: I5c19093853e28c668f882d37691959b1ac2464cc
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions