Commit Graph

567159 Commits

Author SHA1 Message Date
Treehugger Robot
df7fddd96e Merge "Should not try IMS or EMERGENCY APN for initial-attach." 2021-05-25 02:48:51 +00:00
Howard Chen
af5c516b49 Merge "Corrupt the PersistentDataBlock payload explicitly in factory reset" 2021-05-25 01:43:25 +00:00
Remi NGUYEN VAN
996ae3fb4d Merge "Remove packages/Connectivity" 2021-05-24 23:32:43 +00:00
Calin Juravle
d71e3c3dda Merge "Add cmdline as a compilation reason" 2021-05-24 15:06:35 +00:00
Baligh Uddin
940801c165 Remove packages/Connectivity
It has moved to packages/modules/Connectivity

BUG: 186628461
TEST: TH
Merged-In: I2ed1fb00a7780c488c40d27590f206031fe033f2
Merged-In: I2a7a181e65be8952f8044df845efa80b6134d416
Change-Id: I8d162386289fcd4dc5e7092c3ea836fb67641e9f
2021-05-24 05:41:51 +00:00
Treehugger Robot
8c702c2d6a Merge "Add another OptionsBuilder constructor with the source type as one of its parameter." 2021-05-22 04:16:11 +00:00
Baligh Uddin
81d4e1079e Merge "Add OWNERS block for migration" 2021-05-22 04:01:33 +00:00
Treehugger Robot
da915abc76 Merge "Use BinderDeathDispatcher for alarm listeners" 2021-05-21 23:45:59 +00:00
Yan Yan
94a4cdd4e8 Merge "Improve IKEv2/IPsec VPN by proposing more IPsec algorithms" 2021-05-21 22:00:30 +00:00
Yan Yan
8072aac1b9 Merge "Improve IKEv2/IPsec VPN by proposing more IKE algorithms" 2021-05-21 21:30:36 +00:00
Yan Yan
cc258065e1 Improve IKEv2/IPsec VPN by proposing more IPsec algorithms
This commit allows IKEv2/IPsec VPN to propose more algorithms that
newly added in IpSecAlgorithm. Those new algorithms have stronger
security guarantees and better performances.

This commit also removes algorithm name validation because all
algorithms are URL encoded to ensure no special characters create
problems due to their use by VpnProfile for list or field delimiting
(e.g. rfc7539esp(chacha20,poly1305))

Bug: 185265778
Test: atest FrameworksNetTests, CtsNetTestCases
Test: All new algorithms are manually verified
Change-Id: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
2021-05-21 17:46:54 +00:00
Baligh Uddin
29f05dde3e Add OWNERS block for migration
BUG: 186628461
Test: TH
Change-Id: Id03e0dfbe621b8ad08e594c0f6525ad9240837ae
2021-05-21 16:33:32 +00:00
Elliott Hughes
9144eaf12f Merge "maybePruneOldTraces: bail if modification times change." 2021-05-21 16:30:25 +00:00
Calin Juravle
4c656038c9 Merge "Marked apks loaded by isolated processes as usedByOthers" 2021-05-21 15:35:52 +00:00
James.cf Lin
3a2c53106a Add another OptionsBuilder constructor with the source type as one of its parameter.
Bug: 187620915
Test: atest RcsUceAdapterTest ImsServiceTest
Merged-In: I74c69800125f8c4a243e80ed47c5134eda8d5a78
Change-Id: I74c69800125f8c4a243e80ed47c5134eda8d5a78
2021-05-21 20:32:44 +08:00
satayev
9ad2395b4a Merge "Add bootclasspath_fragments to platform-bootclasspath." 2021-05-21 10:21:49 +00:00
Siim Sammul
d5dd055c7e Merge "Push the latency histograms to statsd" 2021-05-21 09:41:27 +00:00
Orion Hodson
94deae9295 Merge "Move to renamed NDK symbol AFileDescriptor_getFd" 2021-05-21 08:29:52 +00:00
Suprabh Shukla
715ecc2bac Use BinderDeathDispatcher for alarm listeners
This ensures only one JNI strong reference for the death recipient when
the same binder is used for multiple linkToDeath calls.

Test: atest CtsAlarmManagerTestCases
atest FrameworksCoreTests:BinderDeathDispatcherTest
atest FrameworksMockingServicesTests:AlarmManagerServiceTest

Bug: 186792832
Change-Id: Ieea2d8f4e495a4c4687378db9d0b8c6949a0406a
Merged-In: Ieea2d8f4e495a4c4687378db9d0b8c6949a0406a
2021-05-20 23:52:32 -07:00
Sarah Chin
d4a99869a8 Merge "Optimize SIM phonebook feature with new APIs" 2021-05-21 04:21:15 +00:00
Chiachang Wang
392633f757 Merge "Add test for NetworkCapabilities.Builder.withoutDefaultCapabilities" 2021-05-21 03:33:23 +00:00
Chiachang Wang
d916891405 Add test for NetworkCapabilities.Builder.withoutDefaultCapabilities
Bug: 186061922
Test: atest CtsNetTestCases:android.net.NetworkCapabilitiesTest
Change-Id: I369e71dd6ae85da78e114ea8377967ab0bde787b
2021-05-21 09:57:42 +08:00
Frank Li
327678ebd6 Merge "Improve the net-capabilities scheme for backward compatibility" 2021-05-21 01:28:35 +00:00
Treehugger Robot
2c219a5b84 Merge "Use CS identity to update setting while performing factory reset" 2021-05-21 01:26:05 +00:00
Matt Reynolds
82edb97d6a Merge "Add keylayout mapping for Luna controller (Bluetooth)" 2021-05-21 00:32:19 +00:00
Treehugger Robot
c54117c71e Merge "Close the FileStream to avoid resource leak" 2021-05-21 00:05:11 +00:00
Tom Natan
3e686651ad Merge "Rename addPackageOverrides to putPackageOverrides." 2021-05-20 23:02:10 +00:00
Matt Reynolds
552dfe5c29 Add keylayout mapping for Luna controller (Bluetooth)
Add a keylayout mapping to support gamepad buttons and axes on the
Amazon Luna controller.

Buttons and axes are mapped according to
https://www.kernel.org/doc/Documentation/input/gamepad.txt except for
the Alexa Push-To-Talk button which is mapped to MEDIA_RECORD.

Bug: 183990549
Test: used the "Gamepad Tester" app and https://gamepad-tester.com in
Chrome to verify all mappings work.

Change-Id: I1921e501eea0ce398b79a32809efa63456074ed5
2021-05-20 15:01:11 -07:00
Calin Juravle
088545329b Marked apks loaded by isolated processes as usedByOthers
Isolated processes can only access world readable optimized files.
In order to not penalize their execution, we mark any dex files they
load as usedByOthers. This will prevent speed-profile optimizations
which marks the optimized files private to the app process.

Test: DexManagerTests
Bug: 163018062
Merged-In: Ib041584926ea142f37993f434a728d90db30e9bc
Change-Id: Ib041584926ea142f37993f434a728d90db30e9bc
2021-05-20 21:48:46 +00:00
Calin Juravle
95590e1a62 Merge "Update the use of registerAppInfo" 2021-05-20 21:46:00 +00:00
Cody Kesting
a376a93738 Merge "Check location permission for ConnDiags last." 2021-05-20 21:27:46 +00:00
Treehugger Robot
06a4f88eb9 Merge "Improve documentation of IpSecTunnelInterface#setUnderlyingNetwork" 2021-05-20 20:33:41 +00:00
Meng Wang
ffb1899ba2 Merge "PersistableBundle.restoreFromXml should return a mutable bundle." 2021-05-20 19:13:26 +00:00
Yan Yan
559c995af6 Improve IKEv2/IPsec VPN by proposing more IKE algorithms
This commit allows IKEv2/IPsec VPN to propose more algorithms that
newly added in IKE library. Those new algorithms have stronger
security guarantees and better performance.

It also improves the cooperability with
NordVpn. Previously, IKEv2/IPsec VPN only proposes PRF-HMAC-SHA1
and PRF-AES128-XCBC. NordVpn always prefer PRF-AES128-XCBC over
PRF-HMAC-SHA1 for security reasons, but few NordVpn servers have
broken PRF-AES128-XCBC support which will cause VPN setup to fail.
Proposing more PRFs can reduce the chance of selecting a broken
algorithms.

This commit also switches to use IKE library defined constants

Bug: 185265778
Test: atest FrameworksNetTests, CtsIkeTestCases
Test: new algorithms are manually tested
Change-Id: Id0983d4b73691b153ee0f1cf3bf63b215098a29a
2021-05-20 18:20:44 +00:00
Naga Venkata Durga Ashok Mutyala
cf89b5d085 Close the FileStream to avoid resource leak
Test: NA
Change-Id: I8426ed1409d5870f50c3036d4c5f45ca396d6060
2021-05-20 18:08:40 +00:00
Anton Hansson
4fc41b4fb6 Merge "Update API txt following a metalava fix" 2021-05-20 17:38:26 +00:00
lifr
46c3c694d4 Improve the net-capabilities scheme for backward compatibility
- Create a new XML tag for the new format. The new format should
  persist the arrays of values without assuming they necessarily
  have different bits.

- Upon reading, if the new tag is present, use that. If the new
  tag is not present but the old tag is present, then limit the
  contents to the capabilities/transports that existed in R.

- Catch all exceptions and ignore the requests if they can't be
  re-read from disk. This is a measure to avoid any mistake where
  the device couldn't boot when JS tries to restore state.

Bug: 183071974
Test: atest JobStoreTest
Change-Id: I56cde50d2adab81134c8be4f6996d68018f4212a
2021-05-21 01:00:21 +08:00
Siim Sammul
086d0dab4f Push the latency histograms to statsd
Cherry pick from master with no changes: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/14161187

Test: unit tests, verified atom logging with statsd_testdrive
Bug: 180584913

Change-Id: I0b8db72c0cb3b285177bbe402ce37639c468dbf3
Merged-In: I0b8db72c0cb3b285177bbe402ce37639c468dbf3
(cherry picked from commit a28ccaf373)
2021-05-20 16:42:08 +00:00
Jeff Sharkey
ba5fa81923 Merge "add notification team as OWNERS of notification utils" 2021-05-20 13:44:03 +00:00
Neil Fuller
55f4ea8068 Merge "Add permission to shell for CTS test" 2021-05-20 13:13:27 +00:00
satayev
9e441acd27 Add bootclasspath_fragments to platform-bootclasspath.
Bug: 180105615
Test: atest CtsClasspathsTestCases
Merged-In: I72c76685d337c683b79ccd38c8f3b91816e34102
Change-Id: If7c115f3fc39b908ee809d7734fad8c387f05ab7
2021-05-20 13:43:40 +01:00
tomnatan
79fe2b53f8 Rename addPackageOverrides to putPackageOverrides.
Bug: 187738991
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: I52e5051810cf31cbcee9ba600c92c86d335187a0
2021-05-20 11:52:39 +00:00
Siim Sammul
83d1954afe Merge "Include binder stats in battery stats" 2021-05-20 09:46:37 +00:00
Chiachang Wang
f1b5a1a2ea Use CS identity to update setting while performing factory reset
When apps try to call factoryReset to do networking reset, it
will result in updating the setting in SettingsProvider.
ContentProvider will verify if the package name of the caller
that initiated the request being processed on the current thread.
The package should belong to the calling UID. The setting update
started from the ConnectivityService context, so the package will
be android but the calling UID will be the calling app. It will
cause a SecurityException. The behavior is fine previously as its
known caller(Settings) shares system UID. But it will be a
problem for other callers, such as CTS. Thus, clear the identity
since the necessary permission check should be examined at the
top of the method. The following actions should be fine to be
proceed from the system itself. Also replace the user restriction
check via hasUserRestrictionForUser with the UserHandle created
from the calling uid to ensure it's verified with correct user.

Bug: 186061922
Test: Factory reset from Settings
Change-Id: If2dd69f702a1eafff331f9e71f6b92aeadfb715d
2021-05-20 10:01:50 +08:00
Elliott Hughes
0023356faa maybePruneOldTraces: bail if modification times change.
We could implement the right thing easily with streams, but we're not
allowed to use streams in this context, and it doesn't seem worth the
bother of doing it any of the hard ways, given that we've only seen this
once in the year the code's been doing this.

Bug: https://issuetracker.google.com/169836837
Test: treehugger
Change-Id: I4ee29916c1b335bebecfe7f72e74ff71e8a24228
2021-05-19 14:33:09 -07:00
Calin Juravle
303a702a9c Add cmdline as a compilation reason
Set the compiler reason to 'cmdline' when the compilation was
initiated from cmdline. This will effectivively eliminate the
'unknown' reason from our metrics (except in some corner cases)

Test: adb shell cmd compile ...
Bug: 188655918
Change-Id: I0cb6e9182530bc2d88975af185a0a8256fae2c2c
2021-05-19 21:06:34 +00:00
Jeff DeCew
ac14604706 add notification team as OWNERS of notification utils
Change-Id: I0c773d253e080aabadc9d15ff945abd7eb2638f3
2021-05-19 20:32:31 +00:00
Brad Ebinger
bd5ef43130 Merge "Clarify some UCE API docs" 2021-05-19 17:08:42 +00:00
Neil Fuller
22472c6361 Add permission to shell for CTS test
This grants the shell app the SUGGEST_EXTERNAL_TIME permission needed
for the TimeManagerTest (CTS) to invoke the
TimeManager.suggestExternalTime() method during tests.

Bug: 184947690
Bug: 177079827
Test: See associated cts change
Merged-In: Ia1995ec9503dbd2b12e0b5b5f92a96e02f85beec
Change-Id: Ia1995ec9503dbd2b12e0b5b5f92a96e02f85beec
2021-05-19 16:11:32 +00:00
vichang
0799624dc7 Merge "Add ART module-lib and system API to the collection" 2021-05-19 12:27:25 +00:00