Commit Graph

571050 Commits

Author SHA1 Message Date
Amit Mahajan
0411ba6168 Add configurable RSRP boost for 5G NR SA.
Test: atest CellSignalStrengthNrTest
Bug: 187679048
Merged-In: Ic6becca786e5f039194ffb48ca572ff1ab7ce305
Change-Id: Ic6becca786e5f039194ffb48ca572ff1ab7ce305
(cherry picked from commit ae5f04d42a)
2021-06-30 09:34:45 -07:00
Treehugger Robot
8bae06f66d Merge "Rename keylayout for SnakeByte iDroid:con to match by name" 2021-06-26 23:41:49 +00:00
Benedict Wong
6ff2b288f6 Merge "Fix dangling NetworkAgent" 2021-06-25 23:02:37 +00:00
Benedict Wong
7207a83ca8 Fix dangling NetworkAgent
This change fixes the potential for a networkAgent to be left dangling,
due to a situation where a VcnGatewayConnection shuts down, but fails to
unregister it's NetworkAgent.

The root cause was that the NetworkAgent was not unregistered when
moving to the DisconnectedState from the RetryTimeoutState, and the new
state assumed that there was no NetworkAgent, and thus failed to close
it when disconnecting.

Thus, this change ensures that the NetworkAgent is closed before moving
to the DisconnectedState. Additionally, it adds safety-checks to
onQuitting(), ensuring that if all else fails, these fields are cleaned
up.

Lastly, this change adds the specific gateway reference to facilitate
future debugging of issues such as this where there is potential for
duplicate networks, or gateway connections.

Bug: 191707296
Test: atest FrameworksVcnTests
Change-Id: I84cd43a0c136662f5c2d229650f1f5f889e6f144
2021-06-25 19:37:17 +00:00
Siarhei Vishniakou
ce40a4d0e8 Rename keylayout for SnakeByte iDroid:con to match by name
This keylayout was introduced in ba81efe04a.
Unfortunately, we cannot match by vid / pid, since this breaks other
devices (like keyboards) that use the same vendor / product id.

Instead, match by name to avoid conflict.

Bug: 191720859
Change-Id: I9dd686ebcd612ca04d41b7b5cadf8442350346c9
Test: verified manually
2021-06-25 17:14:21 +00:00
Orion Hodson
8be0de5892 Merge "Revert^2 "Zygote: Load system server code early"" 2021-06-25 09:09:01 +00:00
Orion Hodson
1394f6f7be Merge changes from topic "owners-updates-2021-06"
* changes:
  Update art-team OWNERS relating to profiles
  Update art-team@ related OWNERS
2021-06-25 08:52:09 +00:00
Orion Hodson
52922defe6 Update art-team OWNERS relating to profiles
Bug: none
Test: none
Change-Id: I7ce58366db7fc567a8a1565e962716f9bc7aa626
2021-06-25 09:46:53 +01:00
Orion Hodson
7c5a5c137c Update art-team@ related OWNERS
Bug: none
Test: none
Change-Id: Ia950ae80af64f1d64c2bb1948cea842776a42f59
2021-06-25 09:46:53 +01:00
Treehugger Robot
dadffd5881 Merge "Add Binder.clearCallingIdentity to TracingServiceProxy" 2021-06-24 20:45:29 +00:00
Orion Hodson
d0d23f5a2b Revert^2 "Zygote: Load system server code early"
This reverts commit 6be3b0e117.

Bug: 180949581
Test: atest odsign_e2e_tests
Change-Id: I7a7dd5b475af4502dc9671d2dce02ee3673ddf81
2021-06-24 20:09:56 +00:00
Carmen Jackson
3320b658ab Add Binder.clearCallingIdentity to TracingServiceProxy
The TracingServiceProxy is called by traced, which runs as UID 9999 and
therefore doesn't have the required permissions to start a foreground
service.

So, clear that calling identity so that the identity checked for this
permission is system_server, which does have the correct permissions.

We'll ensure that no other processes can utilize this path via selinux
rules.

Bug: 191391382
Test: Manually tested that before this change, I saw an
'ActivityManager: startForegroundService() not allowed' error when
taking a bugreport while a trace is running, while after this change the
bugreport was taken successfully with no errors, and the trace was
included in the bugreport.

Change-Id: I472fe8acc2e59e93afd8475f51b5f347cd3ccc5d
2021-06-24 11:35:23 -07:00
Calin Juravle
0520140984 Merge "Set the timestamp of dex2oat metrics to SystemClock.uptimeMillis()" 2021-06-24 15:31:00 +00:00
vichang
789d83065b Merge "Revert "Refactor StructCapUser{Header,Data} and StructLinger for API review"" 2021-06-24 14:55:32 +00:00
Calin Juravle
d6ecff7bed Set the timestamp of dex2oat metrics to SystemClock.uptimeMillis()
This will allow us to inspect whether or not compilation times
degrade over time.

Test: ArtStatsLogUtilsTest
Bug: 170149255
Merged-In: I3a0946b4e2bba32db3c972a871bbd2519d1d70c3
Change-Id: I3a0946b4e2bba32db3c972a871bbd2519d1d70c3
(cherry picked from commit 4c75ae6c23)
2021-06-23 16:11:48 -07:00
Victor Chang
9a285e79f3 Revert "Refactor StructCapUser{Header,Data} and StructLinger for API review"
Revert the class rename in master as discussed in http://b/183513856#comment19,
because the API has landed Android S.

This reverts the commit fa36bdff9f

Bug: 183513856
Test: m droid
Change-Id: I38bd8b7a9dad85d993dd432ab8f72995a23550fc
2021-06-23 17:31:35 +01:00
Pedro Loureiro
f9eb7b947a Merge "Add lint database filtering tool" 2021-06-23 14:54:40 +00:00
Pedro Loureiro
dea35e103b Add lint database filtering tool
lint database file (api-versions.xml) is used for NewApi checks. These checks
were written thinking about app developers.

When used inside the platform codebase, quite often it produces false positives
which make relying on it cumbersome.

This CL removes APIs introduced by mainline modules from the lint database to
remove many such false positives. While some of them might be real issues, the
alternative would be not turning these checks on at all.

Bug: 186478867
Bug: 177434707
Test: m lint-check
Test: m filter-api-versions
Test: atest api_versions_trimmer_unittests
Merged-In: Ic45db0b71a2f13dc456463ce04b2f7744a0e330c
Change-Id: Ic45db0b71a2f13dc456463ce04b2f7744a0e330c
2021-06-23 14:44:10 +01:00
Luke Huang
33d67f0b14 Merge "Fix the comments from aosp/1717479." 2021-06-23 03:36:02 +00:00
Yan Yan
320056b32d Merge "Include IkeTunnelConnectionParams in #hashCode and #equals" 2021-06-22 22:41:03 +00:00
John Reck
c9885f1fa4 Merge "Fix PixelCopy & BQ crop" 2021-06-22 18:56:00 +00:00
Yan Yan
16006a61b9 Include IkeTunnelConnectionParams in #hashCode and #equals
This commit includes IkeTunnelConnectionParams in
VcnGatewayConnectionConfig#hashCode and
VcnGatewayConnectionConfig#equals.

This commit fixes the issue that VcnGatewayConnection was not
being restarted as expected.

Bug: 191317512
Test: atest FrameworksVcnTests (new tests added)
Test: atest CtsVcnTestCases
Change-Id: I70182f9b645e55eced1e0a048a1bd87778c1c0f6
2021-06-22 11:37:38 -07:00
Treehugger Robot
f334f4ed31 Merge "Allow app zygote preload to retain files across fork" 2021-06-22 15:32:40 +00:00
Hui Wang
af880746f9 Merge "Process rcsVolteSingleRegistration if it is not provided or roaming" 2021-06-22 14:48:19 +00:00
Anton Hansson
90bb779200 Merge "Add more owners of API directory" 2021-06-22 08:30:58 +00:00
Treehugger Robot
c3b4db483c Merge "Let TradeFed and CrystalBall teams co-own TestProtoLibraries.bp." 2021-06-22 06:52:30 +00:00
Treehugger Robot
f20d5d9739 Merge "Unhide BluetoothProfile.LE_AUDIO and getGroupId for the App usage." 2021-06-22 01:15:38 +00:00
Lucas Lin
a7cf9f2c02 Merge "Add OBSERVE_NETWORK_POLICY for shell to test CTS" 2021-06-21 23:58:49 +00:00
Alice Kuo
47840a8d73 Unhide BluetoothProfile.LE_AUDIO and getGroupId for the App usage.
This change contains two item,
1. public BluetoothProfile.LE_AUDIO that App can use
BluetoothProfile.ServiceLister with LE Audio profile, such as HFP, A2DP
and hearing aid profile.
2. public getGroupId API that App can use this api to identify which
devices are in the same group

Bug: 150670922
Test: Manual test
Change-Id: I32865720a8195b7c5ae29411cd1f3de95e7fc9b5
Merged-In: I32865720a8195b7c5ae29411cd1f3de95e7fc9b5
2021-06-21 23:34:53 +00:00
Treehugger Robot
4ec6929581 Merge "Set max transmit packet size for OBEX packets to the max if they exceed the max allowed packet size" 2021-06-21 21:29:34 +00:00
Spandan Das
9e137eaf6d Merge "Unzip apk in $(genDir) instead of inside source tree" 2021-06-21 21:07:24 +00:00
Hui Wang
29e6d93d84 Process rcsVolteSingleRegistration if it is not provided or roaming
Bug: 186884505
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Merged-In: I800ba7cfda4fdd9bd2590a12c23c33ee72b07396
Change-Id: I132f40b334c9a2d33b3517b4897c52b0554c994d
2021-06-21 20:53:43 +00:00
Treehugger Robot
74d1d270ec Merge "Catch SQLiteFullException in AccountManagerService" 2021-06-21 16:39:21 +00:00
Anton Hansson
36fa15b7db Add more owners of API directory
This dir is home of the modularized SDK now. Add hansson and
modularization team as explicit owners so that we can e.g. approve new
modules being added.

Bug: 184125529
Test: No
Change-Id: I97802b98d24309759f9cf5d3192da6b80dc7657b
Merged-In: I97802b98d24309759f9cf5d3192da6b80dc7657b
2021-06-21 16:33:57 +01:00
Treehugger Robot
1db6c7327f Merge "Update the java doc of AndroidKeyStoreProvider#getKeyStoreOperationHandle to support Signature object" 2021-06-21 11:05:19 +00:00
Michael Wright
03a3eb4b3d Merge "Fix failed tests for ApplicationPackageManagerTest" 2021-06-21 10:20:24 +00:00
vichang
2d6933bbae Merge "Add ART's module-lib to "module_current"" 2021-06-21 10:04:00 +00:00
Lorenzo Colitti
63c9b89300 Merge "Remove most of the NetworkStack dependencies on frameworks/base." 2021-06-21 09:54:29 +00:00
Xin Li
7cd13c5e5a Merge "DO NOT MERGE - Merge RQ3A.210605.005" 2021-06-21 05:49:07 +00:00
huyuxin
f5ea4604b8 Catch SQLiteFullException in AccountManagerService
Bug:190638634
Test: Manual
Change-Id: I6ca088995d8a9af13ae6085953706ba21d09acae
Signed-off-by: huyuxin <huyuxin@xiaomi.com>
2021-06-21 02:34:52 +00:00
Harry Zhang
6fd185eedb Let TradeFed and CrystalBall teams co-own TestProtoLibraries.bp.
This target is used for TradeFed dependencies and can be managed
separately by these two teams.

Bug: 181921006
Test: Manual
Change-Id: Ibcfeef30c8cb88e244561cac99c034981b84ed80
2021-06-18 18:46:08 -07:00
Treehugger Robot
842af18352 Merge "Running various lifecycle-related tests on main thread" 2021-06-18 23:00:40 +00:00
Jakub Pawlowski
2cc60a354d Merge "Bluetooth: fix comments on Volume Control Profile review" 2021-06-18 21:56:41 +00:00
Winson Chung
dc5057e9d4 Running various lifecycle-related tests on main thread
- Latest AndroidX drop changes the requirements for observers
  which must be registered on the main thread

Bug: 162884675
Test: atest SystemUITests passes locally
Change-Id: Ib77248bc6d44cc9c8a5d2ad0e5c95feab6a54a01
Merged-In: Ib77248bc6d44cc9c8a5d2ad0e5c95feab6a54a01
(cherry picked from commit 5676d98881)
2021-06-18 14:13:19 -07:00
Jakub Pawlowski
4619694a85 Bluetooth: fix comments on Volume Control Profile review
Bug: 150670922
Test: compilation
Merged-In: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c
Change-Id: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c
2021-06-18 20:46:27 +00:00
Xin Li
739eab2ad3 DO NOT MERGE - Merge RQ3A.210605.005
Bug: 190855093
Merged-In: I5936ef6efe3542370383128c5e919a04b52ab7aa
Change-Id: I8ce87d9a137ba235d90a53a1b071e2c9556d50bb
2021-06-18 12:24:45 -07:00
Treehugger Robot
87a2d5bf91 Merge "Adds rahulsabnis@ as an owner for all Bluetooth files in frameworks/base" 2021-06-18 19:21:16 +00:00
Rahul Sabnis
165faf4460 Adds rahulsabnis@ as an owner for all Bluetooth files in frameworks/base
Tag: #feature
Bug: 191481598
Test: Manual
Change-Id: I6c8606c8e4802b74e80555e8ebf78932863d3f5b
2021-06-18 10:31:26 -07:00
Treehugger Robot
30d69667a2 Merge "Fix targetSDK javadoc." 2021-06-18 16:52:05 +00:00
Egor Pasko
ed10978de1 Allow app zygote preload to retain files across fork
The bug proposes to 'move' the /proc/self/fd/ readlink/stat/etc checks
performed by the FileDescriptorAllowlist from before-fork to an earlier
stage.

The original aim was to allow the app zygote Preload hook to open
ashmem/memfd read-only regions to save more RAM (around 5MiB on aarch64)
via sharing more across processes. Potentially other files/sockets can
be opened - the app zygote takes responsibility of managing file
descriptor access controls across its own processes. App Zygote Preload
does not run 3rd party code.

Unfortunately a straightforward move of the checks to
just-before-preload has disadvantages:
* opens more codepaths for potential accidental misuse (the zygote
  accepts commands between preload and fork, there are valid usecases
  for extending these commands)
* this way FileDescriptorAllowlist would need to support more file
  descriptor types (sockets and maybe pipes), which is not needed now
  because these FDs are closed right before forking

The solution proposed here is to:
1. Determine the set of file descriptors open before preload
2. Run the preload hook
3. Determine FDs opened by the hook and allow them to remain open across
   fork
4. Hypothetical new attempts to preload (if ever supported) will not
   affect the allowed FDs - the preload will be able to toss its own FDs
   the way it wants, but not open the new-new ones

Bug: 184808875
Test: Manual: unreleased Chrome patch: while in app zygote preload,
      create ashmem region, passes it to 'untrusted_app' (=browser
      process), and call mmap(2) on it.
Change-Id: Ie302eabca83a0e4f409cb131e4308b73e5f6a580
2021-06-18 17:06:11 +02:00