Commit graph

71999 commits

Author SHA1 Message Date
Treehugger Robot
7794308dd3 Merge "Add some README.md text for init triggers." am: 04d0f7d303 am: 283798235e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1724076

Change-Id: I2628cf5fafa4999555687345b178662a1ffe0559
2021-06-15 20:11:32 +00:00
Treehugger Robot
283798235e Merge "Add some README.md text for init triggers." am: 04d0f7d303
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1724076

Change-Id: I2d32af4b7fe3d249c0d53f87dbb7efac7a610447
2021-06-15 19:57:18 +00:00
Wei Wang
75554d2184 Merge "task_profiles.json: add taskprofile for SurfaceFlinger" into sc-dev am: 99234c4967
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14968302

Change-Id: I87d98a098e31faaa98036d279fb680cad3739c05
2021-06-15 19:45:27 +00:00
Treehugger Robot
04d0f7d303 Merge "Add some README.md text for init triggers." 2021-06-15 19:27:53 +00:00
Wei Wang
99234c4967 Merge "task_profiles.json: add taskprofile for SurfaceFlinger" into sc-dev 2021-06-15 19:15:19 +00:00
Pierre-Clément Tosi
d1bdaebd69 Merge "fastboot: document second parameter of 'fetch'" am: d75f29fb88 am: a71f5dc67e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736753

Change-Id: I5712b241bcae922d4cdfcc7fc27285793659685a
2021-06-15 16:27:26 +00:00
Pierre-Clément Tosi
a71f5dc67e Merge "fastboot: document second parameter of 'fetch'" am: d75f29fb88
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736753

Change-Id: Ifd423bb8a05923458ba9590439fae9b26af98657
2021-06-15 16:11:52 +00:00
Pierre-Clément Tosi
d75f29fb88 Merge "fastboot: document second parameter of 'fetch'" 2021-06-15 15:43:20 +00:00
Shawn Willden
aa01618a94 Merge "Add TrustyKeyMintDevice" into sc-dev am: 8caf16a46e
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14724568

Change-Id: I98947d7580457605895cfeba554990b8509906a5
2021-06-15 13:30:04 +00:00
Shawn Willden
8caf16a46e Merge "Add TrustyKeyMintDevice" into sc-dev 2021-06-15 13:15:33 +00:00
Treehugger Robot
ceb6b3fadb Merge "Isolate app profile ref data" am: bbf4835c7e am: 9545539454
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1729395

Change-Id: I043e05b3459535136f6a77febfa45d11711ee559
2021-06-15 11:51:57 +00:00
Treehugger Robot
9545539454 Merge "Isolate app profile ref data" am: bbf4835c7e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1729395

Change-Id: I07e352506bc12a246b70b8ece78a6f98c33b7031
2021-06-15 11:37:02 +00:00
Treehugger Robot
bbf4835c7e Merge "Isolate app profile ref data" 2021-06-15 11:03:40 +00:00
Treehugger Robot
9e6af2817a Merge "fs_mgr: support 'check_at_most_once' for dm-verity" am: 79e0890f6d am: e8c61e9917
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1717670

Change-Id: I99f94a5b3f8376946ca4ae50413af366caafce68
2021-06-15 05:52:44 +00:00
Treehugger Robot
e8c61e9917 Merge "fs_mgr: support 'check_at_most_once' for dm-verity" am: 79e0890f6d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1717670

Change-Id: Ida32a10c5e49b07df92a8252412678af1d260741
2021-06-15 05:39:08 +00:00
Treehugger Robot
79e0890f6d Merge "fs_mgr: support 'check_at_most_once' for dm-verity" 2021-06-15 05:27:34 +00:00
Bowgo Tsai
5039ec04e4 [automerger skipped] Merge "fastboot: support vbmeta_vendor.img" into sc-dev am: e89ec3c0dc -s ours
am skip reason: Merged-In If61fff1c83513d71605c0cef2737a38f7575d69b with SHA-1 a48a78356f is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14876515

Change-Id: I303d69071675324d4fc9f967c08f26696032d465
2021-06-15 02:20:59 +00:00
Bowgo Tsai
e89ec3c0dc Merge "fastboot: support vbmeta_vendor.img" into sc-dev 2021-06-15 02:09:57 +00:00
Christopher Ferris
667cfe99c8 Merge "Avoid thread cache in unwinder." am: 4c68e77b45 am: 52cbc2a3bf
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1737076

Change-Id: I21ae62a0862085c458b36d95966ebe98efd30778
2021-06-15 00:25:50 +00:00
Christopher Ferris
52cbc2a3bf Merge "Avoid thread cache in unwinder." am: 4c68e77b45
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1737076

Change-Id: Iaf9b2732f22e6929093493202681ee9f7a8d5bf8
2021-06-15 00:13:51 +00:00
Christopher Ferris
4c68e77b45 Merge "Avoid thread cache in unwinder." 2021-06-14 23:58:01 +00:00
David Anderson
3a6a31a75f Merge "libsnapshot: Add stubs for Xor Ops and Sequence Data" am: 4b15582828 am: 06dce5e6e8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1733152

Change-Id: I171e3ffab54ddd58c295c2ccc77d42af0d85a4ed
2021-06-14 21:52:16 +00:00
Wei Wang
6d6b71e582 task_profiles.json: add taskprofile for SurfaceFlinger
In some platforms, setting a different cpuset (or remove it) and/or
uclamp setting is beneficial to both performance and power. Adding 2
separate profiles for vendor to override surfaceflinger scheduling
policies.

Bug: 170507315
Test: build and boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ib313fd67c6ccd701109c5683d8dbab9ecd1580d8
2021-06-14 14:47:00 -07:00
David Anderson
06dce5e6e8 Merge "libsnapshot: Add stubs for Xor Ops and Sequence Data" am: 4b15582828
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1733152

Change-Id: I586bb08c740d934e3022de93b6f0cf70b74fac48
2021-06-14 21:35:01 +00:00
David Anderson
4b15582828 Merge "libsnapshot: Add stubs for Xor Ops and Sequence Data" 2021-06-14 21:20:24 +00:00
Shawn Willden
5bd73cceb5 Add TrustyKeyMintDevice
Ignore-AOSP-First: No merge path from AOSP
Bug: 177729159
Test: Not testable until more CLs land
Change-Id: Iea4e70bb5b4ce051492f2e42d2e0d219d088388e
2021-06-14 14:33:00 -06:00
Christopher Ferris
5df5a5251d Merge "Avoid thread cache in unwinder." into sc-dev am: 8f682940e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14925873

Change-Id: I641168e372908fbdc7ea0504e75d6300fe21a989
2021-06-14 19:59:55 +00:00
Christopher Ferris
0c787f0d6b Avoid thread cache in unwinder.
The code in the fallback path calls pthread_key_create when using the
normal thread cache. However, this code is executed out of the linker,
which means that the call doesn't see keys created by the libc version
of pthread_key_create. As of now, simply avoid using the thread cache
to avoid this problem.

Bug: 189803009

Test: debuggerd -b on a media process on a 32 bit Android Go device
Test: and observe no crash.
Test: debuggerd unit tests pass.
Change-Id: I9ca1a55e44d3bb69d49450826d7d64d7a64145c3
(cherry picked from commit 49e5a76544)
2021-06-14 19:57:33 +00:00
Christopher Ferris
8f682940e5 Merge "Avoid thread cache in unwinder." into sc-dev 2021-06-14 19:40:40 +00:00
TreeHugger Robot
65bbd7d5c1 [automerger skipped] Merge "Allow others to read the profile ref dir" into sc-dev am: 0b6e4c2c5a -s ours
am skip reason: Merged-In Ie07bce81d2fba9c0b0ae4f322418e960c024e15d with SHA-1 11197dd8a8 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14907701

Change-Id: I25a6d8ae3055de9065ad655b4ce4b49400f963ed
2021-06-14 15:34:23 +00:00
TreeHugger Robot
0b6e4c2c5a Merge "Allow others to read the profile ref dir" into sc-dev 2021-06-14 15:29:55 +00:00
Pierre-Clément Tosi
96941a0962 fastboot: document second parameter of 'fetch'
Add the OUT_FILE parameter to the documentation of fetch which fails if
used as currently (erroneously) documented:

    $ fastboot fetch boot
    fastboot: usage: expected argument

Test: fastboot help
Change-Id: Ia06d40c2f754e1a55a2052cb84e81f96e71b4573
2021-06-14 12:46:32 +00:00
David Anderson
6bc2a789bb Use std::shared_ptr in Epoll's callback list. am: 1de7384c10
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14923579

Change-Id: I06355a0b0e7a6c33d160f7dd2a1f10b038928f1c
2021-06-14 10:09:17 +00:00
Treehugger Robot
8bdaad9f74 Merge "DO NOT MERGE - Merge ab/7272582" am: 1fc3a2d932 am: 14833d39d4
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736173

Change-Id: Ibc776b91f55d6d6074a4b989d5e9f4e2f9599f9c
2021-06-13 22:36:34 +00:00
Xin Li
0a1cce872f DO NOT MERGE - Merge ab/7272582 am: 95150cc25a am: bd265d5ecc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736173

Change-Id: Ia12f16c31c16a8bdea4f6483396100c70504afa1
2021-06-13 22:36:31 +00:00
Treehugger Robot
14833d39d4 Merge "DO NOT MERGE - Merge ab/7272582" am: 1fc3a2d932
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736173

Change-Id: I9a9b40e2347c7f15b8cb068b3090aaadbda2b006
2021-06-13 22:06:12 +00:00
Xin Li
bd265d5ecc DO NOT MERGE - Merge ab/7272582 am: 95150cc25a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736173

Change-Id: I99d6c20902be38a34fef9ff0303a9f8aab73ef51
2021-06-13 22:06:00 +00:00
Treehugger Robot
1fc3a2d932 Merge "DO NOT MERGE - Merge ab/7272582" 2021-06-13 21:36:18 +00:00
Xin Li
95150cc25a DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Change-Id: I20031b6d8af2ee6fe1ef559c5983cee480a3acb2
2021-06-11 17:34:35 -07:00
Daniel Rosenberg
93edf30370 libsnapshot: Add stubs for Xor Ops and Sequence Data
This adds stubs for update engine to build against while developing the
Xor Ops feature. The ops return failure upon use.

Test: builds
Change-Id: Iba6465453c2dfaf0c6578c4bed8955817ad6c02a
2021-06-10 17:48:53 -07:00
Christopher Ferris
49e5a76544 Avoid thread cache in unwinder.
The code in the fallback path calls pthread_key_create when using the
normal thread cache. However, this code is executed out of the linker,
which means that the call doesn't see keys created by the libc version
of pthread_key_create. As of now, simply avoid using the thread cache
to avoid this problem.

Bug: 189803009

Test: debuggerd -b on a media process on a 32 bit Android Go device
Test: and observe no crash.
Test: debuggerd unit tests pass.
Change-Id: I9ca1a55e44d3bb69d49450826d7d64d7a64145c3
2021-06-10 01:24:50 +00:00
David Anderson
1de7384c10 Use std::shared_ptr in Epoll's callback list.
Ignore-AOSP-First: Awaiting security triage
Bug: 187862380
Bug: 190126442
Test: CtsInitTestCases
Change-Id: Ibb34a6b8a5675dbc515b7f8a43d7eecf2084510c
(cherry picked from commit aea9781530)
2021-06-09 19:59:20 +00:00
Calin Juravle
3c34eecf50 Allow others to read the profile ref dir
ART wants to optimize the time when the profile information
is saved for an app. To do so, it needs access to both, the current
profile, and the reference profile. This will allow ART to access
the ref profiles, which previously was not needed.

Test: m & flash
Bug: 185979271
Merged-In: Ie07bce81d2fba9c0b0ae4f322418e960c024e15d
Change-Id: Ie07bce81d2fba9c0b0ae4f322418e960c024e15d
(cherry picked from commit 11197dd8a8)
2021-06-09 13:51:01 +00:00
Bowgo Tsai
3a0dac346a fastboot: support vbmeta_vendor.img
Bug: 181909612
Bug: 190564127
Test: build
Change-Id: If61fff1c83513d71605c0cef2737a38f7575d69b
Merged-In: If61fff1c83513d71605c0cef2737a38f7575d69b
(cherry picked from commit a48a78356f)
2021-06-09 03:55:01 +00:00
Ricky Wai
420830f8a6 Isolate app profile ref data
Due to aosp/1708274, ref data directory is now world accessible.
We need to fix ref data directory so that it does not leak app
visibility information.

Bug: 189787375
Test: AppDataIsolationTests
Change-Id: I716852478ce0734c7038934c88c36a567c06393f
2021-06-08 12:15:14 +01:00
Treehugger Robot
89a39c7afa Merge "Fixing flakiness in libfs_avb_internal_test" am: 7534f6ca53 am: b308847ab1
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1727970

Change-Id: I2ff6f61d84881119e4ed7246a529fd8cec26a944
2021-06-08 10:58:24 +00:00
Treehugger Robot
b308847ab1 Merge "Fixing flakiness in libfs_avb_internal_test" am: 7534f6ca53
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1727970

Change-Id: I19058153c16b44c62411a8d5aa3d719ea3837b9a
2021-06-08 10:46:37 +00:00
Treehugger Robot
7534f6ca53 Merge "Fixing flakiness in libfs_avb_internal_test" 2021-06-08 10:32:51 +00:00
Yi-yo Chiang
dad160ec91 [automerger skipped] Merge changes Iaf2ec527,I6d6abd44,I6304e0de,Ia4fbce58,I3b60dfa4, ... into sc-dev am: 8f654d8a99 -s ours
am skip reason: Merged-In Iaf2ec52701277f26cc81f3e15a47b6083a788334 with SHA-1 3431d52675 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14815712

Change-Id: Ie188049615bab6efdc420535f9e599b0c50df8f2
2021-06-08 08:19:14 +00:00
Yi-yo Chiang
8f654d8a99 Merge changes Iaf2ec527,I6d6abd44,I6304e0de,Ia4fbce58,I3b60dfa4, ... into sc-dev
* changes:
  first_stage_mount: mount point must be canonical path
  fs_mgr_fstab: Parse overlayfs options from fs flags
  Remove deprecated fs_mgr_overlayfs_required_devices()
  adb-remount-test: Make awk scripts mawk-v1.3.3-compatible
  Make fs_mgr_overlayfs_mount_fstab_entry() available for user builds
  adb-remount-test: Strengthen skip_administrative_mounts
  fs_mgr_overlayfs_mount_fstab_entry(): Rename source device name
  fs_mgr_overlayfs: Polish fs_mgr_overlayfs_mount_fstab_entry()
  first_stage_mount: Remove "overlay" hack from InitRequiredDevices()
  fs_mgr_vendor_overlay: Mount vendor overlay with noatime
2021-06-08 07:51:52 +00:00