Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN4156 Datasheet(PDF) 10 Page - STMicroelectronics

Part # AN4156
Description  Hardware abstraction layer for Android
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4156 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button AN4156 Datasheet HTML 4Page - STMicroelectronics AN4156 Datasheet HTML 5Page - STMicroelectronics AN4156 Datasheet HTML 6Page - STMicroelectronics AN4156 Datasheet HTML 7Page - STMicroelectronics AN4156 Datasheet HTML 8Page - STMicroelectronics AN4156 Datasheet HTML 9Page - STMicroelectronics AN4156 Datasheet HTML 10Page - STMicroelectronics AN4156 Datasheet HTML 11Page - STMicroelectronics AN4156 Datasheet HTML 12Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 10 / 12 page
background image
How to build and install the Android sensor HAL
AN4156
10/12
Doc ID 023584 Rev 1
3
How to build and install the Android sensor HAL
The build system in Android is very easy thanks to the Android build environment and to the
Android makefiles. After having successfully downloaded and compiled the Android
sources, the user can compile and add/substitute the sensor HAL library.
To do this, copy the sensor HAL library folder in the android sources path, usually located in:
[Root Android Sources]/vendor/[vendor name]/[boardname]/
Before the build operation of the library, the user must initialize the Android environment:
[Root Android Sources]$ source build/envsetup.sh
[Root Android Sources]$ lunch [target board]
It is now possible to build the library; just launch the “mm” command in the HAL folder. The
result of this process is a dynamic library located in:
[Root Android Sources]/out/target/product/[board
name]/system/lib/hw/sensors.[board name].so
The user can add this library or substitute the existing library using adb push, but they
must remount the Android system partition to push it:
[Root Android Sources]$ adb shell]
[Android shell]$ mount
...
/dev/block/platform/omap/omap_hsmmc.0/by-name/system /system ext4
ro,relatime,barrier=1,data=ordered 0 0
...
[Android shell]$ mount -o remount,rw
/dev/block/platform/omap/omap_hsmmc.0/by-name/system
[Root Android Sources]/out/target/product/[board
name]/system/lib/hw/adb push sensors.[board name].so
/system/lib/hw/



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com