diff options
| author | 2021-04-07 20:32:39 +0800 | |
|---|---|---|
| committer | 2021-05-05 05:41:50 +0000 | |
| commit | 2e5cfe4ebf4fd8585fcc425584341cd53dc31d8f (patch) | |
| tree | 29b84a066030c6d2cbb01b282f8dc36df5bbb34e /native/android/net.c | |
| parent | 9ef59ac901a87d30920db6aa8541bdaab67f7433 (diff) | |
Replace MAX_NETWORK_TYPE with TYPE_VPN
ConnectivityManager#MAX_NETWORK_TYPE is a hidden API which cannot
be accessed after ConnectivityManager becomes a part of mainline
module.
Use the max public network type - TYPE_VPN should be enough since
TYPE_* is deprecated and no longer extended.
Bug: 182859030
Test: 1. Remove "framework-connectivity.impl"
2. cd frameworks/base/core/tests/bandwidthtests; mm
Change-Id: I27579a942a0424db647ad1f3383db78d5a0c69a9
Merged-In: I27579a942a0424db647ad1f3383db78d5a0c69a9
(Cherry-picked from ag/14111130)
Diffstat (limited to 'native/android/net.c')
0 files changed, 0 insertions, 0 deletions