Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bac99b5f authored by Song Chun Fan's avatar Song Chun Fan
Browse files

[pm] move PackageInstallerSession.extractNativeLibraries to IO thread

PackageInstallerSession.write() holds mLock and is on the IO thread.
Prior to this CL, PackageInstallerSession.extractNativeLibraries() also
holds mLock but was on the mInstallThread. This causes a lock contention
where the write() can ANR waiting for mLock held by
extractNativeLibraries(). Move the latter to the IO thread to avoid such
lock contentions.

FLAG: EXEMPT refactor
BUG: 393698598
Test: manual

Change-Id: I99418b8983a63751e6d485efae947a49a6a88db5
parent 562c3a18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment