Commit graph

49861 commits

Author SHA1 Message Date
Mark Salyzyn
bc0887add7 Merge "adb: use /system/bin/remount command"
am: d458066bc7

Change-Id: I0276c6488dd5d57475e6b73cf1fef5a00a2e75b8
2019-03-04 14:41:21 -08:00
Mark Salyzyn
d458066bc7 Merge "adb: use /system/bin/remount command" 2019-03-04 22:27:19 +00:00
Mark Salyzyn
f4e7422c65 fs_mgr: remount: add partition argument list
Can supply a specific partition to remount.  Partitions can be
specified by name or mount point.  Some extra work to differentiate
an unknown partition, invalid partition, or one that is covered by
overlayfs.

Test: adb-remount-test.sh
Bug: 122602260
Change-Id: Iab6f51c2b5ebe01f1cea3fb235445d5e2f495365
2019-03-04 11:13:05 -08:00
Mark Salyzyn
2f6c180749 adb: use /system/bin/remount command
Replace direct logic in support for 'adb remount' with an exec out to
/system/bin/remount to do the heavy lifting.  Remount success and
failure strings are reported by the adb remount service in response
to the various reported errors, freeing up the remount command itself
from the legacy of script expectations.

Test: adb-remount-test.sh
Bug: 122602260
Change-Id: I686fa465f463b881bbb38f709d780a95e463be80
2019-03-04 11:12:54 -08:00
David Anderson
f344d63222 Support FiemapWriters that extend across multiple files.
This introduces a new SplitFiemap class that will divide an allocation
request across multiple FiemapWriters. This is primarily useful on
filesystems that have onerous restrictions on maximum file sizes. Vfat,
for example, supports a maximum of 4GiB, which is too small to satisfy
larger userdata size requests.

Bug: 126230649
Test: fiemap_writer_test gtest
Change-Id: I3c95d341e4e94e0c44bbf0e8553c34ccfdcd155b
2019-03-04 10:08:55 -08:00
Felix
6f79379fbc Merge "ld.config: Permit legacy /system/vendor paths" am: 6521bf3c98 am: 7334915cf5
am: 7690f38b1b

Change-Id: I0d51064f17be05d2191f749c0df5a628c3d163e7
2019-03-04 05:16:21 -08:00
Felix
7690f38b1b Merge "ld.config: Permit legacy /system/vendor paths" am: 6521bf3c98
am: 7334915cf5

Change-Id: Ib3fb0c3311d66df5e06d2484889211cac97d2f34
2019-03-04 05:11:54 -08:00
Felix
7334915cf5 Merge "ld.config: Permit legacy /system/vendor paths"
am: 6521bf3c98

Change-Id: If01c6a02f530b60167c1d29c5bf3c75befa531c9
2019-03-04 05:07:39 -08:00
Treehugger Robot
6521bf3c98 Merge "ld.config: Permit legacy /system/vendor paths" 2019-03-04 12:58:11 +00:00
Jiyong Park
4ba548d845 mount /apex during first_stage init
/apex is not mounted via init.rc but directly by the first_stage init
before the mount namespaces are configured.

This allows us to change the propagation type for /apex mount point to
private to isolate APEX activatesions across post- and pre-apexd
processes.

Bug: 125549215
Test: m; device boots to the UI

Change-Id: I10e056cd30d64cb702b6c237acd8dab326162884
2019-03-04 16:22:41 +09:00
Felix
9e40e12cea ld.config: Permit legacy /system/vendor paths
Because /vendor is a symlink to /system/vendor on devices without a
dedicated /vendor partition, /system/vendor/lib/* needs to be added to
the permitted paths whereever /vendor/lib/* is permitted.

Reasoning:
Legacy devices are forced to use ld.config.legacy.txt, which is very
permissive. We can prolong support for them and enable them to use the
VNDK if we extend the search paths to include the resolved symlink dirs.

Change-Id: I6b3bb7b86ed82395345a16bdc857353b1b15c704
2019-03-03 14:31:37 +01:00
Petri Gynther
e0c291bb1c Merge "toolbox: make "r" available for /vendor" am: bc6372103a am: 05e32cf544
am: 8ab61d6ec7

Change-Id: Ia3210a0442161a151df4a996775890723ab2ac41
2019-03-03 00:06:01 -08:00
Petri Gynther
8ab61d6ec7 Merge "toolbox: make "r" available for /vendor" am: bc6372103a
am: 05e32cf544

Change-Id: I4dc11fe9963e6fa1b9395e8dfa6f38ef2d836d5a
2019-03-02 23:34:37 -08:00
Petri Gynther
05e32cf544 Merge "toolbox: make "r" available for /vendor"
am: bc6372103a

Change-Id: Ib55339d168808e2593748efe1aea573a56b3beb5
2019-03-02 23:30:27 -08:00
Petri Gynther
bc6372103a Merge "toolbox: make "r" available for /vendor" 2019-03-03 07:20:04 +00:00
David Anderson
4d4db8c09e Add more filesystem support to libfiemap_writer.
This adds support for vfat filesystems.

Bug: 126230649
Test: fiemap_writer_test gtest
Change-Id: I028cc7d95c313dd3ed826bc44cc3d0ffdcb58597
2019-03-02 00:31:15 -08:00
Erick Reyes
c19e41916a Merge "libmeminfo: librank optimization using maps instead of vectors" am: 924eec9518 am: f3a23fe800
am: 7c61624070

Change-Id: Iddd3e98e4952061d27c90fd19209d91b1117442c
2019-03-01 20:31:08 -08:00
Erick Reyes
7c61624070 Merge "libmeminfo: librank optimization using maps instead of vectors" am: 924eec9518
am: f3a23fe800

Change-Id: Ie4113c99cec59e8f40f23c48f2b19a07126fef66
2019-03-01 20:19:49 -08:00
Erick Reyes
f3a23fe800 Merge "libmeminfo: librank optimization using maps instead of vectors"
am: 924eec9518

Change-Id: Icaff42f16eb4ee6339b27ad2c750ba770be7b2e1
2019-03-01 20:12:42 -08:00
Treehugger Robot
924eec9518 Merge "libmeminfo: librank optimization using maps instead of vectors" 2019-03-02 03:58:28 +00:00
David Anderson
9505f2976c Merge "Fix double-accounting bug in liblp." am: 42294631a7 am: aaf5d64713
am: 9dfd75813d

Change-Id: I6f0c6c583e844b2db33fcfa239fcef4d80700fd4
2019-03-01 19:41:19 -08:00
David Anderson
9dfd75813d Merge "Fix double-accounting bug in liblp." am: 42294631a7
am: aaf5d64713

Change-Id: I9e00135d9d20212c79c1d3dc246b31b82421eefe
2019-03-01 19:33:09 -08:00
David Anderson
aaf5d64713 Merge "Fix double-accounting bug in liblp."
am: 42294631a7

Change-Id: Icc511967cbd7ce549256896f25632c741ba1a89b
2019-03-01 19:28:59 -08:00
David Anderson
42294631a7 Merge "Fix double-accounting bug in liblp." 2019-03-02 03:16:10 +00:00
Petri Gynther
7c71e06f8e toolbox: make "r" available for /vendor
Make "r" package available for /vendor, so that we can easily add:

PRODUCT_PACKAGES_DEBUG += r.vendor

in device/google/<device>/device.mk

Change-Id: I46c23a85c95444083b8e4b68961c541d9af9b216
2019-03-01 17:51:56 -08:00
Christian Wailes
eabbed9c31 Merge "Renamed blastula to unspecialized app process (usap)" 2019-03-02 01:38:11 +00:00
David Anderson
88e36c1514 Fix double-accounting bug in liblp.
When flashing in fastbootd, we create a new MetadataBuilder using the
given super_empty.img and attempt to import the existing partition
table. This will fail if there is some incompatibility in the partition
layout or partition quotas.

This import code was accidentally double-accounting partitions when
determining if they could fit within the group quota, preventing
"fastboot flashall" once partitions reached a certain size.

Bug: 126930319
Test: liblp_test gtest
Change-Id: I89a69cba110b62719197c9a4885cfc5bcf8f009f
2019-03-01 16:17:27 -08:00
Erick Reyes
5a744684c3 libmeminfo: librank optimization using maps instead of vectors
librank was calling std::vector::find_if in nested loops when iterating
through processes and maps.

Changed the implementation to use std::map::insert, this resulted in
a significant improvement to execution speed.

Test: time librank on crosshatch

Before:  1m22.57s real     1m15.87s user     0m05.79s system
After:   0m03.85s real     0m00.88s user     0m02.92s system

Bug: 124523194

Change-Id: I2b519d0bfd7f7929c6c4c6c2374794cb1a744585
Signed-off-by: Erick Reyes <erickreyes@google.com>
2019-03-01 16:17:20 -08:00
David Anderson
b664d843fa Merge "Remove the block size alignment restriction." am: b1f97f9d1b am: 5704d3e22d
am: 1fb530ddb3

Change-Id: Ida698956d8f771931fc546b91ef0e9717c3a1bdc
2019-03-01 15:05:48 -08:00
David Anderson
1fb530ddb3 Merge "Remove the block size alignment restriction." am: b1f97f9d1b
am: 5704d3e22d

Change-Id: I16e26f02ca9fbf1f0be521284166b0fc886b37c5
2019-03-01 15:01:43 -08:00
David Anderson
5704d3e22d Merge "Remove the block size alignment restriction."
am: b1f97f9d1b

Change-Id: I47bcdfe414ef646be36b2633d77697b6d9a71084
2019-03-01 14:57:02 -08:00
David Anderson
b1f97f9d1b Merge "Remove the block size alignment restriction." 2019-03-01 22:48:25 +00:00
Wei Wang
0969e4312c Merge "Reduce log spam from libprocessgroup" am: 8dcd839158 am: f4885cb770
am: 1e0e8b7bf7

Change-Id: Iea64088db9375d92f15ccd729641c48069608eea
2019-03-01 14:34:33 -08:00
Wei Wang
1e0e8b7bf7 Merge "Reduce log spam from libprocessgroup" am: 8dcd839158
am: f4885cb770

Change-Id: Ic427fce92cfc593a595d5f28304ae2f05d593000
2019-03-01 14:29:58 -08:00
Wei Wang
f4885cb770 Merge "Reduce log spam from libprocessgroup"
am: 8dcd839158

Change-Id: I9fa927e181424f55b4d6043352dd3b9d08c96e29
2019-03-01 14:25:43 -08:00
Treehugger Robot
8dcd839158 Merge "Reduce log spam from libprocessgroup" 2019-03-01 22:11:15 +00:00
Suren Baghdasaryan
6450412d8f Merge "libprocessgroup: convert Json::Value to const refs" am: 6ad4eb3519 am: 29b5a37e6d
am: 980aaa027e

Change-Id: I6923911c9a645778cc852ca7c08afe9c03b67ba0
2019-03-01 10:32:10 -08:00
Suren Baghdasaryan
949692c6a7 Merge "Add vendor cgroups and task_profiles support" am: 3af39f36cc am: 6f8eee612c
am: c6ee857075

Change-Id: I0dd92817ee12509e3e26d005bf28229292cc3246
2019-03-01 10:30:30 -08:00
Mark Salyzyn
775b758d94 Merge "bootstat: add salyzyn as owner" am: 8da7a1e6fd am: 8138593f5a
am: c919bafa3d

Change-Id: Icfbd3a667b8fd20e9676efa02ef537ee0ff2a20f
2019-03-01 10:28:51 -08:00
Suren Baghdasaryan
980aaa027e Merge "libprocessgroup: convert Json::Value to const refs" am: 6ad4eb3519
am: 29b5a37e6d

Change-Id: I6ea37a7ebf7f3df2827e25b55c6334265c555542
2019-03-01 10:16:17 -08:00
Suren Baghdasaryan
c6ee857075 Merge "Add vendor cgroups and task_profiles support" am: 3af39f36cc
am: 6f8eee612c

Change-Id: Ic8d9ddc189bd2b2370b7e13f1e1fd3a8ea86914d
2019-03-01 10:14:39 -08:00
Mark Salyzyn
c919bafa3d Merge "bootstat: add salyzyn as owner" am: 8da7a1e6fd
am: 8138593f5a

Change-Id: Id3488bbe05d68cba7c61bacd8e28df1bab5dce37
2019-03-01 10:13:51 -08:00
Suren Baghdasaryan
29b5a37e6d Merge "libprocessgroup: convert Json::Value to const refs"
am: 6ad4eb3519

Change-Id: Ida562f432aa455ea1043161dc12e157c22a380fb
2019-03-01 10:10:07 -08:00
Suren Baghdasaryan
6f8eee612c Merge "Add vendor cgroups and task_profiles support"
am: 3af39f36cc

Change-Id: I4aec4ccdb0511f70a291b404432ff341c45522fb
2019-03-01 10:08:49 -08:00
Mark Salyzyn
8138593f5a Merge "bootstat: add salyzyn as owner"
am: 8da7a1e6fd

Change-Id: I1188d770df246691a9e75caab215f01cb552d279
2019-03-01 10:03:00 -08:00
Suren Baghdasaryan
6ad4eb3519 Merge "libprocessgroup: convert Json::Value to const refs" 2019-03-01 18:02:22 +00:00
Suren Baghdasaryan
3af39f36cc Merge "Add vendor cgroups and task_profiles support" 2019-03-01 18:01:39 +00:00
David Anderson
47f7420366 Remove the block size alignment restriction.
Rather than require block-size alignment, instead bump the requested
file size to the necessary alignment. This ensures that the final block
is usable without placing onerous restrictions on the caller to figure
out the file system's block size.

This will require callers (namely, gsid) to track the actual desired
image size separately from the flie size.

This patch also updates tests to use the actual filesize of the
filesystem, rather than hardcoded 4096.

Bug: 126230649
Test: fiemap_writer_test gtest
Change-Id: I000cca274718c3ceac526d7c3392fe3a23bb42bc
2019-03-01 09:52:52 -08:00
Mark Salyzyn
8da7a1e6fd Merge "bootstat: add salyzyn as owner" 2019-03-01 17:48:56 +00:00
Bowgo Tsai
5ccd84fd35 Merge "fs_mgr: fix fs_mgr avb_keys parsing problem" am: c8964edb7e am: b9eca0256c
am: cad8a4fbe9

Change-Id: Ib6b224bb5768d7b327d89341b1e832f97bb83e46
2019-03-01 07:53:07 -08:00