Fix some @hide usage in Tethering

Using alternative way to replace some @hide API.

Bug: 144814072
Test: build, flash, boot
      atest TetheringTests

Change-Id: I1e12d69db1ad91dff553e142e17c6a70808e1639
This commit is contained in:
markchien
2019-12-06 15:24:53 +08:00
parent b2bb37098f
commit 6cf0e550c7
19 changed files with 219 additions and 144 deletions

View File

@@ -39,4 +39,11 @@ public class TetheringUtils {
*/
public static native void setupRaSocket(FileDescriptor fd, int ifIndex)
throws SocketException;
/**
* Read s as an unsigned 16-bit integer.
*/
public static int uint16(short s) {
return s & 0xffff;
}
}