summaryrefslogtreecommitdiff
path: root/core/java/android/accounts
Commit message (Collapse)AuthorAgeFilesLines
* Convert argument to intent in ChooseTypeAndAccountActivityDmitry Dementyev2022-12-141-1/+1
| | | | | | | | Bug: 244154558 Test: manual Change-Id: I5a86639cd571e14e9a9f5d5ded631b5a7c08db7e (cherry picked from commit ede0a767c26f144e38b4a0c1c2f530b05ffd29a8) Merged-In: I5a86639cd571e14e9a9f5d5ded631b5a7c08db7e
* Move accountname and typeName length check from Account.java to ↵Aseem Kumar2022-08-041-7/+0
| | | | | | | | | AccountManagerService. Bug: 169762606 Test: atest AccountManagerServiceTest Change-Id: I80fabf3a64c55837db98ff316e7e5420129c001b (cherry picked from commit 0adcadb0b28310bac568def4da2cbaf16843bcea)
* RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate classkholoud mohamed2022-03-192-2/+2
| | | | | | | | Bug: 217388602 Bug: 218875965 Test: atest EnterpriseResourcesTests Test: manual Change-Id: I8af03136e67057d171e97cb5a43187aa6c7f4fe7
* Allow updating enterprise strings in the frameworkkholoud mohamed2022-01-212-0/+20
| | | | | | | Bug: 188410712 Bug: 211422509 Test: manual Change-Id: Ia27b22b6cad14c8b62f3415a4967e479c21eb30c
* Prepare PropertyInvalidatedCache for SystemApiLee Shombert2022-01-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 152453213 Tag: #refactor This commit prepares PropertyInvalidatedCache to function as a system api. Specifically, the methods recompute() and bypass() which may be overridden by clients are now public (instead of protected). This forces an update to all existing clients, to accommodate the change in method visibility. Two small changes have been made as cleanup: 1. The awkwardly named debugCompareQueryResults() is now resultEquals(), which is more or less consistent with how other equality tests are named in Android. This name change affects two clients. 2. PackageManager has changed to use resultEquals() instead of maybeCheckConsistency(). This provides a simpler and more consistent use of the APIs. maybeCheckConsistency() has been made private. Test: atest PropertyInvalidatedCacheTests Change-Id: I4110f8e887a4fd8c784141e8892557a9d1b80a94
* Remove account name from logs in ChooseAccount activities.Dmitry Dementyev2021-12-232-10/+5
| | | | | | Test: manual Bug: 207388203, 205130113 Change-Id: I25eeaa9e7f0b79703949bd91eb8cca04034e5ba7
* Fixes an NPE caused by null sequence.Lei Ju2021-10-181-1/+0
| | | | | | Test: existing CTS tests Bug: 182164206 Change-Id: Ia2855a4df24e53710fac29242aafc25bd8e32578
* Merge "Suppress AIDL warnings: untyped-collection" am: dee731ad0b am: ↵Treehugger Robot2021-08-171-0/+3
|\ | | | | | | | | | | | | | | c6a9f2e81c am: 48cecd59d5 am: d9f8d109dc am: 975e9651d2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1793485 Change-Id: I7e33663db36e5f2060f222715d90ddfff7b1574c
| * Merge "Suppress AIDL warnings: untyped-collection" am: dee731ad0b am: c6a9f2e81cTreehugger Robot2021-08-171-0/+3
| |\ | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1793485 Change-Id: Ifd1c48036dbc7f7a48ae24ce13553f71f1eb794c
| | * Suppress AIDL warnings: untyped-collectionJooyung Han2021-08-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | For now AIDL doesn't support Map<String,Integer>, there's no way to fix it with typed map. Bug: 192615532 Test: m Change-Id: Id0011372a0997b4ab9aa700a7c4f8746bff29189
* | | Merge changes I68868b7f,I092d1385Lee Shombert2021-07-211-1/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Do not cache wildcard users (UserManager) Do not cache wildcard users (PackageManager)
| * | | Do not cache wildcard users (UserManager)Lee Shombert2021-07-201-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 186778818 PropertyInvalidatedCache queries that contain wildcard user IDs are no longer cached. Some simple multi-user tests show that no current caches use wildcard user IDs, so the change has no effect on performance. The bypass() mechanism is used to avoid the cache when necessary. Test: atest * FrameworksServicesTests:UserManagerServiceCreateProfileTest Change-Id: I68868b7f4142417d98b101504cb38c829b220e47
* | | | Use correct intent key in AbstractAccountAuthenticator JavaDoc.Dmitry Dementyev2021-07-191-1/+2
|/ / / | | | | | | | | | | | | | | | Test: not needed Bug: 136458050 Change-Id: I0f0b171d627eeb35f78f541b5a6317f6f82cafc6
* | | Merge "Update owners of Accounts subsystem." am: 7b9662e70b am: ba649ca98d ↵Jeff Sharkey2021-06-111-6/+1
|\| | | | | | | | | | | | | | | | | | | | | | | am: d89db71a24 am: 0a0ffb2839 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1734374 Change-Id: Iac528a6d10f49deb1430bd697883f0db2ba594eb
| * | Merge "Update owners of Accounts subsystem." am: 7b9662e70b am: ba649ca98dJeff Sharkey2021-06-111-6/+1
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1734374 Change-Id: I46c573107f841687d48a8a725a979948cb4a8964
| | * Update owners of Accounts subsystem.Jeff Sharkey2021-06-111-6/+1
| | | | | | | | | | | | | | | | | | Bug: 174932174 Change-Id: Ia9e2566cf3279b5b8364de02989a247f0414f485 Test: none
| | * Merge RQ2A.210305.007 into stage.Xin Li2021-03-013-8/+15
| | |\ | | | | | | | | | | | | | | | | | | | | Bug: 180401296 Merged-In: I1a16808426934f4a8d12410576d769443e4c2a04 Change-Id: I247a99c33c62cd1d000b7e50d1dda8b14df229d7
| | | * Protect account chooser activities against overlay.Dmitry Dementyev2021-01-123-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 172841550 Test: manual Change-Id: I1a16808426934f4a8d12410576d769443e4c2a04 Merged-In: I3cd5a94386f15cf60a7fe3095b00815e4a6485ae (cherry picked from commit 6ff42dd2d264cd89acdf45cf403147a870a14086)
* | | | Prevent apps from spamming addAccountExplicitly.Aseem Kumar2021-06-011-0/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | See comment here for the discussion on solution https://b.corp.google.com/issues/169762606#comment14 Change-Id: If212df3a3b7be1de0fb26b8e88b2fcbb8077c253 Bug: 169762606
* | | Add metrics in AccountManagerkholoud mohamed2021-04-292-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add metrics for addAccount, addAccountExplicitly, startAddAccountSession, and getAuthToken Bug: 182980755 Test: verified manually using make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 103 Change-Id: I6cc0f9cb7a4b1e53d22ddcef0f03e7d42587b42e
* | | Merge "Remove me from OWNERS files" am: 25ee5a7fb7 am: bf8de269cb am: 39198ddd84Philip P. Moltmann2021-02-111-1/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573324 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I429557a8537fb6417fcb9539978964ade75c8dee
| * | | Merge "Remove me from OWNERS files" am: 25ee5a7fb7 am: bf8de269cbPhilip P. Moltmann2021-02-111-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573324 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ibe2c5fd92070b1aebdc46755c8667b3ed22348ab
| | * | Remove me from OWNERS filesPhilip P. Moltmann2021-02-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Test: n/a Change-Id: I6113011e6ab0997285d5b7a86303fc60a3b98a2b Exempt-From-Owner-Approval: Previously approved
| | * | Merge RQ1A.210105.003 to aosp-master - DO NOT MERGEBill Yi2021-01-051-6/+31
| | |\ \ | | | | | | | | | | | | | | | | | | | | Merged-In: I034d45f1afcdd07c0b12e2db7e4134b695ec5c70 Change-Id: I329407db7c9ed7d2b512e505df6e50c4f471fafa
| | | * | Ignore GrantCredentials call with unexpected calling uid.Dmitry Dementyev2020-11-181-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Activity can be used only in two cases. 1) Calling uid matches uid grantee. 2) Calling uid is is system. This flow is used by getToken methods with notifyAuthFailure=true. Test: Existing CTS tests Bug: 158480899 Change-Id: I1421c333b6cebb4f7cddcdd8766298f6872e933b (cherry picked from commit 10d8a114bbd91c07f2feb5009328b16203ff50b1)
| | | * | Protect GrantCredentialsPermissionActivity against overlay.Dmitry Dementyev2020-11-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 169763814 Test: manual Change-Id: I15dd22791fcc61ef02b06ad51d9e4409d11c0181 (cherry picked from commit f45dcfe1f5ed74dcec15799f2abd9e5ecbbed4b7)
| * | | | Merge "Protect account chooser activities against overlay." into qt-dev am: ↵TreeHugger Robot2021-01-073-8/+15
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f2257fa0f am: 683623e8b0 am: be186dc33e am: 88e38a7d1c am: 37ff5c9d04 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13191817 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5b0f76a2f9ea938e219a00e46e103c915bd5c739
| | * \ \ \ Merge "Protect account chooser activities against overlay." into qt-dev am: ↵TreeHugger Robot2021-01-063-8/+15
| | |\ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f2257fa0f am: 683623e8b0 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13191817 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I9307ed863c033d169fb91994e976a94ca9267bf0
| | | * | | Merge "Protect account chooser activities against overlay." into qt-dev am: ↵TreeHugger Robot2021-01-063-8/+15
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f2257fa0f Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13191817 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2f86ac2f6302f63f1dc3d11d93c1a99434ec4fb6
| | | | * | | Protect account chooser activities against overlay.Dmitry Dementyev2020-12-143-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 172841550 Test: manual Change-Id: I1a16808426934f4a8d12410576d769443e4c2a04 Merged-In: I3cd5a94386f15cf60a7fe3095b00815e4a6485ae
| * | | | | | Merge "Ignore GrantCredentials call with unexpected calling uid." into ↵Dmitry Dementyev2020-11-111-6/+28
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-dev am: a064b69f18 am: f0263a9369 am: 4290008125 am: 5ec7e0d4f6 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13029782 Change-Id: If6ed2031eb08dc339a225b184b80d6403e6fad2a
| * | | | | | Protect GrantCredentialsPermissionActivity against overlay. am: f45dcfe1f5 ↵Dmitry Dementyev2020-11-111-0/+3
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f47c701f1 am: 765788de9a am: 3be814cbff Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13029378 Change-Id: Ic7e3689b65a2cf9edba1355eed3daa6a0647b3cf
| * \ \ \ \ \ \ Merge "Revert "Ignore GrantCredentials call with unexpected calling uid."" ↵Dmitry Dementyev2020-11-111-28/+6
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into pi-dev am: 888ba5ee1a am: 1d3492e181 am: 427ee435bd am: 5c9473a962 am: c91980e20e Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13028859 Change-Id: I2d5424f4ac3a53a58ed8779b66d2d93c3670e60f
| * \ \ \ \ \ \ \ Merge "Add maxTargetSdk restriction to unused APIs." am: f8abe13db4 am: ↵Mathew Inwood2020-11-092-5/+6
| |\ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eb80316624 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1468245 Change-Id: I60222cb1879651cf283e385519b5c4d156ab68a1
| | * | | | | | | Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-11-042-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
| * | | | | | | | Merge "Ignore GrantCredentials call with unexpected calling uid." into ↵TreeHugger Robot2020-11-061-6/+28
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pi-dev am: 5409071886 am: 9bca2e2c06 am: 36fabac3e9 am: 4b9ee68510 am: 50f534a82e Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12933114 Change-Id: I3cb3c2c8f6f87bc5313bbc85e0b2817e15df4db3
* | | | | | | | | Merge "Update AbstractAccountAuthenticator to call out the caveat in ↵Matt Pape2020-12-161-2/+3
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | addAccount that requires synchronous execution."
| * | | | | | | | | Update AbstractAccountAuthenticator to call out the caveat in addAccount ↵Matt Pape2020-12-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that requires synchronous execution. Bug: 175382142 Change-Id: I5c2032e91c47d8cd78e9d2c110737d8ad9ba2749
* | | | | | | | | | Protect account chooser activities against overlay.Dmitry Dementyev2020-12-143-2/+13
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 172841550 Test: manual Change-Id: I3cd5a94386f15cf60a7fe3095b00815e4a6485ae
* | | | | | | | | Move launched activity info getter to ActivityClientControllerRiddle Hsu2020-12-083-44/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add getLaunchedFromUid and getLaunchedFromPackage into Activity because they are used in several places. - Move getActivityClassForToken to ActivityTaskManagerInternal# getActivityName because it is only used in system server. - Remove getPackageForToken because it is no longer used. Bug: 174041144 Bug: 174040691 Test: CtsWindowManagerDeviceTestCases Change-Id: Iac1581ac2271baf1ab1625ced6cc1f42bf05eaf5
* | | | | | | | | Merge "Ignore GrantCredentials call with unexpected calling uid." into ↵Dmitry Dementyev2020-11-111-6/+28
|\ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-dev am: a064b69f18 am: f0263a9369 am: 4290008125 am: de121ad5cb Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13029782 Change-Id: I03d5431b03bd40ce5a72f385b382f1a62f4158b0
| * | | | | | | | Merge "Ignore GrantCredentials call with unexpected calling uid." into ↵Dmitry Dementyev2020-11-111-6/+28
| |\ \ \ \ \ \ \ \ | | |_|_|_|/ / / / | |/| | | | / / / | | | |_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-dev am: a064b69f18 am: f0263a9369 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13029782 Change-Id: If1903ef712d1d297cea648a6d78213127ddd3fd6
| | * | | | | | Merge "Ignore GrantCredentials call with unexpected calling uid." into ↵Dmitry Dementyev2020-11-111-6/+28
| | |\ \ \ \ \ \ | | | | |_|_|/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-dev am: a064b69f18 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13029782 Change-Id: Ibf0233c8e736166a6357d622a5f5763cca64c07a
| | | * | | | | Merge "Ignore GrantCredentials call with unexpected calling uid." into qt-devDmitry Dementyev2020-11-111-6/+28
| | | |\ \ \ \ \
| | | | * | | | | Ignore GrantCredentials call with unexpected calling uid.Dmitry Dementyev2020-11-101-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Activity can be used only in two cases. 1) Calling uid matches uid grantee. 2) Calling uid is is system. This flow is used by getToken methods with notifyAuthFailure=true. Test: Existing CTS tests Bug: 158480899 Change-Id: I1421c333b6cebb4f7cddcdd8766298f6872e933b
* | | | | | | | | Protect GrantCredentialsPermissionActivity against overlay. am: f45dcfe1f5 ↵Dmitry Dementyev2020-11-111-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f47c701f1 am: 765788de9a am: 364db883ad Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13029378 Change-Id: I0e002fdc58070bdb780bd33b7aea90f95d58436b
| * | | | | | | | Protect GrantCredentialsPermissionActivity against overlay. am: f45dcfe1f5 ↵Dmitry Dementyev2020-11-111-0/+3
| |\| | | | | | | | | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f47c701f1 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13029378 Change-Id: I59ea6157c2646c0398111718cff4af51cd4245d8
| | * | | | | | Protect GrantCredentialsPermissionActivity against overlay. am: f45dcfe1f5Dmitry Dementyev2020-11-111-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13029378 Change-Id: I5259ff89a5491f6cf3c5bb0eeb12fb66ef47d494
| | | * | | | | Protect GrantCredentialsPermissionActivity against overlay.Dmitry Dementyev2020-11-101-0/+3
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 169763814 Test: manual Change-Id: I15dd22791fcc61ef02b06ad51d9e4409d11c0181
| * | | | / / Merge "Revert "Ignore GrantCredentials call with unexpected calling uid."" ↵Dmitry Dementyev2020-11-101-28/+6
| |\| | | | | | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into pi-dev am: 888ba5ee1a am: 1d3492e181 am: 427ee435bd Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13028859 Change-Id: I7a2396510c5333088d5c8e16dbb277c3b895e3ce