Closed Bug 991131 Opened 11 years ago Closed 7 years ago

Unnecessary libraries in Firefox OS build and images

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: msg555, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release) Build ID: 20140317233501 Steps to reproduce: I configured my build directory for keon and ran ./build.sh. Actual results: There appear to be a couple (perhaps many) libraries from Android that should not be in use in FirefoxOS that are still being downloaded, built, and installed from B2G build repository. These include, but may not be limited to: Everything in B2G/libcore. This repository contains Android's implementation of the 'core' Java packages (things that are standard Java like java.io.File) which from my understanding wouldn't be needed in FirefoxOS. In particular libjavacore.so (the implementation of the core java package native methods) is being compiled and included in the system image. Everything in B2G/frameworks/base/core/ can also probably go. This directory is analogous to the libcore directory but instead contains Android's implementation of Android specific Java packages and native implementations. Again, libandroid_runtime.so (the native implementation of framework.jar) is being compiled and included in the system image. The B2G/dalvik/libnativehelper directory should go as well. libnativehelper is just a few 'helper' routines for using the Java Native Interface. libjavacore.so is unmapped by any process after starting my phone. libandroid_runtime.so, libnativehelper.so are mapped in drmserver and mediaserver It appears that libfwdlockengine.so is including libjavacore.so and libandroid_runtime.so as shared objects even though it links just fine without it. libmediaplayerservice.so also includes these libraries and does make use of ActivityManager's openContentProviderFile. This function doesn't call anything else in libandroid_runtime and appears to be trying to invoke a service over binder IPC that should no longer exist on FirefoxOS.
mwu, can you take a look to see if these are needed for some reason?
Flags: needinfo?(mwu)
I'll take a look if there's a patch. We've removed a lot of the low hanging fruit and the remaining *large* libraries are a bit more difficult to remove.
Flags: needinfo?(mwu)
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.