brillo: Remove dependency on icu for Brillo.
Mediaserver requires an internationalization data file that is 22 MB.
Since Brillo is headless and runs in a resource constrained environment,
remove the dependency on this file for Brillo.
BUG=25792311
TEST=mediaserver runs without /system/usr/icu/icudt56l.dat file. Audio
playback, recording, and decoding work.
Change-Id: If397c5d75fca14b7cbc01c1a9014ae2d86649217
diff --git a/media/mediaserver/main_mediaserver.cpp b/media/mediaserver/main_mediaserver.cpp
index 4a485ed..315aff4 100644
--- a/media/mediaserver/main_mediaserver.cpp
+++ b/media/mediaserver/main_mediaserver.cpp
@@ -125,7 +125,11 @@
prctl(PR_SET_PDEATHSIG, SIGKILL); // if parent media.log dies before me, kill me also
setpgid(0, 0); // but if I die first, don't kill my parent
}
+#ifndef __BRILLO__
+ // Brillo is headless and very resource constrained. As such, it doesn't
+ // need an internationalization library for now.
InitializeIcuOrDie();
+#endif
sp<ProcessState> proc(ProcessState::self());
sp<IServiceManager> sm = defaultServiceManager();
ALOGI("ServiceManager: %p", sm.get());