Hi there!, I wanted to update SGS2 wiki pages cause I've improved some things and fixed other ones that may be so usefull to other people for testing FirefoxOS on this hardware. Before I update these pages, I wanted to discuss with you how to face one thing I've done.
I've a fix for bug 755405 - B2G Telephony: mic is not working on ICS SGS2 [1]. But there was a discuss about how to implement this fix. Micheal Wu suggests me to create a library that's going to be preloaded when b2g process is launched, but I realized that this approach didn't solve the issue cause the problem is not on b2g process, it's on servicemanager [2], wich is launched via init.rc. Summarizing, there's an unresolved symbol problem cause Samsung uses it's own modified libmedia library. I just forked Google's libmedia library [3] and added those symbols. The problem is that libmedia is just a little part of the framewoks/base.git project, and forking and keeping an entire fork of the project cause just one simple symbol didn't look a good solution for me. So the approach I took was to include another <project> tag that points to my libmedia fork on my galaxy-s2.xml file and hope that repo tool will first download the <project> that points to Google's framework/base.git, and then my <project> fork that will overwrite the previous one. Repo tool doesn't have a way to force download order, but it seems that it downloads each <project> in order of appearance. So my approach works nice, but well, as Michael said.. it's ugly. Unfortunely, I don't know other ways to fix it, so if we cannot relay on repo tool download order, we can modify it and make it relaible. What do you think? Kind Regards, Juan Gómez (_AtilA_) [1] https://bugzilla.mozilla.org/show_bug.cgi?id=755405 [2] https://github.com/atilag/initramfs3/blob/master/res/misc/init.b2g/init.rc.2#L714 [3] https://github.com/atilag/android-frameworks-base-libmedia-samsung _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
