android_packages_modules_Co.../Tethering/common/TetheringLib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Quang Anh Luong 2add9260ef Reject TetheringRequests that fuzzy-match existing ones
Legacy behavior will return success results to multiple startTethering
calls of the same type, even though the link layer can only support one
of those requests at a time (other than tethered AP + LOHS).

For B+, clean up this behavior by only allowing the amount of requests
that the link layer can concurrently support. To do this, we'll
introduce the concept of "fuzzy-matching" such that if a new request
fuzzy-matches an existing request (either pending or serving), this
indicates that the link layer cannot support the new request
concurrently, and we'll fail the new request with
TETHER_ERROR_DUPLICATE_REQUEST.

To keep track of serving requests, we'll store the request and it's
IpServer in RequestTracker when we call IpServer.enable(), and we'll
remove it (indexed by IpServer) when
1) Calling IpServer.onStop()
2) Calling IpServer.unwanted()
3) We detect an IpServer transition to AvailableState with error code

Bug: 216524590
Test: atest TetheringTest RequestTrackerTest TetheringManagerTest
Change-Id: I1e193f3595a48f806fb70fd08630a12ce2631a59
2025-03-13 11:11:17 +09:00
..
api Remove WRITE_SETTINGS permission from Tethering APIs 2024-12-18 13:53:04 +09:00
src/android/net Reject TetheringRequests that fuzzy-match existing ones 2025-03-13 11:11:17 +09:00
Android.bp Use SdkLevel.isAtLeastB() instead of SDK_INT 2025-03-11 17:16:56 +09:00
jarjar-excludes.txt Set up the jarjar config generator for the Tethering module. 2023-01-13 02:26:19 -08:00
lint-baseline.xml Revert^2 "Baseline one more Lint FlaggedApi violation" 2024-07-04 06:31:15 +00:00