android_packages_modules_Co.../framework
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti a869887d4f Do not automatically redact TransportInfo objects.
Currently, NetworkCapabilities always redacts the TransportInfo
objects it contains whenever a defensive copy is made. This makes
it impossible to make a defensive copy on a TransportInfo
parcelled from another process without redacting it.

Stop redacting by default; instead rely on ConnectivityService
explicitly calling NetworkCapabilities' redacting constructor
when it returns a NetworkCapabilities object to an app via a
callback or synchronous call. This is currently done by
- createWithLocationInfoSanitizedIfNecessaryWhenParceled, which
  is called from callCallbackForRequest, getNetworkCapabilities,
  and getDefaultNetworkCapabilitiesForUser.
- getNetworkCapabilitiesWithoutUids, which is used when sending
  ConnectivityDiagnosticsManager callbacks. In this method,
  unconditionally redact all information, which is what the code
  did previously due to the default redaction setting for empty
  NetworkCapabilities objects being REDACT_ALL.

Bug: 183938194
Test: atest NetworkCapabilitiesTest
Test: atest FrameworksNetTests CtsNetTestCases HostsideVpnTests
Change-Id: I3108ee94cb0930958e071ba678c3554525b0db82
2021-05-13 20:24:19 +09:00
..
aidl-export/android/net Remove unstable IpPrefix 2021-04-01 22:59:02 +00:00
api Add RESTRICTED_ALLOWED_APPS setting 2021-05-13 10:09:31 +08:00
jni Use jniThrowErrnoException from JNIHelp 2021-05-11 14:18:27 +00:00
src/android/net Do not automatically redact TransportInfo objects. 2021-05-13 20:24:19 +09:00
Android.bp Move NetworkUtils JNI out of core/jni 2021-05-11 13:02:39 +00:00
jarjar-rules-proto.txt Add connectivity protos to framework-connectivity 2021-03-20 22:51:35 +09:00
jarjar-rules.txt Add connectivity protos to framework-connectivity 2021-03-20 22:51:35 +09:00