Yi-Yo Chiang bf8d20acb7 dynsystem: Fix memory leak
Right now the MemoryFile object isn't closed after use, and dangling
file descriptors are leaked into memory each time a MemoryFile object
is created.

Replace android.os.MemoryFile with android.os.SharedMemory and use
try-with-resources to auto manage the opened file descriptors and mapped
memory regions.

Bug: 225310919
Test: Start a DSU installation and check /proc/$pid/maps
Change-Id: I15d9f658c926ef0a46fb558215bfab40f76ddc9a
2022-04-01 15:56:32 +08:00
…
…
2022-03-28 09:25:17 -07:00
2021-05-13 08:24:32 +00:00
2021-11-08 22:02:15 -08:00
2022-04-01 15:56:32 +08:00
2021-11-04 14:44:07 +00:00
…
2022-03-30 10:17:55 -07:00
2022-01-04 08:57:28 +00:00
2022-03-22 17:03:20 +00:00
…
2022-03-25 11:07:31 +00:00
2022-01-05 13:13:50 +00:00
…
…
2022-03-07 08:44:25 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%