Commit graph

69499 commits

Author SHA1 Message Date
Elliott Hughes
5f7d548dc6 Merge "Remove unused String8::setPathName." am: 40a0664b84
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1765465

Change-Id: I0e97d07a522f6041beb1a4bfdc66123b7e25511d
2021-07-14 21:31:19 +00:00
Elliott Hughes
40a0664b84 Merge "Remove unused String8::setPathName." 2021-07-14 21:20:24 +00:00
Andrew Walbran
ea969ebe7d Merge "virtualizationservice will clear its own temporary directory." am: 1ed24f477e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1765972

Change-Id: I2472688ff40a39b2d008f3046e9fcab70f696318
2021-07-14 18:43:54 +00:00
Andrew Walbran
1ed24f477e Merge "virtualizationservice will clear its own temporary directory." 2021-07-14 18:29:04 +00:00
Seth Moore
b3cae813c5 Merge "Client side implementation of Trusty IRPC HAL" am: 8fe5602099
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1756551

Change-Id: I6e6032b0d8f61554cdef19c699c2102149ae2218
2021-07-14 16:56:09 +00:00
Seth Moore
8fe5602099 Merge "Client side implementation of Trusty IRPC HAL" 2021-07-14 16:35:37 +00:00
Andrew Walbran
1f885aee3d virtualizationservice will clear its own temporary directory.
Bug: 192917795
Bug: 193365943
Test: flashed on a VIM3L and booted
Change-Id: Ib9657843c4d13c428670982a3f8d0e5dfdb78211
2021-07-14 14:18:25 +00:00
Elliott Hughes
c214426e0c Remove unused String8::setPathName.
Test: treehugger
Change-Id: Idc8d7e748b0df4ce8a26227dc73a5eef2b04244f
2021-07-13 17:20:53 -07:00
Tri Vo
a1a4b281c9 Merge "trusty: Increase timeout for ConfirmationUI fuzzer" am: e3ec5f9363
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1763600

Change-Id: I4f26a8fce579ab5c7a1ddeb66f28fdc72dd89b11
2021-07-13 21:24:22 +00:00
Tri Vo
e3ec5f9363 Merge "trusty: Increase timeout for ConfirmationUI fuzzer" 2021-07-13 21:09:38 +00:00
Treehugger Robot
cef0bb17c2 Merge "task_profiles.json: add taskprofile for dex2oat boot_complete policy" am: a7e63d9952
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1763728

Change-Id: I7835320db4f5ac7a819b2df4ef4d7416bf627118
2021-07-13 12:36:04 +00:00
Treehugger Robot
a7e63d9952 Merge "task_profiles.json: add taskprofile for dex2oat boot_complete policy" 2021-07-13 12:22:58 +00:00
Wei Wang
814673ace3 task_profiles.json: add taskprofile for dex2oat boot_complete policy
Since installation time is also critical and sometime we want a finer
control on its behavior for vendor. Instead of set dex2oat to background
group, add a new task profile.

The default policy is to mirror SP_BACKGROUND to be compatible with
legacy devices.

Test: Boot
Bug: 188947181
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I7d5e113d1c368205f712eadad27775de226131ce
(cherry picked from commit 3745ce7aa8)
2021-07-12 18:49:52 -07:00
Treehugger Robot
adabd1cdad Merge "fs_mgr: License boilerplate" am: df72c168d3
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1749683

Change-Id: I4f9bed425a4ac74cacfe8b46250a2e2924401c72
2021-07-13 01:47:37 +00:00
Treehugger Robot
852981c0c3 Merge "Re-land removing RECOVERY_AS_BOOT check for init_first_stage" am: 662729bc2e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1762146

Change-Id: I55d9f6b583b635aef4699a1ed5926a09f89b3f03
2021-07-13 01:47:19 +00:00
Treehugger Robot
df72c168d3 Merge "fs_mgr: License boilerplate" 2021-07-13 01:33:43 +00:00
Treehugger Robot
662729bc2e Merge "Re-land removing RECOVERY_AS_BOOT check for init_first_stage" 2021-07-13 01:32:21 +00:00
Tri Vo
f9cfeac49e trusty: Increase timeout for ConfirmationUI fuzzer
Bug: 192923547
Test: trusty_confirmationui_msg_fuzzer
Change-Id: I72755b0a35bbc3f2540672ca53acd14b1add38cb
2021-07-12 16:34:01 -07:00
Inseob Kim
4818f74888 Re-land removing RECOVERY_AS_BOOT check for init_first_stage
This has kept adb_debug.prop from being installed for
legacy devices with BOARD_USES_RECOVERY_AS_BOOT set to
true.

Bug: 192432810
Bug: 193291885
Test: `lunch aosp_flame-userdebug` and checks `get_build_var
      BOARD_USES_RECOVERY_AS_BOOT` is true.
Test: `make bootimage_debug` then checks
      $OUT/debug_ramdisk/adb_debug.prop exists
Test: build/soong/build_test.bash --dist --incremental

Change-Id: I28e2c082512791407167b610843f18731ed6d673
2021-07-10 23:42:53 +08:00
Bowgo Tsai
a8c6b9d27f fs_mgr: License boilerplate
Bug: 191507548
Test: TreeHugger
Change-Id: I2924d1733fc64de69681971ab42a526dc3bbcc1d
2021-07-09 06:24:04 +00:00
Treehugger Robot
086e31510d Merge changes I70c174c4,Ifc365e3b am: 1f92dc1a07
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1760905

Change-Id: Ia9af1a6e1331c65d20433105221d7793dd13f533
2021-07-08 21:40:03 +00:00
Treehugger Robot
1f92dc1a07 Merge changes I70c174c4,Ifc365e3b
* changes:
  Correctly implement a stub for ICowWriter::AddXorBlocks
  Add MockSnapshotWriter
2021-07-08 21:28:08 +00:00
Kelvin Zhang
c801d5b8f0 Correctly implement a stub for ICowWriter::AddXorBlocks
Test: th
Change-Id: I70c174c4d44ef979993063256e3eededf18bd086
2021-07-08 16:12:16 -04:00
Kelvin Zhang
e475852cf6 Add MockSnapshotWriter
Test: th
Change-Id: Ifc365e3bafc07f0708d9e2113afa434d73f32e28
2021-07-08 16:11:16 -04:00
Devin Moore
706013153c Merge "init: remove extra space in list of bootconfig values" am: 53ad66f41b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1757971

Change-Id: I5f52a0ffa05fac0b9e8c762853c4f91ec6c90974
2021-07-08 16:11:11 +00:00
Devin Moore
53ad66f41b Merge "init: remove extra space in list of bootconfig values" 2021-07-08 16:06:43 +00:00
Treehugger Robot
12afdda04a Merge "init: Enable hwasan error reporting." am: 905ef0e025
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1758940

Change-Id: Ib15bfa2febe45ee5fa10c7b207572fdc2a2c16b7
2021-07-08 16:06:05 +00:00
Treehugger Robot
905ef0e025 Merge "init: Enable hwasan error reporting." 2021-07-08 15:56:07 +00:00
Max Bires
95b5b04872 Client side implementation of Trusty IRPC HAL
This change includes the code necessary to communicate to the
IRemotelyProvisionedComponent backend implementation running in Trusty.
It also makes the relevant changes to the manifest XML file to add the
IRemotelyProvisionedComponent HAL.

Bug: 192228022
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I32c30ce2dc44e95ff91574ce405f10e3b5dc9699
Merged-In: I32c30ce2dc44e95ff91574ce405f10e3b5dc9699
2021-07-08 03:00:51 +00:00
Devin Moore
6d5445b9f4 init: remove extra space in list of bootconfig values
If a bootconfig argument has a list of values, it has a space between
them in /proc/bootconfig.

Example:
BOARD_BOOTCONFIG := parameter=value1,value2,value3

In /proc/bootconfig, it looks like:
parameter = "value1", "value2", "value3"

Before this CL, that example would end up with the value string of:
"value1, value2, value3"

To keep consistent behavior with kernel cmdline the value string should be:
"value1,value2,value3"

Test: Boot cuttlefish with test bootconfig params and verify ro.boot.*
Bug: 192257482
Change-Id: Iccdec451f53330162fa2c9ad2b7c2630f32b4168
2021-07-08 01:52:46 +00:00
David Anderson
8138717679 init: Enable hwasan error reporting.
Bug: 172541617
Test: builds with SANITIZE_TARGET=hwaddress
Change-Id: Ic749172bf9dd64bca0e8c7e34ac0b323685ad945
2021-07-07 18:49:19 -07:00
Nikita Ioffe
5392128031 Merge "Also populate lastUpdateMillis in ActivateFlattenedApexesIfPossible" am: fb1e841a9f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1756529

Change-Id: Ic8fcd9da7d6698f4aa455bf5f04f3832dfeb25be
2021-07-08 01:25:40 +00:00
Nikita Ioffe
fb1e841a9f Merge "Also populate lastUpdateMillis in ActivateFlattenedApexesIfPossible" 2021-07-08 01:16:49 +00:00
Daniel Rosenberg
e1af25c68a Merge changes from topic "CowSequenceOp" am: b19c333f2f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1749489

Change-Id: I0d01f7c88a04338b89a281373d494211eb05d004
2021-07-08 00:16:11 +00:00
Daniel Rosenberg
b19c333f2f Merge changes from topic "CowSequenceOp"
* changes:
  libsnapshot: Switch merge to CowRevMergeOpItr
  libsnapshot: Add seq op support to inspect_cow
  libsnapshot: Add CowRevMergeOpIter
  libsnapshot: Add IsOrderedOp
  libsnapshot: Cleanup iterators
  libsnapshot: Add Sequence Ops
2021-07-07 23:59:43 +00:00
Suren Baghdasaryan
6d1c951ff4 Merge "libprocessgroup: Remove unnecessary permissions change in uid/pid hierarchy" am: 86e0c6f409
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1758355

Change-Id: If8426595258b404bfb28600012155c4520bff35a
2021-07-07 23:22:59 +00:00
Suren Baghdasaryan
86e0c6f409 Merge "libprocessgroup: Remove unnecessary permissions change in uid/pid hierarchy" 2021-07-07 23:09:48 +00:00
Daniel Rosenberg
437a49ae66 libsnapshot: Switch merge to CowRevMergeOpItr
This switches merge code over from using the old RevOpItr to the new
MergeRevOpItr. Since there are no other users, RevOpItr is no longer
needed.

Changed names of copy_ops_ and total_data_ops_ to more accurately
reflect their meaning.

Bug: 177104308
Test: cow_snapuserd_test
Change-Id: Ic053be4877cfdc86656551f5a3d5d95f3825f937
2021-07-07 22:23:44 +00:00
Daniel Rosenberg
fffb9ff8ee libsnapshot: Add seq op support to inspect_cow
This adds the -m option to inspect_cow, allowing it to display the ops
according to CowRevMergeOpItr

Bug: 177104308
Test: inspect_cow -m on file with and without seq ops
Change-Id: Ic9a062b8175c77084e76c437414c23fd09e34cc6
2021-07-07 22:23:38 +00:00
Daniel Rosenberg
9b34ea8541 libsnapshot: Add CowRevMergeOpIter
This presents cow ops in the reverse of their merge order, as requested
when we perform a merge. It starts with sorted non-ordered ops sorted by
blocks, and then the ordered ops. Already merged ops are removed.

Bug: 177104308
Test: cow_api_test
Change-Id: I864bcab5cda447cf4a197abc02d954f9db08b744
2021-07-07 22:23:27 +00:00
Daniel Rosenberg
f7001fad6f libsnapshot: Add IsOrderedOp
Ordered Ops are Cow Ops with source block dependencies.
Currently this is only Copy Ops, but will extend to XOR
blocks when they're added.

Bug: 177104308
Test: Builds, does not impace cow_api_test/cow_snapuserd_test
Change-Id: I0a50dfe3316ec3a3b1d035335f094c62296649a5
2021-07-07 22:23:22 +00:00
David Anderson
be6fac8123 Merge "Fix gid not being set in ueventd when device nodes already exist." am: ccea7dfae7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1755589

Change-Id: Ic18e0313fccccc3ab8c976d5a99c3944d6b1d0eb
2021-07-07 22:21:23 +00:00
David Anderson
ccea7dfae7 Merge "Fix gid not being set in ueventd when device nodes already exist." 2021-07-07 22:06:09 +00:00
Suren Baghdasaryan
29c9e26776 libprocessgroup: Remove unnecessary permissions change in uid/pid hierarchy
When a new process is launched it ensures that all files under its uid/
and uid/pid hierarchy are accessible by the user/group of that process.
If the directory already exists that means the access permissions have
been already set before, therefore we do not need to reset them again.
This also avoids a race between two processes in the same uid with one
process being launched and walking the uid/ directory while the other
process is being killed and changing the content of that directory. In
such a race the process walking uid/ might find the uid/pid directory of
the process being killed but by the time it tries to set its permissions
the directory might be removed because the process got killed. The
change eliminates the possibility of this race.

Bug: 192421915
Bug: 192512069
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I182298c36f6b0b4580ab59e440bd3aea16f5fbfe
Merged-In: I182298c36f6b0b4580ab59e440bd3aea16f5fbfe
2021-07-07 19:42:25 +00:00
Nikita Ioffe
1f662999e3 Also populate lastUpdateMillis in ActivateFlattenedApexesIfPossible
Test: m
Bug: 192647837
Change-Id: I11dca132168d6a30372d7a68fe590894d3cc5ccf
2021-07-05 16:44:03 +01:00
Treehugger Robot
c04d07e209 Merge "init: disable watermark_boost feature" am: a436f589ab
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1753547

Change-Id: Ic12ba323cc34159cab3b83cf6fe49c2a2710273b
2021-07-04 08:26:28 +00:00
Treehugger Robot
a436f589ab Merge "init: disable watermark_boost feature" 2021-07-04 08:16:08 +00:00
David Anderson
f8825fafc8 Fix gid not being set in ueventd when device nodes already exist.
The chown() call will fix the uid for pre-existing nodes, but not the
gid. This fix ensures the correct gid is set if needed.

Bug: 187738549
Test: manual test modifying ueventd.rc
Change-Id: I0fadd745a7c57a089fed9afc2572ace597a05396
2021-07-02 20:50:23 -07:00
Daniel Rosenberg
f0d9beb162 libsnapshot: Cleanup iterators
The libsnapshot iterators can all use the same interface instead of
duplicating the interface. We don't have any need for the internal class
variable iterators, so remove them.

Test: Builds, does not impact cow_api_test/cow_snapuserd_test
Change-Id: I5f008401e067a55a57812b7bf101a472ad97df18
2021-07-02 20:53:16 +00:00
Treehugger Robot
094c5bb0cf Merge "libprocessgroup: Do not remove uid cgroups directory" am: 4717129e57
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1754995

Change-Id: I229b716d8e333c8427ce6e6eaa701614fd628242
2021-07-02 18:44:29 +00:00