Commit graph

45183 commits

Author SHA1 Message Date
Ray Essick
8123770797 Merge "give media apex access to libmediametrics"
am: 6a92b5c9c3

Change-Id: Ie39b395f7e4a09a95d1016f139cb7adca4cf6731
2019-01-25 00:38:01 -08:00
Treehugger Robot
6a92b5c9c3 Merge "give media apex access to libmediametrics" 2019-01-25 08:22:19 +00:00
Florian Mayer
95f9407848 Merge "Fix crash in libunwindstack."
am: 8306597e8f

Change-Id: Iead0e058dd15d70ac9ccc58794119283df41c419
2019-01-24 20:39:14 -08:00
Treehugger Robot
8306597e8f Merge "Fix crash in libunwindstack." 2019-01-25 04:29:30 +00:00
Ray Essick
baa0ce3785 give media apex access to libmediametrics
Bug: 112555455
Test: build, ctsmedia
Change-Id: I5455449533a6647fb2b4f617728ae693b2156fb9
2019-01-24 19:45:00 -08:00
Florian Mayer
c479e4e789 Fix crash in libunwindstack.
Bug: 122657596

Test: New unit test that crashes without this change.
Change-Id: I5d978530a833345def94a58805d7ee93b23382bb
2019-01-24 16:29:36 -08:00
Tri Vo
73b67bb41e Merge "selinux: account for /product hash"
am: 9ffdf5945d

Change-Id: I6241260a77c329222dede7f7ea7e0ea1c226e272
2019-01-24 16:13:27 -08:00
Tri Vo
9ffdf5945d Merge "selinux: account for /product hash" 2019-01-25 00:04:34 +00:00
Vic Yang
f479dbf830 Merge "libunwindstack: Move DwarfOp callback table to rodata section"
am: 4c1798b6c1

Change-Id: I7329c156b6a18c3728ec23b58eab2433f0808f81
2019-01-24 15:59:11 -08:00
Treehugger Robot
4c1798b6c1 Merge "libunwindstack: Move DwarfOp callback table to rodata section" 2019-01-24 23:44:29 +00:00
David Anderson
0477883506 Merge "Don't error on block size mismatches."
am: 10b0a155ee

Change-Id: Id1497dc86566c8dc8573f0692d58c1596854a0a5
2019-01-24 14:28:14 -08:00
David Anderson
10b0a155ee Merge "Don't error on block size mismatches." 2019-01-24 22:20:18 +00:00
Josh Gao
134576deba Merge "adbd: compile for host."
am: b42946a6d3

Change-Id: Ib47212e298198fcd7f2a4be7f158c313a6e321d5
2019-01-24 14:09:29 -08:00
Josh Gao
b42946a6d3 Merge "adbd: compile for host." 2019-01-24 21:53:26 +00:00
Vic Yang
cc8009ff04 libunwindstack: Move DwarfOp callback table to rodata section
There are currently two copies of DwarfOp callback tables in
data.rel.ro section, and that is 16KB of dirty memory per process on a
64-bit platform.

To reduce memory usage, we introduce a layer of indirection so that
all instances of DwarfOp can share a single callback table.  We also
get rid of the pointers for op names in the callback table so that the
entire table can be placed in rodata section.

Test result shows 1MB saving on cuttlefish, and 750KB saving on a Go
device (32-bit ARM).

Bug: 112073665
Test: Boot on cuttlefish and a Go device.
Change-Id: Idf90a513f37534ab1ef30d5742a9d3ea779f3661
2019-01-24 11:11:15 -08:00
Yabin Cui
eb16021d1e Merge "Add setuid/setgid capabilities to simpleperf_app_runner."
am: c87d1ed611

Change-Id: I4d03b065dd379cffbe5ca9656c3294a7f3675887
2019-01-24 11:05:26 -08:00
Sandeep Patil
40a307f530 Merge "meminfo: Add support to track working set with idle page tracking."
am: c1a6554391

Change-Id: If852cb6aab24a082f384f8d809e30e900049892e
2019-01-24 11:04:14 -08:00
Yabin Cui
c87d1ed611 Merge "Add setuid/setgid capabilities to simpleperf_app_runner." 2019-01-24 18:39:13 +00:00
Treehugger Robot
c1a6554391 Merge "meminfo: Add support to track working set with idle page tracking." 2019-01-24 18:25:10 +00:00
Mark Salyzyn
5bfde143d2 Merge "fs_mgr: overlayfs: test: test mount -o rw,remount command"
am: be38989da0

Change-Id: I562f5fa50e69e09a915eb8a370bbb89969b0e2b8
2019-01-24 08:35:12 -08:00
Treehugger Robot
be38989da0 Merge "fs_mgr: overlayfs: test: test mount -o rw,remount command" 2019-01-24 16:26:58 +00:00
Bowgo Tsai
035e2855db Merge "libfs_avb: support loading vbmeta structs from any partition"
am: 8dd6e5922b

Change-Id: If427c749caaa10b1c5f2bf2c239c982175f37806
2019-01-24 08:26:06 -08:00
Treehugger Robot
8dd6e5922b Merge "libfs_avb: support loading vbmeta structs from any partition" 2019-01-24 16:16:13 +00:00
Christopher Ferris
e0e04a49aa Merge "Fix memory leak in UnwinderFromPid object."
am: 3c1d6b836a

Change-Id: Ib56d1540c6a9835cb05084ddf66abfbfe44881da
2019-01-24 07:31:56 -08:00
Christopher Ferris
3c1d6b836a Merge "Fix memory leak in UnwinderFromPid object." 2019-01-24 15:23:09 +00:00
Jiyong Park
8e206db77b Merge "Add search paths for asan build"
am: 6b6259a083

Change-Id: I2da933c3bb0d408bc6828fe9f8bd51fc4cd58f9d
2019-01-24 04:33:45 -08:00
Treehugger Robot
6b6259a083 Merge "Add search paths for asan build" 2019-01-24 12:23:36 +00:00
LongPing Wei
52389e07c7 Merge "Do SetUpDmVerity only once for the same mount point"
am: 24a2c1a70c

Change-Id: I808ffa081b79a1e82652b749fbc227a0c892a01c
2019-01-24 03:29:02 -08:00
Treehugger Robot
24a2c1a70c Merge "Do SetUpDmVerity only once for the same mount point" 2019-01-24 11:06:03 +00:00
Neil Fuller
9ce21c1911 Merge "Add a symlink for the ICU .dat file"
am: 792fd03955

Change-Id: I448e65f17ed1d01a79646ce2b6c5f23293b3fc46
2019-01-24 02:13:34 -08:00
Neil Fuller
792fd03955 Merge "Add a symlink for the ICU .dat file" 2019-01-24 10:02:26 +00:00
Bowgo Tsai
278749d74c libfs_avb: support loading vbmeta structs from any partition
This commits adds the following two public functions into
class AvbHandle, and verified by 'libfs_avb_test':

static AvbUniquePtr LoadAndVerifyVbmeta();  // loads inline vbmeta.
static AvbUniquePtr LoadAndVerifyVbmeta(    // loads offline vbmeta.
    const std::string& partition_name, const std::string& ab_suffix,
    const std::string& ab_other_suffix, const std::string& expected_public_key,
    const HashAlgorithm& hash_algorithm, bool allow_verification_error,
    bool load_chained_vbmeta, bool rollback_protection,
    std::function<std::string(const std::string&)> custom_device_path = nullptr);

The first function LoadAndVerifyVbmeta() will be used to replace Open(),
in a separate CL in the future. Many libfs_avb internal utils are added
into avb_util.cpp as well, which are verified by
'libfs_avb_internal_test'.

Bug: 112103720
Bug: 117960205
Test: atest libfs_avb_test
Test: atest libfs_avb_internal_test
Change-Id: I807b8af0b69c9a4511f6f120e9754aca5442830e
2019-01-24 17:43:25 +08:00
Suren Baghdasaryan
68de855630 Merge changes from topic "revert move sched_policy functions"
am: 7e15ad7ecb

Change-Id: Id58a376e5e0216cf01ce201ed3061d5b8d7e8d5b
2019-01-23 23:13:38 -08:00
Suren Baghdasaryan
88fe832bd1 [automerger skipped] DO NOT MERGE: Revert "Add libprocessgroup into VNDK"
am: c4a02d25a9 -s ours
am skip reason: subject contains skip directive

Change-Id: I9131c17d5fc372db05699f1aca5138fba1237c7a
2019-01-23 23:08:47 -08:00
Suren Baghdasaryan
7e15ad7ecb Merge changes from topic "revert move sched_policy functions"
* changes:
  DO NOT MERGE: Revert "Add libprocessgroup into VNDK"
  DO NOT MERGE: Revert "libcutils: Move sched_policy functions into libprocessgroup"
  DO NOT MERGE: Revert "Add dependencies on libprocessgroup for sched_policy users"
2019-01-24 06:57:55 +00:00
Sandeep Patil
061b71339c meminfo: Add support to track working set with idle page tracking.
Also adds a tool to make use of this if it exists call 'wsstop'

Bug: 111694435
Test: wsstop -d 3 -n 100 1

Change-Id: I50415f0bdc09c09b5b414cf0e4fff8f2907c5823
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-01-23 22:53:46 -08:00
Jiyong Park
59e355c441 Add search paths for asan build
Bug: 123292626
Test: aosp_cf_x86_pasan boots
Change-Id: Ifdc86285cbb2d7eb2b1e39983981e7b81aec59c9
2019-01-24 15:08:06 +09:00
Hridya Valsaraju
91e94c1f19 Merge "Modify mkbootimg.py to support boot image header version 2"
am: ed3f1a584a

Change-Id: I0e68ac2fa5c0fe25e5e479e411586cfd2c2f6a35
2019-01-23 21:38:25 -08:00
Treehugger Robot
ed3f1a584a Merge "Modify mkbootimg.py to support boot image header version 2" 2019-01-24 05:33:53 +00:00
Suren Baghdasaryan
c4a02d25a9 DO NOT MERGE: Revert "Add libprocessgroup into VNDK"
This reverts commit dad4749731.

Reason for revert: Broke AOSP

Change-Id: I019e1226a65b31495984cf47ad471771b4880c45
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-23 20:44:47 -08:00
Suren Baghdasaryan
b5394db682 DO NOT MERGE: Revert "libcutils: Move sched_policy functions into libprocessgroup"
This reverts commit facd40d0e1.

Reason for revert: Broke AOSP

Change-Id: Id333417d4970ced800ab801bddfed880cafa056d
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-23 20:44:09 -08:00
Suren Baghdasaryan
1bef8c550c DO NOT MERGE: Revert "Add dependencies on libprocessgroup for sched_policy users"
This reverts commit 02843339f9.

Reason for revert: Broke AOSP

Change-Id: I62f91c0adf440b5da0a145862b04dd27a7016faf
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-23 20:43:28 -08:00
David Anderson
2e1c5ac5fd Don't error on block size mismatches.
liblp treats the term "block size" ambiguously when it compares the logical
hardware block size with the file system block size (which for all
intents and purposes must be 4K). This warning is thus spurious on
devices with say a 512 logical block size. However, liblp's block size
should at least be a multiple of this, so change the check accordingly.

Bug: 123317012
Test: liblp_test gtest
Change-Id: I0f41f6bae60a512ab8d313e487c28606daa661a6
2019-01-23 19:24:03 -08:00
David Anderson
593109f5ca Merge "Expose IsFilePinned through FiemapWriter."
am: c98b1efd4c

Change-Id: Ib9c9b8cc0d91da4b9354776e7c27972ff6e222cf
2019-01-23 19:22:04 -08:00
David Anderson
c98b1efd4c Merge "Expose IsFilePinned through FiemapWriter." 2019-01-24 03:14:55 +00:00
Justin Yun
2ab4e5a353 Merge "vndk: do not use prebuilt ld.config.<ver>.txt"
am: e72308c6b1

Change-Id: I913b42ed9a3ddffb380b1cce0d15ee352824a4c7
2019-01-23 18:56:00 -08:00
Treehugger Robot
e72308c6b1 Merge "vndk: do not use prebuilt ld.config.<ver>.txt" 2019-01-24 02:47:06 +00:00
Chris Wailes
9abd069f4d Merge "Added a new socket to Zygote init scripts."
am: a8bd23124c

Change-Id: Ibc67ef1c3010e5feba535654d248de9b60f1136b
2019-01-23 17:33:09 -08:00
Treehugger Robot
a8bd23124c Merge "Added a new socket to Zygote init scripts." 2019-01-24 01:11:58 +00:00
LongPing Wei
9f2e84e507 Do SetUpDmVerity only once for the same mount point
SetUpDmVerity won't return true twice for the same partition and it will
leads to failure when verify-boot is enabled on multi-fstab-lines.

Test: make
Change-Id: I5ce35e9c6b2d47fd0f599e36046e1ad2b0a35ffa
2019-01-23 23:30:13 +00:00