655405 Commits

Author SHA1 Message Date
Etienne Ruffieux
807dc12c1a Replaced Bluetooth SystemProperties.set by sysprop
Tag: #feature
Bug: 197210455
Test: set/get sysprop with SystemProperties
Merged-In: I613808dbc930c90e391df9857a173a86aedc4acf
Change-Id: I613808dbc930c90e391df9857a173a86aedc4acf
2021-12-15 13:06:17 +00:00
Himanshu Rawat
2a1dc3a8e9 Merge "Corrected comment on when BT is not disabled on entering airplane mode." 2021-12-10 07:57:09 +00:00
Aaron Huang
610b585502 Merge "Move f/b/packages/Nsd files to f/b/packages/ConnectivityT" 2021-12-10 02:12:38 +00:00
Treehugger Robot
62749e874a Merge "Change isCISCentralSupported() to isLeAudioSupported() API" 2021-12-10 02:10:42 +00:00
Treehugger Robot
6a2f196dca Merge "Don't require T to extend Parcelable or Serializable in Parcel" 2021-12-09 23:48:45 +00:00
Evgenii Stepanov
689bba18b3 Merge changes Ibf64db88,I033ee79c
* changes:
  Pass MTE RuntimeFlags to AppZygote.
  Revert "Pass MTE RuntimeFlags to AppZygote."
2021-12-09 20:52:08 +00:00
Etienne Ruffieux
e97c024d9a Merge "Added missing equals override in new Transport Data classes" 2021-12-09 18:26:45 +00:00
Cole Faust
b6df9fb2e8 Merge "Add instructions on how to annotate an AIDL interface" 2021-12-09 17:52:31 +00:00
Hao Ke
31fa514400 Don't require T to extend Parcelable or Serializable in Parcel
This is because we want to support the use-case where the caller
enforces a specific class type that doesn't implement Parcelable
or Serializable but the child classes written on the payload implement them.

One such use-case that needs this before migrating is
https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/com/android/internal/infra/AndroidFuture.java;l=596;drc=2d6a545e3042d7cc91b54746e774681a05e0ff22:
we need to enforce Throwable class but it doesn't implement Parcelable itself,
while its children written on the wire are expected to.

Test: atest -d android.os.cts.ParcelTest
Bug: 195622897
Change-Id: I150416d0cfb0b87ddbaff1041d8d60aa205f6f39
2021-12-09 15:40:04 +00:00
Aaron Huang
43981a856d Merge "Create ConnectivityT directory" 2021-12-09 11:03:45 +00:00
Bernardo Rufino
2ee662c767 Merge "Deprecate unsafe Parcel.readParcelableArray(ClassLoader)" 2021-12-09 10:35:34 +00:00
Victor Chang
da0880a0fe Merge changes from topic "icu70"
* changes:
  Update DateIntervalFormatTest due to ICU 70 data change
  Regenerate LocaleDataTables.cpp due to ICU 70 upgrade
2021-12-09 10:03:02 +00:00
Aaron Huang
185b02f1bc Move f/b/packages/Nsd files to f/b/packages/ConnectivityT
Move Nsd files to ConnectivityT so that nsd, ipsec,
ethernet and netstats files can live in the same
directory and it will be easier to move everything
in frameworks/base/packages/ConnectivityT to
packages/modules/Connectivity after fixing all of the
hidden API usages.

Bug: 204153604
Test: FrameworksNetTests
      CtsNetTestCases
Change-Id: I411e242e8739d15920cfc2fe274115f7f39bd89f
2021-12-09 16:22:00 +08:00
Aaron Huang
e69d46c6aa Create ConnectivityT directory
This directory is used to put nsd, ethernet, ipsec and netstats
associated files that are going to be included in connectivity
mainline module.

Bug: 204153604
Test: create directory and add owners file only
Change-Id: Ifea707e2c3d5242081e70542b1bc32e0f604ac26
2021-12-09 16:19:43 +08:00
Himanshu Rawat
8825d9aa27 Corrected comment on when BT is not disabled on entering airplane mode.
Bug: 208945756
Test: Manual
Change-Id: I790356dbe8664677c5aef7e784eb3c9b30e790cf
2021-12-09 07:15:44 +00:00
Treehugger Robot
1a0f225c83 Merge "Support parsing VcnGatewayConnectionConfig without UnderlyingNetworkPriorities" 2021-12-09 01:56:52 +00:00
Evgenii Stepanov
2e50afbd53 Pass MTE RuntimeFlags to AppZygote.
Fix AppZygote process and its children (the actual service processes)
ignoring android:memtagMode attribute in the app manifest.

When starting a new AppZygote process, apply memtag-related flags as
determined by the app manifest (and modified by compat features and
actual h/w capabilities). If this is not done, MTE is always disabled in
an AppZygote process, which makes it impossible to enable it in the
AppZygote's children.

This change has no effect unless MTE is supported in the hardware
(ARMv9) and enabled in the system.

Bug: 207557677
Test: CtsTaggingHostTestCases
Change-Id: Ibf64db8882a1fbffe6c0cc3cd3bc2299b088876a
2021-12-08 16:45:44 -08:00
Evgenii Stepanov
643bc5ce5e Revert "Pass MTE RuntimeFlags to AppZygote."
The change affects non-MTE devices, contrary to the claims in the
description.

This reverts commit 8895ef1256411a4eda96aa4aa6dd4c9147118737.

Bug: 207557677
Test: CtsTaggingHostTestCases
Change-Id: I033ee79ce05db87586358ba954ecfcaf8aaa6249
2021-12-08 16:44:04 -08:00
Treehugger Robot
9c2d1e673f Merge "replace CURRENT_OR_SELF with non hidden API" 2021-12-08 23:46:02 +00:00
Jiakai Zhang
04b45b74a1 Merge "Prefetch standalone system server jars before switching domain." 2021-12-08 20:40:45 +00:00
Yan Yan
eae9b5d0c4 Support parsing VcnGatewayConnectionConfig without UnderlyingNetworkPriorities
This commit fixes the NullPointerException issue in converting a
PersistableBundle without UnderlyingNetworkPriorities to a
VcnGatewayConnectionConfig, by adding a null check and building
the VcnGatewayConnectionConfig with the default
UnderlyingNetworkPriority list.

Bug: 209142575
Test: atest FrameworksVcnTests (new tests), CtsVcnTestCases
Change-Id: I888d2994c86ba250c3fc9ee1851dccb5e6ef3e77
2021-12-08 12:23:28 -08:00
Yan Yan
9df3f48cb0 Merge "Update #hashCode & #equals with mUnderlyingNetworkPriorities" 2021-12-08 20:15:08 +00:00
Sooraj Sasindran
761ad6eaf8 Merge "Provide last known cell id for emergency call" 2021-12-08 19:19:54 +00:00
Joe Bolinger
a18ff150bd Merge "Update biometrics OWNERS." 2021-12-08 18:30:44 +00:00
Treehugger Robot
b33ee3471d Merge "use test app's data folder as filter directory" 2021-12-08 17:45:25 +00:00
Tim Van Patten
c6d9eda8c0 Merge "Correctly call setGpuStats() for ANGLE/system driver" 2021-12-08 16:52:44 +00:00
Eric Laurent
d3cd42362b Merge "[BUG] AudioService: fix stategy/groups attributes introspection" 2021-12-08 15:15:12 +00:00
Victor Chang
93ae9cd316 Update DateIntervalFormatTest due to ICU 70 data change
Bug: 202948901
Test: atest android.text.format.DateIntervalFormatTest
Change-Id: I1b9a6654a9db8d1fb2ea2bbb426e36934604b4aa
2021-12-08 15:13:49 +00:00
Jiakai Zhang
405fb6dee9 Prefetch standalone system server jars before switching domain.
In b/203198541, we start to compile standalone system server jars, but
the SELinux policy doesn't allow system_server to load the compiled code
at runtime. As a solution, this change creates class loaders for
standalone system server jars and caches them before switching to the
"system_server" SELinux domain, which essentially loads the jars and
compiled code into the memory.

Bug: 203198541
Test: manual -
  1. Patch aosp/1874113, aosp/1876173, aosp/1906158 (in order to have
     odrefresh compile a standalone system server jar).
  2. Build a system image and flash it to a device.
  3. Run "adb shell cat /proc/`adb shell pidof system_server`/maps" and
     see "apex@com.android.wifi@javalib@service-wifi.jar@classes.odex"
     being mmap'ed.
  4. Run "adb logcat | grep avc" and see no denial.
  5. atest odsign_e2e_tests

Change-Id: I27fbdaadae2b6f50989b4c534f7fbc80044a6685
Merged-In: I365be766cfb77c6e240d5871f1b3d8ed7abae6f5
(cherry picked from commit 281a2dfaa15fb3439b5ca92995958a8882197f3b)
2021-12-08 09:47:38 +00:00
Benedict Wong
c532fc2bde Merge "Add additional IPsec owners" 2021-12-08 06:58:55 +00:00
Thiébaud Weksteen
5f5ff75870 Merge "Add @JavaOnlyStableParcelable to AttributionSource" 2021-12-08 04:02:07 +00:00
Treehugger Robot
f0dd744ba6 Merge changes from topic "parse_audio_config_for_le_device"
* changes:
  Remove unnecessary test case
  Parse audio config codec capability for LE devices
2021-12-08 03:28:10 +00:00
Yan Yan
d3a7de1333 Update #hashCode & #equals with mUnderlyingNetworkPriorities
Update VcnGatewayConnectionConfig to consider
mUnderlyingNetworkPriorities in #hashCode and #equals methods

Rename #setAllowedPlmnIds and #getAllowedPlmnIds
to #setAllowedOperatorPlmnIds and #getAllowedOperatorPlmnIds

Bug: 206044122
Test: atest FrameworksVcnTests(new tests), CtsVcnTestCases
Change-Id: Id16d88024bbb7ef275da0304f2dde1413a18de10
2021-12-07 19:18:05 -08:00
Benedict Wong
c22b15d026 Add additional IPsec owners
Test: Owners file updates only, no code changes.
Change-Id: Ib395c7982525416386f1de395cd0f9fe038fac25
2021-12-07 21:35:18 +00:00
Brad Ebinger
5fd9a457ce Merge changes from topics "delegate_regi_new_state_losing_pdn", "ims_rcs_api_improvement_delegate_regi_state"
* changes:
  DelegateRegistrationState Improvement adding new states for DelegateRegistrationState:  - DEREGISTERING_REASON_LOSING_PDN  - DEREGISTERING_REASON_UNSPECIFIED
  IMS RCS API Improvements-DelegateRegistrationState
2021-12-07 20:10:40 +00:00
Evgenii Stepanov
1db942e761 Merge "Pass MTE RuntimeFlags to AppZygote." 2021-12-07 19:03:17 +00:00
Yan Yan
36a25527b4 Merge "Calculate priority based on caller configurations" 2021-12-07 18:10:47 +00:00
Andrei-Valentin Onea
e978ec5b07 Merge "Allow privapp permission allowlist in apex" 2021-12-07 15:31:01 +00:00
Etienne Ruffieux
2a55386e82 Added missing equals override in new Transport Data classes
Tag: #feature
Bug: 208904630
Test: atest
Change-Id: I92cbd152eb063c866f7101040cb228036ae2c07a
2021-12-07 15:00:28 +00:00
Neil Fuller
172fd44b2f Merge "Use ISO 8601 format for LocalLog local timestamps" 2021-12-07 14:26:24 +00:00
Paul Hu
68d5b22c2d Merge "Remove @hide symbols from NativeDaemonConnector" 2021-12-07 07:12:28 +00:00
Paul Hu
a37333ace6 Merge "Stop using NSD_ON setting" 2021-12-07 05:43:44 +00:00
paulhu
e591c24c92 Remove @hide symbols from NativeDaemonConnector
- FgThread is an service internal class that NativeDaemonConnector
  can not use it after moving into mainline module. Thus, replace
  it by creating a new thread.

- Remove shutting down check because the original problem owner
  netd isn't used NativeDaemonConnector now.

Bug: 206702844
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: Ib2e227ef1e361f96b397abd7c2a88420ad5a2f22
2021-12-07 11:47:34 +08:00
Yan Yan
738ed7b7b2 Calculate priority based on caller configurations
Update NetworkPriorityClassifier to calculate priority
according to the VcnUnderlyingNetworkPriority list
configured in VcnGatewayConnectionConfig

Bug: 206044122
Test: atest FrameworksVcnTests(new)
Test: atest CtsVcnTestCses
Change-Id: I55afa916af44db655a568aae2488877f2c177d59
2021-12-06 18:52:23 -08:00
Sudheer Shanka
bcca41baac Merge "Fix NetworkPolicy logs in dumpsys." 2021-12-07 02:35:13 +00:00
Cole Faust
c546b3f7a6 Add instructions on how to annotate an AIDL interface
Fixes: 209500346
Test: m RUN_ERROR_PRONE=true framework |& grep -A 5 AndroidFrameworkRequiresPermission
Change-Id: If73e7c41543f3e8512e5ffe75e7620a6c4b0632b
2021-12-06 17:27:03 -08:00
Sooraj Sasindran
81be082283 Provide last known cell id for emergency call
Provide last known cell id to connection service
for emergency calls.

Bug: 198533763
Test: unit test
Change-Id: I8b660c0b5fbe095e3b9b67129b7404ebd7ec5ccd
2021-12-06 12:52:31 -08:00
Qasim Javed
afd5a827a7 Merge "Add BluetoothLeBroadcast profile API." 2021-12-06 17:27:31 +00:00
Hao Ke
3760188d11 Merge "Set default ClassLoader for Parcel readSerializable API." 2021-12-06 17:03:50 +00:00
Patty
745b5edc47 Remove unnecessary test case
Tag: #refactor
Bug: 203535499
Bug: 150670922
Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests
Change-Id: I5f3301c96990becca0f8baa0a5e61502c411e83c
2021-12-06 23:33:03 +08:00