Commit Graph

486575 Commits

Author SHA1 Message Date
TreeHugger Robot
da52474c71 [automerger skipped] Merge "Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first"" into qt-dev am: 13ad919ff5 am: c4ee9df900 -s ours am: 9523520806 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630308

Change-Id: I130da6f8976c568d8c7d2053933d20316c526b95
2022-01-19 22:45:41 +00:00
Wu Ahan
5ce8479b9a [automerger skipped] Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first" am: b6509bdc18 am: 14bfa0cbd0 -s ours am: 5336a5afbb -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630308

Change-Id: I3a4dbd7793ff8caed01dccd2264e6f51e4cef8c5
2022-01-19 22:45:38 +00:00
TreeHugger Robot
9523520806 [automerger skipped] Merge "Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first"" into qt-dev am: 13ad919ff5 am: c4ee9df900 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630308

Change-Id: I417eb895fe579b1e92c8eaecc687101cc37a6efc
2022-01-19 22:33:44 +00:00
Wu Ahan
5336a5afbb [automerger skipped] Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first" am: b6509bdc18 am: 14bfa0cbd0 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630308

Change-Id: I59008a3b8e8a0e3ba8a04414cde129cffbd50637
2022-01-19 22:33:24 +00:00
TreeHugger Robot
49a8f9ebd7 Merge "Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first"" into rvc-dev am: 57095ccbeb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16631185

Change-Id: Ica1f625c29a8ec073d8b9723c55978fdc0b49fcd
2022-01-19 22:15:06 +00:00
Wu Ahan
38cd0a81dd Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first" am: cc4fe8984a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16631185

Change-Id: I607c675dbd7edd588713d7a07cec625954f5c623
2022-01-19 22:15:01 +00:00
TreeHugger Robot
c4ee9df900 Merge "Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first"" into qt-dev am: 13ad919ff5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630308

Change-Id: I1cdf031b38d920645b5877f9fb8195830e8be9a3
2022-01-19 22:14:48 +00:00
Wu Ahan
14bfa0cbd0 Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first" am: b6509bdc18
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16630308

Change-Id: I27fbeb2579c5c9ff689b5e20593195bd66cb07de
2022-01-19 22:14:40 +00:00
TreeHugger Robot
57095ccbeb Merge "Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first"" into rvc-dev 2022-01-19 21:27:12 +00:00
TreeHugger Robot
13ad919ff5 Merge "Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first"" into qt-dev 2022-01-19 21:27:05 +00:00
Wu Ahan
cc4fe8984a Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first"
This reverts commit fa9c73975e.

Reason for revert: will deliver a better fix for that, ag/16580245.

Change-Id: I567f20b4f545bed906938731c27eac6eb7aeddff
2022-01-13 14:43:00 +00:00
Wu Ahan
b6509bdc18 Revert "DO NOT MERGE: Decode the input of both setStream and setResource calls first"
This reverts commit 4d91b5aa0b.

Reason for revert: will deliver a better fix for that, ag/16580245.

Change-Id: I8691f47251157aae83d326eb808dd1c06b13a420
2022-01-13 14:41:40 +00:00
TreeHugger Robot
7f26a226d1 Merge "Handle onNullBinding" into rvc-dev am: ea90d380e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16602652

Change-Id: I91a7efbbac3a2a50f431f05fbd43e25abade9fe9
2022-01-12 22:45:51 +00:00
TreeHugger Robot
ea90d380e7 Merge "Handle onNullBinding" into rvc-dev 2022-01-12 22:29:12 +00:00
TreeHugger Robot
509a6a25a1 [automerger skipped] Merge "Check group channels for FGSes" into rvc-dev am: 41a585070d -s ours
am skip reason: Merged-In I9db781c300e96e9c80bd5d21585b8be9b4db08c8 with SHA-1 138f4633c3 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16600886

Change-Id: I25a50463001c11371b825a27cb82f31325bd6411
2022-01-12 19:21:46 +00:00
TreeHugger Robot
41a585070d Merge "Check group channels for FGSes" into rvc-dev 2022-01-12 19:04:16 +00:00
TreeHugger Robot
7f7ade363d [automerger skipped] Merge "Check group channels for FGSes" into qt-qpr1-dev am: 347e74fb87 -s ours am: 35ff8e4096 -s ours
am skip reason: Merged-In I9db781c300e96e9c80bd5d21585b8be9b4db08c8 with SHA-1 331b617949 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16619727

Change-Id: I0fdd12b0c99ccedb6593977f261004dbd1395cc8
2022-01-12 17:08:19 +00:00
TreeHugger Robot
35ff8e4096 [automerger skipped] Merge "Check group channels for FGSes" into qt-qpr1-dev am: 347e74fb87 -s ours
am skip reason: Merged-In I9db781c300e96e9c80bd5d21585b8be9b4db08c8 with SHA-1 331b617949 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16619727

Change-Id: I372cc4ca8c88b5129a7bb19ac64447b655742b2d
2022-01-12 16:50:26 +00:00
TreeHugger Robot
347e74fb87 Merge "Check group channels for FGSes" into qt-qpr1-dev 2022-01-12 16:37:07 +00:00
Jeff DeCew
dca63bd29f Merge "Prevent a crash when constructing NSSL." into qt-dev am: a9828ff519 am: bba34a3fcf am: 86ec69b6a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16611809

Change-Id: Ie535b2787b4160076983a79c2b60435f4cf99a3e
2022-01-12 15:52:12 +00:00
Jeff DeCew
86ec69b6a8 Merge "Prevent a crash when constructing NSSL." into qt-dev am: a9828ff519 am: bba34a3fcf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16611809

Change-Id: Ic9c5d7c32bc1dace98e548fe5fea9734855aa72a
2022-01-12 15:31:49 +00:00
Julia Reynolds
6456b622fd Check group channels for FGSes
Before allowing the group to be deleted, by updating
the current check to the method that populates the channel
list

Test: NotificationManagerServiceTest
Bug: 209965481
Change-Id: I9db781c300e96e9c80bd5d21585b8be9b4db08c8
Merged-In: I9db781c300e96e9c80bd5d21585b8be9b4db08c8
2022-01-12 15:16:57 +00:00
Jeff DeCew
bba34a3fcf Merge "Prevent a crash when constructing NSSL." into qt-dev am: a9828ff519
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16611809

Change-Id: If26f91fd0f0e4d566ac056eb9b04513f4452bf67
2022-01-12 15:11:03 +00:00
Jeff DeCew
a9828ff519 Merge "Prevent a crash when constructing NSSL." into qt-dev 2022-01-12 14:58:53 +00:00
Julia Reynolds
138f4633c3 Check group channels for FGSes
Before allowing the group to be deleted, by updating
the current check to the method that populates the channel
list

Test: NotificationManagerServiceTest
Bug: 209965481
Change-Id: I9db781c300e96e9c80bd5d21585b8be9b4db08c8
Merged-In: I9db781c300e96e9c80bd5d21585b8be9b4db08c8
(cherry picked from commit 331b617949)
2022-01-12 14:26:18 +00:00
TreeHugger Robot
145bffd8ea [automerger skipped] Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into qt-dev am: 768bf858bb am: c4dfb0d88c -s ours am: 06653f3fdf -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16564590

Change-Id: I31621b69e07688bee9fff49c3bfbed9518ca2c87
2022-01-12 11:09:02 +00:00
Jeff Chang
5c1f20c075 [automerger skipped] [RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity am: cd1f9e72cf am: a9acc6ae3a -s ours am: ef8a93f667 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16564590

Change-Id: I8253128d66a02153bedb0b71c750c13d20379f12
2022-01-12 11:08:55 +00:00
TreeHugger Robot
06653f3fdf [automerger skipped] Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into qt-dev am: 768bf858bb am: c4dfb0d88c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16564590

Change-Id: Ic871969c7969e8a050157defc2d5c4fefee346de
2022-01-12 10:56:32 +00:00
Jeff Chang
ef8a93f667 [automerger skipped] [RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity am: cd1f9e72cf am: a9acc6ae3a -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16564590

Change-Id: I2842f83db267e3f4b1d98bcf6f78048eb8d7befa
2022-01-12 10:56:19 +00:00
TreeHugger Robot
c4dfb0d88c Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into qt-dev am: 768bf858bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16564590

Change-Id: I8a4911d1b7b4c23f79c433d6926302486008f143
2022-01-12 10:38:47 +00:00
Jeff Chang
a9acc6ae3a [RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity am: cd1f9e72cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16564590

Change-Id: I92f4fa6032291031c3ab05f4e8518199c5545954
2022-01-12 10:38:33 +00:00
TreeHugger Robot
768bf858bb Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into qt-dev 2022-01-12 10:25:27 +00:00
Songchun Fan
1e04a9cad6 [automerger skipped] Merge "Persist destroyed staged sessions until they are cleaned up" into qt-dev am: 30348d5cdc am: ca4faab256 -s ours am: 18651732ad -s ours
am skip reason: Merged-In I4ede6b7a4b5d861e5c73f13884c7aa86cf7633a2 with SHA-1 731bd965fb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16575908

Change-Id: Ib79abdd9fc4a19e517601f94383cf752b8e99452
2022-01-12 03:07:23 +00:00
Songchun Fan
b3f20c921b [automerger skipped] Merge "Don't abandon child sessions (1/n)" into qt-dev am: 5bf4a3f29e -s ours am: a0961661bb -s ours am: 793e127159 -s ours
am skip reason: skipped by user schfan

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16572163

Change-Id: I7790e867a4c067afe5775bcfa76200106babd547
2022-01-12 03:07:21 +00:00
Songchun Fan
18651732ad [automerger skipped] Merge "Persist destroyed staged sessions until they are cleaned up" into qt-dev am: 30348d5cdc am: ca4faab256 -s ours
am skip reason: Merged-In I4ede6b7a4b5d861e5c73f13884c7aa86cf7633a2 with SHA-1 731bd965fb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16575908

Change-Id: I02d6b14b5a55dc54931feb5ec1b08b41dfa95b92
2022-01-12 02:48:38 +00:00
Songchun Fan
793e127159 [automerger skipped] Merge "Don't abandon child sessions (1/n)" into qt-dev am: 5bf4a3f29e -s ours am: a0961661bb -s ours
am skip reason: skipped by user schfan

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16572163

Change-Id: I4c52b159f68e5086d84edeb22080323ac205c96e
2022-01-12 02:48:31 +00:00
Songchun Fan
ca4faab256 Merge "Persist destroyed staged sessions until they are cleaned up" into qt-dev am: 30348d5cdc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16575908

Change-Id: I4b67d39d39b3592139235e3375edf5c408795e79
2022-01-12 02:31:29 +00:00
Songchun Fan
a0961661bb [automerger skipped] Merge "Don't abandon child sessions (1/n)" into qt-dev am: 5bf4a3f29e -s ours
am skip reason: skipped by user schfan

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16572163

Change-Id: Ie9547a891f73ff858f29c144d4c4c55ddd7e4292
2022-01-12 02:31:25 +00:00
Jackal Guo
6b5b8cd03b Merge "[RESTRICT AUTOMERGE] Fix the inconsistency of protection level" into rvc-dev am: c9fc96e7b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16531386

Change-Id: Ic21462f65215d1da9791b1913972966e8245c3b5
2022-01-12 01:53:22 +00:00
Jackal Guo
c1826ef1b4 [RESTRICT AUTOMERGE] Fix the inconsistency of protection level am: b5efdf7293
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16531386

Change-Id: I9c1ffc3bdba6e40ba32be04ada50ffc82892a62c
2022-01-12 01:53:19 +00:00
Jackal Guo
c9fc96e7b4 Merge "[RESTRICT AUTOMERGE] Fix the inconsistency of protection level" into rvc-dev 2022-01-12 01:32:38 +00:00
Songchun Fan
30348d5cdc Merge "Persist destroyed staged sessions until they are cleaned up" into qt-dev 2022-01-11 23:31:01 +00:00
Songchun Fan
5bf4a3f29e Merge "Don't abandon child sessions (1/n)" into qt-dev 2022-01-11 23:31:01 +00:00
Mohammad Samiul Islam
6151941007 Persist destroyed staged sessions until they are cleaned up
Currently, when we abandon a staged session we mark it as destroyed and
then immediately clean it up. Cleaning up a staged session immediately
causes racing condition with pre-reboot verification.

In order to avoid the racing condition, we want to delay cleanup of
staged session until it is safe to do so. This means, the system will
be carrying around destroyed staged sessions internally.

Since there is now a gap between when a session is destroyed and when it
is cleaned up, the user can reboot in this window. As such, we need to
persist the mDestroyed field of session so that we know session is
destroyed after reboot and act accordingly.

Also, once a session is destroyed, theoretically it doesn't exist.
Carrying it around internally is an implementation details which
shouldn't be exposed externally. As such, we filter out destroyed
sessions before surfacing them to users.

Bug: 145925842
Bug: 67862680
Test: atest PackageInstallerSessionTest
Test: atest StagedInstallTest
Change-Id: I4ede6b7a4b5d861e5c73f13884c7aa86cf7633a2
Merged-In: I4ede6b7a4b5d861e5c73f13884c7aa86cf7633a2
(cherry picked from commit 731bd965fb)
2022-01-11 22:54:46 +00:00
Julia Reynolds
120d0e7ae7 [automerger skipped] Check group channels for FGSes am: 331b617949 -s ours am: d21f306f3e -s ours am: a250ac1cf7 -s ours
am skip reason: skipped by user juliacr

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16600522

Change-Id: If286009db76f95bbfd4b6f3fb76c04000397891b
2022-01-11 22:17:37 +00:00
Songchun Fan
09acdc8edf Merge "Don't abandon child sessions (1/n)" into rvc-dev am: 966fd5d60f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16572034

Change-Id: Ib2ff57114ea9cd6b368000ca16897fa9d6528e05
2022-01-11 22:17:30 +00:00
Julia Reynolds
a250ac1cf7 [automerger skipped] Check group channels for FGSes am: 331b617949 -s ours am: d21f306f3e -s ours
am skip reason: skipped by user juliacr

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16600522

Change-Id: Ib98aa8fe63bacea3dad30b7c6a89c6a0a4cc1ae1
2022-01-11 22:11:20 +00:00
Songchun Fan
966fd5d60f Merge "Don't abandon child sessions (1/n)" into rvc-dev 2022-01-11 22:02:01 +00:00
Julia Reynolds
d21f306f3e [automerger skipped] Check group channels for FGSes am: 331b617949 -s ours
am skip reason: skipped by user juliacr

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16600522

Change-Id: I8ff35bac38c3f355f0a6e83ab591e201be2a69a6
2022-01-11 21:58:21 +00:00
Fabian Kozynski
d0e683b8f6 Handle onNullBinding
According to the docs, an onNullBinding requires the service to be
manually unbound.
Test: test apk that return null on onBind
Test: atest ControlsProviderLifecycleManager
Fixes: 212286849

Change-Id: I71a59b875bbf9eb411e6e92ddc5a04a7353a46c4
2022-01-11 18:00:15 +00:00