Commit graph

35925 commits

Author SHA1 Message Date
Adam Lesinski
7932676215 Revert "Add LOCAL_ASSET_DIR support (-A) to aapt2"
This reverts commit 996bc3ce7b.

Reason for revert: Need to update prebuilts, but prebuilts not built by server yet...

Change-Id: I87deb3ed9512278ff40c185059230dbd66524989
2017-03-15 07:00:41 +00:00
Adam Lesinski
996bc3ce7b Add LOCAL_ASSET_DIR support (-A) to aapt2
Although performing the inclusion of assets/ at a later stage is
preferable, (since aapt just copies the files) do the easy thing and
support what aapt did. In the future perhaps we can zip up the
assets/ directories when also merging in the classes.dex.

Bug: 35461578
Test: manual
Change-Id: I7cd36585e7c292e43b5528969900c6ead2b80c0b
2017-03-14 12:28:09 -07:00
Tao Bao
86839ca639 Merge "releasetools: Drop the support for BBOTA v1 and v2." am: c3e3406125 am: a592924505
am: 03c64e425c

Change-Id: I634bc6d8cbfa4940b1d107248810e50beb8a9390
2017-03-10 19:39:19 +00:00
Tao Bao
03c64e425c Merge "releasetools: Drop the support for BBOTA v1 and v2." am: c3e3406125
am: a592924505

Change-Id: I3deb77262a7768d537711703e57892b2812d1e5d
2017-03-10 19:35:47 +00:00
Tao Bao
a592924505 Merge "releasetools: Drop the support for BBOTA v1 and v2."
am: c3e3406125

Change-Id: Id4903588e514c5182f2db1126c5778f69e86a370
2017-03-10 19:32:18 +00:00
Tao Bao
c3e3406125 Merge "releasetools: Drop the support for BBOTA v1 and v2." 2017-03-10 19:25:06 +00:00
Aurimas Liutikas
4c13bee2c0 Include dynamic-animation component in docs build am: 4a89e154ab
am: dd9637eb2b  -s ours

Change-Id: I4451dd0fdb423bb3e13bf037fcfcd86f68a2a770
2017-03-10 01:50:10 +00:00
Aurimas Liutikas
dd9637eb2b Include dynamic-animation component in docs build
am: 4a89e154ab

Change-Id: I59e092315090c0ed17561d1bbd6cb06a59746685
2017-03-10 01:43:38 +00:00
Tao Bao
1da7162cd0 Merge "releasetools: Fix the missing 'post-build' in full OTAs." am: 1e8364a8be am: b538502353
am: d10f5a71a3

Change-Id: If23f78f8d80b6a9e41c511d545dcf45dbcf8c375
2017-03-10 00:45:07 +00:00
Tao Bao
d10f5a71a3 Merge "releasetools: Fix the missing 'post-build' in full OTAs." am: 1e8364a8be
am: b538502353

Change-Id: I2facefd6c08e21966dd5793c2b4a57a011d27be2
2017-03-10 00:42:04 +00:00
Aurimas Liutikas
4a89e154ab Include dynamic-animation component in docs build
Change-Id: I208ac0a1a4445012113625f3881575e2a97b63f5
2017-03-10 00:41:52 +00:00
Tao Bao
b538502353 Merge "releasetools: Fix the missing 'post-build' in full OTAs."
am: 1e8364a8be

Change-Id: I663f53f36a7cbc29a6135b548af3371b54dfe688
2017-03-10 00:39:07 +00:00
Treehugger Robot
1e8364a8be Merge "releasetools: Fix the missing 'post-build' in full OTAs." 2017-03-10 00:30:55 +00:00
Tao Bao
39f3eaf221 releasetools: Fix the missing 'post-build' in full OTAs.
The line was unintentionally removed in commit 7f804ba.

Test: ota_from_target_files.py generates a full OTA. Check the package
      metadata.

Change-Id: Icae88e2a9bb2bfc450a3d0d7ab524d6a6eac9df5
2017-03-09 15:01:11 -08:00
Tao Bao
85bfe4ac8c Merge "releasetools: Remove dead functions in EdifyGenerator." am: c87b38f547 am: debedc3343
am: dc880f5122

Change-Id: I23189ca7272094c65dd3d8aa7ed28ad8b5a2606d
2017-03-09 20:36:48 +00:00
Tao Bao
dc880f5122 Merge "releasetools: Remove dead functions in EdifyGenerator." am: c87b38f547
am: debedc3343

Change-Id: I4a335ba2babcf30ff6f8549bc0c7f38cab17ec0c
2017-03-09 20:34:44 +00:00
Tao Bao
debedc3343 Merge "releasetools: Remove dead functions in EdifyGenerator."
am: c87b38f547

Change-Id: Ia1eae3a4e401048c8cbfbf9bc85597dfc450fc4c
2017-03-09 20:31:19 +00:00
Tao Bao
8fad03e771 releasetools: Drop the support for BBOTA v1 and v2.
BBOTA v1 and v2 (introduced in L and L MR1 respectively) don't support
resumable OTA. We shouldn't generate packages using v1/v2 at the risk of
bricking devices.

BBOTA v3 (since M) and v4 (since N) both support resumable OTAs. BBOTA
v4 additionally supports using FEC to possibly recover a corrupted
image.

Bug: 33694730
Test: Generate full and incremental OTAs w/ and w/o the CL. They should
      give identical packages (in v4).
Change-Id: Ib89d9cd63ba08e8e9aa4131bed18876b89d244c0
2017-03-09 12:25:46 -08:00
Tao Bao
c87b38f547 Merge "releasetools: Remove dead functions in EdifyGenerator." 2017-03-09 20:24:19 +00:00
Tao Bao
f388104eaa releasetools: Remove dead functions in EdifyGenerator.
Remove the following functions that are needed for file-based OTAs only:
 - SetPermissions()
 - SetPermissionsRecursive()
 - MakeSymlinks()
 - DeleteFiles()
 - DeleteFilesIfNotMatching()
 - RenameFiles()
 - SkipNextActionIfTargetExists()

Bug: 35853185
Test: Verified there's no reference to these functions.
Change-Id: Iff24a9d705476211effaef28eed2a147fa5fcbce
2017-03-08 16:37:07 -08:00
bohu
7154859047 Emulator: enable GPS hidl service and impl
BUG: 36052760
Change-Id: I3fa3b6bd11e5791f284676fa82b3106725aaaa17
2017-03-08 16:27:56 -08:00
Steven Moreland
5204bb1ec9 Merge "hardware/interfaces: Android.mk always -Werror" am: df58de6303 am: 05a7a4da70
am: 270f3a4778

Change-Id: I9dc7e9dad7f661643c964ac4d307b4ad1169845e
2017-03-08 23:26:29 +00:00
Steven Moreland
270f3a4778 Merge "hardware/interfaces: Android.mk always -Werror" am: df58de6303
am: 05a7a4da70

Change-Id: I3b6ef3cd6e4b741324f50c76cc910449428e76da
2017-03-08 23:23:29 +00:00
Steven Moreland
05a7a4da70 Merge "hardware/interfaces: Android.mk always -Werror"
am: df58de6303

Change-Id: I5bc41aee011d13f7579563fa0e8e6aa6988ddc04
2017-03-08 23:20:58 +00:00
Treehugger Robot
df58de6303 Merge "hardware/interfaces: Android.mk always -Werror" 2017-03-08 23:16:35 +00:00
Tao Bao
afb8c5255c Merge "releasetools: Drop the support for file-based OTA generation." am: 9bca43858f am: aac8098d61
am: 3b848d039d

Change-Id: I9b6cb2b6502f9c9997cf0730710b9585cab4e0a5
2017-03-08 21:13:20 +00:00
Tao Bao
3b848d039d Merge "releasetools: Drop the support for file-based OTA generation." am: 9bca43858f
am: aac8098d61

Change-Id: I795c0c7ff0342526e45ddfffa9f72e5e429b16b4
2017-03-08 21:10:19 +00:00
Tao Bao
aac8098d61 Merge "releasetools: Drop the support for file-based OTA generation."
am: 9bca43858f

Change-Id: Ifffa94ab131ea25194517bad1c75a7ba504b1c7c
2017-03-08 21:07:19 +00:00
Tao Bao
9bca43858f Merge "releasetools: Drop the support for file-based OTA generation." 2017-03-08 21:00:03 +00:00
Dan Willemsen
266b2c2f55 Merge changes Ia5ce6870,I155654cd am: c619f99e2f am: 6ffe13f8e7
am: 53d64224ab

Change-Id: Id25a30a8616d50a661fdd978e68e485e6ed81633
2017-03-08 20:57:48 +00:00
Dan Willemsen
53d64224ab Merge changes Ia5ce6870,I155654cd am: c619f99e2f
am: 6ffe13f8e7

Change-Id: Ie5f114fb34e95c189936d73472f502c82c292a9f
2017-03-08 20:54:48 +00:00
Dan Willemsen
6ffe13f8e7 Merge changes Ia5ce6870,I155654cd
am: c619f99e2f

Change-Id: I5006c4e87607a55f914b90f7218802bc29fc76c5
2017-03-08 20:51:19 +00:00
Dan Willemsen
c619f99e2f Merge changes Ia5ce6870,I155654cd
* changes:
  Zip after add_img_to_target_files
  Allow add_img_to_target_files to work on a directory
2017-03-08 20:45:56 +00:00
Tao Bao
25643f313a Merge "releasetools: Reduce memory footprint for BBOTA generation." am: 3b1f260205 am: cf82616047
am: a56e7c81e2

Change-Id: Ie0717b0b71b791c1dca826735d31c03a7f4728b1
2017-03-08 17:55:34 +00:00
Tao Bao
a56e7c81e2 Merge "releasetools: Reduce memory footprint for BBOTA generation." am: 3b1f260205
am: cf82616047

Change-Id: I26b65079be3c6e72025e1b5705205bbabdc8fca9
2017-03-08 17:51:05 +00:00
Tao Bao
cf82616047 Merge "releasetools: Reduce memory footprint for BBOTA generation."
am: 3b1f260205

Change-Id: I2b141db33f2a350d5280fb534999052c1ef439b2
2017-03-08 17:48:36 +00:00
Tao Bao
3b1f260205 Merge "releasetools: Reduce memory footprint for BBOTA generation." 2017-03-08 17:43:34 +00:00
Steven Moreland
324c436084 hardware/interfaces: Android.mk always -Werror
Bug: 35840847
Test: pass
Change-Id: I6ebf3f5d279ff405446592cdabaeca9d1fdf6cf9
2017-03-08 16:29:50 +00:00
Sen Jiang
a142eae939 Merge "Put system_version in target_files.zip" am: 3838ae7e9b am: 75a7a591ba
am: f1f1266fb1

Change-Id: Ib01d1fa4ed6f082fa115f3a0df8f160bb0499e8b
2017-03-08 03:30:42 +00:00
Sen Jiang
f1f1266fb1 Merge "Put system_version in target_files.zip" am: 3838ae7e9b
am: 75a7a591ba

Change-Id: I24c3d03dd9c30ec67dc7f9231da392f811650b20
2017-03-08 03:28:11 +00:00
Sen Jiang
75a7a591ba Merge "Put system_version in target_files.zip"
am: 3838ae7e9b

Change-Id: I357ce185442ec04c028858f187e42187c062a287
2017-03-08 03:25:41 +00:00
Treehugger Robot
3838ae7e9b Merge "Put system_version in target_files.zip" 2017-03-08 03:21:43 +00:00
Sen Jiang
9b8e4ca518 Put system_version in target_files.zip
Bug: 35364984
Test: m dist
Change-Id: I309acb41eb85de239c4c1718e14d9442ca1b0408
(cherry picked from commit cea4d52d2fee19281e660943129e1ad3bdc51fef)
2017-03-07 17:40:27 -08:00
Dan Willemsen
2a5a34f6bd Zip after add_img_to_target_files
For aosp_marlin (on AOSP), this speeds up target files creation from
~57 seconds to ~15 seconds.

For marlin-userdebug (on internal master), this speeds up target files
creation from ~300 seconds to ~95 seconds.

This does make some minor changes to the resulting target_files zip:

* All of the META files are actually at the beginning of the zip now,
  previously the ones created by add_img_to_target_files would be at
  the end.
* The images are slightly larger. Go's zip implementation in soong_zip
  isn't quite as good as the `zip` tool.
* vendor_filesystem_config.txt isn't present if we're not building a
  vendor image.

Test: aosp_marlin target_files zip changes look reasonable
Test: marlin target_files zip changes look reasonable
Test: bullhead target_files zip changes look reasonable
Change-Id: Ia5ce6870b85559d65107c3b94332391b4b43a0ea
2017-03-07 15:28:42 -08:00
Dan Willemsen
2ee00d5f66 Allow add_img_to_target_files to work on a directory
In addition to the current behavior of add_img_to_target_files working
on an existing zip file, allow passing in a directory where the target
files have already been extracted. When in this mode, it writes the
images out to that directory instead of the zip file.

This allows us to call add_img_to_target_files on the temp directory
used during the build to create the target files package, saving the
time and space of unzipping what we just zipped. This also allows us to
use the parallel soong_zip, which compresses the images much faster.

Test: aosp_marlin target_files zip is the same before/after this change
Test: marlin target_files zip is the same before/after this change
Test: bullhead target_files zip is the same before/after this change
Change-Id: I155654cdc7ad7754ba4ef76ec69c31f504a58198
2017-03-07 14:37:52 -08:00
Steven Moreland
a971398525 Merge "Add vnod." am: 2b33e46593 am: 0e1913f4ff
am: f2d838a52e

Change-Id: I0770f7552d1fa9578824d1bb342e8021b3bb089f
2017-03-07 22:08:49 +00:00
Steven Moreland
f2d838a52e Merge "Add vnod." am: 2b33e46593
am: 0e1913f4ff

Change-Id: Ibea28328b1267cbcf7a326ace2c448f8a2b6b792
2017-03-07 22:01:49 +00:00
Steven Moreland
0e1913f4ff Merge "Add vnod."
am: 2b33e46593

Change-Id: I006ef6b77e33f5b6e075fa392326e3e0eebb4610
2017-03-07 21:59:18 +00:00
Treehugger Robot
2b33e46593 Merge "Add vnod." 2017-03-07 21:54:07 +00:00
Steven Moreland
a2e734d786 Add vnod.
Short name for vendorimage-nodeps like snod.

Bug: 33356516
Test: works
Change-Id: Iad62aa5a021d603fa9cebe90f4e28cf09d5d49ae
2017-03-07 12:17:51 -08:00