Commit Graph

19222 Commits

Author SHA1 Message Date
Victor Hsieh
e8fe134280 Provide a method to verify a PKCS#7 signature am: 3363fd4da9 am: 8c8e63ea89
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2274630

Change-Id: I46b786d9786f0a2c41e7e37096d3284ec76c1143
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 17:28:59 +00:00
Victor Hsieh
8c8e63ea89 Provide a method to verify a PKCS#7 signature am: 3363fd4da9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2274630

Change-Id: If8c8a52c610f44222b20ee297f8ab04f8c195f84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 16:55:14 +00:00
TreeHugger Robot
708134b584 Merge "Add API in AppWidgetServiceImpl" into tm-qpr-dev am: 9fa15007e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20056790

Change-Id: Ie31410fb55c69593a4432d8fc9db253c57dada4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 10:53:22 +00:00
Treehugger Robot
281db21f41 Merge "Fix imprecise name of a fs-verity helper function" am: 2af62aa321 am: 8c3b93803d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2274628

Change-Id: Icc781004780d82a789c95374f3dabec06ee20303
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 22:04:36 +00:00
Treehugger Robot
8c3b93803d Merge "Fix imprecise name of a fs-verity helper function" am: 2af62aa321
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2274628

Change-Id: Ia9ba79c5d6bc8f9e65780166b5456afaf01f3c88
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 21:33:48 +00:00
Victor Hsieh
3363fd4da9 Provide a method to verify a PKCS#7 signature
There is existing PKCS#7 signature used in the kernel for verifying
fs-verity digest. The purpose of this change is to pave the way to
migrate the existing signature check to userspace (and longer term,
migrate away from PKCS#7).

To mitigate the complexity of PKCS#7, only the configuration we're
currently using is supported.

Bug: 253668864
Test: atest FrameworksCoreTests:com.android.internal.security.VerityUtilsTest
Test: Manually added some code to use the API with correct and incorrect
      signatures. Saw the API behave expectedly.
Change-Id: I80bbbd88881303c0b9a261b1fe59e9682e43bcad
Merged-In: I80bbbd88881303c0b9a261b1fe59e9682e43bcad
2022-10-27 10:37:11 -07:00
Victor Hsieh
c49d0bfa1a Fix imprecise name of a fs-verity helper function
Root hash is only part of the fs-verity digest covers. Rename to avoid
confusion.

Bug: N/A
Test: m
Change-Id: I12c2a4ac57fb8772483473f951e97474ebd894c9
Merged-In: I12c2a4ac57fb8772483473f951e97474ebd894c9
2022-10-27 10:37:05 -07:00
Sihua Ma
3efbb0d3b6 Add API in AppWidgetServiceImpl
A new function is created to notify the service of inheritance
information of the widget provider.

Test: N/A
Bug: 221890505
Change-Id: I5f43f8d6ecd66b54869bef58898b1d3809b43d9e
(cherry picked from commit 0b51675e56)
Merged-In: I5f43f8d6ecd66b54869bef58898b1d3809b43d9e
2022-10-26 22:02:47 +00:00
Riddle Hsu
ada9d7accb Merge "Only set locale in config for updating locale" into tm-qpr-dev am: b553c74619
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20235235

Change-Id: I1cb0b923aa4673e4d04abbf65f143d142cdb0ac5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25 13:40:11 +00:00
Riddle Hsu
b553c74619 Merge "Only set locale in config for updating locale" into tm-qpr-dev 2022-10-25 13:07:32 +00:00
TreeHugger Robot
2df43628c6 Merge "Fix labels loading regression" into tm-qpr-dev am: ea523a0c22
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20252644

Change-Id: I16b913cd6485caf4aa2001d3ef422e4436a9f27d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 12:40:37 +00:00
TreeHugger Robot
ea523a0c22 Merge "Fix labels loading regression" into tm-qpr-dev 2022-10-22 12:11:12 +00:00
Josep del Río
34b40ae557 Merge "Add global microphone mute key for keyboard" am: e85f271021 am: 13e8df2c0a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2263102

Change-Id: I31dc6e7e492de91da9def8b0ff33888edfbc0fd6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 21:19:45 +00:00
Josep del Río
13e8df2c0a Merge "Add global microphone mute key for keyboard" am: e85f271021
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2263102

Change-Id: Idf4643df3f011352ae07b1920ba2ded863ab7165
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 20:51:05 +00:00
Fabian Kozynski
af3547caa4 Merge "Proto dump from SystemUI." into tm-qpr-dev am: f50de68685
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19789974

Change-Id: Id649cad109553285502acd5160799dd86b831d0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 19:36:58 +00:00
Fabian Kozynski
f50de68685 Merge "Proto dump from SystemUI." into tm-qpr-dev 2022-10-21 19:22:55 +00:00
Sihua Ma
a5186e8243 Merge "Add function to AppWidgetService for updating widget visibility" into tm-qpr-dev am: d776e8d5b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20003665

Change-Id: Iea5183e4816b06d3ada1098966014423b322fec8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 18:04:37 +00:00
Sihua Ma
d776e8d5b3 Merge "Add function to AppWidgetService for updating widget visibility" into tm-qpr-dev 2022-10-21 17:57:07 +00:00
Andrey Epin
814b4dd00c Fix labels loading regression
DisplayResolveInfo#getDisplayLabel() internally loads the display label
if it is missing and a ResolveInfoPresentationGetter is set for the
instance.
Current view binding logic unconditionally calls getDisplayLabel method
which could trigger label resolution on the main thread and a
consequently scheduled label loading asynchronous task a no-op.

Test: manual functionality testing
Test: introduce artificial into LoadLabelTask, observe labels lading
asynchronously and does not reload when scrolling through a long list
of options.
Test: atest FrameworksCoreTests:ResolverActivityTest
Bug: 245934835

Change-Id: I392d6c8424617820bde58887d92ae99bc39c5b7b
2022-10-21 08:02:37 -07:00
TreeHugger Robot
cac8f25981 Merge "Fixing system language is not in all languages" into tm-qpr-dev am: 686f5b9cb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20161323

Change-Id: I6c8138d4fb71ebb28ace0a3fffdf02f4b7ecee0f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 11:31:59 +00:00
TreeHugger Robot
686f5b9cb2 Merge "Fixing system language is not in all languages" into tm-qpr-dev 2022-10-21 11:02:16 +00:00
Sihua Ma
45b60acb7b Add function to AppWidgetService for updating widget visibility
Currently, when the widget host stops listening to the widget updates,
the callback will be set to null and the updates to the widget will be
stashed on the service side. Additionally, the visibility of the widget
will be changed. For an upcoming change to the launcher side, a function
that only changes the visibility should be added.

Test: N/A
Bug: 235358918
Change-Id: I9a0f244ca76b378d9c337e0a364bca5955f5ae96
2022-10-20 20:25:03 +00:00
Fabian Kozynski
afa802a889 Proto dump from SystemUI.
Needs to be called by doing `adb shell dumpsys statusbar --proto`
because using `dumpsys activity service` adds text to the dump.

Will also be dumped as part of the BR

Test: atest SystemUITests
Test: Used in CTS
Test: manual dump and BR
Fixes 237786667

Change-Id: I74abf65a76c059ea9bb5a14728192b6b683b7fc7
2022-10-20 14:25:24 -04:00
TreeHugger Robot
a6138b6392 Merge "Add CUJ_RECENTS_SCROLLING" into tm-qpr-dev am: 259321ee9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20236064

Change-Id: If00d04c22eb1c58c12beef41b4c7d075d089c814
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 16:38:27 +00:00
TreeHugger Robot
259321ee9a Merge "Add CUJ_RECENTS_SCROLLING" into tm-qpr-dev 2022-10-20 16:35:49 +00:00
LiZhihong
95c1165bb8 Add global microphone mute key for keyboard
This change will enable the "mic mute" key on keyboards to globally mute
the microphone using the SensorManager, which has UI implemented in
multiple places (quick shortcuts, privacy center, settings...).

Test: manual
Bug: 237355207
Signed-off-by: LiZhihong <lizh52@lenovo.corp-partner.google.com>
Signed-off-by: DingYong <dingyong2@lenovo.corp-partner.google.com>
Change-Id: I492e501503b0ab9f56e1fa84fcc77a8c798bcb83
2022-10-20 14:59:19 +00:00
Riddle Hsu
03f0f57e6b Only set locale in config for updating locale
To update locale, it doesn't need a full configuration because
system only applied the diff of config from non-undefined fields.

IActivityManager#getConfiguration actually gets the configuration
according to the pid, which is process configuration. And process
configuration can be overridden by the activity running in its
process. So the returned value shouldn't be used to update the
system persistent configuration.

Therefore it is enough to use a new Configuration instance with
setting the necessary fields. This is also more efficient that
saves a binder call to system.

Bug: 253386061
Test: atest LocaleManagerTests
Change-Id: Icdce437fcf1a3bef0562cfc4dd5ad3ba52ea08ef
2022-10-20 14:41:47 +00:00
Nicolo' Mazzucato
c75bae06cc Add CUJ_RECENTS_SCROLLING
This adds Jank instrumentation every time recent tasks are scrolled.

Bug: 231130484
Bug: 228969045
Test: recorded prefetto trace while scrolling
Change-Id: I48201e73d7025ec2ff38c7f9158eec27ed9cbafa
2022-10-19 14:25:11 +00:00
Nicolas Geoffray
40b18ebda4 Merge "Cleanup and consistency around system server profiling." am: 6cbc807a6f am: e60487c7b6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2251513

Change-Id: I7bf89839c1f053bf78db23ac49b59ca828fb7fb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 07:49:15 +00:00
Nicolas Geoffray
e60487c7b6 Merge "Cleanup and consistency around system server profiling." am: 6cbc807a6f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2251513

Change-Id: I24ab6f204063e46a7c08023fac0fd0583de3dc91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 07:18:49 +00:00
Nicolas Geoffray
6cbc807a6f Merge "Cleanup and consistency around system server profiling." 2022-10-19 06:39:04 +00:00
Calvin Pan
c41d594efe Fixing system language is not in all languages
- Seperate System language and app language logic to different
  controller

- Fixing system langauge only show in suggested langage and not show in
  all languages.

Bug: 228596568
Test: set system/app languages
Change-Id: I3b7ab0a78a77a71794dfd4a59c807637fb7b912d
Merged-In: I3b7ab0a78a77a71794dfd4a59c807637fb7b912d
2022-10-19 03:47:31 +00:00
Michael Wachenschwanz
d6a834dddc Merge "Rate limit BatteryStats' ModemActivityInfo querying" into tm-qpr-dev am: c3ea7bd98c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20227643

Change-Id: Ia513d7975da9a105d367afc778043e0a921b3126
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 23:46:27 +00:00
Michael Wachenschwanz
c3ea7bd98c Merge "Rate limit BatteryStats' ModemActivityInfo querying" into tm-qpr-dev 2022-10-18 23:21:53 +00:00
Michael Wachenschwanz
9c841db321 Rate limit BatteryStats' ModemActivityInfo querying
Frequent mobile radio power state changes results in frequent
ModemActivityInfo queries. To limit the unnecessary churn, a Modem
update due to mobile radio power state change will only occur some
amount of time after the previous update. Modem updates due to other
signals (plug/unplug events, battery percent change, etc) will be
unaffected.

Fixes: 239715259
Test: atest BatteryStatsNoteTest
Merged-In: Ie0af28dbc2ad4836ef6437c0656dc20eec2285ea
Change-Id: Ib3ee18113ac381b8912bb58974b5d41ceefb7131
2022-10-18 13:49:35 -07:00
Ruslan Tkhakokhov
b0233fc231 Merge "Add B&R OWNERS to internal/backup" am: c17fd7ca9e am: 6b7e9ae939
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2259601

Change-Id: Ifb447f28685beed92fa68ee12de75474d498bc1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 14:57:20 +00:00
Ruslan Tkhakokhov
6b7e9ae939 Merge "Add B&R OWNERS to internal/backup" am: c17fd7ca9e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2259601

Change-Id: If47e4091b2e855a9a1ae7814ee2e2d48f9f082c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 14:29:50 +00:00
Nicolas Geoffray
1c2e7ed14c Cleanup and consistency around system server profiling.
The profiling currently works by accident: only because we profile the
boot classpath which executes in JIT zygote do we not load system server
AOT artifacts.

So make the not loading AOT artifacts in system server explicit when the
system server is being profild.

Test: system server profiling
Change-Id: I8d787c8f8524d9d6074dc0f552a856640f11cef0
2022-10-18 12:38:33 +00:00
Ruslan Tkhakokhov
bcc956623e Add B&R OWNERS to internal/backup
Bug: 254231632
Change-Id: If8e0d5c2ef7bed5e6acd05a0301b2d7f373412c3
Test: n/a
2022-10-18 12:36:58 +00:00
Islam Elbanna
bde4635f43 Merge "Allow profiling for standalone system server jars." am: bda789c641 am: 8ac01a2856
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2257205

Change-Id: I2010d63fae74c06a24cad3d1959892249a798298
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 10:15:08 +00:00
Islam Elbanna
8ac01a2856 Merge "Allow profiling for standalone system server jars." am: bda789c641
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2257205

Change-Id: I28c7e16af0795ccd25850cc07beb7057af24cdd4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 09:46:50 +00:00
Shan Huang
bcb5bd5c00 Merge "Add AndroidX SpringAnimation library to core." into tm-qpr-dev am: a24bed9f38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20171590

Change-Id: I40d68291f995c5db5adda9e3ed6d7b8fa3ea6840
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 01:15:44 +00:00
Shan Huang
a24bed9f38 Merge "Add AndroidX SpringAnimation library to core." into tm-qpr-dev 2022-10-18 01:06:42 +00:00
Shan Huang
80c44686c2 Add AndroidX SpringAnimation library to core.
This allows core libraries (such as predictive back progress animation)
to use spring animation.

Files in androidx/dynamicanimation/animation that are not copied over:

FlingAnimation.java - Unused atm
AnimationHandler.java - Replaced with the framework AnimationHandler
FloatPropertyCompat.java - Replaced with FloatProperty
FrameCallbackScheduler.java - Unused in framework AnimationHandler

Test: m -j
Bug: 238475284
Change-Id: Ifdf847da0aa2a6cf57e18f9ac7c91bb0fe3b12c2
2022-10-17 20:45:41 +00:00
Islam Elbanna
1ed9d64bcd Allow profiling for standalone system server jars.
Currently we profile only main system server classpath, this is to allow
profiling for the standalone system server jars.

Bug: 241823638
Test: System server profiling: verified the profile snapshot of the boot image profile, and it showed the new jars profiling data.
Change-Id: I5b10373fb22ddfecdb95b6a4611f4af97bb5666d
2022-10-17 17:09:45 +00:00
Andrey Epin
03b221874b Merge "Load direct-share icons asynchronously" into tm-qpr-dev am: 087c3d1918
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19920873

Change-Id: I0c5ca0aa635f8cfe51a16082187cf2476e6c3f47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 21:25:39 +00:00
Andrey Epin
087c3d1918 Merge "Load direct-share icons asynchronously" into tm-qpr-dev 2022-10-13 20:50:28 +00:00
Andrey Epin
7de4fa9bd2 Merge "Fix Resolver dragging animation" into tm-qpr-dev am: adad5c91bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19719026

Change-Id: I30639003d4944eed4f10ff78168cbfe6cc9a5161
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 17:13:43 +00:00
Andrey Epin
adad5c91bd Merge "Fix Resolver dragging animation" into tm-qpr-dev 2022-10-12 17:07:20 +00:00
TreeHugger Robot
a2f02ea1e8 Merge "Update DreamService -> DreamOverlayService connection to handle crashes" into tm-qpr-dev am: 2ab63d23d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20107778

Change-Id: Ied0ea3a6d52dab588907872f3170547a667b0b15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 15:16:58 +00:00