Commit Graph

2046 Commits

Author SHA1 Message Date
Naomi Musgrave
4d3f1c5681 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.

Test: atest WindowConfigurationTests
Test: atest FrameworksMockingCoreTests:android.view.DisplayTests
Test: atest WmTests:SizeCompatTests
Bug: 171386167
Change-Id: I6f78edcd9214b52ab0708e3892bc86ee05bb5b9a
2021-02-03 10:03:20 +00:00
Evan Severson
5ce8ae9c74 Merge "Remove mic/camera permission split" into sc-dev 2021-02-02 21:06:35 +00:00
Evan Severson
7ce41c1082 Remove mic/camera permission split
Apps can't request this permission anyways so some apps started
misbehaving when forcing users to grant all permissions without caring
what they are.

Test: Boot
Fixes: 172844303
Bug: 158311343
Change-Id: Ia83ad5433ff3cdae57d901b3a9d781725124c6b9
2021-02-01 18:11:04 -08:00
Etan Cohen
d8a9174f85 Merge "Revert "Grant shell permissions for Airplane Mode to Shell to support CTS"" am: ec8ebce98e am: af364469e5 am: 59f5bcf834
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556331

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6752b057e8fd540a88b494a5c5e86a5902b8b147
2021-01-29 23:39:48 +00:00
Etan Cohen
59f5bcf834 Merge "Revert "Grant shell permissions for Airplane Mode to Shell to support CTS"" am: ec8ebce98e am: af364469e5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556331

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9987a2c2a98bff2e29cad4624b73bde0c37278dd
2021-01-29 23:23:13 +00:00
Etan Cohen
ec8ebce98e Merge "Revert "Grant shell permissions for Airplane Mode to Shell to support CTS"" 2021-01-29 21:05:59 +00:00
Sunny Goyal
4ee257ce72 Replacing some explicit recents components checks with permission checks
Bug: 177096054
Test: Presubmit for quickstep
Change-Id: Ia824ed21a3836548eccb186ee7c9a3f697e9ee66
2021-01-28 17:28:18 -08:00
Etan Cohen
258ae119c9 Merge changes I0eb0362e,Iec9b579d am: 6c0e8ad627 am: 1e9a56a83f am: 59b4925437
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556330

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4ed7e75d5d51ddb7d3f18917eedddc292d83cf5f
2021-01-28 06:49:16 +00:00
Etan Cohen
59b4925437 Merge changes I0eb0362e,Iec9b579d am: 6c0e8ad627 am: 1e9a56a83f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556330

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I46be3b5cf0ccdd24545f671f09b5cc90aedca9e3
2021-01-28 05:57:41 +00:00
Etan Cohen
6c0e8ad627 Merge changes I0eb0362e,Iec9b579d
* changes:
  Grant shell permissions for restart WiFi subsystem to Shell to support CTS
  [WIFI] New permission to control restart of the WiFi subsystem
2021-01-28 04:47:00 +00:00
Fan Zhang
e7ce67f421 Cherry-pick I111dbda3418edf4fcf34aa26f39dc6ce662f2e5d
Pre-grant START_ACTIVITIES_FROM_BACKGROUND to emergency app

The emergency app needs this permission to start foreground service
after sdk 31.

Fix: 172364084
Test: manual
Change-Id: I111dbda3418edf4fcf34aa26f39dc6ce662f2e5d
(cherry picked from commit fb001c98ee)
2021-01-27 18:56:19 +00:00
Nathalie Le Clair
1c9c511c88 Merge "Map power button on reference remote to KEYCODE_TV_POWER" 2021-01-26 09:51:23 +00:00
Louis Chang
89d04c4b3c Rename Stack to Task related terms (6/n)
Update local variables and comments with Task terms.

No logical changes.

Bug: 157876447
Test: presubmit
Change-Id: Iffcd5ca8971fc8856775538c3eebcefef2cf4b24
2021-01-26 10:51:26 +08:00
Jeffrey Vander Stoep
c3a696c11f Merge "Add alanstokes@ to privileged permissions OWNERS" am: bb448f504f am: e5bf14e7aa am: c819062e8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556082

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0291ba4d4e357e2ede73beba432290c23e2cf220
2021-01-26 00:45:03 +00:00
Jeffrey Vander Stoep
c819062e8c Merge "Add alanstokes@ to privileged permissions OWNERS" am: bb448f504f am: e5bf14e7aa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556082

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0721a35678546bc37259893a1f5f903e75149e0b
2021-01-26 00:05:23 +00:00
Dan Harms
c35595328e Merge "Remove bundled CompanionDeviceSupport permissions" into rvc-qpr-dev am: 2aa95e8da1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13376635

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I67f91217dd60ee4956d70715a027f422fcbc3885
2021-01-25 23:03:14 +00:00
Dan Harms
2aa95e8da1 Merge "Remove bundled CompanionDeviceSupport permissions" into rvc-qpr-dev 2021-01-25 22:37:52 +00:00
Charles Chen
7675c61e6a Merge "Creates WindowToken for WindowContext" 2021-01-25 02:11:09 +00:00
Makoto Onuki
728673a0cc Merge "Add priv-permissions to the allowlist." 2021-01-22 23:09:42 +00:00
Jordan Liu
5050ce2d31 Merge "Add BROADCAST_CLOSE_SYSTEM_DIALOGS to allolist for cbr" 2021-01-22 19:13:18 +00:00
Makoto Onuki
83e38b2492 Add priv-permissions to the allowlist.
Bug: 177920807
Test: atest CtsPermission2TestCases:android.permission2.cts.PrivappPermissionsTest#privappPermissionsNeedToBeWhitelisted -- --abi arm64-v8a
Change-Id: I01d60ff89ee2eb38bab37a1d00c5e81bd6a06c01
2021-01-22 10:48:20 -08:00
Dan Harms
fdebebe16a Merge "Remove bundled CompanionDeviceSupport permissions" 2021-01-22 17:57:52 +00:00
Etan Cohen
f357a045b3 Revert "Grant shell permissions for Airplane Mode to Shell to support CTS"
This reverts commit ddb4902597.

Change-Id: I7d5433bf676661ede208f840c27a71abbe663195
2021-01-21 19:55:12 -08:00
Etan Cohen
d8d9e9c041 Grant shell permissions for restart WiFi subsystem to Shell to support CTS
New permission is needed to allow CTS to trigger the new WiFi subsystem
restart API.

Bug: 175084231
Bug: 178125790
Test: atest android.net.wifi.cts.WifiManagerTest#testRestartWifiSubsystem
Change-Id: I0eb0362e6421480c10ba64f923a9069d1258d4ca
2021-01-21 19:54:05 -08:00
Keun-young Park
81eee38e4b Merge "Change target package for com.android.car.shell" into rvc-qpr-dev am: 24a5429296
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13383398

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifc629d9ec7c9ee678a164199c8499534bbf60450
2021-01-22 02:39:13 +00:00
Dan Harms
c7a0cefd4f Remove bundled CompanionDeviceSupport permissions
Bug: 160037666
Test: m
Change-Id: Ib96198a39c18a0b9c3cf64c0c58c89b1a5b62c19
2021-01-21 17:31:13 -08:00
Adam Bookatz
1f04060be0 UserSystemPackageInstaller auto-treats static overlays
The UserSystemPackageInstaller installs packages on new users
based on their configuration in an allowlist. An exception was
made for auto-generated RROs, which were instead installed based
on their overlay target package's configuration (thus avoiding
the need for manually allowlisting each such overlay).

This is now expanded to all static overlays (which should
include auto-generated RROs, according to the bug). That is:
Static overlays no longer need to be mentioned in the list,
but will instead be installed based on the listing for their
overlay target package.

Test: atest UserSystemPackageInstallerTest
Fixes: 172956245
Change-Id: I6b974bba20ee059a8f744092db7c3441580d327f
2021-01-21 17:19:02 -08:00
Dan Harms
25aa649c3e Remove bundled CompanionDeviceSupport permissions
Bug: 160037666
Test: Compiles
Change-Id: I955916f97815fb55a4e701f69a01a975e0d0c205
Merged-In: Ib96198a39c18a0b9c3cf64c0c58c89b1a5b62c19
2021-01-21 23:19:32 +00:00
Jordan Liu
67043d59c6 Add BROADCAST_CLOSE_SYSTEM_DIALOGS to allolist for cbr
Bug: 177346942
Test: manual
Change-Id: Icc512fd8e205bdc6645558053f254e2b39bea077
2021-01-21 11:55:55 -08:00
Keun young Park
ffdc3f0634 Change target package for com.android.car.shell
- It now overrides shell package itself

Bug: 177099512
Test: Check if shell package has all necessary permissions
Change-Id: I139b47fcb2992e42da020aaac8680ae8dd2efac0
Merged-In: I139b47fcb2992e42da020aaac8680ae8dd2efac0
(cherry picked from commit 2bd010b7e5)
2021-01-21 17:21:02 +00:00
Bernardo Rufino
0a80905457 Merge "[Attempt #2] Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS" 2021-01-21 17:07:20 +00:00
Jeff Vander Stoep
6e303194f9 Add alanstokes@ to privileged permissions OWNERS
Test: n/a
Change-Id: Ic4ffafeb36d2bc69ebdd39e3f8ff40547bdcddd3
2021-01-21 15:37:34 +01:00
Charles Chen
8cb667570c Creates WindowToken for WindowContext
...  until it adds the first view

In R, we create WindowToken for every WindowContext creation.
In S, we only create WindowToken for the WindowContext which adding
a view.
This CL also provide the ability to attach an existing WindowToken
by overriding WindowManager.LayoutParams.mToken, and remove the
WindowContext created WindowToken after WindowContext destruction.

Bug: 159767464
Bug: 153369119
Test: atest WindowTokenTests WindowContextListenerControllerTests
Change-Id: Iefe0315461b452a84cecbff2d08ee04c1f34051d
2021-01-21 17:47:01 +08:00
Hall Liu
bf1c45fea5 Merge "Add new columns in CallLog" 2021-01-20 18:32:26 +00:00
Bernardo Rufino
5e390e7998 [Attempt #2] Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS
Original CL got reverted because target aosp_arm64-userdebug was failing
to boot. Apparently, the right place to put the permission for launcher3
is in frameworks/base/data/etc/com.android.launcher3.xml, not
frameworks/base/data/etc/privapp-permissions-platform.xml (despite it
having an entry on the latter) because launcher3 lives in system_ext.

-- Original CL description

CellBroadcastReceiver, a mainline module signed with the networkstack,
needs it before showing emergency alerts to the user.

This is inline and ok with the rest of of the restrictions given that
STATUS_BAR that allows calls to StatusBarManager.collapsePanels() also
has "privileged" protection level.

Also adding permission to privapp-permissions-platform for Launcher3
because of b/177506944, despite it getting it via "recents" protection
level.

Bug: 177346942
Bug: 159105552
Test: atest PermissionPolicyTest
Test: Run DeviceBootTest for aosp_arm64-userdebug in forrest.
Change-Id: Ie3298c839003aeaca3cc84782e8846374beca5b8
2021-01-20 09:20:28 +00:00
Ivan Chiang
61b1b4e80f Merge "Revert "Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS"" 2021-01-20 01:53:15 +00:00
Ivan Chiang
0c2c8dab31 Revert "Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS"
Revert "Add BROADCAST_CLOSE_SYSTEM_DIALOGS to launcher via privi..."

Revert "Udpate BROADCAST_SYSTEM_DIALOGS permission in CTS"

Revert submission 13328953-acsd-privileged

Reason for revert: DeviceBootTest#REBOOT_TEST fail on b/177952808.
Reverted Changes:
Id3fdaf36f:Udpate BROADCAST_SYSTEM_DIALOGS permission in CTS
I40a28210f:Add BROADCAST_CLOSE_SYSTEM_DIALOGS to launcher via...
If027c6824:Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS

Change-Id: I2a2e12af9075727e0d6f0be07467c4ba9285b2d3
2021-01-20 01:46:08 +00:00
Keun-young Park
81eb442457 Merge changes from topic "carshell"
* changes:
  add Shell-package-library to allow product type level update
  Change target package for com.android.car.shell
2021-01-20 01:27:49 +00:00
Hall Liu
6b7885f153 Add new columns in CallLog
Add new column definitions in the call log db to support storing the new
call composer elements in the call log. Also refactor addCall to use a
builder pattern, and add READ_VOICEMAIL for shell in order to support
new CTS tests

Test: atest CallLogTest
Bug: 174798736
Change-Id: I00e127510c382d9ff0ffc70f4c5ad7179ac7319a
2021-01-19 16:06:13 -08:00
Bernardo Rufino
ee605b6465 Merge "Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS" 2021-01-19 17:44:55 +00:00
Nathalie Le Clair
eaad5f357b Map power button on reference remote to KEYCODE_TV_POWER
After this change, the power button on the reference remote will function
as a power toggle for the HDMI-connected display (=TV) power state. The
device will then follow the TV power state.

Bug: 157402294
Test: N/A
Change-Id: I462f792f5aae8c47c876d3ea3dfea64fc1c551b5
2021-01-19 15:36:43 +01:00
TreeHugger Robot
79f7e576b7 Merge "DO NOT MERGE Remove floating cards launcher" into rvc-qpr-dev-plus-aosp 2021-01-15 17:31:56 +00:00
Heemin Seog
c45278479f DO NOT MERGE Remove floating cards launcher
Bug: 177364704
Test: none
Change-Id: I8f19d7d58ee78b64d93de265739a7a880b6a52df
Merged-In: I8f19d7d58ee78b64d93de265739a7a880b6a52df
2021-01-15 06:23:07 +00:00
Heemin Seog
7c963eaa6e DO NOT MERGE Remove floating cards launcher
Bug: 177364704
Test: none
Change-Id: I8f19d7d58ee78b64d93de265739a7a880b6a52df
2021-01-14 19:46:21 +00:00
Bernardo Rufino
4d62bdba97 Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS
CellBroadcastReceiver, a mainline module signed with the networkstack,
needs it before showing emergency alerts to the user.

This is inline and ok with the rest of of the restrictions given that
STATUS_BAR that allows calls to StatusBarManager.collapsePanels() also
has "privileged" protection level.

Also adding permission to privapp-permissions-platform for Launcher3
because of b/177506944, despite it getting it via "recents" protection
level.

Bug: 177346942
Bug: 159105552
Test: atest PermissionPolicyTest
Change-Id: If027c6824a58c8b9a917f9995e34bf8b306cab54
2021-01-14 12:23:19 +00:00
Meng Wang
e74bc55417 Add privapp permissions for ImsServiceEntitlement
Bug: 176127289
Test: make
Change-Id: Ic322a097ef2d33f52da593fbc4e3acd78674b220
2021-01-13 14:38:51 -08:00
Adam Bookatz
185089663b Merge "Add User* OWNERS file (part 2)" am: da79da08f0 am: b9b73d26db am: 9ac98ffa59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3fc005c69350f13002ceea055c7b97b8486eb484
2021-01-12 21:04:55 +00:00
Adam Bookatz
9ac98ffa59 Merge "Add User* OWNERS file (part 2)" am: da79da08f0 am: b9b73d26db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1543926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I87bc14c52e4aa4ed42f73496e104f0f3182c613b
2021-01-12 20:55:13 +00:00
Adam Bookatz
6cd4cd01fb Add User* OWNERS file (part 2)
Part 1 was aosp/1546301.
Two parts are required due to b/175318571.

Test: N/A
Change-Id: I1a89f7d26da70dce36d1e891a8e8ebc4042dc56c
2021-01-12 01:03:39 +00:00
Keun young Park
2bd010b7e5 Change target package for com.android.car.shell
- It now overrides shell package itself

Bug: 177099512
Test: Check if shell package has all necessary permissions
Change-Id: I139b47fcb2992e42da020aaac8680ae8dd2efac0
2021-01-11 15:54:54 -08:00