OSDN Git Service

android-x86/system-extras.git
7 years agobuild_verity_metadata: Support --signer_args argument. am: 4506252918
Tao Bao [Sat, 17 Dec 2016 02:37:12 +0000 (02:37 +0000)]
build_verity_metadata: Support --signer_args argument. am: 4506252918
am: 28947f4f29

Change-Id: I41c6b642aec4a558a109a7aee87f9c4254e5e2f9

7 years agobuild_verity_metadata: Support --signer_args argument.
Tao Bao [Sat, 17 Dec 2016 02:27:41 +0000 (02:27 +0000)]
build_verity_metadata: Support --signer_args argument.
am: 4506252918

Change-Id: I08c959ab10b087dddf5035e1773fffab261af314

7 years agobuild_verity_metadata: Support --signer_args argument.
Tao Bao [Mon, 17 Oct 2016 23:06:31 +0000 (16:06 -0700)]
build_verity_metadata: Support --signer_args argument.

Use argparse to parse input parameters for future extension.

Add 'build' and 'size' as two sub-commands.
- 'build_verity_metadata.py -s SIZE' becomes
  'build_verity_metadata.py size SIZE'.

- 'build_verity_metadata.py BLOCKS METADATA_IMAGE ...' becomes
  'build_verity_metadata.py build BLOCKS METADATA_IMAGE ...'.

The 'build' command now accepts an optional argument '--signer_args' to
specify signer specific arguments.

Bug: 31500665
Test: Building and signing work w/ and w/o --signer_args.

(cherry picked from commit 39d1756abe66538a6cbdfc4c7b5377ce279e332c)

(cherry picked from commit 1522691d1da02d623bb32619e113954656be39b3)

Change-Id: I4f8f2478458a3a787bd1ba86474330de372458c1

7 years agomerge in nyc-mr1-cts-release history after reset to nyc-mr1-dev am: 6727a1e718 am...
Tao Bao [Fri, 16 Dec 2016 22:38:09 +0000 (22:38 +0000)]
merge in nyc-mr1-cts-release history after reset to nyc-mr1-dev am: 6727a1e718 am: 9ac16f1f48
am: 8b3b60cbf9

Change-Id: I7112a6549544245c00cfea6444fdd2f8437521ff

7 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev am: 96c347a9b9 am: 627cc3afb3
Alex Light [Fri, 16 Dec 2016 22:37:59 +0000 (22:37 +0000)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev am: 96c347a9b9 am: 627cc3afb3
am: c51d68746c

Change-Id: I798399783afb1daccd820921ed382ff9e8d515a9

7 years agomerge in nyc-mr1-cts-release history after reset to nyc-mr1-dev am: 6727a1e718
Tao Bao [Fri, 16 Dec 2016 22:29:30 +0000 (22:29 +0000)]
merge in nyc-mr1-cts-release history after reset to nyc-mr1-dev am: 6727a1e718
am: 9ac16f1f48

Change-Id: I728adaba03fa4c671a8b04471d9f9f9b78aaf532

7 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev am: 96c347a9b9
Alex Light [Fri, 16 Dec 2016 22:29:22 +0000 (22:29 +0000)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev am: 96c347a9b9
am: 627cc3afb3

Change-Id: Ia68bc020f5eb4a97f0c66bd944f27dc0156d4a6d

7 years agomerge in nyc-mr1-cts-release history after reset to nyc-mr1-dev
Tao Bao [Fri, 16 Dec 2016 22:20:39 +0000 (22:20 +0000)]
merge in nyc-mr1-cts-release history after reset to nyc-mr1-dev
am: 6727a1e718

Change-Id: I257cedf0b05301148604e4bbfe24b95bd5c5d479

7 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
Alex Light [Fri, 16 Dec 2016 22:20:28 +0000 (22:20 +0000)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev
am: 96c347a9b9

Change-Id: I9a44b38e4aac14d6c41481ef58637bc873a8f85e

7 years agomerge in nyc-mr1-cts-release history after reset to nyc-mr1-dev
gitbuildkicker [Thu, 1 Dec 2016 00:57:20 +0000 (16:57 -0800)]
merge in nyc-mr1-cts-release history after reset to nyc-mr1-dev

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:14:11 +0000 (18:14 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0 am: 3734580187
am: 69dd400b72

Change-Id: I9ac01c8b23f58972b1867822c197c36909d771d2

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:09:11 +0000 (18:09 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0
am: 3734580187

Change-Id: Id3fd5d9611e86735f5cb54f7888048ff7c108f3b

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7
Tao Bao [Tue, 29 Nov 2016 18:04:10 +0000 (18:04 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7
am: 533ed53bc0

Change-Id: I1eca68a42d8c935f95e6dbeadd8e52ca5df48d01

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC.
Tao Bao [Tue, 29 Nov 2016 17:59:10 +0000 (17:59 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC.
am: 989f6a13a7

Change-Id: I7e9bebaafac56456c618befee18f971114e24b85

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC.
Tao Bao [Tue, 18 Oct 2016 20:02:14 +0000 (13:02 -0700)]
DO NOT MERGE verity_verifier: Support verifying images with FEC.

The current VerityVerifier.jar cannot verify verity images with FEC
metadata (since N). Replace it with a new verity verifier that uses
libfec to parse and verify verity metadata.

It accepts the same command line arguments as the old verity_verifier
script.

Usage: verity_verifier <image> -mincrypt <verity_key>
  image       the image file (raw or sparse image) to be verified
  verity_key  the verity key in mincrypt format (/verity_key on device)

Note: this is a backport of commit
bb634ff8dab6327bd38eadee22d5f8ec9d3940d0. It uses the mincrypt headers
and functions instead.

Bug: 32173582
Test: $ verity_verifier $OUT/system.img -mincrypt $OUT/root/verity_key
      VERIFIED
Change-Id: I8624973715dcd0f6d89d408c1c97bf584b50ce06
(cherry picked from commit bb634ff8dab6327bd38eadee22d5f8ec9d3940d0)

7 years agoDO NOT MERGE: libfec: allow fec_header to be located anywhere
Sami Tolvanen [Sun, 20 Nov 2016 06:27:03 +0000 (06:27 +0000)]
DO NOT MERGE: libfec: allow fec_header to be located anywhere
am: 549f048fcb

Change-Id: Ie9b58e09558995ccd52004e82add513483df5d69

7 years agoDO NOT MERGE: fec: add --padding
Sami Tolvanen [Sun, 20 Nov 2016 06:27:01 +0000 (06:27 +0000)]
DO NOT MERGE: fec: add --padding
am: 61fce29c45

Change-Id: Ia302825abf17edc824a37cd3085f02946deb9d12

7 years agoDO NOT MERGE: fec: remove unneeded target executable
Sami Tolvanen [Sun, 20 Nov 2016 06:26:59 +0000 (06:26 +0000)]
DO NOT MERGE: fec: remove unneeded target executable
am: 955d3afe95

Change-Id: Iaf46fa50e6944376497520a191518b7ba916cae9

7 years agoDO NOT MERGE: fec: remove unused mmap code
Sami Tolvanen [Sun, 20 Nov 2016 06:26:58 +0000 (06:26 +0000)]
DO NOT MERGE: fec: remove unused mmap code
am: cace33a52a

Change-Id: I8597822eb5f71f001d8ce2ac651c641d4f3a1030

7 years agoDO NOT MERGE: libfec: allow fec_header to be located anywhere
Sami Tolvanen [Thu, 1 Sep 2016 22:51:12 +0000 (15:51 -0700)]
DO NOT MERGE: libfec: allow fec_header to be located anywhere

Don't require fec_header to be immediately after ECC data.

Bug: 28865197
Bug: 32789520
Change-Id: Ie8faeeb07c35e2593553f7678762aae7f14c2ff7

(cherrypicked from commit d9fd5b0d7507877ad6a0ede10c473fe2970d278d)

7 years agoDO NOT MERGE: fec: add --padding
Sami Tolvanen [Thu, 1 Sep 2016 21:54:09 +0000 (14:54 -0700)]
DO NOT MERGE: fec: add --padding

Add an option to insert padding between ECC data and fec_header to
make it easier to position the header at the end of the partition.

Bug: 28865197
Bug: 32789520
Change-Id: I8c11401df56d15362fe3eb3c2a6a91ea82b02a83

(cherrypicked from commit 85e592cb86c9cbca82852240f0148adbee1b74e8)

7 years agoDO NOT MERGE: fec: remove unneeded target executable
Sami Tolvanen [Thu, 1 Sep 2016 20:43:51 +0000 (13:43 -0700)]
DO NOT MERGE: fec: remove unneeded target executable

Bug: 32789520

Change-Id: Ic925814191b8ac952b584a994cf455f871a8ee0c

(cherrypicked from commit 4c716c92a691e6b39e8e65a397f9b6e91f9e07ee)

7 years agoDO NOT MERGE: fec: remove unused mmap code
Sami Tolvanen [Thu, 1 Sep 2016 20:35:17 +0000 (13:35 -0700)]
DO NOT MERGE: fec: remove unused mmap code

Bug: 32789520

Change-Id: If4b32546c6678afaaebffbcf1fbeee17a1879561

(cherrypicked from commit 8bad827700bae35005872f3e6d674c5144fda8ff)

7 years agobuild_verity_metadata: Support --signer_args argument. am: 1522691d1d am: c2e9c0f0fc...
Tao Bao [Wed, 26 Oct 2016 22:27:01 +0000 (22:27 +0000)]
build_verity_metadata: Support --signer_args argument. am: 1522691d1d am: c2e9c0f0fc am: c681cb32b3
am: b91b1cd229

Change-Id: I2fdccda3685d5c255dda29680aa1f9ea7629fd47

7 years agobuild_verity_metadata: Support --signer_args argument. am: 1522691d1d am: c2e9c0f0fc
Tao Bao [Wed, 26 Oct 2016 22:23:00 +0000 (22:23 +0000)]
build_verity_metadata: Support --signer_args argument. am: 1522691d1d am: c2e9c0f0fc
am: c681cb32b3

Change-Id: Ifdaf37a7a04172798ce3ab125c799c819f350de3

7 years agobuild_verity_metadata: Support --signer_args argument. am: 1522691d1d
Tao Bao [Wed, 26 Oct 2016 22:18:30 +0000 (22:18 +0000)]
build_verity_metadata: Support --signer_args argument. am: 1522691d1d
am: c2e9c0f0fc

Change-Id: Id0290ac657b6ebd1c6ec59f6ac5f44cd3806d5d7

7 years agobuild_verity_metadata: Support --signer_args argument.
Tao Bao [Wed, 26 Oct 2016 22:13:29 +0000 (22:13 +0000)]
build_verity_metadata: Support --signer_args argument.
am: 1522691d1d

Change-Id: I9827575704475f3781a214ab73a3b82b7bd00e38

7 years agobuild_verity_metadata: Support --signer_args argument.
Tao Bao [Mon, 17 Oct 2016 23:06:31 +0000 (16:06 -0700)]
build_verity_metadata: Support --signer_args argument.

Use argparse to parse input parameters for future extension.

Add 'build' and 'size' as two sub-commands.
- 'build_verity_metadata.py -s SIZE' becomes
  'build_verity_metadata.py size SIZE'.

- 'build_verity_metadata.py BLOCKS METADATA_IMAGE ...' becomes
  'build_verity_metadata.py build BLOCKS METADATA_IMAGE ...'.

The 'build' command now accepts an optional argument '--signer_args' to
specify signer specific arguments.

Bug: 31500665
Test: Building and signing work w/ and w/o --signer_args.

Change-Id: I3cfd2b584efad216b91d5fcd0314f4468ff7450f
(cherry picked from commit 39d1756abe66538a6cbdfc4c7b5377ce279e332c)

7 years agoANRdaemon: fix a bug in handling dump request when trace is running.
Zhengyin Qian [Wed, 7 Sep 2016 22:57:23 +0000 (15:57 -0700)]
ANRdaemon: fix a bug in handling dump request when trace is running.

Change-Id: I16e2be8b90841eef251c83eda9f71c8e70f519ad

7 years agoMerge "Remove unused function declarations" into cw-f-dev
Damien Bargiacchi [Wed, 24 Aug 2016 20:36:35 +0000 (20:36 +0000)]
Merge "Remove unused function declarations" into cw-f-dev

7 years agoRemove unused function declarations
Damien Bargiacchi [Wed, 17 Aug 2016 00:42:39 +0000 (17:42 -0700)]
Remove unused function declarations

Change-Id: I71dc112b3e1028e3ec3d3c1ec832959b1232f2f6

7 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
gitbuildkicker [Thu, 11 Aug 2016 08:07:02 +0000 (01:07 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

7 years agoMerge "procrank: fix bounds check to prevent heap overflow" into nyc-mr1-dev
Nick Desaulniers [Thu, 11 Aug 2016 00:32:59 +0000 (00:32 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" into nyc-mr1-dev
am: 96eaef2510

Change-Id: I9dc98b9c1d27dcee8d74bdabf00422dc8dfd6abf

7 years agoprocrank: fix bounds check to prevent heap overflow
Nick Desaulniers [Thu, 11 Aug 2016 00:32:59 +0000 (00:32 +0000)]
procrank: fix bounds check to prevent heap overflow
am: 98a20cd128

Change-Id: I9e79ff3f83f36b68fa119d1b95f235a804cfb34e

7 years agoMerge "procrank: fix bounds check to prevent heap overflow" into nyc-mr1-dev
Nick Desaulniers [Thu, 11 Aug 2016 00:24:09 +0000 (00:24 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" into nyc-mr1-dev

7 years agoprocrank: fix bounds check to prevent heap overflow
Nick Desaulniers [Wed, 10 Aug 2016 22:44:19 +0000 (15:44 -0700)]
procrank: fix bounds check to prevent heap overflow

Bug: 30774296
Change-Id: I44005caaa3cc17fe829f375a4cfeb5a464c97fbe

7 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
gitbuildkicker [Wed, 10 Aug 2016 08:07:22 +0000 (01:07 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

7 years agoFix binderAddInts benchmark
John Reck [Tue, 9 Aug 2016 21:50:01 +0000 (21:50 +0000)]
Fix binderAddInts benchmark
am: 187816e579

Change-Id: I5629093163fe4e58a5d09563aa47a5086e423833

7 years agoFix binderAddInts benchmark
John Reck [Tue, 9 Aug 2016 20:06:21 +0000 (13:06 -0700)]
Fix binderAddInts benchmark

Bug: 30765667

Restores the fork() that was missed in a refactor
causing the benchmark to no longer measure binder's
IPC performance.

Change-Id: Id79ab082f1d20e1d058f80bd43018c9737b8250b

7 years agoFix lsof option in anrd script.
Zhengyin Qian [Tue, 9 Aug 2016 17:56:51 +0000 (10:56 -0700)]
Fix lsof option in anrd script.

Change-Id: Ib0043c51ed289469dbef33d9333b1e6113c3b23e

7 years agoFix missing pipe in ANRdaemon.
Nancy Zheng [Sat, 6 Aug 2016 01:48:20 +0000 (18:48 -0700)]
Fix missing pipe in ANRdaemon.

Change-Id: I1322ed51f0f1456ebfb8cbb1404772f7fc2bf840

7 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
gitbuildkicker [Sun, 31 Jul 2016 08:08:58 +0000 (01:08 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

7 years agoRun preloads_copy.sh as system:system
Fyodor Kupolov [Thu, 28 Jul 2016 01:01:24 +0000 (01:01 +0000)]
Run preloads_copy.sh as system:system
am: 17985b261d

Change-Id: Ibd98f4f6153db24e6d1b8bf7722a0d023466d875

7 years agoOptional script to copy preloads to data directory
Fyodor Kupolov [Wed, 27 Jul 2016 22:32:23 +0000 (22:32 +0000)]
Optional script to copy preloads to data directory
am: 9b8b12f84e

Change-Id: I417fb2c538507242cb9bfa31ed638a25c79ec81f

7 years agoRun preloads_copy.sh as system:system
Fyodor Kupolov [Wed, 27 Jul 2016 21:50:04 +0000 (14:50 -0700)]
Run preloads_copy.sh as system:system

Root is not required, and most importantly system_server won't be able delete
preloads folder during cleanup.

Bug: 30280710
Change-Id: I41890834467cc51b7b4ebd9c2918a47904f0b377

7 years agoOptional script to copy preloads to data directory
Fyodor Kupolov [Mon, 25 Jul 2016 18:55:15 +0000 (11:55 -0700)]
Optional script to copy preloads to data directory

Bug: 29940807
Change-Id: Iba4deaecb5a4055ad10b92829f37ecd3cf8a5ee0

8 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
gitbuildkicker [Wed, 20 Jul 2016 08:07:18 +0000 (01:07 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

8 years agocppreopts: parallel cppreopts to improve performance
Wei Wang [Mon, 18 Jul 2016 18:41:18 +0000 (11:41 -0700)]
cppreopts: parallel cppreopts to improve performance

Bug: 30118894
Bug: 30189706
Change-Id: I0ed0c69873313a3bfaf2e1ff217da59b0f8929c1

8 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
gitbuildkicker [Wed, 13 Jul 2016 08:07:18 +0000 (01:07 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

8 years agoBasic A/B bootloader tests via bootctl
Jed Estep [Fri, 20 May 2016 23:58:59 +0000 (16:58 -0700)]
Basic A/B bootloader tests via bootctl

Change-Id: Ie7868cc205859c657e905e60ab6928517f02edb8

8 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
The Android Automerger [Sun, 3 Jul 2016 08:10:32 +0000 (01:10 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

8 years agoCopy preopted files from B partition.
Alex Light [Tue, 21 Jun 2016 23:17:48 +0000 (16:17 -0700)]
Copy preopted files from B partition.

This translates from the preopted files in the system_other partition
into the main dalvik-cache. This also has init scripts to allow this
to run.

We first copy to a temporary file before renaming them in order to
make the copy atomic.

Bug: 29278988
Change-Id: I8bf1b2d021998949fd9996a923be7db9691e6a1e

8 years agoMerge "Copy preopted files from B partition." into nyc-mr1-dev
Alex Light [Wed, 29 Jun 2016 20:26:04 +0000 (20:26 +0000)]
Merge "Copy preopted files from B partition." into nyc-mr1-dev

8 years agoANRdaemon: move trace result from /sdcard to /data am: d93aa41807 am: adfc967454
Zhengyin Qian [Wed, 29 Jun 2016 17:55:47 +0000 (17:55 +0000)]
ANRdaemon: move trace result from /sdcard to /data am: d93aa41807 am: adfc967454
am: 20e3c1bc94

Change-Id: Ib688c2e38c181d6fdc2ca901782934dc4726eb52

8 years agoANRdaemon: move trace result from /sdcard to /data am: d93aa41807
Zhengyin Qian [Wed, 29 Jun 2016 17:53:11 +0000 (17:53 +0000)]
ANRdaemon: move trace result from /sdcard to /data am: d93aa41807
am: adfc967454

Change-Id: I4f8d4551c3ab2f5430600af833ced564aa328a55

8 years agoANRdaemon: move trace result from /sdcard to /data
Zhengyin Qian [Wed, 29 Jun 2016 17:50:00 +0000 (17:50 +0000)]
ANRdaemon: move trace result from /sdcard to /data
am: d93aa41807

Change-Id: I487116b8261bcef0fc9b829eaf38408d8a47ee78

8 years agoCopy preopted files from B partition.
Alex Light [Tue, 21 Jun 2016 23:17:48 +0000 (16:17 -0700)]
Copy preopted files from B partition.

This translates from the preopted files in the system_other partition
into the main dalvik-cache. This also has init scripts to allow this
to run.

We first copy to a temporary file before renaming them in order to
make the copy atomic.

Bug: 29278988
Change-Id: I8bf1b2d021998949fd9996a923be7db9691e6a1e

8 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
The Android Automerger [Tue, 28 Jun 2016 08:07:30 +0000 (01:07 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

8 years agoSimpleperf: fix flaky tests.
Yabin Cui [Mon, 27 Jun 2016 23:53:39 +0000 (23:53 +0000)]
Simpleperf: fix flaky tests.
am: a486a4b8ae

Change-Id: I194792e233c6ccdd695e04ed2a58f7f1034f0494

8 years agoSimpleperf: fix flaky tests.
Yabin Cui [Mon, 27 Jun 2016 23:00:20 +0000 (16:00 -0700)]
Simpleperf: fix flaky tests.

Simpleperf stat/record command may need 1 second to set security.perf_harden
property. So the monitored child threads should run longer than 1 second.

Bug: 29763505
Change-Id: I9bf6dcba03f3fc5c91130f38a08ce0062e104103

8 years agoANRdaemon: move trace result from /sdcard to /data
Zhengyin Qian [Tue, 21 Jun 2016 21:05:44 +0000 (14:05 -0700)]
ANRdaemon: move trace result from /sdcard to /data

Bug: 28765756
Change-Id: Ic9461bc66c8ba4df1455d8b75c4fb6b544d0cf27

8 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
The Android Automerger [Sun, 19 Jun 2016 08:08:49 +0000 (01:08 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

8 years agolibfec: pack the fec_header structure
Jeremy Compostella [Tue, 10 May 2016 09:53:06 +0000 (11:53 +0200)]
libfec: pack the fec_header structure

The fec_header structure is generated build time and stored on disk.
The fec_header might be build on a 64 bits machine while it is read
per a 32 bits device or the other way around.  In such situations, the
fec_header fields are not aligned as expected by the device and it
fails to read the fec_header structure.

This patch makes the fec_header packed.

Change-Id: I77546f850cea5559909971a1192e1a7616d22d50
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
8 years agoresolve merge conflicts of 041bdd8 to nyc-mr1-dev
Mohamad Ayyash [Thu, 16 Jun 2016 20:17:32 +0000 (13:17 -0700)]
resolve merge conflicts of 041bdd8 to nyc-mr1-dev

Change-Id: I8b9b227f8afedb1eb77de8be9de689e3c621003e

8 years agoMerge "libfec: pack the fec_header structure" into nyc-mr1-dev
Thierry Strudel [Thu, 16 Jun 2016 19:15:40 +0000 (19:15 +0000)]
Merge "libfec: pack the fec_header structure" into nyc-mr1-dev

8 years agolibfec: pack the fec_header structure
Jeremy Compostella [Tue, 10 May 2016 09:53:06 +0000 (11:53 +0200)]
libfec: pack the fec_header structure

The fec_header structure is generated build time and stored on disk.
The fec_header might be build on a 64 bits machine while it is read
per a 32 bits device or the other way around.  In such situations, the
fec_header fields are not aligned as expected by the device and it
fails to read the fec_header structure.

This patch makes the fec_header packed.

Change-Id: I77546f850cea5559909971a1192e1a7616d22d50
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
8 years agoMerge "mksquashfsimage.sh: Make disable-4k-align a paramter" into nyc-dev
Mohamad Ayyash [Thu, 16 Jun 2016 16:24:33 +0000 (16:24 +0000)]
Merge "mksquashfsimage.sh: Make disable-4k-align a paramter" into nyc-dev

8 years agomksquashfsimage.sh: Make disable-4k-align a paramter
Mohamad Ayyash [Wed, 15 Jun 2016 22:53:55 +0000 (15:53 -0700)]
mksquashfsimage.sh: Make disable-4k-align a paramter

BUG: 29388879
Change-Id: I6ede2273419ba986d08decc0540741c54ed736b1
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agoresolve merge conflicts of 7354c0e to nyc-mr1-dev
Mohamad Ayyash [Wed, 15 Jun 2016 16:38:04 +0000 (09:38 -0700)]
resolve merge conflicts of 7354c0e to nyc-mr1-dev

Change-Id: I19693f5459794b71decfae4507fb2742c74f7c41

8 years agoMerge changes from topic 'squashfs_ota_incrementals' into nyc-dev
Mohamad Ayyash [Wed, 15 Jun 2016 16:03:08 +0000 (16:03 +0000)]
Merge changes from topic 'squashfs_ota_incrementals' into nyc-dev

* changes:
  Disable fragments and duplicates detection for squashfs
  mksquashfsimage.sh: Add support for passing block map files

8 years agoDisable fragments and duplicates detection for squashfs
Mohamad Ayyash [Tue, 24 May 2016 20:53:53 +0000 (13:53 -0700)]
Disable fragments and duplicates detection for squashfs

They don't play nicely with generating block maps. Fragments reduce
performance. A later patch will add workaround for duplicate detection.

BUG: 22322817
Change-Id: I01c731202ef7a2450b5d1beca627a0158c9cc3b4
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agomksquashfsimage.sh: Add support for passing block map files
Mohamad Ayyash [Mon, 13 Jun 2016 21:45:31 +0000 (14:45 -0700)]
mksquashfsimage.sh: Add support for passing block map files

BUG: 22322817
Change-Id: I7e17f6ad3a503ee97f7a81a1a8382cff47a913c6
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agoMerge \"simpleperf: restore perf_harden after simpleperf cts test.\" into nyc-dev
Yabin Cui [Sat, 11 Jun 2016 03:58:28 +0000 (03:58 +0000)]
Merge \"simpleperf: restore perf_harden after simpleperf cts test.\" into nyc-dev
am: 4d9e9c66fb

Change-Id: I39119b7d227b946e294b40bfd6805d886d92fa8b

8 years agoMerge "simpleperf: restore perf_harden after simpleperf cts test." into nyc-dev
Yabin Cui [Sat, 11 Jun 2016 03:53:11 +0000 (03:53 +0000)]
Merge "simpleperf: restore perf_harden after simpleperf cts test." into nyc-dev

8 years agosimpleperf: restore perf_harden after simpleperf cts test.
Yabin Cui [Fri, 10 Jun 2016 19:15:11 +0000 (12:15 -0700)]
simpleperf: restore perf_harden after simpleperf cts test.

Bug: 29264324
Change-Id: Ia78ef924f049630968d222729cf3c1f378105b8a
(cherry picked from commit 5896132e00c7e49d2468d7ebd5372654df29b872)

8 years agosimpleperf: check perf event limit.
Yabin Cui [Sat, 11 Jun 2016 01:53:04 +0000 (01:53 +0000)]
simpleperf: check perf event limit.
am: 92c688b1f7

Change-Id: Ia53e2043e66f91a791e97353e7937ef1a4050d69

8 years agosimpleperf: check perf event limit.
Yabin Cui [Wed, 1 Jun 2016 22:39:39 +0000 (15:39 -0700)]
simpleperf: check perf event limit.

The property security.perf_harden is added in https://android-review.googlesource.com/#/c/233736/5. And simpleperf needs to notice that.

Bug: 29054680
Change-Id: I5f1593f5b389d182a56c4bf3bd438a1dc2b66686
(cherry picked from commit ebf79f3a65c81ef0f8cd7a3b875771be88157fcc)

8 years agoDo not build multinetwork tools when targeting the PDK
Erik Kline [Tue, 7 Jun 2016 04:03:04 +0000 (04:03 +0000)]
Do not build multinetwork tools when targeting the PDK
am: 600c6341e6

* commit '600c6341e62c165c60f526174d965cc7f1b30c38':
  Do not build multinetwork tools when targeting the PDK

Change-Id: I1475ee586faf10942e805c51290d83aa1998cb5e

8 years agoDo not build multinetwork tools when targeting the PDK
Erik Kline [Mon, 6 Jun 2016 21:57:12 +0000 (06:57 +0900)]
Do not build multinetwork tools when targeting the PDK

Bug: 29071416
Change-Id: Ie39cad3151907aabbf523895d6cde37b82ff29a2

8 years agolibfec: return raw and corrected verity metadata signatures
Sami Tolvanen [Tue, 7 Jun 2016 00:05:42 +0000 (00:05 +0000)]
libfec: return raw and corrected verity metadata signatures
am: 65cbaeb020

* commit '65cbaeb020b209f3d75d594ebbe49a609dd3c7e7':
  libfec: return raw and corrected verity metadata signatures

Change-Id: I77bb88a549c2da0ed69f36d80ca6d93ed91a163b

8 years agolibfec: return raw and corrected verity metadata signatures
Sami Tolvanen [Fri, 3 Jun 2016 20:56:07 +0000 (13:56 -0700)]
libfec: return raw and corrected verity metadata signatures

Since it's not possible for libfec to identify whether the signature
field was successfully corrected, return both and allow the caller to
validate either signature.

Bug: 28943429
Change-Id: Ie913c21ba1d07d6df4c6feeb7226b2ec963f4d19

8 years agoMerge "Introduce squashfs compression threshold" into nyc-mr1-dev
Mohamad Ayyash [Mon, 6 Jun 2016 15:37:43 +0000 (15:37 +0000)]
Merge "Introduce squashfs compression threshold" into nyc-mr1-dev

8 years agoIntroduce squashfs compression threshold
Mohamad Ayyash [Sat, 4 Jun 2016 01:55:16 +0000 (18:55 -0700)]
Introduce squashfs compression threshold

If we can't beat that compression ratio for a single block then we leave
it uncompressed. The choice of the threshold depends on the cost of I/O
in a specific device which is determined from block I/O speed and CPU
speed.

BUG: 29058965
Change-Id: I8d17a4551c7d00ddb85687381b7cb0d6c60babf6
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agoAdd multinetwork debugging tools, dnschk and httpurl
Erik Kline [Tue, 31 May 2016 01:41:50 +0000 (01:41 +0000)]
Add multinetwork debugging tools, dnschk and httpurl
am: 871e63d9b7

* commit '871e63d9b7e584bc398dd4aa983cf561a5e8394e':
  Add multinetwork debugging tools, dnschk and httpurl

Change-Id: Iffea34208fb19daa3b1f2c015364dff3a6542498

8 years agoAdd multinetwork debugging tools, dnschk and httpurl
Erik Kline [Fri, 22 Jan 2016 00:07:44 +0000 (09:07 +0900)]
Add multinetwork debugging tools, dnschk and httpurl

Bug: 19537384
Bug: 27199751
Bug: 28719525
Change-Id: Ie983ec12ac6c550fa76c89cd44343220688a99b4

8 years agoANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67 am: 4b7f0...
Zhengyin Qian [Fri, 27 May 2016 18:11:07 +0000 (18:11 +0000)]
ANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67 am: 4b7f0b27a2
am: 27879586ff

* commit '27879586fff26d5ac1864f57bf441a39f8ab9315':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: Ib39181c0fd9901619a8a300f8a358e8918471e5b

8 years agoANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33...
Zhengyin Qian [Fri, 27 May 2016 18:11:05 +0000 (18:11 +0000)]
ANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33 am: ecb5849a5d
am: 90ce7ac45f

* commit '90ce7ac45f183aad12151d691f82a4a9c9a78f2f':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: I31faaec8cfcc377ae4f7fc12cc94e634503df04a

8 years agoANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81 am: c33bbcd4c7
Zhengyin Qian [Fri, 27 May 2016 18:11:03 +0000 (18:11 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81 am: c33bbcd4c7
am: 05d982d4ed

* commit '05d982d4edde37937c9a6fdb97e36a492e18f7d5':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: If7ad5c8aa7fa2b1314ed33ad0eb4f29d82ad4fa5

8 years agoANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67
Zhengyin Qian [Fri, 27 May 2016 17:58:00 +0000 (17:58 +0000)]
ANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67
am: 4b7f0b27a2

* commit '4b7f0b27a267e5e10894bbf438dec15e534e4cc4':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: I0ea20dd173cfaef70df4d07672810ca233fcb5f2

8 years agoANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33
Zhengyin Qian [Fri, 27 May 2016 17:57:56 +0000 (17:57 +0000)]
ANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33
am: ecb5849a5d

* commit 'ecb5849a5d8cc59828c66910f2096ac44e455ca3':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: Id35a4a5d9ccab90c0ab661e835fcd55787efa09a

8 years agoANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81
Zhengyin Qian [Fri, 27 May 2016 17:57:53 +0000 (17:57 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81
am: c33bbcd4c7

* commit 'c33bbcd4c7a2700f28af68a8673bec71ec92aacc':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: Ib6cc29b5ac94344c9c7a9766b6548563da060888

8 years agoANRdaemon: add README and a bash script to easily get trace.
Zhengyin Qian [Fri, 27 May 2016 17:50:50 +0000 (17:50 +0000)]
ANRdaemon: add README and a bash script to easily get trace.
am: 9e90477a67

* commit '9e90477a678b5b5fa6ac6dd7e78770746d6c50bf':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: Ief3f17421cc970a6b8676921b414d093c43ea880

8 years agoANRdaemon: add a few new trace options and poke all userland services
Zhengyin Qian [Fri, 27 May 2016 17:50:49 +0000 (17:50 +0000)]
ANRdaemon: add a few new trace options and poke all userland services
am: 5b42895d33

* commit '5b42895d33d72e74e3e3446e1d43fc541fbf404f':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: Ic1eac97f0b965cc8f1e2b73f26456975150acb48

8 years agoANRdaemon: increase the CPU threshold resolution to 0.01%
Zhengyin Qian [Fri, 27 May 2016 17:50:48 +0000 (17:50 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01%
am: 6d25c0bd81

* commit '6d25c0bd81eee66810339d5db3d1ecd48691d229':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: I4b8feac7f8908943ae543f096e97896e50963697

8 years agoGet encryption mode for policy
Paul Lawrence [Tue, 24 May 2016 11:57:23 +0000 (04:57 -0700)]
Get encryption mode for policy

Get encryption mode from the file saved out in vold

Bug: 28905864
Change-Id: I472a5f3f5f348943a968373910de23ad1b20b138

8 years agoRevert "Add fileencrypted=software/ice to fstab options"
Paul Lawrence [Mon, 23 May 2016 22:03:40 +0000 (22:03 +0000)]
Revert "Add fileencrypted=software/ice to fstab options"

This reverts commit e8299d81a18d16b006019f37ec9d84921d5ff845.

Bug: 28905864
Change-Id: I077f1ce7337c7ff42be67fb7acbb80ce5ee9b9ba

8 years agoANRdaemon: add README and a bash script to easily get trace.
Zhengyin Qian [Mon, 9 May 2016 18:40:18 +0000 (11:40 -0700)]
ANRdaemon: add README and a bash script to easily get trace.

Bug: 28989601
Change-Id: I5c9b819a6b05003e68d26bfacccf4c539ddab7ae

8 years agoANRdaemon: add a few new trace options and poke all userland services
Zhengyin Qian [Tue, 26 Apr 2016 22:14:27 +0000 (15:14 -0700)]
ANRdaemon: add a few new trace options and poke all userland services

Bug: 28989601
Change-Id: Ic0fdb6e0601d5e0a285d42cd9fe1a3d8d6f86286

8 years agoANRdaemon: increase the CPU threshold resolution to 0.01%
Zhengyin Qian [Tue, 26 Apr 2016 18:57:16 +0000 (11:57 -0700)]
ANRdaemon: increase the CPU threshold resolution to 0.01%

Bug: 28989601
Change-Id: If2a305bd14e8bd7c22115cbca668bd7777d0e7d2

8 years agoDisable fragments for squashfs
Mohamad Ayyash [Tue, 24 May 2016 20:53:53 +0000 (13:53 -0700)]
Disable fragments for squashfs

BUG: 28920352
BUG: 22322817
Change-Id: I01c731202ef7a2450b5d1beca627a0158c9cc3b4
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>