Settings: Fix leak of BroadcastReceiver intents
Use Case: Repeated BT ON/OFF Failure: Broadcast receiver leak is observed with ON/OFF stress test which leads to broadcast receiver delays. Steps: BT ON/OFF. Root Cause: During every ON/OFF there are broadcast receiver leaks caused by repeated registering of profile intent receivers. Fix: Separate broadcast receiver created for profile intents, such that broadcast receiver for adapter state intents is always active. Unregister and re-register the profile receiver when BT is turned OFF. Test: BT ON/OFF Bug: 35415158 Change-Id: Id1db747c61bb2dd33515ac45cdc2059844d3e4f5
Loading
Please register or sign in to comment