No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
junyulai 96bd9fe4de Check carrier privilege for CBS network requests synchronously
Normally if an app calls requestNetwork with capabilities that it
does not have permission to request, it gets a SecurityException,
except if it requests NET_CAPABILITY_CBS, in which case the request
will not throw but the app will get an onUnavailable callback.

Make this codepath throw as well. This simplifies the code and makes
the app-visible behaviour more consistent (and consistent with what
happens in S and below). The reason the code was written this way is because the carrier privilege app should receive a callback if it
loses permission. But onUnavailable is also not the best callback to
send, since it is used very rarely and also releases the app's
request. It seems better to leave the request registered and send
onLost.

Test: atest FrameworksNetTests
Bug: 194332512
Change-Id: I5eaeb415a6654851246e38599a996fbd9366fde0
2022-05-10 10:26:54 +00:00
bpf_progs Merge "remove unused #defines" 2022-05-03 08:12:56 +00:00
framework Merge "Update VPN isolation code for excluded routes" 2022-05-03 17:40:12 +00:00
framework-t Unicast state of existing ethernet interfaces when registering new Ethernet Listener. 2022-04-28 18:59:44 +09:00
nearby Rename "service-nearby" to "service-nearby-pre-jarjar" 2022-03-10 04:32:19 +00:00
netd BpfHandler: only allow to tag INET/INET6 socket 2022-03-07 16:04:32 +08:00
service Check carrier privilege for CBS network requests synchronously 2022-05-10 10:26:54 +00:00
service-t adjust for new T bpfloader net_shared location 2022-04-23 09:03:06 +00:00
tests Check carrier privilege for CBS network requests synchronously 2022-05-10 10:26:54 +00:00
Tethering remove _mainline suffix from {clatd,netd}.o_mainline targets 2022-05-02 14:49:13 -07:00
.gitignore Add a .gitignore in packages/modules/Connectivity. 2020-11-27 18:09:21 +09:00
OWNERS Add additional IPsec owners 2021-12-08 06:57:51 +00:00
OWNERS_core_networking add prohr to OWNERS_core_networking 2022-01-11 18:54:31 +00:00
OWNERS_core_networking_xts Add an OWNERS_core_networking_xts for CTS/GTS/... and use it. 2022-01-18 01:42:39 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING ConnectivityCoverageTests refactoring 2022-04-06 19:35:28 +09:00