OSDN Git Service

android-x86/system-extras.git
5 years agoIntroduce a no-perfprofd module.
Roland Levillain [Fri, 7 Dec 2018 19:33:19 +0000 (19:33 +0000)]
Introduce a no-perfprofd module.

This module creates a dummy binary that can be used to replace
perfprofd on some build products. Its intended (temporary) use is to
regain some space on the system partition of storage-constrained
products such as marlin-eng and sailfish-eng.

Test: lunch marlin-eng && make systemimage
Bug: 113373927
Change-Id: I16ec9029786ce2d136c353fe00a48bdfdd9ad7a0

5 years agoMerge "Merge pie-platform-release (PPRL.181105.017, history only) into master"
Xin Li [Tue, 4 Dec 2018 22:09:27 +0000 (22:09 +0000)]
Merge "Merge pie-platform-release (PPRL.181105.017, history only) into master"

5 years agoMerge "C++17 is the default now."
Treehugger Robot [Tue, 4 Dec 2018 04:39:55 +0000 (04:39 +0000)]
Merge "C++17 is the default now."

5 years agoMerge pie-platform-release (PPRL.181105.017, history only) into master
Xin Li [Mon, 3 Dec 2018 23:34:35 +0000 (15:34 -0800)]
Merge pie-platform-release (PPRL.181105.017, history only) into master

Bug: 118454372
Change-Id: I4b5e4e99649250b4bd65e780925c5fc3001fe710

5 years agoC++17 is the default now.
Elliott Hughes [Mon, 3 Dec 2018 17:06:40 +0000 (09:06 -0800)]
C++17 is the default now.

Test: builds
Change-Id: Icf8522c00e78a7c05a7cb86d052858bb9ebd4afc

5 years agoMerge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release
Bill Yi [Thu, 29 Nov 2018 02:35:04 +0000 (18:35 -0800)]
Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release

Change-Id: I171c9c28f68e3f26e173dca9dc3fe0bb1bd68c95

5 years agoMerge "make_f2fs: use -g android by default"
Jaegeuk Kim [Wed, 28 Nov 2018 00:57:25 +0000 (00:57 +0000)]
Merge "make_f2fs: use -g android by default"

5 years agomake_f2fs: use -g android by default
Jaegeuk Kim [Wed, 21 Nov 2018 19:20:32 +0000 (11:20 -0800)]
make_f2fs: use -g android by default

Bug: 119875846
Change-Id: Iba2c969b46614376a99d882a207489227e7bbfbd
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
6 years agoMerge "Convert blk_alloc_to_base_fs to Android.bp"
Treehugger Robot [Tue, 20 Nov 2018 20:18:01 +0000 (20:18 +0000)]
Merge "Convert blk_alloc_to_base_fs to Android.bp"

6 years agoMerge "Allow empty value in property node"
Wei Wang [Tue, 20 Nov 2018 06:47:31 +0000 (06:47 +0000)]
Merge "Allow empty value in property node"

6 years agoAllow empty value in property node
Wei Wang [Tue, 20 Nov 2018 05:15:00 +0000 (21:15 -0800)]
Allow empty value in property node

Bug: 110166984
Test: libperfmgr_test
Change-Id: I43c03794f525770f090288216d76f7abbd788805

6 years agoConvert blk_alloc_to_base_fs to Android.bp
Dan Willemsen [Tue, 20 Nov 2018 02:32:02 +0000 (18:32 -0800)]
Convert blk_alloc_to_base_fs to Android.bp

See build/soong/README.md for more information.

Also remove a useless HOST_OS check -- HOST_OS will always be either
linux or darwin, we don't support building directly on windows.

Test: m blk_alloc_to_base_fs
Change-Id: I13927de82ff769cf3692b58b9432fb79c856b8d3

6 years agoMerge "lpdump: Show block device and group flags."
David Anderson [Mon, 19 Nov 2018 22:37:33 +0000 (22:37 +0000)]
Merge "lpdump: Show block device and group flags."

6 years agolpdump: Show block device and group flags.
David Anderson [Sat, 17 Nov 2018 05:38:40 +0000 (21:38 -0800)]
lpdump: Show block device and group flags.

Bug: N/A
Test: manual test
Change-Id: I6063fc416eef130e4c29168d9a265cc29f462b38

6 years agoMerge "switch to using android-base/file.h instead of android-base/test_utils.h"
Treehugger Robot [Thu, 15 Nov 2018 20:18:20 +0000 (20:18 +0000)]
Merge "switch to using android-base/file.h instead of android-base/test_utils.h"

6 years agoswitch to using android-base/file.h instead of android-base/test_utils.h
Mark Salyzyn [Mon, 12 Nov 2018 20:58:06 +0000 (12:58 -0800)]
switch to using android-base/file.h instead of android-base/test_utils.h

Test: compile
Bug: 119313545
Change-Id: I664fb32522d01909c603d7b903475c4e9aea9223

6 years agoMerge "Make preloads_copy.sh a module"
Anton Hansson [Wed, 14 Nov 2018 08:59:46 +0000 (08:59 +0000)]
Merge "Make preloads_copy.sh a module"

6 years agoMerge "lpdump: Allow reading local partition images."
Treehugger Robot [Tue, 13 Nov 2018 22:50:47 +0000 (22:50 +0000)]
Merge "lpdump: Allow reading local partition images."

6 years agoMerge "simpleperf: fix a bug setting symfs dir."
Treehugger Robot [Tue, 13 Nov 2018 21:40:25 +0000 (21:40 +0000)]
Merge "simpleperf: fix a bug setting symfs dir."

6 years agolpdump: Allow reading local partition images.
David Anderson [Tue, 13 Nov 2018 19:39:19 +0000 (11:39 -0800)]
lpdump: Allow reading local partition images.

PartitionOpener expects a partition name, but for debugging, lpdump
should be able to open a local file too.

Bug: N/A
Test: manual test
Change-Id: I85f6ce7f3508cf4343d89ea368309a6e960af938

6 years agosimpleperf: fix a bug setting symfs dir.
Yabin Cui [Tue, 13 Nov 2018 19:09:20 +0000 (11:09 -0800)]
simpleperf: fix a bug setting symfs dir.

Bug: 119438870
Test: run simpleperf_unit_test.
Test: run simpleperf manually.

Change-Id: I2f7ca659dc3a9833650f326ff5560fef44e769a5

6 years agoMake preloads_copy.sh a module
Anton Hansson [Tue, 13 Nov 2018 15:04:41 +0000 (15:04 +0000)]
Make preloads_copy.sh a module

Make this new module required by cppreopts.sh. This allows removing
the duplicated PRODUCT_COPY_FILES directive for a bunch of devices
that import both.

Also fix some comments in the script.

Bug: 80508492
Test: lunch aosp_blueline-userdebug; m
Change-Id: I804fc17c43274683716a8c9bb3360ac624a80882

6 years agoMerge "lpmake: Allow writing split super images."
David Anderson [Fri, 9 Nov 2018 01:26:17 +0000 (01:26 +0000)]
Merge "lpmake: Allow writing split super images."

6 years agoMerge "partition_tools: Update for auto-slot-suffixing."
David Anderson [Thu, 8 Nov 2018 22:13:51 +0000 (22:13 +0000)]
Merge "partition_tools: Update for auto-slot-suffixing."

6 years agolpmake: Allow writing split super images.
David Anderson [Thu, 8 Nov 2018 04:24:17 +0000 (20:24 -0800)]
lpmake: Allow writing split super images.

To use this mode, the build must be a retrofit build and --output should
be a folder rather than a file.

This also fixes a bug in lpdump where it refuses to dump full super.img
images on the host.

Bug: 118887112
Test: manual test
Change-Id: I3318684fbea6fe67bfa171001beea3a5c560fbab

6 years agopartition_tools: Update for auto-slot-suffixing.
David Anderson [Thu, 8 Nov 2018 02:27:14 +0000 (18:27 -0800)]
partition_tools: Update for auto-slot-suffixing.

lpmake: Add --auto-slot-suffixing for retrofit builds.
lpdump: Show the slot-suffixed flag when dumping super_empty.

Bug: 116802789
Test: manual test
Change-Id: I65e1d4d6922d117b9dcdbfbf9ced045c97549e59

6 years agoMerge "Fix logging output"
Wei Wang [Mon, 5 Nov 2018 21:57:19 +0000 (21:57 +0000)]
Merge "Fix logging output"

6 years agoFix logging output
Wei Wang [Mon, 5 Nov 2018 18:18:59 +0000 (10:18 -0800)]
Fix logging output

Test: Build
Change-Id: Idcb86b511412137e4ef14cae9c17aa36fd2dbbc8

6 years agoMerge "Mark libverity_tree as recovery_available for update_engine_sideload"
Dan Willemsen [Fri, 2 Nov 2018 00:51:49 +0000 (00:51 +0000)]
Merge "Mark libverity_tree as recovery_available for update_engine_sideload"

6 years agoMerge "simpleperf: fix simpleperf_unit_test on windows."
Yabin Cui [Wed, 31 Oct 2018 18:42:33 +0000 (18:42 +0000)]
Merge "simpleperf: fix simpleperf_unit_test on windows."

6 years agosimpleperf: fix simpleperf_unit_test on windows.
Yabin Cui [Mon, 29 Oct 2018 21:23:48 +0000 (14:23 -0700)]
simpleperf: fix simpleperf_unit_test on windows.

Fix test failures caused by path separator and newline character.

Bug: 117568547
Test: run simpleperf_unit_test on windows.
Change-Id: I0522268368a2288893ecd52f505382c512d1d7c9

6 years agoMerge "partition_tools: Update for multiple block device support."
David Anderson [Mon, 29 Oct 2018 20:57:06 +0000 (20:57 +0000)]
Merge "partition_tools: Update for multiple block device support."

6 years agoMerge changes from topic "e4crypt_to_fscrypt"
Eric Biggers [Mon, 29 Oct 2018 17:19:39 +0000 (17:19 +0000)]
Merge changes from topic "e4crypt_to_fscrypt"

* changes:
  libfscrypt: get the fscrypt kernel API declarations from linux/fs.h
  Refactor "ext4 encryption" code into libfscrypt

6 years agopartition_tools: Update for multiple block device support.
David Anderson [Wed, 24 Oct 2018 00:52:57 +0000 (17:52 -0700)]
partition_tools: Update for multiple block device support.

lpmake: Support multiple block devices in super. This adds a --device
command that can be used to span super across multiple block devices.
Example:

    lpmake --device "system_a:10240000:0:0"
           --device "vendor_a:5120000:0:0"
           --device "product_a:2560000:0:0"
           ...

lpdump: Display the block device for each extent.

Bug: 116802789
Test: manual test of lpmake
Test: lpdump /dev/block/by-name/super
Change-Id: I2e0ec54daf3b4fde04115ea646a7622426f67496

6 years agolibfscrypt: get the fscrypt kernel API declarations from linux/fs.h
Eric Biggers [Tue, 23 Oct 2018 20:39:07 +0000 (13:39 -0700)]
libfscrypt: get the fscrypt kernel API declarations from linux/fs.h

bionic now has linux/fs.h from the 4.14 kernel, which has the fscrypt
kernel API declarations.  Replace the manual declarations in libfscrypt,
except for the mode numbers which are not supported by the upstream
kernel.

Test: built, booted device with f2fs encryption
Change-Id: I6c663813828e3e0639d9be4298bff2bd4ec36c66

6 years agoRefactor "ext4 encryption" code into libfscrypt
Eric Biggers [Tue, 23 Oct 2018 20:39:07 +0000 (13:39 -0700)]
Refactor "ext4 encryption" code into libfscrypt

File-based encryption related code no longer belongs in ext4_utils, as
it is now used on both ext4 and f2fs, since both filesystems share the
same kernel API for encryption.  Refactor it into its own library,
libfscrypt.

Note that the keyring is renamed from "e4crypt" to "fscrypt", which is
technically a user-visible change, but as far as I know nothing depends
on it other than vold which is being updated too.

Test: built, booted device with f2fs encryption
Change-Id: I3c302564262412a5d5e672bd213e7cfada5f49cc

6 years agoMerge "Fix variable unpacking mismatch in bootanalyze.py"
Treehugger Robot [Thu, 25 Oct 2018 23:22:20 +0000 (23:22 +0000)]
Merge "Fix variable unpacking mismatch in bootanalyze.py"

6 years agoFix variable unpacking mismatch in bootanalyze.py
Tom Cherry [Thu, 25 Oct 2018 21:22:15 +0000 (14:22 -0700)]
Fix variable unpacking mismatch in bootanalyze.py

Fix for the below mismatch that I've seen in recent boot time runs

BootAnimEnd time or BootComplete-kernel not captured in both log,
cannot get time diff
    main()
  File "system/extras/boottime_tools/bootanalyze/bootanalyze.py", line 123, in main
    error_time, components_to_monitor)
ValueError: need more than 4 values to unpack

Test: no unpack mismatch in recent runs
Change-Id: I4d39453964b9b4036d6c0aaff6cac1b030865445

6 years agoMerge "partition_tools: Update lpdump for metadata format changes."
David Anderson [Thu, 25 Oct 2018 18:54:55 +0000 (18:54 +0000)]
Merge "partition_tools: Update lpdump for metadata format changes."

6 years agoMerge pie-platform-release to aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 21:48:18 +0000 (14:48 -0700)]
Merge pie-platform-release to aosp-master - DO NOT MERGE

Change-Id: Id7b62baaf4af7826840284c5ff4c7a96046660d0

6 years agoMerge "libpagemap: pm_map: skip pages that are neither present nor swapped."
Treehugger Robot [Wed, 24 Oct 2018 18:19:19 +0000 (18:19 +0000)]
Merge "libpagemap: pm_map: skip pages that are neither present nor swapped."

6 years agoMerge "Add preloads_copy script"
Anton Hansson [Wed, 24 Oct 2018 17:09:11 +0000 (17:09 +0000)]
Merge "Add preloads_copy script"

6 years agoMerge "libperfmgr: update to c++17 and add tidy rule"
Wei Wang [Wed, 24 Oct 2018 15:04:46 +0000 (15:04 +0000)]
Merge "libperfmgr: update to c++17 and add tidy rule"

6 years agoAdd preloads_copy script
Anton Hansson [Tue, 23 Oct 2018 15:26:32 +0000 (16:26 +0100)]
Add preloads_copy script

Copied from device/google/crosshatch, to serve as the canonical
location for this script to be shared between devices.

Bug: 80508492
Test: make
Change-Id: I567c785af0a690fbbba3df0553922735b96f7390

6 years agolibperfmgr: update to c++17 and add tidy rule
Wei Wang [Wed, 24 Oct 2018 05:44:31 +0000 (22:44 -0700)]
libperfmgr: update to c++17 and add tidy rule

Test: libperfmgr_test
Change-Id: If8162ebc1eb9489429e7f9792b3422f3ae46093b

6 years agolibpagemap: pm_map: skip pages that are neither present nor swapped.
Sandeep Patil [Tue, 9 Oct 2018 20:58:01 +0000 (13:58 -0700)]
libpagemap: pm_map: skip pages that are neither present nor swapped.

The pm_map_workingset() code needlessly iterates through all the pages
in the map regardless of whether they are actually present or not. Fix
that by skipping the page if its not swapped AND not present.

Bug: 111694435
Test: procmem -h -w 1

Change-Id: I8f16e8c516a5272ebeaa537c07b08ae9f41b73ca
Signed-off-by: Sandeep Patil <sspatil@google.com>
6 years agoMark libverity_tree as recovery_available for update_engine_sideload
Dan Willemsen [Tue, 23 Oct 2018 21:15:23 +0000 (14:15 -0700)]
Mark libverity_tree as recovery_available for update_engine_sideload

Test: build update_engine_sideload
Change-Id: I9a77e5e45f5acb0e7e3be0b6b080997c2b110691

6 years agoMerge "libperfmgr: clean up log format"
Treehugger Robot [Tue, 23 Oct 2018 00:52:13 +0000 (00:52 +0000)]
Merge "libperfmgr: clean up log format"

6 years agolibperfmgr: clean up log format
Wei Wang [Mon, 22 Oct 2018 22:19:46 +0000 (15:19 -0700)]
libperfmgr: clean up log format

Test: Build and libperfmgr_test passed
Change-Id: Ie0bf6c49f1d3f2660729b4fea9bb8aab30eea154

6 years agopartition_tools: Update lpdump for metadata format changes.
David Anderson [Mon, 22 Oct 2018 19:19:27 +0000 (12:19 -0700)]
partition_tools: Update lpdump for metadata format changes.

Bug: 116802789
Test: lpdump super_empty.img
Change-Id: I62cd28333413897e30a4673b7f97490c984f6611

6 years agoMerge "HintManager: Fix verbose message output"
Treehugger Robot [Mon, 22 Oct 2018 18:38:27 +0000 (18:38 +0000)]
Merge "HintManager: Fix verbose message output"

6 years agoHintManager: Fix verbose message output
Greg Kaiser [Mon, 22 Oct 2018 13:53:09 +0000 (06:53 -0700)]
HintManager: Fix verbose message output

The << bitshift operator has a higher precedence than the
ternary ?: conditional operator.  Thus, we need to use parentheses
to make sure we get "true" or "false" output as desired.

Test: TreeHugger
Change-Id: Iaa6e3e36e4944aa535b10490624332efba8f8a2f

6 years agoMerge "libperfmgr: Add a new type of node to manage property"
Wei Wang [Sun, 21 Oct 2018 03:19:21 +0000 (03:19 +0000)]
Merge "libperfmgr: Add a new type of node to manage property"

6 years agolibperfmgr: Add a new type of node to manage property
Wei Wang [Sat, 20 Oct 2018 04:57:04 +0000 (21:57 -0700)]
libperfmgr: Add a new type of node to manage property

PowerHAL sometimes need set properties, adding a new type of node to
support this usage.

Change-Id: I0c04df831d10f16a37f6ae5ae234a9ef34fc5f54
Merged-In: I18a4a50993e262c59460dc5e6cbace22b2b50047
Fixes: 116731391
Bug: 110166984
Test: Add new unit tests and libperfmgr_test passing

6 years agoMerge "libfec: Drop the extern "C" wrapping."
Tao Bao [Thu, 18 Oct 2018 23:33:15 +0000 (23:33 +0000)]
Merge "libfec: Drop the extern "C" wrapping."

6 years agolibfec: Drop the extern "C" wrapping.
Tao Bao [Thu, 18 Oct 2018 22:14:26 +0000 (15:14 -0700)]
libfec: Drop the extern "C" wrapping.

squashfs_utils.h does it in its header.

Test: `mmma -j system/extra/libfec`
Change-Id: I8cc4b5e281fe5649cbb92021285e05e8a5f28ebf

6 years agoMerge "simpleperf: handle memfds created by memfd_create."
Treehugger Robot [Thu, 18 Oct 2018 03:25:39 +0000 (03:25 +0000)]
Merge "simpleperf: handle memfds created by memfd_create."

6 years agosimpleperf: handle memfds created by memfd_create.
Yabin Cui [Thu, 18 Oct 2018 00:19:56 +0000 (17:19 -0700)]
simpleperf: handle memfds created by memfd_create.

memfds can be created by ART to store jit code. Map records of them
can override map records of jitted methods. So omit them.

Bug: none
Test: run simpleperf_unit_test.
Test: run simpleperf manually.
Change-Id: Ie800ecfea8f0c0d7de8cee452fb1553c30de22e1

6 years agoMerge "partition_tools: Update lpdump to build against liblp changes."
Treehugger Robot [Tue, 16 Oct 2018 23:41:42 +0000 (23:41 +0000)]
Merge "partition_tools: Update lpdump to build against liblp changes."

6 years agoMerge "Revert "simpleperf: enforce clockid support in Android Q.""
Treehugger Robot [Tue, 16 Oct 2018 02:58:57 +0000 (02:58 +0000)]
Merge "Revert "simpleperf: enforce clockid support in Android Q.""

6 years agoRevert "simpleperf: enforce clockid support in Android Q."
Yabin Cui [Mon, 15 Oct 2018 23:36:16 +0000 (23:36 +0000)]
Revert "simpleperf: enforce clockid support in Android Q."

This reverts commit 4bf4bfaafdfb264ded7f4f9aeb6ad874dbe179d5.

Reason for revert: it requires new kernel features in upgrading devices.

Bug: 115760286
Change-Id: I391562560e5f1ad93f2cce7f784eae1108e680a9

6 years agopartition_tools: Update lpdump to build against liblp changes.
David Anderson [Fri, 12 Oct 2018 00:52:24 +0000 (17:52 -0700)]
partition_tools: Update lpdump to build against liblp changes.

Bug: 116802789
Test: mm lpdump
Change-Id: If559c07e403fdeddc3a44e2cad7e5435bdd71ca6

6 years agoMerge PPR2.181005.003 from pi-release-2 into pi-platform-release.
Bill Rassieur [Wed, 10 Oct 2018 17:32:39 +0000 (17:32 +0000)]
Merge PPR2.181005.003 from pi-release-2 into pi-platform-release.

Change-Id: I33214d649d8c198193394f9a1551c17485ce1f68
BUG: 117431430

6 years agoMerge "Perfprofd: Introduce libsimpleperf_dex_read and read vdex files"
Treehugger Robot [Fri, 5 Oct 2018 20:26:26 +0000 (20:26 +0000)]
Merge "Perfprofd: Introduce libsimpleperf_dex_read and read vdex files"

6 years agoMerge "Add noexcept to move constructors and assignment operators."
Treehugger Robot [Fri, 5 Oct 2018 17:52:19 +0000 (17:52 +0000)]
Merge "Add noexcept to move constructors and assignment operators."

6 years agoAdd noexcept to move constructors and assignment operators.
Chih-Hung Hsieh [Tue, 25 Sep 2018 21:30:16 +0000 (14:30 -0700)]
Add noexcept to move constructors and assignment operators.

Bug: 116614593
Test: build with WITH_TIDY=1
Change-Id: I92ae7348e51e0610cef54b80087189bb1fe5b12c

6 years agoMerge "Simpleperf: Use defaults to pass static libs"
Andreas Gampe [Fri, 5 Oct 2018 00:01:44 +0000 (00:01 +0000)]
Merge "Simpleperf: Use defaults to pass static libs"

6 years agoMerge "Add new parameter for creation of MapInfo object."
Christopher Ferris [Thu, 4 Oct 2018 22:38:26 +0000 (22:38 +0000)]
Merge "Add new parameter for creation of MapInfo object."

6 years agoMerge "Simpleperf: Add enh to OWNERS"
Treehugger Robot [Thu, 4 Oct 2018 18:46:14 +0000 (18:46 +0000)]
Merge "Simpleperf: Add enh to OWNERS"

6 years agoMerge "partition_tools: Remove references to partition guid."
David Anderson [Thu, 4 Oct 2018 18:20:47 +0000 (18:20 +0000)]
Merge "partition_tools: Remove references to partition guid."

6 years agoSimpleperf: Add enh to OWNERS
Andreas Gampe [Thu, 4 Oct 2018 17:29:49 +0000 (10:29 -0700)]
Simpleperf: Add enh to OWNERS

Change-Id: I9935bee245c05c09f52bd903b14c6879dd96477d
Exempt-From-Owner-Approval: Adding owner
Test: N/A

6 years agopartition_tools: Remove references to partition guid.
David Anderson [Thu, 4 Oct 2018 15:38:09 +0000 (08:38 -0700)]
partition_tools: Remove references to partition guid.

Bug: 117229984
Test: builds with PRODUCT_USE_LOGICAL_PARTITIONS=true
Change-Id: Ibba49f7a066fd190f8431253302f1437f07ba6dd

6 years agoMerge "Add /data/apex to directories that don't need to be encrypted."
Martijn Coenen [Thu, 4 Oct 2018 07:08:54 +0000 (07:08 +0000)]
Merge "Add /data/apex to directories that don't need to be encrypted."

6 years agoAdd new parameter for creation of MapInfo object.
Christopher Ferris [Wed, 3 Oct 2018 21:14:36 +0000 (14:14 -0700)]
Add new parameter for creation of MapInfo object.

Bug: 109657296

Test: Unit tests pass.
Change-Id: Ifa7ac689467b10728bfbbbfae0c6f78b20b78cda

6 years agoMerge "partition_tools: Add support for partition groups."
Treehugger Robot [Wed, 3 Oct 2018 20:33:45 +0000 (20:33 +0000)]
Merge "partition_tools: Add support for partition groups."

6 years agoAdd /data/apex to directories that don't need to be encrypted.
Martijn Coenen [Wed, 3 Oct 2018 14:56:15 +0000 (16:56 +0200)]
Add /data/apex to directories that don't need to be encrypted.

There's no user data there, just code.

Bug: 112455435
Test: Using an APEX with Direct I/O in /data/apex works again
Change-Id: I5e5557445ea5d638d2dfc4db7d782ee2da207bc1

6 years agopartition_tools: Add support for partition groups.
David Anderson [Wed, 3 Oct 2018 01:50:12 +0000 (18:50 -0700)]
partition_tools: Add support for partition groups.

lpmake: Add a new -g/--groups parameter to add partition groups. The
syntax is name:size. In addition, a fifth argument can be added to
-p/--partition, to specify a group for that partition. Example:

  lpmake --group google:102400000 \
         --partition system:UUID:readonly:4096:google

In addition, lpdump will now display the groups table and group
assignments.

Bug: 116817738
Test: lpmake with --groups
      lpdump new partition table

Change-Id: Ic1eb995f3bcf5abc7be180ac03c8ba4b82a10045

6 years agoMerge "verity: Support partial blocks in Update()."
Sen Jiang [Wed, 3 Oct 2018 00:16:31 +0000 (00:16 +0000)]
Merge "verity: Support partial blocks in Update()."

6 years agoverity: Support partial blocks in Update().
Sen Jiang [Tue, 2 Oct 2018 01:07:54 +0000 (18:07 -0700)]
verity: Support partial blocks in Update().

In update_engine we get data from a callback, usually this will be a
multiple of the block size, but that's not guaranteed.

Bug: 28171891
Test: build_verity_tree_test
Change-Id: I2fdf40e6e3750a86d409885917d3b5aeb77643d1

6 years agoPerfprofd: Introduce libsimpleperf_dex_read and read vdex files
Andreas Gampe [Wed, 19 Sep 2018 02:25:24 +0000 (19:25 -0700)]
Perfprofd: Introduce libsimpleperf_dex_read and read vdex files

Add libsimpleperf_dex_read module to allow perfprofd to read and
extract symbols from dex files.

Use libart to read vdex files for their dex file offsets. Use
libsimpleperf_dex_read to find symbols.

Bug: 73175642
Test: mmma system/extras/perfprofd
Change-Id: Ibe67087692f7ede4caf2d3b98a1cbfad570baa7c

6 years agoSimpleperf: Use defaults to pass static libs
Andreas Gampe [Mon, 17 Sep 2018 20:33:02 +0000 (13:33 -0700)]
Simpleperf: Use defaults to pass static libs

Refactor the blueprint file to pass required static-library dependencies
via a defaults object instead of linking them whole-static-libs. This
will avoid double linking.

Bug: 73175642
Test: mmma system/extras/simpleperf
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I596477748284dfa48dfc1a2202613f7a20a429ee

6 years agoMerge "verity: Add HashTreeBuilder::CheckHashTree()."
Sen Jiang [Fri, 28 Sep 2018 18:59:36 +0000 (18:59 +0000)]
Merge "verity: Add HashTreeBuilder::CheckHashTree()."

6 years agoMerge "Perfprofd: Make the service non-oneshot"
Treehugger Robot [Tue, 25 Sep 2018 03:09:50 +0000 (03:09 +0000)]
Merge "Perfprofd: Make the service non-oneshot"

6 years agoMerge "Fix clang-tidy performance warnings in system/extra."
Treehugger Robot [Tue, 18 Sep 2018 01:35:33 +0000 (01:35 +0000)]
Merge "Fix clang-tidy performance warnings in system/extra."

6 years agoFix clang-tidy performance warnings in system/extra.
Chih-Hung Hsieh [Mon, 17 Sep 2018 22:23:47 +0000 (15:23 -0700)]
Fix clang-tidy performance warnings in system/extra.

* Use more efficient overloaded string methods.

Bug: 30411878
Test: build with WITH_TIDY=1
Change-Id: If1a2931cab7f70e4a4bd5fcc06b2ae0260169cd8

6 years agoMerge "Remove the mkuserimg_mke2fs.sh"
Tianjie Xu [Thu, 13 Sep 2018 22:43:18 +0000 (22:43 +0000)]
Merge "Remove the mkuserimg_mke2fs.sh"

6 years agoRemove the mkuserimg_mke2fs.sh
Tianjie Xu [Mon, 10 Sep 2018 21:18:56 +0000 (14:18 -0700)]
Remove the mkuserimg_mke2fs.sh

The shell script is not used as we have switched to the python binary.

Test: mma
Bug: 112555072
Change-Id: I8849fc91a6d62b58a01b29544f2bc5b24c7df89e

6 years agoMerge "bootanalyze: Add SysUI timing"
Treehugger Robot [Sat, 8 Sep 2018 04:29:18 +0000 (04:29 +0000)]
Merge "bootanalyze: Add SysUI timing"

6 years agoMerge "libperfmgr: add additional OWNERS and cpplint config"
Treehugger Robot [Sat, 8 Sep 2018 04:17:21 +0000 (04:17 +0000)]
Merge "libperfmgr: add additional OWNERS and cpplint config"

6 years agolibperfmgr: add additional OWNERS and cpplint config
Wei Wang [Fri, 7 Sep 2018 21:46:10 +0000 (14:46 -0700)]
libperfmgr: add additional OWNERS and cpplint config

Test: build
Change-Id: Iede2faacfe24e74b817d9c159566998a71d36b7b

6 years agobootanalyze: Add SysUI timing
Wei Wang [Fri, 7 Sep 2018 21:46:10 +0000 (14:46 -0700)]
bootanalyze: Add SysUI timing

Bug: 112049386
Test: bootanalyze.py -r -c system/extras/boottime_tools/bootanalyze/config.yaml -n 10 -g
Change-Id: I0a2fcbaaebc3ebbfec399fd3c8a1d977b95f96bb

6 years agoverity: Add HashTreeBuilder::CheckHashTree().
Sen Jiang [Tue, 4 Sep 2018 21:16:06 +0000 (14:16 -0700)]
verity: Add HashTreeBuilder::CheckHashTree().

Check the built hash tree against a given hash tree in a buffer, used
to verify the hash tree when generating OTA.

Bug: 28171891
Test: generate a payload with verity hash tree
Change-Id: I60d6c3657343438b7720727874ab849e5970e576

6 years agoMerge changes I10561d93,I05d248a7
Treehugger Robot [Tue, 4 Sep 2018 20:57:30 +0000 (20:57 +0000)]
Merge changes I10561d93,I05d248a7

* changes:
  Perfprofd: Add TEST_MAPPING
  Perfprofd: Disable tests when lacking arch_perfmon

6 years agoMerge "perfprofd: use getHealthInfo for get_charging"
Treehugger Robot [Sat, 1 Sep 2018 17:27:23 +0000 (17:27 +0000)]
Merge "perfprofd: use getHealthInfo for get_charging"

6 years agoMerge "Remove ashmem from system/extras"
Joel Fernandes [Thu, 30 Aug 2018 19:30:58 +0000 (19:30 +0000)]
Merge "Remove ashmem from system/extras"

6 years agoMerge "perfprofd: add env to disable change of perf_event_paranoid."
Yabin Cui [Thu, 30 Aug 2018 17:07:56 +0000 (17:07 +0000)]
Merge "perfprofd: add env to disable change of perf_event_paranoid."

6 years agoperfprofd: add env to disable change of perf_event_paranoid.
Yabin Cui [Wed, 29 Aug 2018 21:54:19 +0000 (14:54 -0700)]
perfprofd: add env to disable change of perf_event_paranoid.

This is to avoid a cts test failure (which checks the value of
perf_event_paranoid) while perfprofd is running.

Bug: 111855759
Test: run perfprofd_test and perf_event_paranoid isn't changed.
Change-Id: Ifa610a21b560d0eb536cb76914b116bd1e769634

6 years agoPerfprofd: Add TEST_MAPPING
Andreas Gampe [Thu, 30 Aug 2018 15:26:28 +0000 (08:26 -0700)]
Perfprofd: Add TEST_MAPPING

Bug: 73175642
Test: pushd system/extras/perfprofd ; atest ; popd
Change-Id: I10561d93b8c5c01c0bc3e28c1a08d947045905d3

6 years agoPerfprofd: Disable tests when lacking arch_perfmon
Andreas Gampe [Wed, 29 Aug 2018 01:17:10 +0000 (18:17 -0700)]
Perfprofd: Disable tests when lacking arch_perfmon

Under certain circumstances perf won't be available. As we want to
run some tests, anyways, disable the ones that need perf.

Bug: 113359952
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I05d248a7952a5939f9b74729a5809469abeaaa66

6 years agoMerge "simpleperf: sync JIT debug info with records."
Yabin Cui [Thu, 30 Aug 2018 00:20:46 +0000 (00:20 +0000)]
Merge "simpleperf: sync JIT debug info with records."