summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--device.mk4
-rwxr-xr-xinit.tuna.usb.rc11
-rw-r--r--sec_jack.kcm15
-rw-r--r--sec_jack.kl17
-rw-r--r--ueventd.tuna.rc3
5 files changed, 47 insertions, 3 deletions
diff --git a/device.mk b/device.mk
index e5da58c..962d7b5 100644
--- a/device.mk
+++ b/device.mk
@@ -99,7 +99,9 @@ PRODUCT_PACKAGES += \
# Key maps
PRODUCT_COPY_FILES += \
device/samsung/tuna/tuna-gpio-keypad.kl:system/usr/keylayout/tuna-gpio-keypad.kl \
- device/samsung/tuna/tuna-gpio-keypad.kcm:system/usr/keychars/tuna-gpio-keypad.kcm
+ device/samsung/tuna/tuna-gpio-keypad.kcm:system/usr/keychars/tuna-gpio-keypad.kcm \
+ device/samsung/tuna/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
+ device/samsung/tuna/sec_jack.kcm:system/usr/keychars/sec_jack.kcm
# Input device calibration files
PRODUCT_COPY_FILES += \
diff --git a/init.tuna.usb.rc b/init.tuna.usb.rc
index 9d3d336..20bf090 100755
--- a/init.tuna.usb.rc
+++ b/init.tuna.usb.rc
@@ -64,7 +64,16 @@ on property:sys.usb.config=ptp,adb
on property:sys.usb.config=rndis,dm
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 04e8
- write /sys/class/android_usb/android0/idProduct 6862
+ write /sys/class/android_usb/android0/idProduct 6864
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=rndis,acm,dm
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6864
write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/f_acm/instances 1
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state $sys.usb.config
diff --git a/sec_jack.kcm b/sec_jack.kcm
new file mode 100644
index 0000000..7ee6e5a
--- /dev/null
+++ b/sec_jack.kcm
@@ -0,0 +1,15 @@
+# Copyright (C) 2010 The Android 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.
+
+type SPECIAL_FUNCTION
diff --git a/sec_jack.kl b/sec_jack.kl
new file mode 100644
index 0000000..1a421d6
--- /dev/null
+++ b/sec_jack.kl
@@ -0,0 +1,17 @@
+# Copyright (C) 2010 The Android 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.
+
+key 163 MEDIA_NEXT WAKE
+key 165 MEDIA_PREVIOUS WAKE
+key 226 HEADSETHOOK WAKE
diff --git a/ueventd.tuna.rc b/ueventd.tuna.rc
index 3fa9fe2..d1a8b47 100644
--- a/ueventd.tuna.rc
+++ b/ueventd.tuna.rc
@@ -38,7 +38,8 @@
/dev/cdma_rmnet5 0660 radio radio
/dev/cdma_rmnet6 0660 radio radio
/dev/lte_rmnet4 0660 radio radio
-/dev/ttyGS1 0660 radio radio
+/dev/ttyGS0 0660 radio radio
+/dev/ttyGS1 0660 radio radio
/dev/block/mmcblk0p4 0660 radio radio
/dev/modem_br 0660 radio radio
/dev/cdma_ramdump0 0660 radio radio