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

Commit f08d3d43 authored by Chiachang Wang's avatar Chiachang Wang
Browse files

Correct the logic in NetworkCapabilitiesTest

setOwnerUid() and setAdministratorUids() should run in R+.
Previous logic will skip them in S+. Correct the logic to
what it should be.

Bug: 172183305
Test: atest android.net.NetworkCapabilitiesTest
Change-Id: I46f7dab5eb50cbdcd58aa4c58f43829d10b6c3d8
parent 1b6c0b7a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -328,7 +328,8 @@ public class NetworkCapabilitiesTest {
        if (isAtLeastS()) {
            netCap.setSubIds(Set.of(TEST_SUBID1, TEST_SUBID2));
            netCap.setUids(uids);
        } else if (isAtLeastR()) {
        }
        if (isAtLeastR()) {
            netCap.setOwnerUid(123);
            netCap.setAdministratorUids(new int[] {5, 11});
        }