Commit graph

67361 commits

Author SHA1 Message Date
Treehugger Robot
e54b85b9ad Merge "Move PropertyMap from libutils to libinput" am: 01a30c0d2b am: 91f3227436 am: f535386aa7 am: 05a8129c88 am: 50fc3dc833
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1396177

Change-Id: Iab2a30fce6d5e0569b01b894babe33ef416dd53b
2020-09-08 17:13:30 +00:00
Treehugger Robot
50fc3dc833 Merge "Move PropertyMap from libutils to libinput" am: 01a30c0d2b am: 91f3227436 am: f535386aa7 am: 05a8129c88
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1396177

Change-Id: I733c8118c83d19d0e77aaa34b539ff5cd735ecc1
2020-09-08 17:06:42 +00:00
Alistair Delva
b25201cd17 Merge "Make libsparse vendor_available" am: 5a6f49dde7 am: e751aae086 am: 6751656ee0 am: f0189b625c am: 63c6f1aea3
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419608

Change-Id: I93ea35c4ad1435fded377d954e836e5fb246eb25
2020-09-08 17:06:10 +00:00
Treehugger Robot
05a8129c88 Merge "Move PropertyMap from libutils to libinput" am: 01a30c0d2b am: 91f3227436 am: f535386aa7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1396177

Change-Id: Ie2565b0074fbd3b485fd93f229a49c9a64dbeffc
2020-09-08 16:48:33 +00:00
Alistair Delva
63c6f1aea3 Merge "Make libsparse vendor_available" am: 5a6f49dde7 am: e751aae086 am: 6751656ee0 am: f0189b625c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419608

Change-Id: I03040c288be00ab62ebd826cf2732775ed3b497e
2020-09-08 16:47:02 +00:00
Treehugger Robot
f535386aa7 Merge "Move PropertyMap from libutils to libinput" am: 01a30c0d2b am: 91f3227436
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1396177

Change-Id: I04748c0a73394f593c70b8f6863e40dce0eb3616
2020-09-08 16:22:37 +00:00
Alistair Delva
f0189b625c Merge "Make libsparse vendor_available" am: 5a6f49dde7 am: e751aae086 am: 6751656ee0
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419608

Change-Id: I470f7dc37df8ec309500fb8f9fa5c36ed0c541df
2020-09-08 16:22:19 +00:00
Treehugger Robot
91f3227436 Merge "Move PropertyMap from libutils to libinput" am: 01a30c0d2b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1396177

Change-Id: I02919926ccbc4127f9c9c2a2b66eb2a7334c7270
2020-09-08 16:17:05 +00:00
Treehugger Robot
01a30c0d2b Merge "Move PropertyMap from libutils to libinput" 2020-09-08 16:03:36 +00:00
Alistair Delva
6751656ee0 Merge "Make libsparse vendor_available" am: 5a6f49dde7 am: e751aae086
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419608

Change-Id: Ie326d452ea3a5033ccc9695443d0177a15d6efc9
2020-09-08 15:49:48 +00:00
Alistair Delva
e751aae086 Merge "Make libsparse vendor_available" am: 5a6f49dde7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419608

Change-Id: I83571db0c33bcf6768598ed630fe99f470483788
2020-09-08 15:35:14 +00:00
Alistair Delva
5a6f49dde7 Merge "Make libsparse vendor_available" 2020-09-08 15:15:19 +00:00
David Anderson
d6508b93a0 Merge "libsnapshot: Add a tool for estimating non-A/B OTA sizes with the new COW format." am: f9a436a052 am: 9bd7d9bd18 am: 680c5e3a0c am: 93f2ff70be am: cb521e8e86
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1411189

Change-Id: I9817d43228fd26b0a1d6d388f231ad4310f79ae8
2020-09-04 21:09:04 +00:00
David Anderson
cb521e8e86 Merge "libsnapshot: Add a tool for estimating non-A/B OTA sizes with the new COW format." am: f9a436a052 am: 9bd7d9bd18 am: 680c5e3a0c am: 93f2ff70be
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1411189

Change-Id: I32292c9402488792e01bade2f4389cceb56a5884
2020-09-04 20:28:47 +00:00
David Anderson
93f2ff70be Merge "libsnapshot: Add a tool for estimating non-A/B OTA sizes with the new COW format." am: f9a436a052 am: 9bd7d9bd18 am: 680c5e3a0c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1411189

Change-Id: I2ac302e32b8c106be8a0bce5344d7abe98c79079
2020-09-04 20:16:51 +00:00
David Anderson
680c5e3a0c Merge "libsnapshot: Add a tool for estimating non-A/B OTA sizes with the new COW format." am: f9a436a052 am: 9bd7d9bd18
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1411189

Change-Id: I52d56946dd488834292a06cd2d2338544fbb6552
2020-09-04 20:03:29 +00:00
David Anderson
9bd7d9bd18 Merge "libsnapshot: Add a tool for estimating non-A/B OTA sizes with the new COW format." am: f9a436a052
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1411189

Change-Id: Iecd270c757577315cd485aad52e268ca601fb5fe
2020-09-04 19:29:15 +00:00
David Anderson
f9a436a052 Merge "libsnapshot: Add a tool for estimating non-A/B OTA sizes with the new COW format." 2020-09-04 18:55:22 +00:00
David Anderson
f4ebaca8a7 libsnapshot: Add a tool for estimating non-A/B OTA sizes with the new COW format.
This tool allows users to estimate the COW size for a non-A/B update.
It works by scanning the partitions of two target-files packages, and
identifying moved or copied blocks, and simulating the impact in the new
COW format.

It has two modes:

    estimate_cow_from_non_ab_ota -ota_tf <path>

Will estimate the COW size for a full OTA. For an incremental OTA, you
need two target files packages:

    estimate_cow_from_non_ab_ota -source_tf <path> -ota_tf <path>

There is an optional -compression argument which accepts either "none"
or "gz".

Bug: 161497962
Test: manual test
Change-Id: I335059cd870a464f34c5d644eefefdc76775386e
2020-09-03 19:04:34 -07:00
Treehugger Robot
2e8218a658 Merge "Return bytes written in CowWriter" am: b745a960f8 am: 9bfc688fe9 am: c0728eb19f am: e5562054e6 am: 1a347cddad
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419388

Change-Id: Iefa1e2b173ec1da0354c5c5a8d3d21f320617a2b
2020-09-04 00:10:48 +00:00
Treehugger Robot
1a347cddad Merge "Return bytes written in CowWriter" am: b745a960f8 am: 9bfc688fe9 am: c0728eb19f am: e5562054e6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419388

Change-Id: Ifebc992c4c4903ff2c7bd5a991b43653b1f7551c
2020-09-03 23:58:00 +00:00
Elliott Hughes
b98fd7de66 Merge "ashmem: ensure ashmem fds are CLOEXEC." am: a2f248724c am: 4c4af77b16 am: 92807a7757 am: b4a5fcf4d5 am: e25dcf9316
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419610

Change-Id: I18540946c30516d4f68cb0e643ab5464fa40fc32
2020-09-03 23:21:28 +00:00
Treehugger Robot
e5562054e6 Merge "Return bytes written in CowWriter" am: b745a960f8 am: 9bfc688fe9 am: c0728eb19f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419388

Change-Id: Id73d2ffb26d84abda5c94c93ceaae9db51867bd2
2020-09-03 23:21:26 +00:00
Treehugger Robot
c0728eb19f Merge "Return bytes written in CowWriter" am: b745a960f8 am: 9bfc688fe9
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419388

Change-Id: I98818b607b3783d385dd9beafd84078c2f48611b
2020-09-03 22:44:06 +00:00
Elliott Hughes
e25dcf9316 Merge "ashmem: ensure ashmem fds are CLOEXEC." am: a2f248724c am: 4c4af77b16 am: 92807a7757 am: b4a5fcf4d5
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419610

Change-Id: I3204c02ed60d881982e16c2608090951435e6a7c
2020-09-03 22:43:43 +00:00
Treehugger Robot
9bfc688fe9 Merge "Return bytes written in CowWriter" am: b745a960f8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419388

Change-Id: Id707e37c7cb64d05922c7db9db0d0b26685136c4
2020-09-03 22:31:45 +00:00
Elliott Hughes
b4a5fcf4d5 Merge "ashmem: ensure ashmem fds are CLOEXEC." am: a2f248724c am: 4c4af77b16 am: 92807a7757
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419610

Change-Id: I1db2327353bfd61fa9d1c280144d45d3debbb4ca
2020-09-03 22:25:57 +00:00
Treehugger Robot
b745a960f8 Merge "Return bytes written in CowWriter" 2020-09-03 22:01:25 +00:00
Elliott Hughes
92807a7757 Merge "ashmem: ensure ashmem fds are CLOEXEC." am: a2f248724c am: 4c4af77b16
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419610

Change-Id: I9bcd6052872cac5bc7c65bbe6811090cc002b649
2020-09-03 21:54:07 +00:00
Elliott Hughes
4c4af77b16 Merge "ashmem: ensure ashmem fds are CLOEXEC." am: a2f248724c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1419610

Change-Id: I7d6f11a48f423951b0811b3d754508542b809dcd
2020-09-03 21:23:38 +00:00
Elliott Hughes
a2f248724c Merge "ashmem: ensure ashmem fds are CLOEXEC." 2020-09-03 21:06:03 +00:00
Kelvin Zhang
8e75a38edd Return bytes written in CowWriter
delta_generator in update_engine needs to know number of bytes written
to estimate cow image sizes. This change modifies CowWriter::Finalize to
return relevant information.

Test: unnitest
Change-Id: I7cf6b9124b90f089a7c5f3850c38200f82da18e6
2020-09-03 15:59:17 -04:00
Elliott Hughes
790ef05793 ashmem: ensure ashmem fds are CLOEXEC.
Fix the memfd_create(2) path and add the missing unit test.

Bug: https://issuetracker.google.com/165667331
Test: treehugger
Change-Id: Ibb5c1d0f9d7caba1df04d1f03e82e55026d9f86a
2020-09-03 10:54:20 -07:00
Alistair Delva
9e28cd32fd Make libsparse vendor_available
We are porting cuttlefish to Android, it currently uses libsparse to
desparse Android filesystems to be used directly as disk images by
crosvm. Making this library available to 'vendor' enables us to support
desparsing downloaded images on-device as well.

Bug: 167675429
Change-Id: I8ae4a916cfb0b2002dd9e462f32e8cb0e533d821
2020-09-03 08:43:46 -07:00
Treehugger Robot
2cb4d1006c Merge "Create directories under /data/local/tests at boot" am: 480335dfd6 am: bc2fbe9ce4 am: a3ec0fd270 am: 8d6ca9d515 am: b51ce4ebe6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416432

Change-Id: I14e022765cb660fccc1a96c11e53d7b3eefcb759
2020-09-03 04:49:11 +00:00
Treehugger Robot
b51ce4ebe6 Merge "Create directories under /data/local/tests at boot" am: 480335dfd6 am: bc2fbe9ce4 am: a3ec0fd270 am: 8d6ca9d515
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416432

Change-Id: Ib62e63b13166bcb3572ccbddd0e1eceed33dee34
2020-09-03 04:36:26 +00:00
Treehugger Robot
8d6ca9d515 Merge "Create directories under /data/local/tests at boot" am: 480335dfd6 am: bc2fbe9ce4 am: a3ec0fd270
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416432

Change-Id: Ic4ca2e173cd5846b68c074e74c9e8c3fb4f6dc20
2020-09-03 04:07:36 +00:00
Siarhei Vishniakou
1329696700 Move PropertyMap from libutils to libinput
The input code is the only customer of PropertyMap. For easier
maintenance and eventual removal of it, move it to libinput.

Currently, the caller is responsible for managing the lifecycle of the
returned outMap when calling PropertyMap::load. However, the fact that
the function call allocates new memory is not obvious from the function
signature.

In a separate commit, I will refactor the function to return
Result<unique_ptr<>> to make it less errorprone.
In this commit, only move the files around to make code reviews easier.

Bug: 163171599
Test: atest inputflinger_tests
Change-Id: I316084886c3f09a1776fdb449d2f03d0563b66c1
2020-09-02 20:54:38 -07:00
Treehugger Robot
a3ec0fd270 Merge "Create directories under /data/local/tests at boot" am: 480335dfd6 am: bc2fbe9ce4
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416432

Change-Id: I539e6c56124f8833e0a69ee45d97ce5d20fd5b45
2020-09-03 03:29:25 +00:00
Treehugger Robot
bc2fbe9ce4 Merge "Create directories under /data/local/tests at boot" am: 480335dfd6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416432

Change-Id: I3136907e6137b8045e884b9cbffbe096951b8010
2020-09-03 03:07:06 +00:00
Kelvin Zhang
6df67bfb4d Merge "Enable libsnapshot_cow in recovery builds" am: 0b26cbb6b1 am: 756e361551 am: b885d18fe8 am: 4264eea97e am: 02e3cc24ae
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416091

Change-Id: I29931ef04a466ca3decf29cc691dcb541f52b8f2
2020-09-03 02:46:37 +00:00
Treehugger Robot
480335dfd6 Merge "Create directories under /data/local/tests at boot" 2020-09-03 02:26:10 +00:00
Kelvin Zhang
02e3cc24ae Merge "Enable libsnapshot_cow in recovery builds" am: 0b26cbb6b1 am: 756e361551 am: b885d18fe8 am: 4264eea97e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416091

Change-Id: I4a36484ad475216988ce6047a4aa162afd9d8595
2020-09-03 02:13:26 +00:00
Kelvin Zhang
4264eea97e Merge "Enable libsnapshot_cow in recovery builds" am: 0b26cbb6b1 am: 756e361551 am: b885d18fe8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416091

Change-Id: I0faf67c8f59df3ff68290ac09f674d35bdaef818
2020-09-03 01:37:35 +00:00
Kelvin Zhang
b885d18fe8 Merge "Enable libsnapshot_cow in recovery builds" am: 0b26cbb6b1 am: 756e361551
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416091

Change-Id: I2f58dbc27735b6d21f4885d1fc6eceac81780738
2020-09-03 01:10:08 +00:00
Kelvin Zhang
756e361551 Merge "Enable libsnapshot_cow in recovery builds" am: 0b26cbb6b1
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1416091

Change-Id: Ia4e0b0c1447336ac2d149ef6273decd9d6d0e790
2020-09-03 00:45:20 +00:00
Kelvin Zhang
0b26cbb6b1 Merge "Enable libsnapshot_cow in recovery builds" 2020-09-03 00:11:43 +00:00
Kelvin Zhang
f6219e2d56 Enable libsnapshot_cow in recovery builds
update_engine is enabled in recovery mode, needs to link with
libsnapshot_cow

Test: mm -j
Change-Id: Ia4823c866b16f47cd03dda1779701e957a77aed6
2020-09-02 20:08:46 -04:00
David Anderson
ccc29e8853 Merge "liblp: fix host lpdump cannot work issue" am: 29e7b2af30 am: 4852a2654a am: 89622b466e am: 22a90cf809 am: 7a61c5ee7d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1320937

Change-Id: I9066d376e7dda1526b0c6a63ebe6e612bece0937
2020-09-02 19:36:08 +00:00
David Anderson
7a61c5ee7d Merge "liblp: fix host lpdump cannot work issue" am: 29e7b2af30 am: 4852a2654a am: 89622b466e am: 22a90cf809
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1320937

Change-Id: Iaf76e12b073b43dfb2a1d11ac4ad35c28f02d553
2020-09-02 19:15:39 +00:00