Commit Graph

872509 Commits

Author SHA1 Message Date
Winson Chung
018ea2e75b Merge "Enable usage-after-release tracking in the Shell" into udc-dev 2023-03-02 22:39:47 +00:00
An An Yu
f362c2d74b Merge "Read default_minimal_size_resizable_task directly from Resources." into udc-dev 2023-03-02 22:01:21 +00:00
Sarah Chin
0427a755be Merge "Add SATELLITE_COMMUNICATION permission to shell for CTS tests" into udc-dev 2023-03-02 21:58:15 +00:00
Josep del Río
7700575a34 Merge "Use outerContext in the InputManager service" into udc-dev 2023-03-02 21:58:04 +00:00
Sadiq Sada
fe4042ba55 Merge "Remove static builder method." into udc-dev 2023-03-02 21:44:01 +00:00
Andrew Solovay
d54c041918 Merge "docs: Moving TODO out of exposed doc comment" into udc-dev 2023-03-02 21:36:25 +00:00
Evan Rosky
b5670b76dc Merge "Move more utils into TransitionUtil" into udc-dev 2023-03-02 21:31:16 +00:00
Eric Biggers
09eacb96d3 Merge changes Iee462825,I9cd91ecd,Iaccbbd0d,I734c9115,Ibe6f679a, ... into udc-dev
* changes:
  locksettings: miscellaneous logging cleanups
  locksettings: improve logging of SP and protector changes
  locksettings: improve logging of LSKF verification
  locksettings: clean up logging of cached GK password expiration
  locksettings: clean up logging of password history updates
  locksettings: clean up logging of escrow token operations
  locksettings: only log profile key removal when actually done
  locksettings: only log FRP migration when actually done
  locksettings: move credentialTypeToString to LockPatternUtils
  locksettings: zero-pad IDs when shown as hex
2023-03-02 21:13:39 +00:00
Joe Bolinger
786c9f52fc Merge "Ensure sensor id is set before face detect." into udc-dev 2023-03-02 20:51:29 +00:00
Alex Buynytskyy
6a83c7e0bc Merge "Protect package-restrictions from corruption." into udc-dev 2023-03-02 20:37:21 +00:00
Kweku Adams
6c4a6153b0 Merge "Use updated process capability name." into udc-dev 2023-03-02 20:23:06 +00:00
Garfield Tan
392f7c1c8d Merge "Clear bounds of fullscreen leaf tasks" into udc-dev 2023-03-02 20:19:05 +00:00
Helen Qin
67bb5a050b Merge "[CredManUi] Apply surface1 to the whole bottom sheet." into udc-dev 2023-03-02 19:52:58 +00:00
Anvesh Renikindi
a5e96235ae Merge "Fix the CredMan UI module to adopt the new credentials apis." into udc-dev 2023-03-02 19:20:24 +00:00
Andrew Solovay
91a8e9e701 docs: Moving TODO out of exposed doc comment
The TODO in the doc comment was ending up in the published docs. Moved it to a separate, non-doc comment (// instead of /** */) so the doc engine will ignore it.

NO_TEST , fixes a doc bug (no code edits).

Change-Id: Ifbefc2cccef8fac5887184c017fbe6bc6a4a8e30
Fixes: 270366001
Test: [go/abtd docs build]
2023-03-02 19:07:29 +00:00
Daniel Norman
4c68e35d46 Merge "Rename AccessibilityDataPrivate -> AccessibilityDataSensitive" into udc-dev 2023-03-02 18:40:48 +00:00
Dan Willemsen
fab84db78f Merge "Fix the docs build" into udc-dev 2023-03-02 18:40:37 +00:00
Eric Biggers
f69babfec4 locksettings: miscellaneous logging cleanups
Clean up a few log messages that didn't fit into any of the previous
changes.  This includes removing the last uses of the DEBUG field.

Bug: 268526331
Change-Id: Iee462825434c5a5042e1ddc4dfbb95579d339d40
Merged-In: Iee462825434c5a5042e1ddc4dfbb95579d339d40
(cherry picked from commit 50e8789519)
2023-03-02 18:39:03 +00:00
Eric Biggers
b56a429201 locksettings: improve logging of SP and protector changes
Improve the logging for synthetic password protectors being created and
deleted, and the synthetic password itself being created.  This includes
the case where a user's LSKF is being changed.

These are infrequent and important operations, so generally we should
error on the side of being verbose for them.

Bug: 268526331
Change-Id: I9cd91ecd3bb80b59fb367072d7f30dc90a5ee332
Merged-In: I9cd91ecd3bb80b59fb367072d7f30dc90a5ee332
(cherry picked from commit 72ba837864)
2023-03-02 18:38:58 +00:00
Eric Biggers
6318c7e12c locksettings: improve logging of LSKF verification
Improve the logging related to verifying the LSKF.

We generally don't want to be super verbose here, but it does make sense
to have an INFO message at the beginning and end.  There was already a
DEBUG message at the beginning and an INFO message near the end, but
they were unclear, so replace them with clearer INFO messages.

Bug: 268526331
Change-Id: Iaccbbd0d5a297bf97ff6ef31630eeec19fe3277b
Merged-In: Iaccbbd0d5a297bf97ff6ef31630eeec19fe3277b
(cherry picked from commit 18045f36e8)
2023-03-02 18:38:53 +00:00
Eric Biggers
ad578e9b91 locksettings: clean up logging of cached GK password expiration
When a cached GK password expires, use a much clearer log message.
Also, don't log anything if the GK password was already explicitly
removed by LockSettingsService.removeGatekeeperPasswordHandle().

Bug: 268526331
Change-Id: I734c9115bd8ea0a44ed6c03754e87341848a00f5
Merged-In: I734c9115bd8ea0a44ed6c03754e87341848a00f5
(cherry picked from commit 070e3d6ce3)
2023-03-02 18:38:47 +00:00
Eric Biggers
0889b6d805 locksettings: clean up logging of password history updates
Currently the logging for password history updates consists only of the
message "Initialized lock password salt for user".  But that's only
logged on the first update, and it's unclear that it's related to the
password history.  Let's replace it with a clearer message that is
logged whenever a password is added to the password history.

This doesn't change anything for the case where password history is
disabled, which is the default setting.

Bug: 268526331
Change-Id: Ibe6f679a17b887261711e0fd7da1b62a114ce7e6
Merged-In: Ibe6f679a17b887261711e0fd7da1b62a114ce7e6
(cherry picked from commit 61729d86ba)
2023-03-02 18:38:28 +00:00
Eric Biggers
cf5a081d01 locksettings: clean up logging of escrow token operations
Currently "Disabling escrow token on user" is logged *every time* a
user's lockscreen credential is verified, if the user is not eligible
for escrow tokens.  Let's instead make
disableEscrowTokenOnNonManagedDevicesIfNeeded() return early if the user
has no escrow data, so it will only log if it does something.

At the same time, be more verbose when something is actually done
related to escrow tokens, as these are generally exceptional events.

Bug: 268526331
Change-Id: I83cd783572d33954b95c9d7bb58916e75459809e
Merged-In: I83cd783572d33954b95c9d7bb58916e75459809e
(cherry picked from commit 57688444a0)
2023-03-02 18:38:22 +00:00
Eric Biggers
fa5a4b7d39 locksettings: only log profile key removal when actually done
The message "Remove keystore profile key for user" is always being
logged at INFO level when a user's locksettings state is removed.
However, that step is only applicable for profiles, so usually it's
irrelevant and is a no-op.

It could serve as a hint that the user's locksettings state is being
removed.  However, there's already a proper log message for that.

So, let's first check whether the user actually has a profile key,
before attempting to remove it and logging that removal.

Bug: 268526331
Change-Id: I90f46bc4cf5bfe096b0b037c5b88a9a9be2dcdd6
Merged-In: I90f46bc4cf5bfe096b0b037c5b88a9a9be2dcdd6
(cherry picked from commit deb0af0095)
2023-03-02 18:38:15 +00:00
Eric Biggers
8ff87c636d locksettings: only log FRP migration when actually done
Instead of logging "Migrated migrated_frp" when the FRP credential
migration is considered, which effectively means whenever the device
boots up for the first time (regardless of whether the migration
actually needed to be done or not), let's only log if the FRP credential
migration is actually being done.  Also make the message clearer.

Bug: 268526331
Change-Id: I8a46c90902da982eb684e49fb4afee19387621c3
Merged-In: I8a46c90902da982eb684e49fb4afee19387621c3
(cherry picked from commit 0b76af4d82)
2023-03-02 18:38:06 +00:00
Eric Biggers
816abbc211 locksettings: move credentialTypeToString to LockPatternUtils
In preparation for using credentialTypeToString() from more places, move
it to LockPatternUtils.  Also change the strings returned to all
upper-case, as this looks better in the contexts where it will be used.

Bug: 268526331
Change-Id: Ic9ef28321bca793161182730d11a818378f8ab19
Merged-In: Ic9ef28321bca793161182730d11a818378f8ab19
(cherry picked from commit cacb0f37f6)
2023-03-02 18:38:01 +00:00
Eric Biggers
540914fe82 locksettings: zero-pad IDs when shown as hex
When printing a 'long' ID as hex, use %016x instead of %x so that the
width is always consistent, not shorter 1/16 of the time.  This also
matches the way the synthetic password state files are named.

Bug: 268526331
Change-Id: I999606ff0d6a19641f32c4f4826476b4a839ad59
Merged-In: I999606ff0d6a19641f32c4f4826476b4a839ad59
(cherry picked from commit cec56be0ad)
2023-03-02 18:37:50 +00:00
An An Yu
2c7bfcde53 Read default_minimal_size_resizable_task directly from Resources.
Remove scaling with DisplayMetrics obtain from system context, which can
be outdated. Also added check to guarantee that
default_minimal_size_resizable_task is in dp unit.

Bug: 270393438
Test: passes local atest

Change-Id: I1ad4cb7d2d44cce8de9a3d9acb074671549f777a
2023-03-02 18:29:24 +00:00
Vania Januar
7488e552d8 Merge "Add new team members to stylus owners files." am: 7f701455f4 am: 8e8ef4e0b8 am: 551acd9063
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2463563

Change-Id: I7a512fb5acf3a6835eaef20c890871294094aa23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 18:25:00 +00:00
Aaron Liu
894ba27f19 Merge "Fix view jumping up in the password disappear..." into tm-qpr-dev am: 12cc569ea6 am: 2f72e564fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21616193

Change-Id: I389ea5bc41034d6c8a56d8da7dbedebe4acc40e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 18:23:44 +00:00
Bishoy Gendy
3523303c51 [automerger skipped] Merge "Use Slog in MR2ServiceImpl for adding logs in system logs" into tm-qpr-dev am: 5a4abdf49b am: 90dd893e06 -s ours
am skip reason: Merged-In If0c8bdef7afcb445f6c9b5ced60ec97d0c5bb0d7 with SHA-1 6dcefe6906 is already in history

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

Change-Id: Id8d7112c87c7cfdb25bb5cc1a391639ddbbaf584
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 18:22:53 +00:00
Bishoy Gendy
ff6381c084 [automerger skipped] Merge "Use Slog instead of EventLogger in MediaSessionStack" into tm-qpr-dev am: 3986c0f897 am: 3c11efe204 -s ours
am skip reason: Merged-In I57d8ab1e1fc9b8a68e94bf8895fd128d1545c45e with SHA-1 c507e99e10 is already in history

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

Change-Id: Ic69bf1d2d8ebfa033c845ad611a38fbb4c85b118
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 18:19:28 +00:00
TreeHugger Robot
bf78a8d15f Merge "Fix permission issue when provisioning." into udc-dev 2023-03-02 18:16:11 +00:00
Song Chun Fan
0004cfc0ca Merge "[pm] add initiatingPackageName in dumpsys" into udc-dev 2023-03-02 18:14:57 +00:00
Vania Januar
551acd9063 Merge "Add new team members to stylus owners files." am: 7f701455f4 am: 8e8ef4e0b8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2463563

Change-Id: I313b9628e4fff7a0abc4d3a98796bdd7751fe98e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 18:03:17 +00:00
Josep del Río
16c6737def Merge "Improve event time crash logging" into udc-dev 2023-03-02 17:57:31 +00:00
TreeHugger Robot
627b877cb1 Merge "AppProfiler: don't hold lock for CPU times" into udc-dev 2023-03-02 17:53:05 +00:00
Aaron Liu
2f72e564fb Merge "Fix view jumping up in the password disappear..." into tm-qpr-dev am: 12cc569ea6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21616193

Change-Id: Ic935d3b85b8e0fb25ff7b348623c364fe89b0399
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 17:48:41 +00:00
Dan Willemsen
9aea75776a Fix the docs build
Bug: 271015194
Test: m offline-sdk-docs
Change-Id: Iad5c2289f43e5f729ae311126c8def5c52784e66
2023-03-02 17:46:59 +00:00
Galia Peycheva
10104fccfc Merge "Make DreamService detach on DreamActivity onDestroy" into udc-dev 2023-03-02 17:46:38 +00:00
Bishoy Gendy
90dd893e06 Merge "Use Slog in MR2ServiceImpl for adding logs in system logs" into tm-qpr-dev am: 5a4abdf49b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21549372

Change-Id: I7e813a6366b6a7debbbddb4a9f6688de2913b7a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 17:45:28 +00:00
Bishoy Gendy
3c11efe204 Merge "Use Slog instead of EventLogger in MediaSessionStack" into tm-qpr-dev am: 3986c0f897
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21555439

Change-Id: Ia82856862024b82ff4bbcac63eee9481f9061c5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 17:43:36 +00:00
TreeHugger Robot
19573fe42d Merge "Update gainmap documentation." into udc-dev 2023-03-02 17:40:26 +00:00
Aaron Liu
12cc569ea6 Merge "Fix view jumping up in the password disappear..." into tm-qpr-dev 2023-03-02 17:36:24 +00:00
Alex Buynytskyy
9bd421742d Protect package-restrictions from corruption.
+ refactor to encapulate all logic into ResilientAtomicFile

Bug: 253568736
Test: atest PackageManagerSettingsTests com.android.server.pm.test.SettingsTest
Change-Id: I2bba7d623c56f40bc8ed93a21098c9184698609d
2023-03-02 17:35:30 +00:00
Prince Donkor
cd48412b02 [automerger skipped] Merge "Creating a flag to enable low light clock undocked" into tm-qpr-dev am: a43f32d50c am: ab8e986f80 -s ours
am skip reason: Merged-In I191478b02c9baf9fce0acce6289a6cec65571488 with SHA-1 5cbed3dd43 is already in history

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

Change-Id: Ifbba883b68a457bcfdf19bbd423ddc5c004c7b28
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 17:25:12 +00:00
Vania Januar
8e8ef4e0b8 Merge "Add new team members to stylus owners files." am: 7f701455f4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2463563

Change-Id: I18feab1471e5c135adf9af3b3c303b6f2ce50ae1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 17:07:10 +00:00
Bishoy Gendy
5a4abdf49b Merge "Use Slog in MR2ServiceImpl for adding logs in system logs" into tm-qpr-dev 2023-03-02 17:04:02 +00:00
Bishoy Gendy
3986c0f897 Merge "Use Slog instead of EventLogger in MediaSessionStack" into tm-qpr-dev 2023-03-02 17:03:52 +00:00
Helen Qin
6edc6e0dd6 [CredManUi] Apply surface1 to the whole bottom sheet.
Before, the surface1 color was only applied to the top card which left
the bottom corner color incorrect.

Bug: 271168041
Test: manual (see bug for screenshot)
Change-Id: Ic2b7f3b13563955e39b00611ba1a4b04aeac721c
2023-03-02 16:55:43 +00:00