Allow 2 apps with NETWORK_CARRIER_PROVISION permission for wifi

Bug: 143917577
Test: build
Change-Id: I25291651487e74d6d0bb36b47215d64e9a3b978c
This commit is contained in:
Steven Liu
2019-11-05 10:08:24 -08:00
parent fca8772db7
commit 4998a0203f

View File

@@ -921,9 +921,9 @@ public class WifiManagerTest extends AndroidTestCase {
.distinct()
.collect(Collectors.toList());
if (uniquePackageNames.size() > 1) {
fail("The NETWORK_CARRIER_PROVISIONING permission must not be held by more than one "
+ "application, but is held by " + uniquePackageNames.size() + " applications: "
if (uniquePackageNames.size() > 2) {
fail("The NETWORK_CARRIER_PROVISIONING permission must not be held by more than two "
+ "applications, but is held by " + uniquePackageNames.size() + " applications: "
+ String.join(", ", uniquePackageNames));
}
}