Commit graph

3555 commits

Author SHA1 Message Date
David Anderson
bb159ad483 Relax the language around parallel_restorecon.
Bug: 179702321
Change-Id: I030c861d1e676bca63a25317a509fcd2438b664e
2021-02-08 22:30:39 -08:00
Elliott Hughes
eed2499960 Merge "Let the kernel hwrng thread manage hw_random mixing." am: b363fc8b74 am: c5036ee28e am: c444bce2c5
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1578124

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If977978ab5765c6fa9dea4c0869c06213a8adb4e
2021-02-06 02:31:59 +00:00
Elliott Hughes
c444bce2c5 Merge "Let the kernel hwrng thread manage hw_random mixing." am: b363fc8b74 am: c5036ee28e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1578124

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I79ec073dbe94d6f625ba73d73ec259d43073ef31
2021-02-06 02:07:55 +00:00
Elliott Hughes
b363fc8b74 Merge "Let the kernel hwrng thread manage hw_random mixing." 2021-02-06 00:52:19 +00:00
Elliott Hughes
eedd38a82a Let the kernel hwrng thread manage hw_random mixing.
This has been something the kernel does automatically since 2014, so
there's no obvious reason to add extra work during boot to duplicate
that effort.

Bug: http://b/179086242
Test: treehugger
Change-Id: I44cce99a892e4f2a6a303c2126bd29f955f5fb23
2021-02-05 11:10:00 -08:00
Elliott Hughes
8a8ef9751d Merge "Remove all the cpp_std: "experimental"s." am: cb1c783530 am: fa49431873 am: 5e67bba69f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1575483

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If89bf968b4686358498220994fe3f8f2549c4b79
2021-02-05 03:37:55 +00:00
Elliott Hughes
5e67bba69f Merge "Remove all the cpp_std: "experimental"s." am: cb1c783530 am: fa49431873
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1575483

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2865007a4be31eff6570f5f6eab1ce2bf6971017
2021-02-05 02:49:47 +00:00
Elliott Hughes
9bfd986422 Remove all the cpp_std: "experimental"s.
None of them are necessary, and it's more intention-revealing to say
`c++2a` or whatever anyway.

Test: treehugger
Change-Id: Ie1df26499d160d6fc757d17fcb0121997bda14f9
2021-02-04 09:05:01 -08:00
Bart Sears
57bae7a731 Merge "Revert "Remove ART APEX from the bootstrap apexes"" am: 6ba9afd1e9 am: 15de287cfc am: fb8c06ab94
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1566910

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id6f5630d5ccebfdffac8fb28ab097e914973ae60
2021-02-02 03:19:01 +00:00
Bart Sears
fb8c06ab94 Merge "Revert "Remove ART APEX from the bootstrap apexes"" am: 6ba9afd1e9 am: 15de287cfc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1566910

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic4261c67c795e49cfbba1044b5a3d12d617956ae
2021-02-02 02:43:39 +00:00
chapin
6d869dd6ab Revert "Remove ART APEX from the bootstrap apexes"
Revert submission 1563392-remove_art_from_bootstrap

Reason for revert: Bug: 179002105
Reverted Changes:
I65e2a2089:Remove ART APEX from the bootstrap apexes
Ic20df80e2:Remove ART APEX from the bootstrap apexes

Change-Id: I474ab95805c5ca28e0bba91f3d226e8db5a7a9ea
2021-02-01 22:29:59 +00:00
Elliot Berman
d96d0f7d58 first_stage_mount: Create snapshot devices before launching first_stage_console
During device bringup, dynamic partitions may not be properly
configured by some sort of build or load misconfiguration. Diagnosing
such issues can be difficult without being able to see which partitions
are available and what they contain.

Aditionally, making logical partitions available to first stage console
permits early mounting of vendor partition and allows primitive
validation of vendor scripts without requiring full Android
environment. For instance, vendor_dlkm partition and modules can be
probed needing to have a full Android bootup.

Creation of logical partitions is done only when first_stage_console is
requested in order to have minimal impact on normal boot. Thus, only a
small refactor is required to split CreateLogicalPartitions out of
MountPartitions.

Bug: 174685384
Bug: 173732805
Change-Id: I828ce999be6d786bf46dd5655dfda81d046906ab
Signed-off-by: Elliot Berman <eberman@quicinc.com>
2021-01-31 01:35:18 -08:00
Treehugger Robot
391f695eda Merge "Remove ART APEX from the bootstrap apexes" am: dfab416188 am: 7472ac1537 am: 9b147f7347
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1563459

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6a15d3bf7d0d888ace8db46979570bad0437e0ff
2021-01-30 04:57:25 +00:00
Treehugger Robot
9b147f7347 Merge "Remove ART APEX from the bootstrap apexes" am: dfab416188 am: 7472ac1537
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1563459

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I23524bc7a2b30598cf096b1b52bf2606ecf03eca
2021-01-30 04:37:55 +00:00
Jiyong Park
b99c12ef10 Remove ART APEX from the bootstrap apexes
Test: forrest
Bug: 169779935
Change-Id: I65e2a2089fa12674f3abbbe2f154eeec984dd5df
2021-01-29 12:08:31 +09:00
Tianjie Xu
ed839dc4b9 Merge "Set hashtree algorithm for verity partitions" am: b9c7459fba am: 161e4a8e24 am: 33e1b08f0e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1553475

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0b9d32da9daa63c630eef7e9071e309beabb8a9d
2021-01-28 04:28:15 +00:00
Tianjie Xu
33e1b08f0e Merge "Set hashtree algorithm for verity partitions" am: b9c7459fba am: 161e4a8e24
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1553475

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5ca90dacea5c14500cb95522369de3064efb9fbc
2021-01-28 04:09:51 +00:00
Tianjie Xu
b9c7459fba Merge "Set hashtree algorithm for verity partitions" 2021-01-28 03:03:21 +00:00
Treehugger Robot
be40d700cf Merge "ueventd: deprecate paths without /etc/" am: 587f5e922c am: 5850f8efd6 am: c0aeaaba14
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1526382

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3b6386acf9656c60425bb6a9150366bd22aac685
2021-01-27 04:18:11 +00:00
Treehugger Robot
c557cbb679 Merge "Make second stage init visible to microdroid" am: e8cc75f059 am: 405bb6ed44 am: e4dd4f554a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1557543

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I849ba5086f4e44025056b659d0055a97a7a27093
2021-01-27 04:10:59 +00:00
Treehugger Robot
c0aeaaba14 Merge "ueventd: deprecate paths without /etc/" am: 587f5e922c am: 5850f8efd6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1526382

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ebecc9c845cac20dc5af3aee66abab067fd9fb6
2021-01-27 01:13:54 +00:00
Treehugger Robot
e4dd4f554a Merge "Make second stage init visible to microdroid" am: e8cc75f059 am: 405bb6ed44
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1557543

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2a996964a1694bdf21119ae72b0312e232386e17
2021-01-27 01:13:21 +00:00
Treehugger Robot
587f5e922c Merge "ueventd: deprecate paths without /etc/" 2021-01-26 23:53:54 +00:00
Treehugger Robot
e8cc75f059 Merge "Make second stage init visible to microdroid" 2021-01-26 23:47:46 +00:00
Tom Cherry
71dd7064cc ueventd: deprecate paths without /etc/
ueventd.rc scripts belong in the /etc/ directory of their given
partition, not the root of the partition.  This can cause problems,
especially since Android.bp cannot write to the root directly, forcing
vendors to use Android.mk for these files.  Note that
/system/etc/ueventd.rc moved long ago.

Test: Tree-hugger
Change-Id: I2dcaafc3c3f687f76ab6bc38af979c8b43346db0
2021-01-26 12:26:09 -08:00
Treehugger Robot
e2b0d1a809 Merge "Revert "first_stage_mount: Create snapshot devices before launching first_stage_console"" am: f2d359cbaa am: 72cca38225 am: 6b8a836733
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1558926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I946713041b7eb36e9c79fda1405a8fb95557af49
2021-01-26 19:23:00 +00:00
Treehugger Robot
6b8a836733 Merge "Revert "first_stage_mount: Create snapshot devices before launching first_stage_console"" am: f2d359cbaa am: 72cca38225
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1558926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6770e5889b05388c5d44ced44b509d50a5b6eaa0
2021-01-26 18:41:52 +00:00
Yiwei Zhang
4c467e3c15 Revert "first_stage_mount: Create snapshot devices before launching first_stage_console"
This reverts commit 9583e92257.

Reason for revert: <fail to flash a device>
Bug: 178433260

Change-Id: I0e9ab3eff38ddf9ad420cf1479eca16f6f29d1b5
2021-01-26 06:00:46 +00:00
David Anderson
262e7ca1f6 Merge changes I82b7d77b,I6b77690c am: ad7d1d13a4 am: 85d6c1cff5 am: 3526a48e87
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1526995

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I36ff5ab45ba8a5073dfd7fef1c5bbabce0b85ad1
2021-01-25 22:22:11 +00:00
David Anderson
3526a48e87 Merge changes I82b7d77b,I6b77690c am: ad7d1d13a4 am: 85d6c1cff5
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1526995

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3865a6659fdc430e9573e9fe5e8a522520b76438
2021-01-25 21:56:04 +00:00
Elliot Berman
9583e92257 first_stage_mount: Create snapshot devices before launching first_stage_console
During device bringup, dynamic partitions may not be properly
configured by some sort of build or load misconfiguration. Diagnosing
such issues can be difficult without being able to see which partitions
are available and what they contain.

Aditionally, making logical partitions available to first stage console
permits early mounting of vendor partition and allows primitive
validation of vendor scripts without requiring full Android
environment. For instance, vendor_dlkm partition and modules can be
probed needing to have a full Android bootup.

Creation of logical partitions is done only when first_stage_console is
requested in order to have minimal impact on normal boot. Thus, only a
small refactor is required to split CreateLogicalPartitions out of
MountPartitions.

Bug: 174685384
Bug: 173732805
Change-Id: I82b7d77b9dc75af59b5e18b574e3eb99c8aff9e2
Signed-off-by: Elliot Berman <eberman@quicinc.com>
2021-01-25 09:53:36 -08:00
Elliot Berman
a619f22e37 first_stage_mount: Move CreateLogicalPartitions to DoFirstStageMount
In preparation for later commit:
   first_stage_mount: Create snapshot devices before launching
first_stage_console

Bug: 173732805
Bug: 174685384
Change-Id: I6b77690c7cf68f6235c99bf4ff897b0ee41c4d0e
Signed-off-by: Elliot Berman <eberman@quicinc.com>
2021-01-25 09:53:35 -08:00
Jiyong Park
903537884f Make second stage init visible to microdroid
microdroid is the base image for on-device VMs. We will use Android
components (init, adbd, servicemanager, ...) on the VM as much as
possible.

Bug: 177630284
Test: m microdroid
Change-Id: I36890644baaaf8f441698411dd869ddb220734fb
2021-01-25 19:12:17 +09:00
Woody Lin
106eb02fe6 Merge "Add init.svc_debug.no_fatal.<svc_name> to skip SVC_CRITICAL" am: 81bf17ce0f am: 1d24da452d am: 568cd24f41
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1554980

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7244d08c7956d28b664e17057b9f587d38ef7498
2021-01-23 01:43:11 +00:00
Woody Lin
568cd24f41 Merge "Add init.svc_debug.no_fatal.<svc_name> to skip SVC_CRITICAL" am: 81bf17ce0f am: 1d24da452d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1554980

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I24d7311db98edd38ae5b58c5943c1f5851b64594
2021-01-23 01:27:57 +00:00
Woody Lin
ef9d460ea8 Add init.svc_debug.no_fatal.<svc_name> to skip SVC_CRITICAL
For user who would like to retain the crash symptom and avoid device
from power cycle for live debugging, set
init.svc_debug.no_fatal.<svc_name> to "true" to skip FATAL reboot.

Bug: 177593855
Change-Id: I0bdb6191e5963c08e1ea301a60060acf916dd49b
2021-01-22 15:01:36 +08:00
Tianjie
327237d13a Set hashtree algorithm for verity partitions
This is used in cts tests to verify that algorithms in blocklist aren't
used to build the hashtree. The system properties are required to perform
the check on unrooted devices.

Bug: 175236047
Test: flash, getprop; atest CtsNativeVerifiedBootTestCases

Change-Id: I2dcfdb06f85dbe92cde45e836dd68e7bd835020f
2021-01-20 19:02:34 -08:00
Treehugger Robot
0033d173ec Merge "Make ro.product.cpu.abilist* to be fetched dynamically" am: 8e3826b8b1 am: e45bdf9293 am: 1e1836140c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1538764

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iccc60c4977bec77e30c2bc0868b484fe27ad02eb
2021-01-15 13:59:18 +00:00
Treehugger Robot
1e1836140c Merge "Make ro.product.cpu.abilist* to be fetched dynamically" am: 8e3826b8b1 am: e45bdf9293
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1538764

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I682ffbdbf13c875a6fabad658cf03edca0009c84
2021-01-14 18:49:55 +00:00
Treehugger Robot
8e3826b8b1 Merge "Make ro.product.cpu.abilist* to be fetched dynamically" 2021-01-14 18:34:21 +00:00
Treehugger Robot
c7a6f9d544 Merge "Let init mount/unmount debugfs for non-user builds" am: 8376d87e2d am: 2bd8b0a33a am: 54be11cf54
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1542228

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iad2c594e104d94f792ec1cbb34627397be42cff9
2021-01-13 05:52:23 +00:00
Treehugger Robot
54be11cf54 Merge "Let init mount/unmount debugfs for non-user builds" am: 8376d87e2d am: 2bd8b0a33a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1542228

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1c78fb1c001db0cba52db0135b449c73b56dc5ee
2021-01-13 05:32:50 +00:00
Treehugger Robot
8376d87e2d Merge "Let init mount/unmount debugfs for non-user builds" 2021-01-13 04:24:22 +00:00
SzuWei Lin
db8d87c646 Merge "Deprecate /factory" am: bedae3910c am: 232c427b52 am: 977b7d21bc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1547514

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I199e2acf90c7166e66e8f27084e1007076e08411
2021-01-13 02:18:26 +00:00
SzuWei Lin
977b7d21bc Merge "Deprecate /factory" am: bedae3910c am: 232c427b52
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1547514

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id1355101b19f7bedabba3ff58d93ac20273e6666
2021-01-13 01:59:57 +00:00
SzuWei Lin
bedae3910c Merge "Deprecate /factory" 2021-01-13 01:11:43 +00:00
Hridya Valsaraju
fb921a1c4e Let init mount/unmount debugfs for non-user builds
This change will help non-user builds with keeping debugfs
disabled during run time. Instead, debugfs will be mounted by init
to enable boot time initializations to set up vendor debug data
collection and unmounted after boot. It will be also be mounted by
dumpstate for bug report generation and unmounted after.

This change is only intended to help vendors (who depend on debugfs to
collect debug information from userdebug/eng builds) keep debugfs
disabled during runtime. Platform code must not depend on debugfs at all.

Test: manual
Bug: 176936478
Change-Id: I2e89d5b9540e3de094976563682d4b8c5c125876
2021-01-12 14:41:53 -08:00
David Anderson
9051b026d3 Merge changes from topic "snapuserd-selinux" am: 270c98f190 am: 956696c7d8 am: efe26e5380
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1546849

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic8d0f4386a9d3d9d9bcee8dbe788f244014b11fd
2021-01-12 22:24:51 +00:00
David Anderson
efe26e5380 Merge changes from topic "snapuserd-selinux" am: 270c98f190 am: 956696c7d8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1546849

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2ecbf88e6ecaf4ef62cc2c171519fbf461c4ab4a
2021-01-12 22:08:49 +00:00
SzuWei Lin
478868826f Deprecate /factory
After Treblized, AOSP do not handle /factory folder. Also, AOSP
does not mount any partition to /factory. /factory has no possibility
to have any content. For factory purpose, it can be implemented in
vendor.

Bug: 177280838
Test: na
Change-Id: I0a2537336c2ef1efbad3e4f9e876aeaa607bc737
2021-01-12 12:18:39 +08:00