OSDN Git Service

android-x86/system-linkerconfig.git
3 years agomake APEXes with public libraries visible am: 52ccfa77b7 am: 12146575e5 am: 9e63f5f1c...
Jooyung Han [Wed, 9 Sep 2020 00:59:35 +0000 (00:59 +0000)]
make APEXes with public libraries visible am: 52ccfa77b7 am: 12146575e5 am: 9e63f5f1c4 am: d79860ce02

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1416070

Change-Id: I84b7f1c94cf939b9d7f9074e1df1b8f34cc5e7a4

3 years agomake APEXes with public libraries visible am: 52ccfa77b7 am: 12146575e5 am: 9e63f5f1c4
Jooyung Han [Wed, 9 Sep 2020 00:33:26 +0000 (00:33 +0000)]
make APEXes with public libraries visible am: 52ccfa77b7 am: 12146575e5 am: 9e63f5f1c4

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1416070

Change-Id: I53d1858dcccc04a6922a60d0730c5843859dc6ce

3 years agomake APEXes with public libraries visible am: 52ccfa77b7 am: 12146575e5
Jooyung Han [Wed, 9 Sep 2020 00:05:33 +0000 (00:05 +0000)]
make APEXes with public libraries visible am: 52ccfa77b7 am: 12146575e5

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1416070

Change-Id: I336fdc8eb269599b053a94bfa6787c2ae422f3b4

3 years agomake APEXes with public libraries visible am: 52ccfa77b7
Jooyung Han [Tue, 8 Sep 2020 23:47:03 +0000 (23:47 +0000)]
make APEXes with public libraries visible am: 52ccfa77b7

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1416070

Change-Id: I8363042a87448b03b43ee37405d38943d1895315

3 years agomake APEXes with public libraries visible
Jooyung Han [Tue, 1 Sep 2020 04:49:27 +0000 (13:49 +0900)]
make APEXes with public libraries visible

Public libraries (listed in /system/etc/public.libraries.txt) should be
available to classloader-namespace (created by libnativeloader). So,
linkerconfig reads public.libraries.txt and makes apexes with public
libraries visible.  This cleans up hard-coded references to nn, i18n, art
apexes.

And the list of apexes along with public libs are stored in
/linkerconfig/apex.libraries.config.txt so that libnativeloader can read
it and link them to classloader-namespace.

Bug: 150767721
Test: cuttlefish boots
Test: atest --host linkerconfig_diff_test
Change-Id: Idd7e2b0bcc6e54cd79c2b9c4c755f883b4507b74

3 years agoRetrieve extra informations from APEX config file am: f9920e2db4 am: 9427f61128 am...
Kiyoung Kim [Tue, 8 Sep 2020 01:35:27 +0000 (01:35 +0000)]
Retrieve extra informations from APEX config file am: f9920e2db4 am: 9427f61128 am: b0dd033467 am: 6e25a18990

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1400127

Change-Id: I0c47bd3ee8844f1ded5afa8af70bd1f2fedaabc0

3 years agoRetrieve extra informations from APEX config file am: f9920e2db4 am: 9427f61128 am...
Kiyoung Kim [Tue, 8 Sep 2020 01:14:03 +0000 (01:14 +0000)]
Retrieve extra informations from APEX config file am: f9920e2db4 am: 9427f61128 am: b0dd033467

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1400127

Change-Id: I045c68728d20df1d6b6395f297a2d761a16189f9

3 years agoRetrieve extra informations from APEX config file am: f9920e2db4 am: 9427f61128
Kiyoung Kim [Tue, 8 Sep 2020 00:48:22 +0000 (00:48 +0000)]
Retrieve extra informations from APEX config file am: f9920e2db4 am: 9427f61128

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1400127

Change-Id: I14e05f9f27612399b803c0bbdb3fe4f95d50accf

3 years agoRetrieve extra informations from APEX config file am: f9920e2db4
Kiyoung Kim [Tue, 8 Sep 2020 00:27:19 +0000 (00:27 +0000)]
Retrieve extra informations from APEX config file am: f9920e2db4

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1400127

Change-Id: I0d5426e2488b97c0b83e09e449d857a96934d713

3 years agoRetrieve extra informations from APEX config file
Kiyoung Kim [Mon, 31 Aug 2020 04:55:25 +0000 (13:55 +0900)]
Retrieve extra informations from APEX config file

Some of the APEX modules require extra configuration to make it work.
This change includes getting extra permitted paths to enable each APEX
module can update configuration by itself.

Bug: 148647510
Test: CF boot succeeded
Change-Id: I708e9a93bd5b54be91de1908640b90a26abb939c

3 years agoMerge "Add /data/local/tests/* directories for each linker namespace" am: 636293b191...
Treehugger Robot [Thu, 3 Sep 2020 04:36:25 +0000 (04:36 +0000)]
Merge "Add /data/local/tests/* directories for each linker namespace" am: 636293b191 am: 40c3f95245 am: c4da6b7c41 am: 9f5528ba89

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1415830

Change-Id: I163604333b72f3ee3cd21a0f0b4fee5cbddd3dec

3 years agoMerge "Add /data/local/tests/* directories for each linker namespace" am: 636293b191...
Treehugger Robot [Thu, 3 Sep 2020 04:07:36 +0000 (04:07 +0000)]
Merge "Add /data/local/tests/* directories for each linker namespace" am: 636293b191 am: 40c3f95245 am: c4da6b7c41

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1415830

Change-Id: I249e1a3d3bf0d3c972420eb2dd7416ef64a0120e

3 years agoMerge "Add /data/local/tests/* directories for each linker namespace" am: 636293b191...
Treehugger Robot [Thu, 3 Sep 2020 03:29:25 +0000 (03:29 +0000)]
Merge "Add /data/local/tests/* directories for each linker namespace" am: 636293b191 am: 40c3f95245

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1415830

Change-Id: I9aa268640745dbb65fd0a4152a5803c66cdfc85d

3 years agoMerge "Add /data/local/tests/* directories for each linker namespace" am: 636293b191
Treehugger Robot [Thu, 3 Sep 2020 03:07:05 +0000 (03:07 +0000)]
Merge "Add /data/local/tests/* directories for each linker namespace" am: 636293b191

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1415830

Change-Id: If962e208b526e2eb62d5a4f9f2e30acb4c9304ab

3 years agoMerge "Add /data/local/tests/* directories for each linker namespace"
Treehugger Robot [Thu, 3 Sep 2020 02:26:11 +0000 (02:26 +0000)]
Merge "Add /data/local/tests/* directories for each linker namespace"

3 years agoFix the linkerconfig host binary to not depend on libc++.so. am: aefc84e989 am: cc9dc...
Martin Stjernholm [Wed, 2 Sep 2020 05:50:41 +0000 (05:50 +0000)]
Fix the linkerconfig host binary to not depend on libc++.so. am: aefc84e989 am: cc9dc9ad58 am: 5b10e62c9c am: 0fe4ce9159

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1418008

Change-Id: I3f6c451e865ae4af8e1cb60c83ca6efe9fe256a5

3 years agoFix the linkerconfig host binary to not depend on libc++.so. am: aefc84e989 am: cc9dc...
Martin Stjernholm [Wed, 2 Sep 2020 05:32:53 +0000 (05:32 +0000)]
Fix the linkerconfig host binary to not depend on libc++.so. am: aefc84e989 am: cc9dc9ad58 am: 5b10e62c9c

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1418008

Change-Id: I0b0df3e4b8c10eda701e5c3ca315c7d10cc77fbb

3 years agoFix the linkerconfig host binary to not depend on libc++.so. am: aefc84e989 am: cc9dc...
Martin Stjernholm [Wed, 2 Sep 2020 05:11:18 +0000 (05:11 +0000)]
Fix the linkerconfig host binary to not depend on libc++.so. am: aefc84e989 am: cc9dc9ad58

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1418008

Change-Id: I079d9688b35aee28fc2a8d68e1b6bb2cd7b8a075

3 years agoFix the linkerconfig host binary to not depend on libc++.so. am: aefc84e989
Martin Stjernholm [Wed, 2 Sep 2020 04:27:44 +0000 (04:27 +0000)]
Fix the linkerconfig host binary to not depend on libc++.so. am: aefc84e989

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1418008

Change-Id: I0ea4ad0ff71f9090df7306503fb263a62e75222f

3 years ago[automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am...
Xin Li [Tue, 1 Sep 2020 22:09:53 +0000 (22:09 +0000)]
[automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am: 9ff04f39d8 -s ours am: aa38694029 -s ours am: 4259fe5878 -s ours

am skip reason: Change-Id I850da98f4c9cf1fcefdc8c95a7e604c310697423 with SHA-1 72ccbb3220 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/linkerconfig/+/12470383

Change-Id: I82ecabfb89173ed40a53dea2f9ed877ba966b2d4

3 years ago[automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am...
Xin Li [Tue, 1 Sep 2020 21:46:37 +0000 (21:46 +0000)]
[automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am: 9ff04f39d8 -s ours am: aa38694029 -s ours

am skip reason: Change-Id I850da98f4c9cf1fcefdc8c95a7e604c310697423 with SHA-1 72ccbb3220 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/linkerconfig/+/12470383

Change-Id: Iece0e8f41c1775ba780484787f92b4869b4e0196

3 years agoAdd /data/local/tests/* directories for each linker namespace
Colin Cross [Mon, 31 Aug 2020 04:46:23 +0000 (21:46 -0700)]
Add /data/local/tests/* directories for each linker namespace

Add entries for atest to push tests to under /data/local/tests
to allow tests to be run in the appropriate linker namespace.

Bug: 138450837
Test: atest binderVendorDoubleLoadTest memunreachable_unit_test memunreachable_binder_test
Test: atest --host linkerconfig_diff_test
Change-Id: I3839cf48ca233669a81dd4bb1584fc50300acfd9

3 years ago[automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am...
Xin Li [Tue, 1 Sep 2020 20:37:02 +0000 (20:37 +0000)]
[automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am: 9ff04f39d8 -s ours

am skip reason: Change-Id I850da98f4c9cf1fcefdc8c95a7e604c310697423 with SHA-1 72ccbb3220 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/linkerconfig/+/12470383

Change-Id: I1494e9be2eddc6a7476ddb5db4ae032287473dd8

3 years agoFix the linkerconfig host binary to not depend on libc++.so.
Martin Stjernholm [Tue, 1 Sep 2020 18:27:53 +0000 (19:27 +0100)]
Fix the linkerconfig host binary to not depend on libc++.so.

Test: build/soong/scripts/build-aml-prebuilts.sh runtime-module-host-exports
  Check with ldd that the linkerconfig binary in
  out/aml/soong/mainline-sdks/runtime-module-host-exports-current.zip
  isn't missing any DSO's.
Bug: 145934348
Change-Id: I08676a5d9c7ec3e76462fb74e882f81802528b98

3 years agoMerge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Xin Li [Thu, 27 Aug 2020 17:17:41 +0000 (10:17 -0700)]
Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)

Bug: 166295507
Merged-In: I850da98f4c9cf1fcefdc8c95a7e604c310697423
Change-Id: Iff0180b58beb9101e330a109a1cb8a90255e0e46

3 years agoSupport :vndk requirement from /product partition am: 949e311380 am: cc1dcd9f27 am...
Jooyung Han [Sat, 22 Aug 2020 01:38:44 +0000 (01:38 +0000)]
Support :vndk requirement from /product partition am: 949e311380 am: cc1dcd9f27 am: a542b16dd7 am: 9e4321dc0b

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1405889

Change-Id: I9f8c65748eeefa84d016ad221463a4f14cb25024

3 years agoSupport :vndk requirement from /product partition am: 949e311380 am: cc1dcd9f27 am...
Jooyung Han [Sat, 22 Aug 2020 01:27:59 +0000 (01:27 +0000)]
Support :vndk requirement from /product partition am: 949e311380 am: cc1dcd9f27 am: a542b16dd7

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1405889

Change-Id: Iebf28f3cae104e14eaab0a8fd3cc591b77b215e4

3 years agoSupport :vndk requirement from /product partition am: 949e311380 am: cc1dcd9f27
Jooyung Han [Sat, 22 Aug 2020 01:15:01 +0000 (01:15 +0000)]
Support :vndk requirement from /product partition am: 949e311380 am: cc1dcd9f27

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1405889

Change-Id: I1efde2f80b6aa1611018781bfa9f06822250cfaf

3 years agoSupport :vndk requirement from /product partition am: 949e311380
Jooyung Han [Sat, 22 Aug 2020 00:45:35 +0000 (00:45 +0000)]
Support :vndk requirement from /product partition am: 949e311380

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1405889

Change-Id: I28f3eee88aae387fc05cce617ca0894093de8e84

3 years agoSupport :vndk requirement from /product partition
Jooyung Han [Fri, 21 Aug 2020 09:50:18 +0000 (18:50 +0900)]
Support :vndk requirement from /product partition

linkerconfig can now distinguish /product/apex from /vendor/apex.
So, it provides correct version of VNDK to vendor apexes.

Bug: 159576928
Test: atest --host linkerconfig_diff_test
Change-Id: Ib11dd1c51a6b9e0c875edab12bb37026e33a80cc

3 years agoSkip reading apex-info-list when there's no apexes am: a2a5d03590 am: bc09b2a576...
Jooyung Han [Tue, 18 Aug 2020 10:01:59 +0000 (10:01 +0000)]
Skip reading apex-info-list when there's no apexes am: a2a5d03590 am: bc09b2a576 am: 18c83cfc49 am: 4a2fb8fc90

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1403307

Change-Id: I34c2d51f3dc2ed4563426f38b6e3967d03c4bb77

3 years agoSkip reading apex-info-list when there's no apexes am: a2a5d03590 am: bc09b2a576...
Jooyung Han [Tue, 18 Aug 2020 09:56:14 +0000 (09:56 +0000)]
Skip reading apex-info-list when there's no apexes am: a2a5d03590 am: bc09b2a576 am: 18c83cfc49

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1403307

Change-Id: I5dbfc3b5ea3a1a60bc28e6804b075ec7a220029f

3 years agoSkip reading apex-info-list when there's no apexes am: a2a5d03590 am: bc09b2a576
Jooyung Han [Tue, 18 Aug 2020 09:44:45 +0000 (09:44 +0000)]
Skip reading apex-info-list when there's no apexes am: a2a5d03590 am: bc09b2a576

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1403307

Change-Id: Ibe3df4756e1e01ce982935a8858c2f72ba3003f2

3 years agoSkip reading apex-info-list when there's no apexes am: a2a5d03590
Jooyung Han [Tue, 18 Aug 2020 09:28:49 +0000 (09:28 +0000)]
Skip reading apex-info-list when there's no apexes am: a2a5d03590

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1403307

Change-Id: Ia2359605430f0179dd0a738f33ff0eef71473381

3 years agoSkip reading apex-info-list when there's no apexes
Jooyung Han [Tue, 18 Aug 2020 07:35:31 +0000 (16:35 +0900)]
Skip reading apex-info-list when there's no apexes

linkerconfig may run even when there's no apexes activated. We need to
skip reading apex-info-list.xml then. Otherwise, it will emit an error
log when it is perfectly normal.

> E linkerconfig: Can't read /apex/apex-info-list.xml: No such file or directory

Bug: n/a
Test: device boots & see logs if there's an error
Change-Id: I8f6255de536618ad590ce18adf9b729e45c721df

3 years agoMerge "Add /vendor/lib/egl to sphal namespace" am: 869afe1f71 am: 07582a04bb am:...
Jason Macnak [Tue, 18 Aug 2020 03:03:36 +0000 (03:03 +0000)]
Merge "Add /vendor/lib/egl to sphal namespace" am: 869afe1f71 am: 07582a04bb am: 145a2a901a am: ebd6eecd33

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1400190

Change-Id: Ib9c8611738f66ada3ee9001047115be23f27deca

3 years agoMerge "Add /vendor/lib/egl to sphal namespace" am: 869afe1f71 am: 07582a04bb am:...
Jason Macnak [Tue, 18 Aug 2020 02:47:02 +0000 (02:47 +0000)]
Merge "Add /vendor/lib/egl to sphal namespace" am: 869afe1f71 am: 07582a04bb am: 145a2a901a

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1400190

Change-Id: I419c6e8283c5b88c319178f111b8c1d3c026e7f3

3 years agoMerge "Add /vendor/lib/egl to sphal namespace" am: 869afe1f71 am: 07582a04bb
Jason Macnak [Tue, 18 Aug 2020 02:33:46 +0000 (02:33 +0000)]
Merge "Add /vendor/lib/egl to sphal namespace" am: 869afe1f71 am: 07582a04bb

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1400190

Change-Id: I382c17045010a0a236aaee378e77f45d5a98d6ca

3 years agoMerge "Add /vendor/lib/egl to sphal namespace" am: 869afe1f71
Jason Macnak [Tue, 18 Aug 2020 02:21:53 +0000 (02:21 +0000)]
Merge "Add /vendor/lib/egl to sphal namespace" am: 869afe1f71

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1400190

Change-Id: I951388ba0eb4446e93b03853ece30b01cbcd1ecc

3 years agoMerge "Add /vendor/lib/egl to sphal namespace"
Jason Macnak [Tue, 18 Aug 2020 02:10:38 +0000 (02:10 +0000)]
Merge "Add /vendor/lib/egl to sphal namespace"

3 years agoAdd /vendor/lib/egl to sphal namespace
Jason Macnak [Fri, 14 Aug 2020 17:36:16 +0000 (10:36 -0700)]
Add /vendor/lib/egl to sphal namespace

... to support having ANGLE as the native GL driver
which needs to dlopen libGLESv2. Without this change,
devices would have to create symlinks from libs in the
nested egl directory to the parent directory.

Bug: b/165022040
Test: launch Cuttlefish with ANGLE
Change-Id: Ib60bd8397fdf1f1ba52bbe1c249ae100c0c68e70

3 years agoMerge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI" am: a5e31e...
Treehugger Robot [Sat, 15 Aug 2020 08:12:01 +0000 (08:12 +0000)]
Merge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI" am: a5e31e2f92 am: 6ebcf89be5 am: 51de2a73ed am: 6254adf1e6

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1396430

Change-Id: Id3b9ae5dd317505dc4056c0f9f5e8489e7b4e96f

3 years agoMerge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI" am: a5e31e...
Treehugger Robot [Sat, 15 Aug 2020 08:02:36 +0000 (08:02 +0000)]
Merge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI" am: a5e31e2f92 am: 6ebcf89be5 am: 51de2a73ed

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1396430

Change-Id: Ic66354f7d177c3f3b16251bae3fd6b884985fe58

3 years agoMerge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI" am: a5e31e...
Treehugger Robot [Sat, 15 Aug 2020 07:53:47 +0000 (07:53 +0000)]
Merge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI" am: a5e31e2f92 am: 6ebcf89be5

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1396430

Change-Id: I532ce573431efed176b8dae8db8ac7fffb243eff

3 years agoMerge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI" am: a5e31e2f92
Treehugger Robot [Sat, 15 Aug 2020 07:44:37 +0000 (07:44 +0000)]
Merge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI" am: a5e31e2f92

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1396430

Change-Id: I863efc0f8fe1d73ebe6b8943a4ff7489b3331bcf

3 years agoMerge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI"
Treehugger Robot [Sat, 15 Aug 2020 07:34:44 +0000 (07:34 +0000)]
Merge changes from topic "revert-1387130-revert-apex-info-list-XDFTNNKFQI"

* changes:
  Revert^2 "Fix "vndk" namespace for vendor apexes"
  Revert^2 "Read apex-info-file.xml to distinguish vendor apex"

3 years ago[automerger skipped] Mark vndk_in_system namespace as invisible am: e6c4f5f357 -s...
Kiyoung Kim [Thu, 13 Aug 2020 03:19:45 +0000 (03:19 +0000)]
[automerger skipped] Mark vndk_in_system namespace as invisible am: e6c4f5f357 -s ours

am skip reason: Change-Id If82cc9c1cc279125bed9977d1bcdc930e45880db with SHA-1 93fbdf7b74 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/linkerconfig/+/12321689

Change-Id: Ia6ef191ef873652946e02ecd83f78a3e29d9980a

3 years agoRevert^2 "Fix "vndk" namespace for vendor apexes"
Jooyung Han [Tue, 11 Aug 2020 08:56:29 +0000 (08:56 +0000)]
Revert^2 "Fix "vndk" namespace for vendor apexes"

51a44276496b47a2a682d6498a47d52b70cc40ee

Change-Id: Id608e1e02b3d466a72194049548bca1a7756dd1f

3 years agoRevert^2 "Read apex-info-file.xml to distinguish vendor apex"
Jooyung Han [Tue, 11 Aug 2020 08:56:29 +0000 (08:56 +0000)]
Revert^2 "Read apex-info-file.xml to distinguish vendor apex"

c7d600933296817cb4fbe611a25482567bd9cd44

Change-Id: Ic9b056b3726c6c385f9723a2fb5c5cc6609da3b3

3 years agoMake linkerconfig a static executable only on device. am: 908bfdbd22 am: 8f50bd99dc...
Martin Stjernholm [Mon, 10 Aug 2020 16:40:29 +0000 (16:40 +0000)]
Make linkerconfig a static executable only on device. am: 908bfdbd22 am: 8f50bd99dc am: 42999a9aba am: 1b2d2fdd50

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1393397

Change-Id: I3aad666d7c47c622ea00543b1606a42e65a86d53

3 years agoMake linkerconfig a static executable only on device. am: 908bfdbd22 am: 8f50bd99dc...
Martin Stjernholm [Mon, 10 Aug 2020 16:22:04 +0000 (16:22 +0000)]
Make linkerconfig a static executable only on device. am: 908bfdbd22 am: 8f50bd99dc am: 42999a9aba

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1393397

Change-Id: I2ccd5125eb8c51eeda6b7321dda01dca883a121a

3 years agoMake linkerconfig a static executable only on device. am: 908bfdbd22 am: 8f50bd99dc
Martin Stjernholm [Mon, 10 Aug 2020 16:03:47 +0000 (16:03 +0000)]
Make linkerconfig a static executable only on device. am: 908bfdbd22 am: 8f50bd99dc

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1393397

Change-Id: I09a948859c9df0c30b629b024a4e241a4ebbcb6d

3 years agoMake linkerconfig a static executable only on device. am: 908bfdbd22
Martin Stjernholm [Mon, 10 Aug 2020 15:50:35 +0000 (15:50 +0000)]
Make linkerconfig a static executable only on device. am: 908bfdbd22

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1393397

Change-Id: Ic74811e81c6dbcab1bfcae2ad9373a380968a9bf

3 years agoMake linkerconfig a static executable only on device.
Martin Stjernholm [Fri, 7 Aug 2020 18:00:55 +0000 (19:00 +0100)]
Make linkerconfig a static executable only on device.

Don't link libc statically on host, but everything else is still
static.

Test: `art/tools/buildbot-build.sh --target` on AOSP master
Test: `art/tools/buildbot-build.sh --target`
  on master-art with prebuilt linkerconfig binary.
Test: Flash & boot
Bug: 162819454
Change-Id: I78e5d2ed5f654ea7db11e227556ec29b06eb1349

3 years agoMark vndk_in_system namespace as invisible
Kiyoung Kim [Mon, 3 Aug 2020 05:16:27 +0000 (05:16 +0000)]
Mark vndk_in_system namespace as invisible

vndk_in_system namespace is visible currently. However, this namespace
should be invisible as it exists within vendor section and contains
system library paths, so mark this as visible can cause disallowed
access from vendor binary to system libs. This change marks
vndk_in_system namespace as invisible.

Bug: 161076708
Test: Cuttlefish Go phone GTS test passed
Change-Id: If82cc9c1cc279125bed9977d1bcdc930e45880db
Merged-In: If82cc9c1cc279125bed9977d1bcdc930e45880db

3 years agoAdd :sphal, :vndksp for apex configuration am: 0bb103f96d am: 412cd5919c am: 5181c1c4...
Jooyung Han [Wed, 5 Aug 2020 08:15:38 +0000 (08:15 +0000)]
Add :sphal, :vndksp for apex configuration am: 0bb103f96d am: 412cd5919c am: 5181c1c402 am: 71e479cce9

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1373257

Change-Id: I6f13d9b9dbfc21fe29a849b85bb961bc5ce259e2

3 years agoAdd :sphal, :vndksp for apex configuration am: 0bb103f96d am: 412cd5919c am: 5181c1c402
Jooyung Han [Wed, 5 Aug 2020 07:58:39 +0000 (07:58 +0000)]
Add :sphal, :vndksp for apex configuration am: 0bb103f96d am: 412cd5919c am: 5181c1c402

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1373257

Change-Id: Id16b671d66cdbafb655be03edd16564fa36aee22

3 years agoAdd :sphal, :vndksp for apex configuration am: 0bb103f96d am: 412cd5919c
Jooyung Han [Wed, 5 Aug 2020 07:35:33 +0000 (07:35 +0000)]
Add :sphal, :vndksp for apex configuration am: 0bb103f96d am: 412cd5919c

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1373257

Change-Id: Id171f01b4e8c390d80a97299ee1a49219921382f

3 years agoAdd :sphal, :vndksp for apex configuration am: 0bb103f96d
Jooyung Han [Wed, 5 Aug 2020 07:11:48 +0000 (07:11 +0000)]
Add :sphal, :vndksp for apex configuration am: 0bb103f96d

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1373257

Change-Id: I42e16b6a06c2a58241723f52e01c7725f71f6f79

3 years agoMerge "Update codebase with static analysis result" am: 53edf3a707 am: 509f0f0a7c...
Treehugger Robot [Wed, 5 Aug 2020 06:20:51 +0000 (06:20 +0000)]
Merge "Update codebase with static analysis result" am: 53edf3a707 am: 509f0f0a7c am: dac805a833 am: 8db0358823

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1386196

Change-Id: I2382881c00435f4077bf1e662e548958d95de998

3 years agoMerge "Update codebase with static analysis result" am: 53edf3a707 am: 509f0f0a7c...
Treehugger Robot [Wed, 5 Aug 2020 06:02:34 +0000 (06:02 +0000)]
Merge "Update codebase with static analysis result" am: 53edf3a707 am: 509f0f0a7c am: dac805a833

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1386196

Change-Id: If7b0e0c649bbdc091a8deb971ad0fb2e8bf4d959

3 years agoAdd :sphal, :vndksp for apex configuration
Jooyung Han [Tue, 28 Jul 2020 01:26:41 +0000 (10:26 +0900)]
Add :sphal, :vndksp for apex configuration

This removes hard-coded special-casing of com.android.media.swcodec
APEX.

swcodec APEX declares "requireNativeLibs" with ":sphal" so that
linkerconfig can add "sphal" and "vndk" namespaces for it. Note that
a link from sphal to vndk with shared_libs(VNDK-SP) is derived by
":vndksp" from "sphal" namespace.

Bug: n/a
Test: ./rundiff.sh
   => no significant changes
Test: build & device boots
Merged-In: Ib2c78cde05b745d6b1e2b06b88e40446c0ddd4f0
Change-Id: Ib2c78cde05b745d6b1e2b06b88e40446c0ddd4f0
(cherry picked from commit e70d72dda438ab1629e6df42cda917a8b69cbb01)

3 years agoMerge "Update codebase with static analysis result" am: 53edf3a707 am: 509f0f0a7c
Treehugger Robot [Wed, 5 Aug 2020 05:42:55 +0000 (05:42 +0000)]
Merge "Update codebase with static analysis result" am: 53edf3a707 am: 509f0f0a7c

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1386196

Change-Id: I8eefb05bffc867a6a9b48c3fb89ff89b0b89ce82

3 years agoMerge "Update codebase with static analysis result" am: 53edf3a707
Treehugger Robot [Wed, 5 Aug 2020 05:27:06 +0000 (05:27 +0000)]
Merge "Update codebase with static analysis result" am: 53edf3a707

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1386196

Change-Id: Ifd2d642d358df49443992e80dc83b62f6836096b

3 years agoMerge "Update codebase with static analysis result"
Treehugger Robot [Wed, 5 Aug 2020 05:15:47 +0000 (05:15 +0000)]
Merge "Update codebase with static analysis result"

3 years agoUpdate codebase with static analysis result
Kiyoung Kim [Mon, 3 Aug 2020 14:15:52 +0000 (23:15 +0900)]
Update codebase with static analysis result

There were some issues reported by code static analysis tool. This
change includes update from the result with applicable items.

Test: cf booted & atest passed
Change-Id: I7d8e4e6c8dc1fc5893ab1d2365eb64fce47db220
Merged-In: I7d8e4e6c8dc1fc5893ab1d2365eb64fce47db220

3 years agoRevert "Read apex-info-file.xml to distinguish vendor apex" am: c7d6009332 am: c5a30b...
Jooyung Han [Tue, 4 Aug 2020 15:48:05 +0000 (15:48 +0000)]
Revert "Read apex-info-file.xml to distinguish vendor apex" am: c7d6009332 am: c5a30bfaa7 am: 2b28adef43 am: 308a983d1a

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1387131

Change-Id: I295af6b626656b176af60c1f4ad16d2b8c726503

3 years agoRevert "Fix "vndk" namespace for vendor apexes" am: 51a4427649 am: 58ab18bc1d am...
Jooyung Han [Tue, 4 Aug 2020 15:48:04 +0000 (15:48 +0000)]
Revert "Fix "vndk" namespace for vendor apexes" am: 51a4427649 am: 58ab18bc1d am: 8fef232e3d am: e1d9fbdf90

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1387130

Change-Id: I0df6ae46f402813d691030a857acd63707eb2deb

3 years agoRevert "Read apex-info-file.xml to distinguish vendor apex" am: c7d6009332 am: c5a30b...
Jooyung Han [Tue, 4 Aug 2020 15:37:27 +0000 (15:37 +0000)]
Revert "Read apex-info-file.xml to distinguish vendor apex" am: c7d6009332 am: c5a30bfaa7 am: 2b28adef43

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1387131

Change-Id: I4d03a1aa792c5092a4e0e51f3098236ac527fa97

3 years agoRevert "Fix "vndk" namespace for vendor apexes" am: 51a4427649 am: 58ab18bc1d am...
Jooyung Han [Tue, 4 Aug 2020 15:37:26 +0000 (15:37 +0000)]
Revert "Fix "vndk" namespace for vendor apexes" am: 51a4427649 am: 58ab18bc1d am: 8fef232e3d

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1387130

Change-Id: I84e8effcec9ae0bcfff560ada9144c6f08969e8e

3 years agoRevert "Read apex-info-file.xml to distinguish vendor apex" am: c7d6009332 am: c5a30bfaa7
Jooyung Han [Tue, 4 Aug 2020 15:26:02 +0000 (15:26 +0000)]
Revert "Read apex-info-file.xml to distinguish vendor apex" am: c7d6009332 am: c5a30bfaa7

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1387131

Change-Id: Ibefe240e7228263607f01c722abeaa4129f5c1d7

3 years agoRevert "Fix "vndk" namespace for vendor apexes" am: 51a4427649 am: 58ab18bc1d
Jooyung Han [Tue, 4 Aug 2020 15:26:01 +0000 (15:26 +0000)]
Revert "Fix "vndk" namespace for vendor apexes" am: 51a4427649 am: 58ab18bc1d

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1387130

Change-Id: I0bb1a74bb3865fa3790dcce249a19b9cd4f5968d

3 years agoRevert "Read apex-info-file.xml to distinguish vendor apex" am: c7d6009332
Jooyung Han [Tue, 4 Aug 2020 15:08:01 +0000 (15:08 +0000)]
Revert "Read apex-info-file.xml to distinguish vendor apex" am: c7d6009332

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1387131

Change-Id: I90242e1d91f0a401e4c1768d97a8000a5e4f7f91

3 years agoRevert "Fix "vndk" namespace for vendor apexes" am: 51a4427649
Jooyung Han [Tue, 4 Aug 2020 15:07:59 +0000 (15:07 +0000)]
Revert "Fix "vndk" namespace for vendor apexes" am: 51a4427649

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1387130

Change-Id: I9d2401e3330b89c591e3dfae1c393b500350c6ac

3 years agoRevert "Read apex-info-file.xml to distinguish vendor apex"
Jooyung Han [Tue, 4 Aug 2020 11:23:55 +0000 (20:23 +0900)]
Revert "Read apex-info-file.xml to distinguish vendor apex"

This reverts commit d32f7fa2697f38898c8c07459796bc823fa34666.

Reason: breaks master-art

Bug: 162819454
Test: m nothing
Change-Id: Ia658a473d5957f7ffef9851449559ce92961a991

3 years agoRevert "Fix "vndk" namespace for vendor apexes"
Jooyung Han [Tue, 4 Aug 2020 11:23:47 +0000 (20:23 +0900)]
Revert "Fix "vndk" namespace for vendor apexes"

This reverts commit 5e40c4c723c4582ca334d2a1e2ec2ad5dda3b078.

Reason: breaks master-art branch

Bug: n/a
Test: m nothing
Change-Id: Ic918465aa629045049ccd76b564e5e2c9cdf8761

3 years agoMerge changes from topic "vndk-apex-build" am: 45f1026c2c am: 40991498ac am: 691c40fb...
Jooyung Han [Tue, 4 Aug 2020 04:47:46 +0000 (04:47 +0000)]
Merge changes from topic "vndk-apex-build" am: 45f1026c2c am: 40991498ac am: 691c40fbfd am: 21031d180f

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1376877

Change-Id: Idc5df30f701c752ad012ea25687808b3f79c04b3

3 years agoRead apex-info-file.xml to distinguish vendor apex am: d32f7fa269 am: 1fcee56ec8...
Jooyung Han [Tue, 4 Aug 2020 04:47:43 +0000 (04:47 +0000)]
Read apex-info-file.xml to distinguish vendor apex am: d32f7fa269 am: 1fcee56ec8 am: 5ac21b5e8e am: 419cecfe2d

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1376876

Change-Id: I4e69a19e41547be01a69425b5cf43fed2e34aff4

3 years agoMerge changes from topic "vndk-apex-build" am: 45f1026c2c am: 40991498ac am: 691c40fbfd
Jooyung Han [Tue, 4 Aug 2020 04:23:20 +0000 (04:23 +0000)]
Merge changes from topic "vndk-apex-build" am: 45f1026c2c am: 40991498ac am: 691c40fbfd

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1376877

Change-Id: Idbe760301155b76f5ae5d311978ee005849ea91c

3 years agoRead apex-info-file.xml to distinguish vendor apex am: d32f7fa269 am: 1fcee56ec8...
Jooyung Han [Tue, 4 Aug 2020 04:23:18 +0000 (04:23 +0000)]
Read apex-info-file.xml to distinguish vendor apex am: d32f7fa269 am: 1fcee56ec8 am: 5ac21b5e8e

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1376876

Change-Id: I7bd38dcf0629a4ca68f759cc47863ee83cf0e6d6

3 years agoMerge changes from topic "vndk-apex-build" am: 45f1026c2c am: 40991498ac
Jooyung Han [Tue, 4 Aug 2020 03:54:34 +0000 (03:54 +0000)]
Merge changes from topic "vndk-apex-build" am: 45f1026c2c am: 40991498ac

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1376877

Change-Id: I1dcc3d71c1dc160a38cf524b1df7681fb7da37f4

3 years agoRead apex-info-file.xml to distinguish vendor apex am: d32f7fa269 am: 1fcee56ec8
Jooyung Han [Tue, 4 Aug 2020 03:54:32 +0000 (03:54 +0000)]
Read apex-info-file.xml to distinguish vendor apex am: d32f7fa269 am: 1fcee56ec8

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1376876

Change-Id: I3742fcef5464d277dc23fb824ea1cfca7b4e5f4d

3 years agoMerge changes from topic "vndk-apex-build" am: 45f1026c2c
Jooyung Han [Tue, 4 Aug 2020 03:31:04 +0000 (03:31 +0000)]
Merge changes from topic "vndk-apex-build" am: 45f1026c2c

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1376877

Change-Id: Ide13bb28ae65ab5e67f542dae6e5bfd9f8ca2a93

3 years agoRead apex-info-file.xml to distinguish vendor apex am: d32f7fa269
Jooyung Han [Tue, 4 Aug 2020 03:31:02 +0000 (03:31 +0000)]
Read apex-info-file.xml to distinguish vendor apex am: d32f7fa269

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1376876

Change-Id: Idf3ab6c1abc201dc5d55569af601a28fd6658e8b

3 years agoMerge changes from topic "vndk-apex-build"
Jooyung Han [Tue, 4 Aug 2020 03:11:49 +0000 (03:11 +0000)]
Merge changes from topic "vndk-apex-build"

* changes:
  Fix "vndk" namespace for vendor apexes
  Read apex-info-file.xml to distinguish vendor apex

3 years agoMerge "Mark vndk_in_system namespace as invisible" am: edf3069eed am: ba2949d0a8...
Kiyoung Kim [Mon, 3 Aug 2020 05:08:24 +0000 (05:08 +0000)]
Merge "Mark vndk_in_system namespace as invisible" am: edf3069eed am: ba2949d0a8 am: 4c76ce68cb am: e08f17f471

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1382120

Change-Id: I89355452393248488857570d75f71346971a43b0

3 years agoMerge "Mark vndk_in_system namespace as invisible" am: edf3069eed am: ba2949d0a8...
Kiyoung Kim [Mon, 3 Aug 2020 04:45:00 +0000 (04:45 +0000)]
Merge "Mark vndk_in_system namespace as invisible" am: edf3069eed am: ba2949d0a8 am: 4c76ce68cb

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1382120

Change-Id: I37348ab9324d792699b26531c61385058656ae43

3 years agoMerge "Mark vndk_in_system namespace as invisible" am: edf3069eed am: ba2949d0a8
Kiyoung Kim [Mon, 3 Aug 2020 04:32:41 +0000 (04:32 +0000)]
Merge "Mark vndk_in_system namespace as invisible" am: edf3069eed am: ba2949d0a8

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1382120

Change-Id: I795f39ab324c64504413cbebbef00e027138896d

3 years agovndk: add vendor/lib or product/lib to search_path am: d258eba1c4 am: baf1c90894...
Jooyung Han [Mon, 3 Aug 2020 04:21:04 +0000 (04:21 +0000)]
vndk: add vendor/lib or product/lib to search_path am: d258eba1c4 am: baf1c90894 am: bd238feb1f am: 9c9ada5fcc

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1385027

Change-Id: I40d5abb663565afe8d03af53474e55ad25ab0ee8

3 years agoMerge "Mark vndk_in_system namespace as invisible" am: edf3069eed
Kiyoung Kim [Mon, 3 Aug 2020 04:11:56 +0000 (04:11 +0000)]
Merge "Mark vndk_in_system namespace as invisible" am: edf3069eed

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1382120

Change-Id: Ib5ecc399174a9e7e482575cbc74e5cb83690db4c

3 years agovndk: add vendor/lib or product/lib to search_path am: d258eba1c4 am: baf1c90894...
Jooyung Han [Mon, 3 Aug 2020 04:00:48 +0000 (04:00 +0000)]
vndk: add vendor/lib or product/lib to search_path am: d258eba1c4 am: baf1c90894 am: bd238feb1f

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1385027

Change-Id: Iac57365a1454f1871c9bd0c3372e168ad932503b

3 years agoMerge "Mark vndk_in_system namespace as invisible"
Kiyoung Kim [Mon, 3 Aug 2020 03:57:46 +0000 (03:57 +0000)]
Merge "Mark vndk_in_system namespace as invisible"

3 years agovndk: add vendor/lib or product/lib to search_path am: d258eba1c4 am: baf1c90894
Jooyung Han [Mon, 3 Aug 2020 03:45:31 +0000 (03:45 +0000)]
vndk: add vendor/lib or product/lib to search_path am: d258eba1c4 am: baf1c90894

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1385027

Change-Id: I9b49785ebf5f00ffcec4e1cd7883d7ead33f78b7

3 years agoFix "vndk" namespace for vendor apexes
Jooyung Han [Wed, 29 Jul 2020 16:37:30 +0000 (01:37 +0900)]
Fix "vndk" namespace for vendor apexes

"vndk" namespace for non-system use cases (e.g. vendor section, vendor
apex, etc) should have /vndk as well as /vndk-sp to support VDNK
extensions.

In the following example, "vendor_hello" is a cc_library(vendor:true)
with dependencies to libbase/libc++/liblog, which is bundled in a vendor
apex "com.android.hello".

libbase/libc++(VNDK) are from VNDK APEX and liblog(LLNDK) are from
/system/lib.

$ adb shell ldd /apex/com.android.hello/bin/vendor_hello
        linux-gate.so.1 => [vdso] (0xea2b3000)
        libbase.so => /apex/com.android.vndk.vS/lib/libbase.so (0xe984b000)
        libc++.so => /apex/com.android.vndk.vS/lib/libc++.so (0xe9788000)
        liblog.so => /system/lib/liblog.so (0xe9f44000)
        libc++.so => /system/lib/libc++.so (0xe98c3000)
        libc.so => /apex/com.android.runtime/lib/bionic/libc.so (0xe99dd000)
        libm.so => /apex/com.android.runtime/lib/bionic/libm.so (0xe9881000)
        libdl.so => /apex/com.android.runtime/lib/bionic/libdl.so (0xe99ab000)

Bug: 159576928
Test: build a vendor apex with use_vndk_as_stable
      check the dependency of a binary in it
Change-Id: I04e9e72af34630e08d4828d4ff644b0ee2aa861b

3 years agovndk: add vendor/lib or product/lib to search_path am: d258eba1c4
Jooyung Han [Mon, 3 Aug 2020 03:22:55 +0000 (03:22 +0000)]
vndk: add vendor/lib or product/lib to search_path am: d258eba1c4

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1385027

Change-Id: Ie1aaba4f1e350685863d336b67a82090ea1d07ac

3 years agoRead apex-info-file.xml to distinguish vendor apex
Jooyung Han [Wed, 29 Jul 2020 16:15:18 +0000 (01:15 +0900)]
Read apex-info-file.xml to distinguish vendor apex

/apex/apex-info-file.xml is the list of all apexes with preinstalled
path. By looking up original paths, we can figure out if an apex is
from /vendor or /system even if it is updated.

Bug: 159576928
Test: build & device boots
Change-Id: Ie32b10bfbdd9c1b6026c4b0fc93b57a2af6b5da5

3 years agovndk: add vendor/lib or product/lib to search_path
Jooyung Han [Fri, 31 Jul 2020 09:58:09 +0000 (18:58 +0900)]
vndk: add vendor/lib or product/lib to search_path

"vndk" namespace have vendor/lib/vndk first in search paths so that VNDK
extension libraries have higher proiorty than normal VNDK libs.
However, VNDK extensions are allowed to use vendor libraries
(/vendor/lib). This was enabled by linking "sphal" namespace.

It was a bit weird because sphal namespace links vndk and vndk links
sphal again.

Moreover, "vndk_product" namespace can't link to /product/lib. We could
have "product" namespace and link it from vndk_product.

But instead, we add /vendor/lib to the search paths of "vndk" namespace
and /product/lib to "vndk_product" namespace so that VNDK extensions use
libs from there.

Now we don't need to link sphal from vndk.

Bug: 162462078
Test: HelloActivityProduct loads libjni_product successfully.
Merged-In: I6c5d47239dae427194345e03522a726997389167
Change-Id: I6c5d47239dae427194345e03522a726997389167
(cherry picked from commit 87122ca998fdc6f6d404fbe0539221eb9d242ca2)

3 years agoCleanup for Android's inclusive language guidance am: 1fc46cc922 am: 2552a892ab am...
Luke Huang [Sun, 2 Aug 2020 16:15:36 +0000 (16:15 +0000)]
Cleanup for Android's inclusive language guidance am: 1fc46cc922 am: 2552a892ab am: e5aa7f6484 am: a844cd1027

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1379236

Change-Id: I75e7c4ba290947edc7858526f4edc776c3d198fa

3 years agoCleanup for Android's inclusive language guidance am: 1fc46cc922 am: 2552a892ab am...
Luke Huang [Sun, 2 Aug 2020 15:52:33 +0000 (15:52 +0000)]
Cleanup for Android's inclusive language guidance am: 1fc46cc922 am: 2552a892ab am: e5aa7f6484

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1379236

Change-Id: I86c53ee8e19743932efc68e18bf10d6e81fa2980

3 years agoCleanup for Android's inclusive language guidance am: 1fc46cc922 am: 2552a892ab
Luke Huang [Sun, 2 Aug 2020 15:26:49 +0000 (15:26 +0000)]
Cleanup for Android's inclusive language guidance am: 1fc46cc922 am: 2552a892ab

Original change: https://android-review.googlesource.com/c/platform/system/linkerconfig/+/1379236

Change-Id: Ic3a72bd97c5513f0cc9665603c063c371d3733c6