OSDN Git Service

add some pro-forma idc files for input devices, let Android ignore the lid switch...
authorStefan Seidel <android@stefanseidel.info>
Fri, 24 Feb 2012 21:51:18 +0000 (22:51 +0100)
committerStefan Seidel <android@stefanseidel.info>
Fri, 24 Feb 2012 21:51:18 +0000 (22:51 +0100)
AT_Translated_Set_2_keyboard.idc [new file with mode: 0644]
excluded-input-devices.xml [new file with mode: 0644]
wacom-input.idc [new file with mode: 0644]
x41t.mk

diff --git a/AT_Translated_Set_2_keyboard.idc b/AT_Translated_Set_2_keyboard.idc
new file mode 100644 (file)
index 0000000..eed76b5
--- /dev/null
@@ -0,0 +1,2 @@
+keyboard.builtIn = 1
+device.internal = 0
diff --git a/excluded-input-devices.xml b/excluded-input-devices.xml
new file mode 100644 (file)
index 0000000..b1180de
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2011, The Android-x86 Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<devices>
+    <device name="Power Button" />
+    <device name="Lid Switch" />
+</devices>
diff --git a/wacom-input.idc b/wacom-input.idc
new file mode 100644 (file)
index 0000000..dde422c
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright (C) 2011 The Android-x86 Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Basic Parameters
+touch.deviceType = touchScreen
+#touch.orientationAware = 1
+
+# Touch Size
+touch.touchSize.calibration = default
+
+# Tool Size
+touch.toolSize.calibration = default
+
+# Pressure
+touch.pressure.calibration = default
+
+# Size
+touch.size.calibration = default
+
+# Orientation
+touch.orientation.calibration = none
+
+device.internal = 1
diff --git a/x41t.mk b/x41t.mk
index 16a8b2e..a44172e 100644 (file)
--- a/x41t.mk
+++ b/x41t.mk
@@ -12,6 +12,11 @@ PRODUCT_MANUFACTURER := ibm
 
 DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlays
 
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/ueventd.$(TARGET_PRODUCT).rc:root/ueventd.$(TARGET_PRODUCT).rc \
+    $(LOCAL_PATH)/wacom-input.idc:system/usr/idc/wacom-input.idc \
+    $(LOCAL_PATH)/AT_Translated_Set_2_keyboard.idc:system/usr/idc/AT_Translated_Set_2_keyboard.idc \
+
 #PRODUCT_COPY_FILES += \
 #    $(LOCAL_PATH)/system/etc/permissions/features.xml:system/etc/permissions/features.xml \
 #    $(LOCAL_PATH)/system/etc/permissions/com.google.android.media.effects.xml:system/etc/permissions/com.google.android.media.effects.xml \