Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Vendor's vold vs FFOS vold

30 views
Skip to first unread message

emeric....@gmail.com

unread,
Jun 13, 2016, 3:49:17 PM6/13/16
to mozilla-...@lists.mozilla.org
Hi,

While I was playing with my own FFOS build, I've noticed that my phone's external SD card wasn't detected from within FFOS (e.g. contacts, media storage). I had no problem seeing it and accessing its contents from within adb shell though.

After some trials and errors, I've found that system/bin/vold was the culprit. Replacing it (initially as a test) with vendor's one fixed the problem. And indeed, looking at Flame device's extract-files.sh script, I can see that vold is extracted from vendor's image. So, why is vold rebuilt if it isn't fully working and is replaced in the end by vendor's one?

Similarly, without extracting anything from vendor's image, I've found that system/etc/gps.conf, system/lib/egl/egl.cfg, system/lib/egl/libGLES_android.so and system/lib/hw/lights.msm8610.so are "generated" (built or copied from another source) by FFOS buildsystem, while also being listed in Flame's extract-files.sh. So, in such situations, rather than randomly discovering bugs and trying to fix them by trials and errors, how do you know if a file generated by FFOS buildsystem should be replaced by vendor's one in the end? BTW, is the replacement by such prebuilt binaries expected?

Thanks,

Émeric

Thomas Zimmermann

unread,
Jun 13, 2016, 4:12:01 PM6/13/16
to emeric....@gmail.com, mozilla-...@lists.mozilla.org
Hi
If you can build something from source, you should do that. If it
doesn't do the job, try the binary blob instead. And from what I've
seen, it really depends on the device and boils down to trial and error.
Device vendors sometimes make changes to the device drivers without
releasing the source code.

Regarding vold, I'm surprised that it gave you trouble. There's nothing
apparently vendor-specific about SD-card management. Could it be that
it's just outdated? Did you try to build with a different tag/branch
instead?

Best regards
Thomas

>
> Thanks,
>
> Émeric
> _______________________________________________
> dev-fxos mailing list
> dev-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-fxos

emeric....@gmail.com

unread,
Dec 28, 2016, 7:17:03 PM12/28/16
to mozilla-...@lists.mozilla.org
Hi,

Better late than never ;-)

Le lundi 13 juin 2016 22:12:01 UTC+2, Thomas Zimmermann a écrit :

<snip>

> Regarding vold, I'm surprised that it gave you trouble. There's nothing
> apparently vendor-specific about SD-card management. Could it be that
> it's just outdated? Did you try to build with a different tag/branch
> instead?

I didn't have time to build a different tag/branch yet, but Flame KK device is affected too [1].

Émeric

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1066128
0 new messages