<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_packages_modules_NetworkStack/jni, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/'/>
<entry>
<title>Refine getNativeFileDescriptor</title>
<updated>2020-09-02T11:07:05+00:00</updated>
<author>
<name>Remi NGUYEN VAN</name>
<email>reminv@google.com</email>
</author>
<published>2020-09-02T10:05:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=70ad501a7998f47d56717acf2368f4edeab9d403'/>
<id>70ad501a7998f47d56717acf2368f4edeab9d403</id>
<content type='text'>
Factor out the isAtLeastR method, allow the "T" codename in addition to
"S", and add some comments.

Also remove usage of __ANDROID_API_S__ as it is not yet available in all
branches.

Bug: 166414751
Test: built, installed, wifi and tethering working
Change-Id: I473e6b224b670c18a85fa33d6ec3b4cc2873ce94
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Factor out the isAtLeastR method, allow the "T" codename in addition to
"S", and add some comments.

Also remove usage of __ANDROID_API_S__ as it is not yet available in all
branches.

Bug: 166414751
Test: built, installed, wifi and tethering working
Change-Id: I473e6b224b670c18a85fa33d6ec3b4cc2873ce94
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove dependency on legacy jniGetFDFromFileDescriptor</title>
<updated>2020-09-01T18:12:04+00:00</updated>
<author>
<name>Orion Hodson</name>
<email>oth@google.com</email>
</author>
<published>2020-08-28T13:57:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=0c4556641f332f3debc31032c819aff642c782d3'/>
<id>0c4556641f332f3debc31032c819aff642c782d3</id>
<content type='text'>
On S, use the NDK API to get the native file descriptor from a
FileDescriptor. Pre-S, fallback to implementation knowledge.

Bug: 158749603
Test: manual
Change-Id: I02b261ee2747df2637bd55b0c1ade3c62c73b17e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On S, use the NDK API to get the native file descriptor from a
FileDescriptor. Pre-S, fallback to implementation knowledge.

Bug: 158749603
Test: manual
Change-Id: I02b261ee2747df2637bd55b0c1ade3c62c73b17e
</pre>
</div>
</content>
</entry>
<entry>
<title>Sync with libnativehelper refactoring</title>
<updated>2020-06-24T13:17:53+00:00</updated>
<author>
<name>Orion Hodson</name>
<email>oth@google.com</email>
</author>
<published>2020-06-11T15:33:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=2aab9fd871166e126f0233c2ecbd5f7049727f4e'/>
<id>2aab9fd871166e126f0233c2ecbd5f7049727f4e</id>
<content type='text'>
jniGetFDFromFileDescriptor() is now a legacy method and moved to a
separate header.

Bug: 151443957
Bug: 158749603
Test: m
Change-Id: Ifb5221f3d5a0dee61599ae65800c2cf2218e98ab
Merged-In: Ifb5221f3d5a0dee61599ae65800c2cf2218e98ab
Exempt-From-Owner-Approval: cherry pick
(cherry picked from commit 17706453d40aecde89e3d36582c2be4920ac630f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
jniGetFDFromFileDescriptor() is now a legacy method and moved to a
separate header.

Bug: 151443957
Bug: 158749603
Test: m
Change-Id: Ifb5221f3d5a0dee61599ae65800c2cf2218e98ab
Merged-In: Ifb5221f3d5a0dee61599ae65800c2cf2218e98ab
Exempt-From-Owner-Approval: cherry pick
(cherry picked from commit 17706453d40aecde89e3d36582c2be4920ac630f)
</pre>
</div>
</content>
</entry>
<entry>
<title>Make NetworkStack actually build in an unbundled setup.</title>
<updated>2019-05-01T12:52:21+00:00</updated>
<author>
<name>Lorenzo Colitti</name>
<email>lorenzo@google.com</email>
</author>
<published>2019-05-01T02:54:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=88ddd882ad28e5c069b8f0fd4c0474cc9f0c1827'/>
<id>88ddd882ad28e5c069b8f0fd4c0474cc9f0c1827</id>
<content type='text'>
The Java code was already using sdk_version: "current", but the
JNI library did not have an sdk_version attribute, and had
forbidden dependencies on internal libraries such as libcutils,
liblog and libnativehelper.

This CL fixes things as follows:
- Use the NDK log functions, and switch to the NDK liblog.
- Switch to the NDK libnativehelper.
- Drop the dependencies on libcutils and libpcap, which were
  unused.
- Use the libc++ STL, and set the sdk_version of the library to
  current.

Bug: 131703417
Test: m
Test: installed NetworkStack APK via "adb install --staged" results in working networking
Test: builds, boots, wifi works
Test: atest FrameworksNetTests NetworkStackTests

(cherry picked from commit 3d680e887ba40cde436a5745578e67d4a6a6fce9)

Change-Id: I8a0a8d4b4e8872cb88ee526772ae519a8e6df615
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Java code was already using sdk_version: "current", but the
JNI library did not have an sdk_version attribute, and had
forbidden dependencies on internal libraries such as libcutils,
liblog and libnativehelper.

This CL fixes things as follows:
- Use the NDK log functions, and switch to the NDK liblog.
- Switch to the NDK libnativehelper.
- Drop the dependencies on libcutils and libpcap, which were
  unused.
- Use the libc++ STL, and set the sdk_version of the library to
  current.

Bug: 131703417
Test: m
Test: installed NetworkStack APK via "adb install --staged" results in working networking
Test: builds, boots, wifi works
Test: atest FrameworksNetTests NetworkStackTests

(cherry picked from commit 3d680e887ba40cde436a5745578e67d4a6a6fce9)

Change-Id: I8a0a8d4b4e8872cb88ee526772ae519a8e6df615
</pre>
</div>
</content>
</entry>
<entry>
<title>Move attach*Filter() and addArpEntry() methods to NetworkStack</title>
<updated>2019-04-03T09:49:36+00:00</updated>
<author>
<name>paulhu</name>
<email>paulhu@google.com</email>
</author>
<published>2019-03-29T09:22:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_packages_modules_NetworkStack/commit/?id=e455e2a1982365a52e2c93b37469650c2a2e79be'/>
<id>e455e2a1982365a52e2c93b37469650c2a2e79be</id>
<content type='text'>
The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods
were added there because they could not be added as JNI inside
the NetworkStack. This was not possible because on Go devices,
the NetworkStack was a jar library. But now, Go also uses an APK.
Hence, move these methods to the NetworkStack.

Change-Id: I1d88a0f0be23f2b15d5103fa092b9bf982329d7c
Fix: 129433183
Test: atest NetworkStackTests FrameworksNetTests
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods
were added there because they could not be added as JNI inside
the NetworkStack. This was not possible because on Go devices,
the NetworkStack was a jar library. But now, Go also uses an APK.
Hence, move these methods to the NetworkStack.

Change-Id: I1d88a0f0be23f2b15d5103fa092b9bf982329d7c
Fix: 129433183
Test: atest NetworkStackTests FrameworksNetTests
</pre>
</div>
</content>
</entry>
</feed>
