655195 Commits

Author SHA1 Message Date
Sarah Chin
c4631dca14 Merge "Revert "Add config to use lower of IPv4/IPv6 MTU values"" 2021-11-19 00:23:49 +00:00
Treehugger Robot
8cb6d28329 Merge "Framework and system_server classes can access public vendor libraries" 2021-11-19 00:08:57 +00:00
Treehugger Robot
e9f913aee8 Merge "Create StatsBootstrapAtomService" 2021-11-18 23:25:21 +00:00
Peiyong Lin
6e9b910de2 Merge "Add owners for GameManager and GameManagerService" 2021-11-18 22:20:52 +00:00
Vince Harron
3ad0c61146 Merge "BSD grep doesn't support -P" 2021-11-18 21:34:19 +00:00
Tej Singh
da79f2a110 Create StatsBootstrapAtomService
Design doc is at go/statsd-bootstrap-logging. Creates a proxy service for
logging atoms from bootstrap processes to statsd. Service has one API,
which converts StatsBootstrapAtom into StatsEvent and logs to statsd.
This should only used by processes that start in the bootstrap namespace
and cannot directly link statsd's libraries to log to statsd.

Bug: 204889815
Test: booted, made sure binder service was published.
Change-Id: I09709a30a42a7a398234c995324f62a0d62ad24f
2021-11-18 13:27:21 -08:00
Peiyong Lin
ab0ae6b571 Add owners for GameManager and GameManagerService
Bug: N/A
Test: N/A
Change-Id: I48f986e1ca5eadc6c23ca693143f122e415eeefd
2021-11-18 18:25:14 +00:00
Keith Mok
bd0a86f9d7 Merge "Improper EINTR handling logic" 2021-11-18 17:11:15 +00:00
Jiyong Park
24c57c33ea Framework and system_server classes can access public vendor libraries
This CL fixes a regression caused by [1] which introduced
<uses-native-library> tag [2]. With the change, public vendor libraries
[3] became accessible only when they are listed in the caller's
AndroidManifest.xml using the new tag. However, this caused a problem to
the places where AndroidManifest.xml doesn't exist: framework and
system_server classes. For those cases, [1] incorrectly used a null list
as the requested native libraries, and as a result, no public vendor
libraries were accessible.

This CL fixes the issue by not doing the filtering for the class loaders
created for non-app contexts like zygote or system_server. Specifically,
it uses the magic keyword "ALL" which let libnativeloader.so
accept all public vendor libraries.

[1] 6a5b8b1f6d
[2] https://developer.android.com/guide/topics/manifest/uses-native-library-element
[3] https://source.android.com/devices/tech/config/namespaces_libraries#adding-additional-native-libraries

Bug: 205164833
Test: libcuttlefish_fs.so is loaded when built with the other CLs in the
same topic

Change-Id: Id92c59642773851d70d05a05f43eb5873e9de86b
2021-11-18 23:09:27 +09:00
Yi Kong
f8eb7b136c Merge "profcollect: trace on background thread" 2021-11-18 08:53:52 +00:00
Gopalakrishnan Nallasamy
0781fcf7da Merge "MediaCodecInfo: Add constant for YUVP010 color format" 2021-11-18 08:21:35 +00:00
Gopalakrishnan Nallasamy
f71f4089d8 MediaCodecInfo: Add constant for YUVP010 color format
Bug: 206456921

Test: atest android.media.cts.ImageReaderDecoderTest
Change-Id: Ia93bd25ede40b39d6b799990c01e35b90a8ad8d4
2021-11-18 08:19:32 +00:00
Treehugger Robot
10640379e4 Merge changes I044d0363,I0be3b802,Ib584ea57,I92291023
* changes:
  bpf is required so /sys/fs/bpf/map_netd_app_uid_stats_map always exists
  bpf is required - remove mUseBpfTrafficStats field
  bpf is required - remove checkBpfStatsEnable()
  remove qtaguid parsing
2021-11-18 07:52:14 +00:00
Yi Kong
092c15cfd9 profcollect: trace on background thread
trace is a blocking event, needs to be moved off from the main thread.

Test: build
Bug: 206893189
Change-Id: Iead5a8f2471c2c0dbe0903294b7dcaf0b810256d
2021-11-18 14:24:59 +08:00
Treehugger Robot
104adeeb75 Merge "health: BatteryService etc. use health AIDL HAL" 2021-11-18 06:20:40 +00:00
Maciej Żenczykowski
1af65153da bpf is required so /sys/fs/bpf/map_netd_app_uid_stats_map always exists
(we cannot just remove the argument, since the test code path still
 goes via the legacy xt_qtaguid code paths with sample data)

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I044d0363aaab0dbbb90c40ca466cc48f169d649a
2021-11-18 06:11:00 +00:00
Maciej Żenczykowski
c9b46078fc bpf is required - remove mUseBpfTrafficStats field
Test: git grep mUseBpfTrafficStats
  TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I0be3b802e2ebd175b2a58061bf821aba02a8ec8a
2021-11-18 06:10:46 +00:00
Maciej Żenczykowski
068d57a579 bpf is required - remove checkBpfStatsEnable()
Test: git grep 'nativeGetTotalStat|nativeGetIfaceStat|nativeGetUidStat'
    - shows all locations have been updated
  git grep 'checkBpfStatsEnable'
    - find nothings relevant (just services/art-profile)
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ib584ea57c39d5ab0605787b05133097fd2c82a39
2021-11-18 06:10:35 +00:00
Maciej Żenczykowski
536a03632e remove qtaguid parsing
This removes the legacy (and untested) xt_qtaguid
non-ebpf code path (ie. dead code).

Test: git grep 'QTAGUID_IFACE_STATS|QTAGUID_UID_STATS|parseIfaceStats|parseUidStats'
  finds nothing
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I922910238474f2cfb74eba19b219bc792ce4abc3
2021-11-18 06:10:14 +00:00
Yifan Hong
999f26ca03 health: BatteryService etc. use health AIDL HAL
Also add tests to ensure that HealthServiceWrapper.create
prioritize using the AIDL HAL, and service callbacks are
working.

Test: frameworks test
Test: install HAL on cuttlefish then boot
Bug: 177269435

Change-Id: Ic667a49528c63343fe602f193c0958f2ee57c04e
2021-11-18 04:48:07 +00:00
Treehugger Robot
98f0a11a8a Merge "SystemPreparer: remove support for FDE devices" 2021-11-17 22:48:27 +00:00
Vince Harron
b3a17c77be BSD grep doesn't support -P
Test: New grep command tested on Linux and macOS
Bug: b/206150971
Change-Id: I9f1684298672fee1561166a03392bd07be8c5cd6
2021-11-17 22:32:57 +00:00
Treehugger Robot
9220245e47 Merge "[PeopleService] Catch exception when failed to query call log." 2021-11-17 21:59:43 +00:00
Daniel Norman
2df3d4e066 Merge "PackageManagerService: Check for duplicate inactive factory packages" 2021-11-17 21:24:28 +00:00
Jeff Sharkey
1716adec5c Merge "Add OWNERS file for AttestationVerificationTest" 2021-11-17 20:50:58 +00:00
Keith Mok
639e93ee9c Improper EINTR handling logic
When EINTR received,
we should just continue the loop
without update the byte counte and pointer
Use TEMP_FAILURE_RETRY for that

Test: CtsPrintTestCases
Bug: 206810144
Change-Id: Ia8b580ed0e3af00e9a2afefe554b81cbe014054b
2021-11-17 19:52:16 +00:00
Dave McCloskey
c9d71ec0f4 Add OWNERS file for AttestationVerificationTest
Change-Id: Ic8400aa7c7e4506f57e6ce50dd5856692108385d
2021-11-17 19:22:52 +00:00
Marcus Hagerott
911df4f515 Merge "Allow ContactsProvider to use compat change framework" 2021-11-17 19:19:21 +00:00
Maciej Żenczykowski
b86ab4ae44 Merge "switch to using OWNERS from master branch of Connectivity module" 2021-11-17 18:20:59 +00:00
Eric Biggers
de6e672d6a SystemPreparer: remove support for FDE devices
Bug: 191796797
Change-Id: I82fd9aeb5330444436f004e8971066c253ede0cf
2021-11-17 17:29:11 +00:00
Nicolas Geoffray
637477eb87 Merge "Remove obsolete files on preloaded classes." 2021-11-17 10:36:58 +00:00
Bernardo Rufino
9f8b914c9f Merge "Deprecate unsafe parcel APIs" 2021-11-17 09:43:11 +00:00
Maciej Żenczykowski
7069443319 switch to using OWNERS from master branch of Connectivity module
Test: N/A
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ifa4a38522ac3aa830e2a7f8b23ad190a334458bc
2021-11-17 00:37:40 -08:00
Yifan Hong
ce80de5db0 Merge "Add ServiceManager.registerForNotifications" 2021-11-17 05:02:35 +00:00
qinyige1
28367ba78a [PeopleService] Catch exception when failed to query call log.
It's unnecessary to throw exception when failed to query call
log in PeopleService. So catch this exception to avoid system
server crash.

Bug: 204923224
Test: PeopleServiceTest
Change-Id: I77ee31ff456455721c3401f36d4a79390db2f9b5
2021-11-17 10:10:26 +08:00
Marcus Hagerott
6c681056bb Allow ContactsProvider to use compat change framework
BUG=188347648
Test: m droid

Change-Id: Ifb6675777c76ca1c44af96ceb02a6207d28bd045
2021-11-16 13:40:41 -08:00
Sanjana Sunil
cdaa918edc PackageManagerService: Check for duplicate inactive factory packages
If after a factory reset, APEX modules are updated, duplicate package
names are returned from the API - factory packages are added first and
then inactive factory packages leading to duplication.

After updating APEX modules, inactive factory packages would always be a
subset of factory packages. The fix adds inactive packages only if there
was no factory reset done.

Bug: 200519752
Bug: 200120056
Test: atest 'PackageManagerTest#testGetInstalledPackages_WithFactoryFlag_ContainsNoDuplicates'
Change-Id: I5b5469fc6879bbeee4dc2ea47b2046ab011a65ce
Merged-In: I5b5469fc6879bbeee4dc2ea47b2046ab011a65ce
2021-11-16 13:20:33 -08:00
Keith Mok
7d0bdd39fd Merge "Fix EINTR handling" 2021-11-16 19:43:29 +00:00
Hunsuk Choi
b636aacf1d Merge "Add ImsStateCallback" 2021-11-16 19:26:16 +00:00
Treehugger Robot
b0993999eb Merge "AndroidRuntime: when CheckJNI is enabled log a message" 2021-11-16 18:42:48 +00:00
Treehugger Robot
6893b19adc Merge "Fix NPE for UDFPS devices without HBM" 2021-11-16 18:11:38 +00:00
Treehugger Robot
b2f814064e Merge "Fix typo in BaseIWindow.java owners file" 2021-11-16 17:57:38 +00:00
Chen Xu
e1e1bf599b Merge "[MEP] Platform initial support for eSim Multiple Enabled Profiles." 2021-11-16 17:35:04 +00:00
Treehugger Robot
d1c32c0cac Merge "Make mainline API defs visible to CTS." 2021-11-16 14:40:00 +00:00
Muralidhar Reddy
fb1b6a3056 [MEP] Platform initial support for eSim Multiple Enabled Profiles.
Port concept is introduced to support MEP feature. Refactoring UiccController, UiccCard, and
UiccProfile to add UiccPort between UiccCard and UiccProfile. Most of the UiccCard functioning is
moved to UiccPort.

Added default port index value of uicc card.

Bug: 199559346
Test: Manual
Change-Id: Iaf6af6d5573976a6f85a36570900fb03778e1909
Merged-In: Iaf6af6d5573976a6f85a36570900fb03778e1909
2021-11-16 13:42:26 +00:00
Orion Hodson
3d2f62fda8 AndroidRuntime: when CheckJNI is enabled log a message
This matches behaviour described in:
 https://developer.android.com/training/articles/perf-jni#extended-checking

All output from CheckJNI state was disabled as part of quietening
logspam, but now we log a message only if CheckJNI is
enabled. CheckJNI is off by default and only used as a developer
correctness tool.

Bug: N/A
Test: adb root; adb shell stop;                        \
      adb shell setprop dalvik.vm.checkjni 1;          \
      adb shell start; adb logcat -d | grep CheckJNI
Change-Id: I93bc2d097a8769b7768c633b705b29fc1aac634a
2021-11-16 11:11:28 +00:00
Neil Fuller
a1afeb6910 Merge "Reverse ReferenceWithHistory.dump() order" 2021-11-16 09:30:11 +00:00
Ilya Matyukhin
7bae086001 Fix NPE for UDFPS devices without HBM
Bug: 197723951
Bug: 200295570
Test: run with a null HbmProvider on a UDFPS device
Change-Id: Ia184978d453dc449a6f9f8882cf2b4205c14c1d6
Merged-In: Id89552d3228b4770331e0eda558f0f97101ad8ca
2021-11-15 23:21:28 -08:00
Treehugger Robot
999147b4ab Merge "remove PROP_QTAGUID_ENABLED" 2021-11-16 04:01:55 +00:00
Hunsuk Choi
9725d66837 Add ImsStateCallback
registerImsStateCallback and unregisterImsStateCallback are
added to ImsMmTelManager, ImsRcsManager, and SipDelegateManager.
Those are used to receive updates about the connection state
of the underlying ImsService.

Bug: 178016400
Test: atest ImsStateCallbackTest

Change-Id: If547ce637725d4f98942b0b554187a0ba91f60de
Merged-In: If547ce637725d4f98942b0b554187a0ba91f60de
Merged-In: I3ac14cc3bcb28f5f966a1b3c215727784527e475
2021-11-16 01:55:41 +00:00