Remove assert for R+
Mainline only ships to R+ devices, so this assertion is guaranteed to be true. Change-Id: I1fbc0a50dc35a306d782a0219955c51954deeca7 Test: TH
This commit is contained in:
parent
3dad5f754d
commit
d393a9d8d4
1 changed files with 0 additions and 2 deletions
|
|
@ -29,7 +29,6 @@ import android.net.TestNetworkManager
|
|||
import android.os.Binder
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
import com.android.modules.utils.build.SdkLevel.isAtLeastR
|
||||
import com.android.modules.utils.build.SdkLevel.isAtLeastS
|
||||
import java.util.concurrent.CompletableFuture
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
|
@ -137,7 +136,6 @@ class TestNetworkTracker internal constructor(
|
|||
|
||||
network = try {
|
||||
if (lp != null) {
|
||||
assertTrue(isAtLeastR(), "Cannot specify TestNetwork LinkProperties before R")
|
||||
tnm.setupTestNetwork(lp, true /* isMetered */, binder)
|
||||
} else {
|
||||
tnm.setupTestNetwork(iface.interfaceName, binder)
|
||||
|
|
|
|||
Loading…
Reference in a new issue