summaryrefslogtreecommitdiff
path: root/core/java/android/app
Commit message (Collapse)AuthorAgeFilesLines
* Check DPC package validity during package updatesRubin Xu2025-10-071-0/+2
| | | | | | | | | | Bug: 384514657 Bug: 414603411 Test: manual Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b2cf880629d327f1d960bdfcb2801b4b635fc10b) Merged-In: I1743c111f8e8b5f4c1f878a61b88b8f1ed6b86a1 Change-Id: I1743c111f8e8b5f4c1f878a61b88b8f1ed6b86a1
* Use ParceledListSlice for ZenModeConfig and AutomaticZenRulesMatías Hernández2025-10-073-7/+7
| | | | | | | | | | | Also, use writeString8 for Zen-related parceling. Bug: 387498139 Test: atest NotificationManagerZenTest ZenModeConfigTest (cherry picked from commit 3965123f440345017facfe9f767b22d79e55aeab) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b633b92249a80c4502da12ba66d73bc322bd46b4) Merged-In: I9925c9bcc542781832d111660e22181151526127 Change-Id: I9925c9bcc542781832d111660e22181151526127
* Fix allowlist token issuesMatías Hernández2025-01-131-11/+37
| | | | | | | | | | | | | | 1) Don't accept enqueued notifications with an unexpected token. 2) Ensure allowlist token matches for all parceled and unparceled notifications (by only using the "root notification" one). 3) Simplify cookie usage in allowlist token serialization. 4) Ensure group summary (and any notifications added directly by NMS) have the correct token. Bug: 328254922 Bug: 305695605 Test: atest NotificationManagerServiceTest ParcelTest CloseSystemDialogsTest + manually (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8a7453435b633282a9445ee01a902f090adc138c) Merged-In: I232e9b74eece745560ed2e762071b48984b3f176 Change-Id: I232e9b74eece745560ed2e762071b48984b3f176
* Check more URIs in notificationsIoana Alexandru2024-11-182-15/+34
| | | | | | | | | | | | Bug: 281044385 Test: presubmit + tested in current release (cherry picked from commit f47b41a138ebd60f7b518fb6a9d8aa8230488422, includes changes from commit 57bf60dd7b6a0a0e9785231f8ec25a458fedde64 and commit 47fa2f79584b0a4e9ca7e9c6b237c4e5cf699032) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:986e36ce03b119253e5b7c7fd39bdd0324e0dc8a) Merged-In: I1ce6bebd9452466d005505dc5b99a0fdc0e05e80 Change-Id: I1ce6bebd9452466d005505dc5b99a0fdc0e05e80
* RESTRICT AUTOMERGE Fix READ/WRITE operation access issues on Restricted appOps.Hao Ke2024-08-271-1/+1
| | | | | | | | | | | | | | | Problems were identified around read and write access to the restricted appOps, this change includes: - Filter out restricted appOps status for unprivileged readers. - Allow additional privileged appOps permission holder reading restricted appOps status. Bug: 336273802 Bug: 336323279 Test: Local test see b/336273802#comment3 Test: atest AppOpsTest#testRestrictedSettingsOpsRead (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e2471e03e471ed701dd1ac0c6c483f82b0dd22d0) Merged-In: I09008b365e36b2c20c9a1fe5a1d52699ddb17d35 Change-Id: I09008b365e36b2c20c9a1fe5a1d52699ddb17d35
* Check URI permissions for resumable media artworkBeth Thibodeau2023-12-171-0/+3
| | | | | | | | | | | | | | When resumable media is added that has artwork set via URI, check the permissions for the URI before attempting to load it Test: atest MediaDataManagerTest UriGrantsManagerServiceTest Test: manual with test app Bug: 284297452 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a3b7a10a15aa41ad75866922d528a4dc02fc8ca3) Merged-In: Ie79915d3d1712f08dc2e8dfbd5bc7fd32bb308a3 Change-Id: Ie79915d3d1712f08dc2e8dfbd5bc7fd32bb308a3 Change-Id: I10c87d5587d7e568d6fec425bcbe2700db2e4bd5
* Require permission to unlock keyguardMarzia Favaro2023-12-141-0/+1
| | | | | | | | | | | | | | | | | | Bug: 288896339 Test: Manual, verify that the app which can be found on the bug can no longer call keyguardGoingAway successfully Require permission to unlock keyguard Bug: 288896339 Test: Manual, verify that the app which can be found on the bug can no longer call keyguardGoingAway successfully (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bd2aa5d309c5bf8e73161975bd5aba7945b25e84) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d1930b7eacc7b9094c6c31b9df8b5f5ca704b942) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:41bc7c0042f1dd004179f32376f72a8811d83c6e) Merged-In: I7ba7e56f954c8e6f1f734311f735215918975bc6 Change-Id: I7ba7e56f954c8e6f1f734311f735215918975bc6
* Visit Uris related to Notification style extrasMatías Hernández2023-12-141-15/+17
| | | | | | | | | | | | | Even if the corresponding styles themselves were not applied to the Notification.Builder. (Also unify all Bundle.getParcelable/getParcelableArray() calls in visitUris to use the type-safe version). Test: atest NotificationManagerServiceTest Bug: 287640400 Bug: 281549104 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3c2ebb81ff064cdf1fbe58c15920f44d343e9391) Merged-In: I25acab19be7dd486aabede8c91dbad5a1a217abf Change-Id: I25acab19be7dd486aabede8c91dbad5a1a217abf
* Visit Uris added by WearableExtenderMatías Hernández2023-12-141-1/+16
| | | | | | | | Bug: 283962802 Test: atest + manual (POC app now crashes on notify() as expected) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3d36966ea2aeebc3501a69a8ef7afce5ef593cee) Merged-In: I0da18c631eb5e4844a48760c7aaedab715a0bfed Change-Id: I0da18c631eb5e4844a48760c7aaedab715a0bfed
* DO NOT MERGE Fix BAL via notification.publicVersionNan Wu2023-11-101-2/+5
| | | | | | | | | | | | | We stripped the token that allows app to retrieve their own notification and fire their own PI to launch activities from background. But we forgot to strip the token from notification.publicVersion Bug: 278558814 Test: NotificationManagerTest#testActivityStartFromRetrievedNotification_isBlocked (cherry picked from commit cf851d81a954f0a6dd0c2fd7defa93932539e7f9) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1896c2e7068c9ec1ab8355d863d7e8107d5d5706) Merged-In: I8f25d7a5e47890a0496af023149717e1df482f98 Change-Id: I8f25d7a5e47890a0496af023149717e1df482f98
* Verify URI permissions for EXTRA_REMOTE_INPUT_HISTORY_ITEMS.Ioana Alexandru2023-10-071-0/+12
| | | | | | | | | | | | Also added a step to serialize & deserialize the notification in the test, to prevent exceptions about not being able to cast e.g. Parcelable[] to RemoteInputHistoryItem[]. Test: atest NotificationManagerServiceTest & tested with POC from bug Bug: 276729064 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4e19431a60300c6ea6c7f7dd64299916e4eb09bc) Merged-In: I7053ca59f9c7f1df5226418594109cfb8b609b1e Change-Id: I7053ca59f9c7f1df5226418594109cfb8b609b1e
* Forbid granting access to NLSes with too-long component namesMatías Hernández2023-09-181-0/+6
| | | | | | | | | | | This makes the limitation, which was previously only checked on the Settings UI, enforced everywhere. Fixes: 260570119 Fixes: 286043036 Test: atest + manually (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6fcdbd0c6efc67b014b8e1b43c5ec233f912ee8b) Merged-In: I4c25d80978cb37a8fa1531f5045259d25ac64692 Change-Id: I4c25d80978cb37a8fa1531f5045259d25ac64692
* DO NOT MERGE Revert "Verify URI permissions for ↵Ioana Alexandru2023-09-181-11/+0
| | | | | | | | | | | | | | EXTRA_REMOTE_INPUT_HISTORY_ITEMS." This reverts commit 43b1711332763788c7abf05c3baa931296c45bbb. Reason for revert: regression reported at b/289223315 Bug: 289223315 Bug: 276729064 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bdc9b977e376fb3b6047530a179d00fd77f2aec1) Merged-In: I101938fbc51592537023345ba1e642827510981b Change-Id: I101938fbc51592537023345ba1e642827510981b
* Merge tag 'android-13.0.0_r72' of ↵George Zacharia2023-08-091-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 72 (TQ3C.230805.001.A3) * tag 'android-13.0.0_r72' of https://android.googlesource.com/platform/frameworks/base: Keyguard: use transition state for syncing occlude [RESTRICT AUTOMERGE] Report folding features to letterboxed apps. Send update config change when letterbox is moved Cancel current animation instead of candidate Merge "Resolve StatusHints image exploit across user." into sc-v2-dev am: e371b3018f Remove unnecessary padding code Use Settings.System.getIntForUser instead of getInt to make sure user specific settings are used DO NOT MERGE Verify URI permissions in MediaMetadata Visit URIs in themed remoteviews icons. Check URIs in sized remote views. Fix PrivacyChip not visible issue Update Pip launches to not enter pinned task if in background. Validate ComponentName for MediaButtonBroadcastReceiver Implement visitUris for RemoteViews ViewGroupActionAdd. Check URIs in notification public version. Preserve flags for non-runtime permissions upon package update. On device lockdown, always show the keyguard Ensure policy has no absurdly long strings Verify URI permissions for notification shortcutIcon. Do not load drawable for wallet card if the card image icon iscreated with content URI. ActivityManagerService: Allow openContentUri from vendor/system/product. Cancel current animation instead of candidate Report folding features to letterboxed apps. Send update config change when letterbox is moved Cancel current animation instead of candidate Cancel current animation instead of candidate Cancel current animation instead of candidate Cancel current animation instead of candidate Visit URIs in landscape/portrait custom remote views. [RESTRICT AUTOMERGE] Prevent installing apps in policy restricted work profile using ADB Verify URI permissions for EXTRA_REMOTE_INPUT_HISTORY_ITEMS. [1-time permissions] Use internal api to check proc states Watch uid proc state instead of importance for 1-time permissions Truncate ShortcutInfo Id Dismiss keyguard when simpin auth'd and... Only allow NEW_TASK flag when adjusting pending intents Grant URI permissions to the CallStyle-related ones Revert "Ensure that only SysUI can override pending intent launch flags" Ensure that only SysUI can override pending intent launch flags Revert "Improve first opaque activity candidate detection" Revert "Improve first opaque activity candidate detection" Revert "Improve first opaque activity candidate detection" Disable emoji compat initializer Disable emoji compat initializer Improve first opaque activity candidate detection Invalidate buffers on transform change Skip letterboxing if the activity below is embedded Unfreeze the surface when the transition is done Make sure to reset isFoldHandled Set corner radius to 0 when casting Refresh layout parameter for bounds change from relayout DO NOT SUBMIT: Don't ever show the build number. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:252407fd77fcb126834be02233b799b230ee2c6e) Merged-In: I28e35f8686a66b6eb76f3a09a163c6873ca23ba0 Change-Id: I28e35f8686a66b6eb76f3a09a163c6873ca23ba0 Set corner radius to 0 when casting Refresh layout parameter for bounds change from relayout DO NOT SUBMIT: Don't ever show the build number. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:252407fd77fcb126834be02233b799b230ee2c6e) Merged-In: I28e35f8686a66b6eb76f3a09a163c6873ca23ba0 Change-Id: I28e35f8686a66b6eb76f3a09a163c6873ca23ba0 Make sure to reset isFoldHandled Set corner radius to 0 when casting Refresh layout parameter for bounds change from relayout [RESTRICT AUTOMERGE] Always set last report configuration for starting window. Fix deadlock in BaseDataProducer. Set corner radius to 0 when casting Refresh layout parameter for bounds change from relayout Fixes foldable autorotation setting being out of sync in QS and Settings Fix split cannot active if app trampoline launch new task Update the timing of clearing SplitRequest Prevents activity being stopped while folding/unfolding device Gates RotationResolverService with a config flag Also reverse rotation for #freezeRotation path Don't show home controls complication if not available. Fixes foldable autorotation setting being out of sync in QS and Settings Fix split cannot active if app trampoline launch new task Update the timing of clearing SplitRequest Prevents activity being stopped while folding/unfolding device Gates RotationResolverService with a config flag Also reverse rotation for #freezeRotation path Update the disabled-opa navbar icon size to reflect icon change Restrict maximum size of FontInterpolator font caches Fix KeyguardSecurityContainerControllerTest Rename orientation request loop property Fixes flicker of not applying initial transform to leash Reset NSSL translationY after a transision gets cancelled AudioService: fix volume group setting name Make sure to clear outdated screenshot of splitting tasks Make sure to clear outdated screenshot of splitting tasks DO NOT MERGE Revert "Accept a Window as shown if it's in any transition" Fix home controls showing on low light dream DO NOT MERGE Fix crash related to getting the root of an unattached view Revert "Remove pip resize flicks" DO NOT MERGE Change-Id: I76f0d5e6c39a7066e44366571b6836ee4bf594f5
| * Send update config change when letterbox is movedGraciela Wissen Putri2023-06-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When letterbox is repositioned, window configuration bounds are changed. Because we currently only report public config changes in diffPublicOnly, the client doesn't report changes in window configuration. We should always report window configuration bounds change to notify that the position of window has changed. Bug: 262900133 Test: atest FrameworksCoreTests:android.app.activity.ActivityThreadTest Manual test with app in bug (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:70187af25ce3f56f85ddd703f982caa82f685605) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2d435949ef08a2219feb23dba035f5a78b038f3f) Merged-In: I9fc10876c03933ac8aac05205d56ad6537df72a8 Change-Id: I9fc10876c03933ac8aac05205d56ad6537df72a8
| * Check URIs in notification public version.Ioana Alexandru2023-06-161-0/+4
| | | | | | | | | | | | | | | | Bug: 276294099 Test: atest NotificationManagerServiceTest NotificationVisitUrisTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:67cd169d073486c7c047b80ab83843cdee69bf53) Merged-In: I670198b213abb2cb29a9865eb9d1e897700508b4 Change-Id: I670198b213abb2cb29a9865eb9d1e897700508b4
| * Ensure policy has no absurdly long stringsPavel Grafov2023-06-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following APIs now enforce limits and throw IllegalArgumentException when limits are violated: * DPM.setTrustAgentConfiguration() limits agent packgage name, component name, and strings within configuration bundle. * DPM.setPermittedAccessibilityServices() limits package names. * DPM.setPermittedInputMethods() limits package names. * DPM.setAccountManagementDisabled() limits account name. * DPM.setLockTaskPackages() limits package names. * DPM.setAffiliationIds() limits id. * DPM.transferOwnership() limits strings inside the bundle. Package names are limited at 223, because they become directory names and it is a filesystem restriction, see FrameworkParsingPackageUtils. All other strings are limited at 65535, because longer ones break binary XML serializer. The following APIs silently truncate strings that are long beyond reason: * DPM.setShortSupportMessage() truncates message at 200. * DPM.setLongSupportMessage() truncates message at 20000. * DPM.setOrganizationName() truncates org name at 200. Bug: 260729089 Test: atest com.android.server.devicepolicy (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:456dbcae5ae4bc0d8f73f8cb97b57c8de6958f9c) Merged-In: Idcf54e408722f164d16bf2f24a00cd1f5b626d23 Change-Id: Idcf54e408722f164d16bf2f24a00cd1f5b626d23
| * Verify URI permissions for notification shortcutIcon.Ioana Alexandru2023-06-161-0/+2
| | | | | | | | | | | | | | | | Bug: 277593270 Test: atest NotificationManagerServiceTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:75d1ae1c2d49404c4be16ed7b50480fc16c0e4c4) Merged-In: Iaf2a9a82f18e018e60e6cdc020da6ebf7267e8b1 Change-Id: Iaf2a9a82f18e018e60e6cdc020da6ebf7267e8b1
| * Verify URI permissions for EXTRA_REMOTE_INPUT_HISTORY_ITEMS.Ioana Alexandru2023-05-291-0/+11
| | | | | | | | | | | | | | | | | | | | | | Also added the person URIs in the test, since they weren't being checked. Test: atest NotificationManagerServiceTest & tested with POC from bug Bug: 276729064 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:43b1711332763788c7abf05c3baa931296c45bbb) Merged-In: I848545f7aee202495c515f47a32871a2cb6ae707 Change-Id: I848545f7aee202495c515f47a32871a2cb6ae707
| * Only allow NEW_TASK flag when adjusting pending intentsWinson Chung2023-05-291-1/+5
| | | | | | | | | | | | | | | | Bug: 243794108 Test: atest CtsSecurityBulletinHostTestCases:android.security.cts.CVE_2023_20918 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c62d2e1021a030f4f0ae5fcfc8fe8e0875fa669f) Merged-In: I5d329beecef1902c36704e93d0bc5cb60d0e2f5b Change-Id: I5d329beecef1902c36704e93d0bc5cb60d0e2f5b
| * Grant URI permissions to the CallStyle-related onesMatías Hernández2023-05-291-0/+8
| | | | | | | | | | | | | | | | | | | | This will also verify that the caller app can actually grant them. Fix: 274592467 Test: atest NotificationManagerServiceTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4dee5aab12e95cd8b4d663ad050f07b0f2433596) Merged-In: I83429f9e63e51c615a6e3f03befb76bb5b8ea7fc Change-Id: I83429f9e63e51c615a6e3f03befb76bb5b8ea7fc
* | Merge tag 'android-13.0.0_r67' of ↵George Zacharia2023-08-092-1/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 67 (TQ3A.230805.001) * tag 'android-13.0.0_r67' of https://android.googlesource.com/platform/frameworks/base: Merge "Resolve StatusHints image exploit across user." into sc-v2-dev am: e371b3018f Remove unnecessary padding code Use Settings.System.getIntForUser instead of getInt to make sure user specific settings are used DO NOT MERGE Verify URI permissions in MediaMetadata Visit URIs in themed remoteviews icons. Check URIs in sized remote views. Fix PrivacyChip not visible issue Update Pip launches to not enter pinned task if in background. Validate ComponentName for MediaButtonBroadcastReceiver Implement visitUris for RemoteViews ViewGroupActionAdd. Check URIs in notification public version. Preserve flags for non-runtime permissions upon package update. On device lockdown, always show the keyguard Ensure policy has no absurdly long strings Verify URI permissions for notification shortcutIcon. Do not load drawable for wallet card if the card image icon iscreated with content URI. ActivityManagerService: Allow openContentUri from vendor/system/product. Change-Id: Ice3533cb5ebf4868cc9aa0500568b899293872ab
| * | Check URIs in notification public version.Ioana Alexandru2023-06-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 276294099 Test: atest NotificationManagerServiceTest NotificationVisitUrisTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:67cd169d073486c7c047b80ab83843cdee69bf53) Merged-In: I670198b213abb2cb29a9865eb9d1e897700508b4 Change-Id: I670198b213abb2cb29a9865eb9d1e897700508b4
| * | Ensure policy has no absurdly long stringsPavel Grafov2023-06-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following APIs now enforce limits and throw IllegalArgumentException when limits are violated: * DPM.setTrustAgentConfiguration() limits agent packgage name, component name, and strings within configuration bundle. * DPM.setPermittedAccessibilityServices() limits package names. * DPM.setPermittedInputMethods() limits package names. * DPM.setAccountManagementDisabled() limits account name. * DPM.setLockTaskPackages() limits package names. * DPM.setAffiliationIds() limits id. * DPM.transferOwnership() limits strings inside the bundle. Package names are limited at 223, because they become directory names and it is a filesystem restriction, see FrameworkParsingPackageUtils. All other strings are limited at 65535, because longer ones break binary XML serializer. The following APIs silently truncate strings that are long beyond reason: * DPM.setShortSupportMessage() truncates message at 200. * DPM.setLongSupportMessage() truncates message at 20000. * DPM.setOrganizationName() truncates org name at 200. Bug: 260729089 Test: atest com.android.server.devicepolicy (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:456dbcae5ae4bc0d8f73f8cb97b57c8de6958f9c) Merged-In: Idcf54e408722f164d16bf2f24a00cd1f5b626d23 Change-Id: Idcf54e408722f164d16bf2f24a00cd1f5b626d23
| * | Verify URI permissions for notification shortcutIcon.Ioana Alexandru2023-06-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 277593270 Test: atest NotificationManagerServiceTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:75d1ae1c2d49404c4be16ed7b50480fc16c0e4c4) Merged-In: Iaf2a9a82f18e018e60e6cdc020da6ebf7267e8b1 Change-Id: Iaf2a9a82f18e018e60e6cdc020da6ebf7267e8b1
* | | fwb: Slim recents TSpiritCroc2023-08-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partly includes: commit fbbe5de6640ac0b8a52e948d246b19b4487ce521 Author: ezio84 <brabus84@gmail.com> Date: Sat Oct 21 14:46:24 2017 +0200 Slim Recents 3.0 [1/3] Refactored/improved everything. Slim Recents won't never die. http://i.imgur.com/PO3RSeg.gif [SpiritCroc] Bring to P Change-Id: I9deb0412e2421df2ac2755f2111a3cec70a7d2c4 commit c14325728a9d87d35e2137bb6f0dba77769592df Author: SpiritCroc <dev@spiritcroc.de> Date: Tue Apr 2 11:06:14 2019 +0200 Slim recents old enter/exit animation [1/3] Change-Id: Ib10f54d56de9c4dc6cab827c21cca9363ffaa820 Change-Id: I3c3486fa94a35f17e48c7a2943cad7fea5c69e78
* | | Merge tag 'android-13.0.0_r63' of ↵George Zacharia2023-08-022-1/+24
|\| | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0-r52 Android 13.0.0 release 63 Change-Id: I89d2c7a713cd97f805f07f604090a6d779117575
| * | Verify URI permissions for EXTRA_REMOTE_INPUT_HISTORY_ITEMS.Ioana Alexandru2023-05-271-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added the person URIs in the test, since they weren't being checked. Test: atest NotificationManagerServiceTest & tested with POC from bug Bug: 276729064 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:43b1711332763788c7abf05c3baa931296c45bbb) Merged-In: I848545f7aee202495c515f47a32871a2cb6ae707 Change-Id: I848545f7aee202495c515f47a32871a2cb6ae707
| * | Only allow NEW_TASK flag when adjusting pending intentsWinson Chung2023-05-271-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 243794108 Test: atest CtsSecurityBulletinHostTestCases:android.security.cts.CVE_2023_20918 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c62d2e1021a030f4f0ae5fcfc8fe8e0875fa669f) Merged-In: I5d329beecef1902c36704e93d0bc5cb60d0e2f5b Change-Id: I5d329beecef1902c36704e93d0bc5cb60d0e2f5b
| * | Grant URI permissions to the CallStyle-related onesMatías Hernández2023-05-271-0/+8
| |/ | | | | | | | | | | | | | | | | | | This will also verify that the caller app can actually grant them. Fix: 274592467 Test: atest NotificationManagerServiceTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4dee5aab12e95cd8b4d663ad050f07b0f2433596) Merged-In: I83429f9e63e51c615a6e3f03befb76bb5b8ea7fc Change-Id: I83429f9e63e51c615a6e3f03befb76bb5b8ea7fc
* | Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-0211-31/+294
|\| | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * Report visibility only when display is fully on in WallpaperServiceNicolo' Mazzucato2023-04-121-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | This is needed as some custom wallpaper interactions need to start when the screen turns on (which is not the same as "wallpaper visibility" or "wake" status). Previously, only the power state was taken into consideration. However, brightness is turned on after all windows are drawn (brightness is separated from power state). This was causing some wallpapers to trigger animations while the screen was not yet visible. Bug: 275057152 Test: Recorded perfetto trace and made sure visibility callback is invoked at the correct moment (after display brightness is turned on) Change-Id: I8c8c59ad0e3f19880ec543686285a89b0b864739 Merged-In: I8c8c59ad0e3f19880ec543686285a89b0b864739
| * Truncate profile name in setProfileName apiAyush Sharma2023-04-051-1/+2
| | | | | | | | | | | | | | | | Bug: 259942964 Test: NA (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:537fbbb45c919ba9a33f9eb775274c7996d5a466) Merged-In: Ia83167c9683c9aec7b38cdc6e464c32795af3db9 Change-Id: Ia83167c9683c9aec7b38cdc6e464c32795af3db9
| * Merge "Enforce DevicePolicyManager.setUserControlDisabledPackages in ↵Pavel Grafov2023-03-311-1/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | AppStandbyController" into tm-dev am: e9fd0fc709 am: 082f5a1417 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22137702 Change-Id: Ifbfaf8d9f0b89ad420e33b07fd52d13f9f17de18 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Merge "Enforce DevicePolicyManager.setUserControlDisabledPackages in ↵Pavel Grafov2023-03-311-1/+2
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AppStandbyController" into tm-dev am: e9fd0fc709 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22137702 Change-Id: I6e94a2f0517d2f183eb9b85f31cd626061e35afa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * Enforce DevicePolicyManager.setUserControlDisabledPackages in ↵Alex Johnston2023-03-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AppStandbyController When deciding an app's standby bucket, check if the app has its user control disabled by an IT admin. If so, the app should be the exempted restricted bucket. Bug: 272042183 Test: atest AppStandbyControllerTests Change-Id: I4279dc37f0e17aedb1c2a87468478248443a253e Merged-In: I4279dc37f0e17aedb1c2a87468478248443a253e (cherry picked from commit 269fcb6873dee199dd8023831f882aafff1f6291)
| | | * Merge "DO NOT MERGE: ActivityManager#killBackgroundProcesses can kill ↵Jing Ji2023-03-031-0/+3
| | | |\ | | | | | | | | | | | | | | | caller's own app only" into tm-dev
| | * | \ DO NOT MERGE: ActivityManager#killBackgroundProcesses can kill caller's own ↵Jing Ji2023-03-031-0/+3
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | app only am: fa94ce5c77 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20321691 Change-Id: Ib9a16d7b8d8bc17f9a02e1584be05bbe56199f97 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | DO NOT MERGE: ActivityManager#killBackgroundProcesses can kill caller's own ↵Jing Ji2022-11-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | app only unless it's a system app. Bug: 239423414 Bug: 223376078 Test: atest CtsAppTestCases:ActivityManagerTest Merged-In: I35d20539ffac055a6d61260445620f45584bd9c5 Merged-In: Ieed6af77da1bc31cfecc5272b9f97971db7ae7b2 Merged-In: I8b8a427ee87339cc038e53adc0912283b05d2cfc Change-Id: Iac6baa889965b8ffecd9a43179a4c96632ad1d02
| * | | | Merge "Don't force double-tap education on unfold" into tm-qpr-devMassimo Carli2023-03-251-2/+11
| |\ \ \ \
| | * | | | Don't force double-tap education on unfoldMassimo Carli2023-03-241-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CL changes the way double-tap is detected for the compat ui update to avoid false detection due to unfolding. Fixes: 275054305 Test: manual Change-Id: Ic325a180bffef81262b281a7c3b306d45265776c
| * | | | | Merge "Implement flag to not relaunch on dock config change for apps without ↵William Xiao2023-03-241-2/+36
| |\ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | -desk resources" into tm-qpr-dev
| | * | | | Implement flag to not relaunch on dock config change for apps withoutWilliam Xiao2023-03-231-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -desk resources Activities are relaunched when they encounter an unhandled configuration change. When a device is docked, this is surfaced to activities as a uiMode change to UI_MODE_TYPE_DESK. Some apps don't handle this configuration change by default, leading to a poor user experience, such as video playback stopping when docking. This change adds a flag that modifies this behavior and does not relaunch activities if the device is docked or undocked and the app does not have desk resources. Apps that have desk resources likely already either handle the uiMode configuration update or expect to be relaunched, so we want to preserve the default behavior for them. This flag is turned off by default. Bug: 266924897 Test: atest WmTests:ActivityRecordTests Change-Id: Ib9eeb251f803e41ff8fd0ed56f1ea8d52e67ba81 Merged-In: Ib9eeb251f803e41ff8fd0ed56f1ea8d52e67ba81
| * | | | | [2/n] Adds reachability education for double-tapMassimo Carli2023-03-231-1/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Double-tap education which explains to the users how double-tap works for repositioning an app in letterbox or size compat mode. The education appears the very first time an app is launched by a user and every time the user double-tap to reposition the app. Fixes: 255943773 Test: atest WMShellUnitTests:ReachabilityEduLayoutTest atest WMShellUnitTests:LetterboxEduWindowManagerTest atest WMShellUnitTests:ReachabilityEduWindowManagerTest Change-Id: I583a2ca8e552885b3578eaa4e344d89a67143b57
| * | | | | Fix pip expand issue if parent task under split rootTony Huang2023-03-171-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If task have more than one activity and enter pip mode, WMS will create new task for that activity and reparent it back when it exit pip mode. This cause some issues if the origin task under split root such as UI abnormal or it cannot expand to fullscreen.(We expect it expand to fullscreen always when click expand button on pip.) Fix this by record the origin task id in taskInfo and use this id to check exit split first or not if such task still under split root when exit pip. Fix: 264002510 Test: manual Test: pass existing tests Change-Id: I673f8c7a677f16897700d2be3853d4b4a36df7dd
| * | | | | DO NOT MERGE FLAG_FOREGROUND_SERVICE requires a running FGSJulia Reynolds2023-03-091-1/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 269738057 Test: NotificationManagerServiceTest Test: NotificationManagerTest Test: ServiceTest Change-Id: I11f5d3f19cb38cfb7e37489cbf029f7b2692f67c Merged-In: d88e3522c6dc15a30875f810a2dd830657c482dc Merged-In: I11f5d3f19cb38cfb7e37489cbf029f7b2692f67c (cherry picked from commit d88e3522c6dc15a30875f810a2dd830657c482dc)
| * | | | Merge "DO NOT MERGE: ActivityManager#killBackgroundProcesses can kill ↵Jing Ji2023-03-031-0/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | caller's own app only" into tm-qpr-dev
| | * | | | DO NOT MERGE: ActivityManager#killBackgroundProcesses can kill caller's own ↵Jing Ji2022-11-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | app only unless it's a system app. Bug: 239423414 Bug: 223376078 Test: atest CtsAppTestCases:ActivityManagerTest Merged-In: I35d20539ffac055a6d61260445620f45584bd9c5 Merged-In: Ieed6af77da1bc31cfecc5272b9f97971db7ae7b2 Merged-In: I8b8a427ee87339cc038e53adc0912283b05d2cfc Change-Id: Iac6baa889965b8ffecd9a43179a4c96632ad1d02
| * | | | | Restart Dialog reacts to Light/Dark themeMassimo Carli2023-02-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 266262111 Test: Manual. Display a size compat mode restart dialog, change from Light mode to Dark or vice versa, and check the dialog updates the theme. Run `atest CompatUIControllerTest` Change-Id: Iceb4a1aaaeccbad39e108933aeab557c52201664
| * | | | | Clarify documentation about targets of DND-related broadcastsMatías Hernández2023-02-171-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not only registered BroadcastReceivers get these broadcasts; any app with Do Not Disturb access will. Test: N/A, Javadoc change only Fixes: 269728091 Change-Id: Ib4ebe034b47e6a8f6d902eeba4352939f5f24ebe