Currently only states supported for body sensor permissions are allow
and deny. This change adds support for allowing the permission only
while the app is in foreground by adding a new permission only for
background. This structure is similar to the current state for location
permissions.
BYPASS_INCLUSIVE_LANGUAGE_REASON=Referring to an existing method failing
the inclusive language check.
Test: Manual atest
Change-Id: I8fcab6c0c884b79291586f64fd221e40982bc4c5
Bug: 208305481
Also giving it to the Shell for Cts purposes.
Test: atest CtsSafetyCenterTestCases
Bug: 208421513
Ignore-AOSP-First: Not announced yet, and need to use a permission
that hasn't been merged in AOSP
Change-Id: I2c63c54efac0add7c412fa43b77fa18ba2e486c3
Changes:
- Listens to changes from the client coming through IActivityClientController#requestCompatCameraControl to ActivityRecord#updateCameraCompatState
- ActivityRecord#updateCameraCompatState sends updated state via TaskInfo to WM Shell
- ITaskOrganizerController#updateCameraCompatControlState to dispatch the user interactions with the control from WM Shell triggers callback to ActivityRecord#updateCameraCompatStateFromUser
- ActivityRecord#updateCameraCompatStateFromUser remembers the user's choice and asks client to apply treatment through ICompatCameraControlCallback
Feature is guarded with config_isCameraCompatControlForStretchedIssuesEnabled
Test: atest WMShellUnitTests:ShellTaskOrganizerTests, atest WmTests:ActivityRecordTests
Bug: 206602997
Change-Id: I083aa6718bd67456bedd9444e9b78740c041f870
REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION permission is
"internal|role", which means that allowlisting it does not have any
effect.
Bug: 195590028
Bug: 203459457
Test: atest CtsCompanionDevicesTestCases:DeviceProfilesTest
Change-Id: Ie9f919938e0e4c57efa3dc8ae66ddfe319215392
Certain top activities will not trigger the "onTaskMovedToFront"
callback which can result in incorrect resizeability
queries. This can happen when a new activity is launched in the top
task.
To avoid this, retrieve the necessary information via the reported
recent tasks by activity manager for a given user id.
Bug: 203044281
Test: Manual using camera application
Change-Id: I61efd4282a2231e6354e5514fc25d7d27005335b
Design: go/communal-manager-api.
Note: this CL also removed "_MANAGER" from the communal service
constant, and "_manager" from the communal service name. When these
became unhidden, ApiLint.kt suggested the changes.
- http://cs/android/tools/metalava/src/main/java/com/android/tools/metalava/ApiLint.kt;l=2369-2386;rcl=0ef26a465a89c45fcfd24d648883208cd0161fd2
Ignore-AOSP-First: tied to launch of new upcoming hardware.
Test: atest CtsAppTestCases:CommunalManagerTest
Test: atest FrameworksMockingServicesTests:CommunalManagerServiceTest
Bug: 206054365
Change-Id: I6d225d6ddb482d9cffb16d1f9a25a98abd0cc382
This is to ensure the CTS tests SafetyCenterManagerTest still passes
after enforcing the permission.
Test: atest CtsSafetyCenterTestCases
Bug: 205706756
Ignore-AOSP-First: Not announced yet, and need to use a permission
that hasn't been merged in AOSP
Change-Id: Iaee11c55fc25a82299d4c45dd7d24151a4f8c30b
Adds DEVICE_LOCK permission to Shell to support the
CarDevicePolicyManagerTest. This permission is needed to call
DevicePolicyManager#lockNow which locks the device.
Bug: 187199256
Test: atest CarDevicePolicyManagerTest
Merged-In: I3fa20b53b929c97a6760d65b432a74c3415d6a08
Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
* changes:
Grant Shell CDM permissions
Check REQUEST_COMPANION_SELF_MANAGED permission in CDM
Fix usages of CDM APIs in NotificationManagerService(Test)
Refresh CompanionDeviceManager's API surface
Add explicit MAC address and display name fields
Add AudioManager system APIs to acquire call audio injection AudioTrack
and extraction AudioRecord.
Add AudioTrack and AudioRecord Builder system APIs to create different
variants of call redirection AudioTrack and AudioRecord:
- If the call is PSTN, only the AudioTrack or AudioRecord is created
with audio usage or capture preset corresponding to call audio uplink
injection or downlink capture.
- If the call is VoIP, a dynamic audio policy is installed for voice
communication interception and the AudioTrack or AudioRecord is obtained
from the audio policy.
Bug: 189472651
Test: make
Change-Id: I6d3ed3948c13253ceea4a0fab836a753b5ee9ad0
Granting Shell new permissions required for accessing
CompanionDeviceManager APIs (such as
REQUEST_COMPANION_PROFILE_APP_STREAMING,
REQUEST_COMPANION_SELF_MANAGED).
Permissions are needed for running CompanionDeviceManagerTest CTS test
(which utilizes adoptShellPermissionIdentity for accessing the API
protected by the said permissions).
Bug: 194301022
Test: atest CompanionDeviceManagerTest
Ignore-AOSP-First: new permissions (not yet in AOSP)
Change-Id: I2c8469661f3b6de4ee1e2aa37c919bc0ad25ef8f
Fixes: 207331094
Ignore-AOSP-First: Owners file aded for a new folder
which doesn't exist on AOSP
Test: adb shell dumpsys display | grep DensityMap
Change-Id: Ia46004fa8e41bb24b16a660f12873c9f9a93b6a4
WM delays to destroy window surface if the window is running an exit
animation, and clean it up after the animation finishes. In case the
clean up process was not triggered, we do it before starting an app
transition.
Note that this is a safe guard for potential bugs. The surface shall
be destroyed as soon as an animation finishes, so the clean up should
have been done before an app transition starts.
Bug: 205335975
Test: atest AppTransitionControllerTest
Change-Id: I9c37ab9ebc57ef48827df25ecc52bf09101ad419
Adds DEVICE_LOCK permission to Shell to support the
CarDevicePolicyManagerTest. This permission is needed to call
DevicePolicyManager#lockNow which locks the device.
Bug: 187199256
Test: atest CarDevicePolicyManagerTest
Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
This permission is required to query AppPredictionService.
When the unbundled Chooser doesn't request this permission,
we get a SecurityException attempting to invoke
createPredictionSession(). When we request the permission
but don't add it to this allow-list, the device boot-loops.
With the permission added in both places (and some other
local changes), the unbundled Chooser is able to show the
full set of app predictions.
Test: Manual, as described above.
Bug: 206831012
Change-Id: I154d0555471f7f8820ac151b77a61cb8d9bf7603
Loosen the check on FLAG_RESUME_WHILE_PAUSING in
TaskFragment#startPausing for auto-enter-pip.
Fixed also the round corner radius calculation in WMShell component for
entering PiP transition.
Bug: 198227082
Bug: 202574512
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bEPWcJSn8iGbLLNg6cM0E3
Test: no auto-enter on quick switch and does on launching new Task,
see video for details
Test: atest PinnedStackTests#testAutoPipOnLaunchingAnotherActivity
Change-Id: I53e62a5f6e663b2d6df8cd0aaa858ff01ef073e8
Ensure the PermissionController can receiver the WRITE_SECURE_SETTINGS
permissions, to allow it to control location enable state. Open
SensorPrivacy APIs to @SystemApi. Also updates a SystemUI string
description to point to another string in PermissionController, which
should be kept in sync
Test: Build
Bug: 194816787
Change-Id: If4a45339449cc392eed28e33453c74a3b10988b4
These two permissions are required for the most basic
ChooserActivity flows (as determined by runtime exceptions
during prototyping). Without this allow-listing, the
unbundled chooser's intent resolvers fail to register at
startup, and the device boot-loops.
Among the privileges that might require allow-listing,
these two in particular were sufficient for showing a
basic Chooser UI and launching the user-selected target.
More complex Chooser flows may turn out to require
additional permissions later on.
Test: manual testing as described above, but requires
several local-only changes to exercise the flow, and
this CL has to be the first to go in (but has no
side-effects of its own).
Change-Id: I6a24a46a91199e8b3fb643f047a9b9412b19eb8d
Query the surface flinger property
ro.surface_flinger.primary_display_orientation to determine the
primary display's install orientation. If the window is on the
primary display, then update the transform hint passed on to the
client.
Bug: 196167822
Test: check initial buffer transforms on displays with a different
install orientation
Change-Id: Idf010cd6be73172ba708820f87046c3ba3cf8001
Merged-In: Idf010cd6be73172ba708820f87046c3ba3cf8001