click: Make sure custom screen calibration is run after initial calibration

Change-Id: I0d11bb7daac80b9d3cff563b465aa821a244fd90
This commit is contained in:
Arne Coucheron 2011-03-08 16:00:01 +01:00
parent 5e76bcdaf3
commit f700214ebd
3 changed files with 20 additions and 0 deletions

View File

@ -85,6 +85,7 @@ PRODUCT_COPY_FILES += \
# precompiled files for /system/bin
PRODUCT_COPY_FILES += \
device/htc/click/custom/compcache:system/bin/compcache \
device/htc/click/custom/calibrate_screen:system/bin/calibrate_screen \
device/htc/click/custom/handle_compcache:system/bin/handle_compcache \
device/htc/click/custom/rzscontrol:system/bin/rzscontrol

14
custom/calibrate_screen Normal file
View File

@ -0,0 +1,14 @@
#!/system/bin/sh
SETTINGSDB=/data/data/com.android.providers.settings/databases/settings.db
if [ ! -f $SETTINGSDB ] ;
then
exit
fi
CALIBRATION=`sqlite3 $SETTINGSDB "select value from system where name='calibration_points';"`
if [ ! -z $CALIBRATION ] ;
then
echo $CALIBRATION > /sys/class/input/input1/calibration_points
fi

View File

@ -60,6 +60,11 @@ service akm8973 /system/bin/akm8973
user compass
group compass misc input
service calibrate_screen /system/bin/calibrate_screen
user root
group root
oneshot
service wlan_loader /system/bin/wlan_loader \
-f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration \
-i /system/etc/wifi/tiwlan.ini