Commit Graph

20093 Commits

Author SHA1 Message Date
Shashwat Razdan
01640845f0 Merge "Addressing a bug in parcelization of SmartspaceAction's bundle." into sc-dev 2021-02-17 17:18:44 +00:00
Lucas Dupin
a7db6403df Merge "Revert "Wallpaper Local color sampling"" into sc-dev 2021-02-17 16:36:06 +00:00
Jay Aliomer
3fa5fe0a1f Revert "Wallpaper Local color sampling"
Revert "Implement local color extraction"

Revert "Implement local color extraction"

Revert submission 13553866-wallpaper-local-color-extraction-sc-dev

Reason for revert: b/180490435 
Reverted Changes:
I5755525f9:Wallpaper Local color sampling
I5487881c0:Implement local color extraction
Icbab7c6c2:Implement local color extraction

Change-Id: I1cf02a24555167165959e5c4f0bd25b655bd6b6e
2021-02-17 15:40:52 +00:00
Flavio Fiszman
ee168ad8e9 Merge "Creates PeopleManager API isConversation" into sc-dev 2021-02-17 15:33:20 +00:00
Julia Reynolds
94bfa64f01 Merge "Add apis for notification channel editing" into sc-dev 2021-02-17 14:12:03 +00:00
Alex Johnston
e5cb0d2d5b Merge "Allow PO to set network logging delegate" into sc-dev 2021-02-17 13:44:06 +00:00
Flavio Fiszman
d243c60e63 Creates PeopleManager API isConversation
Change-Id: I075cd72363ba0ea0e84bb57fe017fce20e051862
Test: atest DataManagerTest
Bug: 180122164
2021-02-17 10:51:12 +00:00
Gavin Corkery
37dbb4e5d5 Merge "Initialize RebootReadinessManagerService" into sc-dev 2021-02-17 07:43:18 +00:00
Shashwat Razdan
70e0b0cb35 Addressing a bug in parcelization of SmartspaceAction's bundle.
Bug: 176851064
Test: Manual
Change-Id: I22df17f6c521aabc41f65507225431db1d27c9fa
2021-02-16 23:32:23 +00:00
Jay Aliomer
9c12bcc5d8 Wallpaper Local color sampling
Test: Integration tests will be in a different CL
Fixes: 173046221
Change-Id: I5755525f90f4c7445cbfd337057a34cfb1f3c4fe
2021-02-16 21:54:41 +00:00
Alex Johnston
3720fa6292 Merge "DPM API to enable or disable USB data signaling" into sc-dev 2021-02-16 20:47:15 +00:00
Abhijeet Kaur
6f6bdfd287 Merge "Add new API to check a collection of URIs at once" into sc-dev 2021-02-16 19:43:50 +00:00
Julia Reynolds
48d8f95d1b Add apis for notification channel editing
Allow apps to launch a mini notification channel editing
UI targeted at the fields the user wants to edit depending on
the launch context.

Test: Settings robotests
Bug: 177246841
Change-Id: I4ca552ff80e7c55c6845022ef94361fae4cd8e20
2021-02-16 13:13:16 -05:00
Julia Reynolds
f4eb0eddad Merge "Add new constant for semantic action types." into sc-dev 2021-02-16 17:38:18 +00:00
Alex Johnston
3f7da94bcf Merge "Allow PO to enable network logging on work profile" into sc-dev 2021-02-16 15:55:26 +00:00
Alex Johnston
c1e9454a94 Allow PO to set network logging delegate
Changes
* The profile owner on the managed profile can
  set the network logging delegate.
* If delegated by a profile owner, network logs will
  only be collected on the work profile.

Bug: 170460270
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testNetworkLogging
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testNetworkLoggingDelegate
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testNetworkLogging
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testNetworkLoggingDelegate
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegate
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegate
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegate
Change-Id: I95009ff67716ba259b5e0a8f61d8908cb1c6da4a
Merged-In: I95009ff67716ba259b5e0a8f61d8908cb1c6da4a
2021-02-16 15:51:34 +00:00
Alex Johnston
51f1c85381 DPM API to enable or disable USB data signaling
Background
* The admin can disable signaling over USB on
  corporate owned devices

Changes
* Add DevicePolicyManager API to enable and
  disable USB data signaling.
* Add DevicePolicyManager API to test of this
  feature is supported.

Bug: 168301639
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      make RunSettingsLibRoboTests -j ROBOTEST_FILTER=EnableAdbPreferenceControllerTest
Change-Id: I1d2d71ec05a1565f58ffd691a66c68171a4f9b00
Merged-In: I1d2d71ec05a1565f58ffd691a66c68171a4f9b00
2021-02-16 15:29:17 +00:00
Eran Messeri
b1c5353937 Merge "Utilize context user ID for canAdminGrantSensorsPermissions" into sc-dev 2021-02-16 14:41:10 +00:00
Alex Johnston
66e3908e39 Allow PO to enable network logging on work profile
Changes
* The profile owner can enable network logging
  on the work profile.
* The network logs only include work profile
  network activity (not personal profile activity).

Bug: 170460270
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.server.devicepolicy.NetworkEventTest
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testNetworkLogging
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testNetworkLogging
      atest com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithTwoUsers
      atest com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
      atest com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLogging_multipleBatches
Change-Id: I4727ba7cbc62f9cd187f82a9527f0475345fd555
Merged-In: I4727ba7cbc62f9cd187f82a9527f0475345fd555
2021-02-16 14:22:02 +00:00
Benjamin Franz
4c5134f3da Merge "Add versioning to app compat framework" am: 80bbdfd100 am: 4fb9af6ced am: 8964ef6743
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1585009

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8d349a5f76f496503e328a4fc70e051a2ccca2b6
2021-02-16 13:26:45 +00:00
Benjamin Franz
8964ef6743 Merge "Add versioning to app compat framework" am: 80bbdfd100 am: 4fb9af6ced
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1585009

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I14b38edb7136852c5ecf78e0a4ad0266c77a453a
2021-02-16 12:51:34 +00:00
Eran Messeri
2fa704ebe2 Utilize context user ID for canAdminGrantSensorsPermissions
Remove, from the system API surface, the canAdminGrantSensorsPermissionsForUser
method, leaving only canAdminGrantSensorsPermissions.

In canAdminGrantSensorsPermissions, get the user ID from the context.

This means callers that need to find out the permission grant state for
a particular user would have to construct a context object for that
user.

Bug: 179690270
Bug: 170627643
Test: DeviceOwnerTest#testDeviceOwnerProvisioning ManagedProvisioningTests:com.android.managedprovisioning.parser.ExtrasProvisioningDataParserTest ManagedProvisioningTests:com.android.managedprovisioning.parser.PropertiesProvisioningDataParserTest ManagedProvisioningTests:com.android.managedprovisioning.model.ProvisioningParamsTest android.devicepolicy.cts.DevicePolicyManagerTest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.DeviceOwnerTest#testAdminControlOverSensorPermissionGrantsDefault com.android.cts.devicepolicy.MixedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault
Change-Id: I118f642c15b3f9848ff97d13e1e32b3bd5dba63d
2021-02-16 12:42:59 +00:00
Benjamin Franz
80bbdfd100 Merge "Add versioning to app compat framework" 2021-02-16 11:48:36 +00:00
Chris Li
85377a9785 Allow non-resizable apps in split-screen (10/n)
Render size compat restart button on Task surface with
WindowlessWindowManager.

Bug: 176061101
Bug: 178327644
Test: atest WMShellUnitTests:SizeCompatRestartButtonTest
Test: atest WMShellUnitTests:SizeCompatUIControllerTest
Test: atest WMShellUnitTests:SizeCompatUILayoutTest
Change-Id: I86912adca18a6a62265cd31585f2c7d612c90fd1
2021-02-15 14:05:01 -08:00
Gavin Corkery
1d94eb9ea5 Initialize RebootReadinessManagerService
Initialize reboot readiness service from the
system server. This service is started
by calling into service-scheduling.jar
directly.

Test: Manual, add logs to check that service
      is correctly started.
Bug: 161353402

Change-Id: I06d55ee6ee5c3dde7524cf508324fd408fb81d22
2021-02-15 21:30:23 +00:00
Abhijeet Kaur
a0d5569c89 Add new API to check a collection of URIs at once
Optimizes the workflow to check multiple URI permissions, which
currently need to be checked one URI at a time.

New APIs are logically similar to existing APIs: checkUriPermission,
checkCallingUriPermission and checkCallingOrSelfUriPermission. The
new APIs would take input of a collection of URIs instead of just one
URI.

Bug: 179362563
Test: atest ContextTest.java
Test: atest ExternalStorageHostTest#testMediaEscalation_RequestWriteFilePathSupport

Change-Id: I9cd6278f9b865c0532afc337b089771df6aea8c5
2021-02-15 18:23:53 +00:00
Vadim Caen
24764efd19 Merge changes from topics "splash_api_sc_a2", "splash_api_sc_a3", "splash_api_sc_a4", "splash_api_sc_a5", "splash_api_sc_a6", "splash_exit_sc_a1" into sc-dev
* changes:
  Add two more Api for SplashScreenView(7/N)
  Support persist night mode for application(6/N)
  Allow ShortcutInfo to specify a theme for splash screen.(5/N)
  Add API for show branding image on splash screen.(4/N)
  Provide new APIs for customize splash screen window.(3/N)
  Customizable exit splash screen animation.(2/N)
2021-02-15 17:22:01 +00:00
arangelov
c8f03de4e6 Provide clearer explanation for SUPPORTED_MODES_ORGANIZATION_OWNED
Bug: 179143866
Test: none
Change-Id: I47195f65e5a1039a984475d58fdfb9ad1651a107
2021-02-15 17:00:32 +00:00
wilsonshih
a8e4cd6c6f Support persist night mode for application(6/N)
Developer now can use UiModeManager setApplicationNightMode to set
the night mode and persist in framework. Next time when start a new
process with the same package and userId, the persisted configuration
will be overload to the process and activities.

Introduce PackageConfigPersister, used to presist configuration for
each package.

Reference: go/wm-config-persist

Bug: 73289295
Test: atest SplashscreenTests
Change-Id: I17025a61526492596705ffe58ce450c328ff9470
2021-02-15 15:27:04 +01:00
wilsonshih
cf05d92650 Allow ShortcutInfo to specify a theme for splash screen.(5/N)
Provides new APIs so that shortcuts can preset the theme of the splash
screen window.
- Static way: android:splashScreenTheme
  Preset the splash screen theme from xml.
- Dynamic way: ShortcutInfo.Builder#setStartingTheme
  Preset the splash screen theme when construct the ShortcutInfo
  programmatically.

Bug: 73289295
Test: build/flash
Test: atest AppWindowTokenTests ActivityRecordTests
Change-Id: Ie5e73f9b22fea22659e496c12198c942f4bc93cd
2021-02-15 15:27:03 +01:00
wilsonshih
56f65c3bb7 Customizable exit splash screen animation.(2/N)
Introduce new APIs to customize exit splash screen animation.
- SplashScreen
  This can be used for Activity to handle the exit splash screen
  animation.
- SplashScreen#OnExitAnimationListener
  When receive onSplashScreenExit, the splash screen view will be on
  top of the activity.
- SplashScreenView
  The view object which represents the view of current starting window.
  There are two APIs for developer to control it:
  - getIconView: get the icon view object.
  - remove: remove the view and release resources.

If an Activity create a OnExitAnimationListener and set on
SplashScreen, the core will request a copy of SplashScreenView
from Shell, then send the parcelable information to client to
reconstruct the view on top of the DecorView, then call
onSplashScreenExit to let the listener able to operating this view.

Bug: 73289295
Test: build/flash, check splash screen starting window.
Test: atest StartingSurfaceDrawerTests ActivityRecordTests
WindowOrganizerTests
Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests

Change-Id: I9f77fb4471bcf37a7f74d6c18a345ca56c05b716
2021-02-15 14:49:00 +01:00
Ruslan Tkhakokhov
a6aab5c90d Merge "Make FullBackup::BackupScheme aware of operation type" into sc-dev 2021-02-15 11:40:29 +00:00
Rubin Xu
d6c19708af Merge "add MANAGE_CREDENTIALS appop" into rvc-qpr-dev-plus-aosp 2021-02-15 09:47:46 +00:00
Lorenzo Colitti
202658f0a4 Merge changes Ia68f482a,I4911e214,Ied379654,I66d18512,Ie8e1bd63 am: 45ec3191a7 am: 246444fef7 am: ed9730e6f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1581293

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I698b6b082b121c004b2c8b05ef423da1bd8b871b
2021-02-15 01:32:50 +00:00
Lorenzo Colitti
ed9730e6f9 Merge changes Ia68f482a,I4911e214,Ied379654,I66d18512,Ie8e1bd63 am: 45ec3191a7 am: 246444fef7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1581293

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I91816c01a799a89b89098a6e9ff256dae7d31dbf
2021-02-15 01:03:06 +00:00
Lorenzo Colitti
45ec3191a7 Merge changes Ia68f482a,I4911e214,Ied379654,I66d18512,Ie8e1bd63
* changes:
  Check registering system default callback needs NETWORK_SETTINGS.
  Move VPN code from ConnectivityService to VpnManagerService.
  Add a skeleton VpnManagerService, and start it on boot.
  Convert LockdownVpnTracker to NetworkCallbacks.
  Minor fixes to VpnTransportInfo.
2021-02-15 00:00:47 +00:00
Ruslan Tkhakokhov
4f60c64516 Make FullBackup::BackupScheme aware of operation type
We currently maintain an instance of FullBackup::BackupScheme
(encapsulates full backup policies, including include / exclude rules)
per package. In line with the new include / exclude config format, where
the rules for each operation types are separate, create BackupScheme per
(package; operation type) pair to  make sure we're only dealing with the
policies relevant to the current operation.

Bug: 174216309
Test: atest FullBackupRulesHostSideTest
Change-Id: I627584186a1d1faf3d699e734e45f5e943ec1f84
2021-02-14 20:33:20 +00:00
Rubin Xu
603f3ee721 add MANAGE_CREDENTIALS appop
This is part of the work to support
a credential management app on
unmanaged devices.

Bug: 179180345
Test: atest android.appsecurity.cts.AppOpsTest

Merged-In: Ifd87b5e38f341db4b34bf9f61480e29e49148846
Change-Id: Ifd87b5e38f341db4b34bf9f61480e29e49148846
2021-02-14 19:16:09 +00:00
Rubin Xu
c9a8b2fa8e Merge "add MANAGE_CREDENTIALS appop" 2021-02-13 18:32:16 +00:00
Rubin Xu
fd4c56d4d3 add MANAGE_CREDENTIALS appop
This is part of the work to support
a credential management app on
unmanaged devices.

Bug: 179180345
Test: atest android.appsecurity.cts.AppOpsTest

Merged-In: Ifd87b5e38f341db4b34bf9f61480e29e49148846
Change-Id: Ifd87b5e38f341db4b34bf9f61480e29e49148846
2021-02-12 21:34:53 +00:00
Julia Reynolds
87872bcd03 Add new constant for semantic action types.
Test: cts
Bug: 161333455
Change-Id: I566811160c8b9b37977ae2a903f419f3084e265e
2021-02-12 18:33:41 +00:00
Kapish Goel
0f0ab4732e Merge "Revert "Get OperationType from transport"" into sc-dev 2021-02-12 15:14:04 +00:00
Jeff DeCew
733d3bdace Merge "Rename public constant to EXTRA_SHOW_BIG_PICTURE_WHEN_COLLAPSED" into sc-dev 2021-02-12 13:16:53 +00:00
Antoan Angelov
34e4526732 Merge "Deprecate obsolete provisioning extras" into sc-dev 2021-02-12 12:26:51 +00:00
Antoan Angelov
969a49f846 Merge "Deprecate EXTRA_PROVISIONING_MAIN_COLOR" into sc-dev 2021-02-12 12:26:22 +00:00
Kapish Goel
47fc6dfc46 Revert "Get OperationType from transport"
This reverts commit f81af9df21.

Reason for revert: DroidMonitor: Potential culprit for Bug 180089773 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I80d3f3233e40ade3bfa89b236ba114966a137c23
2021-02-12 11:41:34 +00:00
TreeHugger Robot
d95e8ac64b Merge "New device policy API: DeviceAdminReceiver.onUnsafeOperationStateChanged()" into sc-dev 2021-02-12 01:29:17 +00:00
arangelov
4e8eb0d3a3 Deprecate obsolete provisioning extras
EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_ICON_URI and
EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL are no longer used
in the provisioning flows.

Bug: 180010560
Test: compiled
Test: tested with ManagedProvisioning in the other CL
Change-Id: I7cba43d6ca80a12d1d3384b17797b77378edfff5
2021-02-11 19:54:44 +00:00
Jeff DeCew
d1caedc8f8 Rename public constant to EXTRA_SHOW_BIG_PICTURE_WHEN_COLLAPSED
Fixes: 179709635
Test: manual
Change-Id: I1344224a7c87c2327a4ab767fa0920e6865d609c
2021-02-11 13:56:37 -05:00
Benjamin Franz
360d60d523 Add versioning to app compat framework
With this change, callers can set overrides for specific versions of an
app. The framework falls back to default version when the given version
doesn't have an override set.

Bug: 174043039
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Test: atest PlatformCompatGating
Change-Id: Ib5ff67e752a9c5ee94b6e1dd664d324ab5bf4542
2021-02-11 18:33:45 +00:00