Commit Graph

482734 Commits

Author SHA1 Message Date
Sunny Goyal
9b98f15fde [automerger skipped] [DO NOT MERGE] Fixing unsafe pending intent in notification am: 7ff5163b2d -s ours am: c3ccdd5af9 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ifb5c327ff3c5432e5188f960253f9d9c02ccfb62
2021-09-07 15:35:36 +00:00
Sunny Goyal
c3ccdd5af9 [automerger skipped] [DO NOT MERGE] Fixing unsafe pending intent in notification am: 7ff5163b2d -s ours
am skip reason: skipped by user sunnygoyal

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

Change-Id: I5186b592a2b24d9dafe143e313916ee6bf7036b9
2021-09-07 15:19:24 +00:00
Evan Chen
30d1571a99 Backporting the change of ag/15629060 to pi-dev am: 95ff59db3b am: e317818b24 am: 8f758cff77
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15748731

Change-Id: I4ab49de9988e42f1ce63422b214b6405e5839dcd
2021-09-06 05:19:57 +00:00
Evan Chen
646b7c72ef Merge "Backporting the change of ag/15629060 to qt-dev" into qt-dev am: 587162dfb8 am: 37d7f20996
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15744060

Change-Id: If52ac8ad7665dfdff6c6fee7f4a42f9e7bffd583
2021-09-06 05:19:33 +00:00
Evan Chen
8f758cff77 Backporting the change of ag/15629060 to pi-dev am: 95ff59db3b am: e317818b24
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15748731

Change-Id: I367963c27904d0ec965c16a4275a6cc18386c346
2021-09-06 05:07:54 +00:00
Evan Chen
e317818b24 Backporting the change of ag/15629060 to pi-dev am: 95ff59db3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15748731

Change-Id: Ibd3803cbca8dbc9ce44f5982f84a5e81b840c1bc
2021-09-06 05:04:36 +00:00
Evan Chen
37d7f20996 Merge "Backporting the change of ag/15629060 to qt-dev" into qt-dev am: 587162dfb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15744060

Change-Id: I3b0f3bdeff33c52b5b20f4b6db10f5069d9bfbb6
2021-09-06 05:03:16 +00:00
Evan Chen
587162dfb8 Merge "Backporting the change of ag/15629060 to qt-dev" into qt-dev 2021-09-06 04:50:56 +00:00
Aseem Kumar
9290f7b31f [automerger skipped] Prevent apps from spamming addAccountExplicitly. am: 551d70e1c8 am: 662fcc58ef -s ours
am skip reason: skipped by user aseemk

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

Change-Id: I276d0881ce0ffdbf72ad16381cd3b32b26042f8b
2021-09-03 22:50:13 +00:00
Aseem Kumar
662fcc58ef Prevent apps from spamming addAccountExplicitly. am: 551d70e1c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15624525

Change-Id: If96923b691c90b4d2f6e247db3474aba99183383
2021-09-03 22:19:18 +00:00
Aseem Kumar
551d70e1c8 Prevent apps from spamming addAccountExplicitly.
See comment here for the discussion on solution
https://b.corp.google.com/issues/169762606#comment14

Change-Id: If212df3a3b7be1de0fb26b8e88b2fcbb8077c253

Bug: 169762606
(cherry picked from commit 11053c17b3)

Change-Id: I424e098dd70ae31bbbc7cb2f3eccd1ccc287064b
Merged-In: If212df3a3b7be1de0fb26b8e88b2fcbb8077c253
2021-09-03 19:08:23 +00:00
Evan Chen
95ff59db3b Backporting the change of ag/15629060 to pi-dev
Bug: 172251622
Bug: 197035186
Change-Id: Ic3ffcb622af232473adf8a8c8307cce78227bac0
Merged-In: I7e2f95fd85e18127dc481f188ace8ad6effc4831
Test: Manual
2021-09-03 01:44:39 +00:00
Evan Chen
55f71f96c3 Backporting the change of ag/15629060 to qt-dev
Bug: 172251622
Bug: 197035186
Change-Id: Ic3ffcb622af232473adf8a8c8307cce78227bac0
Merged-In: I7e2f95fd85e18127dc481f188ace8ad6effc4831
Test: Manual
2021-09-03 01:44:01 +00:00
TreeHugger Robot
037fa26965 [automerger skipped] Merge "DO NOT MERGE Bluetooth: Fix formatting in getAlias()" into qt-dev am: 204ab511e0 -s ours am: 5a1724e2ce -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iaa0363ca02db2085fe5d798dd1cedcc966e8e84d
2021-09-02 01:48:29 +00:00
TreeHugger Robot
5a1724e2ce [automerger skipped] Merge "DO NOT MERGE Bluetooth: Fix formatting in getAlias()" into qt-dev am: 204ab511e0 -s ours
am skip reason: Merged-In Ic309f4aad116fd424d5d0d0e2016d61be8826b78 with SHA-1 3bdad2df2e is already in history

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

Change-Id: Ia04240ef3e40f7f19dc736fcbb6017809e1db98f
2021-09-02 01:35:41 +00:00
TreeHugger Robot
204ab511e0 Merge "DO NOT MERGE Bluetooth: Fix formatting in getAlias()" into qt-dev 2021-09-02 01:20:06 +00:00
TreeHugger Robot
01a542b340 [automerger skipped] Merge "DO NOT MERGE Bluetooth: Fix formatting in getAlias()" into pi-dev am: 44dc2b273b -s ours am: 34709e93e6 -s ours am: 36fbfc6d1a -s ours
am skip reason: subject contains skip directive

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

Change-Id: Icda10552348d4b3ca9ede20801352c34856c8976
2021-09-02 00:33:27 +00:00
TreeHugger Robot
36fbfc6d1a [automerger skipped] Merge "DO NOT MERGE Bluetooth: Fix formatting in getAlias()" into pi-dev am: 44dc2b273b -s ours am: 34709e93e6 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I85974d9dd9cb2112f7a5ef7b69795890b1af1b2b
2021-09-02 00:17:58 +00:00
TreeHugger Robot
34709e93e6 [automerger skipped] Merge "DO NOT MERGE Bluetooth: Fix formatting in getAlias()" into pi-dev am: 44dc2b273b -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ib2727dcac4709ffa2015923ed256978ff1d74705
2021-09-02 00:03:44 +00:00
TreeHugger Robot
44dc2b273b Merge "DO NOT MERGE Bluetooth: Fix formatting in getAlias()" into pi-dev 2021-09-01 23:50:38 +00:00
Hansong Zhang
3bdad2df2e DO NOT MERGE Bluetooth: Fix formatting in getAlias()
Bug: 180747689
Test: manual
Change-Id: Ic309f4aad116fd424d5d0d0e2016d61be8826b78
2021-09-01 21:19:06 +00:00
Hansong Zhang
e15791bbe1 DO NOT MERGE Bluetooth: Fix formatting in getAlias()
Bug: 180747689
Test: manual
Change-Id: Ic309f4aad116fd424d5d0d0e2016d61be8826b78
Merged-In: Ic309f4aad116fd424d5d0d0e2016d61be8826b78
2021-09-01 21:18:43 +00:00
TreeHugger Robot
e469f5aaad [automerger skipped] Merge "Prevent apps from spamming addAccountExplicitly. See comment here for the discussion on solution https://b.corp.google.com/issues/169762606#comment14" into pi-dev am: a0226b4d47 am: b65ac540d2 am: 7c35716464 -s ours
am skip reason: skipped by user aseemk

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

Change-Id: I07cd52ca668c95d165bb0d44c2c4ce4982ae0a11
2021-09-01 20:18:32 +00:00
TreeHugger Robot
7c35716464 Merge "Prevent apps from spamming addAccountExplicitly. See comment here for the discussion on solution https://b.corp.google.com/issues/169762606#comment14" into pi-dev am: a0226b4d47 am: b65ac540d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15405290

Change-Id: Ib461e405d5bd65840fb4f1e962cdd5d1061a882f
2021-09-01 00:49:59 +00:00
TreeHugger Robot
b65ac540d2 Merge "Prevent apps from spamming addAccountExplicitly. See comment here for the discussion on solution https://b.corp.google.com/issues/169762606#comment14" into pi-dev am: a0226b4d47
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15405290

Change-Id: I0073721ed49e40043625eae71f37e7e95b987340
2021-09-01 00:34:01 +00:00
TreeHugger Robot
a0226b4d47 Merge "Prevent apps from spamming addAccountExplicitly. See comment here for the discussion on solution https://b.corp.google.com/issues/169762606#comment14" into pi-dev 2021-09-01 00:11:36 +00:00
TreeHugger Robot
c744a25d14 Merge "Prevent apps from spamming addAccountExplicitly. See comment here for the discussion on solution https://b.corp.google.com/issues/169762606#comment14" into rvc-dev 2021-08-31 22:41:01 +00:00
TreeHugger Robot
16a307631e Merge "Bluetooth: Fix formatting in getAlias()" into rvc-dev 2021-08-31 22:39:51 +00:00
TreeHugger Robot
2b220b4ef7 Merge "Fix parsing code parcelling errors" into rvc-dev 2021-08-31 22:10:40 +00:00
Sunny Goyal
7ff5163b2d [DO NOT MERGE] Fixing unsafe pending intent in notification
Bug: 173025705
Test: Manual
Change-Id: I37e807fffe9ad67caa93a91d5e350350514989ab
2021-08-31 10:51:20 -07:00
Hui Yu
63bab23a9d Merge "Revert "BG-FGS-start while-in-use permission restriction improve..."" into rvc-dev 2021-08-26 21:06:08 +00:00
Hui Yu
c83a949722 Revert "BG-FGS-start while-in-use permission restriction improve..."
Revert "Add test cases for background startForeground() improvement."

Revert submission 15081873-cherrypick-security_backport_183147114-an8dvy98fv

Reason for revert: https://b.corp.google.com/issues/197066403#comment15
After the app calls Service.startForeground() to put the app into foreground service mode, the service has mAllowWhileInUsePermissionInFgs set, if it is true, the app/service can access location/camera/micophone.

Some apps may call Service.startForeground() again (for any reason, could be a app's unintentional redundant call, could be that app want to update the notification of the foreground service), but at this moment the app has went into background mode, although the foreground service is still running. The second or later Service.startForeground() call may set mAllowWhileInUsePermissionInFgs to false and the app may lose location/camera/micophone access. This is incorrect because the foreground service is still running and we expect location/camera/micophone access to continue.

The Samsung Voice Recorder app has run into this situation.

Reverted Changes:
I0aca484e5:BG-FGS-start while-in-use permission restriction i...
I4988dbba1:Add test cases for background startForeground() im...
Bug: 183147114
Bug: 197066403
Change-Id: Iad32e4391fa15bc252e50f9b858fe2e5225edb19
Merged-In: Idc88f274c7a323d175d65bb47eca041772ae9bb7
2021-08-26 18:21:47 +00:00
Aseem Kumar
c65b81ba27 Prevent apps from spamming addAccountExplicitly.
See comment here for the discussion on solution
https://b.corp.google.com/issues/169762606#comment14

Change-Id: If212df3a3b7be1de0fb26b8e88b2fcbb8077c253

Bug: 169762606
(cherry picked from commit 11053c17b3)

Change-Id: I3ff7d8f4df086cb4c153e7ec873b85a093810722
Merged-In: If212df3a3b7be1de0fb26b8e88b2fcbb8077c253
2021-08-19 10:01:44 +00:00
Aseem Kumar
5beff34b57 Prevent apps from spamming addAccountExplicitly.
See comment here for the discussion on solution
https://b.corp.google.com/issues/169762606#comment14

Change-Id: If212df3a3b7be1de0fb26b8e88b2fcbb8077c253

Bug: 169762606
(cherry picked from commit 11053c17b3)

Change-Id: I6494366a5695daedc3f4f0046da9e130a5363f5f
Merged-In: If212df3a3b7be1de0fb26b8e88b2fcbb8077c253
2021-08-19 09:52:26 +00:00
Hansong Zhang
3c4a917cb9 Bluetooth: Fix formatting in getAlias()
Bug: 180747689
Test: manual
Change-Id: Ic309f4aad116fd424d5d0d0e2016d61be8826b78
2021-08-18 23:43:45 +00:00
Winson
37a0b6de89 Fix parsing code parcelling errors
Address problems reading/writing:
- ParsingPackageImpl mKeySetMapping
- ParsingPackageImpl mQueriesIntent

Bug: 187043377
Bug: 195962697

Test: atest com.android.server.pm.test.parsing.parcelling

Merged-In: I5b33315f8248d5fcbdef2cc04ecf77cc18dbd7b6
Change-Id: I5b33315f8248d5fcbdef2cc04ecf77cc18dbd7b6
(cherry picked from commit f93af7ef7e)
2021-08-16 18:03:08 +00:00
Sudheer Shanka
2ea88737b2 [automerger skipped] Merge "Add SafetyNet logging if a certain broadcast is received by apps." into oc-mr1-dev am: 83f71f1227 -s ours am: b0fccf4d9d -s ours am: d95a81b720 -s ours am: a899051254 -s ours
am skip reason: Merged-In I65b2e96ff1230b2051dd1e5bd9c21e5ba3e1146a with SHA-1 ad79043436 is already in history

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

Change-Id: I5dede0bbce340b220f3b096cbae320a36960b77e
2021-08-11 08:49:05 +00:00
Sudheer Shanka
a899051254 [automerger skipped] Merge "Add SafetyNet logging if a certain broadcast is received by apps." into oc-mr1-dev am: 83f71f1227 -s ours am: b0fccf4d9d -s ours am: d95a81b720 -s ours
am skip reason: Merged-In I65b2e96ff1230b2051dd1e5bd9c21e5ba3e1146a with SHA-1 ad79043436 is already in history

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

Change-Id: I56a4bd7bb79d1cf720c9eb9a37c137d0639a0451
2021-08-11 08:28:20 +00:00
Sudheer Shanka
d95a81b720 [automerger skipped] Merge "Add SafetyNet logging if a certain broadcast is received by apps." into oc-mr1-dev am: 83f71f1227 -s ours am: b0fccf4d9d -s ours
am skip reason: Merged-In I65b2e96ff1230b2051dd1e5bd9c21e5ba3e1146a with SHA-1 ad79043436 is already in history

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

Change-Id: I393aefeb1cb8aa19118b301df8cdbd0cef7dd94a
2021-08-11 08:11:09 +00:00
Sudheer Shanka
b0fccf4d9d [automerger skipped] Merge "Add SafetyNet logging if a certain broadcast is received by apps." into oc-mr1-dev am: 83f71f1227 -s ours
am skip reason: Merged-In I65b2e96ff1230b2051dd1e5bd9c21e5ba3e1146a with SHA-1 ad79043436 is already in history

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

Change-Id: I472c7d28b702b45537deb67d425dee9503f60a73
2021-08-11 07:57:05 +00:00
Sudheer Shanka
83f71f1227 Merge "Add SafetyNet logging if a certain broadcast is received by apps." into oc-mr1-dev 2021-08-11 07:43:26 +00:00
Lucas Lin
15941027a9 Merge "Make sure that only the owner can call stopVpnProfile()" into rvc-dev 2021-08-11 05:58:24 +00:00
Rhed Jao
1c93d67774 Merge "DO NOT MERGE Apply a maximum char count to the load label api" into rvc-dev 2021-08-11 05:19:39 +00:00
Rhed Jao
4fc54276f8 [automerger skipped] Merge "DO NOT MERGE Apply a maximum char count to the load label api" into qt-dev am: eeb7b8088a -s ours am: a746ce4a30 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3e421d9487a7bfec701717cf34d05dbdf294bb04
2021-08-11 04:06:06 +00:00
Rhed Jao
a746ce4a30 [automerger skipped] Merge "DO NOT MERGE Apply a maximum char count to the load label api" into qt-dev am: eeb7b8088a -s ours
am skip reason: Merged-In Ia4d768cc93a47cfb8b6f7c4b6dc73abd801809bd with SHA-1 b55d314f46 is already in history

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

Change-Id: Idb9fa3da460f60289aa7269c509d49ad22ccd60e
2021-08-11 03:51:10 +00:00
Sudheer Shanka
9769bbeeca [automerger skipped] Merge "Send targeted broadcasts to prevent other apps from receiving them." into oc-mr1-dev am: b10d3c4609 -s ours am: afeb24ebbd -s ours am: 4cbe7fc6f8 -s ours am: 113ecdc386 -s ours
am skip reason: Merged-In I11d736771d859d2af27d5c84a502ab038974e2e2 with SHA-1 c72848f9fe is already in history

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

Change-Id: I6b2830a0ff743222bf350c619dc7f2e57c92f279
2021-08-11 03:46:50 +00:00
Sudheer Shanka
7b68389397 [automerger skipped] Merge "Add SafetyNet logging if a certain broadcast is received by apps." into pi-dev am: 98adfca8a6 -s ours am: a7d40af8a5 -s ours am: 776b171548 -s ours
am skip reason: Merged-In I65b2e96ff1230b2051dd1e5bd9c21e5ba3e1146a with SHA-1 452a5aeec5 is already in history

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

Change-Id: I7da86dee11bfad7617935e6ffd7a72eb310123a7
2021-08-11 03:46:34 +00:00
Rhed Jao
eeb7b8088a Merge "DO NOT MERGE Apply a maximum char count to the load label api" into qt-dev 2021-08-11 03:39:57 +00:00
Sudheer Shanka
113ecdc386 [automerger skipped] Merge "Send targeted broadcasts to prevent other apps from receiving them." into oc-mr1-dev am: b10d3c4609 -s ours am: afeb24ebbd -s ours am: 4cbe7fc6f8 -s ours
am skip reason: Merged-In I11d736771d859d2af27d5c84a502ab038974e2e2 with SHA-1 c72848f9fe is already in history

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

Change-Id: If0b3fb71bb0cca6bc14162466377578f33831fba
2021-08-11 03:27:46 +00:00
Sudheer Shanka
776b171548 [automerger skipped] Merge "Add SafetyNet logging if a certain broadcast is received by apps." into pi-dev am: 98adfca8a6 -s ours am: a7d40af8a5 -s ours
am skip reason: Merged-In I65b2e96ff1230b2051dd1e5bd9c21e5ba3e1146a with SHA-1 452a5aeec5 is already in history

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

Change-Id: I8069195c84a12e0ac61c4f8a3dd8ac359c79dc83
2021-08-11 03:27:42 +00:00