| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
Enable indicating to apply no_user_action flag while starting a
shortcut to split.
Bug: 267723349
Test: check the applied flags with activity start logs
Change-Id: I51c2152138cc80187ff649bea0bb415ac6ab043e
|
| |
|
|
|
|
|
|
|
| |
Enable indicating to apply multiple_task flag while starting a shortcut
to split.
Bug: 265244780
Test: check the applied flags with activity start logs
Change-Id: Ia634baebeaf5f992fca40381b4a3c6bc7980017e
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For now only support startActivityFromRecents.
Use ActivityOptions#setDisableStartingWindow to disable showing the
starting window for current launch.
Bug: 202826469
Test: call setDisableStartingWindow in TaskView#launchTask, verify no
starting window for that launch.
Change-Id: I6151c1b4c45f424b46a957846539e3345d919de8
|
| |\
| |
| |
| |
| |
| |
| |
| |
| | |
into sc-v2-dev am: eeab60091c am: 5a154b395a am: 85817e6590
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19518999
Change-Id: I97d1c2c87625ac8405452d64b922c9b06e6ed5a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
into sc-v2-dev am: eeab60091c am: 5a154b395a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19518999
Change-Id: Id85f7d2eeaf467cc5c77213379fff81b57c4a67f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | | |\
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
into sc-v2-dev am: eeab60091c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19518999
Change-Id: I2996d813bc8a89c220e7c89efdd064d3c7ef3fdd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The implementation of shared-element transitions takes the
ActivityOptions from the calling activity and sends them to
another activity. This means that any sensitive information
passed into ActivityManager via ActivityOptions can make its
way to an unrelated app. Recently a RemoteTransition object
was added which includes some sensitive information.
This CL strips the sensitive information from the activity
options before sending it to anonther app.
Bug: 237290578
Test: atest ActivityManagerTest#testActivityManager_stripTransitionFromActivityOptions
Change-Id: Ifa08fc195698f02bf70ca386178c67f6ba4a14ea
|
| |\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
read."" into sc-v2-dev am: 1099b25b2d am: d7ae033815 am: 2e763d31d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19517194
Change-Id: If8f1ab91e07e72b49859593c77471f54d399a367
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |\| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
read."" into sc-v2-dev am: 1099b25b2d am: d7ae033815
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19517194
Change-Id: I75303fa1000a2a5ca6233daa8c75fbcdce1238ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | | |\|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
read."" into sc-v2-dev am: 1099b25b2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19517194
Change-Id: I0b8d234013f3551354f815533f2b4576b9100a48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This reverts commit 0b3ad39abf059b3e6e3088ab9d3ac6c43c29a2d5.
Reason for revert: Broke NexusLauncherTests:MemoryTests
Change-Id: Ibc8e9f516054f017e9db2e5608cf6806531ab554
|
| |\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
into sc-v2-dev am: dc8ae7665a am: a824844cdf am: 7cb144249f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505172
Change-Id: Ibded759578f05fe3dab6af5f0dc0e8579756e46d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | |\| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
into sc-v2-dev am: dc8ae7665a am: a824844cdf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505172
Change-Id: Id7de444318f392c3d8e9735df2dd78834fc79eee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | | |\|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
into sc-v2-dev am: dc8ae7665a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19505172
Change-Id: I489c233fea52fff948c5b4d92cd61163904e974d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The implementation of shared-element transitions takes the
ActivityOptions from the calling activity and sends them to
another activity. This means that any sensitive information
passed into ActivityManager via ActivityOptions can make its
way to an unrelated app. Recently a RemoteTransition object
was added which includes some sensitive information.
This CL strips the sensitive information from the activity
options after it is extracted so that it can't be sent
to the target.
Bug: 237290578
Test: atest ActivityManagerTest#testActivityManager_stripTransitionFromActivityOptions
Change-Id: Ic9f8062e67ab895292af75e97a9ce2f4aa45d467
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previous the splash screen style can either be EMPTY or ICON, and need
to be set by new hidden API #setSplashscreenStyle, so the flag will
always be "EMPTY" for those 3rd party Launcher Apps which may have not
upgrade to targetSDK 31.
To correct the default behaivor for Launcher Apps, create a new
UNDEFINED style as default value for splashScreenStyle, and if the
value is UNDEFINED, determine the style by checking the launch source.
Test: Verify no change when default home is NexusLauncher.
Test: Set 3rd-party Launcher as default home, verify the splash screen
style should be ICON when launch app from Launcher.
Test: atest SplashscreenTests
Bug: 206746601
Change-Id: I105e2fcfc7a6ee8de7f442931cbeb4b6e517850d
Merged-In: I105e2fcfc7a6ee8de7f442931cbeb4b6e517850d
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Replaced ActivityOption#dismissKeyguardIfInsecure by
ActivityOption#dismissKeyguard, with which the server doesn't check if
the keyguard is insecure again. The caller has to make sure if the
keygaurd can be dismissed without additional authentication.
Bug: 203044476
Test: atest KeyguardLockedTests KeyguardTransitionTests
Change-Id: Ia83da6286875f1a539edbaf515fe01c07ce1ba76
Merged-In: Ia83da6286875f1a539edbaf515fe01c07ce1ba76
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The source rect hint specified by the app is normally a result of
View#getGlobalVisibleRect (or equivalent) that does not count the window
offset in scenarios like the app is placed in the middle of display by
the system when
- app specifies sensorLandscape
- display is actually in portrait mode (on large screens)
Fixed this by adjust the source rect hint on ActivityRecord whenever the
internal PictureInPictureParams is updated.
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dr7uy1qxB1RGjZVvElo7kr
Bug: 235599028
Test: Verify entering PiP animation working as intended for \
app specifies sensorLandscape when auto-enter-pip and \
make-launch-into-pip (aka. content-pip).
Test: atest WmTests:ActivityRecorderTests \
WmTests:ActivityStarterTests
Change-Id: Id991adbae45a7b61d09105a9aee9cbfecd6b66be
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Replaced ActivityOption#dismissKeyguardIfInsecure by
ActivityOption#dismissKeyguard, with which the server doesn't check if
the keyguard is insecure again. The caller has to make sure if the
keygaurd can be dismissed without additional authentication.
Bug: 203044476
Test: atest KeyguardLockedTests KeyguardTransitionTests
Change-Id: Ia83da6286875f1a539edbaf515fe01c07ce1ba76
|
| | |
| |
| |
| |
| |
| | |
Bug: 229948029
Test: atest ActivityTransitionTests
Change-Id: I1e6d21c8b603f4e81bde6c649868baad625c2b38
|
| | |
| |
| |
| |
| |
| |
| |
| | |
foreground state
Bug: 227431919
Test: atest BackgroundActivityLaunchTest
Change-Id: I7192f65e747e6048d3a26ecb203767290fa5406e
|
| |\ \
| | |
| | |
| | | |
launched." into tm-dev
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add a new ActivityOption#setDismissKeyguardIfInsecure remove keyguard
when an activity is launched while an insecure keyguard is shown. If
this option is set, WMS waits until the launched activity finishes
drawing its surface, then starts KEYGUARD_GOING_AWAY app transition.
Bug: 203044476
Test: atest KeyguardLockedTests KeyguardTransitionTests
Change-Id: I0f6a501baa2a60ae044bf1ef888e5e6f57a5f13e
|
| |\ \ \
| |/ /
|/| |
| | | |
into tm-dev
|
| | | |
| | |
| | |
| | |
| | | |
Test: atest CtsWindowManagerDeviceTestCases:ActivityTransitionTests
Change-Id: I43f042678c5bea9d027552266ffb6c00ab92f3c0
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit c5bf49474f9b7ed242b8ccff8ba56f62356a34d7.
Reason for revert: API council decided not to expose it.
Bug: 202145402
Test: atest ActivityOptionsTest
Change-Id: I19c84a905f929e87f20a8dd28a3f45caf3e29c2c
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Preventing from misleading developers.
Bug: 217953215
Test: atest SplashscreenTests StartingSurfaceDrawerTests
ActivityRecordTests
Change-Id: I8669effb2e843ebe61e807850359b07b36b39fb3
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Only show a permission prompt if the activity is a launcher, the calling
app is the same as the opened intent app, or the
isEligibleForLegacyPermissionPrompt ActivityOption is set. Also prevents
the dialog from showing while the keyguard is locked.
Test: atest NotificationPermissionTest
Bug: 194833441
Fixes: 220891438
Change-Id: Ie5381af045d538a5b822bb1ccdf62b1dd916114f
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Terms
- Host activity, the activity that the content-pip is originated from.
There should be some UI affordance on Host activity user can tap to
enter content-pip
- Container activity, the activity that carries the content from Host
Activity and transits to PiP mode
Workflow in brief
- Container activity is defined in the same application as Host activity
- A new ActivityOptions#makeLaunchIntoPip API is added, Host activity
uses this API to construct ActivityOptions to launch the Container
activity directly into pip mode.
- ActivityStarter sets a reference on Container activity pointing to
Host activity upon creation and moves the activity to pinned task
- WMShell transits Container activity to pinned mode
- When user taps on `Expand` button in PiP menu, WMShell calls
WCT#startTask with the task id to bring the Host task to front
Content hand-off
- Since Host activity is the one starts Container activity, it can
replace its content with some placeholder right after startActivity
- This CL also makes the assumption that Host activity can establish a
communication channel with the Container activity, such as using the
ResultReceiver parcelable. Therefore it's out of scope to provide
extra callback to Host activity on lifecycle events of Container activity.
See also the design doc go/content-pip-v2 and the end-to-end demo in
ApiDemos `App > Activity > Picture in Picture`
Bug: 165793661
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/e9Mp5rvxYBrNOdGSUoSXHO
Test: manual, see Video
Test: atest WmTests:ActivityOptionsTest \
WmTests:ActivityRecordTests \
WmTests:ActivityStarterTests \
PinnedStackTests
Change-Id: I2bebfea8d1930b0b7e495d91cfd5ddc7c347da68
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Provider a safer API getParcelable() that takes a Class<?> parameter
just like the safer Parcel APIs introduced, so we check the type before
deserializing, preventing unexpected and potentially vulnerable code
being executed (technique used in the bugs).
Making it @hide since ASA requested this in T (more details on bugs)
and the urgent usage is inside the platform, we can flesh out a public
API for U.
Test: App code gpaste/6130483466338304 logs gpaste/5148052949041152
Bug: 213169612
Bug: 212804042
Bug: 212803946
Bug: 210885162
Change-Id: Ieebc044043e0776e71d35c1cc11be9299f972c45
|
| |/ /
| |
| |
| |
| |
| | |
Bug: 217953215
Test: atest ActivityOptionsTest#testActivityOptionsBundle_fromBundle
Change-Id: I16c5ffbbbc2c40a6216b4338943ae45fadc92f76
|
| | |
| |
| |
| |
| |
| |
| | |
overridePendingTransition
Test: atest CtsWindowManagerDeviceTestCases:AnimationBackgroundTests
Change-Id: I3debc8c1f4646cfd7c20c3f8e57abd465aec23ad
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Allow developer to control the splash screen style when the option is
used for cold or warm launch an activity.
Bug: 203497083
Test: atest SplashscreenTests#testLaunchFromLauncherWithEmptyIconOptions
Test: atest SplashscreenTests#testLaunchAppWithIconOptions
Change-Id: I9c4ccca2470df5dbac96da2d4a96b616b6670688
|
| | |
| |
| |
| |
| |
| |
| | |
Test: Make sure apps with custom animations set using WindowAnimationStyle actually use the custom animation when shell is enabled
Bug: 206960607
Change-Id: I1d982870837d67c74f76dd0a90aa5260d9441aba
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previous the splash screen style can either be EMPTY or ICON, and need
to be set by new hidden API #setSplashscreenStyle, so the flag will
always be "EMPTY" for those 3rd party Launcher Apps which may have not
upgrade to targetSDK 31.
To correct the default behaivor for Launcher Apps, create a new
UNDEFINED style as default value for splashScreenStyle, and if the
value is UNDEFINED, determine the style by checking the launch source.
Test: Verify no change when default home is NexusLauncher.
Test: Set 3rd-party Launcher as default home, verify the splash screen
style should be ICON style when launch app from Launcher.
Test: atest SplashscreenTests
Bug: 206746601
Change-Id: I105e2fcfc7a6ee8de7f442931cbeb4b6e517850d
|
| |\|
| |
| |
| |
| |
| |
| |
| | |
fdf0378b8d am: 8ea64535a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16093509
Change-Id: I2a76d0ee05bc162bb171831aaf4691482756388d
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This is needed for digital wellbeing, see go/dwb-dialog-multi-window-dd for more information.
Bug: 199825187
Test: N/A
Change-Id: Ic0acbb034f326d0e8bc0e63d8c1a7b3f35a0e931
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is in preparation for attaching some extra meta information
to remote transitions (eg. process token). Most of this refactor
just replaces references to the raw interface with references
to the wrapper class.
There is also a small refactor in RemoteTransitionHandler to
better-manage death-recipients. It is possible to have >1 filter
and >1 pendings referencing the same remote simultaneously, so
this arrangement properly handles the 1-to-many possibility.
Bug: 183993977
Test: refactor, so existing tests pass
Change-Id: Icae8f2128e0ffdf7aee51284cba106963450e3e7
Merged-In: Icae8f2128e0ffdf7aee51284cba106963450e3e7
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
remove @hide
Patchset 1 is the same as ag/15884451.
The latest patchset is adding SystemAPI annotation to fix the broken test in patchset 1.
Bug: 192341120
Bug: 203407624
Test: atest BackgroundActivityLaunchTest
Change-Id: I1ac315a3268bba590406e834f4930b0cb4db5de8
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| | |
CarService mainline module will use it.
Changed to accept NonNull only.
Bug: 195598146
Test: atest android.app.cts.ActivityOptionsTest
Change-Id: Iae70522fe1ad8b17a01c230ca8afb7a18b83a7ed
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
For example, AlarmManagerService uses it to block all PendingIntent BAL,
so no apps can use alarm manager api to start activity from background.
The current default behavior is allowing PendingIntent to use caller's
foreground visibility to determine if BAL can be launched. We may want to
change this behavior becomes disallow by default, but it may need androidx
changes as SliceView is using PendingIntent.send() to launch apps and it
should allow apps to start BAL activity using Slice API.
For legacy app (targetSDK < T), even the flag is allowed, it won't use
caller's BAL permission to bypass BAL checking, to match the original
behavior.
Next step will be removing @hide and formalize the api.
Bug: 192341120
Test: atest BackgroundActivityLaunchTest
Test: Test AlarmManager API, PendingIntent won't cause BAL.
Change-Id: I89588473f0f028078adb9230caacb18ed4d6c504
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is in preparation for attaching some extra meta information
to remote transitions (eg. process token). Most of this refactor
just replaces references to the raw interface with references
to the wrapper class.
There is also a small refactor in RemoteTransitionHandler to
better-manage death-recipients. It is possible to have >1 filter
and >1 pendings referencing the same remote simultaneously, so
this arrangement properly handles the 1-to-many possibility.
Bug: 183993977
Test: refactor, so existing tests pass
Change-Id: Icae8f2128e0ffdf7aee51284cba106963450e3e7
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows applying split rules to activity start requests for
different processes and covers APIs like 'startActivityAsUser',
not requiring app developers to use dedicated APIs to start to side
instead.
When the client organizer observes a new activity being started, it
creates a new TaskFragment first and modifies the activity start
options to target that container.
Bug: 194140227
Bug: 190433398
Test: Manual, using reference implementation and sample app.
Change-Id: Ice3de8ec725d327266ec38052129b4158608855e
|
| |
|
|
|
|
| |
Change-Id: Iee1e9c1568973f8354e781fcd3de160b8d494921
Bug: 185200798
Test: atest ShortcutManagerTest2 SplashscreenTests
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Provide a method ActivityOptions#setSplashscreenStyle to specify
splash screen style if needed.
If not set, the default option will be empty-style splash screen, so
without any other change, the activity launched from systemui with
ActivityOptions will become empty style splash screen.
Bug: 188023621
Bug: 189293785
Test: manual test start application from Launcher and Notification.
Change-Id: I299320db8f32fbd835c7ec0acaad3df3486a13f5
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds an ActivityOption call "transient launch" which can be
used to tell WM that this particular launch is likely temporary
and may not be committed. This is for recents where it exists
for the duration of the transition, but then disappears once the
user's intention is resolved.
The effect of this is that it won't pause the running app while
in recents -- instead deferring pause until the transition finishes
and the final visibility states are committed.
Bug: 183993884
Test: enable shell transitions, open app, swipe to overview and
check dumpsys to see that the app is still RESUMED
Change-Id: Iba6b8faf4e42c645bfd0305b93b7e0b542fd2c96
|