diff options
author | Chiachang Wang <chiachangwang@google.com> | 2021-01-19 10:36:03 +0800 |
---|---|---|
committer | Chiachang Wang <chiachangwang@google.com> | 2021-01-27 02:44:14 +0000 |
commit | db2cec60243aebd800d3eb44cc674f636ac02ffd (patch) | |
tree | b64242aaa36f387697fab5bd04005790cb790c80 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | f0aa57318d9b93689d2644a62c742f159cd46dd7 (diff) |
Update jni to get int descriptor in native layer
ConnectivityService is going to become a mainline module which
can not access the hidden APIs. The int descriptor of a
FileDescriptor is hidden for internal use only. The Network and
NetworkUtls will be parts of CS module. The corresponding usage
should be removed. There is no way in a module to access the
descriptor, so update the jni to set a FileDescriptor to native
to get the int descriptor inside the platform.
Also, update the other references in android_net_NetUtils for
getting fd to use the NDK functions in the libnativehelper.
Bug: 170598012
Test: atest FrameworksNetTests CtsNetTestCasesLatestSdk
Test: manually connect to a VPN
Change-Id: I2143c079feac53917a6e7bf7422f3180f51437fb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions