Merge "Update the method based on API feedback"
This commit is contained in:
@@ -722,7 +722,8 @@ public class VpnTest extends InstrumentationTestCase {
|
||||
final TestableNetworkCallback otherUidCallback = new TestableNetworkCallback();
|
||||
final TestableNetworkCallback myUidCallback = new TestableNetworkCallback();
|
||||
if (SdkLevel.isAtLeastS()) {
|
||||
final int otherUid = UserHandle.getUid(UserHandle.of(5), Process.FIRST_APPLICATION_UID);
|
||||
final int otherUid =
|
||||
UserHandle.of(5 /* userId */).getUid(Process.FIRST_APPLICATION_UID);
|
||||
final Handler h = new Handler(Looper.getMainLooper());
|
||||
runWithShellPermissionIdentity(() -> {
|
||||
mCM.registerSystemDefaultNetworkCallback(systemDefaultCallback, h);
|
||||
|
||||
Reference in New Issue
Block a user