655433 Commits

Author SHA1 Message Date
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
Kalesh Singh
57bbd0099e Add system_server to readtracefs group
This allows system_server to search/read tracefs entries. It is needed
for attaching cpu timeinstate bpf programs to tracepoints.

Bug: 208892266
Bug: 209513178
Test: libtimeinstate_test
Change-Id: I4139605eb7c5277887092b3d6a3fb26bf4f8f171
2021-12-07 23:48:08 +00: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
Etienne Ruffieux
720d74c835 Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." 2021-12-06 15:16:44 +00:00
Hao Ke
e214082cb0 Set default ClassLoader for Parcel readSerializable API.
Set the default ClassLoader for the readSerializable(ClassLoader,
Class) API, when the ClassLoader parameter is null.

Doing so could enhance the security of Parcel deserialization,
as it would prevent resolving the Serializable class using unexpected
ClassLoaders.

Test: atest -d android.os.cts.ParcelTest
Bug: 195622897
Change-Id: I6da4b4f817c33e4464d90d1e9775b54793835c92
2021-12-06 14:34:03 +00:00
Bernardo Rufino
e3d8a1a299 Deprecate unsafe Parcel.readParcelableArray(ClassLoader)
Forgot this one.

Test: Builds
Bug: 195622897
Change-Id: Ia258f77fd2e706d2071c853c20d6ec3baa170a1f
2021-12-06 13:40:08 +00:00
Rhed Jao
63fed23659 Merge "Fix the typos on the java doc" 2021-12-06 07:19:52 +00:00
Jinyoung Jeong
0b1a783da6 DelegateRegistrationState Improvement
adding new states for DelegateRegistrationState:
 - DEREGISTERING_REASON_LOSING_PDN
 - DEREGISTERING_REASON_UNSPECIFIED

Bug: b/201522903, b/206557578
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I3675c10a6dba55a49174509796c53b07b929c14f
Merged-In: I3675c10a6dba55a49174509796c53b07b929c14f
2021-12-06 03:55:54 +00:00
Qasim Javed
6a7bc39edf Add BluetoothLeBroadcast profile API.
Implementation for the APIs will be added later.

Bug: 205174140
Bug: 208222281
Tag: #feature
Test: gd/cert/run

Change-Id: I8781be89cba45a6e7a76fec7df24790a9f02d6a6
2021-12-05 19:45:08 -08:00
Jinyoung Jeong
b6518929e6 IMS RCS API Improvements-DelegateRegistrationState
Bug: b/197892699, b/202202874, b/203405794
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: Icfa7fd363ad4f9ad0131d78602c264742cd1785f
Merged-In: Icfa7fd363ad4f9ad0131d78602c264742cd1785f
2021-12-06 02:33:30 +00:00
Lucas Lin
70be96ffbf Merge "Update the transport types of metrics" 2021-12-06 01:54:54 +00:00
Sudheer Shanka
67d3dd83ff Fix NetworkPolicy logs in dumpsys.
Right now, nothing is get logged due to an issue
with NetworkPolicyLogger.Data initialization.

Bug: 209236326
Test: adb shell dumpsys netpolicy
Change-Id: Ie0c3e3831802f317c5821676d426ff29a8bb5fa5
2021-12-04 23:05:19 -08:00
Evgenii Stepanov
8895ef1256 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: I8805958545fd790e4ca857184b749a21e58d68cd
2021-12-03 17:20:05 -08:00
Treehugger Robot
4746631ed1 Merge "Allow flag-guarded Java optimizations for services" 2021-12-04 01:07:34 +00:00
Hao Ke
93b3eb84ec Merge "Added End-of-Parcel check API." 2021-12-03 23:54:12 +00:00
Guang Zhu
7d6a7c5f0e use test app's data folder as filter directory
During a retry, test methods to be retried are written into a
file, pushed onto device and read by the test instrumentation
for execution.

The default location for such filter file is /data/local/tmp,
which is prohibited for access by system uid packages, such
as the system UI tests package.

This change uses the test app's data folder for filter: this
is not generally applicable for all the tests since root
permission is required, but it is a relatively safe assumption
in case of testing against system uid pakcages since it
implies userdebug build is being used.

Bug: 152001555
Fixes: 208473429
Test: http://go/forrest-run/L76200000952166377
Change-Id: Ifc268a1cdb94ff8e47b6bd323464deb28e0c20ea
2021-12-03 15:29:32 -08:00
Etienne Ruffieux
7121cd7fa5 Make BluetoothCodecConfig and BluetoothCodecStatus public.
Made BluetoothCodecConfig and BluetoothCodecStatus public,
added Builder to BluetoothCodecConfig, added accessor for
SOURCE_CODEC_TYPE_MAX and changed Arrays returns to List.

Tag: #feature
Bug: 200202780
Bug: 170678351
Test: BluetoothCodecConfigTest & BluetoothCodecStatusTest
NoNonSdkCheck: Only user actually requested the changes
Change-Id: Ic61b7087f53f45781f7e0eecca8b6d983093a22d
2021-12-03 23:08:50 +00:00
Rambo Wang
11f136cc06 Merge "Un-deprecate TelephonyManager SIM access APIs" 2021-12-03 22:40:50 +00:00
Treehugger Robot
808e0a5e7a Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" 2021-12-03 22:05:19 +00:00
Benedict Wong
4bfa0ebc53 Merge "Immediately tear down VCN network when entering Airplane Mode" 2021-12-03 21:26:06 +00:00
Jared Duke
4514bdf1b7 Allow flag-guarded Java optimizations for services
Introduce a set of optional Java optimization and shrinking settings for
system server, based on the Soong variable added in aosp/1896612.
Opting in to optimizations can be achieved with either:
  * Env:
export SYSTEM_OPTIMIZE_JAVA=true
  * Make:
$(call add_soong_config_var_value,ANDROID,SYSTEM_OPTIMIZE_JAVA,true)

Note that the initial Proguard configuration is extremely conservative.
Follow-up work will refine the rules to both allow additional shrinking
while avoiding developer friction and overhead when adding services and
dynamically loaded jars.

As these optimiations can change the resulting stack traces, a parallel
effort is working to simplify retracing of stack traces for more
accurate debugging and diagnostics. Additional stabiliation and testing
will occur before any effort to enable these optimizations by default
for specific targets. Also note that there are no plans to enable
obfuscation for any of these targets.

Preliminary results:
  * Conservative keep rules (this CL w/ opt-in flag):
    * services.jar (19MB -> 15MB)
    * services.odex (52MB -> 54MB) (mostly from increased inlining)
  * Refined keep rules (follow-up CL):
    * services.jar (19MB -> 12MB)
    * services.odex (52MB -> 45MB)

Bug: 203088572
Test: SYSTEM_OPTIMIZE_JAVA=true m (validate services.jar/odex change)
Change-Id: I4130233310323611f63cd9bfcc0646080cf95875
2021-12-03 12:31:30 -08:00
Treehugger Robot
1a9af383d6 Merge "Fix OWNERS for time protos" 2021-12-03 20:21:07 +00:00
Sooraj Sasindran
12c048e406 Merge "Add non dangerous read phone state permission" 2021-12-03 18:59:58 +00:00
Andrei Onea
95ecac506d Allow privapp permission allowlist in apex
Read priv-app permission allowlists from APEX file and warn if
they're in the /system partition instead.

Test: boots
Bug: 190375768
Change-Id: I37d6deb60f0dffb75dd634075cd95bcf7ddf9684
Merged-In: I37d6deb60f0dffb75dd634075cd95bcf7ddf9684
2021-12-03 18:19:00 +00:00
paulhu
dc8bde9ffa Stop using NSD_ON setting
NSD_ON setting has never been set since it created. Besides,
CTS tests assume that nsd service is always enabled otherwise
the tests will fail. Thus, remove the setting from NsdService
which is no need to read/write it and it's also a hidden symbols.

Bug: 206702844
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: Id3cef7def96925cec5095e12910e9b97ba7efb11
2021-12-03 21:21:07 +08:00
Jakub Pawłowski
a859e86b5c Merge "Bluetooth: Pretty print LE Audio profile name in logs" 2021-12-03 10:29:20 +00:00
Neil Fuller
bff4c1b433 Merge "Add a setting to support for NITZ retention" 2021-12-03 09:36:52 +00:00