1<?xml version="1.0" encoding="UTF-8"?> 2<issues format="6" by="lint 8.4.0-alpha01" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha01"> 3 4 <issue 5 id="NewApi" 6 message="Call requires API level 31 (current min is 30): `android.net.IpSecManager.UdpEncapsulationSocket#getResourceId`" 7 errorLine1=" return new NattSocketKeepalive(mService, network, dup, socket.getResourceId(), source," 8 errorLine2=" ~~~~~~~~~~~~~"> 9 <location 10 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 11 line="2490" 12 column="71"/> 13 </issue> 14 15 <issue 16 id="NewApi" 17 message="Call requires API level 31 (current min is 30): `android.provider.Settings#checkAndNoteWriteSettingsOperation`" 18 errorLine1=" return Settings.checkAndNoteWriteSettingsOperation(context, uid, callingPackage," 19 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 20 <location 21 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 22 line="2853" 23 column="25"/> 24 </issue> 25 26 <issue 27 id="NewApi" 28 message="Call requires API level 31 (current min is 30): `android.net.Proxy#setHttpProxyConfiguration`" 29 errorLine1=" Proxy.setHttpProxyConfiguration(getInstance().getDefaultProxy());" 30 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> 31 <location 32 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 33 line="5422" 34 column="23"/> 35 </issue> 36 37 <issue 38 id="NewApi" 39 message="Call requires API level 31 (current min is 30): `java.net.InetAddress#clearDnsCache`" 40 errorLine1=" InetAddress.clearDnsCache();" 41 errorLine2=" ~~~~~~~~~~~~~"> 42 <location 43 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 44 line="5428" 45 column="25"/> 46 </issue> 47 48 <issue 49 id="NewApi" 50 message="Call requires API level 31 (current min is 30): `libcore.net.event.NetworkEventDispatcher#dispatchNetworkConfigurationChange`" 51 errorLine1=" NetworkEventDispatcher.getInstance().dispatchNetworkConfigurationChange();" 52 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 53 <location 54 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 55 line="5431" 56 column="50"/> 57 </issue> 58 59 <issue 60 id="NewApi" 61 message="Call requires API level 31 (current min is 30): `libcore.net.event.NetworkEventDispatcher#getInstance`" 62 errorLine1=" NetworkEventDispatcher.getInstance().dispatchNetworkConfigurationChange();" 63 errorLine2=" ~~~~~~~~~~~"> 64 <location 65 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 66 line="5431" 67 column="36"/> 68 </issue> 69 70 <issue 71 id="NewApi" 72 message="Call requires API level 31 (current min is 30): `android.os.Build#isDebuggable`" 73 errorLine1=" if (!Build.isDebuggable()) {" 74 errorLine2=" ~~~~~~~~~~~~"> 75 <location 76 file="packages/modules/Connectivity/framework/src/android/net/ConnectivitySettingsManager.java" 77 line="1095" 78 column="24"/> 79 </issue> 80 81 <issue 82 id="NewApi" 83 message="Field requires API level 31 (current min is 30): `android.system.OsConstants#ENONET`" 84 errorLine1=' new DnsException(ERROR_SYSTEM, new ErrnoException("resNetworkQuery", ENONET))));' 85 errorLine2=" ~~~~~~"> 86 <location 87 file="packages/modules/Connectivity/framework/src/android/net/DnsResolver.java" 88 line="367" 89 column="90"/> 90 </issue> 91 92 <issue 93 id="NewApi" 94 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 95 errorLine1=" IoUtils.closeQuietly(socket);" 96 errorLine2=" ~~~~~~~~~~~~"> 97 <location 98 file="packages/modules/Connectivity/framework/src/android/net/util/DnsUtils.java" 99 line="181" 100 column="21"/> 101 </issue> 102 103 <issue 104 id="NewApi" 105 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 106 errorLine1=" IoUtils.closeQuietly(socket);" 107 errorLine2=" ~~~~~~~~~~~~"> 108 <location 109 file="packages/modules/Connectivity/framework/src/android/net/util/DnsUtils.java" 110 line="373" 111 column="21"/> 112 </issue> 113 114 <issue 115 id="NewApi" 116 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 117 errorLine1=" IoUtils.closeQuietly(is);" 118 errorLine2=" ~~~~~~~~~~~~"> 119 <location 120 file="frameworks/base/core/java/com/android/internal/util/FileRotator.java" 121 line="171" 122 column="33"/> 123 </issue> 124 125 <issue 126 id="NewApi" 127 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 128 errorLine1=" IoUtils.closeQuietly(zos);" 129 errorLine2=" ~~~~~~~~~~~~"> 130 <location 131 file="frameworks/base/core/java/com/android/internal/util/FileRotator.java" 132 line="178" 133 column="21"/> 134 </issue> 135 136 <issue 137 id="NewApi" 138 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 139 errorLine1=" IoUtils.closeQuietly(bis);" 140 errorLine2=" ~~~~~~~~~~~~"> 141 <location 142 file="frameworks/base/core/java/com/android/internal/util/FileRotator.java" 143 line="401" 144 column="21"/> 145 </issue> 146 147 <issue 148 id="NewApi" 149 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 150 errorLine1=" IoUtils.closeQuietly(bos);" 151 errorLine2=" ~~~~~~~~~~~~"> 152 <location 153 file="frameworks/base/core/java/com/android/internal/util/FileRotator.java" 154 line="416" 155 column="21"/> 156 </issue> 157 158 <issue 159 id="NewApi" 160 message="Call requires API level 31 (current min is 30): `libcore.net.InetAddressUtils#isNumericAddress`" 161 errorLine1=" return InetAddressUtils.isNumericAddress(address);" 162 errorLine2=" ~~~~~~~~~~~~~~~~"> 163 <location 164 file="packages/modules/Connectivity/framework/src/android/net/InetAddresses.java" 165 line="46" 166 column="33"/> 167 </issue> 168 169 <issue 170 id="NewApi" 171 message="Call requires API level 31 (current min is 30): `libcore.net.InetAddressUtils#parseNumericAddress`" 172 errorLine1=" return InetAddressUtils.parseNumericAddress(address);" 173 errorLine2=" ~~~~~~~~~~~~~~~~~~~"> 174 <location 175 file="packages/modules/Connectivity/framework/src/android/net/InetAddresses.java" 176 line="63" 177 column="33"/> 178 </issue> 179 180 <issue 181 id="NewApi" 182 message="Call requires API level 31 (current min is 30): `java.net.InetAddress#getAllByNameOnNet`" 183 errorLine1=" return InetAddress.getAllByNameOnNet(host, getNetIdForResolv());" 184 errorLine2=" ~~~~~~~~~~~~~~~~~"> 185 <location 186 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 187 line="145" 188 column="28"/> 189 </issue> 190 191 <issue 192 id="NewApi" 193 message="Call requires API level 31 (current min is 30): `java.net.InetAddress#getByNameOnNet`" 194 errorLine1=" return InetAddress.getByNameOnNet(host, getNetIdForResolv());" 195 errorLine2=" ~~~~~~~~~~~~~~"> 196 <location 197 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 198 line="158" 199 column="28"/> 200 </issue> 201 202 <issue 203 id="NewApi" 204 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 205 errorLine1=" if (failed) IoUtils.closeQuietly(socket);" 206 errorLine2=" ~~~~~~~~~~~~"> 207 <location 208 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 209 line="216" 210 column="45"/> 211 </issue> 212 213 <issue 214 id="NewApi" 215 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 216 errorLine1=" if (failed) IoUtils.closeQuietly(socket);" 217 errorLine2=" ~~~~~~~~~~~~"> 218 <location 219 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 220 line="241" 221 column="37"/> 222 </issue> 223 224 <issue 225 id="NewApi" 226 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 227 errorLine1=" if (failed) IoUtils.closeQuietly(socket);" 228 errorLine2=" ~~~~~~~~~~~~"> 229 <location 230 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 231 line="254" 232 column="37"/> 233 </issue> 234 235 <issue 236 id="NewApi" 237 message="Call requires API level 31 (current min is 30): `libcore.io.IoUtils#closeQuietly`" 238 errorLine1=" if (failed) IoUtils.closeQuietly(socket);" 239 errorLine2=" ~~~~~~~~~~~~"> 240 <location 241 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 242 line="272" 243 column="37"/> 244 </issue> 245 246 <issue 247 id="NewApi" 248 message="Call requires API level 31 (current min is 30): `libcore.net.http.HttpURLConnectionFactory#createInstance`" 249 errorLine1=" HttpURLConnectionFactory urlConnectionFactory = HttpURLConnectionFactory.createInstance();" 250 errorLine2=" ~~~~~~~~~~~~~~"> 251 <location 252 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 253 line="302" 254 column="82"/> 255 </issue> 256 257 <issue 258 id="NewApi" 259 message="Call requires API level 31 (current min is 30): `libcore.net.http.HttpURLConnectionFactory#setDns`" 260 errorLine1=" urlConnectionFactory.setDns(dnsLookup); // Let traffic go via dnsLookup" 261 errorLine2=" ~~~~~~"> 262 <location 263 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 264 line="303" 265 column="30"/> 266 </issue> 267 268 <issue 269 id="NewApi" 270 message="Call requires API level 31 (current min is 30): `libcore.net.http.HttpURLConnectionFactory#setNewConnectionPool`" 271 errorLine1=" urlConnectionFactory.setNewConnectionPool(httpMaxConnections," 272 errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> 273 <location 274 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 275 line="305" 276 column="30"/> 277 </issue> 278 279 <issue 280 id="NewApi" 281 message="Call requires API level 31 (current min is 30): `libcore.net.http.HttpURLConnectionFactory#openConnection`" 282 errorLine1=" return urlConnectionFactory.openConnection(url, socketFactory, proxy);" 283 errorLine2=" ~~~~~~~~~~~~~~"> 284 <location 285 file="packages/modules/Connectivity/framework/src/android/net/Network.java" 286 line="372" 287 column="37"/> 288 </issue> 289 290 <issue 291 id="NewApi" 292 message="Class requires API level 31 (current min is 30): `android.telephony.data.EpsBearerQosSessionAttributes`" 293 errorLine1=" if (attributes instanceof EpsBearerQosSessionAttributes) {" 294 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 295 <location 296 file="packages/modules/Connectivity/framework/src/android/net/NetworkAgent.java" 297 line="1462" 298 column="35"/> 299 </issue> 300 301 <issue 302 id="NewApi" 303 message="Class requires API level 31 (current min is 30): `android.telephony.data.EpsBearerQosSessionAttributes`" 304 errorLine1=" (EpsBearerQosSessionAttributes)attributes));" 305 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 306 <location 307 file="packages/modules/Connectivity/framework/src/android/net/NetworkAgent.java" 308 line="1465" 309 column="22"/> 310 </issue> 311 312 <issue 313 id="NewApi" 314 message="Class requires API level 31 (current min is 30): `android.telephony.data.NrQosSessionAttributes`" 315 errorLine1=" } else if (attributes instanceof NrQosSessionAttributes) {" 316 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> 317 <location 318 file="packages/modules/Connectivity/framework/src/android/net/NetworkAgent.java" 319 line="1466" 320 column="42"/> 321 </issue> 322 323 <issue 324 id="NewApi" 325 message="Class requires API level 31 (current min is 30): `android.telephony.data.NrQosSessionAttributes`" 326 errorLine1=" (NrQosSessionAttributes)attributes));" 327 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> 328 <location 329 file="packages/modules/Connectivity/framework/src/android/net/NetworkAgent.java" 330 line="1469" 331 column="22"/> 332 </issue> 333 334 <issue 335 id="NewApi" 336 message="Call requires API level 31 (current min is 30): `new android.net.EthernetNetworkSpecifier`" 337 errorLine1=" return setNetworkSpecifier(new EthernetNetworkSpecifier(networkSpecifier));" 338 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 339 <location 340 file="packages/modules/Connectivity/framework/src/android/net/NetworkRequest.java" 341 line="553" 342 column="48"/> 343 </issue> 344 345 <issue 346 id="NewApi" 347 message="Cast from `EthernetNetworkSpecifier` to `NetworkSpecifier` requires API level 31 (current min is 30)" 348 errorLine1=" return setNetworkSpecifier(new EthernetNetworkSpecifier(networkSpecifier));" 349 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 350 <location 351 file="packages/modules/Connectivity/framework/src/android/net/NetworkRequest.java" 352 line="553" 353 column="48"/> 354 </issue> 355 356 <issue 357 id="NewApi" 358 message="Call requires API level 31 (current min is 30): `android.os.UserHandle#getUid`" 359 errorLine1=" final int start = user.getUid(0 /* appId */);" 360 errorLine2=" ~~~~~~"> 361 <location 362 file="packages/modules/Connectivity/framework/src/android/net/UidRange.java" 363 line="49" 364 column="32"/> 365 </issue> 366 367 <issue 368 id="NewApi" 369 message="Call requires API level 31 (current min is 30): `android.os.UserHandle#getUid`" 370 errorLine1=" final int end = nextUser.getUid(0 /* appId */) - 1;" 371 errorLine2=" ~~~~~~"> 372 <location 373 file="packages/modules/Connectivity/framework/src/android/net/UidRange.java" 374 line="50" 375 column="34"/> 376 </issue> 377 378 <issue 379 id="FlaggedApi" 380 message="Field `FIREWALL_CHAIN_BACKGROUND` is a flagged API and should be inside an `if (Flags.basicBackgroundRestrictionsEnabled())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.BASIC_BACKGROUND_RESTRICTIONS_ENABLED) to transfer requirement to caller`)" 381 errorLine1=" FIREWALL_CHAIN_BACKGROUND" 382 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> 383 <location 384 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsConstants.java" 385 line="115" 386 column="13"/> 387 </issue> 388 389 <issue 390 id="FlaggedApi" 391 message="Field `FIREWALL_CHAIN_METERED_ALLOW` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 392 errorLine1=" FIREWALL_CHAIN_METERED_ALLOW" 393 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 394 <location 395 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsConstants.java" 396 line="137" 397 column="13"/> 398 </issue> 399 400 <issue 401 id="FlaggedApi" 402 message="Field `FIREWALL_CHAIN_METERED_DENY_USER` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 403 errorLine1=" FIREWALL_CHAIN_METERED_DENY_USER," 404 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 405 <location 406 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsConstants.java" 407 line="146" 408 column="13"/> 409 </issue> 410 411 <issue 412 id="FlaggedApi" 413 message="Field `FIREWALL_CHAIN_METERED_DENY_ADMIN` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 414 errorLine1=" FIREWALL_CHAIN_METERED_DENY_ADMIN" 415 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 416 <location 417 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsConstants.java" 418 line="147" 419 column="13"/> 420 </issue> 421 422 <issue 423 id="FlaggedApi" 424 message="Field `FIREWALL_CHAIN_BACKGROUND` is a flagged API and should be inside an `if (Flags.basicBackgroundRestrictionsEnabled())` check (or annotate the surrounding method `getMatchByFirewallChain` with `@FlaggedApi(Flags.BASIC_BACKGROUND_RESTRICTIONS_ENABLED) to transfer requirement to caller`)" 425 errorLine1=" case FIREWALL_CHAIN_BACKGROUND:" 426 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> 427 <location 428 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsUtils.java" 429 line="133" 430 column="18"/> 431 </issue> 432 433 <issue 434 id="FlaggedApi" 435 message="Field `FIREWALL_CHAIN_METERED_ALLOW` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `getMatchByFirewallChain` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 436 errorLine1=" case FIREWALL_CHAIN_METERED_ALLOW:" 437 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 438 <location 439 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsUtils.java" 440 line="143" 441 column="18"/> 442 </issue> 443 444 <issue 445 id="FlaggedApi" 446 message="Field `FIREWALL_CHAIN_METERED_DENY_USER` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `getMatchByFirewallChain` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 447 errorLine1=" case FIREWALL_CHAIN_METERED_DENY_USER:" 448 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 449 <location 450 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsUtils.java" 451 line="145" 452 column="18"/> 453 </issue> 454 455 <issue 456 id="FlaggedApi" 457 message="Field `FIREWALL_CHAIN_METERED_DENY_ADMIN` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `getMatchByFirewallChain` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 458 errorLine1=" case FIREWALL_CHAIN_METERED_DENY_ADMIN:" 459 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 460 <location 461 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsUtils.java" 462 line="147" 463 column="18"/> 464 </issue> 465 466 <issue 467 id="FlaggedApi" 468 message="Field `BLOCKED_REASON_APP_BACKGROUND` is a flagged API and should be inside an `if (Flags.basicBackgroundRestrictionsEnabled())` check (or annotate the surrounding method `getUidNetworkingBlockedReasons` with `@FlaggedApi(Flags.BASIC_BACKGROUND_RESTRICTIONS_ENABLED) to transfer requirement to caller`)" 469 errorLine1=" blockedReasons |= BLOCKED_REASON_APP_BACKGROUND;" 470 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 471 <location 472 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsUtils.java" 473 line="293" 474 column="31"/> 475 </issue> 476 477 <issue 478 id="FlaggedApi" 479 message="Field `BLOCKED_REASON_OEM_DENY` is a flagged API and should be inside an `if (Flags.blockedReasonOemDenyChains())` check (or annotate the surrounding method `getUidNetworkingBlockedReasons` with `@FlaggedApi(Flags.BLOCKED_REASON_OEM_DENY_CHAINS) to transfer requirement to caller`)" 480 errorLine1=" blockedReasons |= BLOCKED_REASON_OEM_DENY;" 481 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> 482 <location 483 file="packages/modules/Connectivity/framework/src/android/net/BpfNetMapsUtils.java" 484 line="296" 485 column="31"/> 486 </issue> 487 488 <issue 489 id="FlaggedApi" 490 message="Field `FIREWALL_CHAIN_METERED_ALLOW` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `addUidToMeteredNetworkAllowList` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 491 errorLine1=" mService.setUidFirewallRule(FIREWALL_CHAIN_METERED_ALLOW, uid, FIREWALL_RULE_ALLOW);" 492 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 493 <location 494 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 495 line="6191" 496 column="41"/> 497 </issue> 498 499 <issue 500 id="FlaggedApi" 501 message="Field `FIREWALL_CHAIN_METERED_ALLOW` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `removeUidFromMeteredNetworkAllowList` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 502 errorLine1=" mService.setUidFirewallRule(FIREWALL_CHAIN_METERED_ALLOW, uid, FIREWALL_RULE_DENY);" 503 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 504 <location 505 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 506 line="6214" 507 column="41"/> 508 </issue> 509 510 <issue 511 id="FlaggedApi" 512 message="Field `FIREWALL_CHAIN_METERED_DENY_USER` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `addUidToMeteredNetworkDenyList` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 513 errorLine1=" mService.setUidFirewallRule(FIREWALL_CHAIN_METERED_DENY_USER, uid, FIREWALL_RULE_DENY);" 514 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 515 <location 516 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 517 line="6243" 518 column="41"/> 519 </issue> 520 521 <issue 522 id="FlaggedApi" 523 message="Field `FIREWALL_CHAIN_METERED_DENY_USER` is a flagged API and should be inside an `if (Flags.meteredNetworkFirewallChains())` check (or annotate the surrounding method `removeUidFromMeteredNetworkDenyList` with `@FlaggedApi(Flags.METERED_NETWORK_FIREWALL_CHAINS) to transfer requirement to caller`)" 524 errorLine1=" mService.setUidFirewallRule(FIREWALL_CHAIN_METERED_DENY_USER, uid, FIREWALL_RULE_ALLOW);" 525 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 526 <location 527 file="packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java" 528 line="6273" 529 column="41"/> 530 </issue> 531 532 <issue 533 id="FlaggedApi" 534 message="Field `NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED` is a flagged API and should be inside an `if (Flags.netCapabilityNotBandwidthConstrained())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED) to transfer requirement to caller`)" 535 errorLine1=" private static final int MAX_NET_CAPABILITY = NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED;" 536 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 537 <location 538 file="packages/modules/Connectivity/framework/src/android/net/NetworkCapabilities.java" 539 line="767" 540 column="51"/> 541 </issue> 542 543 <issue 544 id="FlaggedApi" 545 message="Field `NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED` is a flagged API and should be inside an `if (Flags.netCapabilityNotBandwidthConstrained())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED) to transfer requirement to caller`)" 546 errorLine1=" defaultCapabilities |= (1L << NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED);" 547 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 548 <location 549 file="packages/modules/Connectivity/framework/src/android/net/NetworkCapabilities.java" 550 line="818" 551 column="43"/> 552 </issue> 553 554 <issue 555 id="FlaggedApi" 556 message="Field `NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED` is a flagged API and should be inside an `if (Flags.netCapabilityNotBandwidthConstrained())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED) to transfer requirement to caller`)" 557 errorLine1=" (1L << NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED);" 558 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 559 <location 560 file="packages/modules/Connectivity/framework/src/android/net/NetworkCapabilities.java" 561 line="849" 562 column="20"/> 563 </issue> 564 565 <issue 566 id="FlaggedApi" 567 message="Method `getSubscriptionIds()` is a flagged API and should be inside an `if (Flags.requestRestrictedWifi())` check (or annotate the surrounding method `restrictCapabilitiesForTestNetwork` with `@FlaggedApi(Flags.REQUEST_RESTRICTED_WIFI) to transfer requirement to caller`)" 568 errorLine1=" final Set<Integer> originalSubIds = getSubscriptionIds();" 569 errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> 570 <location 571 file="packages/modules/Connectivity/framework/src/android/net/NetworkCapabilities.java" 572 line="1254" 573 column="45"/> 574 </issue> 575 576 <issue 577 id="FlaggedApi" 578 message="Field `TRANSPORT_SATELLITE` is a flagged API and should be inside an `if (Flags.supportTransportSatellite())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.SUPPORT_TRANSPORT_SATELLITE) to transfer requirement to caller`)" 579 errorLine1=" public static final int MAX_TRANSPORT = TRANSPORT_SATELLITE;" 580 errorLine2=" ~~~~~~~~~~~~~~~~~~~"> 581 <location 582 file="packages/modules/Connectivity/framework/src/android/net/NetworkCapabilities.java" 583 line="1383" 584 column="45"/> 585 </issue> 586 587 <issue 588 id="FlaggedApi" 589 message="Field `TRANSPORT_SATELLITE` is a flagged API and should be inside an `if (Flags.supportTransportSatellite())` check (or annotate the surrounding method `specifierAcceptableForMultipleTransports` with `@FlaggedApi(Flags.SUPPORT_TRANSPORT_SATELLITE) to transfer requirement to caller`)" 590 errorLine1=" == (1 << TRANSPORT_CELLULAR | 1 << TRANSPORT_SATELLITE);" 591 errorLine2=" ~~~~~~~~~~~~~~~~~~~"> 592 <location 593 file="packages/modules/Connectivity/framework/src/android/net/NetworkCapabilities.java" 594 line="1836" 595 column="52"/> 596 </issue> 597 598 <issue 599 id="FlaggedApi" 600 message="Field `NET_CAPABILITY_LOCAL_NETWORK` is a flagged API and should be inside an `if (Flags.netCapabilityLocalNetwork())` check (or annotate the surrounding method `capabilityNameOf` with `@FlaggedApi(Flags.FLAG_NET_CAPABILITY_LOCAL_NETWORK) to transfer requirement to caller`)" 601 errorLine1=" case NET_CAPABILITY_LOCAL_NETWORK: return "LOCAL_NETWORK";" 602 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 603 <location 604 file="packages/modules/Connectivity/framework/src/android/net/NetworkCapabilities.java" 605 line="2637" 606 column="18"/> 607 </issue> 608 609 <issue 610 id="FlaggedApi" 611 message="Field `NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED` is a flagged API and should be inside an `if (Flags.netCapabilityNotBandwidthConstrained())` check (or annotate the surrounding method `capabilityNameOf` with `@FlaggedApi(Flags.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED) to transfer requirement to caller`)" 612 errorLine1=" case NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED: return "NOT_BANDWIDTH_CONSTRAINED";" 613 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 614 <location 615 file="packages/modules/Connectivity/framework/src/android/net/NetworkCapabilities.java" 616 line="2638" 617 column="18"/> 618 </issue> 619 620 <issue 621 id="FlaggedApi" 622 message="Field `TRANSPORT_SATELLITE` is a flagged API and should be inside an `if (Flags.supportTransportSatellite())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.SUPPORT_TRANSPORT_SATELLITE) to transfer requirement to caller`)" 623 errorLine1=" TRANSPORT_SATELLITE" 624 errorLine2=" ~~~~~~~~~~~~~~~~~~~"> 625 <location 626 file="packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/NetworkCapabilitiesUtils.java" 627 line="80" 628 column="9"/> 629 </issue> 630 631 <issue 632 id="FlaggedApi" 633 message="Field `NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED` is a flagged API and should be inside an `if (Flags.netCapabilityNotBandwidthConstrained())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED) to transfer requirement to caller`)" 634 errorLine1=" NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED);" 635 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 636 <location 637 file="packages/modules/Connectivity/framework/src/android/net/NetworkRequest.java" 638 line="291" 639 column="17"/> 640 </issue> 641 642 <issue 643 id="FlaggedApi" 644 message="Method `getSubscriptionIds()` is a flagged API and should be inside an `if (Flags.requestRestrictedWifi())` check (or annotate the surrounding method `getSubscriptionIds` with `@FlaggedApi(Flags.REQUEST_RESTRICTED_WIFI) to transfer requirement to caller`)" 645 errorLine1=" return networkCapabilities.getSubscriptionIds();" 646 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 647 <location 648 file="packages/modules/Connectivity/framework/src/android/net/NetworkRequest.java" 649 line="887" 650 column="16"/> 651 </issue> 652 653</issues>