Commit graph

44791 commits

Author SHA1 Message Date
Dan Willemsen
c025213c15 Merge "Fix path to flex and bison with SANITIZE_HOST" am: 80ebd01032
am: f82669cc5d

Change-Id: I6f93126962d210e2896592bcd3f4a6f570dfc69f
2018-05-25 18:46:39 -07:00
Dan Willemsen
f82669cc5d Merge "Fix path to flex and bison with SANITIZE_HOST"
am: 80ebd01032

Change-Id: I873bd1f1f5bd44dad16842d276911771b71b0c13
2018-05-25 18:41:23 -07:00
Dan Willemsen
80ebd01032 Merge "Fix path to flex and bison with SANITIZE_HOST" 2018-05-26 01:29:55 +00:00
Dan Willemsen
3de78fdf35 Fix path to flex and bison with SANITIZE_HOST
We don't have sanitized versions of flex and bison currently.

Test: forrest on aosp_x86_64-eng
Change-Id: I536885a715c162e36b69282099784abd16a5300c
2018-05-25 16:13:52 -07:00
Dan Willemsen
5db3299b9c Merge "Use new flex binary" am: 6fe15a380d
am: e3cca7657a

Change-Id: Ie148b4361d3f9b7e0d4b175234c18fdbe34b1949
2018-05-25 16:02:05 -07:00
Dan Willemsen
e3cca7657a Merge "Use new flex binary"
am: 6fe15a380d

Change-Id: I4d7ad17576d471cbf58813dd7935dda63fe66c8a
2018-05-25 15:57:09 -07:00
Treehugger Robot
6fe15a380d Merge "Use new flex binary" 2018-05-25 22:44:35 +00:00
Colin Cross
b17a2ca7b7 Merge changes I9b67fd2a,I761f2d06 am: bcc94297e0
am: 60c80c4323

Change-Id: I6bf68590481fbd9ef6137d8c6747e8eb3f98e1a2
2018-05-25 13:46:03 -07:00
Colin Cross
60c80c4323 Merge changes I9b67fd2a,I761f2d06
am: bcc94297e0

Change-Id: Ie7c308cd55887db1666a532e42359e14140738fb
2018-05-25 13:41:07 -07:00
Colin Cross
bcc94297e0 Merge changes I9b67fd2a,I761f2d06
* changes:
  Revert "Revert "Use AAPT2 by default""
  Work around incorrect R8 proguard compatibility
2018-05-25 20:30:01 +00:00
Colin Cross
5b89ec4d42 Revert "Revert "Use AAPT2 by default""
This reverts commit 777cf2c450.

Reason for revert: manifest merger is used for libraries forced to aapt2 now

Bug: 79481102
Test: m checkbuild
Change-Id: I9b67fd2a9b3234798b2aac879b5242c2097b3863
2018-05-25 11:34:13 -07:00
Colin Cross
cf5180c198 Work around incorrect R8 proguard compatibility
Proguard treats -dontobfuscate -keepattributes *Annotations* the
same as -dontobufscate by keeping all attributes.  R8, even in
proguard compatibility mode, discards all attributes that don't
match, including EnclosingClass attributes that may be necessary.
Pass -keepattributes * whenever passing -dontobfuscate to make R8
act more like proguard.

This isn't a complete solution, some modules may set
LOCAL_PROGUARD_ENABLED := custom and then manually specify
-dontobfuscate on the command line or in a flags file, in which
case they will see the incorrect behavior of R8.

Bug: 80081393
Test: m checkbuild
Test: examine attributes on com.android.stk.BootCompletedReceiver
      in out/target/common/obj/APPS/Stk_intermediates/classes.dex

Change-Id: I761f2d0617c5295df8fc7adfc4fd00d2aa41961e
2018-05-25 11:34:13 -07:00
Vishwath Mohan
118025a161 Enable CFI for vendor components on aosp_arm64_ab product-configs
am: 014d1fc969

Change-Id: I3c9c6ece3cdb1abe3a06c7803dd0bbf5310d9acb
2018-05-25 10:44:33 -07:00
Vishwath Mohan
014d1fc969 Enable CFI for vendor components on aosp_arm64_ab product-configs
The aosp_arm64_ab product config needs to also enable CFI for some
vendor components (if they exist).

Bug: 66301104
Test: lunch aosp_arm64_ab-userdebug && m -j40
Change-Id: Iae670c2d44c00d3dfb0e312e1492b37bbb737d4f
2018-05-25 07:01:09 -07:00
Vishwath Mohan
088506c303 Merge "Enable CFI by default but restrict CFI_INCLUDE_PATHS" into pi-dev
am: d002e49501

Change-Id: I32d21f2dbbbaf4bb7f8a6be033d036ab626cba10
2018-05-25 00:24:49 -07:00
TreeHugger Robot
d002e49501 Merge "Enable CFI by default but restrict CFI_INCLUDE_PATHS" into pi-dev 2018-05-25 07:15:45 +00:00
Jiyong Park
fbaf8f7530 Merge "Don't copy system/sbin/adbd to recovery" am: 93ca8d3789
am: b771720b24

Change-Id: I29f78cccc259d6a6d1046578f5576ec12ca5be98
2018-05-24 23:15:31 -07:00
Jiyong Park
b771720b24 Merge "Don't copy system/sbin/adbd to recovery"
am: 93ca8d3789

Change-Id: I460ec0d517ba127aedfb7f9ebaeb23755bba0de1
2018-05-24 23:06:51 -07:00
Treehugger Robot
93ca8d3789 Merge "Don't copy system/sbin/adbd to recovery" 2018-05-25 05:58:01 +00:00
Vishwath Mohan
6106a4ead5 Enable CFI by default but restrict CFI_INCLUDE_PATHS
This CL enables CFI on security sensitive components for product
configs that inherit core_64_bit.mk (and core_64_bit_only.mk). Note
that this only requests the build system to do so. Internal build
logic will dictate if this is actually enabled on the build or
not (CFI is currently disabled for ARM32 and MIPS for example).

In addition, this also restricts CFI_INCLUDE_PATHS and
PRODUCT_CFI_INCLUDE_PATHS to Arm64 architectures only. This helps
narrow which targets enable CFI out of the box.

Bug: 66301104
Test: CFI is enabled on aosp_* targets
Change-Id: I52af499dc34cd4b42fbfb1175f6a37aaf17b65dd
2018-05-24 22:14:03 -07:00
Tao Bao
5c543ffe5f [automerger skipped] Merge "Pack additional AVB testkeys into otatools.zip." into pi-dev
am: bd03c1513f  -s ours

Change-Id: Ib1067c28c34163bad37ff8e5059446dffef4bcf3
2018-05-24 19:51:37 -07:00
TreeHugger Robot
bd03c1513f Merge "Pack additional AVB testkeys into otatools.zip." into pi-dev 2018-05-25 02:42:41 +00:00
Ruchi Kandoi
58cd1455fc Adds SecureElement apk to core_minimal.mk and core_tiny.mk
am: 2dcba6fed7

Change-Id: Ibc87a96a784b45f2f23dc1731c9b1016b05b8089
2018-05-24 17:31:16 -07:00
Dan Willemsen
6535dd9891 Use new flex binary
Test: treehugger
Change-Id: Iee21114ae863eb50d26ee9562879a97f956274ab
2018-05-24 16:04:58 -07:00
Ruchi Kandoi
2dcba6fed7 Adds SecureElement apk to core_minimal.mk and core_tiny.mk
Bug: 79999791
Bug: 80000595
Test: CtsOmapiTestCases; works on phones/tablets, needs to be
verified on wearables
Change-Id: I114b9d02097e880d8369b75790fae5b995db8e59
2018-05-24 21:57:03 +00:00
Tao Bao
80731c6764 Merge "Pack additional AVB testkeys into otatools.zip." am: e2d0b0cc43
am: ff01d91499

Change-Id: I69ab7766f939242b8e21dcbe5328df65b1ad3929
2018-05-24 11:23:33 -07:00
Inseob Kim
b494d1286d Merge "Install product shared libraries in /product/lib" am: e56adeffef
am: 53fd2bbb61

Change-Id: Ifdc5c5c3a27be9100309f41b3dca2348f54ad543
2018-05-24 10:45:15 -07:00
Tao Bao
ff01d91499 Merge "Pack additional AVB testkeys into otatools.zip."
am: e2d0b0cc43

Change-Id: Idf8a14cf8c6299c05f702b347f76dd1fe9532b30
2018-05-24 10:44:44 -07:00
Colin Cross
32d7528352 Merge "Add minSdkVersion to default manifests" am: bd842d0b64
am: f3aa016621

Change-Id: I963496e81e5fbbe64d62bb3568ee527801c83bb0
2018-05-24 10:44:35 -07:00
Colin Cross
c45949b4db Merge "Fix missing class in manifest merger" am: 7f706cabac
am: df267c25e9

Change-Id: Iec8c8f60b7dbd59e23b8ef87b646854b2abe47dd
2018-05-24 10:44:00 -07:00
Yifan Hong
03f31c6625 Merge "Add PRODUCT_USE_LOGICAL_PARTITIONS" am: fecdb5db65
am: 725e94ea24

Change-Id: I64fb594c1493e804ec1dff1fe84976b574ff67bb
2018-05-24 10:43:25 -07:00
Colin Cross
42cc0ba39f Merge "Support LOCAL_STATIC_JAVA_AAR_LIBRARIES with aapt2" am: 4a49af1ceb
am: 457a80cc39

Change-Id: I63069acfbcf65549d53d48bfe66366ceeff3c133
2018-05-24 10:42:49 -07:00
Tao Bao
ba822a97cd Pack additional AVB testkeys into otatools.zip.
Bug: 71372646
Test: `m -j otatools-package`; Check $OUT/otatools.zip.
Change-Id: I42ad9047d1c5873b7770dc1f92757cd9e5e047ba
Merged-In: I42ad9047d1c5873b7770dc1f92757cd9e5e047ba
(cherry picked from commit 2d0e5124b0)
2018-05-24 10:07:30 -07:00
Tao Bao
e2d0b0cc43 Merge "Pack additional AVB testkeys into otatools.zip." 2018-05-24 17:04:17 +00:00
Inseob Kim
53fd2bbb61 Merge "Install product shared libraries in /product/lib"
am: e56adeffef

Change-Id: I7a7dd2c696b5260a1638aaa99a3f83981f004c4c
2018-05-24 07:33:34 -07:00
Colin Cross
f3aa016621 Merge "Add minSdkVersion to default manifests"
am: bd842d0b64

Change-Id: I42a79f0a41fa8a3822cc1b0ab7cc4037a68e09ba
2018-05-24 07:32:59 -07:00
Colin Cross
df267c25e9 Merge "Fix missing class in manifest merger"
am: 7f706cabac

Change-Id: I6795b7f85323dfa5874f7dc677c143ddc096ffcc
2018-05-24 07:32:30 -07:00
Yifan Hong
725e94ea24 Merge "Add PRODUCT_USE_LOGICAL_PARTITIONS"
am: fecdb5db65

Change-Id: Id15a2bfb83edee4a0af3de3459cca02cf2b39397
2018-05-24 07:30:35 -07:00
Colin Cross
457a80cc39 Merge "Support LOCAL_STATIC_JAVA_AAR_LIBRARIES with aapt2"
am: 4a49af1ceb

Change-Id: Idc07009e8f1ddfe661444ba1447dec57b0dd031b
2018-05-24 07:23:27 -07:00
Jiyong Park
ce3e34f6ac Don't copy system/sbin/adbd to recovery
adbd for recovery partition is built separately. No need to copy.
Instead, the recovery version adbd.recovery is added to
PRODUCT_PACKAGES.

Bug: 79146551
Test: m -j
Test: adb reboot recovery; adb devices
Change-Id: I7f0ee8b21cbafc0ab5a4eb1f9c8ee70774617013
2018-05-24 18:19:49 +09:00
Treehugger Robot
e56adeffef Merge "Install product shared libraries in /product/lib" 2018-05-24 03:04:48 +00:00
Hung-ying Tyan
38b5df5add Merge "configstore: uprevisioned to 1.1" into pi-dev
am: 76c6cf247e

Change-Id: Iad9d5a54f74782397bc369d466c2f0dabb092090
2018-05-23 18:19:15 -07:00
Treehugger Robot
bd842d0b64 Merge "Add minSdkVersion to default manifests" 2018-05-24 01:18:10 +00:00
Treehugger Robot
7f706cabac Merge "Fix missing class in manifest merger" 2018-05-24 01:15:54 +00:00
Mathieu Chartier
c0f8cd6a96 Merge "Allow profiles for vendor modules" into pi-dev
am: b757ed06fc

Change-Id: I7115d69225d6cf3f674cb59d722b3a6e747cabfb
2018-05-23 17:56:15 -07:00
TreeHugger Robot
76c6cf247e Merge "configstore: uprevisioned to 1.1" into pi-dev 2018-05-24 00:50:19 +00:00
Mathieu Chartier
b757ed06fc Merge "Allow profiles for vendor modules" into pi-dev 2018-05-24 00:28:15 +00:00
Treehugger Robot
fecdb5db65 Merge "Add PRODUCT_USE_LOGICAL_PARTITIONS" 2018-05-23 23:50:32 +00:00
Colin Cross
d45079a9ff Add minSdkVersion to default manifests
If the default manifest that doesn't set minSdkVersion is passed to
manifest merger along with a library manifest that does, it will fail
with:
.../DefaultManifest.xml Error:
	uses-sdk:minSdkVersion 1 cannot be smaller than version 14 declared in library ...

Translate LOCAL_MIN_SDK_VERSION or LOCAL_SDK_VERSION to minSdkVersion
in DefaultManifest.xml.

Bug: 79481102
Test: m checkbuild
Change-Id: I4d792d48612e6a1111e05a9e4a71bb4d87eae1ad
2018-05-23 16:35:40 -07:00
Colin Cross
0084dc8e2f Fix missing class in manifest merger
If manifest merger sees a manifest with an sdk codename instead
of a number it fails with:
Exception in thread "main" java.lang.NoClassDefFoundError: com/android/sdklib/SdkVersionInfo
	at com.android.manifmerger.XmlDocument.getApiLevelFromAttribute(XmlDocument.java:384)
	at com.android.manifmerger.XmlDocument.addImplicitElements(XmlDocument.java:418)
	at com.android.manifmerger.XmlDocument.merge(XmlDocument.java:161)
	at com.android.manifmerger.ManifestMerger2.merge(ManifestMerger2.java:909)
	at com.android.manifmerger.ManifestMerger2.merge(ManifestMerger2.java:263)
	at com.android.manifmerger.ManifestMerger2.access$600(ManifestMerger2.java:61)
	at com.android.manifmerger.ManifestMerger2$Invoker.merge(ManifestMerger2.java:1530)
	at com.android.manifmerger.Merger.process(Merger.java:153)
	at com.android.manifmerger.Merger.main(Merger.java:42)
Caused by: java.lang.ClassNotFoundException: com.android.sdklib.SdkVersionInfo
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
	... 9 more

Add sdklib to the classpath to fix it.

Test: m java
Bug: 77569197
Change-Id: I54fd9edb36aca32cff507340a76eee5e367529e6
2018-05-23 16:35:40 -07:00