OSDN Git Service

android-x86/system-linkerconfig.git
4 years agoMerge "Add liblog to system libraries." am: c5be7e7196
Automerger Merge Worker [Fri, 24 Jan 2020 07:47:11 +0000 (07:47 +0000)]
Merge "Add liblog to system libraries." am: c5be7e7196

Change-Id: I2e0b8b69c2b098392c464101f0ed4319a95f1715

4 years agoMerge "Add liblog to system libraries."
Treehugger Robot [Fri, 24 Jan 2020 07:34:10 +0000 (07:34 +0000)]
Merge "Add liblog to system libraries."

4 years agoAdd liblog to system libraries.
Josh Gao [Thu, 23 Jan 2020 20:36:40 +0000 (12:36 -0800)]
Add liblog to system libraries.

Test: treehugger
Change-Id: I79954cfd6a3a32f0988a24a18954db8f8459fd04

4 years agoMerge "Generate linkerconfig for APEX binaries"
Kiyoung Kim [Wed, 22 Jan 2020 08:04:34 +0000 (00:04 -0800)]
Merge "Generate linkerconfig for APEX binaries"
am: a18a241e40

Change-Id: I6b7e9b386f792b13d4f0c79bdbd04b4f11f2ced5

4 years agoMerge "Generate linkerconfig for APEX binaries"
Kiyoung Kim [Wed, 22 Jan 2020 07:58:43 +0000 (07:58 +0000)]
Merge "Generate linkerconfig for APEX binaries"

4 years agoGenerate linkerconfig for APEX binaries
Kiyoung Kim [Mon, 20 Jan 2020 04:33:00 +0000 (13:33 +0900)]
Generate linkerconfig for APEX binaries

Generate linkerconfig for APEX binaries. Dependency can be resolved with
platform namespace which offers stub libraries, and other APEX modules
based on its providing library list.

Bug: 147987608
Test: m -j passed && checked linkerconfig generated per binary APEX
Change-Id: I27a872d5e82618dc0621ed9a86c176171d2f00ab

4 years agoRead product vndk libraries only when available
Kiyoung Kim [Tue, 21 Jan 2020 04:04:24 +0000 (20:04 -0800)]
Read product vndk libraries only when available
am: fec6e10f9b

Change-Id: I4796410af07b78d535d401b5abfd6b5a27c816ef

4 years agoRead product vndk libraries only when available
Kiyoung Kim [Mon, 20 Jan 2020 10:55:40 +0000 (19:55 +0900)]
Read product vndk libraries only when available

Current linkerconfig implementation tries to read vndk library list with
product vndk version even when the version is not specified. This change
will let linkerconfig load those files only when product vndk version is
available.

Test: m -j passed && Checked execution from cuttlefish
Change-Id: Ifb861d7c71a43ac77b27a6c29419b5f965d6097d

4 years agoMerge "Add product section for product interface enforcement" am: 9a3e85c31f am:...
Automerger Merge Worker [Wed, 8 Jan 2020 08:13:10 +0000 (08:13 +0000)]
Merge "Add product section for product interface enforcement" am: 9a3e85c31f am: c1765189e9

Change-Id: I217376ea52b7a5883aeff1ea9608b38994a8d804

4 years agoMerge "Add product section for product interface enforcement"
Justin Yun [Wed, 8 Jan 2020 08:04:14 +0000 (00:04 -0800)]
Merge "Add product section for product interface enforcement"
am: 9a3e85c31f

Change-Id: I66e83612faf7a5a74bc7c11d1ac2f325d4ca1de9

4 years agoMerge "Add product section for product interface enforcement"
Treehugger Robot [Wed, 8 Jan 2020 07:42:01 +0000 (07:42 +0000)]
Merge "Add product section for product interface enforcement"

4 years agoScan Active APEXes am: 86b57f60c6 am: 8984d415ac
Automerger Merge Worker [Tue, 7 Jan 2020 12:15:23 +0000 (12:15 +0000)]
Scan Active APEXes am: 86b57f60c6 am: 8984d415ac

Change-Id: I0531f81da91f608b857e682edae1a687be8a83c6

4 years agoScan Active APEXes
Jooyung Han [Tue, 7 Jan 2020 12:02:22 +0000 (04:02 -0800)]
Scan Active APEXes
am: 86b57f60c6

Change-Id: Ia8d73abd04d846c42148b9b3711129e034b19814

4 years agoScan Active APEXes
Jooyung Han [Mon, 6 Jan 2020 09:09:30 +0000 (18:09 +0900)]
Scan Active APEXes

Added a helper function ScanActiveApexes() which returns active APEXes.

Bug: 144659031
Test: atest --host linkerconfig_modules_unittest
Change-Id: Id953e9b3db7e63641571b8e36377ef2c29e70eb9

4 years agoAdd product section for product interface enforcement
Justin Yun [Mon, 16 Dec 2019 08:47:02 +0000 (17:47 +0900)]
Add product section for product interface enforcement

If ro.product.vndk.version is defined, product partition will have
seprate section from system section.
Modules in /product allowed to use VNDKs only from /system partition.
Modules in /system or /system_ext are not allowed to link to the
libraries in /product.

Bug: 124024578
Bug: 120954888
Test: build with "PRODUCT_PRODUCT_VNDK_VERSION := current"
      check device boot and basic functions

Change-Id: I0f9cd8b27c56c6a786b10aa23ffc4b197cea714d

4 years agoTarget out directory am: 5c8366d2d7 am: e5de40e6b1
Automerger Merge Worker [Thu, 2 Jan 2020 04:41:18 +0000 (04:41 +0000)]
Target out directory am: 5c8366d2d7 am: e5de40e6b1

Change-Id: I65df3e311ebda718131ca4b53c3f7a45c9051097

4 years agoTarget out directory
Kiyoung Kim [Thu, 2 Jan 2020 04:20:10 +0000 (20:20 -0800)]
Target out directory
am: 5c8366d2d7

Change-Id: Ide99573170d89ba43ac200381b6a70b9623cf71a

4 years agoTarget out directory
Kiyoung Kim [Mon, 30 Dec 2019 09:43:00 +0000 (18:43 +0900)]
Target out directory

Linkerconfig will generate more than 1 file, based on APEX modules and
emulation. To support this, linkerconfig should take out target
directory as argument rather than out target file.

Bug: 146993126
Test: m -j passed && Cuttlefish succeeded to boot
Change-Id: Iabc611ad0dc31a5ab5627356a8552796ab452d7e

4 years agoRemove VNDK version for using core variant libraries am: 11b05d5011 am: c3a0781c6d
Automerger Merge Worker [Tue, 31 Dec 2019 01:20:30 +0000 (01:20 +0000)]
Remove VNDK version for using core variant libraries am: 11b05d5011 am: c3a0781c6d

Change-Id: I118b70ffadbea8284da879e12381c5fcc9b95a3f

4 years agoRemove VNDK version for using core variant libraries
Kiyoung Kim [Tue, 31 Dec 2019 01:04:26 +0000 (17:04 -0800)]
Remove VNDK version for using core variant libraries
am: 11b05d5011

Change-Id: Iba0e621f4d1ea186db94e6b1618d6cd5aae38a7e

4 years agoRemove VNDK version for using core variant libraries
Kiyoung Kim [Mon, 30 Dec 2019 01:51:10 +0000 (10:51 +0900)]
Remove VNDK version for using core variant libraries

In current, name of the file contains VNDK using core variant library
list goes with VNDK version like other library list files. However, this
list is dependent on the system image not the VNDK version. To meet this
condition, this file name should not contain VNDK version number to avoid confusion.
This change removes VNDK version number from the file name.

Bug: 142599349
Test: m -j passed && aosp_cf_x86_go_phone booted
Change-Id: Ie167639e5ae2bae2ad269ffde168cfa5ac7de217

4 years agoAdd --legacy for easy of testing am: 5bbb123cd1 am: 8bf4479157
Automerger Merge Worker [Mon, 23 Dec 2019 08:16:32 +0000 (08:16 +0000)]
Add --legacy for easy of testing am: 5bbb123cd1 am: 8bf4479157

Change-Id: Ide272e724ed15d897232a596ce9624daeaab2d36

4 years agoAdd --legacy for easy of testing
Jooyung Han [Mon, 23 Dec 2019 08:05:30 +0000 (00:05 -0800)]
Add --legacy for easy of testing
am: 5bbb123cd1

Change-Id: Id84e31765d199c017dc1e85436b01222283ab67f

4 years agoAdd --legacy for easy of testing
Jooyung Han [Mon, 23 Dec 2019 04:35:00 +0000 (13:35 +0900)]
Add --legacy for easy of testing

Generate linker config for targets which are not treble-ized.
This argument is only for test on host.

Test: m linkerconfig && linkerconfig --legacy --root $OUT --vndk R
Change-Id: Id1ca59de2016de2de6b9a52f1ac217edea7c71f0

4 years agoBuild linker configuration for recovery in build time am: 722dad6819 am: 4b76d66377
Automerger Merge Worker [Fri, 20 Dec 2019 07:24:33 +0000 (07:24 +0000)]
Build linker configuration for recovery in build time am: 722dad6819 am: 4b76d66377

Change-Id: Ia74cfb235d6fca9be0fdd31863f40ca2d8c51ca5

4 years agoBuild linker configuration for recovery in build time
Kiyoung Kim [Fri, 20 Dec 2019 07:13:45 +0000 (23:13 -0800)]
Build linker configuration for recovery in build time
am: 722dad6819

Change-Id: I3849985c6cc0160db23452cec47cf6a29d836796

4 years agoBuild linker configuration for recovery in build time
Kiyoung Kim [Thu, 19 Dec 2019 06:59:55 +0000 (15:59 +0900)]
Build linker configuration for recovery in build time

As recovery has not enough space for linkerconfig binary, and also
linker configuration for recovery is does not require any environmental
variables, so linker configuration for recovery better be generated
from build time. This change enables to build linker configuration for
recovery from build and install into recovery system/etc.

Bug: 146414198
Test: m -j passed
Test: Checked linker config generated under recovery's system/etc
Change-Id: I08b77aa96191d3ccb67f8b8ca8fd918ca126de92

4 years agoMerge "Do not build linkerconfig for recovery" am: 5e4fe4fbf8 am: eecf7477e7
Automerger Merge Worker [Wed, 18 Dec 2019 01:13:39 +0000 (01:13 +0000)]
Merge "Do not build linkerconfig for recovery" am: 5e4fe4fbf8 am: eecf7477e7

Change-Id: Ieb12fd37ca46d0c11d130404c3bd88f0feafb2ff

4 years agoMerge "Do not build linkerconfig for recovery"
Kiyoung Kim [Wed, 18 Dec 2019 01:01:41 +0000 (17:01 -0800)]
Merge "Do not build linkerconfig for recovery"
am: 5e4fe4fbf8

Change-Id: I2a687c9c66d0ddfdaaa119c13f12597b302f2b7a

4 years agoMerge "Do not build linkerconfig for recovery"
Kiyoung Kim [Wed, 18 Dec 2019 00:55:03 +0000 (00:55 +0000)]
Merge "Do not build linkerconfig for recovery"

4 years agoAdd Cronet namespace am: 8217ced04e am: eb34a39735
Automerger Merge Worker [Tue, 17 Dec 2019 16:20:06 +0000 (16:20 +0000)]
Add Cronet namespace am: 8217ced04e am: eb34a39735

Change-Id: I42ad0deae2fdcda1817e17fa2941fff3dbef65d6

4 years agoAdd Cronet namespace
Luke Huang [Tue, 17 Dec 2019 16:03:54 +0000 (08:03 -0800)]
Add Cronet namespace
am: 8217ced04e

Change-Id: I697295a39c84de4058be48a3db33d263dc00bb8b

4 years agoAdd Cronet namespace
Luke Huang [Tue, 17 Dec 2019 05:10:09 +0000 (13:10 +0800)]
Add Cronet namespace

Bug: 139397529
Test: build
Test: manual test with Cronet
Change-Id: I1728747fcb6e04bf528266957695378f8d2b28fa

4 years agoDo not build linkerconfig for recovery
Kiyoung Kim [Tue, 17 Dec 2019 06:23:38 +0000 (15:23 +0900)]
Do not build linkerconfig for recovery

Linkerconfig should be built as static, but recovery does not have
enough space for static binary. As recovery linker configuration is
quite static and simple, this can be generated from build time. As a
first step linkerconfig binary should be removed from recovery.

Bug: 146384333
Test: m -j passed && crosshatch recovery worked with this change
Change-Id: Ia4155c3295feb518bcfd0ab6e6eef8f794e0b1f9

4 years agos/ANROID/ANDROID am: 76614bbdd3 am: e62be1cb75
Automerger Merge Worker [Thu, 12 Dec 2019 02:27:54 +0000 (02:27 +0000)]
s/ANROID/ANDROID am: 76614bbdd3 am: e62be1cb75

Change-Id: I7ede0b6e5195caf64c426e667cdd214a18917738

4 years agos/ANROID/ANDROID
Josh Gao [Thu, 12 Dec 2019 02:05:46 +0000 (18:05 -0800)]
s/ANROID/ANDROID
am: 76614bbdd3

Change-Id: I82b5373879daf8b1f02c7921a53baf25c629682a

4 years agos/ANROID/ANDROID
Josh Gao [Wed, 11 Dec 2019 23:28:30 +0000 (15:28 -0800)]
s/ANROID/ANDROID

Test: treehugger
Change-Id: If112b4dfd77d772c2feec2c931190d63bea7cb2b

4 years agoMerge "Read apex_manifest and generate Namespace" am: 5fa6e715d4
Jooyung Han [Tue, 10 Dec 2019 05:18:43 +0000 (21:18 -0800)]
Merge "Read apex_manifest and generate Namespace" am: 5fa6e715d4
am: 6e04984957

Change-Id: I57477b4fa730f95ed45dbf43f42efe69951ee86e

4 years agoMerge "Read apex_manifest and generate Namespace"
Jooyung Han [Tue, 10 Dec 2019 05:16:11 +0000 (21:16 -0800)]
Merge "Read apex_manifest and generate Namespace"
am: 5fa6e715d4

Change-Id: I9da8e4ab2f96e0487ca1c28857a7d13d19a87ee1

4 years agoMerge "Read apex_manifest and generate Namespace"
Jooyung Han [Tue, 10 Dec 2019 05:09:45 +0000 (05:09 +0000)]
Merge "Read apex_manifest and generate Namespace"

4 years agoRead apex_manifest and generate Namespace
Jooyung Han [Fri, 6 Dec 2019 10:47:30 +0000 (19:47 +0900)]
Read apex_manifest and generate Namespace

Add a small utility to initialize a Namespace with APEX.
Until we can just scan all "activated" APEXes and generate all
namespaces with them, we could use this to fill in namespaces for
APEXes.

Bug: 144659031
Bug: 144659057
Test: atest --host linkerconfig_modules_unittest
Change-Id: If9787ff6c7bc680b5d778b03813103e661a2d0a0

4 years agoMerge "Remove unnecessary shared_lib for neuralnetworks" am: e57f17f4b0
Jooyung Han [Tue, 10 Dec 2019 00:16:13 +0000 (16:16 -0800)]
Merge "Remove unnecessary shared_lib for neuralnetworks" am: e57f17f4b0
am: 57589c52ad

Change-Id: I33a5dccaa0c77b0d0babcad11f2ae68d5fd969f4

4 years agoMerge "Remove unnecessary shared_lib for neuralnetworks"
Jooyung Han [Tue, 10 Dec 2019 00:09:15 +0000 (16:09 -0800)]
Merge "Remove unnecessary shared_lib for neuralnetworks"
am: e57f17f4b0

Change-Id: Id2f1dceba3a218db98c3b1c6fc5dd983f962e308

4 years agoMerge "Remove unnecessary shared_lib for neuralnetworks"
Treehugger Robot [Mon, 9 Dec 2019 23:19:24 +0000 (23:19 +0000)]
Merge "Remove unnecessary shared_lib for neuralnetworks"

4 years agoLinker configuration for recovery am: 09cbb08096
Kiyoung Kim [Sun, 8 Dec 2019 14:04:39 +0000 (06:04 -0800)]
Linker configuration for recovery am: 09cbb08096
am: afb1699289

Change-Id: Ic28c6e90270097ca856fa0369076efcedfa270b1

4 years agoLinker configuration for recovery
Kiyoung Kim [Sun, 8 Dec 2019 14:02:21 +0000 (06:02 -0800)]
Linker configuration for recovery
am: 09cbb08096

Change-Id: Iffffa168e744891783ecbdcc4e241df66cff73bc

4 years agoLinker configuration for recovery
Kiyoung Kim [Thu, 5 Dec 2019 07:44:34 +0000 (16:44 +0900)]
Linker configuration for recovery

Implements linker configuration for recovery. Linkerconfig will generate
recovery configuration on --recovery argument.

Bug: 139638519
Test: m -j passed & tested from crosshatch
Change-Id: I02a38bde8075167dd67334d69507f2604b7d3b33

4 years agoRemove unnecessary shared_lib for neuralnetworks
Jooyung Han [Wed, 4 Dec 2019 14:57:58 +0000 (23:57 +0900)]
Remove unnecessary shared_lib for neuralnetworks

Because libneuralnetworks doesn't require libsync.so, remove it from
allowed shared_libs list.

Bug: 144659031
Test: CtsNNAPITestCases
Change-Id: Ica410d01dd54881b2e5cfdd32013c0f11caa0511

4 years agoMerge "Remove unnecessary shared_libs for resolv APEX" am: 74517fccd7
Jooyung Han [Wed, 4 Dec 2019 13:35:51 +0000 (05:35 -0800)]
Merge "Remove unnecessary shared_libs for resolv APEX" am: 74517fccd7
am: ad1fca9de7

Change-Id: I7a8d5376af2a506d7eb37dfb7c0591a975f0a073

4 years agoMerge "Remove unnecessary shared_libs for resolv APEX"
Jooyung Han [Wed, 4 Dec 2019 13:33:58 +0000 (05:33 -0800)]
Merge "Remove unnecessary shared_libs for resolv APEX"
am: 74517fccd7

Change-Id: I8a3e714de6efbd6251f348bfa34333988b128171

4 years agoMerge "Remove unnecessary shared_libs for resolv APEX"
Jooyung Han [Wed, 4 Dec 2019 13:27:36 +0000 (13:27 +0000)]
Merge "Remove unnecessary shared_libs for resolv APEX"

4 years agoAdd path to the boot image in the ART apex. am: 35eda21c8c
Ulya Trafimovich [Tue, 3 Dec 2019 16:55:47 +0000 (08:55 -0800)]
Add path to the boot image in the ART apex. am: 35eda21c8c
am: 5d69eaca4a

Change-Id: I4180158fe5ead39faa18f5a4abbf4b24d0348111

4 years agoAdd jooyung to owners am: bc1f4094a4
Kiyoung Kim [Tue, 3 Dec 2019 16:55:39 +0000 (08:55 -0800)]
Add jooyung to owners am: bc1f4094a4
am: 766eabae1f

Change-Id: Ia9243ce5b7162051466eca6e8ed34a45b0ed5760

4 years agoAdd path to the boot image in the ART apex.
Ulya Trafimovich [Tue, 3 Dec 2019 16:47:24 +0000 (08:47 -0800)]
Add path to the boot image in the ART apex.
am: 35eda21c8c

Change-Id: I5aa5ea072300475dc1a06316847bd3ba1a64189e

4 years agoAdd jooyung to owners
Kiyoung Kim [Tue, 3 Dec 2019 16:44:25 +0000 (08:44 -0800)]
Add jooyung to owners
am: bc1f4094a4

Change-Id: I2aa9462159b4230a5f8dee6b34f7e779f3617880

4 years agoRemove unnecessary shared_libs for resolv APEX
Jooyung Han [Tue, 3 Dec 2019 10:38:22 +0000 (19:38 +0900)]
Remove unnecessary shared_libs for resolv APEX

resolv APEX doesn't need libcgrouprc.so, liblog.so, and libvndksupport.so.

Bug: 144659031
Test: m && device boot
      atest --test-mapping system/netd
Change-Id: Ic06008b808a185f5f5662f1758363fe776dbda45

4 years agoAdd path to the boot image in the ART apex.
Ulya Trafimovich [Fri, 15 Nov 2019 14:10:02 +0000 (14:10 +0000)]
Add path to the boot image in the ART apex.

Test: m

Change-Id: Ia92ae90b7d80fab9ad87207c0f699292451e8578

4 years agoAdd jooyung to owners
Kiyoung Kim [Tue, 3 Dec 2019 06:31:17 +0000 (15:31 +0900)]
Add jooyung to owners

Add jooyung@ to OWNERS list.

Test: no test required
Change-Id: I9bd783cadf7c324f728c1264cb082562db0a7678

4 years agoMerge "Add ART module members to linkerconfig owners." am: 0c04afcb05
Nicolas Geoffray [Mon, 2 Dec 2019 08:36:18 +0000 (00:36 -0800)]
Merge "Add ART module members to linkerconfig owners." am: 0c04afcb05
am: ccac09614a

Change-Id: I6f81467d7fcc8a8ddc25f19c576cfca837054eee

4 years agoMerge "Add ART module members to linkerconfig owners."
Nicolas Geoffray [Mon, 2 Dec 2019 08:34:05 +0000 (00:34 -0800)]
Merge "Add ART module members to linkerconfig owners."
am: 0c04afcb05

Change-Id: Icee5851c6ddb7c28ae7fba553ae68ec2920cbbd8

4 years agoMerge "Add ART module members to linkerconfig owners."
Nicolas Geoffray [Mon, 2 Dec 2019 08:31:08 +0000 (08:31 +0000)]
Merge "Add ART module members to linkerconfig owners."

4 years agoAdd ART module members to linkerconfig owners.
Nicolas Geoffray [Fri, 29 Nov 2019 09:44:40 +0000 (09:44 +0000)]
Add ART module members to linkerconfig owners.

Test: build/make/tools/checkowners.py -c system/linkerconfig/OWNERS
Change-Id: Icd285aa36ffb560df2700ed09223ca9f082e7ee5

4 years agoAdd /system/lib to the permitted paths for ns of APEXes am: 406aa34b07
Jiyong Park [Mon, 2 Dec 2019 08:17:19 +0000 (00:17 -0800)]
Add /system/lib to the permitted paths for ns of APEXes am: 406aa34b07
am: 4d1d8b6091

Change-Id: I14c02e8e0bd1bdecd54dce51a9961b3a19b09d44

4 years agoAdd /system/lib to the permitted paths for ns of APEXes
Jiyong Park [Mon, 2 Dec 2019 08:15:01 +0000 (00:15 -0800)]
Add /system/lib to the permitted paths for ns of APEXes
am: 406aa34b07

Change-Id: I64fa27f23235959873494bd8fa5adb3a6a83f6cd

4 years agoAdd /system/lib to the permitted paths for ns of APEXes
Jiyong Park [Fri, 22 Nov 2019 13:11:58 +0000 (22:11 +0900)]
Add /system/lib to the permitted paths for ns of APEXes

With b/144533348, there will be symlinks from libs in APEXes to the libs
in the system partition. This is to reduce the size of APEXes when the
APEX is bundled with the platform.

Adding the /system/lib to the permitted paths so that the realpaths of
the symlinks are allowed for the namespaces.

Note that this however does not open all libs in the system partition to
the APEX namespaces, because searching of the libs are NOT done in
/system/lib, but in /apex/<module>/lib directory.

Bug: 144533348
Test: m
Change-Id: Ieb5dd795f6575123db4575f2a078cf136295b832

4 years agoAdd constraints resolution for dependencies am: b9f20d1929
Jooyung Han [Fri, 29 Nov 2019 13:29:35 +0000 (05:29 -0800)]
Add constraints resolution for dependencies am: b9f20d1929
am: c06cf1c472

Change-Id: Ia1476a23cc5e05804aa2ea6490c235c9b309c9d2

4 years agoAdd constraints resolution for dependencies
Jooyung Han [Fri, 29 Nov 2019 13:27:16 +0000 (05:27 -0800)]
Add constraints resolution for dependencies
am: b9f20d1929

Change-Id: I7444d7025e31e849b59bd1d48f7919bfa80fb7b2

4 years agoAdd constraints resolution for dependencies
Jooyung Han [Wed, 27 Nov 2019 13:08:46 +0000 (22:08 +0900)]
Add constraints resolution for dependencies

Each namespace may provide some list of libraries to other namespaces
and require some from others. From this constraints, generate mapping
between linker namespaces.

Bug: 144659031
Test: atest --host linkerconfig_modules_unittest
Change-Id: Ib3a948d4c5654557ad03adf8bade98cf527adc0f

4 years agoMerge "Make sure that namespace links are ordered" am: 964d6bddf1
Jooyung Han [Tue, 19 Nov 2019 08:49:12 +0000 (00:49 -0800)]
Merge "Make sure that namespace links are ordered" am: 964d6bddf1
am: 0312c694eb

Change-Id: I1968e1eb7e88f44f40be64c1b37f90659ca30ddf

4 years agoMerge "Make sure that namespace links are ordered"
Jooyung Han [Tue, 19 Nov 2019 08:45:53 +0000 (00:45 -0800)]
Merge "Make sure that namespace links are ordered"
am: 964d6bddf1

Change-Id: I2e9791e854653ffd0d75d0572be1532538f6bf54

4 years agoMerge "Make sure that namespace links are ordered"
Treehugger Robot [Tue, 19 Nov 2019 08:36:01 +0000 (08:36 +0000)]
Merge "Make sure that namespace links are ordered"

4 years agoMerge "Add runtime to unrestricted." am: 637bd4d9bd
Christopher Ferris [Sat, 16 Nov 2019 16:40:22 +0000 (08:40 -0800)]
Merge "Add runtime to unrestricted." am: 637bd4d9bd
am: 9b8f6f4061

Change-Id: I6850c9c0b883d3f3c3937e264234e8b6aa781044

4 years agoMerge "Add runtime to unrestricted."
Christopher Ferris [Sat, 16 Nov 2019 16:36:51 +0000 (08:36 -0800)]
Merge "Add runtime to unrestricted."
am: 637bd4d9bd

Change-Id: I9b9d9b15295b94689a39417d1204c4f50e6a4bc7

4 years agoMerge "Add runtime to unrestricted."
Christopher Ferris [Sat, 16 Nov 2019 16:32:53 +0000 (16:32 +0000)]
Merge "Add runtime to unrestricted."

4 years agoMake sure that namespace links are ordered
Jooyung Han [Fri, 15 Nov 2019 04:48:00 +0000 (13:48 +0900)]
Make sure that namespace links are ordered

Unit test added.

Bug: 144464148
Test: atest --host linkerconfig_modules_unittest
Change-Id: Id23f325b9354d4bf45c4d357e3cda6dbe82ee6d0

4 years agoUse ordered sequences for namespace links am: b461a7bffd
Jooyung Han [Fri, 15 Nov 2019 02:26:40 +0000 (18:26 -0800)]
Use ordered sequences for namespace links am: b461a7bffd
am: 92549cf436

Change-Id: I5fe10e5462627f02fa635efc28a77f6e05e6e727

4 years agoUse ordered sequences for namespace links
Jooyung Han [Fri, 15 Nov 2019 02:19:20 +0000 (18:19 -0800)]
Use ordered sequences for namespace links
am: b461a7bffd

Change-Id: Id6a72654b0844c92fb1df08946a9791ca9934fbd

4 years agoUse ordered sequences for namespace links
Jooyung Han [Thu, 14 Nov 2019 08:14:17 +0000 (17:14 +0900)]
Use ordered sequences for namespace links

The order of namespace links matters since linker searches in order.

Bug: 144464148
Test: atest --host linkerconfig_contents_fulltest
Test: see manually generated ld.config.txt (sphal ns)
Change-Id: Ice3db7060bb7b1b2ebeba9d3a3fcfa22b623ccc6

4 years agoMerge "vndk-ext should come before vndk(VNDK APEX)" am: 1314c36936
Jooyung Han [Thu, 14 Nov 2019 06:10:55 +0000 (22:10 -0800)]
Merge "vndk-ext should come before vndk(VNDK APEX)" am: 1314c36936
am: 9cdc8764a3

Change-Id: I907637f833e088d59e2555c6e4e6a1e31a4f56d0

4 years agoMerge "vndk-ext should come before vndk(VNDK APEX)"
Jooyung Han [Thu, 14 Nov 2019 06:07:31 +0000 (22:07 -0800)]
Merge "vndk-ext should come before vndk(VNDK APEX)"
am: 1314c36936

Change-Id: Iaf16abaf2c5f4ac25c384f6d68b4e2262707c1b5

4 years agoMerge "vndk-ext should come before vndk(VNDK APEX)"
Treehugger Robot [Thu, 14 Nov 2019 05:56:19 +0000 (05:56 +0000)]
Merge "vndk-ext should come before vndk(VNDK APEX)"

4 years agovndk-ext should come before vndk(VNDK APEX)
Jooyung Han [Thu, 14 Nov 2019 04:27:19 +0000 (13:27 +0900)]
vndk-ext should come before vndk(VNDK APEX)

vndk-ext (/vendor/{LIB}/vndk) should come before vndk
(/apex/com.android.vndk.v{VER}/{LIB}) so that vndk-ext eclipse vndk.

Test: atest --host linkerconfig_contents_fulltest
Test: add vndkext lib to /vendor/{LIB}/vndk and check if it is loaded
correctly.

Change-Id: I554e2d0fdf5429e7e2bb3b3b955d852351d54a9f

4 years agoAdd runtime to unrestricted.
Christopher Ferris [Thu, 14 Nov 2019 01:12:03 +0000 (17:12 -0800)]
Add runtime to unrestricted.

Without this change, malloc debug and malloc hooks will not work
when executed from /data/local/tmp. This would represent a regression
from Q, and it also mean that atest could not run the system tests.

Also add the malloc debug and malloc hooks tests to this directory.

Test: malloc debug and malloc hooks system tests pass.
Change-Id: I5ecaa2710aef97d6b9468aa005bdf0a74f72014a

4 years agoRetain relevant comments from system/core/rootdir/etc/ld.config.txt. am: 7e36aeaa61
Martin Stjernholm [Thu, 14 Nov 2019 01:02:06 +0000 (17:02 -0800)]
Retain relevant comments from system/core/rootdir/etc/ld.config.txt. am: 7e36aeaa61
am: 52cde52452

Change-Id: Ieb176eaa1b830bae44d3856456741c5e5fdc199a

4 years agoRetain relevant comments from system/core/rootdir/etc/ld.config.txt.
Martin Stjernholm [Thu, 14 Nov 2019 00:58:03 +0000 (16:58 -0800)]
Retain relevant comments from system/core/rootdir/etc/ld.config.txt.
am: 7e36aeaa61

Change-Id: I12a163401f179ff3a393071a1f3b07b85e109f39

4 years agoRetain relevant comments from system/core/rootdir/etc/ld.config.txt.
Martin Stjernholm [Mon, 11 Nov 2019 15:51:25 +0000 (15:51 +0000)]
Retain relevant comments from system/core/rootdir/etc/ld.config.txt.

This CL carries over the comments from the old text config that was deleted
in https://r.android.com/1128832.

Test: N/A - comment changes only
Bug: 138920271
Change-Id: I4309599228cace3d19bba7bc992e80fe2eb66c69

4 years agoAdd runtime namespace am: 72410b5474
Jiyong Park [Mon, 11 Nov 2019 04:56:42 +0000 (20:56 -0800)]
Add runtime namespace am: 72410b5474
am: 0fd4cc0afb

Change-Id: Ib5f13b8682a6e5b20b5c74a05a4caee4edd5b5dc

4 years agoAdd runtime namespace
Jiyong Park [Mon, 11 Nov 2019 04:52:40 +0000 (20:52 -0800)]
Add runtime namespace
am: 72410b5474

Change-Id: I984c724a9e153a2fe950a833b660589a61354a1f

4 years agoAdd runtime namespace
Jiyong Park [Tue, 5 Nov 2019 06:54:05 +0000 (15:54 +0900)]
Add runtime namespace

libc_malloc_hooks/debug.so are included in the runtime APEX, which now
is only for the bionic libs. The libs should be loaded in isolatation
from other libs because they might not be compatible with other libs in
/system/lib. (the libs depend on libc++.so)

Creating the namespace 'runtime' where the libs can be loaded into.

No modification to the bionic side is needed because it already has been
trying to load the libs from the namespace. The namespace actually was
accidentaly disappeared during the split of the runtime APEX into
runtime and art APEXes.

Bug: 143892776
Test: bionic-unit-tests
Change-Id: I638c5f0439eb402338b90f2c01fddbfdae7d73e9

4 years agoMerge "Revert "Revert "Check ro.treble.enabled for legacy devices""" am: 8aa4ecefb5
Daichi Hirono [Thu, 31 Oct 2019 03:44:29 +0000 (20:44 -0700)]
Merge "Revert "Revert "Check ro.treble.enabled for legacy devices""" am: 8aa4ecefb5
am: c19de79551

Change-Id: Ifa645ca5bda0e78f77088da634ec5084468d557b

4 years agoMerge "Revert "Revert "Check ro.treble.enabled for legacy devices"""
Daichi Hirono [Thu, 31 Oct 2019 03:38:30 +0000 (20:38 -0700)]
Merge "Revert "Revert "Check ro.treble.enabled for legacy devices"""
am: 8aa4ecefb5

Change-Id: Ifadf272d28482c3be696b72b299e837e564e6bbd

4 years agoMerge "Revert "Revert "Check ro.treble.enabled for legacy devices"""
Treehugger Robot [Thu, 31 Oct 2019 03:12:39 +0000 (03:12 +0000)]
Merge "Revert "Revert "Check ro.treble.enabled for legacy devices"""

4 years agoRevert "Revert "Check ro.treble.enabled for legacy devices""
Daichi Hirono [Thu, 31 Oct 2019 01:49:23 +0000 (01:49 +0000)]
Revert "Revert "Check ro.treble.enabled for legacy devices""

This reverts commit ab0f8cb501f2e42b1904dd0f79ca0f8b5a3cc5d6.

Reason for revert: Reland the fix after fixing internal device config.

Change-Id: Ib23c1136f5ad4bcc3e1f6aa8f2c0b9ad7d5fb259

4 years agoDO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Xin Li [Wed, 30 Oct 2019 22:57:17 +0000 (15:57 -0700)]
DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
am: 9ea19c6179

Change-Id: Id06a1fd7e6c42f9b34bb98dff16a853f4228a4f9

4 years agoDO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Xin Li [Wed, 30 Oct 2019 18:50:44 +0000 (11:50 -0700)]
DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master

Bug: 142003500
Change-Id: Iecbfb34019dfbaa82e7c7947c849deb67ceb4da4

4 years agoMerge "Revert "Check ro.treble.enabled for legacy devices"" am: a9dc08c8cd
Daichi Hirono [Wed, 30 Oct 2019 07:07:53 +0000 (00:07 -0700)]
Merge "Revert "Check ro.treble.enabled for legacy devices"" am: a9dc08c8cd
am: ce504b597e

Change-Id: I581e57ea4a3fa123ddf4984777d0523f21f4e3ae

4 years agoMerge "Revert "Check ro.treble.enabled for legacy devices""
Daichi Hirono [Wed, 30 Oct 2019 07:02:54 +0000 (00:02 -0700)]
Merge "Revert "Check ro.treble.enabled for legacy devices""
am: a9dc08c8cd

Change-Id: I7812fde519f6da46699a966d0b1e0f0c418956f4

4 years agoMerge "Revert "Check ro.treble.enabled for legacy devices""
Treehugger Robot [Wed, 30 Oct 2019 06:53:37 +0000 (06:53 +0000)]
Merge "Revert "Check ro.treble.enabled for legacy devices""

4 years agoRevert "Check ro.treble.enabled for legacy devices"
Daichi Hirono [Wed, 30 Oct 2019 04:56:35 +0000 (04:56 +0000)]
Revert "Check ro.treble.enabled for legacy devices"

This reverts commit 7343a1dc1513036c3122874076db43878037c18f.

Reason for revert: Broke some device boot

Change-Id: I3ebc423a88155652d4aa78f6fbf13faef0c911cb

4 years agoMerge "Revert "Revert "Revert "Revert "Use VNDK APEX instead of /system/lib/vndk...
Jooyung Han [Wed, 30 Oct 2019 04:44:18 +0000 (21:44 -0700)]
Merge "Revert "Revert "Revert "Revert "Use VNDK APEX instead of /system/lib/vndk""""" am: 097dd3b20c
am: 3e04079e12

Change-Id: I5346f9cc53a8ac7823ef4cb214685ad7a4adaf12