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

Skip to content
Commit 76422f53 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Reduce sending unnecessary CompatibilityInfo

Originally, compatibilityInfoForPackage is called for delivering
broadcast to receivers or starting services, which may easily
encounter lock contention between activity manager and window
manager.

Because CompatibilityInfo is package based, it is known when binding
application. If the info is changed, the update will be done by
IApplicationThread#updatePackageCompatibilityInfo. Hence this change
only keeps the 2 places to send CompatibilityInfo. Which would
improve performance and simplify the code path.

Bug: 204870457
Test: atest TransactionParcelTests

Change-Id: Ie030c9aa8ed363469e22061f959fa8f40e03965d
parent f4c8dd05
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