Commit Graph

1254 Commits

Author SHA1 Message Date
Hongwei Wang
b899f626b6 Merge "Apply PictureInPictureSurfaceTransaction upon reparent" into sc-dev 2021-04-23 05:17:12 +00:00
Hongwei Wang
0df585fb8d Apply PictureInPictureSurfaceTransaction upon reparent
When autoEnterPip from Task with multiple activities, besides passing
the mLastRecentsAnimationBounds we should also try to pass the last
PictureInPictureSurfaceTransaction to the new Task and apply both.

Changed also
- deprecate the last recents animation bounds and use the transaction only
- reset the transform once applied to the original task

Known issue: original task appears transparent in overview once.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/hNZ0H62PqgVDEUGh1TVMiT
Bug: 184789412
Bug: 185509920
Test: manual with ApiDemos, see Video
Change-Id: I7fb77e41e1963e14ecaf53bd135d6b4cb24493c9
2021-04-22 11:14:44 -07:00
Treehugger Robot
88d1911f16 Merge "Grant keystore permission to register pull stats" am: 63788ff48a am: e2d58f3789 am: f42a439274
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683905

Change-Id: I06580e0443e78eb4ea23e7aa0278b14ae9e8da3c
2021-04-22 03:29:20 +00:00
Treehugger Robot
f42a439274 Merge "Grant keystore permission to register pull stats" am: 63788ff48a am: e2d58f3789
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683905

Change-Id: I83a3b63a484fa14369297a884aa81253e2c49394
2021-04-22 03:27:34 +00:00
Seth Moore
226b32669c Grant keystore permission to register pull stats
Test: statsd_testdrive 10103
Bug: 172013262
Change-Id: I4d3ad2172b522b79454f5232b6d89c16178593d5
2021-04-21 23:13:43 +00:00
Hall Liu
cd1a5490ec Merge "Remove fixed grant of READ_PHONE_STATE and cleanup" into sc-dev 2021-04-21 21:42:00 +00:00
Nate Myren
f7c1b2721e Merge "Change Permission Group methods to be callback, gate behind perm" into sc-dev 2021-04-21 21:01:05 +00:00
TreeHugger Robot
16472322f9 Merge "Pipe start op throught app ops policy and delegate" into sc-dev 2021-04-21 15:06:11 +00:00
Svet Ganov
8b1aad623e Pipe start op throught app ops policy and delegate
bug: 185504196

Test: atest CtsAppOpsTestCases
      atest CtsPermissionTestCases
      atest CtsPermission2TestCases
      atest CtsPermission3TestCases
      atest CtsPermission4TestCases
      atest CtsPermission5TestCases

Change-Id: I5869a3e9719830f59624519f2d54f0765119cf5f
2021-04-21 08:06:35 +00:00
Treehugger Robot
fd03622048 Merge "Adding a permission to Shell for testing" am: 7342dafaa5 am: 23f9ef4d2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679721

Change-Id: I6f02958325c6c6a5f944bf4220338e950b7b0d10
2021-04-21 02:52:28 +00:00
Hyundo Moon
013cf241a1 Merge changes from topic "system_mr2_media_content_control" into sc-dev
* changes:
  System MediaRouter2: Resolve API review
  Change MODIFY_AUDIO_ROUTING permission to MEDIA_CONTENT_CONTROL
2021-04-21 01:45:42 +00:00
Suprabh Shukla
508e114192 Adding a permission to Shell for testing
Adding UPDATE_DEVICE_STATS to enable testing alarms with WorkSource
objects.

Test: atest CtsAlarmManagerTestCases

Bug: 185530825
Change-Id: Ia0f8afa6dc1a13c95553b691f352c6d8c7ae5ccf
Merged-In: Ia0f8afa6dc1a13c95553b691f352c6d8c7ae5ccf
2021-04-20 15:32:03 -07:00
Shubang Lu
c505cc19a2 Merge "TIF: Change the isForeground API to isVisible and isMainSession" into sc-dev 2021-04-20 20:19:42 +00:00
Naomi Musgrave
692496d964 Merge "Introduce config for sandboxing" into sc-dev 2021-04-20 15:36:32 +00:00
Ken Chen
e6565f57fc resolve merge conflicts of a3e32c8b4f to sc-dev
Bug: 185071689
Change-Id: I1524a534590361a585469ddf959e582484493e4e
2021-04-20 09:22:10 +00:00
Ken Chen
a3e32c8b4f Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to shell" am: 1b06ec2530 am: a96493b7a5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675632

Change-Id: I9a94931334fe162c5f05c6c3a1628a41468a2d82
2021-04-20 08:14:40 +00:00
shubang
e8c3a42409 TIF: Change the isForeground API to isVisible and isMainSession
isForeground is not a good approach to indentify current channel info

And add a permission for tuned info.

Bug: 180482268
Test: atest CtsPermission2TestCases
Test: atest TvInputManagerTest#testGetCurrentTunedInfos
Change-Id: Ib1c1f2da719336ae856684e843b06f8b9b442723
2021-04-20 05:49:14 +00:00
Nate Myren
7590ff96f0 Change Permission Group methods to be callback, gate behind perm
Create a GET_RUNTIME_PERMISSION_GROUP_MAPPING permission to gate the
permission group methods behind, and changes the methods to have
callbacks.

Test: atest GetPermissionGroupInfoTest
Fixes: 185177089
Change-Id: Ifd2ebc74f16e51b62068bdc6c8748f69bc63e923
2021-04-19 16:44:33 -07:00
Suprabh Shukla
b0db699780 Adding a permission to Shell for testing
Adding UPDATE_DEVICE_STATS to enable testing alarms with WorkSource
objects.

Test: atest CtsAlarmManagerTestCases

Bug: 185530825
Change-Id: Ia0f8afa6dc1a13c95553b691f352c6d8c7ae5ccf
2021-04-19 23:35:39 +00:00
Hall Liu
f4562b5cee Remove fixed grant of READ_PHONE_STATE and cleanup
No longer grant READ_PHONE_STATE as a fixed permission to all apps
holding READ_PRIVILEGED_PHONE_STATE. Also clean up the previous grants
by un-fixing the permission if the app requests it in the manifest, and
removing it altogether if the app only requests READ_PRIV.

Bug: 183537857
Test: manual -- prepare two system apps, one with READ_PRIV and
READ_PHONE and one with only READ_PRIV, then go through the upgrade flow
with this CL.

Change-Id: Id1fac0f9f4391857f46c7109eadafd60420b279d
2021-04-19 15:00:01 -07:00
Changyeon Jo
33c1862f9b Merge "Add CarEvsService permissions" into sc-dev 2021-04-19 20:00:15 +00:00
Changyeon Jo
2ea54f48b7 Add CarEvsService permissions
This change adds privileged permissions to use CarEvsService to the
allowlists of CarShell and EmbeddedKitchenSink packages.

Bug: 179508501
Test: atest CarEvsManagerTest -c
Change-Id: Ia84c36e0305de5a7fcc282519694896d131253dd
Merged-In: Ia84c36e0305de5a7fcc282519694896d131253dd
(cherry picked from commit d575da1167)
2021-04-18 12:30:55 -07:00
Alex Buynytskyy
e7339d98df API feedback: make DataLoader API System.
Bug: 184713911
Fixes: 184713911
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I00107102eb2e98004ed0a5db2a318a052ab60220
2021-04-18 15:48:21 +00:00
Naomi Musgrave
cbdd8bdb9f Introduce config for sandboxing
Bug: 184838306
Bug: 185004937
Test: atest WmTests:SizeCompatTests
Change-Id: I031463f4bf8c8d87a829f1f03603e376bd44c082
2021-04-16 13:21:27 +01:00
Ken Chen
81b55fbe8c Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to shell
The shell *already had* the privileges granted by this permission due to
specific code in netd, and it lost those privileges when it gained the
CHANGE_NETWORK_STATE permission. Explicitly add
CONNECTIVITY_USE_RESTRICTED_NETWORKS so that it can obtain sufficient
permission in netd no matter CHANGE_NETWORK_STATE is set or not.

Remove a duplicate row by the way.

Bug: 185071689
Test: atest NetdClientTest#protectFromVpnTcp6
Change-Id: I64bc321de2c83378ce7bc8d9eb3044ae7772faca
2021-04-16 05:48:47 +00:00
Hyundo Moon
6ffbb9568c Change MODIFY_AUDIO_ROUTING permission to MEDIA_CONTENT_CONTROL
As changing the permission for MediaRouter2 system APIs, this CL
changes the permission in shell accordingly.

The permission was added by ag/13959439.

Bug: 183428114
Test: Passed CTS tests
Change-Id: I3aee256a11db730dd786e69821f3bb8bd590074f
2021-04-15 20:01:06 +09:00
Treehugger Robot
7a37d828de Merge "Grant shell missing permissions" am: 51e5e80876 am: e2919bf071
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1670006

Change-Id: I6f59648db0f0a2eaf62bfb4b1f00fba14b2eb21b
2021-04-15 02:16:04 +00:00
Treehugger Robot
51e5e80876 Merge "Grant shell missing permissions" 2021-04-15 00:52:03 +00:00
Treehugger Robot
290be221d5 Merge "Shell: Allow usage of UwbManager APIs" am: 762a92d755 am: b6dd284973
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675747

Change-Id: I9f89544359bc20a67bf86e65e0cf4f29860591f8
2021-04-15 00:13:38 +00:00
Roshan Pius
43158d470e Shell: Allow usage of UwbManager APIs
This permission is needed for uwb CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the app to range to uwb devices.

What options did you explore that did not need this permission?
- Without this permission, it would be impossible to test any of the
UwbManager API's.

Bug: 183747097
Test: Compiles
Change-Id: Ie4264cdcd3f84c965da70f8f8fefe538378c47f6
Merged-In: Ie4264cdcd3f84c965da70f8f8fefe538378c47f6
2021-04-14 21:01:58 +00:00
Roshan Pius
6e943b5450 Merge "Shell: Allow usage of UwbManager APIs" into sc-dev 2021-04-14 21:01:40 +00:00
Roshan Pius
8cf4edc118 Shell: Allow usage of UwbManager APIs
This permission is needed for uwb CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the app to range to uwb devices.

What options did you explore that did not need this permission?
- Without this permission, it would be impossible to test any of the
UwbManager API's.

Bug: 183747097
Test: Compiles
Change-Id: Ie4264cdcd3f84c965da70f8f8fefe538378c47f6
2021-04-14 11:53:19 -07:00
Abhijeet Kaur
6d27ed1a3b Merge "Add ACCESS_MTP permission to Shell for CTS test coverage" into sc-dev 2021-04-14 14:47:43 +00:00
Issei Suzuki
8560c1c2b1 Merge "Let keyguard (un)occlude animation run even when no activity exists." into sc-dev 2021-04-14 09:50:32 +00:00
Charles Chen
030a75463e Merge "Enable WindowContext to associate with WindowToken" into sc-dev 2021-04-13 14:29:44 +00:00
Abhijeet Kaur
a8ddeb4feb Add ACCESS_MTP permission to Shell for CTS test coverage
Bug: 183377919
Test: atest CtsScopedStorageHostTest
Change-Id: Ic66617e66fd88302ee82bfeb217f9b7bf9b3776b
2021-04-13 11:25:24 +01:00
Charles Chen
a5b660e386 Enable WindowContext to associate with WindowToken
This CL instroduces WMS#attachWindowContextToWindowToken
and the corresponding API in WindowContextController to make
WindowContext able to associate with a WindowToken.

Test: atest WindowContextControllerTest
Test: atest WindowManagerServiceTests#testAttachWindowContextToWindowToken*
Bug: 159767464

Change-Id: I807a67fba149cbdc4267442bab0b64e6a95bd4b5
2021-04-13 15:55:49 +08:00
TreeHugger Robot
c74ea74939 Merge "Upgrading allowlist for calendar provider" into sc-dev 2021-04-12 19:56:32 +00:00
Suprabh Shukla
cd83b1fac7 Upgrading allowlist for calendar provider
This allows it to schedule alarms while the device is in doze without
needing SCHEDULE_EXACT_ALARM permission, which is user visible.

Test: adb logcat -s AndroidRuntime
should show no crashes for "com.android.providers.calendar" due to
missing SCHEDULE_EXACT_ALARM.

Bug: 171306433
Change-Id: I3dc358f0de0f6d869c3c6e7d6c2c243dc2348096
2021-04-09 14:52:46 -07:00
Antonio Kantek
5b72ad35da Merge "Deleting SecondaryHomeApp" into sc-dev 2021-04-09 18:22:05 +00:00
Kholoud Mohamed
4701b29dbc Merge "Grant shell missing permissions" into sc-dev 2021-04-09 16:31:25 +00:00
kholoud mohamed
b8bd53aa60 Grant shell missing permissions
Granted shell the missing normal, dangerous, and
development permissions that can already be granted
to third party apps.

Test: N/A
Bug: 183716601
Merged-In: I11df0d753f830b6ba6ea2222f7d8a7d778161953
Change-Id: I11df0d753f830b6ba6ea2222f7d8a7d778161953
2021-04-09 16:30:07 +01:00
Issei Suzuki
b615394f34 Let keyguard (un)occlude animation run even when no activity exists.
Keyguard (un)occlude transition can be executed even before the
occluding app becomes ready. Normally we skip to run remote animation
for such cases since nothing to animate, however, KeyguardService uses
IRemoteAnimationRunner#onAnimationStart as a signal to update its
internal state, so WindowManager has to trigger the binder call.

Bug: 175687166
Bug: 182975035
Test: atest AppTransitionControllerTest
Change-Id: I190f2cf750f849b8aafdb43642cb03e5382f50d5
2021-04-09 15:08:23 +02:00
kholoud mohamed
b173952e19 Grant shell missing permissions
Granted shell the missing normal, dangerous, and
development permissions that can already be granted
to third party apps.

Test: N/A
Bug: 183716601
Change-Id: I11df0d753f830b6ba6ea2222f7d8a7d778161953
2021-04-09 11:10:49 +01:00
Jeff Sharkey
6dcac06a84 New BLUETOOTH_ADVERTISE manifest permission.
This change is part of defining a distinct BLUETOOTH_ADVERTISE
permission to guard the BluetoothLeAdvertiser APIs, since that's a
distinct enough of an operation from SCAN and CONNECT.  It'll
continue to be covered under the general "Nearby devices" runtime
permission group.

Bug: 181813006
Test: atest CtsPermission2TestCases
Test: atest CtsPermission3TestCases
Change-Id: I8b62e4d625df1e201f12a73025cd29c431feea79
2021-04-08 20:15:02 -06:00
Benjamin Franz
eceaea94ba Merge "Grant OVERRIDE_COMPAT_CHANGE_CONFIG_ON_RELEASE_BUILD to Shell" am: 9a24f337aa am: 780e00790d am: f7d6fde325
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1652463

Change-Id: Ice653f148e2d8930f58a73e36ddcaa5ffd96a4d7
2021-04-08 12:32:52 +00:00
Benjamin Franz
f7d6fde325 Merge "Grant OVERRIDE_COMPAT_CHANGE_CONFIG_ON_RELEASE_BUILD to Shell" am: 9a24f337aa am: 780e00790d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1652463

Change-Id: I4125df76162b59617e071b9a72f8cbad1a7916c2
2021-04-08 12:26:28 +00:00
Benjamin Franz
9a24f337aa Merge "Grant OVERRIDE_COMPAT_CHANGE_CONFIG_ON_RELEASE_BUILD to Shell" 2021-04-08 11:06:09 +00:00
Tyler Trephan
4205aa9048 Merge "Updated com.android.car.shell.xml to support collecting steering and tire pressure information in ATS CarDeviceInfo." into sc-dev 2021-04-06 21:02:39 +00:00
Antonio Kantek
c056c563aa Deleting SecondaryHomeApp
This CL is part of the effort of deleting ActivityView.

Test: atest CarServiceUnitTest
Bug: 179161778
Change-Id: I42c62b2e7292e46758383aa0dec50ab4cc0c8415
2021-04-06 13:50:05 -07:00