android_lights_framework's Introduction
@modified lights from sony files @hence, recompiled to get system.img @used previous build linux kernel + modification to kernel was leds_4412.c under linux-3.0.86/drivers/leds the difference is that this hal driver can be accessed using echo 255>sys/class/leds/led1/brightness cat /sys/class/leds/led1/brightness cat /sys/class/leds/led1/max_brightness echo timer>/sys/class/leds/led1/trigger echo 100>/sys/class/leds/led1/delay_on echo 200>/sys/class/leds/led1/delay_off Also modify the led-class.c 0644 to 0666 to allow us to use access the above command line parameter Also modify the ledtrig-timer.c 0644 to 0666 to allow us to use access the above command line parameter put leds_4412.c inside drivers/leds modify drivers/leds/Makefile: obj-y += leds_4412.o make menuconfig CONFIG_LEDS_CLASS CONFIG_LEDS_TRIGGERS CONFIG_LEDS_TRIGGER_TIMER -> Device Drivers -> LED Support [*] LED Class Support [*] LED Trigger support <*> LED Timer Trigger make zImage HAL: lights.c put files inside hardware/libhardware/modules/lights/lights.c hardware/libhardware/modules/lights/Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := lights.tiny4412 # HAL module implementation stored in # hw/<VIBRATOR_HARDWARE_MODULE_ID>.default.so LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_C_INCLUDES := hardware/libhardware LOCAL_SRC_FILES := lights.c LOCAL_SHARED_LIBRARIES := liblog LOCAL_MODULE_TAGS := eng include $(BUILD_SHARED_LIBRARY) make hardware/libhardware/modules/lights -B make snod compare generated .so file with friendlyarm given lights.so diff vendor/friendly-arm/tiny4412/proprietary/lights.tiny4412.so out/target/product/tiny4412/system/lib/hw/lights.tiny4412.so ./gen-img.sh after bootup use the following command logcat lights:V *:S
android_lights_framework's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.