3 ms·
The approach by Jolla and FirefoxOS guys is actually quite brilliant. How to get into markets where it's relatively cheap to make a new android phone but anythi
by sharpneli 13y ago
The approach by Jolla and FirefoxOS guys is actually quite brilliant. How to get into markets where it's relatively cheap to make a new android phone but anything else requires very expensive contracts with the manufacturers?
Solution: Just use the android drivers directly. In my Jolla phone there is the good 'ol android /system/lib/. As an example the libGLESv2.so (the OpenGL ES 2.0 library) in /usr/lib/ simply opens the counterpart in /system/lib with android_dlsym and calls the equivalent functions (and in case of floating point arguments moves them to int registers). And what's the overhead of this? 9 instructions and 2 loads (for the function pointer). So it's essentially completely free.
Same approach applies to rest of the system. They just take the core of the android and run on top of that with just the bionic -> glibc layer on top. Brilliant.
The actual lib can be found at: https://github.com/libhybris/libhybris https://github.com/libhybris/libhybris
That means they can basically just walk to some SOC vendor (like they did to Qualcomm) and say "I want to buy a mid range Android SOC" and they have everything ready.