The service type that found from NsdManager#discoverServices() with old backend(mDnsResponder) has an extra dot at the end. And the previous API accepted both formats, so we need to keep backwards compatibility with both formats. Thus, drop that extra dot when constructing the service type for the new backend. Bug: 266030646 Test: atest FrameoworksNetTests Change-Id: I987ab866f6a3a7cff654f96978057fdd93b859d6