5cce267ba3a9c1775c745432bb245a1aeec9f239
Currently, we look at network requests that are created by the current requestNetwork API to see if they look like requests that could have been created using the legacy startUsingNetworkFeature API. This causes those networks to be added to LegacyTypeTracker, and so cause CONNECTIVITY_ACTION broadcasts, be accessible using getNetworkInfo(int type), etc. This was done in the L timeframe so that apps could request networks using the then-new requestNetwork APIs and still use them using legacy APIs such as requestRouteToHost. However, the resulting CONNECTIVITY_ACTION broadcasts are expensive. requestRouteToHost has been deprecated since L, and mixing the old and new APIs was never recommended, so it's time to delete this hack. Bug: 22513439 Bug: 23350688 Bug: 25295964 Change-Id: Id867058446e5ee44396743d126d26fa57da0c990
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%