• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revision32190f45e069d03fe2a5f8926a49dff80fb2d1c3 (tree)
Zeit2019-05-20 19:59:51
AutorVictor Chang <vichang@goog...>
CommiterVictor Chang

Log Message

Allow linking to libicuuc.so and libicui18n.so from executable in /data

Executable in /data/ runs in default linker namespace, not
classloader namespace.
In Q, we moved libicuuc.so and libicui18n into the runtime
namespace, and allow linking from runtime namespace and classloader
namespace.

This change further allows linking from default namespace, and tries
to fix the regression temporarily.

Bug: 130788466
Test: The app issue is fixed after this CL
Merged-In: Ifae52b554124514e433cfe78875643a7450fbabd
Change-Id: Ifae52b554124514e433cfe78875643a7450fbabd
(cherry picked from commit 0c7edece9453db4f6c7be3058e64881b9805f94e)

Ändern Zusammenfassung

Diff

--- a/rootdir/etc/ld.config.legacy.txt
+++ b/rootdir/etc/ld.config.legacy.txt
@@ -58,6 +58,9 @@ namespace.default.link.runtime.shared_libs += libnativebridge.so
5858 namespace.default.link.runtime.shared_libs += libnativehelper.so
5959 namespace.default.link.runtime.shared_libs += libnativeloader.so
6060 namespace.default.link.runtime.shared_libs += libandroidicu.so
61+# libicuuc.so and libicui18n.so are kept for app compat reason. http://b/130788466
62+namespace.default.link.runtime.shared_libs += libicui18n.so
63+namespace.default.link.runtime.shared_libs += libicuuc.so
6164
6265 # TODO(b/122876336): Remove libpac.so once it's migrated to Webview
6366 namespace.default.link.runtime.shared_libs += libpac.so
--- a/rootdir/etc/ld.config.txt
+++ b/rootdir/etc/ld.config.txt
@@ -133,6 +133,9 @@ namespace.default.links = runtime,resolv
133133 # libart.
134134 namespace.default.visible = true
135135 namespace.default.link.runtime.shared_libs = libdexfile_external.so
136+# libicuuc.so and libicui18n.so are kept for app compat reason. http://b/130788466
137+namespace.default.link.runtime.shared_libs += libicui18n.so
138+namespace.default.link.runtime.shared_libs += libicuuc.so
136139 namespace.default.link.runtime.shared_libs += libnativebridge.so
137140 namespace.default.link.runtime.shared_libs += libnativehelper.so
138141 namespace.default.link.runtime.shared_libs += libnativeloader.so
@@ -502,6 +505,9 @@ namespace.system.asan.search.paths += /%PRODUCT_SERVICES%/${LIB}
502505
503506 namespace.system.links = runtime
504507 namespace.system.link.runtime.shared_libs = libdexfile_external.so
508+# libicuuc.so and libicui18n.so are kept for app compat reason. http://b/130788466
509+namespace.system.link.runtime.shared_libs += libicui18n.so
510+namespace.system.link.runtime.shared_libs += libicuuc.so
505511 namespace.system.link.runtime.shared_libs += libnativebridge.so
506512 namespace.system.link.runtime.shared_libs += libnativehelper.so
507513 namespace.system.link.runtime.shared_libs += libnativeloader.so
@@ -578,6 +584,9 @@ namespace.default.links = runtime,resolv
578584 namespace.default.visible = true
579585
580586 namespace.default.link.runtime.shared_libs = libdexfile_external.so
587+# libicuuc.so and libicui18n.so are kept for app compat reason. http://b/130788466
588+namespace.default.link.runtime.shared_libs += libicui18n.so
589+namespace.default.link.runtime.shared_libs += libicuuc.so
581590 namespace.default.link.runtime.shared_libs += libnativebridge.so
582591 namespace.default.link.runtime.shared_libs += libnativehelper.so
583592 namespace.default.link.runtime.shared_libs += libnativeloader.so
--- a/rootdir/etc/ld.config.vndk_lite.txt
+++ b/rootdir/etc/ld.config.vndk_lite.txt
@@ -74,6 +74,9 @@ namespace.default.links = runtime,resolv
7474 # libart.
7575 namespace.default.visible = true
7676 namespace.default.link.runtime.shared_libs = libdexfile_external.so
77+# libicuuc.so and libicui18n.so are kept for app compat reason. http://b/130788466
78+namespace.default.link.runtime.shared_libs += libicui18n.so
79+namespace.default.link.runtime.shared_libs += libicuuc.so
7780 namespace.default.link.runtime.shared_libs += libnativebridge.so
7881 namespace.default.link.runtime.shared_libs += libnativehelper.so
7982 namespace.default.link.runtime.shared_libs += libnativeloader.so
@@ -355,6 +358,9 @@ namespace.default.asan.search.paths += /system/${LIB}/vndk%VNDK_VER%
355358
356359 namespace.default.links = runtime
357360 namespace.default.link.runtime.shared_libs = libdexfile_external.so
361+# libicuuc.so and libicui18n.so are kept for app compat reason. http://b/130788466
362+namespace.default.link.runtime.shared_libs += libicui18n.so
363+namespace.default.link.runtime.shared_libs += libicuuc.so
358364 namespace.default.link.runtime.shared_libs += libnativebridge.so
359365 namespace.default.link.runtime.shared_libs += libnativehelper.so
360366 namespace.default.link.runtime.shared_libs += libnativeloader.so
@@ -401,6 +407,9 @@ namespace.default.links = runtime,resolv
401407 namespace.default.visible = true
402408
403409 namespace.default.link.runtime.shared_libs = libdexfile_external.so
410+# libicuuc.so and libicui18n.so are kept for app compat reason. http://b/130788466
411+namespace.default.link.runtime.shared_libs += libicui18n.so
412+namespace.default.link.runtime.shared_libs += libicuuc.so
404413 namespace.default.link.runtime.shared_libs += libnativebridge.so
405414 namespace.default.link.runtime.shared_libs += libnativehelper.so
406415 namespace.default.link.runtime.shared_libs += libnativeloader.so