• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

vendor/samsung/q1u


Commit MetaInfo

修订版76967542402f0d478d2e72ef02c817e4a1e75b36 (tree)
时间2009-12-05 14:23:48
作者Bryan Hundven <bryanhundven@gmai...>
CommiterYi Sun

Log Message

Touchscreen pointercal work

With InputDevice.java looking for pointercal in /data/system/tslib,
and ts_calibrate and friends looking for pointercal in that same
location, we want to install our product specific pointercal to
/system/etc/pointercal and have ins_pointercal.sh (ran from
init.q1u.rc) to copy it to /data/system/tslib.

Work will be done later to the Home apk or init to check for a
touchscreen device, and if it finds one, it should check for
/system/etc/pointercal. If /system/etc/pointercal or /data/system/tslib
do not exist, then it should automatically run ts_calibrate.

更改概述

差异

--- a/AndroidBoard.mk
+++ b/AndroidBoard.mk
@@ -38,6 +38,7 @@ $(INSTALLED_RAMDISK_TARGET): $(file)
3838 $(eval $(call add-prebuilt-target,$(TARGET_OUT_DATA_ETC),pointercal))
3939 $(eval $(call add-prebuilt-target,$(TARGET_OUT_DATA_ETC),ts.conf))
4040 $(eval $(call add-prebuilt-target,$(TARGET_OUT_DATA_ETC),ts.env))
41+$(eval $(call add-prebuilt-target,$(TARGET_OUT_DATA_ETC),ins_pointercal.sh))
4142
4243 ALL_FIRMWARES := $(shell cd $(LOCAL_PATH) && find firmware -type f)
4344 $(eval $(foreach f,$(ALL_FIRMWARES),$(call add-prebuilt-target,$(TARGET_OUT_SHARED_LIBRARIES),$(f))))
--- a/init.q1u.rc
+++ b/init.q1u.rc
@@ -13,3 +13,6 @@ on boot
1313 setprop alsa.mixer.playback.speaker Master
1414 export LD_PRELOAD /lib/libts.so:/lib/ts/pthres.so
1515
16+service tslib /system/bin/sh /system/etc/ins_pointercal.sh
17+ oneshot
18+
--- /dev/null
+++ b/ins_pointercal.sh
@@ -0,0 +1,7 @@
1+#!/bin/sh
2+if [ -f /system/etc/pointercal ]; then
3+ mkdir /data/system/tslib
4+ chown 1000.1000 /data/system/tslib
5+ cp /system/etc/pointercal /data/system/tslib/pointercal
6+ chown 1000.1000 /data/system/tslib/pointercal
7+fi
--- a/ts.env
+++ b/ts.env
@@ -1,6 +1,6 @@
11 TSLIB_CONSOLEDEVICE=none
22 TSLIB_FBDEVICE=/dev/fb0
33 TSLIB_TSDEVICE=/dev/input/event5
4-TSLIB_CALIBFILE=/system/etc/pointercal
4+TSLIB_CALIBFILE=/data/system/tslib/pointercal
55 TSLIB_CONFFILE=/system/etc/ts.conf
66 TSLIB_PLUGINDIR=/lib/ts