OSDN Git Service

android-x86/system-linkerconfig.git
4 years agoMove libz from VNDKSP to LLNDK in case of VNDK Lite am: 14530493f6
Kiyoung Kim [Thu, 2 Apr 2020 08:34:19 +0000 (08:34 +0000)]
Move libz from VNDKSP to LLNDK in case of VNDK Lite am: 14530493f6

Change-Id: Iaad65474633d1cb054638fb1def5d42fa466e3b0

4 years agoAdd legacy test configuration am: 71b4bf30cf
Jooyung Han [Thu, 2 Apr 2020 08:34:04 +0000 (08:34 +0000)]
Add legacy test configuration am: 71b4bf30cf

Change-Id: I621252a9071bf6189b760b63415b0cc29c570a12

4 years agoAdd legacy test configuration
Jooyung Han [Thu, 2 Apr 2020 06:40:41 +0000 (15:40 +0900)]
Add legacy test configuration

And deprecated --legacy option.

Instead, to run linkerconfig with legacy mode, run it without -v option.
(-v is for setting vndk version).
For example,
  $ linkerconfig -r <root> -t <target>

Legacy mode:
  ro.vndk.version is not set and VNDK is not available.
  but other apexes are available.

Bug: 140599044
Test: ./rundiff.sh
Change-Id: I81cba2d6c6466737fcb4dd33407837b016c42b78

4 years agoMove libz from VNDKSP to LLNDK in case of VNDK Lite
Kiyoung Kim [Tue, 31 Mar 2020 05:47:32 +0000 (14:47 +0900)]
Move libz from VNDKSP to LLNDK in case of VNDK Lite

In case of VNDK Lite libz should be listed in LLNDK rather than VNDKSP.
This process has been missed while we move the logic to linkerconfig.
This change updates library list based on the library file name in case
of VNDK lite device.

Bug: 141908078
Test: m -j passed
Change-Id: I22eb76619c1242ab26c1d611a08b98177b08285c
Merged-In: I22eb76619c1242ab26c1d611a08b98177b08285c

4 years agoAdd more configurations for rundiff tests am: 0441fd330b
Jooyung Han [Tue, 31 Mar 2020 15:12:16 +0000 (15:12 +0000)]
Add more configurations for rundiff tests am: 0441fd330b

Change-Id: I7b046d2378f0ea002418369b857d2c48585f8bbd

4 years agoRefactor rundiff.sh am: 77d84bdee3
Jooyung Han [Tue, 31 Mar 2020 14:44:17 +0000 (14:44 +0000)]
Refactor rundiff.sh am: 77d84bdee3

Change-Id: I1798f74bedb3b4f4dc9e8b611ac4e8466cded23c

4 years agoAdd more configurations for rundiff tests
Jooyung Han [Tue, 31 Mar 2020 07:14:56 +0000 (16:14 +0900)]
Add more configurations for rundiff tests

stage0:
  no apexes. this configuration corresponds to the one for
  apexd-bootstrap process.

stage1:
  with bootstrap apexes. this corresponds to the one right after
  apexd-bootstrap finishes

stage2:
  with all apexes. this corresponds to the one for every other
  processes.

product-enabled:
  ro.product.vndk.version is set.

vndk-lite:
  ro.vndk.lite is set to true.

Bug: 140599044
Test: ./rundiff.sh
Change-Id: If7dc6aedf05e2078643e52559c580de425693dc5

4 years agoRefactor rundiff.sh
Jooyung Han [Tue, 31 Mar 2020 06:44:53 +0000 (15:44 +0900)]
Refactor rundiff.sh

(copied from reverted d283fb913db051ef0653c9ea1af5d2d865dbbbf0)

. Add --update to update golden_output
. Do not rely on ANDROID_BUILD_TOP (required to be run on cloud)

Bug: n/a
Test: ./rundiff.sh # no changes
Change-Id: I098dabd2c5cd06f18a806cf66f593ea930f02945

4 years agoRevert "Make diff test as presubmit" am: 9750b6cffc
Jooyung Han [Tue, 24 Mar 2020 09:17:14 +0000 (09:17 +0000)]
Revert "Make diff test as presubmit" am: 9750b6cffc

Change-Id: I8e68b2d58a3152633eb7e0e43fe09c0d36a2ce2f

4 years agoRevert "Make diff test as presubmit"
Jooyung Han [Tue, 24 Mar 2020 07:33:00 +0000 (07:33 +0000)]
Revert "Make diff test as presubmit"

This reverts commit d283fb913db051ef0653c9ea1af5d2d865dbbbf0.

Reason for revert: flaky (b/152265282)

Change-Id: Ie73fd1967384281f3e727b2482bf1ee7ffec38d5

4 years agoMake diff test as presubmit am: d283fb913d
Jooyung Han [Mon, 23 Mar 2020 07:35:14 +0000 (07:35 +0000)]
Make diff test as presubmit am: d283fb913d

Change-Id: Idec7b43a759745bd5d30d37c7dd3f2b3c9f95089

4 years agoMake diff test as presubmit
Jooyung Han [Fri, 20 Mar 2020 09:20:23 +0000 (18:20 +0900)]
Make diff test as presubmit

so that changes to the output can be tracked.

Bug: 140599044
Test: atest --host linkerconfig_diff_test
Change-Id: Ib7a026ca5cb794a614279ce2eee53c6ef8219d1f

4 years agoUpdate testdata/golden_output am: e4f6ccdc08
Jooyung Han [Fri, 20 Mar 2020 11:36:33 +0000 (11:36 +0000)]
Update testdata/golden_output am: e4f6ccdc08

Change-Id: Iac946bf2f7d295c3a384f0a34beb6c18e7fb887d

4 years agoUpdate testdata/golden_output
Jooyung Han [Fri, 20 Mar 2020 05:55:47 +0000 (14:55 +0900)]
Update testdata/golden_output

libselinux.so is added to system_stub_libraries in
74d75a773d200542ac3439fc166aa87ef40e0104

Bug: 151053366
Test: ./rundiff.sh
Change-Id: Id69eded5f144958676d2b4b72774efa4fb82211f

4 years agoDO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp@6304901 into stag-aosp-master
Xin Li [Thu, 19 Mar 2020 02:40:57 +0000 (19:40 -0700)]
DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp@6304901 into stag-aosp-master

Bug: 151763422
Change-Id: Id48957dd365fb876c24660d0e92a78deac196c70

4 years agoMerge "Make libseliux a stub library" am: 7587c35384 am: 265081fd7a
Automerger Merge Worker [Thu, 12 Mar 2020 03:31:16 +0000 (03:31 +0000)]
Merge "Make libseliux a stub library" am: 7587c35384 am: 265081fd7a

Change-Id: I7c65d3dbd307c09372abdd665f0d6e293fedc936

4 years agoMerge "Make libseliux a stub library" am: 7587c35384
Automerger Merge Worker [Thu, 12 Mar 2020 03:09:59 +0000 (03:09 +0000)]
Merge "Make libseliux a stub library" am: 7587c35384

Change-Id: I04c586676ef32c7dffd8c892fc81ebf43629e4c1

4 years agoMerge "Make libseliux a stub library"
Treehugger Robot [Thu, 12 Mar 2020 02:57:14 +0000 (02:57 +0000)]
Merge "Make libseliux a stub library"

4 years agoUpdate test data am: 63e8818e63 am: 46a8f03913
Automerger Merge Worker [Thu, 12 Mar 2020 01:43:12 +0000 (01:43 +0000)]
Update test data am: 63e8818e63 am: 46a8f03913

Change-Id: I8c640e5e1fe44b024f74a50aec2c6b9e6d018f5d

4 years agoRemove libstatssocket from variableloader. am: 8a3f93ad76 am: aed746a757
Automerger Merge Worker [Thu, 12 Mar 2020 01:43:10 +0000 (01:43 +0000)]
Remove libstatssocket from variableloader. am: 8a3f93ad76 am: aed746a757

Change-Id: I50f39bf8fe6420e25544a596da0eb79f75cef38b

4 years agoUpdate test data am: 63e8818e63
Automerger Merge Worker [Thu, 12 Mar 2020 01:27:37 +0000 (01:27 +0000)]
Update test data am: 63e8818e63

Change-Id: I6affe3fbf833443f94edc9b27ac9caad10cdf274

4 years agoRemove libstatssocket from variableloader. am: 8a3f93ad76
Automerger Merge Worker [Thu, 12 Mar 2020 01:27:33 +0000 (01:27 +0000)]
Remove libstatssocket from variableloader. am: 8a3f93ad76

Change-Id: Ibdf94f58d8f1264622cbeb5e251a1f041aed6565

4 years agoMake libseliux a stub library
Jiyong Park [Wed, 11 Mar 2020 04:59:38 +0000 (13:59 +0900)]
Make libseliux a stub library

libselinux is currently being copied to APEXes. This is risky because
the library is not designed to be portable; part of it is tied to the
specific version of the Android that it was developed for.

This change fixes the problem by declaring that the library supports
a stub with the list of C APIs that are included in the stub. Then there
is only one copy of libselinux in /system/lib and other APEXes use the
copy by dynamically linking to it.

Bug: 151053366
Test: m com.android.adbd. It doesn't include libselinux in it.
Test: m com.android.adbd-deps-info. then inspect
out/soong/com.android.adbd-deps-info.txt. The dependency to libselinux
is shown as '(external)'.

Change-Id: I445db2d0c5103b8b3267caa094f5d91259f1f491

4 years agoUpdate test data
Kiyoung Kim [Mon, 9 Mar 2020 07:42:01 +0000 (16:42 +0900)]
Update test data

Update test data based on the latest update - removing libstatssocket.so
from stub libraries.

Test: ./rundiff.sh passed
Change-Id: I47c2e0104e89f3dbfed15e2e586f416f988b578c

4 years agoRemove libstatssocket from variableloader.
Ruchir Rastogi [Tue, 18 Feb 2020 20:16:56 +0000 (12:16 -0800)]
Remove libstatssocket from variableloader.

Need this so libstatssocket can be added to statsd apex

Bug: 145923416
Test: m
Change-Id: I5630321d26e208b540c408f82d3f9759dd1a9c14
Merged-In: I5630321d26e208b540c408f82d3f9759dd1a9c14

4 years agoRemove cronet apex from visible_apexes am: a8eeddac31 am: 6fe877f5f9
Automerger Merge Worker [Wed, 4 Mar 2020 06:26:03 +0000 (06:26 +0000)]
Remove cronet apex from visible_apexes am: a8eeddac31 am: 6fe877f5f9

Change-Id: I6001fbd7f1d6adc4f58242bea7e135a7cca0e98c

4 years agoGenerates jni.config.txt am: 8e5cc8d49e am: 5538e3db4b
Automerger Merge Worker [Wed, 4 Mar 2020 06:25:24 +0000 (06:25 +0000)]
Generates jni.config.txt am: 8e5cc8d49e am: 5538e3db4b

Change-Id: Ib731eae7e620a26ace5aa2fc0f8b80391b17b634

4 years agoRemove cronet apex from visible_apexes am: a8eeddac31
Automerger Merge Worker [Wed, 4 Mar 2020 06:15:18 +0000 (06:15 +0000)]
Remove cronet apex from visible_apexes am: a8eeddac31

Change-Id: I84d40640f1e3130500ca03e5015555043be6af0b

4 years agoGenerates jni.config.txt am: 8e5cc8d49e
Automerger Merge Worker [Wed, 4 Mar 2020 06:14:44 +0000 (06:14 +0000)]
Generates jni.config.txt am: 8e5cc8d49e

Change-Id: I14823f7d785294f63d75bef6a094ae19b66c934a

4 years agoRemove cronet apex from visible_apexes
Jooyung Han [Mon, 2 Mar 2020 16:02:22 +0000 (01:02 +0900)]
Remove cronet apex from visible_apexes

It is now automatically set as visible because it has jni_libs.

Bug: 146420818
Bug: 143733063
Test: CronetApiTest
Change-Id: I7d506e63aece907d7cc00b405aca23a196f9a3db

4 years agoGenerates jni.config.txt
Jooyung Han [Mon, 2 Mar 2020 15:34:32 +0000 (00:34 +0900)]
Generates jni.config.txt

This file is consumed by libnativeloader so that JNI libraries in an
APEX can be loaded from classloader-namespace created for java libraries
in the same apex.

Bug: 143733063
Bug: 146420818
Test: ./rundiff.sh
Change-Id: I4b80d5c1c2a10cd6b644187e6ddd416c22cddf27

4 years agoMerge "Make APEXes with JNI libs "visible" in "system" section" am: b263b8a15e am...
Automerger Merge Worker [Fri, 28 Feb 2020 17:32:51 +0000 (17:32 +0000)]
Merge "Make APEXes with JNI libs "visible" in "system" section" am: b263b8a15e am: 52dffc0886

Change-Id: I7ffec29bf06c26ceca06823813029144f4992472

4 years agoMerge "Make APEXes with JNI libs "visible" in "system" section" am: b263b8a15e
Automerger Merge Worker [Fri, 28 Feb 2020 17:23:09 +0000 (17:23 +0000)]
Merge "Make APEXes with JNI libs "visible" in "system" section" am: b263b8a15e

Change-Id: I4563d296129763cdbefe0d90a49c03ceef7b1380

4 years agoMerge "Make APEXes with JNI libs "visible" in "system" section"
Jooyung Han [Fri, 28 Feb 2020 17:12:53 +0000 (17:12 +0000)]
Merge "Make APEXes with JNI libs "visible" in "system" section"

4 years agoMake sphal and vndk namespace available from legacy devices am: 8a550bb09b am: 2227c28841
Automerger Merge Worker [Wed, 26 Feb 2020 12:38:47 +0000 (12:38 +0000)]
Make sphal and vndk namespace available from legacy devices am: 8a550bb09b am: 2227c28841

Change-Id: I1c7814e20ff9e96db99083e4e38073ce7b941f9b

4 years agoMake sphal and vndk namespace available from legacy devices am: 8a550bb09b
Automerger Merge Worker [Wed, 26 Feb 2020 12:23:42 +0000 (12:23 +0000)]
Make sphal and vndk namespace available from legacy devices am: 8a550bb09b

Change-Id: Icd04634f47edbaef5e95d5aef682512fe6740c37

4 years agoMake sphal and vndk namespace available from legacy devices
Kiyoung Kim [Wed, 26 Feb 2020 04:36:48 +0000 (13:36 +0900)]
Make sphal and vndk namespace available from legacy devices

linkerconfig failed to complete the execution from ARC++ which was
caused by missing vndk variables because ARC++ is legacy device. This
change allows linkerconfig to generate ld.config.txt for SWCodec by
allowing SPHal and VNDK namespaces even from legacy devices

Bug: 149914078
Test: m -j passed
Test: Tested from ARC++ w/ betty
Change-Id: I5412434f0d2b3b69b916ca512828498a7eba72a3

4 years agoReplace the hardcoded ART namespace config with an autogenerated one. am: 0e9de4a5d7...
Automerger Merge Worker [Tue, 25 Feb 2020 13:29:58 +0000 (13:29 +0000)]
Replace the hardcoded ART namespace config with an autogenerated one. am: 0e9de4a5d7 am: 04def3c191

Change-Id: Iecdc7a3b8a7c54896845a8bb755d926a7ad46b06

4 years agoRename ART APEX directory to what it is on device. am: b7e0ae0c97 am: e351b07b0b
Automerger Merge Worker [Tue, 25 Feb 2020 13:29:50 +0000 (13:29 +0000)]
Rename ART APEX directory to what it is on device. am: b7e0ae0c97 am: e351b07b0b

Change-Id: I63b5739b4e18fead6027fb42b062860cb8ce3603

4 years agoReplace the hardcoded ART namespace config with an autogenerated one. am: 0e9de4a5d7
Automerger Merge Worker [Tue, 25 Feb 2020 13:09:19 +0000 (13:09 +0000)]
Replace the hardcoded ART namespace config with an autogenerated one. am: 0e9de4a5d7

Change-Id: Ifb50a8da35d31a5dc531ac940985216f409267bd

4 years agoRename ART APEX directory to what it is on device. am: b7e0ae0c97
Automerger Merge Worker [Tue, 25 Feb 2020 13:09:08 +0000 (13:09 +0000)]
Rename ART APEX directory to what it is on device. am: b7e0ae0c97

Change-Id: Id5070761eb98f45c78f08245af0f35e7470341e7

4 years agoExit on failure in rundiff.sh. am: 73cccc439c am: e0d3d3aaf7
Automerger Merge Worker [Tue, 25 Feb 2020 05:56:07 +0000 (05:56 +0000)]
Exit on failure in rundiff.sh. am: 73cccc439c am: e0d3d3aaf7

Change-Id: If8bd6ec38c801ed0c518eca0247b67c962e59a14

4 years agoExit on failure in rundiff.sh. am: 73cccc439c
Automerger Merge Worker [Tue, 25 Feb 2020 05:43:55 +0000 (05:43 +0000)]
Exit on failure in rundiff.sh. am: 73cccc439c

Change-Id: I86a4678d6d3bf1ce3928e5d1c2611d8ca9febdea

4 years agoUpdate golden linkerconfig from change in https://r.android.com/1242397. am: 957847eb...
Automerger Merge Worker [Tue, 25 Feb 2020 01:53:18 +0000 (01:53 +0000)]
Update golden linkerconfig from change in https://r.android.com/1242397. am: 957847ebd3 am: aa4167ac12

Change-Id: I3848b3b747c352f3114444fc1a80cbd6c2ba537d

4 years agoUpdate golden linkerconfig from change in https://r.android.com/1242397. am: 957847ebd3
Automerger Merge Worker [Tue, 25 Feb 2020 01:42:33 +0000 (01:42 +0000)]
Update golden linkerconfig from change in https://r.android.com/1242397. am: 957847ebd3

Change-Id: I9b0554ee04db0fbf4c9d343d44816b904aadbbeb

4 years agoReplace the hardcoded ART namespace config with an autogenerated one.
Martin Stjernholm [Fri, 21 Feb 2020 20:25:43 +0000 (20:25 +0000)]
Replace the hardcoded ART namespace config with an autogenerated one.

Test: Build and boot
Test: system/linkerconfig/rundiff.sh
Bug: 147082642
Change-Id: If6e45da6823180c8ef36f066753bdba167f64df5

4 years agoRename ART APEX directory to what it is on device.
Martin Stjernholm [Mon, 24 Feb 2020 17:21:56 +0000 (17:21 +0000)]
Rename ART APEX directory to what it is on device.

Preparation to make an InitializeWithApex call in art.cc produce the
right paths.

Test: system/linkerconfig/rundiff.sh
Bug: 147082642
Change-Id: If6116a906dcd0ec983dec8746ab004cb0c835f58

4 years agoExit on failure in rundiff.sh.
Martin Stjernholm [Mon, 24 Feb 2020 17:18:38 +0000 (17:18 +0000)]
Exit on failure in rundiff.sh.

In particular, don't show a diff created with an old binary if
linkerconfig failed to compile.

Test: system/linkerconfig/rundiff.sh
  (with and without a syntax error in a linkerconfig .cc file)
Bug: 140599044
Change-Id: I1449de75d20e8a40f26bac087048f869a0f468a5

4 years agoUpdate golden linkerconfig from change in https://r.android.com/1242397.
Martin Stjernholm [Mon, 24 Feb 2020 16:03:06 +0000 (16:03 +0000)]
Update golden linkerconfig from change in https://r.android.com/1242397.

Test: system/linkerconfig/rundiff.sh
Bug: 140599044
Change-Id: Ia4cdf12bcc37564951cbfc7ea286fd3bc1a6a933

4 years agoMerge "Add golden output of linkerconfig" am: 2c87cccfbd am: a1eed93a5c
Automerger Merge Worker [Sat, 22 Feb 2020 13:53:58 +0000 (13:53 +0000)]
Merge "Add golden output of linkerconfig" am: 2c87cccfbd am: a1eed93a5c

Change-Id: I3c7f498a6bc16a04604587a686ebe28ccccb3716

4 years agoMerge "Add golden output of linkerconfig" am: 2c87cccfbd
Automerger Merge Worker [Sat, 22 Feb 2020 13:38:21 +0000 (13:38 +0000)]
Merge "Add golden output of linkerconfig" am: 2c87cccfbd

Change-Id: I549a7f2f90e9b1a9e78f56ac1b0684588740bd98

4 years agoMerge "Add golden output of linkerconfig"
Treehugger Robot [Sat, 22 Feb 2020 13:27:30 +0000 (13:27 +0000)]
Merge "Add golden output of linkerconfig"

4 years agoMake APEXes with JNI libs "visible" in "system" section
Jooyung Han [Tue, 18 Feb 2020 06:28:55 +0000 (15:28 +0900)]
Make APEXes with JNI libs "visible" in "system" section

It could be done by explicitly listing them when building "system"
section. This change does it automatically by checking if an apex has
jni libs in it.

Bug: 149363889
Test: atest --host linkerconfig_contents_fulltest
      build/boots

Change-Id: Ibb23268ab3e5dcfe0a8f8f1c98f7594c083eafac

4 years agoMerge "Add libadbd_fs to list of stub dependencies." am: e04eef3242 am: 018990bfe0
Automerger Merge Worker [Sat, 22 Feb 2020 00:41:30 +0000 (00:41 +0000)]
Merge "Add libadbd_fs to list of stub dependencies." am: e04eef3242 am: 018990bfe0

Change-Id: I6754282d971a953848641c581954ca298b128929

4 years agoMerge "Add libadbd_fs to list of stub dependencies." am: e04eef3242
Automerger Merge Worker [Sat, 22 Feb 2020 00:22:14 +0000 (00:22 +0000)]
Merge "Add libadbd_fs to list of stub dependencies." am: e04eef3242

Change-Id: I283fdcd61aec1b236fe91cff9c54a66898be2587

4 years agoMerge "Add libadbd_fs to list of stub dependencies."
Josh Gao [Sat, 22 Feb 2020 00:03:21 +0000 (00:03 +0000)]
Merge "Add libadbd_fs to list of stub dependencies."

4 years agoMerge "[adbwifi] Add adbd apex exported libs to system namespace." am: c005be7589...
Automerger Merge Worker [Fri, 21 Feb 2020 21:41:40 +0000 (21:41 +0000)]
Merge "[adbwifi] Add adbd apex exported libs to system namespace." am: c005be7589 am: 6140ec2c59

Change-Id: I8d92a3ccd799c77860ce7a4760b51c97fa24f69d

4 years agoMerge "[adbwifi] Add adbd apex exported libs to system namespace." am: c005be7589
Automerger Merge Worker [Fri, 21 Feb 2020 21:23:05 +0000 (21:23 +0000)]
Merge "[adbwifi] Add adbd apex exported libs to system namespace." am: c005be7589

Change-Id: I5440261e02501e6fac27fee126485a22dea9de3a

4 years agoMerge "[adbwifi] Add adbd apex exported libs to system namespace."
Joshua Duong [Fri, 21 Feb 2020 21:07:51 +0000 (21:07 +0000)]
Merge "[adbwifi] Add adbd apex exported libs to system namespace."

4 years agoMerge "Trim root path from output" am: b7c162435b am: 89b12b6f0b
Automerger Merge Worker [Fri, 21 Feb 2020 10:43:45 +0000 (10:43 +0000)]
Merge "Trim root path from output" am: b7c162435b am: 89b12b6f0b

Change-Id: Ic8b6bf9400f312efd3b4df56ebd36b37c2887d89

4 years agoMerge "Trim root path from output" am: b7c162435b
Automerger Merge Worker [Fri, 21 Feb 2020 10:27:08 +0000 (10:27 +0000)]
Merge "Trim root path from output" am: b7c162435b

Change-Id: If7db732fa5a1e267c777c0610608dc3492a77749

4 years agoMerge "Define vndk_product namespace for product apps" am: 6eb18354c1 am: 7df20a75d3
Automerger Merge Worker [Fri, 21 Feb 2020 10:22:28 +0000 (10:22 +0000)]
Merge "Define vndk_product namespace for product apps" am: 6eb18354c1 am: 7df20a75d3

Change-Id: I98e7a8604acbc0d324d3ed831f92b8b84788b944

4 years agoMerge "Trim root path from output"
Treehugger Robot [Fri, 21 Feb 2020 10:14:36 +0000 (10:14 +0000)]
Merge "Trim root path from output"

4 years agoMerge "Define vndk_product namespace for product apps" am: 6eb18354c1
Automerger Merge Worker [Fri, 21 Feb 2020 10:00:19 +0000 (10:00 +0000)]
Merge "Define vndk_product namespace for product apps" am: 6eb18354c1

Change-Id: Ifde5ffcae2bdad31e068f2fabfbe9a1838b14a21

4 years agoMerge "Define vndk_product namespace for product apps"
Treehugger Robot [Fri, 21 Feb 2020 09:38:26 +0000 (09:38 +0000)]
Merge "Define vndk_product namespace for product apps"

4 years agoMerge "Make /linkerconfig/<apexname> directories accessible to others" am: b52f719faf...
Automerger Merge Worker [Fri, 21 Feb 2020 07:51:43 +0000 (07:51 +0000)]
Merge "Make /linkerconfig/<apexname> directories accessible to others" am: b52f719faf am: bc9db82bf5

Change-Id: Id37a319f81c2b66968fd3d818d325aaab7c0956e

4 years agoMerge "Make /linkerconfig/<apexname> directories accessible to others" am: b52f719faf
Automerger Merge Worker [Fri, 21 Feb 2020 07:37:41 +0000 (07:37 +0000)]
Merge "Make /linkerconfig/<apexname> directories accessible to others" am: b52f719faf

Change-Id: Id755473867942a98d93d1091a3e7556fccbd43bd

4 years agoMerge "Make /linkerconfig/<apexname> directories accessible to others"
Treehugger Robot [Fri, 21 Feb 2020 07:14:12 +0000 (07:14 +0000)]
Merge "Make /linkerconfig/<apexname> directories accessible to others"

4 years agoAdd golden output of linkerconfig
Jooyung Han [Thu, 20 Feb 2020 10:54:16 +0000 (19:54 +0900)]
Add golden output of linkerconfig

./rundiff.sh runs linkerconfig on host and compares the output files
with golden output.

Bug: 140599044
Test: ./rundiffs.sh
Change-Id: I1b2892d70fc514cf70a28eb6e041ad0bfa232de1

4 years agoTrim root path from output
Jooyung Han [Thu, 20 Feb 2020 09:21:03 +0000 (18:21 +0900)]
Trim root path from output

When linkerconfig runs on host with --root argument, it prints root as
well like following:

$ linkerconfig --vndk R --root /tmp/test_root
...
namespace.foo.search_paths = /tmp/test_root/product/${LIB}
..

This change trims root from path variables and apex paths so the output
look more like real output.

Bug: n/a
Test: build/boot
      run linkerconfig on host and compare outputs

Change-Id: Icc91f297047f059684a42d825048e50e26873520

4 years agoMake /linkerconfig/<apexname> directories accessible to others
Jiyong Park [Fri, 21 Feb 2020 04:56:52 +0000 (13:56 +0900)]
Make /linkerconfig/<apexname> directories accessible to others

When linkerconfig is exec'ed by init, umask is by default set to 0x0077.
As a result, even though we create the directories with mkdir(...,
0755), they are marked as inaccessible for group and others.

Fixing the issue by explicitly setting umask to 0x0022.

Bug: 144914078
Test: build a device with flattened APEX. Check the mode bits of the
directories of under /linkerconfig.

$ ls -al /linkerconfig
total 96
drwxr-xr-x  9 root root   200 2020-02-21 13:47 .
drwxr-xr-x 22 root root  4096 2020-02-21 13:54 ..
drwx--xr-x  2 root root    60 2020-02-21 13:47 com.android.adbd
drwx--xr-x  2 root root    60 2020-02-21 13:47 com.android.art
drwx--xr-x  2 root root    60 2020-02-21 13:47 com.android.conscrypt
drwx--xr-x  2 root root    60 2020-02-21 13:47 com.android.media.swcodec
drwx--xr-x  2 root root    60 2020-02-21 13:47 com.android.os.statsd
drwx--xr-x  2 root root    60 2020-02-21 13:47 com.android.runtime
drwx--xr-x  2 root root    60 2020-02-21 13:47 com.android.sdkext
-rw-r--r--  1 root root 91651 2020-02-21 13:47 ld.config.txt

Change-Id: Id2f7f8a363ba239943942ba6e3bc984cd8f630b0

4 years agoAdd libadbd_fs to list of stub dependencies.
Josh Gao [Fri, 21 Feb 2020 04:43:55 +0000 (20:43 -0800)]
Add libadbd_fs to list of stub dependencies.

Test: treehugger
Change-Id: Iebb108c212ace8470efef6c2838eaefdd4b4be70

4 years ago[adbwifi] Add adbd apex exported libs to system namespace.
Joshua Duong [Mon, 10 Feb 2020 06:28:01 +0000 (22:28 -0800)]
[adbwifi] Add adbd apex exported libs to system namespace.

These libraries will be used by system_server
(libandroid_servers.so).

Bug: b/149181583
Bug: b/111434128

Test: boots, adbd is not crashing.
Test: cat /proc/`pidof system_server`/maps | grep libadb
Verify that only libadb_pairing_auth.so, libadb_pairing_connection.so,
and libadb_pairing_server.so are being used.
Test: cat /proc/`pidof adbd`/maps | grep libadb
Change-Id: I8b645c9aca2465d5231b3cb21ca85fc3ebfc9093

4 years agoDefine vndk_product namespace for product apps
Justin Yun [Tue, 18 Feb 2020 06:01:51 +0000 (15:01 +0900)]
Define vndk_product namespace for product apps

Unbundled apps may use vndk-sp libs from the system section. However,
product apps must use the vndk-sp libs for the product vndk version
that can be different from the vendor vndk version. So we must define
a vndk namespace for product partition.

For this purpose, BuildVndkNamespace() function requires an
additional parameter to indicate which partition is using the
namespace.
Using this function, the system section has an additional namespace
called "vndk_product" which is used only for unbundled product apps.

Test: atest linkerconfig_modules_unittest
Bug: 149063221
Change-Id: I3658efdc75e5c9a0ac3b92b9afc68aff2d4cb300

4 years agoMerge "Rename APEX Namespace" am: 52120b489b am: 6e1b2ec7ac
Automerger Merge Worker [Fri, 21 Feb 2020 01:22:19 +0000 (01:22 +0000)]
Merge "Rename APEX Namespace" am: 52120b489b am: 6e1b2ec7ac

Change-Id: Ie27efc805d25e509576981f7ae03cc70cb555153

4 years agoMerge "Rename APEX Namespace" am: 52120b489b
Automerger Merge Worker [Fri, 21 Feb 2020 01:12:02 +0000 (01:12 +0000)]
Merge "Rename APEX Namespace" am: 52120b489b

Change-Id: I1ad4220320ce62274f553afa7e81b322e82e1f51

4 years agoMerge "Rename APEX Namespace"
Kiyoung Kim [Fri, 21 Feb 2020 01:04:37 +0000 (01:04 +0000)]
Merge "Rename APEX Namespace"

4 years agoMerge "Fix full content test" am: 9fa8d06ecc am: 9873f73464
Automerger Merge Worker [Fri, 21 Feb 2020 00:16:45 +0000 (00:16 +0000)]
Merge "Fix full content test" am: 9fa8d06ecc am: 9873f73464

Change-Id: I12c6f0f14516ab2e0306d3bdf7a4779ecbd78a54

4 years agoMerge "Fix full content test" am: 9fa8d06ecc
Automerger Merge Worker [Fri, 21 Feb 2020 00:07:01 +0000 (00:07 +0000)]
Merge "Fix full content test" am: 9fa8d06ecc

Change-Id: I41c27ed81cfb803954d773a07a4d0747bea4b33f

4 years agoMerge "Fix full content test"
Kiyoung Kim [Thu, 20 Feb 2020 23:46:39 +0000 (23:46 +0000)]
Merge "Fix full content test"

4 years agoFix full content test
Kiyoung Kim [Thu, 20 Feb 2020 09:04:23 +0000 (18:04 +0900)]
Fix full content test

Full content test was not working properly because the way of checking
if VNDK is enabled has been changed. This fix generates test context to
mock it available for VNDK.

Test: atest passed
Change-Id: I46064d1d5505dc5c6af438e69faae166dee9dc58

4 years agoRename APEX Namespace
Kiyoung Kim [Wed, 19 Feb 2020 07:26:03 +0000 (16:26 +0900)]
Rename APEX Namespace

Current APEX Namespace is named with APEX name itself, which also uses
.(dot) so linker configuration can keep the syntax safe. Update name of
namespace from APEX by replacing '_' with '.' so keep configuration safe
for future syntax update.

Bug: 148826508
Test: m -j passed
Test: boot succeeded from cuttlefish and walleye
Change-Id: I9185c909678e2e39d539622d51d8f378b819b466

4 years agoAdd com.android.os.statsd to legacy linkerconfig am: 2b465ce881 am: 6f3a53b4ec
Automerger Merge Worker [Wed, 19 Feb 2020 04:20:25 +0000 (04:20 +0000)]
Add com.android.os.statsd to legacy linkerconfig am: 2b465ce881 am: 6f3a53b4ec

Change-Id: Id4711bdabc9a4eb5f123a83d53afb029fc948b4b

4 years agoAdd com.android.os.statsd to legacy linkerconfig am: 2b465ce881
Automerger Merge Worker [Wed, 19 Feb 2020 04:06:42 +0000 (04:06 +0000)]
Add com.android.os.statsd to legacy linkerconfig am: 2b465ce881

Change-Id: Ib2a29f358385d1b67a27f58e900dcd76a2efa20f

4 years agoAdd com.android.os.statsd to legacy linkerconfig
Garfield Tan [Wed, 19 Feb 2020 01:43:36 +0000 (17:43 -0800)]
Add com.android.os.statsd to legacy linkerconfig

Similar to aosp/1237667, but for legacy stuff.

Bug: None
Test: Legacy stuff boots.
Change-Id: Iad17f5529ea6bb520c0ee5a4071a82ffd7c2cc27

4 years agoMerge "Update linkerconfig for libs in statsd" am: 5504faa670 am: 1730a33997
Automerger Merge Worker [Tue, 18 Feb 2020 21:09:46 +0000 (21:09 +0000)]
Merge "Update linkerconfig for libs in statsd" am: 5504faa670 am: 1730a33997

Change-Id: I01042fe7ee802e5c224ff00c001219b87f32e419

4 years agoMerge "Update linkerconfig for libs in statsd" am: 5504faa670
Jeffrey Huang [Tue, 18 Feb 2020 20:50:43 +0000 (20:50 +0000)]
Merge "Update linkerconfig for libs in statsd" am: 5504faa670

Change-Id: I969a8e8828d5e9273c863688c48d6d2ba9297d95

4 years agoMerge "Update linkerconfig for libs in statsd"
Jeffrey Huang [Tue, 18 Feb 2020 18:26:53 +0000 (18:26 +0000)]
Merge "Update linkerconfig for libs in statsd"

4 years agoMerge "Add com.android.os.statsd to linkerconfig" am: 91fccce607 am: 365c145906
Treehugger Robot [Tue, 18 Feb 2020 08:27:29 +0000 (08:27 +0000)]
Merge "Add com.android.os.statsd to linkerconfig" am: 91fccce607 am: 365c145906

Change-Id: I245cf83033159721babcc7c176d3290e68d51aef

4 years agoMerge "Add com.android.os.statsd to linkerconfig" am: 91fccce607
Treehugger Robot [Tue, 18 Feb 2020 08:06:49 +0000 (08:06 +0000)]
Merge "Add com.android.os.statsd to linkerconfig" am: 91fccce607

Change-Id: Ia2aa4670b96557434b1c1c8675409e17515f00a3

4 years agoMerge "Add com.android.os.statsd to linkerconfig"
Treehugger Robot [Tue, 18 Feb 2020 07:54:26 +0000 (07:54 +0000)]
Merge "Add com.android.os.statsd to linkerconfig"

4 years agoAdd com.android.os.statsd to linkerconfig
Tej Singh [Thu, 13 Feb 2020 01:21:01 +0000 (17:21 -0800)]
Add com.android.os.statsd to linkerconfig

Adds com.android.os.statsd to System BuildSection. I believe this is to
get the namespace the proper visibility for jni.

Test: build/boots
Change-Id: Id516e79e12fde608888587ec15ab0f3358f4918d
Merged-In: Id516e79e12fde608888587ec15ab0f3358f4918d
(cherry picked from commit 91454166a50d86d2367c8ec5b4686087ecc13184)

4 years agoMerge "Remove extra using statements" am: 28133def11 am: de106d8a2d
Treehugger Robot [Tue, 18 Feb 2020 05:45:53 +0000 (05:45 +0000)]
Merge "Remove extra using statements" am: 28133def11 am: de106d8a2d

Change-Id: Ida676cfd0249a0134df4f8afa79e7e9bfd42721e

4 years agoMerge "Remove extra using statements" am: 28133def11
Treehugger Robot [Tue, 18 Feb 2020 05:30:16 +0000 (05:30 +0000)]
Merge "Remove extra using statements" am: 28133def11

Change-Id: Iab0964273993949a3eb3c0c331eb58bc75e3c5e1

4 years agoMerge "Remove extra using statements"
Treehugger Robot [Tue, 18 Feb 2020 05:20:14 +0000 (05:20 +0000)]
Merge "Remove extra using statements"

4 years agoUpdate linkerconfig for libs in statsd
Jeffrey Huang [Mon, 17 Feb 2020 19:59:58 +0000 (11:59 -0800)]
Update linkerconfig for libs in statsd

Bug: 148605160
Test: m -j
Change-Id: Idb6308e8f518536e97106c445b1945945040a4c3

4 years agoMerge "Fix Camera bug" am: 5c811ebf1c am: 4291671637
Jeffrey Huang [Fri, 14 Feb 2020 22:33:24 +0000 (22:33 +0000)]
Merge "Fix Camera bug" am: 5c811ebf1c am: 4291671637

Change-Id: I7a4bd4b68772d59e1085799bdadfe8ddfd1562f8

4 years agoMerge "Fix Camera bug" am: 5c811ebf1c
Jeffrey Huang [Fri, 14 Feb 2020 22:11:39 +0000 (22:11 +0000)]
Merge "Fix Camera bug" am: 5c811ebf1c

Change-Id: I78f49c50833251698c1fc5351e3a5ee66819e872

4 years agoMerge "Fix Camera bug"
Jeffrey Huang [Fri, 14 Feb 2020 21:57:31 +0000 (21:57 +0000)]
Merge "Fix Camera bug"

4 years agoRemove extra using statements
Tom Cherry [Fri, 14 Feb 2020 20:27:19 +0000 (12:27 -0800)]
Remove extra using statements

android::base::Errorf and android::base::ErrnoErrorf are now #define's
instead of functions, so remove their using statements.

Test: build
Change-Id: I7333b916ee87668fb9fd15b9293de5da41c43409