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

Skip to content
Commit e67055c8 authored by Sal Savage's avatar Sal Savage
Browse files

Make setComponentAvailable() synchronous

By default, it appears that the
PackageManager#SetComponentEnabledSetting() function used to allow
profiles to enable and disable their owned dependencies is actually
asynchronous. This means that there is currently a race between the
system flushing these changes so they take effect and Bluetooth (or
other components) wanting to use the dependency.

This change adds the PackageManager.SYNCHRONOUS flag to make the calls
to SetComponentAvailable always be in effect after the call completes.

Tag: #stability
Bug: 229629444
Test: atest BluetoothInstrumentationTest
Merged-In: I689d314e3afba884a7949e6f0c39157a668bbf92
Change-Id: I689d314e3afba884a7949e6f0c39157a668bbf92
parent 85dd9ef1
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