commit | 9987665d78f81bb453a21f88ad48bf1d0ec2429d | [log] [tgz] |
---|---|---|
author | Chiachang Wang <chiachangwang@google.com> | Thu Mar 10 15:18:17 2022 +0800 |
committer | Chiachang Wang <chiachangwang@google.com> | Thu Mar 10 15:46:38 2022 +0800 |
tree | 65966c0abaf759461bfc4e05b76e8a4e7a76d4fc | |
parent | e6953d54a5f60f5e2aab72a24d5c9a422ae334a9 [diff] |
Add protection for setLocalRoutesExcludedForVpn setLocalRoutesExcludedForVpn() was added in T for local route exclusion in VPN. It relies on the behavior change in netd which is inside platform and will not be updated with mainline update. Add protection on setLocalRoutesExcludedForVpn to prevent the API misused on SDK before T. Bug: 223356811 Test: atest FrameworksNetTests Change-Id: Ic2927f5c335ddd0c3defd4c377542ce6907ab435