diff options
| author | 2016-11-23 16:28:34 +0900 | |
|---|---|---|
| committer | 2016-11-29 11:59:20 +0900 | |
| commit | 2b14c5eaf61635d1c3a69a2e59faa23cb6b7f7cb (patch) | |
| tree | d0e5ecf97186bb113e05cb45a4f68e0f3f7705b5 | |
| parent | 0ec10ac7cf551853272299c6e15bcf37b336e329 (diff) | |
Remove static link in Android framework under /frameworks/base.
The dependencies to static libraries in frameworks should be removed
as many as possible to reduce a size of the system partition.
And that will improve coverage of the VNDK libraries because this
effort might find new necessary shared libs which were linked
statically before.
Size diffs of libs in /system/lib on angler-userdebug build are as
following.
libandroidfw.so : 243748 -> 205196 (-38552)
libhwui.so : 562028 -> 562580 (+552)
libmedia_jni.so : 293652 -> 293656 (+4)
(All the others have the same size.)
total: (-37996)
Test: building succeeded, and the image was tested on angler.
Bug: 33056637
Change-Id: I3021fb438778eaea2be935b990ec85c4aec6c008
| -rw-r--r-- | libs/androidfw/Android.mk | 3 | ||||
| -rw-r--r-- | services/core/jni/Android.mk | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libs/androidfw/Android.mk b/libs/androidfw/Android.mk index ad1ead8f1d63..7689256f5b07 100644 --- a/libs/androidfw/Android.mk +++ b/libs/androidfw/Android.mk @@ -65,8 +65,9 @@ LOCAL_MODULE:= libandroidfw LOCAL_SRC_FILES:= $(deviceSources) LOCAL_C_INCLUDES := \ system/core/include -LOCAL_STATIC_LIBRARIES := libziparchive libbase LOCAL_SHARED_LIBRARIES := \ + libziparchive \ + libbase \ libbinder \ liblog \ libcutils \ diff --git a/services/core/jni/Android.mk b/services/core/jni/Android.mk index 4d43e8e9c368..ac0e622f9664 100644 --- a/services/core/jni/Android.mk +++ b/services/core/jni/Android.mk @@ -46,6 +46,7 @@ LOCAL_C_INCLUDES += \ LOCAL_SHARED_LIBRARIES += \ libandroid_runtime \ libandroidfw \ + libbase \ libappfuse \ libbinder \ libcutils \ |