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
Loading
Please register or sign in to comment