Commit Graph

19551 Commits

Author SHA1 Message Date
Ying Wang 43f7a3226a Support prebuilt apk source selection based on PRODUCT_AAPT_PREF_CONFIG
Two new LOCAL variables are added to support dpi-specific prebuilt apk
selection:
- LOCAL_DPI_VARIANTS: specify a list of dpis the module provides with
  specific prebuilt.
  Example: LOCAL_DPI_VARIANTS := xxhdpi xhdpi hdpi mdpi
- LOCAL_DPI_FILE_STEM: specify the dpi-specific source file name
  pattern.
  Example: LOCAL_DPI_FILE_STEM := MyApp-%.apk
  "%" will be substitued by $(PRODUCT_AAPT_PREF_CONFIG) in the core
  build system.
  If you don't set up LOCAL_DPI_FILE_STEM, the default is
  $(LOCAL_MODULE)_%.apk.

The build system searches $(PRODUCT_AAPT_PREF_CONFIG) in a prebuilt apk
module's $(LOCAL_DPI_VARIANTS). If not found, use whatever
$(LOCAL_SRC_FILES) as the source file; Otherwise use $(LOCAL_DPI_FILE_STEM)
to construct the dpi-specific apk's source file name, and use whatever
directory name of $(LOCAL_SRC_FILES).

Bug: 18388705
Change-Id: I63cae73f1b6f880302142abc476b3ce1fb5500b5
2014-11-17 17:05:27 -08:00
Ying Wang 1b879e3c26 Fix PDK build.
Add frameworks/base/preloaded-classes to PRODUCT_COPY_FILES only if it
exists in the source tree.

Bug: 18305157
Change-Id: I46c277ebfb8095f9e5fe0fbb21276d932509f2eb
2014-11-17 11:01:18 -08:00
Ying Wang 9a9d180ff1 Install preloaded-classes as a standalone configuration file
Install preloaded-classes as a standalone configuration file
/system/etc/preloaded-classes, so we can configure different file per product.
To override the default frameworks/base/preloaded-classes, just override
in your product configuration makefile with PRODUCT_COPY_FILES before it
inherits from build/target/product/base.mk: if there are multiple items
in PRODUCT_COPY_FILES with the same destination, the first one takes
precedence.

Bug: 18305157
Change-Id: I937632b4a1aa73310ec90e73fd708fbd0c704a21
2014-11-14 15:38:54 -08:00
Michael Runge 100a9f0720 am 11d21015: am f178d364: Merge "Allow images to be readded to target-files" into lmp-dev
* commit '11d210154d71a229e20eaebd6f9ea580b0c7f036':
  Allow images to be readded to target-files
2014-11-14 07:19:58 +00:00
Michael Runge 11d210154d am f178d364: Merge "Allow images to be readded to target-files" into lmp-dev
* commit 'f178d36441c3a688cfe5eb41a5ce724ba01a4ecf':
  Allow images to be readded to target-files
2014-11-14 07:17:22 +00:00
Michael Runge f178d36441 Merge "Allow images to be readded to target-files" into lmp-dev 2014-11-14 07:14:48 +00:00
Michael Runge 2e0d8fcf08 Allow images to be readded to target-files
There may be cases where various partitions were
modified (such as extra signing of boot/recovery)
which require the system partition to be regenerated
with a new recovery patch script.  Allow a request
for the recovery patch to be rebuilt, and for
missing images to be readded to the existing images.

Change-Id: Ie93c5bc1161a0d5002002dca23e07742ce2ba468
2014-11-13 22:55:35 -08:00
Paul Lawrence a37b2bb236 Fix the build
Bug: 15984840
Bug: 18120110
Change-Id: I0224d5a31e03b711953d9496ecb00b6d88b8ef4c
2014-11-14 02:04:33 +00:00
Sami Tolvanen 8d212ea873 DO NOT MERGE: Change verity key formats
Change boot, recovery, and verity metadata signing keys to use the
same PKCS8 / X.509 PEM format as the other signing keys, and update
build scripts to use correct arguments for the updated signing
tools.

Bug: 15984840
Bug: 18120110
Change-Id: I23ed5a004ecdad6cf7696487935ad5031eb8adf8
(cherry picked from commit 72d90eb189)
2014-11-13 23:23:31 +00:00
Greg Hartman 2ebfef4484 Restore the diskinstaller dependency, since it's needed for GCE.
Change-Id: Ieb2695afbe551e829357bad56d5fe1501165b495
2014-11-11 02:27:46 +00:00
Greg Hartman 4c46710e7a Add a hook for the syslinux bootloader.
Change-Id: Ia8638e9dcb025743a66c52ad43b161ee70602c89
2014-11-11 02:26:50 +00:00
Igor Murashkin 6e27e3de86 am 964935b8: core: Use WITH_DEXPREOPT_PIC=true to have dex2oat build pic oat files
* commit '964935b8a6ef52f090eb6f48875db5ebb32962cf':
  core: Use WITH_DEXPREOPT_PIC=true to have dex2oat build pic oat files
2014-11-11 00:12:00 +00:00
Ying Wang 461850dab1 resolved conflicts for merge of 0a7fcb00 to lmp-mr1-dev
Change-Id: Ia780b29bfc9a7b3409bf04ba0e18e937c9467a0f
2014-11-10 16:07:40 -08:00
Igor Murashkin 964935b8a6 core: Use WITH_DEXPREOPT_PIC=true to have dex2oat build pic oat files
When WITH_DEXPREOPT=true is set, if we also set WITH_DEXPREOPT_PIC=true
then the build will generate position-independent OAT images.

This means that all the system applications no longer need to be
relocated into /data/dalvik-cache and this can achieve saving disk space
at the cost of slightly slower running code.

Bug: 18035729

(cherry picked from commit da9f1a7e82)

Change-Id: I9d5f12bbe7d0287784ac7e941fba090fce3ce3df
2014-11-10 12:53:42 -08:00
Ying Wang 0a7fcb00ab Introduce per-product per-module dex-preopt config
- Added LOCAL_DEX_PREOPT_FLAGS to pass extra flags to dex2oat.
- Added macro add-product-dex-preopt-module-config to specify almost
  arbitrary dex-preopt config/flags to modules in product
  configuration:
  $(call \
  add-product-dex-preopt-module-config,<module_name_list>,<config_or_flags>)
  How <config_or_flags> is interpreted is decided by
  dex_preopt_odex_install.mk and dex2oat. For now if it's "disable" we
  disable dexpreopt for the given modules; otherwise pass it to dex2oat as
  command line flags.
- If there are multiple configs for the same module in the product
  inheritance, the first takes precedence.
- Added PRODUCT_DEX_PREOPT_DEFAULT_FLAGS so you can specify default
  dex2oat flags in product configuration.
- Added PRODUCT_DEX_PREOPT_BOOT_FLAGS to specify flags of building boot.oat.

Bug: 17791867
(cherry picked from commit 20ebd2ef08)

(cherry picked from commit 70d617aaf5)

Change-Id: I86f125dd02290d0969704142a4405ebd6729c4f7
2014-11-10 12:51:26 -08:00
Dirk Dougherty eb83a3ed74 am be9f16d0: am 48a97e01: am 87e469ea: Doc change: increment query params for js metadata files to trigger proxy flush.
* commit 'be9f16d08b7cec10ac5c3dba93291db404be27f8':
  Doc change: increment query params for js metadata files to trigger proxy flush.
2014-11-06 20:34:22 +00:00
Dirk Dougherty be9f16d08b am 48a97e01: am 87e469ea: Doc change: increment query params for js metadata files to trigger proxy flush.
* commit '48a97e0139f3d100d10a8da9f462b5b376a84593':
  Doc change: increment query params for js metadata files to trigger proxy flush.
2014-11-06 05:17:35 +00:00
Dirk Dougherty 48a97e0139 am 87e469ea: Doc change: increment query params for js metadata files to trigger proxy flush.
* commit '87e469ea87a7a3b3142f1d2efd89d602a3ede529':
  Doc change: increment query params for js metadata files to trigger proxy flush.
2014-11-06 05:14:27 +00:00
Dirk Dougherty 87e469ea87 Doc change: increment query params for js metadata files to trigger proxy flush.
Change-Id: Ic6f5756d44f1ec08485ac67a0258a4abae845222
2014-11-05 20:11:23 -08:00
Stephen Hines 11054d5edb Add bcc to core_tiny.mk.
automerge: bdac04e

* commit 'bdac04e0f6002e95ce734a097d2c12236ed482fa':
  Add bcc to core_tiny.mk.
2014-11-06 00:32:01 +00:00
Stephen Hines bdac04e0f6 Add bcc to core_tiny.mk.
Bug: 18257466

Also update the core.mk documentation that has gone slightly out of date.

Change-Id: I90ed64e2509dad3d78d451dd4a7d8c3dfd01532c
2014-11-05 13:19:56 -08:00
Nick Kralevich a94282c659 Mount tmpfs on /cores
Proper selinux labeling support for files on rootfs was
never completely implemented. Instead of putting coredump
files on rootfs, put them on tmpfs instead.

See: http://www.mail-archive.com/seandroid-list@tycho.nsa.gov/msg01815.html

Bug: 18227650
Change-Id: I2eeabee4fe1a14bfbf990a4a518d538d6b4b6e87
2014-11-05 05:03:45 +00:00
Iliyan Malchev af5de97b8a rename coredump-* --> coredump_*
b/18229600 shamu kernel is failing to build on build machine

Change-Id: Ia67443853443e4d7db9311bf8da69a5dc0da8e5e
Signed-off-by: Iliyan Malchev <malchev@google.com>
2014-11-04 21:01:18 -08:00
Justin Morey 29d225c992 Set a default value for TARGET_BUILD_DENSITY
If no density value is specified when invoking tapas, we now export
a default value of 'alldpi'

Change-Id: I12b22a4cbd0ef604826aad66c5f7ab9271eb6d57
2014-11-04 13:35:51 -06:00
smain@google.com abcb155250 am 04a4f1d0: am 05e55e90: Merge "add butterbar for L announcement. make the butterbar an encapsulated method for inclusion multiple places." into klp-modular-docs automerge: d1ab4cb automerge: dd5adb3
* commit '04a4f1d031914302f9dc9244807e84fe640d3ebc':
2014-11-04 07:22:49 +00:00
smain@google.com 04a4f1d031 am 05e55e90: Merge "add butterbar for L announcement. make the butterbar an encapsulated method for inclusion multiple places." into klp-modular-docs automerge: d1ab4cb
automerge: dd5adb3

* commit 'dd5adb3bc0be42081bffb0d4722c4b9639ee31db':
2014-11-04 07:13:03 +00:00
smain@google.com fc175efc5c am 4d4615d2: am 632070c9: hide the Helpouts recruitment banner
* commit '4d4615d2e253e7c806c393a2b23fe07f495eaf56':
  hide the Helpouts recruitment banner
2014-11-04 04:14:14 +00:00
smain@google.com 4d4615d2e2 am 632070c9: hide the Helpouts recruitment banner
* commit '632070c9400dea40edd4a00eb9db9d89e3852601':
  hide the Helpouts recruitment banner
2014-11-04 04:00:11 +00:00
smain@google.com 69d8f2d395 am bc13779d: hide the Helpouts recruitment banner
* commit 'bc13779d664a51efc0fb9ac489d2724cca2536fb':
  hide the Helpouts recruitment banner
2014-11-04 02:38:42 +00:00
smain@google.com 632070c940 hide the Helpouts recruitment banner
Change-Id: I30cd8eb0edd8634bd6dd2f0900763c6bdd866953
(cherry picked from commit bc13779d66)
2014-11-04 02:30:38 +00:00
smain@google.com bc13779d66 hide the Helpouts recruitment banner
Change-Id: I30cd8eb0edd8634bd6dd2f0900763c6bdd866953
2014-11-03 18:28:17 -08:00
Iliyan Malchev e675cfbfb9 build: rename coredump-setup --> coredump_setup
b/18229600 shamu kernel is failing to build on build machine
Change-Id: I1b7e6d0ebf3e966a89ae4c7fed0cfd2db3f0a6a9
Signed-off-by: Iliyan Malchev <malchev@google.com>
2014-11-04 01:08:31 +00:00
Dirk Dougherty 04a9564759 am 792fb0e6: am 4244929f: Merge "Doc change: increment the json import versions in docfile." into lmp-docs
* commit '792fb0e6b29a9adfb3705d2fa993f3af27c267a7':
  Doc change: increment the json import versions in docfile.
2014-11-03 21:11:04 +00:00
Dirk Dougherty 792fb0e6b2 am 4244929f: Merge "Doc change: increment the json import versions in docfile." into lmp-docs
* commit '4244929faaaffe957e8f23f3f261fd3acdbc928c':
  Doc change: increment the json import versions in docfile.
2014-11-03 20:57:01 +00:00
Dirk Dougherty 4244929faa Merge "Doc change: increment the json import versions in docfile." into lmp-docs 2014-11-03 20:51:47 +00:00
Dirk Dougherty f6e48da07f Doc change: increment the json import versions in docfile.
Change-Id: I5ffd1810c83a333ae37e5d9c1b8dd0bdbd8cb376
2014-11-03 12:48:08 -08:00
smain@google.com 6d96557088 am 83bae4aa: am bc667f1c: am 08f336ea: fix regression from Change-Id: I88c1e8192f1cbb5373af592b9e9f9a04ffe6fc7c that causes anchors in most docs other than reference to stop working automerge: 36b1de7
* commit '83bae4aad4df090d30435249941fd5348aa69b16':
2014-11-03 20:33:34 +00:00
smain@google.com 22d6c273d3 am 358c5fe5: am f4cefc19: am 633f322b: update the analytics tracking event calls to use new API for analytics.js bug: 16331906 automerge: 40e1d35
* commit '358c5fe5f70d263fdc3bc66c283d4f680076b6e0':
2014-11-03 20:33:32 +00:00
smain@google.com 83bae4aad4 am bc667f1c: am 08f336ea: fix regression from Change-Id: I88c1e8192f1cbb5373af592b9e9f9a04ffe6fc7c that causes anchors in most docs other than reference to stop working
automerge: 36b1de7

* commit '36b1de7334f82a7df3728597f0437aedb02dccef':
2014-11-03 20:23:32 +00:00
smain@google.com 358c5fe5f7 am f4cefc19: am 633f322b: update the analytics tracking event calls to use new API for analytics.js bug: 16331906
automerge: 40e1d35

* commit '40e1d35527098ed10c50e1509d7dee9fa9b19c97':
2014-11-03 20:21:13 +00:00
smain@google.com 394ee3b8fe am 4a8fd5fd: am 80e38f48: remove cookie expiration and add max-age of 2 years. bug: 17781603
* commit '4a8fd5fdd2bbbe1afa27e65738aae77aeb60c172':
  remove cookie expiration and add max-age of 2 years. bug: 17781603
2014-11-03 20:03:02 +00:00
smain@google.com de5dc9a564 am f51f30d7: remove cookie expiration and add max-age of 2 years. bug: 17781603
* commit 'f51f30d7f10a32e07a081b799d9ae601be08276c':
  remove cookie expiration and add max-age of 2 years. bug: 17781603
2014-11-03 19:57:38 +00:00
smain@google.com 4a8fd5fdd2 am 80e38f48: remove cookie expiration and add max-age of 2 years. bug: 17781603
* commit '80e38f4872941cbf0114ad80e260993f1eafc14c':
  remove cookie expiration and add max-age of 2 years. bug: 17781603
2014-11-03 19:52:41 +00:00
smain@google.com 80e38f4872 remove cookie expiration and add max-age of 2 years.
bug: 17781603

Change-Id: Idab3cae786fde4d0318ba03d3c7f5f678882b815
(cherry picked from commit f51f30d7f1)
2014-11-03 19:40:48 +00:00
smain@google.com f51f30d7f1 remove cookie expiration and add max-age of 2 years.
bug: 17781603

Change-Id: Idab3cae786fde4d0318ba03d3c7f5f678882b815
2014-11-03 11:39:00 -08:00
Dirk Dougherty b6dfc2d2f7 am 963afcbb: am 9b7f8f20: Doc change: start search suggestions at two characters instead of three, so that tv suggestions are enabled.
* commit '963afcbb501d8757f049b25f5068313ee63ce4e8':
  Doc change: start search suggestions at two characters instead of three, so that tv suggestions are enabled.
2014-11-03 17:53:28 +00:00
Dirk Dougherty 963afcbb50 am 9b7f8f20: Doc change: start search suggestions at two characters instead of three, so that tv suggestions are enabled.
* commit '9b7f8f20ac58133af551bc89e5f065a4e0f77103':
  Doc change: start search suggestions at two characters instead of three, so that tv suggestions are enabled.
2014-11-03 17:43:20 +00:00
Dirk Dougherty 9b7f8f20ac Doc change: start search suggestions at two characters instead of three, so that tv suggestions are enabled.
Change-Id: Ib7968010b0d0707a82ec51b1e63611628b8d465a
2014-11-01 20:33:25 -07:00
Dmitriy Ivanov fd0f1c848f Replacement for gdbclient
Differences between this implementation and the old one:
 1. Resolves symbols/gdb based on device information (lunch
    target is irrelevant)
 2. Works with downloaded from build-server symbols
 3. Does not require user to specify exe file - detects it automatically

Bug: 18208329

(cherry picked from commit 9b8e4b3772)

Change-Id: I13ae2debb6e2d827b9aa55e93864b5d60c2bd32e
2014-10-31 18:17:37 -07:00
Igor Murashkin 4c93719e30 Merge "core: Use WITH_DEXPREOPT_PIC=true to have dex2oat build pic oat files" into lmp-mr1-dev 2014-10-31 22:36:43 +00:00