Sami Tolvanen
d21d1d273b
am 00e1f003
: Merge "Check partition hash before resorting to block_image_verify"
...
* commit '00e1f0033eede8f23ff72097c98b7fd70a4e349d':
Check partition hash before resorting to block_image_verify
2015-04-25 08:07:04 +00:00
Sami Tolvanen
00e1f0033e
Merge "Check partition hash before resorting to block_image_verify"
2015-04-25 08:00:03 +00:00
Nick Kralevich
edc3371aea
am f3a6b07b
: Merge "host compiler: enable compiler hardening flags"
...
* commit 'f3a6b07b80a32b822f63cb1d34de64e8395484a8':
host compiler: enable compiler hardening flags
2015-04-25 04:44:34 +00:00
Nick Kralevich
f3a6b07b80
Merge "host compiler: enable compiler hardening flags"
2015-04-25 04:35:46 +00:00
Nick Kralevich
100acd1001
host compiler: enable compiler hardening flags
...
Enable the following compiler hardening flags:
* -Wl,-z,relro
* -Wl,-z,now
* -fstack-protector
relro / bind_now make the relro region read-only after linking,
preventing certain attacks against ELF data structures.
stack-protector adds stack canaries, which can detect exploits
which overwrite parts of the stack.
Explicitly not added in this change is FORTIFY_SOURCE=2. Adding that
option turns on glibc's warn_unused_result attributes. This generates
a huge number of new compile time warnings, and for the multiple
makefiles which have -Werror in them, turns those warnings into errors.
I'm not able to fix all the errors right away.
Bug: 20558757
Change-Id: I86791177c6695f5325233d9dd9a5dd3ccc2b1a2f
2015-04-24 21:26:08 -07:00
Dmitriy Ivanov
f674a67d6e
am 573dfb7c
: Merge "Pack relocations for mips64"
...
* commit '573dfb7cb8f768452744ddb781cc65412ed1a618':
Pack relocations for mips64
2015-04-24 23:59:03 +00:00
Dmitriy Ivanov
573dfb7cb8
Merge "Pack relocations for mips64"
2015-04-24 23:52:40 +00:00
Dmitriy Ivanov
8bd30fe3cb
Pack relocations for mips64
...
Bug: http://b/18051137
Change-Id: I063c5d6cf007658c0efe9cb1d65ed8026b3e7dae
2015-04-24 16:34:09 -07:00
Dmitriy Ivanov
3b023915e8
am 4fa4e4be
: Merge "Do not pack relocations for prebuilts by default"
...
* commit '4fa4e4befd5bc88ab37d7c7b20d3a67d351a1925':
Do not pack relocations for prebuilts by default
2015-04-24 23:04:46 +00:00
Dmitriy Ivanov
4fa4e4befd
Merge "Do not pack relocations for prebuilts by default"
2015-04-24 22:56:08 +00:00
Dmitriy Ivanov
64762c3027
Do not pack relocations for prebuilts by default
...
Do not pack relocations for prebuilds unless
LOCAL_PACK_MODULE_RELOCATIONS is true
Bug: http://b/20537715
Bug: http://b/18051137
Change-Id: Iddef3b09741da6ae10d73c98103b868cc7695d38
2015-04-24 15:33:14 -07:00
Dmitriy Ivanov
cae4652514
am 691a4379
: Merge "Pack relocations for mips"
...
* commit '691a4379c3386e39fc362d632acca5276060c23a':
Pack relocations for mips
2015-04-24 19:55:39 +00:00
Dmitriy Ivanov
691a4379c3
Merge "Pack relocations for mips"
2015-04-24 19:45:22 +00:00
Dmitriy Ivanov
9dc1a7359f
Pack relocations for mips
...
Bug: http://b/18051137
Change-Id: Id5e0adfb55273f23e1c99b4eecb318c6b8d19989
2015-04-24 12:20:02 -07:00
Dmitriy Ivanov
0f7ecd648b
am b1c2727a
: Merge "Pack relocations for x86"
...
* commit 'b1c2727aecfbd769bc002e1feeea0f6b745c9795':
Pack relocations for x86
2015-04-24 17:54:11 +00:00
Dmitriy Ivanov
b1c2727aec
Merge "Pack relocations for x86"
2015-04-24 17:44:09 +00:00
Dmitriy Ivanov
1d4804ccd1
Pack relocations for x86
...
Bug: http://b/18051137
Change-Id: I3f316343e9bbd2037a9583d5b6fb41a06be153cd
2015-04-24 10:34:59 -07: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
Dmitriy Ivanov
eacc8a052f
am 529943c7
: Merge "Disable packed relocations for NDK builds"
...
* commit '529943c7234a20de4eeb489df9f1c896a09b345f':
Disable packed relocations for NDK builds
2015-04-24 04:59:15 +00:00
Dmitriy Ivanov
529943c723
Merge "Disable packed relocations for NDK builds"
2015-04-24 04:48:44 +00:00
Dmitriy Ivanov
3b51f20be9
Disable packed relocations for NDK builds
...
Bug: http://b/20537715
Change-Id: I1289a88d5eb694980b026b695cb25edd8ba76ed5
2015-04-23 18:55:23 -07:00
Dmitriy Ivanov
c84b3a781c
am 648f1b66
: Merge "Pack relocation tables for dynamic executables"
...
* commit '648f1b66b4a6532383d5382148d586d354026305':
Pack relocation tables for dynamic executables
2015-04-23 22:28:49 +00:00
Dmitriy Ivanov
648f1b66b4
Merge "Pack relocation tables for dynamic executables"
2015-04-23 22:20:37 +00:00
Dmitriy Ivanov
4c2d1a64fb
Pack relocation tables for dynamic executables
...
Add replocation-packer step for dynmic executables.
Enable it by default for arm and arm64 platforms.
Bug: http://b/18051137
Change-Id: I0c88fd31595bcea62a087f219acb9ecf9c80f2e5
2015-04-23 12:07:16 -07:00
Dimitry Ivanov
941d61decc
am 1ff47c7f
: Merge "Revert "Pack relocation tables for all dynamic executables""
...
* commit '1ff47c7f36263a701797ac76594fa45ae2d89389':
Revert "Pack relocation tables for all dynamic executables"
2015-04-23 04:32:55 +00:00
Dimitry Ivanov
1ff47c7f36
Merge "Revert "Pack relocation tables for all dynamic executables""
2015-04-23 04:24:46 +00:00
Dimitry Ivanov
1eca10fa9d
Revert "Pack relocation tables for all dynamic executables"
...
This reverts commit e7a1b8a0c6
.
Change-Id: I1a2185e1c68d364941e3b3e525a8c4a7a42e0cc1
2015-04-23 04:22:33 +00:00
Dmitriy Ivanov
64119a7ff2
am ec6a9773
: Merge "Pack relocation tables for all dynamic executables"
...
* commit 'ec6a977323616f6cd6bd2c08be894e9da4dfc456':
Pack relocation tables for all dynamic executables
2015-04-23 02:33:15 +00:00
Dmitriy Ivanov
ec6a977323
Merge "Pack relocation tables for all dynamic executables"
2015-04-23 02:24:46 +00:00
Dmitriy Ivanov
e7a1b8a0c6
Pack relocation tables for all dynamic executables
...
Bug: http://b/18051137
Change-Id: I277277d5f5eb450ef9b4a23cfec16d75d977eb89
2015-04-22 13:30:43 -07:00
Tao Bao
347d8e6622
am 7f47c133
: Merge "Add support for full radio option"
...
* commit '7f47c13339858138744036d9037d52b4a0c445f3':
Add support for full radio option
2015-04-22 18:47:01 +00:00
Tao Bao
7f47c13339
Merge "Add support for full radio option"
2015-04-22 18:26:31 +00:00
dcashman
780bdd6a13
am ab59266d
: Merge "Add lib dirs to cts distribution."
...
* commit 'ab59266db0d3d16ca58e06ad327a9909e45c1516':
Add lib dirs to cts distribution.
2015-04-22 17:10:51 +00:00
dcashman
ab59266db0
Merge "Add lib dirs to cts distribution."
2015-04-22 17:02:32 +00:00
dcashman
17412c8305
Add lib dirs to cts distribution.
...
Add ability to include dirs to the cts distribtion to enable bundling of shared
libraries on which host-side executables rely.
Bug: 19566396
Change-Id: Id501874244ae98fbfef2aa591885c88dee5b8b02
2015-04-21 17:53:21 -07: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
Dmitriy Ivanov
baca453a7d
am 5beb3387
: Merge "Remove unsupported *_COMPRESS_MODULE_SYMBOLS"
...
* commit '5beb338793b9047b156aeb841a3417d9709b116f':
Remove unsupported *_COMPRESS_MODULE_SYMBOLS
2015-04-20 20:30:43 +00:00
Dmitriy Ivanov
5beb338793
Merge "Remove unsupported *_COMPRESS_MODULE_SYMBOLS"
2015-04-20 20:18:56 +00:00
Dmitriy Ivanov
4eb120b999
Remove unsupported *_COMPRESS_MODULE_SYMBOLS
...
Change-Id: Ibb7da2997a0bb5b9f435213c9d3206bc4aad18db
2015-04-20 12:24:12 -07:00
Nick Kralevich
700265cee2
am 69b20474
: Merge "Support LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES for prebuilt APKs"
...
* commit '69b20474d578ea6313570c29526fc0854a920946':
Support LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES for prebuilt APKs
2015-04-18 00:48:37 +00:00
Nick Kralevich
69b20474d5
Merge "Support LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES for prebuilt APKs"
2015-04-18 00:38:07 +00:00
Nick Kralevich
5aa0223c6a
Support LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES for prebuilt APKs
...
If a prebuilt APK contains shared libraries and the flag
LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES := true is set, then
uncompress any shared libraries stored within the APK.
This allows processes to load the shared library directly from
the APK.
Bug: 20247329
Bug: 8076853
Bug: 1162500
Change-Id: Iac4db32457d9ce31eb7256410023819b44fda0a6
2015-04-17 16:53:15 -07:00
Dan Albert
63082eab1f
am b6874440
: Merge "Add support for a partial ubsan build."
...
* commit 'b68744405129867b6f48e37fdf5f91102f2aba3f':
Add support for a partial ubsan build.
2015-04-17 19:42:42 +00:00
Dan Albert
b687444051
Merge "Add support for a partial ubsan build."
2015-04-17 19:33:02 +00:00
Dmitriy Ivanov
bc671bc65e
am e3aa1c1f
: Merge "Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS"
...
* commit 'e3aa1c1f85f981fabe9be0587e49538f4b6dd576':
Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS
2015-04-17 19:09:01 +00:00
Sami Tolvanen
7788547ff3
am 586b38cc
: Merge "Calculate max_stashed_blocks correctly for block OTA v3"
...
* commit '586b38cc397758848dbfc09351cadd39b89b9e49':
Calculate max_stashed_blocks correctly for block OTA v3
2015-04-17 18:52:57 +00:00
Dmitriy Ivanov
e3aa1c1f85
Merge "Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS"
2015-04-17 18:50:13 +00:00
Dan Albert
7a1d29eb4b
am 1d8f780c
: Merge "Fix misuse of my_sanitize_host."
...
* commit '1d8f780c7d15441ad6582fc32447d9409c39f31a':
Fix misuse of my_sanitize_host.
2015-04-17 18:48:53 +00:00
Dan Albert
f1b7c073a4
am 6ed5bea4
: Merge "Make use of sanitizers without clang an error."
...
* commit '6ed5bea46fac846f1a96a8245d8f529d691e3da7':
Make use of sanitizers without clang an error.
2015-04-17 18:48:52 +00:00
Sami Tolvanen
586b38cc39
Merge "Calculate max_stashed_blocks correctly for block OTA v3"
2015-04-17 18:43:51 +00:00