Commit Graph

2904 Commits

Author SHA1 Message Date
Tao Bao
5ece99d64e Add support for clobbered blocks
In ext4 filesystems, some blocks might be changed even being mounted
R/O, such as the superblock (block 0). We need to exclude such blocks
from integrity verification. Plus such blocks should always be
written to the target by copying instead of patching.

Bug: http://b/20939131
Change-Id: I657025b7b1ad50d4365e7b18dc39308facfe864e
(cherry picked from commit ff7778166b)
2015-05-13 12:26:04 -07:00
Tao Bao
f3282b4a7f Wrap zipfile.write(), writestr() and close()
In order to work around the zip 2GiB limit, we need to wrap the related
functions in zipfile. Calls to those functions should always be replaced
with calls to the wrappers instead.

Bug: 18015246
Change-Id: I499574cee51ec4804bc10cbefe0b17940afed918
(cherry picked from commit 2ed665a033)
2015-05-08 15:53:27 -07:00
Joe Fernandez
ad79cc6741 am c4ef9bb0: am a9d796a4: docs: Add navigation heading for Develop > Preview
* commit 'c4ef9bb08f504c3ca58727403f607cd051edbf5d':
  docs: Add navigation heading for Develop > Preview
2015-05-07 06:42:07 +00:00
Joe Fernandez
c4ef9bb08f am a9d796a4: docs: Add navigation heading for Develop > Preview
* commit 'a9d796a4f9e198f17de6f1a27264b1b4fc9a778a':
  docs: Add navigation heading for Develop > Preview
2015-05-07 06:29:59 +00:00
Joe Fernandez
a9d796a4f9 docs: Add navigation heading for Develop > Preview
Change-Id: I133672c6ecb5e778f49c31d091812ed7b6dc6b24
2015-05-06 22:24:31 -07:00
Dirk Dougherty
0717cb2251 am e94fcf31: am 29e93436: Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.
* commit 'e94fcf31a08a7cce45171b5f8cce29b50d2cefd8':
  Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.
2015-05-06 17:13:01 +00:00
Dirk Dougherty
e94fcf31a0 am 29e93436: Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.
* commit '29e934367b927fb13417bee77008600ad5a39dcc':
  Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.
2015-05-06 17:00:22 +00:00
Dirk Dougherty
29e934367b Swap templates-sdk and templates-sdk-dev files to enable redesign builds by default.
Change-Id: I9eabbbcd823fb29bd2209172c458cb9dad5f24d2
2015-05-05 18:17:13 -07:00
Dirk Dougherty
5c73ba6e03 am e99d5320: am 032a4946: Doc change: css/js, assets for landing page, header/footer designs.
* commit 'e99d5320dd70de6f5ada67dd0c2dd9761e6a6c32':
  Doc change: css/js, assets for landing page, header/footer designs.
2015-05-05 02:35:03 +00:00
Dirk Dougherty
e99d5320dd am 032a4946: Doc change: css/js, assets for landing page, header/footer designs.
* commit '032a494654978c3ceed73268f99615ff3d0d686e':
  Doc change: css/js, assets for landing page, header/footer designs.
2015-05-05 02:23:28 +00:00
Dirk Dougherty
3c339ae4fd am 55abf4c2: am ff233cc9: Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.
* commit '55abf4c22d08693cfb2838a79654fc32c7de3ff8':
  Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.
2015-05-05 01:48:10 +00:00
Dirk Dougherty
032a494654 Doc change: css/js, assets for landing page, header/footer designs.
Change-Id: I9430a725bd7ba12cb0ac7da1a5ed9c3bfa8e321e
2015-05-04 18:17:33 -07:00
Dirk Dougherty
55abf4c22d am ff233cc9: Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.
* commit 'ff233cc92e379d501d8b256ba9a015827d77e012':
  Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.
2015-05-05 01:04:31 +00:00
Joe Fernandez
6f7608cf8f am 657b2971: am fa6ee37f: am 53b98761: docs: fix sticky header hiding RenderScript reference headings
* commit '657b2971f8a6f4a1b6dac68915c557304970d716':
  docs: fix sticky header hiding RenderScript reference headings
2015-05-04 22:19:28 +00:00
Joe Fernandez
c135a7f993 am 63904d26: am 03b107c8: docs: update masthead template for Preview docs
* commit '63904d26ad473d8446fea12775ef37e9ae2c8e59':
  docs: update masthead template for Preview docs
2015-05-04 22:19:27 +00:00
Dirk Dougherty
ff233cc92e Doc change: remove deprecated templates-sdk-dyn files, add new development files based on production templates-sdk.
Change-Id: I5a94aaa8ba375010191a12f210954c22395fed40
2015-05-04 14:37:05 -07:00
Joe Fernandez
657b2971f8 am fa6ee37f: am 53b98761: docs: fix sticky header hiding RenderScript reference headings
* commit 'fa6ee37fae42ef08ebcb63dcaf8122f0f6f5311a':
  docs: fix sticky header hiding RenderScript reference headings
2015-05-01 23:14:51 +00:00
Joe Fernandez
fa6ee37fae am 53b98761: docs: fix sticky header hiding RenderScript reference headings
* commit '53b98761b288fcf833db62bb4700fba20b319961':
  docs: fix sticky header hiding RenderScript reference headings
2015-05-01 23:05:35 +00:00
Mohamad Ayyash
95e74c1424 common.py: Add support for squashfs
Change-Id: Ia40f8c6307d0213d43207aee91c4c8a5b5ad6f1e
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
2015-05-01 15:58:42 -07:00
Joe Fernandez
63904d26ad am 03b107c8: docs: update masthead template for Preview docs
* commit '03b107c8563c5edf5fe25435e609329d1fc7a62f':
  docs: update masthead template for Preview docs
2015-05-01 22:57:46 +00:00
Joe Fernandez
03b107c856 docs: update masthead template for Preview docs
Change-Id: I00ec56064a5193491fce5389cdff7cb5824e567c
2015-05-01 15:45:32 -07:00
Joe Fernandez
53b98761b2 docs: fix sticky header hiding RenderScript reference headings
b/20637508

Change-Id: I64996db4fc986cbe0f4506b5524a708a9e14cbc8
2015-04-29 21:04:14 -07:00
Jeff Brown
7f2ceab5af Add float support to binary event log.
Bug: 20664753
Change-Id: Iab232b1f172094919839d57f15644dfb2eaa1425
2015-04-28 17:52:07 -07:00
Sami Tolvanen
3edeb4e97b am 045d817c: am 497b74d5: am d21d1d27: am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"
* commit '045d817cce8cb1feb0186b537306cabf1a5069cd':
  Check partition hash before resorting to block_image_verify
2015-04-25 10:01:53 +00:00
Sami Tolvanen
497b74d5a2 am d21d1d27: am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"
* commit 'd21d1d273b83e701667beeabe0c76fd6888e15fc':
  Check partition hash before resorting to block_image_verify
2015-04-25 09:32:33 +00:00
Sami Tolvanen
e09d096ed6 Check partition hash before resorting to block_image_verify
It's not necessary to call block_image_verify for the most common
case where we attempt an update for the first time and the target
partition has expected contents. It is sufficient to confirm that
the target partition is intact.

Computing a hash is much faster than simulating the update, which
means this change should make the update speed for v3 much closer
to v2 for the common case. If the update was interrupted, this is
going to make resuming somewhat slower, of course. Hopefully this
should be rather rare.

Bug: 20309033
Change-Id: I04792f3681bf2cd5d9a4e1c41eb883c7f26c6f58
2015-04-24 10:56:59 +00:00
Tao Bao
1699a90b21 am b93b9ec4: am d8c62ae5: am 347d8e66: am 7f47c133: Merge "Add support for full radio option"
* commit 'b93b9ec42d008a5478018d8055791e1d1449fa36':
  Add support for full radio option
2015-04-22 22:18:52 +00:00
Tao Bao
d8c62ae577 am 347d8e66: am 7f47c133: Merge "Add support for full radio option"
* commit '347d8e66228ab09af1ec458632cb51c20a818e06':
  Add support for full radio option
2015-04-22 18:55:14 +00:00
Tao Bao
43078aa37a Add support for full radio option
Occasionally we need to include full radio image in incremental OTAs.
Adding --full_radio option to support that.

It needs matching changes in the releasetools.py in the target_files
zip, which comes from device/<vendor>/<device>/releasetools.py.

Bug: 19994922
Change-Id: Id1fb3a9cdb7e67dd9dbadd8fb6cd5fccd358820e
2015-04-21 16:54:52 -07:00
Ryosuke Matsuuchi
40af438100 doc: Add Korean version of DAC/distribute/ page.
Bug: 20204101
Change-Id: I1b76fe136b4e059c1af94dee8bf54d1ae764954d
(cherry picked from commit 25799ca584)
2015-04-19 23:09:37 +00:00
Ryosuke Matsuuchi
dd56f344a5 am bdc47592: am 959d12b1: am f98bdce1: am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs
* commit 'bdc47592dbf4b6258b947677f38b0ef95b6ea241':
  doc: Add Korean version of DAC/distribute/ page.
2015-04-19 05:53:32 +00:00
Ryosuke Matsuuchi
bdc47592db am 959d12b1: am f98bdce1: am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs
* commit '959d12b11eabfde1c7b4688eda44b90d0e641d2e':
  doc: Add Korean version of DAC/distribute/ page.
2015-04-19 00:55:07 +00:00
Ryosuke Matsuuchi
f98bdce10b am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs
* commit '90ac39d2b56171b92f8d136fb8e35a63f8b70ff1':
  doc: Add Korean version of DAC/distribute/ page.
2015-04-19 00:38:45 +00:00
Sami Tolvanen
8f9f7c0672 am c4d303e9: am 7788547f: am 586b38cc: Merge "Calculate max_stashed_blocks correctly for block OTA v3"
* commit 'c4d303e958e1f3475fd1070bdb307b4f675f3bdd':
  Calculate max_stashed_blocks correctly for block OTA v3
2015-04-17 19:30:23 +00:00
Sami Tolvanen
c4d303e958 am 7788547f: am 586b38cc: Merge "Calculate max_stashed_blocks correctly for block OTA v3"
* commit '7788547ff34d93b5196933eedb9f006fb1fe9f4d':
  Calculate max_stashed_blocks correctly for block OTA v3
2015-04-17 19:09:02 +00:00
Sami Tolvanen
29f529f33e Calculate max_stashed_blocks correctly for block OTA v3
The updater automatically stashes overlapping source blocks to
make it possible to resume if the command performing the update
is interrupted. However, blockimgdiff.py does not take this into
account and therefore, max_stashed_blocks indicates only the
number of explicitly stashed blocks. Change blockimgdiff.py to
correctly calculate the maximum used stash space, including any
automatically stashed blocks.

Bug: 20309033
Change-Id: Ibf5cb1abc38c54e60a6ad3ce4cbce43556b08ac2
2015-04-17 16:28:08 +01:00
Ryosuke Matsuuchi
25799ca584 doc: Add Korean version of DAC/distribute/ page.
Bug: 20204101
Change-Id: I1b76fe136b4e059c1af94dee8bf54d1ae764954d
2015-04-17 12:15:38 +09:00
Glenn Kasten
6716ca263f am 144423a0: am 9ec90ec8: am 1004eccb: Merge "Fix bookmark title"
* commit '144423a0580fe03a00053da785bcfdc8e46a87b5':
  Fix bookmark title
2015-04-16 23:59:05 +00:00
Glenn Kasten
144423a058 am 9ec90ec8: am 1004eccb: Merge "Fix bookmark title"
* commit '9ec90ec81347aa71eb7538c5e8354c3ffbd858e8':
  Fix bookmark title
2015-04-16 23:37:23 +00:00
Glenn Kasten
1004eccb16 Merge "Fix bookmark title" 2015-04-16 23:12:50 +00:00
Glenn Kasten
1efbc8996e Fix bookmark title
Bug: 20299601
Change-Id: Ie57daf7b378cf370e34ff282d97fd36f2d74031a
2015-04-16 11:56:22 -07:00
Mark Salyzyn
36972044fb am db6a4158: am 86e441fc: am 1ff61a9b: Merge "build: fs_config_generate must open file in binary mode"
* commit 'db6a4158fe45c1ff94fe71a94ea48ebb24c16799':
  build: fs_config_generate must open file in binary mode
2015-04-16 17:53:46 +00:00
Mark Salyzyn
db6a4158fe am 86e441fc: am 1ff61a9b: Merge "build: fs_config_generate must open file in binary mode"
* commit '86e441fc9c4191439b53b9917cf432ca2d16330a':
  build: fs_config_generate must open file in binary mode
2015-04-16 17:31:36 +00:00
Mark Salyzyn
6024069f37 build: fs_config_generate must open file in binary mode
Bug: 19908228
Change-Id: I2361b8af90b3729deb438e6a7a7179de12680b65
2015-04-16 08:43:33 -07:00
Mark Salyzyn
a55ab6fff6 am d756e736: am c9402076: am 7a1d4d5e: Merge "fs_config: Add fs_config_generate"
* commit 'd756e7367ab60d5e4138d7561aaabf4256e3d247':
  fs_config: Add fs_config_generate
2015-04-16 00:38:06 +00:00
Mark Salyzyn
d756e7367a am c9402076: am 7a1d4d5e: Merge "fs_config: Add fs_config_generate"
* commit 'c9402076b65025c994c28bac0350d5b600d1d6fe':
  fs_config: Add fs_config_generate
2015-04-16 00:15:47 +00:00
Mark Salyzyn
a910c7bd58 am 54c1d36e: am 5a1c89e9: am 36fb373a: Merge "fs_config: use libcutils and libselinux shared libraries"
* commit '54c1d36eaee59c62a652b071bdec9e71c40002ae':
  fs_config: use libcutils and libselinux shared libraries
2015-04-15 22:56:22 +00:00
Mark Salyzyn
54c1d36eae am 5a1c89e9: am 36fb373a: Merge "fs_config: use libcutils and libselinux shared libraries"
* commit '5a1c89e94ee4a96e31bd66f01a27c2c75cba4065':
  fs_config: use libcutils and libselinux shared libraries
2015-04-15 22:40:50 +00:00
Mark Salyzyn
06b91b9bcf fs_config: Add fs_config_generate
fs_config_generate_$(TARGET_DEVICE) is built based off the content
of $(TARGET_ANDROID_FILESYSTEM_CONFIG_H). We also add the rules
fs_config_dirs and fs_config_file to utilize this command
for target contents:

fs_config_generate_$(TARGET_DEVICE) -D -o system/etc/fs_config_dir
fs_config_generate_$(TARGET_DEVICE) -F -o system/etc/fs_config_file

In order to use this feature, one must have the fs_config_dirs and
fs_config_files in the $(PRODUCT_PACKAGES) list defined in the
device make files in $(TARGET_DEVICE_DIR). And either an
android_filesystem_config.h file in that directory, or define a
path in TARGET_ANDROID_FILESYSTEM_CONFIG_H to point to one.

Bug: 19908228
Change-Id: Iee1543d99169f874e0915ae07962a7750ecb6342
2015-04-15 14:17:12 -07:00
Mark Salyzyn
073a9ebbbf fs_config: use libcutils and libselinux shared libraries
- move to libcutils.so and libselinux.so as shared now that
  they are in DISTTOOL.
- liblog dependency is part of libcutils, and need not be
  called out explicitly now. liblog is in DISTTOOL.
- libcutils fs_config has the right to add Android logging

Bug: 19908228
Change-Id: Iaa60ad624b42d83653840ac3c77bfa03ad8674aa
2015-04-15 14:17:07 -07:00