在硬件抽象层中添加访问驱动程序的代码
hardware/libhardware/include/hardware/hello.h
hardware/libhardware/modules/hello/hello.c
hello.c负责直接与驱动打交道,比如open,read等
输出
out/target/product/smdkv210/system/lib/hw/hello.default.so
在tiny210下的system/lib/hw/已经有很多硬件抽象层so了
/ # ls system/lib/hw/
sensors.mini210.so
gralloc.default.so
gps.goldfish.so
overlay.s5pc110.so
lights.s5pc110.so
copybit.s5pc110.so
lights.mini210.so
sensors.goldfish.so
gps.mini210.so