Add a CompatChange flag to enable platform backend
Apps targeting sdk < U are considered to use a legacy native daemon as NsdManager backend, but other apps use a platform-integration mDNS implementation as backend. So add a CompatChange flag to enable platform backend for non-legacy apps. Bug: 270306772 Test: atest FrameworksNetTests CtsNetTestCases Change-Id: I7ba58f8a5186fb49ad5f8aeacc8b8234bef1eabe
This commit is contained in:
@@ -73,6 +73,17 @@ public final class ConnectivityCompatChanges {
|
||||
@EnabledAfter(targetSdkVersion = Build.VERSION_CODES.TIRAMISU)
|
||||
public static final long ENABLE_SELF_CERTIFIED_CAPABILITIES_DECLARATION = 266524688;
|
||||
|
||||
/**
|
||||
* Apps targeting < Android 14 use a legacy NSD backend.
|
||||
*
|
||||
* The legacy apps use a legacy native daemon as NsdManager backend, but other apps use a
|
||||
* platform-integrated mDNS implementation as backend.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@ChangeId
|
||||
@EnabledAfter(targetSdkVersion = Build.VERSION_CODES.TIRAMISU)
|
||||
public static final long ENABLE_PLATFORM_MDNS_BACKEND = 270306772L;
|
||||
private ConnectivityCompatChanges() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user