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