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
Patrick Rohr ff65257bd0 Add missing permission check to offerNetwork
The missing permission check means that an unauthorized app could
have registered a network offer to intercept all NetworkRequests (by
trivially guessing an existing provider ID) which would have leaked
information about other apps on the system.

This adds a NETWORK_FACTORY or MAINLINE_NETWORK_STACK permission check
to offerNetwork per the API annotations in ConnectivityManager.
Test networks can be offered when holding the MANAGE_TEST_NETWORKS
permission which is consistent with similar APIs in this class.

There can be no legitimate use of this API a) offerNetwork is @hide
and only exposed via NetworkProvider, and b) it requires getting a
provider ID by calling registerNetworkProvider which correctly enforces
permissions.

unofferNetwork does not currently require any permissions. Again, this
is consistent with the API annotations in ConnectivityManager.

Test: TH
Change-Id: If71ce012f927a34c647d36b5eaf3723de2c01879
2025-01-06 13:57:49 -08:00
bpf bpf: Test bitmap open (duplicates GTS) 2024-12-18 13:49:45 -08:00
clatd Fix a function pointer type mismatch for C23. 2024-12-18 11:22:10 -08:00
common Merge "Export com.android.net.flags for wifi apex" into main 2024-12-18 18:56:14 -08:00
framework Add app compat change ID for LNP 2024-12-13 13:43:26 +00:00
framework-t Merge "Conditionally include VCN in Tethering module" into main 2024-12-11 10:41:55 -08:00
nearby Use @SdkSuppress in BluetoothFinder tests, now that Build.VERSION_CODES.VANILLA_ICE_CREAM is avilable. am: 79f907d195 2024-12-12 11:00:14 -08:00
networksecurity Add new APIs to DataStore to allow for int storage 2024-12-18 20:24:05 +00:00
remoteauth Merge "Use LazyLock rather than lazy_static macro." into main 2024-09-11 17:46:22 +00:00
service Add missing permission check to offerNetwork 2025-01-06 13:57:49 -08:00
service-b Conditionally include VCN in Tethering module 2024-12-09 12:04:12 -08:00
service-t Merge "Advertise with short hostnames" into main 2024-12-19 01:04:01 -08:00
staticlibs Rename id to fd 2024-12-18 10:56:13 -08:00
tests Merge "Advertise with short hostnames" into main 2024-12-19 01:04:01 -08:00
Tethering Log usage of legacy tether API with Wifi 2024-12-19 22:48:06 +09:00
thread Enable ThreadNetworkDemoApp for TV launcher 2024-12-16 22:57:58 -08:00
tools Remove dependencies on the 1-variant fallback 2024-10-22 16:31:00 -07:00
.gitignore Ignores vim temporary files from git 2023-12-23 17:45:32 +08:00
OWNERS Move the owner of xfrm netlink source code to its own directory. 2023-11-22 18:50:00 +09:00
OWNERS_core_networking Mark Martin as LAST_RESORT_SUGGESTION 2024-09-26 22:29:48 +00:00
OWNERS_core_networking_xts Add "no-op refactors" reviews for delegated reviewers 2024-06-20 06:29:09 +00:00
PREUPLOAD.cfg Disable ktfmt and rely solely on ktlint for Kotlin linting 2024-12-13 12:29:19 +09:00
TEST_MAPPING Add CtsNetTestCasesUpdateStatsPermission to automotive-mumd-presubmit 2024-11-26 23:29:10 +00:00