- 07 Dec, 2015 4 commits
-
-
Alex Klyubin authored
-
Ying Wang authored
-
Dimitry Ivanov authored
-
Ying Wang authored
Bug: 26044735 Change-Id: I9c6b3b16637ca2d0da4765e896a9f03c1d5dc51c
-
- 05 Dec, 2015 4 commits
-
-
Nick Kralevich authored
-
Daniel Micay authored
This results in nearly all functions with the possibility of stack corruption getting stack canaries, because it applies to any function taking a reference to the frame or with a local array rather than just the functions with arrays larger than 8 bytes. It was developed for use in Chrome (and Chrome OS) and has also been adopted by various other distributions (Arch, Fedora, Ubuntu, etc). The code size increase ranges from ~1.5% to ~2.5%, compared to ~0.3% to ~0.7% with the more conservative switch. The increase in the performance loss is usually minimal. The overall size increase once everything other than C and C++ code is taken into account is minimal, and it greatly improves the mitigation of stack buffer overflow vulnerabilities. https://lwn.net/Articles/584225/ Change-Id: Ie83d381e09d94deb34c5ff142a101ba3d14cf3ba
-
Ying Wang authored
-
Ying Wang authored
When $(call func) in the makefile text expansion includes newline, gmake reports error "missing separator". But it's fine if the expansion includes only spaces. That's a bit odd. This change fixes the "missing separator". Change-Id: I094e5ae1725699ebfa4ed66544eef037dd68714c
-
- 04 Dec, 2015 4 commits
-
-
Dan Willemsen authored
-
Alex Klyubin authored
This changes the build system to no longer run zipalign except for those prebuilts which do not need to re-signed. Running zipalign is no longer needed because signapk takes care of alignment. For those prebuilts which do not need to be re-signed signapk is not invoked and thus zipalign is still needed because the prebuilts may not have been aligned properly. This exemption will go away once prebuilts are properly aligned. Bug: 25794543 Change-Id: I31f10af80b9baa3c9481cb36f41e5e5046e852f9
-
Alex Klyubin authored
-
Dan Willemsen authored
Error out if there is a file listed in LOCAL_SRC_FILES_EXCLUDE but not in LOCAL_SRC_FILES. This should catch typos or other mistakes that would otherwise be missed. Change-Id: Iaddf575a6ce35238998ac47b59591a7d05fbcd0d
-
- 03 Dec, 2015 9 commits
-
-
Colin Cross authored
-
Colin Cross authored
AIDL is defined in the sometimes-prebuilt tools section, remove the extra definition that was overriding it. Change-Id: I677bf46475fd5fd4a9258c77d91ecee806e5f205
-
Colin Cross authored
-
Shinichiro Hamaji authored
-
Alex Klyubin authored
This makes signapk align uncompressed .so entries to memory page boundary (4096 bytes) to enable such libraries to be loaded at runtime through memory-mapping the APK. With this change in place, there should no longer be a need to run zipalign after (or before) signapk. Bug: 25794543 Change-Id: I74775af15a683791f57fcbd3497a79951b3f63a1
-
Tao Bao authored
-
Colin Cross authored
Don't install the prebuilt SDK tools for TARGET_BUILD_APPS builds, just execute them in place. Avoids issues with duplicate rules for the prebuilts and source modules when building with TARGET_BUILD_APPS in a full platform tree. Change-Id: I3cdb4f1a8208e8750310a5cc6130657613b683d1
-
Colin Cross authored
-
Colin Cross authored
Set MAINDEXCLASSES to the path to mainDexClasses. Change-Id: I82532e8ea8dc7349178347e080fa0c63078ca9f5
-
- 02 Dec, 2015 5 commits
-
-
Tao Bao authored
Change-Id: I6e96c417ffb5ad36405f4a6f5342f80f358f375f
-
Tao Bao authored
-
Tao Bao authored
We used to silently ignore the return value from apply_patch() even if it had failed. It gives us more trouble to investigate the failure when the affected file/partition gets touched in subsequent OTAs. This CL adds the checking of the return value and aborts the update accordingly. Bug: 25893277 Change-Id: Ie5e1c563576e503343e6a5b28ed4d7039f6f919c
-
Ying Wang authored
-
wei qiao authored
the value of USER is dependent from the compilation environment,so when compiling one same device project, the BUILD_FINGERPRINT may exceed 91 characters because ${USER} is long, but with short ${USER} the compilation can pass. Signed-off-by:
wei qiao <qiaowei224@gmail.com> Change-Id: Ia0f7dfa9cf7d605f1f2603f70dd0e6877482eb8a
-
- 01 Dec, 2015 5 commits
-
-
Shinichiro Hamaji authored
Also add -Werror. Change-Id: I2f9fda288d31bd34735856ade33916c93c45922a
-
Tao Bao authored
-
Colin Cross authored
-
Colin Cross authored
There is currently an intentional incremental rebuild issue with import_includes. export_includes might get updated with an identical version, but we don't want to force everything downstream of it to rebuild. When BUILDING_WITH_NINJA==true, only update export_includes if it changes, and use .KATI_RESTAT to only run downstream rules if it changes. import_includes will only be updated if one of the export_includes files is updated, so object files can have a normal dependency on import_includes instead of an order-only dependency. All downstream object files will now be recompiled if their imported include paths change. Bug: 25910568 Change-Id: I626f3b24ac02ac1309049cf1ce66cfe8ec816513
-
Colin Cross authored
* changes: Use libstdc++ for ijar Build ijar for apps build Use .KATI_RESTAT to reduce unnecessary rebuilds of .jar files
-
- 30 Nov, 2015 6 commits
-
-
Tao Bao authored
applypatch, applypatch_static and sqlite3 are no longer needed. Bug: 24621915 Change-Id: I6de5bc45bc8434b9c387e1d3d1b6c347c23a5290
-
Tao Bao authored
-
Tao Bao authored
Add an option "--log_diff <filename>" to ota_from_target_files.py script. When enabled, it logs the differences between the source and target builds into <filename> when generating incremental OTAs. Also move target_files_diff.py into releasetools/ so that it can be packed into otatools.zip. Bug: 25372309 Change-Id: Ifd4ed0f2f12ef040ee377621ec8c35a873cec34f
-
Colin Cross authored
For some reason ijar won't build against libc++ for TARGET_BUILD_APPS builds, but does build with libstdc++. (cherry picked from commit 718bab6a) Bug: 25904002 Change-Id: I1de103918faa5bb574af6f12cc954e7fed44dc62
-
Shinichiro Hamaji authored
This fixes git_master-linux-apps build. (cherry picked from commit 90847057) Change-Id: I4399ca2662e08c9b3cc2ad5a317e84d91b728115
-
Shinichiro Hamaji authored
The same optimization was done for binaries in https://android-review.googlesource.com/#/c/175250/ To create a TOC file from .jar files, this change introduces ijar, which is designed for this purpose. Only #include lines were modified from the original version. https://github.com/bazelbuild/bazel/tree/master/third_party/ijar Performance: $ m && touch frameworks/base/core/java/com/google/android/util/Procedure.java && time m Before: 4m30s (1580 targets) After: 3m57s (772 targets) Unfortunately, the improvement is small yet, but local experiments showed we can cut ~2 more minutes if the similar optimization is done for .dex files. (cherry picked from commit c1f5d9c2) Bug: 24597504 Change-Id: Iec3b2b0b0e674bee5d80cce3c300dc8fad6e7c13
-
- 27 Nov, 2015 3 commits
-
-
Shinichiro Hamaji authored
-
Shinichiro Hamaji authored
-
Shinichiro Hamaji authored
This reverts commit c1f5d9c2. Change-Id: I7e9969a060e3f1380154da65e76134168aee15d8
-