Tuesday, February 14, 2012

Sensor HAL for Xperia™ phones available as open source


Continuing our open innovation initiative, we are now making the sensor HAL for the 2011 Xperia™ phones available as open source. So if you’re an advanced developer, you will now be able to access and configure the sensors of a 2011 Xperia™ phone on a deeper level. For example, you will be allowed to optimise the way the compass is used in a custom ROM.
In the good feedback we received on our previous open initiatives, we have seen a lot of requests for us to open source these files. And now, we’re happy to provide that opportunity. This is not part of open source archives that we are required to publish, it simply something we want to do for the community.
Read more after the jump!
If you read our blog post called Ice Cream Sandwich – from source code release to software upgrade, you’re probably familiar with the concept HAL (Hardware Abstraction Layer). The sensor HAL we are now releasing as open source contains source code files, and “make” files that describes how the sensors of the Sony Ericsson 2011 phones are configured. Using this, you can enable and disable multiple sets of sensors for each device, and in some cases also second-source sensors, when you are compiling.
The sensor HAL also makes it possible to configure the sensors, so that you can mount the “sensor chip” in different ways without having to change the code. Get started by downloading the sensor HAL for the 2011 Xperia™ phones. Then you can choose to either adapt the sensor HAL to your ROM, or use our sensor HAL more pretty much off-the-shelf. For additional information about the files included in the sensor HAL zip, check out the README.txt file included in the zip.
Working with all of you folks in the open dev community is important to us, and we hope you will find this latest addition of open sourced assets useful. What else is on your open source wish list? Write a comment and let us know.

No comments:

Post a Comment