Commit Graph

2235 Commits

Author SHA1 Message Date
Charles Chen
6db60e7341 Merge "Make wm to own protolog JSON file" am: 9500cbd939 am: 38909ac8e9 am: 070aee9525 am: b2bf86d78d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1652221

Change-Id: Ida3f4431a983a9da6da917140682449313842c28
2021-03-30 04:14:29 +00:00
Charles Chen
b2bf86d78d Merge "Make wm to own protolog JSON file" am: 9500cbd939 am: 38909ac8e9 am: 070aee9525
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1652221

Change-Id: I740dcdbd95d779126675f3f02db09fd6630add3f
2021-03-30 04:00:10 +00:00
Charles Chen
070aee9525 Merge "Make wm to own protolog JSON file" am: 9500cbd939 am: 38909ac8e9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1652221

Change-Id: I7c1cd2edfa6a608a03d12de54e169feaa9f61db3
2021-03-30 03:29:45 +00:00
Charles Chen
7c58c18223 Make wm to own protolog JSON file
This file is used in protolog mechanism, a log system in WM packages.
WM should take the ownership.

Test: repohook check
fixes: 183642152
Change-Id: I39214156964017241562c07c3fc9a9fb7e80d0cb
2021-03-25 10:29:38 +08:00
Christine Franks
a49e0c9b6c Merge "Create VIRTUAL_INPUT_DEVICE signature permission" into sc-dev am: 592b9daa1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13954528

Change-Id: I01545992173e5492ac535b9e78bc96fa5c4e918c
2021-03-24 01:13:49 +00:00
Christine Franks
592b9daa1c Merge "Create VIRTUAL_INPUT_DEVICE signature permission" into sc-dev 2021-03-23 20:25:06 +00:00
Jay Thomas Sullivan
77e5f5b924 Split new NEARBY_DEVICES permissions am: 4452bbd065
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13834571

Change-Id: I7e6f13948a177ea4546983565f92199ba7f4bb84
2021-03-23 13:10:38 +00:00
Jeff Sharkey
9f5392e8b7 Merge changes from topic "nearby-bluetooth-permission-group" into sc-dev
* changes:
  Request new Bluetooth runtime permissions.
  Default grants for "Nearby devices" permission.
  Add BLUETOOTH_SCAN and BLUETOOTH_CONNECT app ops
  Split new NEARBY_DEVICES permissions
  Define new NEARBY_DEVICES permission group
2021-03-23 12:56:30 +00:00
Heemin Seog
b88119856b Merge "Add INTERACT_ACROSS_USERS to WMShell" into sc-dev am: 0cc4fd9db8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13907600

Change-Id: I9e7a6233274e13277bede1885780565a58a846ec
2021-03-22 21:16:29 +00:00
Heemin Seog
0cc4fd9db8 Merge "Add INTERACT_ACROSS_USERS to WMShell" into sc-dev 2021-03-22 20:53:04 +00:00
Jay Thomas Sullivan
4452bbd065 Split new NEARBY_DEVICES permissions
This creates a "split permission" from:
- BLUETOOTH to BLUETOOTH_SCAN and BLUETOOTH_CONNECT, and
- BLUETOOTH_ADMIN to BLUETOOTH_SCAN and BLUETOOTH_CONNECT
...for apps targetting SDK<31.

What this means is that any apps that use either the BLUETOOTH or the
BLUETOOTH_ADMIN permission, and target SDK<31, will automatically be
be granted the BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions.

Bug: 181813006
Test: manual
Change-Id: I92a974203fd51e87747e740273a21ba399a81cd0
2021-03-22 13:23:29 -06:00
Christine Franks
3dfad4132e Create VIRTUAL_INPUT_DEVICE signature permission
This is used to convey the AID_UHID supplemental gid

Bug: 182854143
Test: n/a
Change-Id: Iaba2db19100ad0cbc43da09e4ba0102e336a704c
2021-03-22 11:59:54 -07:00
Chris Li
3836a727c4 Merge "Sandboxing for non-resizable in multiwindow" into sc-dev am: 67b5d6f6f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13830555

Change-Id: I7a5c321f52b7c91e4daa4e46e9b91afc12d9afa1
2021-03-22 13:13:27 +00:00
Chris Li
67b5d6f6f8 Merge "Sandboxing for non-resizable in multiwindow" into sc-dev 2021-03-20 20:29:06 +00:00
Kevin Han
6debdf7e80 Add MANAGE_APP_HIBERNATION permission am: 152e389bae am: 0a4f736c02
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1646329

Change-Id: I4227b236b3569e0189381e08b1dee39513f0891f
2021-03-20 02:09:08 +00:00
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
Heemin Seog
4fe9ff343e Add INTERACT_ACROSS_USERS to WMShell
Also add it to privapp permissions for Car Launcher

Bug: 183051101
Test: manual
Change-Id: I9ad7688425c8804eded75865bf3f202bf9ff5cd2
2021-03-19 11:43:01 -07:00
Kevin Han
152e389bae 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

(cherrypick of ag/13909632)

Merged-In: Id57ee57f49710d0b8a49a4ec561800db43089f87
Change-Id: Id57ee57f49710d0b8a49a4ec561800db43089f87
2021-03-19 10:37:05 -07: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
Chris Li
d4c8686d8c Sandboxing for non-resizable in multiwindow
Sandbox max bounds for non-resizable app in multi window. Apply
sandboxing for non-resizable in multi window as long as it should
have compatDisplayInsets, so that we keep the API consistent
before and after the parent window change.

Bug: 182406985
Test: atest WmTests:SizeCompatTests
Change-Id: I0e4f3f3444d04ee6f515c74ae7f4af50edd533a7
2021-03-18 13:45:47 -07: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