Commit Graph

2203 Commits

Author SHA1 Message Date
TreeHugger Robot
31395c10a1 Merge "Grant permission to shell for ResourceObserverNativeTest" into sc-dev am: c8593c879e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13903088

Change-Id: I303b101d12ec4649cd9e1304f7ee2b82eeb465d2
2021-03-19 19:56:43 +00:00
Chong Zhang
00967754c3 Grant permission to shell for ResourceObserverNativeTest
bug: 178811728
bug: 182845274
test: atest ResourceObserverNativeTest
Change-Id: I60e745c4ff32cbf8f8ff8b5d016555a25a065f39
2021-03-19 09:45:35 -07:00
Kevin Han
3c753aedf7 Merge "Add MANAGE_APP_HIBERNATION permission" into sc-dev am: 44a573f76d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13909632

Change-Id: I4d428ebbf7a2bd072712aab94528a1e5db4ff058
2021-03-19 06:45:24 +00:00
Kevin Han
7d14fde4f4 Add MANAGE_APP_HIBERNATION permission
Add permission for app hibernation state manipulation.

Bug: 183058954
Test: run hibernation job and confirm the API works for
PermissionController

Change-Id: Id57ee57f49710d0b8a49a4ec561800db43089f87
2021-03-18 17:02:25 -07:00
Evan Rosky
5d3b5f70c7 Merge "Initial support for display rotation in shell transitions" into sc-dev am: 557bab6f87
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13538094

Change-Id: I5ec9639c906c016d01ecd994fcce4ee2d2db039f
2021-03-18 23:27:22 +00:00
Evan Rosky
557bab6f87 Merge "Initial support for display rotation in shell transitions" into sc-dev 2021-03-18 23:24:48 +00:00
Uchenna Okoye
d59b6d9367 Merge "Add priv-app permissions for CarMessenger" into sc-dev am: 932239de0b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13891739

Change-Id: Iba8efd590b957772672ef8fcf0f4506700698abb
2021-03-18 22:05:30 +00:00
Uchenna Okoye
932239de0b Merge "Add priv-app permissions for CarMessenger" into sc-dev 2021-03-18 20:03:56 +00:00
Zimuzo Ezeozue
874bc578dd Merge "Fix MANAGE_EXTERNAL_STORAGE permission gid mapping" into sc-dev am: b3705153db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13904105

Change-Id: I4703fe976a07e5468cf1db5ac5fcdde986d5d93d
2021-03-18 15:07:13 +00:00
Zimuzo Ezeozue
b3705153db Merge "Fix MANAGE_EXTERNAL_STORAGE permission gid mapping" into sc-dev 2021-03-18 15:02:17 +00:00
Shawn Lin
d5487de775 Merge "[Reland] Add nav bar case to RemoteAnimationTarget of non-app window" into sc-dev am: 730ab07d11
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13805247

Change-Id: Ib9197432680a8994a7774c867027c6563dc4be84
2021-03-18 14:05:17 +00:00
Shawn Lin
730ab07d11 Merge "[Reland] Add nav bar case to RemoteAnimationTarget of non-app window" into sc-dev 2021-03-18 13:32:36 +00:00
TreeHugger Robot
8bbdbef937 Merge "Only allow preinstalled application to be able to call setHotwordDetectionServiceConfig" into sc-dev am: 3be701e767
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13877206

Change-Id: I9b397efbc045fe63cee660019276aef998431356
2021-03-18 08:55:26 +00:00
TreeHugger Robot
3be701e767 Merge "Only allow preinstalled application to be able to call setHotwordDetectionServiceConfig" into sc-dev 2021-03-18 08:24:21 +00:00
Wei Sheng Shih
0803df6aa6 Merge "Do not add starting window after the starting data was cleared." into sc-dev am: 6397a19ee8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13877248

Change-Id: I76b6a625764f389bb2f99d5ad041fe3e46825ef2
2021-03-18 05:10:05 +00:00
TreeHugger Robot
1d014e00f8 Merge "Added CarService Privileged permissions to xml files" into sc-dev am: da5e602a8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13769971

Change-Id: I5056e36e1c589724f13e0b51409e858a792f7b73
2021-03-18 05:08:55 +00:00
Wei Sheng Shih
6397a19ee8 Merge "Do not add starting window after the starting data was cleared." into sc-dev 2021-03-18 04:38:20 +00:00
TreeHugger Robot
da5e602a8d Merge "Added CarService Privileged permissions to xml files" into sc-dev 2021-03-18 04:32:59 +00:00
Mayank Garg
b61b288740 Added CarService Privileged permissions to xml files
Bug: 177455922
Test: m
Change-Id: I204de0a0e8b8c42ac734ea7393da67b78727cb74
2021-03-17 18:15:23 -07:00
Evan Rosky
1551cb7307 Initial support for display rotation in shell transitions
This puts display-content as another WC in a transition. It then
adds WC rotation to change tracking. If there is a rotation,
the shell-side handlers will play the transition.

This replaces ScreenTransitionAnimation, seamless-rotation, and
fixed-rotation:

 ScreenTransitionAnimation implementation will move to shell.

 seamless-rotation is redundant because the rotation setup is
 intrinsically "seamless": it requires shell to imbue an
 animation onto it rather than just doing the jump-cut.

 fixed-rotation is now just a custom animation where we
 counter-rotate the closing app on frame 1 and then perform
 the normal open animation on the opening app.

Bug: 179270750
Test: DisplayContentTests#testShellTransitRotation
      enable shell transitions and rotate the device or launch
      and close apps in different orientations.
Change-Id: I4bc23b2e614ba85bf9752f62da4c3f8d0c90436d
2021-03-17 15:08:10 -07:00
Zim
782dc19e95 Fix MANAGE_EXTERNAL_STORAGE permission gid mapping
In Android R, we introduced a platform.xml based
mapping. Unfortunately, it only worked for signature|preinstalled
apps.

To support apps granted the appop (via special app access
permissions), we now check the permission and appop grant state
explicitly and grant the app the external_storage gid appropriately

Test: Manual
Bug: 165515144

Change-Id: Ib91e1b3a7e54ac2c83fb1d94446bed06fd44bcf6
2021-03-17 19:42:18 +00:00
lpeter
b787d41387 Only allow preinstalled application to be able to call setHotwordDetectionServiceConfig
We added a new permission "MANAGE_HOTWORD_DETECTION" to allow
the application that held this permission to be able to use
setHotwordDetectionServiceConfig functions.

In order to avoid the feature leakage, we submit the change
about Shell in internal branch.

Bug: 178346114
Test: atest CtsVoiceInteractionTestCases
Test: atest PermissionPolicyTest
Change-Id: I8829c3c389fb5fe4b06ffcf21870db50fa2ede4b
2021-03-17 19:37:16 +08:00
wilsonshih
e19a5a29d6 Do not add starting window after the starting data was cleared.
After moving the starting window logic to Shell, some timeing could be
changed. For some case the starting window could be added back to
window manager after app has drawn, for this case the mStartingData
was already cleared.
A reasonable solution should to prevent the starting window add back
to window manager if window manager already clear the starting data,
and for this case we don't need to remove the starting window from
window manager.

Bug: 182749276
Test: atest ActivityRecordTests
Change-Id: Iec8581908a413a1d8f70a2006d58386c5c8f5b86
2021-03-17 12:00:22 +08:00
shawnlin
8da5fa2d48 [Reland] Add nav bar case to RemoteAnimationTarget of non-app window
1. Only send navigation bar target when:
   - It is the transition of launching an app
   - In gesture navigation bar mode
   - The navigation bar is not controlled by fixed rotation or recents

2. Add a windowType field to RemoteAnimationTarget so that the remote
   clients could use this to find the non-app window they want.

3. Handle the onAnimationFinish() callback for non-app adapters.

Bug: 139273001
Test: atest RemoteAnimationControllerTest
Change-Id: I0612163502bdda01c4bdbae3b0ecda47efedad51
2021-03-17 10:08:23 +08:00
Uchenna Okoye
4c90a7d30e Add priv-app permissions for CarMessenger
Bug: 177455922
Change-Id: I221d5571fa0db8b1dd2368ab98733e85008d542a
Test: Tested locally and it grants desired permissions
2021-03-17 00:30:07 +00:00
Mayank Garg
c83a159d8a Merge "Fix indentation" into sc-dev am: 4d72b2528c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13891788

Change-Id: Ief757f9fcf13c0f9b9f51c1d058d831ad4c2eb0c
2021-03-17 00:12:19 +00:00
Mayank Garg
e5eb17a7cc Fix indentation
Bug: 177455922
Test: Warning removed

Change-Id: I9d8b3adfeb4ad160ee187732b2907e41692491a1
2021-03-16 20:36:03 +00:00
Mayank Garg
dc473312ec Merge "Added CarService Privileged permissions to xml files" into sc-dev am: 82769e003b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13879801

Change-Id: Ie8845766fb79db367ff6e8f7643a2d821a4e585a
2021-03-16 20:17:50 +00:00
Evan Rosky
60a4126f38 Merge "Do the same size-configuration bucketing on both server and client" into sc-dev am: 1b529aa19d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13844692

Change-Id: I4342e8c04a2fdcb0dbe32e10232b2fe1a35c87f0
2021-03-16 20:16:24 +00:00
Mayank Garg
82769e003b Merge "Added CarService Privileged permissions to xml files" into sc-dev 2021-03-16 20:09:13 +00:00
Evan Rosky
1b529aa19d Merge "Do the same size-configuration bucketing on both server and client" into sc-dev 2021-03-16 19:37:12 +00:00
Mayank Garg
70271f0685 Added CarService Privileged permissions to xml files
Bug: 177455922
Test: m
Change-Id: I0e96a9cd9043760b8bc89427f66651e29263529b
2021-03-16 01:25:52 -07:00
Evan Rosky
6c5f8fc3d8 Do the same size-configuration bucketing on both server and client
Otherwise they get out-of-sync and sometimes AR will not relaunch
the app, but the app client will think it needs to be relaunched

Bug: 181697795
Test: app configuration tests pass.
      With 3-button nav, open app in split and observe launcher
      reconfigure properly.
Change-Id: Idc8d71d92d9ae107e3adb949a2137de6c08908e9
2021-03-15 15:37:07 -07:00
TreeHugger Robot
2b15f50224 Merge "Added interact accross user permission to media uid" into sc-dev am: 2cd2ed4c7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13843050

Change-Id: Ic4167100f4c6d80205a47a392128f7156bbd8bca
2021-03-15 18:47:58 +00:00
TreeHugger Robot
7b9d5c55bc Merge "Remove system_ext_specific from rotaray priv perms" 2021-03-12 23:47:30 +00:00
Danny Epstein
edffa6efd0 Remove system_ext_specific from rotaray priv perms
Test: check for boot loop
Bug: 182479937
Change-Id: I2f96a43aaa766ad06dcf08cb6845e584b1a4570f
2021-03-12 14:31:02 -08:00
Robert Shih
929a5c6da6 Merge "Give uid media REGISTER_STATS_PULL_ATOM permission" into sc-dev am: 8201fd11d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13851902

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0852b9c4cf746169d01f3ac055081975089ac3f1
2021-03-12 18:57:28 +00:00
Oscar Azucena
4537327187 Added interact accross user permission to media uid
Added interact accross user permission to media uid so that it can query
packages for UID in cases where media service is running for user 0 and
applications runs for different user id (i.e. 10) as is the case in car.

Bug: 181574201
Test: build seahawk (car target)
Test: run media recorder application with RECORD_AUDIO permission
Test: run media recorder application without RECORD_AUDIO permission
Change-Id: I5052c92831978a7e6c8277d3c5a4e6cb5ed8a78b
2021-03-12 10:50:54 -08:00
Robert Shih
8201fd11d9 Merge "Give uid media REGISTER_STATS_PULL_ATOM permission" into sc-dev 2021-03-12 18:40:00 +00:00
Robert Shih
7562087ee0 Give uid media REGISTER_STATS_PULL_ATOM permission
Bug: 141714243
Bug: 159337195
Test: statsd_testdrive 10099
Change-Id: I08d4f4aef3dcd7c94e9a120b0d4fa1d1e267a2b0
2021-03-12 16:58:23 +00:00
TreeHugger Robot
b4e8b95b20 Merge "Update FontManager#getFontConfig to require permission" into sc-dev am: 45125b21b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13758224

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9e7351bf5bbf894ae99aa0bdd26ceffb93e21428
2021-03-12 08:08:43 +00:00
TreeHugger Robot
45125b21b4 Merge "Update FontManager#getFontConfig to require permission" into sc-dev 2021-03-12 07:59:09 +00:00
Issei Suzuki
307c19ad9c Merge "Make sure that IRemoteAnimationController is always triggered." into sc-dev am: b596505c95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13699587

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I940bffd0f437a6524926014932faa5266eb59e2f
2021-03-11 12:35:49 +00:00
Issei Suzuki
b596505c95 Merge "Make sure that IRemoteAnimationController is always triggered." into sc-dev 2021-03-11 12:33:47 +00:00
Philip Junker
21106a47fd Merge "Map reference remote control to a single key-layout file" into sc-dev am: b47e468602
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13580618

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6c6fb54ea5977cc27319eada7f597bcb8a167470
2021-03-11 08:45:20 +00:00
Philip Junker
b47e468602 Merge "Map reference remote control to a single key-layout file" into sc-dev 2021-03-11 08:26:45 +00:00
Naomi Musgrave
871fc1745c Merge changes from topic "sandboxing-display" into sc-dev am: c50df25a88
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13727469

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic66c276ff5a1d54d85b0863fa377ba5c7096a041
2021-03-10 17:16:20 +00:00
Seigo Nonaka
84383b5ef8 Update FontManager#getFontConfig to require permission
There is no security risk in getFontConfig without calling permissions
but for keeping compatibility it is recommended to have permissions
to all (non-mainline) system APIs.

To be able to test these APIs, grant UPDATE_FONTS permission to shell.

Bug: 181796732
Test: atest FontManagerTest
Change-Id: Ic1f663e1e01f3625a076e68949f717366e79f5fa
2021-03-09 18:13:20 -08:00
Naomi Musgrave
93281edad3 Sandbox letterbox and size compat apps
Sandbox Display#getRealSize and WindowManager
bounds when letterbox or size compat mode are
applied to the configuration. Display uses
this field to provide the sandboxed display
size.

This reverts commit 0ba6185639.

Test: atest WindowConfigurationTests
Test: atest FrameworksMockingCoreTests:android.view.DisplayTests
Test: atest WmTests:SizeCompatTests
Bug: 181219241

Change-Id: I86e8edb8368269da8e02cf34f429d245550666c6
2021-03-09 22:48:07 +00:00
Oli Lan
f792a1007d Merge "Add SET_CLIP_SOURCE permission." into sc-dev am: f6ff2ea934
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13710806

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib705f1b35d38183b844edae514fc595a8c97f9fb
2021-03-08 15:45:18 +00:00