Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6c4be89 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6406367 from 4fc16c37 to rvc-release

Change-Id: I53801f5b60ce71a57ab3e4786786071c71943ecb
parents 9a895e87 4fc16c37
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -203,6 +203,7 @@ android_app {
    manifest: "AndroidManifest.xml",
    // The permission configuration *must* be included to ensure security of the device
    required: ["NetworkPermissionConfig"],
    updatable: true,
}

// Android library to derive test APKs for integration tests
+8 −4
Original line number Diff line number Diff line
@@ -66,22 +66,23 @@ public class NduseroptMessage extends NetlinkMessage {
        super(header);

        // The structure itself.
        buf.order(ByteOrder.nativeOrder());
        buf.order(ByteOrder.nativeOrder());  // Restored in the finally clause inside parse().
        final int start = buf.position();
        family = buf.get();
        buf.get();  // Skip 1 byte of padding.
        opts_len = Short.toUnsignedInt(buf.getShort());
        ifindex = buf.getInt();
        icmp_type = buf.get();
        icmp_code = buf.get();
        buf.order(ByteOrder.BIG_ENDIAN);
        buf.position(buf.position() + 6);  // Skip 6 bytes of padding.

        // The ND option.
        // Ensure we don't read past opts_len even if the option length is invalid.
        // Note that this check is not really necessary since if the option length is not valid,
        // this struct won't be very useful to the caller.
        buf.order(ByteOrder.BIG_ENDIAN);
        int oldLimit = buf.limit();
        buf.limit(STRUCT_SIZE + opts_len);
        buf.limit(start + STRUCT_SIZE + opts_len);
        try {
            option = NdOption.parse(buf);
        } finally {
@@ -89,7 +90,7 @@ public class NduseroptMessage extends NetlinkMessage {
        }

        // The source address.
        int newPosition = STRUCT_SIZE + opts_len;
        int newPosition = start + STRUCT_SIZE + opts_len;
        if (newPosition >= buf.limit()) {
            throw new IllegalArgumentException("ND options extend past end of buffer");
        }
@@ -118,6 +119,7 @@ public class NduseroptMessage extends NetlinkMessage {
     */
    public static NduseroptMessage parse(@NonNull StructNlMsgHdr header, @NonNull ByteBuffer buf) {
        if (buf == null || buf.remaining() < STRUCT_SIZE) return null;
        ByteOrder oldOrder = buf.order();
        try {
            return new NduseroptMessage(header, buf);
        } catch (IllegalArgumentException | UnknownHostException | BufferUnderflowException e) {
@@ -125,6 +127,8 @@ public class NduseroptMessage extends NetlinkMessage {
            // Convention in this package is that null indicates that the option was truncated, so
            // callers must already handle it.
            return null;
        } finally {
            buf.order(oldOrder);
        }
    }

+1 −0
Original line number Diff line number Diff line
@@ -26,4 +26,5 @@ parcelable DhcpServingParamsParcel {
  int linkMtu;
  boolean metered;
  int clientAddr;
  boolean changePrefixOnDecline;
}
+1 −1
Original line number Diff line number Diff line
@@ -27,5 +27,5 @@ parcelable DhcpServingParamsParcel {
    int linkMtu;
    boolean metered;
    int clientAddr;
    boolean changePrefixOnDecline;
}
+7 −0
Original line number Diff line number Diff line
@@ -233,6 +233,9 @@ public class DhcpClient extends StateMachine {
    public static final int CMD_START_PRECONNECTION         = PUBLIC_BASE + 10;
    public static final int CMD_ABORT_PRECONNECTION         = PUBLIC_BASE + 11;

    // Command to rebind the leased IPv4 address on L2 roaming happened.
    public static final int CMD_REFRESH_LINKADDRESS         = PUBLIC_BASE + 12;

    /* Message.arg1 arguments to CMD_POST_DHCP_ACTION notification */
    public static final int DHCP_SUCCESS = 1;
    public static final int DHCP_FAILURE = 2;
@@ -1674,6 +1677,9 @@ public class DhcpClient extends StateMachine {
                case CMD_RENEW_DHCP:
                    preDhcpTransitionTo(mWaitBeforeRenewalState, mDhcpRenewingState);
                    return HANDLED;
                case CMD_REFRESH_LINKADDRESS:
                    transitionTo(mDhcpRebindingState);
                    return HANDLED;
                default:
                    return NOT_HANDLED;
            }
@@ -1717,6 +1723,7 @@ public class DhcpClient extends StateMachine {
                        Log.d(TAG, "Renewed lease not for our current IP address!");
                        notifyFailure();
                        transitionTo(mDhcpInitState);
                        return;
                    }
                    setDhcpLeaseExpiry(packet);
                    // Updating our notion of DhcpResults here only causes the
Loading