Commit graph

1881 commits

Author SHA1 Message Date
Doug Zongker
1d67eec191 make SignApk do zip alignment
When signing an APK, make the SignApk tool align the stored entries to
(by default) 4-byte boundaries.  This obviates the need to run the
separate zipalign tool, which currently does this job.

The alignment byte count can be specified with the -a option.  OTA
package signing (with -w) never does alignment.

The order of files in the output APK is changed so that all stored
files come first in the output, followed by all non-stored files.
This is not expected to have any impact in practice.

Change-Id: Iaeef89b2a7283e25fadb99c0a0f0641f682d76b8
2014-05-15 09:54:26 -07:00
Ying Wang
6feb6d5607 Support host multilib build
This change basically ported our target multilib to the host side.
It supports 2 host build modes: x86 and x86_64 multilib build.
For now you need to set "BUILD_HOST_64bit=true" to switch to x86_64
multilib build. Later we'll default to x86_64 build and have a flag
to force 32-bit only build, which may be needed by SDK build.

In host module definition, like in target ones, you can use the
following
LOCAL variables to set up multilib configuration:
LOCAL_MULTILIB: can be "both", "first", "32" or "64".
It also supports the same set of arch or 32-vs-64 specific LOCAL
variables.
By default, it builds only for the first arch.

To keep path compatibility, in x86_64 build files are still output to
out/host/linux-x86; Both 32-bit and 64-bit executables are in
out/host/linux-86/bin;
In x86_64 build 32-bit shared libraries are installed to
out/host/linux-x86/lib32
and 64-bit shared libraries are installed to out/host/linux-x86/lib;
32-bit object files are output to out/host/linux-x86/obj32 and 64-bit
object files
are output to out/host/linux-x86/obj.

Bug: 13751317
Change-Id: I6044f83b7db369a33e05209e8c588eb6dc83409f
2014-05-14 16:55:04 -07:00
Narayan Kamath
7303ebda84 Add 32 / 64 bit abi lists to system properties.
Introduce ro.product.cpu.abilist32 / abilist64, which are
comma separated lists of the 32 and 64 bit ABIs that the
device supports. These properties are used by the zygote and
system server to determine what ABI an app should be
started with.

This changes move abilist related make steps out of envsetup.mk
and into config.mk because they depend on variables set by
core/combo/***. Additionally, config.mk performs a few additional
cleanups of these variables (like stripping them) after the
inclusion of envsetup.mk so this seems like a better place to
put them.

bug: 13647418

Change-Id: I3db39bdd761220c5b4966f651892fb592396f9a1
2014-04-08 17:40:40 +01:00
Narayan Kamath
1a43b375b4 Extend the CPU ABI specification mechanism.
Add a (read only) system property that is a comma
separated list of ABIs supported by the device in order
of preference. For example, typical arm-v8 device might
define:

ro.cpu.abilist = arm64-v8a,armeabi-v7a,armeabi

For most purposes, a single flattened list like the above is
probably more useful than the parallel system of variables
TARGET_CPU_ABI{2} / TARGET_2ND_ARCH_CPU_ABI{2} that we use
in the build system.

Change-Id: If9102669ad9f5f8fd89a8bcc5bf88cca1acadc3c
2014-03-28 17:10:47 +00:00
Clay Murphy
231f3d03ae Docs: replacing analytics ID from D.A.C.
Bug: 11476435

Change-Id: I834646e6a618709fe21afa5958bd28f822991e29
2014-03-05 12:20:46 -08:00
Ying Wang
351232107e Refactor a little bit and do the validation on also default.prop.
Change-Id: I76c2344d9033eadede7048689a879c9a69a05b7f
2014-02-12 10:32:47 -08:00
Yu Liu
115c66bd74 A build property's value is returned empty in runtime when its length
exceeds 92 symbols (91 valid symbols + \0). It is better to catch that
issue on earlier stage, i.e. fail the build with an appropriate message.

For developer's build, show warning message instead of failing the build
(in the latter case, as developers do not usually care about build properties
too much).

Change-Id: I03ced7b486d43a71b1921e0a9c48b43aa30727c7
2014-02-11 15:31:49 -08:00
Takeshi Kanemoto
e153b34643 ota_from_target_files: Add an option to not sign OTA packages
Sometimes it is useful to be able to tell ota_from_target_files
to not sign the output zip file. For instance, the private
release key may not be available when ota_from_target_files
is executed; similarly the release tools may not be available
or executable where the private key is stored.

This change adds an option, '--no_signing', to simply output the
unsigned OTA zip file, instead of spuriously signing it with the
test key even though the zip file would need to be re-signed later
with a different key.

Change-Id: I1f3c4dc8ffa35ce85478f848b147aff3d40fe283
2014-01-27 15:01:04 +09:00
Christopher Ferris
2c8078fdcc Merge "Fix regex for finding symbol data." 2013-12-12 21:53:08 +00:00
Christopher Ferris
65a69446d3 Fix regex for finding symbol data.
The new output of debuggerd removed a space between the #00 and the rest
of the line. The regex is very restrictive, so fixing it to handle the new
output.

Change-Id: I5259ae1e56a351608b330dfd858a2021e6d89358
2013-12-12 12:56:16 -08:00
Andrew Boie
73d5abbd3f sign_target_files_apks: rewrite build.prop correctly in eng builds
In eng builds, ro.display.id has many space separated items and was
resulting in an error when trying to rewrite it as 'value' gets
turned into a list and never converted back to a string.

Change-Id: I6c8633ed2eb52c56a4097992a32d53d80df4f844
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2013-12-11 13:23:15 -08:00
Scott Main
82335c87c1 am 9526eefb: am 4e5b39d8: style adjustment to design/dev/video buttons
* commit '9526eefbf30da333c003d7278d2977e70304a180':
  style adjustment to design/dev/video buttons
2013-11-13 18:12:20 -08:00
Scott Main
9526eefbf3 am 4e5b39d8: style adjustment to design/dev/video buttons
* commit '4e5b39d843548acaac73d1d1f729324805eda0a8':
  style adjustment to design/dev/video buttons
2013-11-14 02:08:29 +00:00
Scott Main
4e5b39d843 style adjustment to design/dev/video buttons
Change-Id: I97a147336805aeb340efcd12009794b02afab681
2013-11-13 16:49:22 -08:00
Baligh Uddin
38f1aed01d am dcc645eb: am dd00a967: Merge "Revert the revert. (its time to sign MR1)" into klp-dev
* commit 'dcc645ebb1a87982d2a067b8584ff167ae2c5287':
  Revert the revert. (its time to sign MR1)
2013-11-12 16:46:48 -08:00
Baligh Uddin
dcc645ebb1 am dd00a967: Merge "Revert the revert. (its time to sign MR1)" into klp-dev
* commit 'dd00a9677b21d2dbdef6b085570e1358f172de80':
  Revert the revert. (its time to sign MR1)
2013-11-12 16:42:25 -08:00
Baligh Uddin
dd00a9677b Merge "Revert the revert. (its time to sign MR1)" into klp-dev 2013-11-13 00:38:47 +00:00
Baligh Uddin
beb6afdee2 Revert the revert. (its time to sign MR1)
Revert "Waiting till post MR0 - this impacts signing tools for MR0."

This reverts commit a7b5c4a7dc.

Bug: 11334314
Change-Id: I89f8996161e4258b80bf2d0bc7817f0e8e32df13
2013-11-13 00:23:10 +00:00
Scott Main
ab5808b007 am 680821ed: am 13cd8f15: add style for video button in docs
* commit '680821ed27a2a2dfce7298434307065aa5ed56aa':
  add style for video button in docs
2013-11-12 12:22:03 -08:00
Scott Main
ec5b24f473 am faff9f52: am 641c2c2f: clarify the hidden APIs in reference with better tooltips
* commit 'faff9f52c1882d4a2eadce90bf90b0fbd7082632':
  clarify the hidden APIs in reference with better tooltips
2013-11-12 12:22:02 -08:00
Scott Main
680821ed27 am 13cd8f15: add style for video button in docs
* commit '13cd8f15476ec66145b3685ca5ce181491fe28c0':
  add style for video button in docs
2013-11-12 20:18:38 +00:00
Scott Main
faff9f52c1 am 641c2c2f: clarify the hidden APIs in reference with better tooltips
* commit '641c2c2fdaf68fa48b044177fef7c890a42c8a11':
  clarify the hidden APIs in reference with better tooltips
2013-11-12 20:18:38 +00:00
Scott Main
13cd8f1547 add style for video button in docs
Change-Id: I2f2dcf80aef9c55ad6a11f13549b8dd8709cbc84
2013-11-12 11:55:24 -08:00
Michael Runge
3b44339d6a am 37335b42: Enable incremental builder to find files that moved, and try to process them via patch + rename, instead of delete + add.
* commit '37335b42385970d957d48056145a3d4c4dbc6087':
  Enable incremental builder to find files that moved, and try to process them via patch + rename, instead of delete + add.
2013-11-07 15:00:42 -08:00
Michael Runge
37335b4238 Enable incremental builder to find files that moved, and
try to process them via patch + rename, instead of
delete + add.

b/11437930

Change-Id: Ie70632a2fa0a13d4bb259f61c620bb01812494e5
2013-11-07 11:36:03 -08:00
Scott Main
641c2c2fda clarify the hidden APIs in reference with better tooltips
Change-Id: Iaa843b4a0462195084fb7a35e826eeec92d50c64
2013-10-31 14:48:45 -07:00
Scott Main
03aca9a712 script to handle new static landing pages for sample topics
Change-Id: If90531da327e2d664ca7856af6a9737ea1879eaa
(cherry picked from commit 241dbd1565)
2013-10-31 16:40:35 +00:00
Scott Main
d2479d2beb am 241dbd15: script to handle new static landing pages for sample topics
* commit '241dbd1565b3693bfc2cc9ee3e9e50bcd2f8a7f0':
  script to handle new static landing pages for sample topics
2013-10-31 07:33:07 -07:00
Scott Main
241dbd1565 script to handle new static landing pages for sample topics
Change-Id: If90531da327e2d664ca7856af6a9737ea1879eaa
2013-10-31 07:27:10 -07:00
Scott Main
70120d0bff am 36ea7a3d: remove the dummy sidenav from samples before populating the real list. Also make the line numbers hidden before they get moved to avoid some jankyness during load.
* commit '36ea7a3d74c68d62a5d081401b887e848370f6d8':
  remove the dummy sidenav from samples before populating the real list. Also make the line numbers hidden before they get moved to avoid some jankyness during load.
2013-10-30 16:41:42 -07:00
Scott Main
f1435b73bd remove the dummy sidenav from samples before populating the real list.
Also make the line numbers hidden before they get moved to avoid
some jankyness during load.

Change-Id: I11c3df6d6c7a9a2e74be938b0f0ec704e71eb8d4
(cherry picked from commit 36ea7a3d74)
2013-10-30 23:33:57 +00:00
Scott Main
36ea7a3d74 remove the dummy sidenav from samples before populating the real list.
Also make the line numbers hidden before they get moved to avoid
some jankyness during load.

Change-Id: I11c3df6d6c7a9a2e74be938b0f0ec704e71eb8d4
2013-10-30 16:29:22 -07:00
Scott Main
a0df634521 am e9fbac49: make expandable lists under each sample sticky so they don\'t collapse when opening other project directories.
* commit 'e9fbac49bba45008d8741f3f93b47e866093e238':
  make expandable lists under each sample sticky so they don't collapse when opening other project directories.
2013-10-30 15:25:03 -07:00
Scott Main
70557ee5fc make expandable lists under each sample sticky so they don't collapse
when opening other project directories.

change code comment color from red to green, and strings from green to red.
Make sidenav file names smaller.

Change-Id: Idd074c7beba48f79c8c551d319c36fb5ecbbcb5f
2013-10-30 22:20:53 +00:00
Scott Main
e9fbac49bb make expandable lists under each sample sticky so they don't collapse
when opening other project directories.

change code comment color from red to green, and strings from green to red.
Make sidenav file names smaller.

Change-Id: Idd074c7beba48f79c8c551d319c36fb5ecbbcb5f
2013-10-30 15:19:41 -07:00
Dirk Dougherty
5404ae42e7 am 3c0c1274: Merge "Add n5 landscape-13 device video frame and css." into klp-dev
* commit '3c0c127468bb29ceabb4651273efc386aca1ac85':
  Add n5 landscape-13 device video frame and css.
2013-10-29 18:30:35 -07:00
Dirk Dougherty
3c0c127468 Merge "Add n5 landscape-13 device video frame and css." into klp-dev 2013-10-30 01:27:10 +00:00
Dirk Dougherty
3b67673291 am 57ab9435: Merge "Adjust samples output pages." into klp-dev
* commit '57ab94354c02b06f548293e22bd7186da11f07a2':
  Adjust samples output pages.
2013-10-29 16:40:56 -07:00
Dirk Dougherty
57ab94354c Merge "Adjust samples output pages." into klp-dev 2013-10-29 23:35:12 +00:00
Dirk Dougherty
ca1858aca9 Add n5 landscape-13 device video frame and css.
Change-Id: I3b18782680e74bd8d4022e6701bfd61887101cf1
2013-10-29 16:25:00 -07:00
Dirk Dougherty
4bddbb1c77 Adjust samples output pages.
Change-Id: I78a523f218f8733d4a3428e1d54c3c5c471cfa17
2013-10-29 15:42:10 -07:00
Scott Main
ba5b20eb9f am 1a00f7fe: fix \'next\' links to disable them when at the end of a list. Also remove the "next class" link at the end of training.
* commit '1a00f7fecd240871caa219bb45460b43c652c604':
  fix 'next' links to disable them when at the end of a list. Also remove the "next class" link at the end of training.
2013-10-29 11:22:07 -07:00
Scott Main
1a00f7fecd fix 'next' links to disable them when at the end of a list.
Also remove the "next class" link at the end of training.

Change-Id: I1d81919a0498d57b451741a7a0c12f011921f2cb
2013-10-29 11:13:26 -07:00
Dirk Dougherty
e45fbe5ea7 am db932024: Merge "Doc change: css for n5 device video frame." into klp-dev
* commit 'db932024363c1a8d867dd7b5eb6eca0c185d325e':
  Doc change: css for n5 device video frame.
2013-10-26 17:09:24 -07:00
Dirk Dougherty
db93202436 Merge "Doc change: css for n5 device video frame." into klp-dev 2013-10-27 00:04:01 +00:00
Dirk Dougherty
d5d3f805e0 Doc change: css for n5 device video frame.
Change-Id: I283c5c7cb3bb84c494b493b333e47f69b2595501
2013-10-26 12:17:44 -07:00
Baligh Uddin
31469e36e0 am a7b5c4a7: Waiting till post MR0 - this impacts signing tools for MR0.
* commit 'a7b5c4a7dc77a0896d6314828b9ce85f82d103e8':
  Waiting till post MR0 - this impacts signing tools for MR0.
2013-10-23 18:30:01 -07:00
Baligh Uddin
a7b5c4a7dc Waiting till post MR0 - this impacts signing tools for MR0.
Revert "Modify release tools to replace certs in MMAC files."

This reverts commit a6e0466ab5.

Change-Id: Ib7819185bad119013f307ce4301d5f02190e14ed
2013-10-23 16:53:43 +00:00
Robert Craig
a6e0466ab5 Modify release tools to replace certs in MMAC files.
Added support to perform a string replace of specified
dev keys with release keys when using the release tool
scripts.

Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>

(cherry picked from commit 817c574d75)

Change-Id: I51be8d62945436d3f374f51867295c5b792d4b53
Bug: 11334314
2013-10-22 13:54:46 -07:00
Scott Main
011a38d184 am 2b205a58: am 919edbe7: am 1c094509: am 6c030b73: fix javadoc sidenav so it does not cutoff overflowing link names
* commit '2b205a5814c39d7b6e7c6646e3ec9da4dad6dcb8':
  fix javadoc sidenav so it does not cutoff overflowing link names
2013-10-16 17:23:45 -07:00