OSDN Git Service

android-x86/system-linkerconfig.git
3 years agoRemove unused variable am: cf2a7e754d
Kiyoung Kim [Mon, 14 Dec 2020 03:02:09 +0000 (03:02 +0000)]
Remove unused variable am: cf2a7e754d

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5c0c0a7bf5ddf82858924c6be13ab3d78a6d901f

3 years agoRemove unused variable
Kiyoung Kim [Wed, 9 Dec 2020 04:36:44 +0000 (13:36 +0900)]
Remove unused variable

Remove library list variable which now gets from linker.config.pb from
the source code.

Test: Cuttlefish boot succeeded
Change-Id: Id667a64857e3818e5b148b4366bc98755e160c4e

3 years agoMerge "Refactor ScanActiveApexes to return android::base::Result" am: a162d8b156
Kiyoung Kim [Wed, 9 Dec 2020 08:21:35 +0000 (08:21 +0000)]
Merge "Refactor ScanActiveApexes to return android::base::Result" am: a162d8b156

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7fef3f0973d67a0546a5030059db82ef041701bc

3 years agoMerge "Refactor ScanActiveApexes to return android::base::Result"
Kiyoung Kim [Wed, 9 Dec 2020 07:53:35 +0000 (07:53 +0000)]
Merge "Refactor ScanActiveApexes to return android::base::Result"

3 years agoRefactor ScanActiveApexes to return android::base::Result
Kiyoung Kim [Tue, 8 Dec 2020 07:14:57 +0000 (16:14 +0900)]
Refactor ScanActiveApexes to return android::base::Result

ScanActiveApexes returns list of active APEX modules directly, so it is
difficult to get any status or reason of failure from callers. This
change refactors the function into android::base::Result for better
error handling.

Test: Cuttlefish boot succeded && atest passed
Change-Id: I3f3368e8ee21f8bda1df73b5d1751340656deac7

3 years agoMove linkerconfig to Runtime APEX am: b164506948
Kiyoung Kim [Fri, 4 Dec 2020 01:35:37 +0000 (01:35 +0000)]
Move linkerconfig to Runtime APEX am: b164506948

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

Change-Id: Ic4987ac42473d25f7209e79825b99f856d9c4e98

3 years agoRemove reference between linkerconfig and system_linker_config am: 0c857f4c79
Kiyoung Kim [Wed, 2 Dec 2020 01:45:18 +0000 (01:45 +0000)]
Remove reference between linkerconfig and system_linker_config am: 0c857f4c79

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

Change-Id: I876220a52846ab3f4b128bfd78c5df7365b783e4

3 years agoMove linkerconfig to Runtime APEX
Kiyoung Kim [Mon, 30 Nov 2020 05:58:47 +0000 (14:58 +0900)]
Move linkerconfig to Runtime APEX

Move linkerconfig to Runtime APEX for better updatability. linkerconfig
shared ld.config.txt format with linker, so it is better that linker and
linkerconfig to be updated together. This change moves linkerconfig into
Runtime APEX.

Bug: 165769179
Test: Cuttlefish boot succeeded
Change-Id: I17bf95345a6e99813275325589bfe4b4cd8e1e4e

3 years agoRemove reference between linkerconfig and system_linker_config
Kiyoung Kim [Fri, 27 Nov 2020 04:23:34 +0000 (13:23 +0900)]
Remove reference between linkerconfig and system_linker_config

system_linker_config will be handled from Makefile and dependency also
will be handled from Makefile directly. As dependency from linkerconfig
is no longer required, this change removes system_linker_config from
linkerconfig's required modules.

Bug: 172889962
Test: Build cuttlefish and confirmed list is generated in
/system/etc/linker.config.pb

Change-Id: I3c84064dcb478c0fc26bf906f80101baf5342f3b

3 years agoRename sharedApexLibs to requireSharedApexLibs am: 4a5be61b6f
Kiyoung Kim [Tue, 24 Nov 2020 23:58:15 +0000 (23:58 +0000)]
Rename sharedApexLibs to requireSharedApexLibs am: 4a5be61b6f

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

Change-Id: Ie0efca2a1c053e5e7e9290bd4a8d995a755aceda

3 years agoMark ab/6881855 as merged
Xin Li [Mon, 23 Nov 2020 19:32:59 +0000 (11:32 -0800)]
Mark ab/6881855 as merged

Bug: 172690556
Change-Id: Id0e0a2a67972840a1cdd57cf3d08620ac220a2b4

3 years agoRename sharedApexLibs to requireSharedApexLibs
Kiyoung Kim [Mon, 23 Nov 2020 07:33:56 +0000 (16:33 +0900)]
Rename sharedApexLibs to requireSharedApexLibs

sharedApexLibs property from APEX manifest can be confused as there is a
property named provideSharedApexLibs. Rename sharedApexLibs to
requireSharedApexLibs for better readability.

Bug: 161542925
Test: m -j && atest sharedlibs_host_tests passed
Change-Id: Ib2bd408e13fc81f90f68a822b101e148dd1c401f

3 years agoUpdate path for SharedLibs APEX am: 48fbb64f90
Kiyoung Kim [Thu, 19 Nov 2020 16:29:24 +0000 (16:29 +0000)]
Update path for SharedLibs APEX am: 48fbb64f90

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

Change-Id: Ib1e5be8d87a5d2e8e20c08797b4f8f55dd172917

3 years agoUpdate path for SharedLibs APEX
Kiyoung Kim [Tue, 17 Nov 2020 14:16:34 +0000 (23:16 +0900)]
Update path for SharedLibs APEX

Update path for SharedLibs APEX so any mounted SharedLibs APEX can be
included in the permitted path.

Bug: 161542925
Test: foo_test and bar_test execution succeeded
Change-Id: I74e248cba4bfba8e3ea8e5c9b5628c665a02b52e

3 years agoMerge "Verify if APEX has any link with all libs allowed" am: 50753513ab
Kiyoung Kim [Fri, 13 Nov 2020 01:33:17 +0000 (01:33 +0000)]
Merge "Verify if APEX has any link with all libs allowed" am: 50753513ab

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

Change-Id: I36e1ab6d9f0bf70a5dd47e8894e75759ba53470a

3 years agoMerge "Verify if APEX has any link with all libs allowed"
Kiyoung Kim [Fri, 13 Nov 2020 01:17:17 +0000 (01:17 +0000)]
Merge "Verify if APEX has any link with all libs allowed"

3 years agoVerify if APEX has any link with all libs allowed
Kiyoung Kim [Tue, 10 Nov 2020 01:46:09 +0000 (10:46 +0900)]
Verify if APEX has any link with all libs allowed

APEX modules should link to other namespaces with exact library list
rather than just allowing all libs to keep track of dependencies. This
change verifies if there are any APEX (except ART) which contains link
with all libs allowed.

Bug: 159302165
Test: atest passed
Change-Id: Ifdd7de179f8d420ec548b8ab11fcd137ceb1a3aa

3 years agoJNI libs should be visible to ART namespace am: bd7e51956a
Jooyung Han [Thu, 12 Nov 2020 01:04:41 +0000 (01:04 +0000)]
JNI libs should be visible to ART namespace am: bd7e51956a

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

Change-Id: I2ade1f468c35d2fd1697f60f19668952d91cf609

3 years agoJNI libs should be visible to ART namespace
Jooyung Han [Fri, 6 Nov 2020 01:18:03 +0000 (10:18 +0900)]
JNI libs should be visible to ART namespace

JNI libs from apexes should be visible for libnativeloader to load them.

Bug: 172541385
Bug: 150767721
Bug: 172689934
Test: linkerconfig_diff_test
Test: loading jni libs from apexes
Change-Id: Ie6cd53fb0aef78132dccc4398270884f4455804b

3 years agoMerge "Get system's required/providing libraries from config file" am: 1f3adaab26
Kiyoung Kim [Tue, 10 Nov 2020 06:08:52 +0000 (06:08 +0000)]
Merge "Get system's required/providing libraries from config file" am: 1f3adaab26

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

Change-Id: Ica7fca75f154a0584d5c6e29b06ae5a4f18d6319

3 years agoMerge "Get system's required/providing libraries from config file"
Kiyoung Kim [Tue, 10 Nov 2020 05:49:35 +0000 (05:49 +0000)]
Merge "Get system's required/providing libraries from config file"

3 years agoAdd support for test common APEX am: 180ec044ba
Kiyoung Kim [Tue, 3 Nov 2020 09:02:47 +0000 (09:02 +0000)]
Add support for test common APEX am: 180ec044ba

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

Change-Id: I66f02db27d9f5283365abb8d5e533492fb5fad10

3 years agoAdd support for test common APEX
Kiyoung Kim [Fri, 30 Oct 2020 06:36:12 +0000 (15:36 +0900)]
Add support for test common APEX

Add linkerconfig support for test common APEX. This change will add
extra permitted path to (test) common APEX when there is any library
referenced from the APEX module.

Bug: 161542925
Test: SharedLibsApexTest passed from crosshatch
Change-Id: I19813f72c251ae3e4a2b820ce52b33c9dbcfae6f

3 years agoGet system's required/providing libraries from config file
Kiyoung Kim [Wed, 21 Oct 2020 00:59:12 +0000 (09:59 +0900)]
Get system's required/providing libraries from config file

Currently most of system dependent libraries are listed in the source
code. To remove dependency between system image and linkerconfig, this
change makes linkerconfig to get those library list from configuration
file under /system/etc.

Bug: 168262631
Test: atest passed
Test: cuttlefish & crosshatch boot succeeded
Change-Id: I21653fb58d69417eda6c676f9dcb9b44e0ad764a

3 years agoUse LinkerConfig object directly am: e9dc6c195d
Kiyoung Kim [Thu, 22 Oct 2020 06:33:05 +0000 (06:33 +0000)]
Use LinkerConfig object directly am: e9dc6c195d

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

Change-Id: Icc299cc43c1f05951b3e20809e96468bd8f3d3d3

3 years agoUse LinkerConfig object directly
Kiyoung Kim [Wed, 21 Oct 2020 08:44:25 +0000 (17:44 +0900)]
Use LinkerConfig object directly

Last implementation on ApexInfo requires multiple copy of LinkerConfig
contents. To reduce number of information copy, this change makes
ApexInfo to use LinkerConfig object directly rather than copying
information.

Bug: 169634881
Test: atest passed
Change-Id: Ic1a0f58d3eecb2a5cde710bdda65e89b08d7d4ff

3 years agoMerge "Add extra dependencies for system namespace" am: 513ff1223c
Kiyoung Kim [Tue, 20 Oct 2020 19:18:12 +0000 (19:18 +0000)]
Merge "Add extra dependencies for system namespace" am: 513ff1223c

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

Change-Id: Ie468bd46f0e4e9e6a5c1d76be4552eba74a707e4

3 years agoMerge "Update configuration for linkerconfig as json/protobuf" am: aff10d85e8
Kiyoung Kim [Tue, 20 Oct 2020 19:08:22 +0000 (19:08 +0000)]
Merge "Update configuration for linkerconfig as json/protobuf" am: aff10d85e8

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

Change-Id: I0dd06f7b2a75cd5840dd914b755f5fab9d6a9e44

3 years agoMerge "Add extra dependencies for system namespace"
Kiyoung Kim [Tue, 20 Oct 2020 00:25:12 +0000 (00:25 +0000)]
Merge "Add extra dependencies for system namespace"

3 years agoMerge "Update configuration for linkerconfig as json/protobuf"
Kiyoung Kim [Tue, 20 Oct 2020 00:23:58 +0000 (00:23 +0000)]
Merge "Update configuration for linkerconfig as json/protobuf"

3 years agoAdd extra dependencies for system namespace
Kiyoung Kim [Fri, 16 Oct 2020 05:05:53 +0000 (14:05 +0900)]
Add extra dependencies for system namespace

Add extra dependencies between system namespace and Statsd APEX so
system namespace from non-system section can use libraries from statsd
APEX.

Bug: 170695190
Test: Cuttlefish boot succeeded
Change-Id: I512e1cd6731a7f31121f408ff6a2405275b136e0

3 years agoUpdate configuration for linkerconfig as json/protobuf
Kiyoung Kim [Tue, 6 Oct 2020 08:07:25 +0000 (17:07 +0900)]
Update configuration for linkerconfig as json/protobuf

Current configuration format is ini-like format which is not fully
defined so less extensible. This change updates configuration format
with json, and convert into protobuf which can be parsed easily at
runtime.

Bug: 169634881
Test: atest passed && cuttlefish boot succeeded
Change-Id: I818193e50e7fd33001ecdb2189c4e3d819bd4d7b

3 years agoMerge "Add additional vendor lib paths" am: 0f834e6f21
Kiyoung Kim [Wed, 14 Oct 2020 01:12:06 +0000 (01:12 +0000)]
Merge "Add additional vendor lib paths" am: 0f834e6f21

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

Change-Id: I1a04d040702092bf6c365f2c600a19e6bce9b71c

3 years agoMerge "Add additional vendor lib paths"
Kiyoung Kim [Wed, 14 Oct 2020 00:37:46 +0000 (00:37 +0000)]
Merge "Add additional vendor lib paths"

3 years agoLink sanitizer libs from "system" for vendor apex am: 45a2de1ee1
Jooyung Han [Tue, 13 Oct 2020 09:19:49 +0000 (09:19 +0000)]
Link sanitizer libs from "system" for vendor apex am: 45a2de1ee1

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

Change-Id: If8a5ccb0a626579e3c024ad7764645714f744131

3 years agoLink sanitizer libs from "system" for vendor apex
Jooyung Han [Tue, 13 Oct 2020 05:12:55 +0000 (14:12 +0900)]
Link sanitizer libs from "system" for vendor apex

There are two kinds of sanitizer libs.
- vndkcore libs
- system libs

Vendor modules should be able to use sanitizer libs from "system"
namespace. (Note that VNDK sanitizer libs are avialable from "vndk").

Bug: 170672395
Test: linkerconfig_diff_test
Change-Id: Ib1d5e007d6b6451a30a4009b7ecd06bf748f5e47

3 years agoWorkaround global ThinLTO breakage am: 867b2026c4
Yi Kong [Mon, 12 Oct 2020 17:23:03 +0000 (17:23 +0000)]
Workaround global ThinLTO breakage am: 867b2026c4

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

Change-Id: Ia942f0c81e06f98b953cfa5de6b61199d77850ed

3 years agoAdd additional vendor lib paths
Kiyoung Kim [Mon, 12 Oct 2020 01:30:03 +0000 (10:30 +0900)]
Add additional vendor lib paths

Some of the vendor lib paths were removed from VNDK 28 due to no usage.
However, Vulkan team requires those vendor lib paths from vendor
section to load SPHAL libraries. To enable this, this change re-adds
addtional vendor lib paths (hw and egl) to vendor default namespace.

Bug: 170258171
Test: atest passed
Change-Id: I85fa6fa6f61d5559c5498163302a99741f6f733f

3 years agoWorkaround global ThinLTO breakage
Yi Kong [Sun, 11 Oct 2020 16:31:18 +0000 (00:31 +0800)]
Workaround global ThinLTO breakage

The device does not boot with global ThinLTO enabled for linkerconfig.
Disable LTO for it to workaround the issue.

Test: GLOBAL_THINLTO=true m
Test: boot
Bug: 170573443
Change-Id: Id5b7e11c2c4b495b6b0da35dc774b60bcd0543af

3 years agoSkip ab/6749736 in stage.
Xin Li [Fri, 9 Oct 2020 00:24:02 +0000 (17:24 -0700)]
Skip ab/6749736 in stage.

Merged-In: Id16b671d66cdbafb655be03edd16564fa36aee22
Change-Id: I28da1c789fff49b34462cadefa915bb37b902151

3 years agoAdd dir.system = /product/app/ entry am: 2a62a40819 am: 1381a5e420 am: 20149cb40f...
Jooyung Han [Fri, 18 Sep 2020 01:22:03 +0000 (01:22 +0000)]
Add dir.system = /product/app/ entry am: 2a62a40819 am: 1381a5e420 am: 20149cb40f am: 3a38e92305

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

Change-Id: Ia00f7fcc1ed7c4fecf6e68993cde9082b0e8a3d1

3 years agoAdd dir.system = /product/app/ entry am: 2a62a40819 am: 1381a5e420 am: 20149cb40f
Jooyung Han [Fri, 18 Sep 2020 00:54:37 +0000 (00:54 +0000)]
Add dir.system = /product/app/ entry am: 2a62a40819 am: 1381a5e420 am: 20149cb40f

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

Change-Id: I4dae4cbf2b2cd5390134043c2f341d0eeb14519a

3 years agoAdd dir.system = /product/app/ entry am: 2a62a40819 am: 1381a5e420
Jooyung Han [Fri, 18 Sep 2020 00:13:16 +0000 (00:13 +0000)]
Add dir.system = /product/app/ entry am: 2a62a40819 am: 1381a5e420

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

Change-Id: I7d1fd16f22785ffb0a514cce50e8a4ee48f58bb4

3 years agoAdd dir.system = /product/app/ entry am: 2a62a40819
Jooyung Han [Thu, 17 Sep 2020 23:57:11 +0000 (23:57 +0000)]
Add dir.system = /product/app/ entry am: 2a62a40819

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

Change-Id: I1902b8e94e04c5ebe5905727918931ef183a1b58

3 years agoAdd dir.system = /product/app/ entry
Jooyung Han [Thu, 17 Sep 2020 14:54:13 +0000 (23:54 +0900)]
Add dir.system = /product/app/ entry

This is a fallback for binaries in APKs being launched.

Bug: 160433462
Test: atest --host linkerconfig_diff_test
Change-Id: I3979b22994d7c801952c13d8bbfa013da78b69e2

3 years agoEnable visibility of bionic and media APEX from config am: 06c8f6c3d6 am: 7266d0ec31...
Kiyoung Kim [Wed, 16 Sep 2020 04:43:14 +0000 (04:43 +0000)]
Enable visibility of bionic and media APEX from config am: 06c8f6c3d6 am: 7266d0ec31 am: fd1a52d0ed am: 9b3a09a119

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

Change-Id: I98a2989e3cac94b4606854646af60e585e710038

3 years agoSet APEX namespace as visible am: 81b9f84b50 am: 4c889f483e am: f5600d0d4b am: 02a8d40565
Kiyoung Kim [Wed, 16 Sep 2020 04:43:12 +0000 (04:43 +0000)]
Set APEX namespace as visible am: 81b9f84b50 am: 4c889f483e am: f5600d0d4b am: 02a8d40565

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

Change-Id: Id1f5e93e023340f5e8379edf652c63993e51afb9

3 years agoEnable visibility of bionic and media APEX from config am: 06c8f6c3d6 am: 7266d0ec31...
Kiyoung Kim [Wed, 16 Sep 2020 04:18:18 +0000 (04:18 +0000)]
Enable visibility of bionic and media APEX from config am: 06c8f6c3d6 am: 7266d0ec31 am: fd1a52d0ed

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

Change-Id: I24d32c1999d10ede2479ac1889fccf176637d5e5

3 years agoSet APEX namespace as visible am: 81b9f84b50 am: 4c889f483e am: f5600d0d4b
Kiyoung Kim [Wed, 16 Sep 2020 04:18:16 +0000 (04:18 +0000)]
Set APEX namespace as visible am: 81b9f84b50 am: 4c889f483e am: f5600d0d4b

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

Change-Id: I8474240b9f7d968081dc35f5b393d2df0c553172

3 years agoEnable visibility of bionic and media APEX from config am: 06c8f6c3d6 am: 7266d0ec31
Kiyoung Kim [Wed, 16 Sep 2020 03:30:55 +0000 (03:30 +0000)]
Enable visibility of bionic and media APEX from config am: 06c8f6c3d6 am: 7266d0ec31

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

Change-Id: I217196e9aa51c1f2b120a5796b67f2fc072374fc

3 years agoSet APEX namespace as visible am: 81b9f84b50 am: 4c889f483e
Kiyoung Kim [Wed, 16 Sep 2020 03:30:54 +0000 (03:30 +0000)]
Set APEX namespace as visible am: 81b9f84b50 am: 4c889f483e

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

Change-Id: If6558a84690bb5f6c586d5d258c37f2c5f0542e8

3 years agoEnable visibility of bionic and media APEX from config am: 06c8f6c3d6
Kiyoung Kim [Wed, 16 Sep 2020 02:28:13 +0000 (02:28 +0000)]
Enable visibility of bionic and media APEX from config am: 06c8f6c3d6

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

Change-Id: I21a5b3e52dcb6ea7ad2825482a809e73c05db363

3 years agoSet APEX namespace as visible am: 81b9f84b50
Kiyoung Kim [Wed, 16 Sep 2020 02:28:12 +0000 (02:28 +0000)]
Set APEX namespace as visible am: 81b9f84b50

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

Change-Id: I8d2a5e6ef607e748ff9dc247992c69932d6d8fc5

3 years agoEnable visibility of bionic and media APEX from config
Kiyoung Kim [Mon, 14 Sep 2020 02:23:00 +0000 (11:23 +0900)]
Enable visibility of bionic and media APEX from config

Enable visibility of bionic and media APEX from their own linker config
file to remove dependency between linkerconfig and other APEX modules.

Bug: 167946001
Test: atest passed
Change-Id: Icd76f2b8b051c88eac285d8548dddc0405e58cff

3 years agoSet APEX namespace as visible
Kiyoung Kim [Mon, 14 Sep 2020 02:22:19 +0000 (11:22 +0900)]
Set APEX namespace as visible

Some of the APEX namespace should be visible from some sections, even
when the APEX namespace is not required from dependency resolution. This
change adds a new property in linker.config.txt to enforce APEX
namespace as available and visible from all sections.

Bug: 167946001
Test: atest passed
Change-Id: Ia0681b58a571ca977a97968494ad17502582253b

3 years agoMerge "Add a new public library libicu.so" am: 3a48619dd8 am: 16542a8d73 am: 3c310b3b...
vichang [Fri, 11 Sep 2020 13:06:49 +0000 (13:06 +0000)]
Merge "Add a new public library libicu.so" am: 3a48619dd8 am: 16542a8d73 am: 3c310b3bc9 am: a004af7acc

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

Change-Id: Icbaca8bd4fb279fc7350e8dd8f83d19f60f8088d

3 years agoMerge "Add a new public library libicu.so" am: 3a48619dd8 am: 16542a8d73 am: 3c310b3bc9
vichang [Fri, 11 Sep 2020 12:14:31 +0000 (12:14 +0000)]
Merge "Add a new public library libicu.so" am: 3a48619dd8 am: 16542a8d73 am: 3c310b3bc9

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

Change-Id: I7fb6772f282931c8cb78eae70ba253fac3915077

3 years agoMerge "Add a new public library libicu.so" am: 3a48619dd8 am: 16542a8d73
vichang [Fri, 11 Sep 2020 11:33:00 +0000 (11:33 +0000)]
Merge "Add a new public library libicu.so" am: 3a48619dd8 am: 16542a8d73

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

Change-Id: I169c1237bdfaa44adba64a2271083c56d4e3553d

3 years agoMerge "Add a new public library libicu.so" am: 3a48619dd8
vichang [Fri, 11 Sep 2020 10:57:04 +0000 (10:57 +0000)]
Merge "Add a new public library libicu.so" am: 3a48619dd8

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

Change-Id: Icd50133f28ddbd9bbe523907e3f92496149afcfa

3 years agoMerge "Add a new public library libicu.so"
vichang [Fri, 11 Sep 2020 10:19:37 +0000 (10:19 +0000)]
Merge "Add a new public library libicu.so"

3 years ago[automerger skipped] Merge Android R am: dd16853a3e -s ours am: 9fd25868fb -s ours...
Xin Li [Fri, 11 Sep 2020 03:58:56 +0000 (03:58 +0000)]
[automerger skipped] Merge Android R am: dd16853a3e -s ours am: 9fd25868fb -s ours am: 17012f128b -s ours am: fb462ecde7 -s ours

am skip reason: Change-Id I7a490c6ba010b984d50bc5eb66e0b7cd0dfb6ff4 with SHA-1 c719aff9b6 is in history

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

Change-Id: Id47fbdfbce84aaa60fb94803ba54a0a8c302e8ed

3 years ago[automerger skipped] Merge Android R am: dd16853a3e -s ours am: 9fd25868fb -s ours...
Xin Li [Fri, 11 Sep 2020 03:33:26 +0000 (03:33 +0000)]
[automerger skipped] Merge Android R am: dd16853a3e -s ours am: 9fd25868fb -s ours am: 17012f128b -s ours

am skip reason: Change-Id I7a490c6ba010b984d50bc5eb66e0b7cd0dfb6ff4 with SHA-1 c719aff9b6 is in history

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

Change-Id: I3f35d401f6083522693588b4b0224769ae1e383b

3 years ago[automerger skipped] Merge Android R am: dd16853a3e -s ours am: 9fd25868fb -s ours
Xin Li [Fri, 11 Sep 2020 02:02:34 +0000 (02:02 +0000)]
[automerger skipped] Merge Android R am: dd16853a3e -s ours am: 9fd25868fb -s ours

am skip reason: Change-Id I7a490c6ba010b984d50bc5eb66e0b7cd0dfb6ff4 with SHA-1 c719aff9b6 is in history

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

Change-Id: Ic06f509fc7e800ceef6d8a5d0c3d35effe6174d3

3 years ago[automerger skipped] Merge Android R am: dd16853a3e -s ours
Xin Li [Fri, 11 Sep 2020 00:40:01 +0000 (00:40 +0000)]
[automerger skipped] Merge Android R am: dd16853a3e -s ours

am skip reason: Change-Id I7a490c6ba010b984d50bc5eb66e0b7cd0dfb6ff4 with SHA-1 c719aff9b6 is in history

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

Change-Id: I1a9d5ddf4823b38f37af0ff0dea84dbe9611a731

3 years agoMerge Android R
Xin Li [Thu, 10 Sep 2020 03:21:28 +0000 (20:21 -0700)]
Merge Android R

Bug: 168057903
Merged-In: I7a490c6ba010b984d50bc5eb66e0b7cd0dfb6ff4
Change-Id: Idb4d38b66ab90702faceee88c548dfda037e06d6

3 years agoRemove hard-coded references for JNI apexes am: 37d643da15 am: c719aff9b6 am: 89a086f...
Jooyung Han [Wed, 9 Sep 2020 00:59:37 +0000 (00:59 +0000)]
Remove hard-coded references for JNI apexes am: 37d643da15 am: c719aff9b6 am: 89a086f463 am: 993888e78d

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

Change-Id: I6a724ad6cfeadfc9818c12bd79437ed0e9568d43

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 agoRemove hard-coded references for JNI apexes am: 37d643da15 am: c719aff9b6 am: 89a086f463
Jooyung Han [Wed, 9 Sep 2020 00:33:28 +0000 (00:33 +0000)]
Remove hard-coded references for JNI apexes am: 37d643da15 am: c719aff9b6 am: 89a086f463

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

Change-Id: Idd694b09e589922b5d112acd0eef164eeaf5aca1

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 agoRemove hard-coded references for JNI apexes am: 37d643da15 am: c719aff9b6
Jooyung Han [Wed, 9 Sep 2020 00:05:34 +0000 (00:05 +0000)]
Remove hard-coded references for JNI apexes am: 37d643da15 am: c719aff9b6

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

Change-Id: I5b0461d4df1e641598ba323b614888c6dc537c07

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 agoRemove hard-coded references for JNI apexes am: 37d643da15
Jooyung Han [Tue, 8 Sep 2020 23:47:06 +0000 (23:47 +0000)]
Remove hard-coded references for JNI apexes am: 37d643da15

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

Change-Id: I7a490c6ba010b984d50bc5eb66e0b7cd0dfb6ff4

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 agoRemove hard-coded references for JNI apexes
Jooyung Han [Fri, 28 Aug 2020 09:58:54 +0000 (18:58 +0900)]
Remove hard-coded references for JNI apexes

As statsd & conscrypt apexes expose JNI libs via apex_manifest,
linkerconfig makes them as visible when JNI libs are required.

Bug: 150767721
Test: atest --host linkerconfig_diff_test
      atest MtsConscryptTestCases
Change-Id: I64d0c24e791205c39b4b9b01abda57cf49f68606

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 agoAdd a new public library libicu.so
Victor Chang [Wed, 2 Sep 2020 22:40:24 +0000 (23:40 +0100)]
Add a new public library libicu.so

Bug: 160350521
Test: m droid
Change-Id: I69fa789ac9ed618c4f7627573a68d110235dd639

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