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
chiachangwang 18a6e8cf2f Ensure calling package and UID synchronized while calling dump()
This commit clear the calling identity before accessing the
DeviceConfig in ConnectivityService#dump().

The calling package of DeviceConfig.getProperties() comes from
ActivityThread.currentApplication(). In ConnectivityService#dump(),
the caller is ConnectivityService. It's OK to access DeviceConfig
from ConnectivityService. The same scenario applies to an app with
proper permission accessing DeviceConfig from its own context.

However, if cts would like to verify design by calling
ConnectivityService#dump(), the calling uid will comes from the
binder but package name will stay as ConnectivityService which
is 'android'. This will result in a SecurityException says that
the package does not match the uid and failed the test.

Bug: 255231779
Test: atest CtsNetTestCases FrameworksNetTests
Change-Id: I257e246b1cbf3b8a93bee2c326055ced9dfde588
2022-12-01 00:22:34 +00:00
bpf_progs netd.c: on 4.19+ bpf_skb_load_bytes -> bpf_skb_load_bytes_relative 2022-10-28 01:40:41 +00:00
common Fix errorprone warnings that should be errors 2022-11-02 10:13:14 -07:00
Cronet Update riscv64 exclude_jni_libs for cronet update 2022-11-04 04:23:20 +00:00
framework trivialize apf property accessor dead code 2022-11-04 11:43:22 +00:00
framework-t Fix errorprone warnings that should be errors 2022-11-02 10:13:14 -07:00
nearby [HalfSheetUX] Remove explicit targetSdkVersion 2022-10-27 06:43:20 +00:00
netd Un-drop support for pre-4.14 kernels. 2022-10-27 20:06:16 +09:00
service Ensure calling package and UID synchronized while calling dump() 2022-12-01 00:22:34 +00:00
service-t ethernet: fix nullability annotations 2022-11-04 15:23:38 +00:00
tests Merge "trivialize apf property accessor dead code" 2022-11-07 13:31:29 +00:00
Tethering Merge "Add libconnectivity_native" 2022-11-07 02:07:45 +00:00
tools gn2bp: fix proto parsing 2022-11-07 19:10:53 -08: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 owners: add motomuman to core networking owners 2022-09-15 18:24:48 +00:00
OWNERS_core_networking_xts Allow jchalard@, maze@ and reminv@ to approve fixes for flaky tests. 2022-10-06 09:06:20 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Move partial train MTS tests to presubmit 2022-10-03 12:20:17 +00:00