OSDN Git Service

android-x86/system-extras.git
5 years agoMerge "simpleperf: make atest happy."
Yabin Cui [Fri, 1 Feb 2019 23:14:46 +0000 (23:14 +0000)]
Merge "simpleperf: make atest happy."

5 years agosimpleperf: make atest happy.
Yabin Cui [Fri, 1 Feb 2019 23:13:06 +0000 (15:13 -0800)]
simpleperf: make atest happy.

Bug: none
Test: run atest system/extras/simpleperf.
Change-Id: I21d69dcda8293f66e469aa5320099c6bdfa872e5

5 years agoMerge "simpleperf: change the way running cts test."
Treehugger Robot [Fri, 1 Feb 2019 00:20:53 +0000 (00:20 +0000)]
Merge "simpleperf: change the way running cts test."

5 years agosimpleperf: change the way running cts test.
Yabin Cui [Wed, 30 Jan 2019 01:06:42 +0000 (17:06 -0800)]
simpleperf: change the way running cts test.

To test profiling debuggable apps, simpleperf cts test sets default
app package name for all tests. But it has below problems:
1. It is not explicit in the code of each test, thus harder to maintain.
2. It doesn't profile an app process, thus can't test profiling Java code.
3. Some tests are not suitable to run with app package name and have to
   disable app package name manually. This will be true for more tests
   if testing profileable apps.

So this CL changes the way running cts tests:
1. Remove default app package name, so all tests by default run in
   shell context.
2. Add explict tests to test profiling debuggable apps and profileable
   apps.

Bug: 118835348
Test: run CtsSimpleperfTestCases.

Change-Id: I7eacaf0dc66357dbb339a6e6d4c5ca694afa2619

5 years agoMerge "inferno: add --system_wide option."
Yabin Cui [Thu, 31 Jan 2019 22:27:29 +0000 (22:27 +0000)]
Merge "inferno: add --system_wide option."

5 years agoMerge "simpleperf: fix mac build."
Yabin Cui [Thu, 31 Jan 2019 20:27:32 +0000 (20:27 +0000)]
Merge "simpleperf: fix mac build."

5 years agosimpleperf: fix mac build.
Yabin Cui [Thu, 31 Jan 2019 19:52:19 +0000 (11:52 -0800)]
simpleperf: fix mac build.

Bug: none
Test: build simpleperf on mac.
Change-Id: I9d839fc9779321aa5007e745d4aeaba48bb9fc53

5 years agoMerge "Add android::fs_mgr namespace for new Fstab code"
Tom Cherry [Thu, 31 Jan 2019 19:35:54 +0000 (19:35 +0000)]
Merge "Add android::fs_mgr namespace for new Fstab code"

5 years agoAdd android::fs_mgr namespace for new Fstab code
Tom Cherry [Wed, 30 Jan 2019 22:35:10 +0000 (14:35 -0800)]
Add android::fs_mgr namespace for new Fstab code

Test: treehugger

Change-Id: I6ed1afb59eed03ca5a7d06a697ac8b04e74f494d

5 years agoMerge "simpleperf: fix mac build."
Treehugger Robot [Wed, 30 Jan 2019 21:04:13 +0000 (21:04 +0000)]
Merge "simpleperf: fix mac build."

5 years agoMerge "libpagemap: Remove it."
Treehugger Robot [Wed, 30 Jan 2019 19:19:26 +0000 (19:19 +0000)]
Merge "libpagemap: Remove it."

5 years agosimpleperf: fix mac build.
Yabin Cui [Wed, 30 Jan 2019 19:03:40 +0000 (11:03 -0800)]
simpleperf: fix mac build.

Bug: none
Test: build.
Change-Id: I297e8cf9cbd55fd54b64402fd259bfe0b19bffff

5 years agoMerge "Move to new Fstab class"
Tom Cherry [Wed, 30 Jan 2019 17:28:08 +0000 (17:28 +0000)]
Merge "Move to new Fstab class"

5 years agoMove to new Fstab class
Tom Cherry [Wed, 30 Jan 2019 01:54:07 +0000 (17:54 -0800)]
Move to new Fstab class

Test: treehugger
Change-Id: I1873022abde51b71b49e8d89bdaada044530987a

5 years agoinferno: add --system_wide option.
Yabin Cui [Wed, 30 Jan 2019 01:21:21 +0000 (17:21 -0800)]
inferno: add --system_wide option.

Bug: 123587305
Test: run "inferno.sh --system_wide -t 10".
Change-Id: I0240e9a341c9f05298e819e155da426cebd4a810

5 years agoMerge "simpleperf: update test record_cmd.no_dump_symbols."
Yabin Cui [Wed, 30 Jan 2019 01:05:12 +0000 (01:05 +0000)]
Merge "simpleperf: update test record_cmd.no_dump_symbols."

5 years agolibpagemap: Remove it.
Sandeep Patil [Tue, 29 Jan 2019 21:43:36 +0000 (13:43 -0800)]
libpagemap: Remove it.

Bug: 113035067
Test: lunch aosp_blueline-userdebug; m -j

Change-Id: Id3b99876fea86d9fb74877d7d238241b718fc4dc
Signed-off-by: Sandeep Patil <sspatil@google.com>
5 years agoMerge "simpleperf: remove code not in use."
Yabin Cui [Fri, 25 Jan 2019 21:48:45 +0000 (21:48 +0000)]
Merge "simpleperf: remove code not in use."

5 years agosimpleperf: update test record_cmd.no_dump_symbols.
Yabin Cui [Fri, 25 Jan 2019 20:08:02 +0000 (12:08 -0800)]
simpleperf: update test record_cmd.no_dump_symbols.

Bug: none
Test: run simpleperf_unit_test.
Change-Id: I1c068971f5d250603f57a866235e134dfb29e8f2

5 years agosimpleperf: remove code not in use.
Yabin Cui [Fri, 25 Jan 2019 18:47:25 +0000 (10:47 -0800)]
simpleperf: remove code not in use.

Bug: none
Test: run simpleperf_unit_test.

Change-Id: I012e84713988adba83cb5ce81e809e792eff27c3

5 years agoMerge "simpleperf: move to Android.bp."
Yabin Cui [Fri, 25 Jan 2019 18:39:49 +0000 (18:39 +0000)]
Merge "simpleperf: move to Android.bp."

5 years agoMerge "boot_signer should support boot header version 2"
Treehugger Robot [Fri, 25 Jan 2019 16:56:26 +0000 (16:56 +0000)]
Merge "boot_signer should support boot header version 2"

5 years agoboot_signer should support boot header version 2
Hridya Valsaraju [Fri, 25 Jan 2019 02:38:07 +0000 (18:38 -0800)]
boot_signer should support boot header version 2

Boot Image header version two modifies the boot image
format to include DTB.

Test: make
Bug: 111136242

Change-Id: Icfc1fce695d0e19ff15a1d74afd00b9b88cccf7e

5 years agosimpleperf: move to Android.bp.
Yabin Cui [Tue, 22 Jan 2019 18:54:13 +0000 (10:54 -0800)]
simpleperf: move to Android.bp.

Bug: 72403367
Test: build
Test: run simpleperf_unit_test.
Test: run CtsSimpleperfTestCases.

Change-Id: I384189a7f58b65a22f0916d51a7d3a2a45cafa82

5 years agoMerge "Remove direct dependency on the internal libdexfile library."
Yabin Cui [Thu, 24 Jan 2019 20:07:52 +0000 (20:07 +0000)]
Merge "Remove direct dependency on the internal libdexfile library."

5 years agoMerge "simpleperf: Use simpleperf_app_runner to profile profileable apps."
Yabin Cui [Thu, 24 Jan 2019 18:39:13 +0000 (18:39 +0000)]
Merge "simpleperf: Use simpleperf_app_runner to profile profileable apps."

5 years agoRemove direct dependency on the internal libdexfile library.
Martin Stjernholm [Thu, 24 Jan 2019 15:38:49 +0000 (15:38 +0000)]
Remove direct dependency on the internal libdexfile library.

It breaks Runtime APEX packaging, and for shared libs it's pulled in
indirectly through libdexfile_external anyway.

Test: mmma system/extras/simpleperf
Bug: 119632407
Bug: 72403367
Change-Id: Ie5a130280b3c36190d0a9778873b17e256d7a0a5

5 years agosimpleperf: Use simpleperf_app_runner to profile profileable apps.
Yabin Cui [Thu, 10 Jan 2019 23:35:39 +0000 (15:35 -0800)]
simpleperf: Use simpleperf_app_runner to profile profileable apps.

Simpleperf uses run-as to run in apps' context to profile debuggable
apps. In Android Q, we want to profile <profileable shell="true"> apps.
To support that, do below changes:
1. Add simpleperf_app_runner, which is similar to run-as, but is limited
to only run simpleperf commands in profileable apps.
2. Add code using simpleperf_app_runner inside simpleperf, so it doesn't
change current interface of using simpleperf.

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

Change-Id: I85a8e3c80fe0e3ccdee97de38be968cbccd1d263

5 years agoMerge "system/extras: Delete ksmutils"
Treehugger Robot [Tue, 22 Jan 2019 15:58:51 +0000 (15:58 +0000)]
Merge "system/extras: Delete ksmutils"

5 years agoMerge "ext4.h: add EXT4_FEATURE_RO_COMPAT_VERITY"
Treehugger Robot [Tue, 22 Jan 2019 06:39:59 +0000 (06:39 +0000)]
Merge "ext4.h: add EXT4_FEATURE_RO_COMPAT_VERITY"

5 years agoext4.h: add EXT4_FEATURE_RO_COMPAT_VERITY
Leo Liou [Tue, 15 Jan 2019 12:28:12 +0000 (20:28 +0800)]
ext4.h: add EXT4_FEATURE_RO_COMPAT_VERITY

Add VERITY constant to ext4_utils.

Bug: 117437571
Test: bootable for phone projects
Change-Id: I77cab3594223df860345266fdbf568c02734c1a8

5 years agosystem/extras: Delete ksmutils
Sandeep Patil [Mon, 21 Jan 2019 22:37:35 +0000 (14:37 -0800)]
system/extras: Delete ksmutils

We want to remove libpagemap. ksmutils is the only C code that needs it
right now. Remove it instead of doing the C++ rewrite, cause it's not
worth it since we don't even recommend enabling ksm for Android anymore.

Bug: 111694435
Test: none

Change-Id: I4c4e82d9febecb3103660ff5dbe1adb7b3bc3452
Signed-off-by: Sandeep Patil <sspatil@google.com>
5 years agoMerge "pagemap/tools: remove all pagemap based tools"
Treehugger Robot [Mon, 21 Jan 2019 21:35:18 +0000 (21:35 +0000)]
Merge "pagemap/tools: remove all pagemap based tools"

5 years agopagemap/tools: remove all pagemap based tools
Sandeep Patil [Sat, 19 Jan 2019 20:22:36 +0000 (12:22 -0800)]
pagemap/tools: remove all pagemap based tools

Bug: 111694435
Test: builds
Test: showmap and procrank exist on userdebug builds.

Change-Id: I3fb63d3adeedd7dece843cbc38e1667f4309bfd3
Signed-off-by: Sandeep Patil <sspatil@google.com>
5 years agoMerge "Remove LOCAL_MODULE_TAGS := debug"
Dan Willemsen [Sat, 19 Jan 2019 07:39:56 +0000 (07:39 +0000)]
Merge "Remove LOCAL_MODULE_TAGS := debug"

5 years agoRemove LOCAL_MODULE_TAGS := debug
Dan Willemsen [Fri, 18 Jan 2019 23:19:56 +0000 (15:19 -0800)]
Remove LOCAL_MODULE_TAGS := debug

Instead, su has been added to PRODUCT_PACKAGES_DEBUG in
build/make/target/product/base_system.mk

memeater didn't appear to have anything that needed it in every eng
build, so I've just removed the tag. If it's necessary, add it to the
list above.

I removed LOCAL_MODULE_TAGS and LOCAL_MODULE_PATH from libsimpleperf, as
static libraries are not impacted by either setting.

Test: treehugger
Change-Id: Iec2610bdb4452f955b0baf5d817e99a2ebf15594

5 years agoMerge "simpleperf: split simpleperf build on target."
Yabin Cui [Fri, 18 Jan 2019 20:43:53 +0000 (20:43 +0000)]
Merge "simpleperf: split simpleperf build on target."

5 years agoMerge "simpleperf: add SC7731E into whitelist, omit tests requiring hw counters."
Treehugger Robot [Fri, 18 Jan 2019 04:33:22 +0000 (04:33 +0000)]
Merge "simpleperf: add SC7731E into whitelist, omit tests requiring hw counters."

5 years agosimpleperf: add SC7731E into whitelist, omit tests requiring hw counters.
Patrick Shi [Thu, 17 Jan 2019 16:00:28 +0000 (00:00 +0800)]
simpleperf: add SC7731E into whitelist, omit tests requiring hw counters.

Some Socs like SC7731E PMU will not be available when
disable jtag(non-invasive debug), so omit tests requiring
hw counters on them.

Issue: 122291303
Test: run cts -m CtsSimpleperfTestCases -t record_cmd#generate_samples_by_hw_counters
Test: hw counters.

Change-Id: I321011dd9d1feab43a3491820579f5633904c45a

5 years agosimpleperf: split simpleperf build on target.
Yabin Cui [Thu, 17 Jan 2019 23:10:51 +0000 (15:10 -0800)]
simpleperf: split simpleperf build on target.

Currently simpleperf on target builds static binary, shipped on
userdebug devices and in ndk release. Now split it into two builds.
Simpleperf shipped on device uses shared libs and version lib.
Simpleperf shipped in ndk release is renamed to simpleperf_static.

This is to ship simpleperf on Q user device.
Also change the directory of simpleperf from /system/xbin to
/system/bin.

Bug: 118835348
Bug: 72403367

Test: build and run simpleperf manually.
Change-Id: I25b861fc24fdf2edfeb432050303aaec293a005f

5 years agoMerge "DO NOT MERGE - Skip pie-platform-release (PPRL.190105.001) in master"
Xin Li [Thu, 17 Jan 2019 21:19:42 +0000 (21:19 +0000)]
Merge "DO NOT MERGE - Skip pie-platform-release (PPRL.190105.001) in master"

5 years agoMerge "Add /data/staging to directories that shouldn't be encrypted."
Martijn Coenen [Wed, 16 Jan 2019 07:30:44 +0000 (07:30 +0000)]
Merge "Add /data/staging to directories that shouldn't be encrypted."

5 years agoMerge "Migrate system/extras to androidx.test"
Yabin Cui [Wed, 16 Jan 2019 00:27:36 +0000 (00:27 +0000)]
Merge "Migrate system/extras to androidx.test"

5 years agoAdd /data/staging to directories that shouldn't be encrypted.
Martijn Coenen [Tue, 15 Jan 2019 22:42:40 +0000 (23:42 +0100)]
Add /data/staging to directories that shouldn't be encrypted.

/data/staging contains downloaded APEX files, no user data.

Bug: 122884909
Test: WIP
Change-Id: Idc17cd8978a7c432a65eb1bb4775fa88e87d2b8f

5 years agoDO NOT MERGE - Skip pie-platform-release (PPRL.190105.001) in master
Xin Li [Tue, 15 Jan 2019 18:18:58 +0000 (10:18 -0800)]
DO NOT MERGE - Skip pie-platform-release (PPRL.190105.001) in master

Bug: 122685541
Change-Id: Iefc29a8f9bcfb053db8f6c260029000744a5687e

5 years agoMerge "Revert "Introduce a no-perfprofd module.""
Roland Levillain [Mon, 14 Jan 2019 17:46:35 +0000 (17:46 +0000)]
Merge "Revert "Introduce a no-perfprofd module.""

5 years agoRevert "Introduce a no-perfprofd module."
Roland Levillain [Wed, 12 Dec 2018 13:15:54 +0000 (13:15 +0000)]
Revert "Introduce a no-perfprofd module."

This reverts commit e262c4b5d09e07edfc1d2d05bca0ad36f3f5c8c1.

Reason for revert: perfprofd is no longer installed on the system
partition since
https://android-review.googlesource.com/c/platform/build/+/844636.

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

5 years agoMerge "Rename libdexfile external API header."
Martin Stjernholm [Fri, 11 Jan 2019 10:28:03 +0000 (10:28 +0000)]
Merge "Rename libdexfile external API header."

5 years agoMerge "Remove memtest."
Christopher Ferris [Thu, 10 Jan 2019 20:26:01 +0000 (20:26 +0000)]
Merge "Remove memtest."

5 years agoRemove memtest.
Christopher Ferris [Thu, 10 Jan 2019 18:09:56 +0000 (10:09 -0800)]
Remove memtest.

This is really only useful for 32 bit devices, and it's not all that useful.
It was designed to check the different memory instructions and indicate which
would likely give the best results for memcpy/memset.

However, we aren't doing any active performance improvements for these 32 bit
routines any more and it can be confusing that this is 32 bit only, so it's
time to go.

Test: NA
Change-Id: Ib56a2ca0a603ac9477422431c3c13f3112366473

5 years agoRename libdexfile external API header.
Martin Stjernholm [Wed, 9 Jan 2019 23:23:33 +0000 (23:23 +0000)]
Rename libdexfile external API header.

Test: m
Bug: 120978655
Change-Id: Ic7e377541dc13640134e6bcf3fea9667b7cad1ef

5 years agoMerge "mkuserimg_mke2fs: pass mount point to mkext2fs"
Treehugger Robot [Wed, 9 Jan 2019 22:57:27 +0000 (22:57 +0000)]
Merge "mkuserimg_mke2fs: pass mount point to mkext2fs"

5 years agoMerge "mkuserimg_mke2fs: Add -I <inode-size> flag"
Treehugger Robot [Wed, 9 Jan 2019 20:36:05 +0000 (20:36 +0000)]
Merge "mkuserimg_mke2fs: Add -I <inode-size> flag"

5 years agomkuserimg_mke2fs: pass mount point to mkext2fs
Mark Salyzyn [Wed, 9 Jan 2019 19:51:34 +0000 (11:51 -0800)]
mkuserimg_mke2fs: pass mount point to mkext2fs

When we construct an ext4 system filesystem image, tune2fs reports:

    Last mounted on=<not available>

With this change, it will now report:

    Last mounted on=/system (or /vendor etc)

This is a cosmetic administrative change.

Test: manual
Bug: 122328872
Change-Id: Ia5370c0b222ee6ad5ee1db10a2810e99b7d01186

5 years agomkuserimg_mke2fs: Add -I <inode-size> flag
Mark Salyzyn [Tue, 8 Jan 2019 19:23:03 +0000 (11:23 -0800)]
mkuserimg_mke2fs: Add -I <inode-size> flag

Caller should be able to add stability to the inode-size based on
system requirements.  For example we may wish to select an inode-size
that will absorb all the xattr inline.

Test: manual
Bug: 122328872
Change-Id: I07ce400b6482646f9b5b353a00f592410aad13b7

5 years agoMerge "iotop: add major/minor fault stats"
Treehugger Robot [Tue, 8 Jan 2019 02:13:04 +0000 (02:13 +0000)]
Merge "iotop: add major/minor fault stats"

5 years agoiotop: add major/minor fault stats
Minchan Kim [Fri, 7 Sep 2018 03:07:00 +0000 (12:07 +0900)]
iotop: add major/minor fault stats

Provide major/minor fault stats.

It would be helpful to see per-process memory consumption speed.
It is also useful to see read IO caused by major fault, which
is critical for app latency.

Bug: 114325007
Test: iotop -h
Test: iotop -m 10 -s faults
Change-Id: If9670a4efe76bcd67b9caedb3427b69896ebed17
Signed-off-by: Minchan Kim <minchan@google.com>
[Added sorter for major+minor faults]
Signed-off-by: Sandeep Patil <sspatil@google.com>
5 years agoMerge "Mount fstab.postinstall"
Yifan Hong [Fri, 4 Jan 2019 18:20:28 +0000 (18:20 +0000)]
Merge "Mount fstab.postinstall"

5 years agoMount fstab.postinstall
Yifan Hong [Wed, 2 Jan 2019 19:50:34 +0000 (11:50 -0800)]
Mount fstab.postinstall

Instead of using the 'mount' built-in, do a
mount_all /system/etc/fstab.postinstall which mounts
system_other to postinstall properly. This works for
devices with and without dynamic partitions.

- retrofit and non DAP devices mount the physical system_other partition
- launch devices mount the logical system_other partition

Fixes: 113182233
Test: boot the first time and look at cppreopt results
      (on retrofit and launch DAP devices)

Change-Id: I70aef55235a5b8be34a521774c4e9dc8461b84de

5 years agoMerge cherrypicks of [5929407, 5929627, 5929597, 5929598] into pi-platform-release
android-build-team Robot [Thu, 3 Jan 2019 23:49:32 +0000 (23:49 +0000)]
Merge cherrypicks of [5929407592962759295975929598] into pi-platform-release

Change-Id: If3e46dabb018bd841b657b8aafa60e399f5cf18b

5 years agolibfscrypt: Add Adiantum support
Greg Kaiser [Mon, 3 Dec 2018 20:36:56 +0000 (12:36 -0800)]
libfscrypt: Add Adiantum support

Adiantum is a crypto method Android is supporting for devices
which don't have AES CPU instructions.  See the paper
"Adiantum: length-preserving encryption for entry-level processors"
(https://eprint.iacr.org/2018/720.pdf) for more details.

We add Adiantum to our list of supported encryption modes.

Bug: 112010205
Test: Tested on a device
Change-Id: I405ed454be1a447b7405417a05ddfd92a912bcb7
Merged-In: I405ed454be1a447b7405417a05ddfd92a912bcb7
(cherry picked from commit b56b389282b4805fac147c3fa36c2e27096ede97)

5 years agoMerge "cppreopts: Android.mk -> bp"
Treehugger Robot [Thu, 3 Jan 2019 05:51:31 +0000 (05:51 +0000)]
Merge "cppreopts: Android.mk -> bp"

5 years agocppreopts: Android.mk -> bp
Yifan Hong [Thu, 3 Jan 2019 00:44:36 +0000 (16:44 -0800)]
cppreopts: Android.mk -> bp

Test: builds
Change-Id: I4143a3c5a88cad289d805b137ec480097c8c60d3

5 years agoMerge "Add /data/preloads to directories that don't need to be encrypted."
Paul Crowley [Fri, 21 Dec 2018 16:20:05 +0000 (16:20 +0000)]
Merge "Add /data/preloads to directories that don't need to be encrypted."

5 years agoMigrate system/extras to androidx.test
Brett Chabot [Thu, 20 Dec 2018 20:19:58 +0000 (12:19 -0800)]
Migrate system/extras to androidx.test

See go/jetpack-test-android-migration

Test: compile
Change-Id: I0549a1fc80de5c66b00bdf685c536f01e7c3ae65

5 years agoAdd /data/preloads to directories that don't need to be encrypted.
LongPing.WEI [Thu, 20 Dec 2018 09:56:21 +0000 (17:56 +0800)]
Add /data/preloads to directories that don't need to be encrypted.

There is no user data here, just preload data.

Test: make
Change-Id: I2bd65a15ace50c4d1dc4bc4c3f3d4294f77d2c18

5 years agoMerge "simpleperf: update simpleperf prebuilts to build 5176246."
Yabin Cui [Fri, 14 Dec 2018 22:11:15 +0000 (22:11 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 5176246."

5 years agosimpleperf: update simpleperf prebuilts to build 5176246.
Yabin Cui [Wed, 12 Dec 2018 18:59:18 +0000 (10:59 -0800)]
simpleperf: update simpleperf prebuilts to build 5176246.

Taken from branch aosp-master.

Bug: none
Test: run test.py on linux/windows on Android N/O/P.

Change-Id: I13326a3f9984006442c33ae24d34e3fd9cb46616

5 years agoMerge "Use libdexfile external API in simpleperf."
Martin Stjernholm [Fri, 14 Dec 2018 13:36:30 +0000 (13:36 +0000)]
Merge "Use libdexfile external API in simpleperf."

5 years agoMerge "simpleperf: fix binary_cache_builder.py."
Treehugger Robot [Fri, 14 Dec 2018 00:39:16 +0000 (00:39 +0000)]
Merge "simpleperf: fix binary_cache_builder.py."

5 years agoMerge "simpleperf: update build.gradle in demo apps."
Treehugger Robot [Thu, 13 Dec 2018 22:43:16 +0000 (22:43 +0000)]
Merge "simpleperf: update build.gradle in demo apps."

5 years agoMerge "simpleperf: fix reading symbols from multidex apk."
Treehugger Robot [Thu, 13 Dec 2018 22:39:44 +0000 (22:39 +0000)]
Merge "simpleperf: fix reading symbols from multidex apk."

5 years agosimpleperf: fix binary_cache_builder.py.
Yabin Cui [Thu, 13 Dec 2018 22:24:27 +0000 (14:24 -0800)]
simpleperf: fix binary_cache_builder.py.

Fix two exceptions caused by empty binary name.

Bug: none
Test: run python3 test.py.
Change-Id: If559a9c71a8af217fa8d127e634b85d9f6383ee4

5 years agosimpleperf: update build.gradle in demo apps.
Yabin Cui [Thu, 13 Dec 2018 19:47:25 +0000 (11:47 -0800)]
simpleperf: update build.gradle in demo apps.

Bug: none
Test: build apps.
Change-Id: I8b41e70b17f462f2272ed8eb32c8ca087243cc3e

5 years agosimpleperf: fix reading symbols from multidex apk.
Yabin Cui [Thu, 13 Dec 2018 19:34:17 +0000 (11:34 -0800)]
simpleperf: fix reading symbols from multidex apk.

Bug: none
Test: run simpleperf_unit_test.
Change-Id: I04715ff7abe22819b30881d73706fb59cd5521ea

5 years agoUse libdexfile external API in simpleperf.
Martin Stjernholm [Wed, 28 Nov 2018 00:46:00 +0000 (00:46 +0000)]
Use libdexfile external API in simpleperf.

Test: device boot
Test: atest system/extras/simpleperf/ (lots of failures, but no new ones. 4 of 4 passed in simpleperf_unit_test)
Test: mmma system/extras/simpleperf && adb root && adb shell rm -rf /data/test && adb push out/target/product/taimen/testcases/simpleperf_unit_test /data/test && adb shell /data/test/arm64/simpleperf_unit_test && adb shell /data/test/arm/simpleperf_unit_test
Bug: 119632407
Change-Id: Id070b8a99cb4d3bf4ec90cae186a2e88bcec72a1

5 years agoMerge "lpdump: Automatically read from super when used directly on devices."
David Anderson [Thu, 13 Dec 2018 02:22:22 +0000 (02:22 +0000)]
Merge "lpdump: Automatically read from super when used directly on devices."

5 years agolpdump: Automatically read from super when used directly on devices.
David Anderson [Wed, 12 Dec 2018 21:36:43 +0000 (13:36 -0800)]
lpdump: Automatically read from super when used directly on devices.

It's confusing to figure out how to invoke lpdump, especially on
retrofit devices. It should just do the correct thing automatically
when no arguments are passed.

Bug: N/A
Test: lpdump on retrofit device
Change-Id: I0563c10ff276763710fa0a4fb9918a2515f9d054

5 years agoMerge "libfscrypt: Add Adiantum support"
Greg Kaiser [Wed, 12 Dec 2018 04:59:25 +0000 (04:59 +0000)]
Merge "libfscrypt: Add Adiantum support"

5 years agolibfscrypt: Add Adiantum support
Greg Kaiser [Mon, 3 Dec 2018 20:36:56 +0000 (12:36 -0800)]
libfscrypt: Add Adiantum support

Adiantum is a crypto method Android is supporting for devices
which don't have AES CPU instructions.  See the paper
"Adiantum: length-preserving encryption for entry-level processors"
(https://eprint.iacr.org/2018/720.pdf) for more details.

We add Adiantum to our list of supported encryption modes.

Bug: 112010205
Test: Tested on a device
Change-Id: I405ed454be1a447b7405417a05ddfd92a912bcb7

5 years agoMerge "Fix performance-for-range-copy warnings"
Treehugger Robot [Tue, 11 Dec 2018 21:34:06 +0000 (21:34 +0000)]
Merge "Fix performance-for-range-copy warnings"

5 years agoMerge "Fix cert-dcl16-c clang-tidy warnings."
Treehugger Robot [Tue, 11 Dec 2018 21:10:40 +0000 (21:10 +0000)]
Merge "Fix cert-dcl16-c clang-tidy warnings."

5 years agoFix cert-dcl16-c clang-tidy warnings.
Chih-Hung Hsieh [Tue, 11 Dec 2018 18:59:28 +0000 (10:59 -0800)]
Fix cert-dcl16-c clang-tidy warnings.

Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c
Change-Id: Ib341908467f11ed5fccd6eddb8909fe5170fea9e

5 years agoFix performance-for-range-copy warnings
Chih-Hung Hsieh [Tue, 11 Dec 2018 18:45:02 +0000 (10:45 -0800)]
Fix performance-for-range-copy warnings

Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: I94c2456e8ef958abcb0909871fb772dd67060dfc

5 years agoMerge "Introduce a no-perfprofd module."
Doris Ling [Fri, 7 Dec 2018 20:03:57 +0000 (20:03 +0000)]
Merge "Introduce a no-perfprofd module."

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>
5 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"

5 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"

5 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

5 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

5 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."

5 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

5 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"