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 f9fc36ea3a 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
(cherry picked from commit 96bd9fe4de)
Merged-In: I5eaeb415a6654851246e38599a996fbd9366fde0
2022-05-11 13:50:06 +00:00
bpf_progs remove unused #defines 2022-05-09 23:56:44 +00:00
framework Merge "Make a defensive copy when sending NetworkInfo change" into tm-dev 2022-05-10 14:05:07 +00:00
framework-t Unicast state of existing ethernet interfaces when registering new Ethernet Listener. 2022-04-30 14:42:45 +00:00
nearby Merge "Add jarjar rules for service-nearby." into tm-dev 2022-05-09 23:46:28 +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-11 13:50:06 +00:00
service-t Limit usage requests dump count 2022-05-10 11:07:54 +08:00
tests Check carrier privilege for CBS network requests synchronously 2022-05-11 13:50:06 +00:00
Tethering remove _mainline suffix from {clatd,netd}.o_mainline targets 2022-05-09 23:55:52 +00: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