android_device_htc_click/custom/10calibrate_screen
KalimochoAz eeb2444cbd More additions and setup-makefiles
Removed also white spaces
Added Firmaware to proprietary and added directory create
Modified error at libOmxVidEnc.so that was libOmxVidEnc
modified error in manufacturer
Full revision. Now works properly

Change-Id: Ibdabb72f6f87ffc7430407e39faecb79a109ef78
2011-02-07 17:00:58 +01:00

16 lines
407 B
Bash
Executable File

#!/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 ">>> Calibrating touch screen with calibration points: " $CALIBRATION
echo $CALIBRATION > /sys/class/input/input1/calibration_points
fi