android_device_htc_click/custom/calibrate_screen
Arne Coucheron f700214ebd click: Make sure custom screen calibration is run after initial calibration
Change-Id: I0d11bb7daac80b9d3cff563b465aa821a244fd90
2011-03-08 16:00:01 +01:00

15 lines
330 B
Bash

#!/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