summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Azhara Assanova <azharaa@google.com> 2024-02-20 13:05:17 +0000
committer Azhara Assanova <azharaa@google.com> 2024-02-20 17:33:15 +0000
commite32633ffdcc0c661dd1b194e247aaf77c6212d99 (patch)
treef283ad2c35512693e00ea558a3871fc0604f86e5 /libs/androidfw/ZipFileRO.cpp
parent75e9f0116abcb710f239a640c7d6f5601fa2f68a (diff)
Grant app visibility if launching app opts in to sharing identity
Android V introduced new ComponentCaller APIs that allow a launching app to opt-in to sharing its identity with a launched activity if it goes into onNewIntent. These APIs (getUid/getPackage) are supposed to function the same way as the existing getLaunchedFromUid/getLaunchedFromPackage APIs. Hence, similar to Change-Id I2b4b2acbd127b01f231c4852704ba69e31c4aaed, this change grants app visibility if the new intent caller opts in to sharing their identity. This allows the launched activity to access the details and signing the identity of the launching app. The existing CTS in ShareIdentityTest already verify such behaviour. Bug: 325695307 Test: atest CtsAndroidAppTestCases:android.app.cts.ShareIdentityTest Test: atest CtsAndroidAppTestCases:android.app.cts.ShareIdentityTest#testActivityNewIntentGetCurrentCallerShareIdentity_explicitIdentityShared_identityAvailableToActivity Test: atest CtsAndroidAppTestCases:android.app.cts.ShareIdentityTest#testActivityNewIntentOverloadCallerShareIdentity_explicitIdentityShared_identityAvailableToActivity Test: atest WmTests:ActivityTaskSupervisorTests Change-Id: I221eef008506c2c7af16e2fb771bd7870b3bbcbe
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions